BuildTrainerList
function · ui · primitive
- Address
0x4d7560· 1571 bytes, up to0x4d7b82- Signature
void __fastcall (uint32_t arg1, uint32_t arg2, uint32_t arg3, uint32_t arg4, uint32_t arg5, uint32_t arg6, uint32_t arg7, uint32_t arg8, uint32_t arg9, uint32_t arg10, uint32_t arg11)- Meaning
- Builds the trainer service records and group headers from the packet arrays, finalizes and selects row 0
- Confidence
- verified, proof one
- Finding
- ui/trainer#list-arrival
Finding: List arrival in ui: the trainer window
SMSG_TRAINER_LIST reads a u64 GUID, a u32 trainer type and a u32 count, then per entry: the spell id u32, the state u8,
the cost u32, the two point costs i32, the required level u8, the required skill line and value u32, and three
required ability ids i32. The handler builds records from every entry; a packet whose GUID is not the current target
builds nothing. The builder sets the filters, creates the group headers, drops rows whose group key is 0, finalizes the list
and selects row 0. It then signals TRAINER_SHOW (0x135).
The derivation is in the doc.
Callers 1
- CGPlayer_C::ReadTrainerList objectlayer
Callees 14
- ClntObjMgrGetActivePlayer objectlayer
- SelectTrainerRecord ui
- GetTrainerGroupKey ui
- FinalizeTrainerList ui
- GrowArrayBy4dabb0 ui
- GrowArrayBy4daca0 ui
- SetArrayCapacity4dad90 ui
- Quantum644dae20 ui
- RoundUp4dae60 ui
- SetArrayCapacity4dae80 ui
- ExpandServerText ui
- SMemAlloc storm
- FrameScript_SignalEvent ui
- _qsort crt
Calls and jumps by a bare address, from tables/calls.tsv.