Script::GetTradeSkillTools
function · ui · primitive
- Address
0x4ff980· 470 bytes, up to0x4ffb55- 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
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- FindInventoryItemByEntry objectlayer
- lua_checkstack lua
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.