benilla-re systems structs docs

GetItemSlotOnUseSpell

function · ui · primitive

Address
0x4e5ae0 · 158 bytes, up to 0x4e5b7d
Signature
int32_t __fastcall (uint32_t slot)
Meaning
Returns the first on-use spell of an item slot's template, or 0
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 1

Callees 1

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