benilla-re systems structs docs

s_trainerSelection

global · ui

Address
0xb73a0c · 4 bytes, up to 0xb73a0f
Type
uint32_t
Meaning
Holds the spell id of the selected trainer service, 0 for none
Confidence
verified, proof one
Finding
ui/trainer#trainer-state

Finding: Trainer state in ui: the trainer window

The window keeps its state in a few cells.

cellholds
0xb73a00the open trainer's GUID (u64), 0 for none
0xb73a08the trainer type: 0 class, 1 talent or mount, 2 tradeskill, 3 pet
0xb73a0cthe selection, a spell id
0xb737b0, 0xb73a10the array of pointers to 0x38-byte service records, and its total length
0xb739c0, 0xb73a14the array of group headers and its length
0xb73a18the visible count, what GetNumTrainerServices returns
0xb73a1c, 0xb73a20, 0xb73a24the state filter, the skill-line filter and the expanded mask

The derivation is in the doc.