Script::GetMerchantItemInfo
function · ui · primitive
- Address
0x4fb150· 441 bytes, up to0x4fb308- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the name, icon, price, quantity, stock and usability of a vendor item
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/inventoryverbs#vendor-stock
Finding: Vendor stock in ui: inventory, container, bank and vendor getters
GetMerchantNumItems() returns the vendor's item count and CloseMerchant() closes the window. GetMerchantItemInfo(index) returns
the item name (nil while uncached), the icon path, the price, the bundle quantity, the number available (-1 for unlimited) and 1 when the player can use the item; for an
unusable item the last is nil, and an index past the list gives nil, nil, 0, 1, 0, 1. GetMerchantItemLink(index) returns the link or no
value. GetMerchantItemMaxStack(index) returns the stack size of the item when the row's bundle quantity is 1 or less, else 1. BuyMerchantItem(index [, quantity]) clears the cursor and
buys with the quantity from 1 to 255 (1 for a missing or below-1 number).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 14
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- AskMerchantRowRecord ui
- ClientDBStringLookup unassigned
- GetInventoryIconByDisplayId 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.