BuyAllTrainerRecords
function · ui · primitive
- Address
0x4d8a70· 35 bytes, up to0x4d8a92- Signature
void __cdecl ()- Meaning
- Buys every visible trainer record in turn
- Confidence
- verified, proof one
- Finding
- ui/trainer#index-law
Finding: Index law in ui: the trainer window
Every trainer getter accepts any index up to the total length, not the visible count. GetTrainerServiceInfo(i) returns
the name, the rank text, the state name and whether the row is expanded; past the total it returns nil, nil, nil, 1. The
other getters (GetTrainerServiceIcon, ...Cost, ...LevelReq, ...SkillReq, ...NumAbilityReq, ...AbilityReq,
...StepReq, ...Description, IsTrainerServiceSkillStep, ...LearnSpell, ...TradeSkill, ...StepIncrease) return nil
or 0 past it. BuyTrainerService(index) sends the purchase of one row (opcode 0x1b2: the trainer GUID and the row's spell id) when the
row exists and its state is 0; any other state is refused silently. An index of 0 or less buys every visible row.
The derivation is in the doc.
Callers 1
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.