Method PlayerBot.BotCastSpell [-] [+]

Command the bot to cast a spell on a target.

Synopsis

success = Playerbot.BotCastSpell( guidLow, spellId, target )

Arguments

number guidLow

Bot GUID low.

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

number spellId

Spell ID.

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

nit|ni target

Optional target unit.

Returns

boolean success

True if cast was initiated.

Generated on
©2026 - ALE Lua Engine