ResolveContainerSlot
function · ui · primitive
- Address
0x4f9820· 266 bytes, up to0x4f9929- Signature
uint32_t __fastcall (lua_State *L, void **container, int32_t *slot, int32_t *bankFlag)- Meaning
- Turns a Lua bag index and slot into a container list, an internal slot and the bank flag
- Confidence
- verified, proof one
- 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 7
- Script::GetContainerItemInfo ui
- Script::GetContainerItemLink ui
- Script::GetContainerItemCooldown ui
- Script::PickupContainerItem ui
- Script::SplitContainerItem ui
- Script::UseContainerItem ui
- Script::ShowContainerSellCursor ui
Callees 5
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetContainerGuid ui
- lua_tonumber lua
Calls and jumps by a bare address, from tables/calls.tsv.