benilla-re systems structs docs

Script::TogglePetAutocast

function · ui · primitive

Address
0x4be290 · 149 bytes, up to 0x4be324
Signature
int __fastcall (lua_State *L)
Meaning
Drops a held pet action on a slot, or toggles the slot's autocast
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/petbar#pet-autocast

Finding: Pet autocast in ui: the pet bar and the form bar

TogglePetAutocast(index) with a pet action on the cursor drops it; otherwise 0x4bcbb0(slot) runs the action and pet gates and does nothing unless bit 31 of the slot word is set. It flips bit 30 in the word, stores it, copies it into the raw pet spell array (0x4bd190), sends opcode 0x174 (u64 pet guid, u32 slot, u32 word) and signals PET_BAR_UPDATE. The bar repaints without waiting for the server. ToggleSpellAutocast (ui/spellbook) is a different message, 0x2f3.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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