Method PlayerBot.HasBotStrategy [-] [+]

Check whether a named strategy is active for the specified bot state.

Strategy names are the same names used internally by mod-playerbots. Valid names depend on the bot's class/spec and on the selected state.

Common examples: - Non-combat: "nc", "follow", "chat", "default", "quest", "loot", "food", "mount" - Combat: "dps", "heal", "tank", "aoe", "dps assist", "tank assist", "cure" - Class/spec examples: "fire", "frost", "arcane", "holy", "shadow", "resto", "enh", "affli", "demo", "destro", "blood", "unholy", "bm", "mm", "surv" - Dead state examples: "dead", "stay", "follow", "chat"

Use GetBotStrategies to inspect the currently active strategies for a given state, or SendBotCommand(guidLow, "strategy") to view the bot's current strategy listing.

State values are the BotState enum: - 0 = combat - 1 = non-combat - 2 = dead

@return bool

Synopsis

Playerbot.HasBotStrategy( guidLow, strategyName )

Playerbot.HasBotStrategy( guidLow, strategyName, state )

Arguments

number guidLow

Bot GUID low.

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

string strategyName

Strategy name to test.

number state (1)

BotState value.

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

Returns

Nothing.

Generated on
©2026 - ALE Lua Engine