Script::PickupMerchantItem
function · ui · primitive
- Address
0x4fb760· 240 bytes, up to0x4fb84f- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Lua function PickupMerchantItem
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/merchantcursor#picking-up-a-merchant-item
Finding: Picking up a merchant item in ui: the vendor cursors
PickupMerchantItem(index) is two verbs, chosen by the cursor. With no active player it does nothing. With an
item on the cursor (kind 1) it sells it, whatever the index: it sends the sell message (opcode 0x1a0) to
the open vendor with the vendor's GUID, the item's GUID and the split count as a byte, then clears the cursor
with unlock 0, so the item stays locked until the server answers. It does not test that a merchant is open, so
with none it sends a vendor GUID of 0. It returns no values.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 10
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetCursorItemGuid ui
- CGGameUI::SetCursorVirtualItem ui
- GetCursorAmmo ui
- ClearCursor ui
- SendSellItem objectlayer
- lua_isnumber lua
- lua_tonumber lua
Calls and jumps by a bare address, from tables/calls.tsv.