benilla-re systems structs docs

Script::GetTradeSkillReagentInfo

function · ui · primitive

Address
0x4ff5c0 · 568 bytes, up to 0x4ff7f7
Signature
int __fastcall (lua_State *L)
Meaning
Returns the name, icon, needed and carried count of a recipe reagent
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 14

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