Bots: SIN's trade fix in the public tree too (the old .bot trade command row goes, the trade frames stay allowed)

This commit is contained in:
Karrz1
2026-11-16 22:18:38 +00:00
parent db8b0d73e8
commit 9e7e4694f5
3 changed files with 2 additions and 3 deletions
-1
View File
@@ -69,7 +69,6 @@ The `.bot` commands for your own bots work for every account, no GM needed; each
| `.bot dismiss <name\|all>` | Removes it from your group and logs it out. Gear is kept. |
| `.bot delete <name>` | Deletes the character for good (the addon asks first). Only bots made for you: one of your own characters summoned as a bot (`.playerbot summon`) is refused with a pointer to `.bot dismiss`. |
| `.bot list` | Your companions, online or not (`saved` marks roster ones). |
| `.bot trade <seq> <what you see>` | Sent by the ForeverBots add-on right after you click Trade in a trade window with a bot, never typed. When the window still holds what you saw (money and items on both sides), your accept goes through with the bot's current state, so one click is enough; when the bot changed its offer, nothing is accepted and the add-on asks you to look again. Trades with players are not touched. |
| `.bot regear <name\|all>` | Re-rolls the equipment of online companions so they do not all wear the same pieces. Better pieces they wear stay; replaced ones go to the bags. |
| `.bot world` | Status of the world-bot spawner (Playerbot.World.*), console too. |
| `.bot population [off\|low\|medium\|high\|file]` | How many world bots the realm has, GM only, until the next restart (the launcher's Bots setting, `Bots.Size`, decides at every start; the add-on has no World bots tab since 0.6.13). Applies right away (a step down logs the world bots out first). It wins over `Bots.Size` and `Playerbot.World.Enable` until then; `file` hands back to the config files. No word: what it is now. Console too. |
@@ -707,8 +707,6 @@ public:
{ "unsave", HandleBotUnsave, rbac::RBAC_PERM_JOIN_NORMAL_BG, Console::No },
{ "delete", HandleBotDelete, rbac::RBAC_PERM_JOIN_NORMAL_BG, Console::No },
{ "list", HandleBotList, rbac::RBAC_PERM_JOIN_NORMAL_BG, Console::No },
// Every player: the ForeverBots trade window (accept a bot's offer as seen). Sent by the add-on, not typed.
{ "trade", HandleBotTrade, rbac::RBAC_PERM_JOIN_NORMAL_BG, Console::No },
{ "language", HandleBotLanguage, rbac::RBAC_PERM_JOIN_NORMAL_BG, Console::No },
{ "world", HandleBotWorld, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
// GM only: how many world bots the realm has (Off / Low / Medium / High), set in game until the next restart (the launcher's Bots setting decides at every start).
@@ -1784,6 +1784,8 @@ bool OnAddonWhisper(Player* sender, Player* /*receiver*/,
&& mtype != "PING"
&& mtype != "LFG_REQ"
&& mtype != "POP_REQ"
&& mtype != "BOT_TRADE_VIEW"
&& mtype != "BOT_TRADE_ACCEPT"
&& mtype != "ASSIGN_REQ")
return false;
}