benilla-re systems structs docs

Script::GetSpellAutocast

function · ui · primitive

Address
0x4b4180 · 191 bytes, up to 0x4b423e
Signature
int __fastcall (lua_State *L)
Meaning
Returns the pet autocast allowed and enabled flags of a book spell, as 1 or nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/spellbook#book-spell-functions

Finding: Book spell functions in ui: the spell book

GetSpellCooldown (0x4b40a0) returns start and duration times 0.001 and the enable flag, from 0x6e2ea0 for the slot's spell. GetSpellAutocast (0x4b4180) returns two values, nil unless the slot is a pet-book spell, then bits 31 and 30 of its pet spell flags (0x4bd160) as 1 or nil. ToggleSpellAutocast (0x4b4240) toggles a pet-book spell through 0x4bccb0. IsSpellPassive (0x4b44e0) pushes 1 for Attributes & 0x40, else nil. PlayerHasSpells (0x4b43f0) always pushes 1. HasPetSpells (0x4b4410) pushes nil, nil for an empty pet book, else the pet spell count and the pet token of the player's class record (+0x10), or PET without a player.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.