benilla-re systems structs docs

AddPetBookSpell

function · ui · primitive

Address
0x4b2f90 · 50 bytes, up to 0x4b2fc1
Signature
void __fastcall (uint32_t spell)
Meaning
Appends a spell to the pet book when its record exists without Attributes & 0x80
Confidence
verified, proof one
Finding
ui/petbar#the-pet-spell-message
Test
ui::pet_book_add_gate

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 1

Callees 0

None by a direct call or jump.

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