Script::UseContainerItem
function · ui · primitive
- Address
0x4fa0e0· 889 bytes, up to0x4fa458- Signature
int __fastcall (lua_State *L)- Meaning
- Uses a bag item: repair, bank store, bank deposit, sell, auto-equip or the use ladder
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/bags#using-a-container-item
Finding: Using a container item in ui: bags and bag slots
UseContainerItem(index, slot [, onSelf]) (0x4fa0e0) uses the item in a bag slot. A non-number first or second
argument raises the usage text. With no player, an unresolved pair or a busy item (bit 0 of +0x314) it does nothing; else
it clears the cursor, always, and takes the first arm that applies. The repair cursor on a repairing vendor repairs
(0x2a8; ERR_NOT_ENOUGH_MONEY if the cost exceeds the money). A bank-flagged item sends 0x282, an open bank window 0x283
and an open vendor window 0x1a0, each then locking the item. Otherwise an item with an inventory type and no quest start
is auto-equipped, and anything else goes to the use ladder.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 27
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- SndInterfacePlayInterfaceSound sound
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- 0x48efa0 ui
- ClearCursor ui
- LockItem ui
- CGGameUI::DisplayError ui
- 0x4c9a80 ui
- ResolveContainerSlot ui
- MerchantCanRepair ui
- GetItemRepairCost ui
- GetBaseCursorMode ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- ClientServices::Send net
- CGItem_C::Use objectlayer
- GetItemClass objectlayer
- GetItemInventoryType objectlayer
- CGPlayer_C::AutoEquipItemInSlot objectlayer
- CGPlayer_C::AutoStoreBankItem objectlayer
- CGPlayer_C::AutoBankItem objectlayer
- SendSellItem objectlayer
- GetItemInSlot objectlayer
- GetScriptFlagArg ui
- lua_isnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.