Script::GetCraftNumReagents
function · ui · primitive
- Address
0x4f7420· 169 bytes, up to0x4f74c8- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the number of reagents of a craft row
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- tradeskill/craft#reagents-and-links
Finding: Reagents and links in tradeskill: craft
GetCraftNumReagents (0x4f7420), GetCraftReagentInfo (0x4f74d0) and GetCraftReagentItemLink (0x4f7730) run the same code as GetTradeSkillNumReagents, GetTradeSkillReagentInfo and GetTradeSkillReagentItemLink of bindings on the craft rows; the item request of the info function carries the callback 0x4f7710, which rebuilds the craft list. GetCraftItemLink (0x4f72a0) returns an enchant link for a spell whose cast-UI field (+0xc) is 3:
|cffffffff|Henchant:<spell id>|h[<spell name>]|h|r. For any other spell it scans the three effect slots for effect 24 and links the first created item whose template is cached, in the form of the item links of bindings; with none it returns no value.
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.