benilla-re systems structs docs

s_trainerType

global · ui

Address
0xb73a08 · 4 bytes, up to 0xb73a0b
Type
uint32_t
Meaning
Holds the trainer type dword of the open trainer list; 2 marks a profession trainer
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.