benilla-re systems structs docs

s_initialSpells

global · objectlayer

Address
0xc4d2a0 · 16 bytes, up to 0xc4d2af
Type
uint32_t[4]
Meaning
Holds the initial spell list: capacity, count, data and chunk
Confidence
verified, proof one
Finding
objectlayer/playercombat#spell-book-messages

Finding: Spell book messages in objectlayer: player spells and combat

0x12b (0x5e61c0) reads a u16 spell and an i16 and learns it with notification; with no player yet, the pair is appended to the initial list. 0x12c reads an old and a new u16 spell, calls 0x4e5e60 and 0x4b2f50 with them, then unlearns the old silently and learns the new, or replaces the id in the initial list. 0x12a reads a byte, the initial list (u16 spell and i16 each) and the cooldowns: u16 spell, u16 item, u16 category, i32 spell time and i32 category time, whose bit 31 is a flag. 0x129 reads the 120 action buttons into 0xc4c2b4.

The derivation is in the doc.