benilla-re systems structs docs

HandleTrainerMessage

function · objectlayer · primitive

Address
0x5e5f10 · 253 bytes, up to 0x5e600c
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Reads a trainer list, or prints a failed trainer purchase's reason to the console
Confidence
verified, proof one
Finding
objectlayer/inventory#trainers

Finding: Trainers in objectlayer: inventory

0x1b1 (0x5dca60) reads the trainer, a type and a u32 count, and sizes twelve stack arrays, ten of four times the count and two of the count, 42 bytes a spell, all through the probe 0x40a280. The image reserves 0x100000 bytes of stack, so a count above about 25,000 faults in the probe, long before four times the count wraps at 2^30. With the greeting it opens the trainer when the GUID is the one asked (0xc4d788) or 0xbc3f58. 0x1b4 prints one of three console lines for results 0 to 2.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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