benilla-re systems structs docs

Script::GetTrainerServiceStepReq

function · ui · primitive

Address
0x4d9930 · 513 bytes, up to 0x4d9b30
Signature
int __fastcall (lua_State *L)
Meaning
Returns nil and the number 1 for every trainer service
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/trainerverbs#skill-requirement

Finding: Skill requirement in ui: trainer window getters and filters

GetTrainerServiceSkillReq(row) returns the localized skill line name, the required value and 1 when the player meets it, else nil. The line is record +0x18 and the value +0x1c; both must be nonzero and the line in the store. The player's rank is found by scanning the 128 skill slots (12 bytes each at +0x848 of the field block) for the line and adding the slot's bonus half to its rank. A row without the requirement or no player gives nil, 0, 1; an empty name gives nil, 0 and the flag. GetTrainerServiceStepReq(row) returns nil and the number 1 for every row, because the spell id at record +0x20 is always 0.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 11

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