benilla-re systems structs docs

Script::GetTrainerServiceCost

function · ui · primitive

Address
0x4d92f0 · 170 bytes, up to 0x4d9399
Signature
int __fastcall (lua_State *L)
Meaning
Returns the money and the two point costs of a trainer service
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/trainerverbs#cost-and-level

Finding: Cost and level in ui: trainer window getters and filters

GetTrainerServiceCost(row) returns three numbers: the money cost (record +0x08) and the two point costs (+0x0c, +0x10), all 0 for a missing row. GetTrainerServiceLevelReq(row) returns the required level, the byte at +0x14, or 0. A non-number raises the usage text with the function's own name.

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.