Script::GetTradeSkillNumReagents
function · ui · primitive
- Address
0x4ff510· 169 bytes, up to0x4ff5b8- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the number of reagents of a recipe
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- tradeskill/bindings#reagents
Finding: Reagents in tradeskill: bindings
GetTradeSkillNumReagents (0x4ff510) returns the number of the spell's eight reagent slots (+0xa8) that hold an item, 0 for a bad index. GetTradeSkillReagentInfo (0x4ff5c0) takes an index and the 1-based number of a filled slot and returns four values: the item's name, its icon path, the count the recipe needs (+0xc8) and the count the player has. A slot number
that matches no filled slot gives four nils. A reagent whose template is missing gives nil, nil, then the two counts, and the cache request carries the callback 0x4fdc30. The icon path is the icon directory prefix (0x53f810 with 3), a backslash when the prefix is not empty, and the display icon name of the item.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- __ftol crt
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.