Script::GetTradeTargetItemInfo
function · ui · primitive
- Address
0x4c00f0· 582 bytes, up to0x4c0335- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the partner's trade slot item: name, icon, count, quality, usable and enchant
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/tradelootverbs#describing-a-trade-slot
Finding: Describing a trade slot in ui: trade window and loot roll verbs
A trade has seven slots, the seventh one the trade will not carry out. GetTradeTargetItemInfo(index) describes the
partner's item in slot index (1 to 7) and GetTradePlayerItemInfo(index) the player's own; both raise
Usage: Get<Side>ItemInfo(index) for a non-number. They return the item name, the icon path, the count, the quality (the
record's quality when its field +0x2c is nonzero, else −1) and, for the partner only, 1 or nil for whether the active
player can use the item. The last value is nil, or for slot 7 the enchant's name. An empty slot or an
unknown item gives nil, nil, 0, 0, nil for the player's side and nil, nil, 0, 0, nil, nil for the partner's.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 16
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- ClientDBStringLookup unassigned
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- TradeGetSideHeaderValue objectlayer
- GetInventoryIconByDisplayId objectlayer
- FormatItemName objectlayer
- CGPlayer_C::CanUseItem 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.