benilla-re systems structs docs

Script::GetTradeSkillTools

function · ui · primitive

Address
0x4ff980 · 470 bytes, up to 0x4ffb55
Signature
int __fastcall (lua_State *L)
Meaning
Returns the focus and tool names of a recipe with whether they are present
Confidence
verified, proof one
Name from
the community database (idb)
Finding
tradeskill/bindings#tools

Finding: Tools in tradeskill: bindings

GetTradeSkillTools (0x4ff980) returns a flat list of pairs, a name and a flag, for what the recipe needs near the player: first the spell focus object of the spell (+0x3c) with the flag 1 as a constant, then each of the two totem item slots (+0xa0, +0xa4) whose item has a template, with the flag 1 when the player has the item and nil when not. A missing focus, an empty slot or a missing template adds no pair, so the count is 0 to 3 pairs. The template requests carry the callback 0x4fdc30. It returns twice the pair count.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 12

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