benilla-re systems structs docs

Script::GetTrainerServiceLevelReq

function · ui · primitive

Address
0x4d93a0 · 111 bytes, up to 0x4d940e
Signature
int __fastcall (lua_State *L)
Meaning
Returns the required level 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.