benilla-re systems structs docs

ReadSupercededSpell

function · objectlayer · primitive

Address
0x5e6330 · 466 bytes, up to 0x5e6501
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Replaces a spell with its new rank in the spell book or the initial list
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 0

None by a direct call or jump.

Callees 12

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