benilla-re systems structs docs

Script::PickupInventoryItem

function · ui · orchestration

Address
0x4c8da0 · 64 bytes, up to 0x4c8ddf
Signature
int __fastcall (lua_State *L)
Meaning
Clicks an inventory slot through the slot worker 0x4c7300 and returns nothing
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/bags#pickup-of-an-inventory-slot

Finding: Pickup of an inventory slot in ui: bags and bag slots

PickupInventoryItem(slot) is 0x4c8da0 and calls 0x4c7300 directly. It differs from the bag pickup in six ways: no floor on the slot, so equipment slots and the ammo slot (-1) pass; a held item is placed or swapped, not dropped; the occupant mask is item (2), not container (4); a bank item slot is gated on the bank as well as a bank bag slot; its control gate also passes on bit 20 of the player's flags; and it has the item-targeting leg (a spell waiting for an item target takes the click) and the repair-cursor leg. The ammo leg (slot -1) sends 0x268 with the held ammo's entry.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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