BuyTrainerRecord
function · ui · orchestration
- Address
0x4d89d0· 148 bytes, up to0x4d8a63- Signature
void __fastcall (uint32_t index)- Meaning
- Sends the purchase of one available trainer record
- 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 2
Callees 4
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- GetTrainerService ui
- ClientServices::Send net
Calls and jumps by a bare address, from tables/calls.tsv.