benilla-re systems structs docs

Script::GetTrainerServiceAbilityReq

function · ui · primitive

Address
0x4d96e0 · 579 bytes, up to 0x4d9922
Signature
int __fastcall (lua_State *L)
Meaning
Returns a required ability's name and rank text and whether it is known
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/trainer#required-abilities

Finding: Required abilities in ui: the trainer window

GetTrainerServiceNumAbilityReq(i) counts the positive entries of the row's three required ability ids. GetTrainerServiceAbilityReq(i, k) returns for entry k a text and a flag: the spell's name and rank as Name (Rank), or the name alone when the rank is empty, and whether the player (or the pet for a service that teaches a pet spell) knows that ability or a higher rank. The flag defaults to true when the spell, the unit or the record cannot be found.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 14

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