benilla-re systems structs docs

GetActionSlotSpell

function · ui · primitive

Address
0x4e5a50 · 130 bytes, up to 0x4e5ad1
Signature
int32_t __fastcall (uint32_t slot, uint32_t *book)
Meaning
Returns the spell a slot stands for and which book it comes from
Confidence
verified, proof one
Finding
ui/actionbar#slot-to-spell

Finding: Slot to spell in ui: action bars

0x4e5a50(slot, &book) returns the spell a slot stands for and writes book. A spell slot returns its word with book 0. A macro slot, when 0x4e5030 finds its id and 0x4f0f40 its record, returns the record's cached spell (+0x564: 0, -1 or a spell id) and writes the record's book selector (+0x568: 0 the player's book, 1 the pet's). An item slot returns the first on-use spell of the item's template and writes book 0. Anything else returns 0 and leaves book unwritten, a macro that is missing included.

The derivation is in the doc.

Callers 18

Callees 3

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