benilla-re systems structs docs

Script::IsTradeskillTrainer

function · ui · orchestration

Address
0x4d8ea0 · 38 bytes, up to 0x4d8ec5
Signature
int __fastcall (lua_State *L)
Meaning
Returns 1 when the open trainer is a tradeskill trainer, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/trainerverbs#opening-and-the-type-tests

Finding: Opening and the type tests in ui: trainer window getters and filters

OpenTrainer() asks the server for the trainer list with the player's own GUID, through TalkToTrainer; it does nothing without a player. CloseTrainer() closes the window with a zero GUID. IsTradeskillTrainer() returns 1 when the trainer type is 2, else nil. IsTalentTrainer() returns 1 when no trainer is open or the type is 1 and nil otherwise, so it answers 1 with the window closed. GetTrainerGreetingText() returns the greeting buffer (0xb737b8).

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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