benilla-re systems structs docs

GetTrainerService

function · ui · orchestration

Address
0x4d89b0 · 20 bytes, up to 0x4d89c3
Signature
void * __fastcall (uint32_t index)
Meaning
Returns the trainer service record at an index, or null past the count
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 15

Callees 0

None by a direct call or jump.

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