benilla-re systems structs docs

BuildTrainerList

function · ui · primitive

Address
0x4d7560 · 1571 bytes, up to 0x4d7b82
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

Callees 14

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