ClearPetBook
function · ui · orchestration
- Address
0x4b2f70· 22 bytes, up to0x4b2f85- Signature
void __cdecl (void)- Meaning
- Zeroes the pet book's 1024 slots and its count
- Confidence
- verified, proof one
- 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 2
- InitSpellBook ui
- OnPetSpells ui
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.