Script::GetTradePlayerItemInfo
function · ui · primitive
- Address
0x4c0450· 508 bytes, up to0x4c064b- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the player's own trade slot item: name, icon, count, quality 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 15
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- ClientDBStringLookup unassigned
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- TradeGetSideHeaderValue objectlayer
- CGItem_C::GetInventoryIcon objectlayer
- CGItem_C::GetFullName 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.