benilla-re systems structs docs

OnPetSpells

function · ui · primitive

Address
0x4bd990 · 381 bytes, up to 0x4bdb0c
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Reads SMSG_PET_SPELLS into the pet bar, pet book and pet cooldowns
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/petbar#the-pet-spell-message

Finding: The pet spell message in ui: the pet bar and the form bar

SMSG_PET_SPELLS (377), handled by 0x4bd990, clears the bar and reads a guid; a zero guid clears the pet spell list and goes to the tail. Otherwise it reads a u32 duration, a u32 mode word (stored whole), ten u32 slot words (stored without sending), then a u8 count of u32 spells, each kept raw and, when its record exists without Attributes & 0x80, appended to the pet book. Last come a u8 count of cooldowns, each u16 spell, u16 category, u32, u32, the high bit of the last the enable flag, added to the pet cooldown bank. The tail sorts the pet book and sets the guid with 0x4bc7e0.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 20

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