Skip to content

Playerbot Commands

github-actions[bot] edited this page Nov 7, 2026 · 9 revisions

Playerbot Command Survey

Human-readable companion to the bridge allowlists in Bridge.lua (the addon-message protocol itself is documented in bridge-protocol.md). The official Playerbot Commands wiki is sparse, so this captures what was learned by reading the mod-playerbots action source directly (src/Ai/Base/Actions/*.cpp, src/Ai/Base/ChatActionContext.h, and src/Ai/Base/Strategy/ChatCommandHandlerStrategy.cpp).

Status legend: ✅ used by CleanBot · ⚠️ used but only partially · ⬜ available, unused.

This is a reference, not a roadmap — nothing here is committed work. When a command is implemented, also update the relevant Bridge.lua allowlist if it routes through an opcode.


⚠️ Chat commands are TRIGGERS, not action names (read this first)

A bot command you whisper is matched by trigger name, which is NOT always the same as the action name in the source. Getting this wrong silently misfires (see the sell story below). There are two registries:

  • Action name — ChatActionContext.h: creators["sell"] = … SellAction. This only names the action sell internally. It does not make sell a thing you can type.
  • Chat trigger — ChatCommandHandlerStrategy.cpp, two sources:
    1. InitTriggers() TriggerNode("<trigger>", { NextAction("<action>") }) — trigger ≠ action (e.g. s→sell, e→equip, ue→unequip, u→use, t→trade, b→buy, r→reward, c/items/inv→item count, q→query quest).
    2. The supported vector — entries where trigger name == action name (e.g. co, nc, talents, quests, stats, drop, emote, wait for attack time, ll, repair, …).

A whisper that matches no trigger falls through to an item-mention auto-trade (Playerbots.EnableAutoTradeOnItemMention, default true): the text is fed to the c and t (trade) actions, so any item link or quality keyword in it makes the bot open a trade. That is exactly why sell gray (no sell trigger) opened a trade on the gray keyword instead of vendor-selling — and it's also the only reason our give <link> works (there is no give command; the item link triggers the auto-trade).

Rule: before using/adding a bot command, confirm the exact TRIGGER in ChatCommandHandlerStrategy.cpp (a TriggerNode name or a supported entry) — not just the action name in ChatActionContext.h.

Audit — every command CleanBot sends, verified against the trigger registry

What CleanBot sends Trigger Where registered OK?
co … / nc … co / nc supported ✅
talents spec list / talents spec <name> talents supported ✅
items items TriggerNode("items") → item count ✅
quests all quests supported ✅
stats stats supported ✅
drop <quest> drop supported ✅
emote wave emote supported ✅
wait for attack time <N> (0–99) wait for attack time supported ✅
e <link> / ue <link> / u <link> / destroy <link> e / ue / u / destroy TriggerNode(...) / DestroyItemAction ✅
s gray s TriggerNode("s") → sell ✅ (was sell gray — wrong, fixed)
t <link> (drag-to-trade) t TriggerNode("t") → trade ✅ (was give <link> — relied on the auto-trade fallback; now the real t command)
bank / bank <link> / bank -<link> bank ChatTriggerContext creators["bank"] ✅ (list / deposit / withdraw — see Bank below)
formation <name> formation supported ✅ (Commands tab + Manage Party/Raid — see "Commands already sends")
autogear autogear supported ✅ ("Auto Gear" button — see "Commands already sends")
ll <mode> / ll ? ll supported ✅ ("Loot Quality" dropdown, Non-Combat tab — see "Commands already sends")
equip upgrade equip upgrade supported ✅ ("Equip Upgrades" button — see "Commands already sends")
roll roll supported ✅ ("Roll" button — see "Commands already sends")
summon summon supported ✅ (Action Bar "Summon" button + unit right-click menu)
do attack my target (+@tank/@heal/@dps/@melee/@ranged) do PlayerbotAI::HandleCommand — do <action> → DoSpecificAction ✅ (Action Bar "Attack" flyout)
pull my target pull TriggerNode("pull") → pull my target action ✅ (Action Bar "Pull" button)
release release supported ✅ (Action Bar "Release" flyout)
revive revive TriggerNode("revive") → spirit healer action ✅ (Action Bar "Release" flyout)
b <link> b TriggerNode("b") → buy (BuyAction) ✅ (vendor extension — a selected bot buys the right-clicked merchant item)
s <link> s TriggerNode("s") → sell (SellAction) ✅ (vendor extension + inventory "Sell" menu)
gb <link> gb GuildBankAction (deposit only) ✅ (inventory "Deposit to Guild Bank" fallback — core trigger is gb; deposit-only, no list/withdraw)
cast <spell> [on <target>] / cast 13262 <link> cast CastCustomSpellAction (cast <spell> [target]) ✅ (Spellbook dual-click casting and inventory "Disenchant" menu)
r <link> r TriggerNode("r") — reward (RewardAction) ✅ (quest reward picker — completes quest choosing reward itemlink)
los gos los TriggerNode("los") — line of sight objects ✅ (whisper fallback for nearby interactive game objects query)
reset botAI reset botAI supported (ResetAiAction) ✅ ("Reset AI" button — clears saved AI settings and restores strategy defaults from Individual tab)

Commands CleanBot already sends

Command Status Notes
co +x / co -x / co ? ⚠️ See "co/nc operators" below — ~ and ! unused.
nc +x / nc -x / nc ? ⚠️ Same operator set as co.
talents spec <name> ⚠️ One of five talents sub-forms — see "talents" below.
talents spec list ✅ Populates the premade-spec dropdown; reply is one premade per line, "1. arms pve (51-0-20)" (parsed in Bridge.lua).
s gray ✅ Inventory "Sell Trash" button. The trigger is s, not sell — ChatCommandHandlerStrategy registers TriggerNode("s") → SellAction; there is NO sell trigger. Whispering sell gray matches no command and (with enableAutoTradeOnItemMention) makes the bot open a trade on the "gray" keyword instead of vendor-selling. Bridge SELL_GREY (RUN~ITEM_ACTION~<bot>~<token>~SELL_GREY~0~0, cap INVENTORY_BULK_SELL_V1) when present, whisper only when absent; sells only when a vendor NPC is in interaction range; "gray" = ITEM_QUALITY_POOR (quality 0). Params: s gray / s * / s vendor / s <itemlink>.
b <link> (vendor buy) ✅ Vendor frame extension (Merchant.lua). With a bot selected on the vendor's portrait tabs/dropdown, right-clicking a merchant item sends b <itemlink> so that bot buys it. Trigger b (BuyAction); whisper-only (not bridge-allowlisted); the bot must be within interaction range of the vendor — CleanBot does a client-side proxy range check (CheckInteractDistance to the bot, since the player is at the vendor) and flashes a UIErrorsFrame warning instead of sending if it's too far.
s <link> (vendor sell) ✅ Vendor-sells a single item from a bot's bags. Used by the vendor extension (right-click an item in a bot's open bag window while a merchant is up) and the inventory "Sell" context-menu entry. Uncommon-or-better items confirm first (CleanBot currently provides no buyback for bots). Trigger s (SellAction); bridge single-sell (RUN~ITEM_SELL, cap ITEM_SELL_SINGLE_V1) when present with exact coordinates, whisper only when absent; needs a vendor in range. (Bulk s gray is the separate "Sell Trash" button above.)
gb <link> (deposit) ✅ Deposits a bag item into the guild bank. Used by the inventory "Deposit to Guild Bank" context-menu entry. GuildBankAction; bridge deposit (RUN~ITEM_DEPOSIT_EXACT GBANK_DEPOSIT, CB_BridgeDepositItem + the inventory context menu) when bridge is present with exact bag/slot coordinates, whisper fallback gb <link> (core trigger gb) when absent. The chat gb action deposits into tab 0. The bridge deposit path tries tabs where both requester and bot have deposit rights. The bridge also supports GET~GBANK and ITEM_ACTION GBANK_WITHDRAW, but CleanBot currently exposes no guild-bank browsing or withdrawal window. Requires the bot in your guild, at a guild vault, with deposit rights (tab 0 for the chat path); failures raise the CLEANBOT_NO_GUILD_BANK popup.
e <link> (equip) ⚠️ Resolves via parseItems — accepts far more than links. Bridge RUN~ITEM_EQUIP when present with exact coordinates, whisper only when absent.
ue <link> (unequip) ✅ CleanBot always sends this through whispers. The server also provides RUN~ITEM_UNEQUIP, which CleanBot does not currently use.
u <link> (use item) ✅ Bridge RUN~ITEM_USE when present with exact coordinates, whisper only when absent.
t <link> ✅ Trade command (TriggerNode("t") → TradeAction); always whisper, no bridge opcode. Toggles the item in the bot's trade window. Used by the drag-to-trade / right-click-remove flow. (We previously sent give <link>, which is not a real command and only worked via the item-mention auto-trade fallback — switched to t for robustness.)
items ⚠️ Accepts filters (items quest, items food, by quality/name/slot).
bank ✅ Bank window. List via bridge GET~BANK (Bridge.lua:1067) when present, whisper bank only when absent. bank (or bank ?) lists the bot's bank: reply opens with === Bank === then item lines in the same TellItems format as items (parsed by the same header-routed staging branch in Bridge.lua). The reply carries no money/slot-count summary. bank <itemlink> deposits (bridge BANK_DEPOSIT with coordinates, whisper only when absent), bank -<itemlink> withdraws (bridge BANK_WITHDRAW by itemId+count when present, whisper only when absent). All three forms share trigger bank (BankAction) and require a banker NPC in interaction range — otherwise the bot whispers "Cannot find banker nearby" and does nothing (CleanBot surfaces this as the CLEANBOT_NO_BANKER popup).
quests all ✅ Whisper path sends quests all (bridge: GET~QUESTS~ALL); lists per-quest links under Incomplete/Complete headers.
stats ✅ Routes via bridge GET~STATS when present; whispers only when absent. Rest-XP overlay is hidden for 1:1 visual consistency.
drop <questname> ✅ Abandon quest.
emote <name> ✅ Takes any emote token; CleanBot sends emote wave on bot selection (Settings-gated).
autogear ✅ "Auto Gear" button in the "Commands" inner tab (Individual + Group) and Manage → Party/Raid, gated behind a Yes/No confirmation popup. Auto-equips gear upgrades for the bot. In C++ (TrainerAction.cpp:586-710), autogear supports multiple parameters: autogear (upgrades equipped gear incrementally; does not wipe existing gear), autogear reset (erases all equipped gear and re-gears from scratch), autogear match (targets master's average ilvl, capped by AutoGearScoreLimit config, though item availability does not guarantee an exact match), autogear <quality>, autogear <ilvl>, `autogear reset <quality
formation <name> ✅ "Commands" inner tab (Individual + Group) and Manage → Party/Raid. Sets the bot's movement formation (SetFormationAction, src/Ai/Base/Value/Formations.cpp; trigger formation in the supported vector). Routes group formation change via bridge RUN~FORMATION~GROUP~~<token>~<formation> when bridge is present (for all 9 tokens); bridge-absent orders use PARTY/RAID chat. Individual bot formation changes whisper directly. Valid tokens (lowercase): chaos (default), near, queue, circle, line, shield, arrow, melee, far — the dropdown shows them title-cased and sends the lowercase token. Query: When bridge is present, queries via GET~FORMATIONS~GROUP~~<token> (batching all group bots in one roundtrip); whispers formation ? only when absent. Parsed in Bridge.lua into entry.formation and reflected in dropdowns.
ll <mode> / ll ? ✅ "Loot Quality" dropdown (Non-Combat tab, Individual + Group). LootStrategyAction (modes in src/Ai/Base/Value/LootStrategyValue.h); trigger ll in supported. The bot's loot-quality policy — exclusive, one strategy at a time. Default: normal (LootStrategyValue is a ManualSetValue<LootStrategy*> seeded with normal). Modes (verified from each strategy's CanLoot() in LootStrategyValue.cpp + ItemUsageValue::Calculate): normal = items with a non-NONE ItemUsage — note a gray item with a sell price resolves to ITEM_USAGE_VENDOR, so normal DOES loot gray vendor-trash; it skips only truly no-value items; gray = normal + all poor-quality items (incl. zero-sell-value grays normal skips); all = everything (CanLoot returns true); disenchant = normal + uncommon-or-better, non-bind-on-pickup weapons/armor (disenchantable). Query: ll ? whispers back Loot strategy: <mode> (plus an Always loot items: … list), parsed in Bridge.lua into entry.lootStrategy and reflected in the dropdown (Group shows "Mixed" when members differ). Modeled like formation (a ?-queried command setting, not an nc strategy) — a type="settingDropdown" group in NS.NC_STRATEGIES. ll all/normal/gray/disenchant via bridge RUN~LOOT when present; ll ?, ll <itemlink> always whisper; per-host scope: Individual → open bot, Group → selected members (fan-out). ll <itemlink> / ll -<itemlink> manage a per-item always-loot list — not surfaced. (loot, the auto-loot on/off strategy, is the separate "Auto Loot" nc checkbox.)
equip upgrade ✅ "Equip Upgrades" button (Commands inner tab + Manage → Party/Raid). EquipUpgradeAction; trigger equip upgrade in supported. Scans the bot's bags and equips stat upgrades — only swaps in improvements, so no confirmation is required. Whisper-only; per-host scope matches the rest of the command set.
roll ✅ "Roll" button (Commands inner tab + Manage → Party/Raid). Handled by RollAction (src/Ai/Base/Actions/LootRollAction.cpp, registered in ChatActionContext.h); trigger roll in supported. Bare roll → bot->DoRandomRoll(1,100) — the bot does a /random 1-100 (e.g. for manual loot distribution). roll <itemlink> performs a /random 1-100 roll if the linked item is usable weapons or armor (ITEM_USAGE_EQUIP / REPLACE / BAD_EQUIP) — not a group loot popup decision, and not surfaced in CleanBot (the button sends bare roll). Whisper-only.
summon ✅ Action Bar "Summon" button (+ the unit right-click menu's "Summon", UnitMenu.lua). summon is in supported (SummonAction) — teleports the bot to you. The Action Bar path broadcasts via CB_SendGroupCommand (whole group); the unit-menu path whispers a single bot. Whisper-only (not bridge-allowlisted).
do attack my target ✅ Action Bar "Attack" flyout. Uses the do <action> command (PlayerbotAI::HandleCommand strips do /d and calls DoSpecificAction), which force-runs a named action directly, bypassing trigger relevance — here the attack my target action (the same action the bare attack and tank-only tank attack triggers map to). The flyout's role variants prepend an @ qualifier: the base = no @ (whole group), then @tank / @heal / @dps / @melee / @ranged. Broadcast to the group (CB_SendGroupCommand → PARTY/RAID), so one message reaches every bot and the @ filter (see "Command targeting") selects who reacts. Whisper-only path is never taken (group broadcast).
pull my target ✅ Action Bar "Pull" button. TriggerNode("pull") → pull my target action. The bot's class pull strategy + PullMultiplier drive the actual pull (auto-selects the equipped ranged-weapon shot; PullMultiplier allows pull actions, follow, and set facing, and vetoes other actions mid-pull). Role-restricted in C++ (PullActions.cpp:47): only bots identified as tanks (PlayerbotAI::IsTank(bot)) execute the pull; non-tanks return false immediately. Broadcast via CB_SendGroupCommand.
release / revive ✅ Action Bar "Release" flyout — death-state control. release (supported; ReleaseSpiritAction) releases a dead bot's spirit (it becomes a ghost). revive (TriggerNode("revive") → the spirit healer action — not ReviveFromCorpseAction) brings a released bot back at the nearest spirit healer. Both broadcast via CB_SendGroupCommand.
cast <spell> [on <target>] / cast 13262 <link> ✅ Dispatched for Spellbook dual-click casting and inventory disenchanting (CastCustomSpellAction).
r <link> ✅ Quest reward picker (RewardAction). Sends itemlink of the chosen reward on turn-in.
los gos ✅ Whisper fallback for querying nearby interactive game objects (TellLosAction).
reset botAI ✅ "Reset AI" button on Individual tab header (ResetAiAction). Clears saved repository settings and rebuilds combat/non-combat/dead strategy sets from the server defaults. It does not explicitly reset the current context's formation or saved movement positions. Bare whisper reset instead runs PlayerbotAI::Reset(true), which cancels logout, stops movement and spellcasting, and resets reactions, targets, travel, and action engines while preserving current strategies.

co / nc operators (ChangeStrategyAction.cpp)

Prefix operators on each strategy token:

  • +name — add strategy
  • -name — remove strategy
  • ~name — toggle (server decides on/off; avoids our read-then-set round-trip) — unused
  • ! — reset all strategies for that state (SelectiveResetStrategies) — unused; good "reset" button
  • ? — query active strategies (the reply CleanBot already parses)

The server also registers de … to edit dead-state strategies (ChangeDeadStrategyAction); CleanBot's strategy controls expose co and nc only.

Strategy names are hardcoded in Individual/ClassData.lua/Individual/Strategies.lua. The help command returns the live list via GetSupportedStrategies() if dynamic discovery is ever wanted. The full strategy reference — what each token does, per-class coverage, and known conflicts — lives in playerbot-strategies.md.

Command targeting — @ qualifiers (src/Bot/Cmd/ChatFilter.cpp)

A command may lead with one or more @… qualifiers that restrict which of your bots react, e.g. @tank co +passive, @warrior @melee s gray. Source: CompositeChatFilter runs each filter in turn — a filter returns "" (this bot ignores the command) or strips its leading @token and passes the rest on. They apply to whispers and party/raid chat alike (the filter runs in PlayerbotAI::HandleCommand for every channel). Chaining is order-sensitive: the composite visits strategy, class, RTI, combat type, level, subgroup, spec, aura, and aggro filters once in that order. A qualifier left after its filter has run is not revisited.

The role checks IsTank/IsHeal/IsDps default to bySpec=false, which reads ContainsStrategy(STRATEGY_TYPE_*) — the bot's active strategy, not its talent spec.

Qualifier Matches bots where… Filter class
@tank tank strategy active StrategyChatFilter
@heal heal strategy active StrategyChatFilter
@dps not tank and not heal StrategyChatFilter
@ranged / @melee IsRanged (strategy) and class allows ranged/melee Strategy + CombatType
@rangeddps / @meleedps ranged/melee and not tank/heal StrategyChatFilter
@<class> @dk @druid @hunter @mage @paladin @priest @rogue @shaman @warlock @warrior ClassChatFilter
@<n> / @<from>-<to> bot level == n / within range LevelChatFilter
@group<list> bot's raid subgroup ∈ list (@group1, @group1,3, @group1-2) SubGroupChatFilter
@<spec> @arms @fury @frost @bear @cat @bdkt @bdkd … (spec-tab, druid/DK by role) SpecChatFilter
@star…@skull bot is that raid-target-icon, or its current target is RtiChatFilter
@aura<id> / @noaura<id> bot has / lacks that aura AuraChatFilter
@aggroby<id|"name"> bot is currently aggroed by that creature AggroByChatFilter

CombatType's class rule (used for @melee/@ranged): war/pal/rogue/dk = melee; hunter/priest/ mage/warlock = ranged; druid = melee if tank else ranged; shaman = ranged if heal else melee.

CleanBot overhearing (Overhear.lua) mirrors the families it can evaluate from cached state + live unit info — role, class, melee/ranged, level, subgroup. The server-only families (@<spec>, @aura/@noaura, @aggroby, RTI @star…@skull) and any unrecognized @token cause the overheard command to be skipped (not applied to anyone) rather than mis-targeted; the next authoritative sync reconciles. @melee/@ranged use the deterministic class+role rule above as a close approximation of the server's strategy-based IsRanged.

talents (ChangeTalentsAction.cpp)

Usage string from source: talents switch <1/2>, talents autopick, talents spec list, talents spec <specName>, talents apply <link>

  • talents (no args) — reports current spec — unused
  • talents switch 1 / 2 — dual-spec switch — unused
  • talents autopick — auto-assign talents — unused
  • talents spec list — query available spec names — ✅ used (premade-spec dropdown; fetched once per class per session; finalized by TALENT_SPEC_END through the bridge or reply silence through chat)
  • talents spec <name> — set a named spec — ✅ used
  • talents apply <link> — apply a full build from a talent-calculator link — unused

parseItems (InventoryAction.cpp)

The e / u / ue / t / items commands resolve item arguments through parseItems, which accepts: item links, item IDs, item names (free-text), equipment slot numbers, item quality, item class/subclass, saved outfit names, the count suffix usage <n>, and the keywords ammo, food, drink, mount, pet, recipe, quest, healing potion, mana potion, conjured food/drink/water.

stats reply fields (StatsAction.cpp)

Order: gold (formatMoney), free/total Bag, pct% (repairCost) Dur, xp%/rest% XP. Laced with |c…|h|r escape codes; bag is free/total. CleanBot parses gold/bag/dur/xp; repair cost and rest-XP are present but unused.


Available commands CleanBot does not use (ranked by fit)

  1. rti <marker> (RtiAction.cpp) — sets the bot's auto-mark target (STAR/CIRCLE/DIAMOND/TRIANGLE/MOON/SQUARE/CROSS/SKULL, or ? to query; rti cc for the crowd-control marker). The RTI opcode is already allowlisted in Bridge.lua but no rti command is ever sent — plumbing without a feature.
  2. outfit (OutfitAction.cpp) — named gear sets. outfit <name> +[item] / -[item] to build, outfit <name> equip / replace, outfit <name> update (snapshot current gear), outfit <name> reset, outfit ? to list. Pairs with the equip/paperdoll panel.
  3. repair (RepairAllAction) — send a bot to repair. While repair all is not a distinct trigger in C++, typing repair all passes "all" as a parameter that RepairAllAction completely ignores, so it functions identically to repair. Companion to the durability stats already reports.
  4. go <arg> (GoAction.cpp) — parameterized movement (see the go subsection below). Most relevant form: go <unit name> walks the bot to a nearby matching NPC/player by name — e.g. stepping a bot onto a banker so the bank commands pass their proximity check. (Bounded by the bot's search range — it's the last-leg positioner, not a long-haul travel; pair with summon/follow to get the bot into the area first.)
  5. Movement chat shortcuts: follow, stay, flee, runaway (TriggerNodes → "<name> chat shortcut"). guard, sit, and return are strategy/action names, not registered chat shortcuts in the source reviewed. Unused by CleanBot — the Action Bar's Movement flyout (Follow / Stay / Runaway) instead drives the persistent movement strategies via co/nc (the exclusive movement group), not these chat shortcuts. Note flee ≠ runaway: the flee shortcut applies +follow,-stay,+passive in both states, while the runaway shortcut enables the runaway movement strategy. The internal actions are separate: FleeAction uses MoveAway when the current target is in melee range; RunAwayAction calls Flee, which repositions near a friendly or uses FleeManager. Those internal actions perform one movement per call (no loop) — see playerbot-strategies.md → "Movement modes" for the source-verified breakdown.
  6. stance (Stances.cpp:240–280) — bot combat posture and positioning: stance ? (queries current stance), stance show (places a map ping at calculated position), or stance near|tank|turnback|behind.

Lower priority / situational

mail / sendmail, taxi, info queries position / los / reputation / emblems, pet management (pet, pet attack), teleport (TeleportAction), and the dynamic help command (live command + strategy lists). (summon is used — see "Commands CleanBot already sends".) The profession-related commands (spells, trainer, craft, glyphs) have their own section — see Professions below.

Professions — spells / trainer / craft / glyphs

The chat commands covered here provide a read path (spells), a learn path (trainer), a trade-mediated crafting path (craft + trade), and glyph-slot management. CleanBot's Professions window uses bridge endpoints for profession data and crafting. It does not currently send the chat commands listed here, which are absent from its bridge allowlists. Implementations: ListSpellsAction.cpp, TrainerAction.cpp, SetCraftAction.cpp + CraftValue.h, and TradeStatusAction.cpp.

spells [filter] (ListSpellsAction) — the data-out for "what does this bot know / can make", and it is profession-aware. Reply header === Spells ===, one entry per line (sorted), or No spells found. when nothing matches. It walks the bot's active, non-passive spells for the current spec. The filter's first token is run through parseSkill, so it doubles as a profession selector:

  • spells <profession> — list only that skill line, e.g. spells alchemy / mining / tailoring / enchanting / engineering / herbalism / skinning / leatherworking / blacksmithing / jewelcrafting / inscription / cooking / first aid / fishing. An empty result means no active spells passed the filters; passive spells and spells outside the active spec are excluded, so this alone does not prove the bot lacks that profession.
  • Each craftable line shows the crafted item, its reagents (annotated (xN) for how many the bot holds, or (buy) if vendor-buyable), a leading (xN) = how many it could craft right now from bags, and a skill-difficulty color — orange/yellow/green/gray — derived from the bot's current skill value vs the recipe's ranks (so the color is an indirect read-out of how trained the profession is).
  • Extra filters: spells <skill> <name> (name substring), a level range spells <skill> 60-70, an equipment-slot filter, and + / spells +<skill> to show only what's craftable now from current reagents.
  • Note: the action deliberately re-sends the full list so client addons (Multibot/Unbot) can reconstruct the spellbook — i.e. this is the intended hook for profession/recipe data.

trainer (TrainerAction) — list/learn at a trainer NPC.

  • Targeting: with a master, the bot resolves the trainer from its master's selected unit (GetMaster()->GetSelectedUnit()), so you click the trainer, then whisper the bot. Without a master it uses its own selected unit. isUseful checks that the trainer is alive and in the world; isPossible checks trainer validity and teachable spells. These methods do not check interaction distance.
  • Bare trainer can learn automatically under the learning conditions below. When learning is off, the reply is --- Can learn from <Name> ---, then <Spell> <cost> per line and Total cost: <money> (when non-zero). The list is filtered through CanTeachSpell, so it already excludes spells the bot is too low-level for, lacks prerequisites/rep for, or already knows — i.e. it is genuinely what this bot can learn here.
  • trainer learn requests learning all eligible spells; trainer learn <spelllink> requests one, subject to trainer eligibility and cost checks.
  • Learning condition: learning is enabled if the arguments contain learn, the bot is a random bot, or Playerbots.AllowLearnTrainerSpells is enabled together with either a non-tradeskill trainer or a master who is not a real player. The configuration defaults to true; it controls the last condition, not the explicit learn or random-bot cases.

craft <item> / craft ? / craft reset (SetCraftAction) + trade (TradeStatusAction) — crafting is trade-mediated, not fire-and-forget:

  • craft <itemlink|itemId> sets the craft target. The bot must already know the recipe (it scans its own create-item spells); it then computes the required reagents and a craft fee (max(itemLevel, requiredLevel)² / 40) and whispers I will craft <item> using reagents: … (craft fee: <money>). craft ? repeats it (incl. reagents handed over so far); craft reset → I will not craft anything. A non-recipe → I cannot craft this.
  • You then open a trade and put the reagents in: on accept, the bot tallies them (AddObtained), produces the item, and charges the craft fee through the trade (GetCraftFee); reagents are consumed (Crafted). There is no "just go craft X" command.

Glyphs — glyphs (TellGlyphsAction, list), glyph equip (EquipGlyphsAction), remove glyph (RemoveGlyphAction). Glyph-slot management (using inscription products), not Inscription leveling.

Item interaction: While there is no standalone disenchant word trigger, disenchanting an item on demand is handled via cast 13262 <link> (dispatched by CleanBot's inventory context menu for enchanters). General automation also exists via the loot strategy (ll disenchant mode — see the ll row above), exposed in CleanBot's Loot Quality dropdown. Other batch profession actions (prospect / mill / smelt / "enchant my item") do not have direct named triggers.

go — move to a unit / object / coordinates (GoAction.cpp)

Trigger go — confirmed in the supported vector (trigger == action; action name is "Go"). Whisper-only; not bridge-allowlisted. Forms parsed by GoAction::Execute:

  • go <unit name> — matches the nearest NPC or friendly player by case-insensitive name substring (strstri) and walks to it. Bounded by the bot's search range (roughly its visibility radius) — the unit must already be reasonably near, so this positions a bot the last leg, not across a zone. Bank use: get the bot to the bank vicinity first (summon / follow), then go <bankerName> to step it onto the banker so the bank commands satisfy their "banker NPC in range" check.
  • go x,y — zone coordinates (validates terrain/water/height, then pathfinds).
  • go x;y;z — raw map coordinates.
  • go [game object] — move to a spawned game object (by link/GUID) within reaction distance.
  • go position — move to a saved named position from context.
  • go travel <destination> — hands off to the travel-target system (ChooseTravelTargetAction).
  • go ? — reply with the bot's current coordinates.
  • (no recognized arg) — help reply: "Whisper 'go x,y', 'go [game object]', 'go unit' or 'go position' and I will go there".

Other movement triggers seen in the registry, for reference: one-shots follow / stay / flee / move from group (TriggerNodes → "<name> chat shortcut"), and supported entries summon, teleport, taxi, position, leave, formation. None are verified beyond their presence in the trigger registry.


Item transfer between bots / to the player

How items actually move out of a bot, and the constraints — relevant if a bot-to-bot inventory-trading feature is ever added.

Mechanism Source Direction Immediate? Notes
Trade — t <link> / nt <link> TradeAction.cpp bot ↔ player, bot ↔ bot No (UI + accept) Trigger is t (nt = non-traded slot). TradeAction opens a trade with the master/group member if one isn't open, then toggles the item in the bot's trade slots (re-send removes). This is what CleanBot's drag-to-trade uses.
Auto-accept TradeStatusAction.cpp — — When the other side clicks Accept, the bot runs CheckTrade() and auto-accepts (HandleAcceptTradeOpcode). Your own bots give for free (the non-random-account path returns true regardless of money); random/server bots want money or a discount (CheckTrade cost logic). So a player receiving from their own bot is effectively a single Accept click.
Direct give — GiveItemAction GiveItemAction.cpp bot → bot only Yes (no trade window) MoveItemFromInventory → MoveItemToInventory, instant. Hard constraint: the receiver must be a playerbot (GET_PLAYERBOT_AI(receiver) must be non-null) — a real player can never receive this way. AI-selected target: the action uses "party member without item" (also GiveFoodAction / GiveWaterAction for "party member without food/water"); it does not accept a recipient name from chat parameters.
Mail — mail / sendmail mail actions bot → anyone No (mailbox + delay) Goes through the mail system; not immediate.

Transfer constraints:

  • GiveItemAction requires a playerbot receiver and selects it through the AI value "party member without item". That action cannot transfer items to a real player.
  • Its Execute method ignores chat parameters, so it does not accept a recipient name supplied in a chat command. CleanBot's item-transfer interface uses the trade flow.
  • As always, the command word is the trigger (t), not the action name — see the triggers vs. actions note above.

Account / alt-account commands (.playerbots account ...)

These are server chat dot-commands (sent via SendChatMessage(..., "SAY")), not bot action commands — they're registered in src/Script/PlayerbotCommandScript.cpp and handled in src/Bot/PlayerbotMgr.cpp. CleanBot uses them for the Manage tab's Altbots section.

Command Notes
.playerbots account setKey <key> Sets a security key for the account you're logged into (HandleSetSecurityKeyCommand — accountId = session account). Stored SHA-256-hashed in playerbots_account_keys.
.playerbots account link <accountName> <key> Links another account to yours. The key is mandatory and is validated against the target account's stored key.
.playerbots account linkedAccounts Lists linked accounts (reply header Linked accounts: then - NAME lines).
.playerbots account unlink <accountName> Removes the link (both directions).

Linking requires a key — there is no keyless path (HandleLinkAccountCommand):

  1. The command parser rejects a missing key token → prints the Usage: line and aborts (PlayerbotCommandScript.cpp: if (!accountName || !key)).
  2. The handler looks up the target account's row in playerbots_account_keys; if none exists (the account never ran setKey) it replies Invalid security key. and aborts. Otherwise it SHA-256-hashes the supplied key and compares to the stored hash.

So an alt with no security key cannot be linked until you log into that alt and run setKey. Because setKey only targets the logged-in account, this is inherently a cross-login workflow — CleanBot's link flow surfaces this as guidance when the user says they have not set a key, showing the setKey command in a copyable popup (ManageTab.lua, NS.CB_ShowCopyPopup).


Bot management commands (.playerbots bot ...)

Also server chat dot-commands (sent via SendChatMessage(..., "SAY")), registered in PlayerbotCommandScript.cpp and handled by PlayerbotMgr::HandlePlayerbotMgrCommand. These are player-usable (SEC_PLAYER) — not the GM-only .playerbots rndbot console command.

Command Used by Notes
.playerbots bot add <name> / ... remove <name> (rm) Manage tab (Login/Logout) Spawn / despawn a specific bot character by name (also remove * to log all out).
.playerbots bot addclass <class> [male|female] Dungeon Finder recruiter (Recruiter.lua) Pulls a bot of <class> (warrior/paladin/hunter/rogue/priest/shaman/mage/warlock/druid/dk) from the addclass pool and adds it to your group, kept near your level (reinitialized to your level if more than 3 levels away). Gated by Playerbots.AddClassCommand (default 1 = players allowed; 0 = GM-only → "You do not have permission…"). DK needs master level ≥ the heroic start level (55). Empty pool → "Add class failed, no available characters!".
.playerbots bot self Settings → Other → Behavior (SettingsTab.lua), when the bridge is absent Toggles playerbot AI control for your own character; replies "SelfBot is now active." or "SelfBot is now deactivated.". With the bridge, the checkbox uses explicit RUN~SELF_BOT activation/deactivation requests instead.

Role isn't a parameter — addclass takes class (+ optional gender) only. CleanBot's recruiter applies the chosen role after the bot joins by whispering talents spec <rolespec> (see the talents section and NS.CLASS_STRATEGIES); it identifies the just-joined bot by diffing the group roster (PARTY_MEMBERS_CHANGED / RAID_ROSTER_UPDATE) and matching its class.


Source map

  • Command → action registration: src/Ai/Base/ActionContext.h
  • Chat triggers (trigger ≠ action; attack/pull/release/revive/follow/… + the supported vector): src/Ai/Base/Strategy/ChatCommandHandlerStrategy.cpp
  • Command dispatch + the do <action> / d <action> force-run (DoSpecificAction): src/Bot/PlayerbotAI.cpp (PlayerbotAI::HandleCommand)
  • Strategy parsing: src/Ai/Base/Actions/ChangeStrategyAction.cpp
  • Talents: src/Ai/Base/Actions/ChangeTalentsAction.cpp
  • Item resolution / items: src/Ai/Base/Actions/InventoryAction.cpp
  • stats: src/Ai/Base/Actions/StatsAction.cpp
  • rti: src/Ai/Base/Actions/RtiAction.cpp
  • go / movement-to-target: src/Ai/Base/Actions/GoAction.cpp
  • outfit: src/Ai/Base/Actions/OutfitAction.cpp
  • reward: src/Ai/Base/Actions/RewardAction.cpp
  • quests: src/Ai/Base/Actions/ListQuestsActions.cpp
  • account dot-commands: src/Script/PlayerbotCommandScript.cpp (parsing) + src/Bot/PlayerbotMgr.cpp (HandleSetSecurityKeyCommand / HandleLinkAccountCommand / HandleViewLinkedAccountsCommand / HandleUnlinkAccountCommand)
  • bot dot-commands (add / remove / addclass): src/Script/PlayerbotCommandScript.cpp + src/Bot/PlayerbotMgr.cpp (HandlePlayerbotMgrCommand)
  • Bridge allowlists / opcodes: Bridge.lua (mirrors MultiBotBridge.cpp)

Clone this wiki locally