benilla-re systems structs docs

Script::UseContainerItem

function · ui · primitive

Address
0x4fa0e0 · 889 bytes, up to 0x4fa458
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

Calls and jumps by a bare address, from tables/calls.tsv.