benilla-re systems structs docs

OnTrainerItemRecord

function · ui · orchestration

Address
0x4d9140 · 19 bytes, up to 0x4d9152
Signature
uint32_t __stdcall (void *record, bool ready)
Meaning
Refreshes the trainer list when an item template arrives
Confidence
verified, proof one
Finding
ui/spellbook#trainer-icons

Finding: Trainer icons in ui: the spell book

GetTrainerServiceIcon (0x4d8f50) takes the wire spell of the service. When the trainer type 0xb73a08 is 2 and one of the spell's three effects is 36 or 57, it takes that effect's trigger spell (+0x1b4); if the trigger spell's first item type (+0x19c) is nonzero it shows the display icon of that item's template, nil while the template is requested. In every other case it shows the wire spell's own SpellIconID, never the trigger spell's.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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