Script::GetCraftReagentInfo
function · ui · primitive
- Address
0x4f74d0· 568 bytes, up to0x4f7707- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the name, icon, needed and carried count of a craft reagent
- 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 14
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- ClientDBStringLookup unassigned
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- GetInventoryIconByDisplayId objectlayer
- CountInventoryItemsByEntry objectlayer
- SStrPrintf storm
- 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.