benilla-re systems structs docs

ReplaceSpellInBook

function · ui · orchestration

Address
0x4b2f50 · 32 bytes, up to 0x4b2f6f
Meaning
Calls 0x4b2c50(old, 1) and then 0x4b25b0(new, 1, old)
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.

Callers 1

Callees 2

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