Method PlayerBot.SendBotCommand [-] [+]

Send a remote command to a bot and return the response string.

Sample commands (non-exhaustive; see PlayerbotAI::HandleRemoteCommand): - "state" : returns "combat", "dead", or "non-combat" - "position" : returns "x y z mapId orientation [|zone name|]" - "tpos" : target's position "x y z mapId orientation" (requires a current target) * "movement" : last movement data - "target" : current target's name - "hp" : bot HP% (and target HP% if any) - "strategy" : list active strategies - "action" : last executed action - "values" : formatted AI values - "travel" : travel target/status - "budget" : money/budget overview

Example: local res = SendBotCommand(guidLow, "position")

Synopsis

response = Playerbot.SendBotCommand( guidLow, command )

Arguments

number guidLow

Bot GUID low.

Valid numbers: integers from 0 to 4,294,967,295.

string command

Command text.

Returns

string response

Response text or nil on error.

Generated on
©2026 - ALE Lua Engine