benilla-re systems structs docs

PickupBag

function · ui · orchestration

Address
0x4c7b00 · 245 bytes, up to 0x4c7bf4
Signature
void __fastcall (uint32_t slot)
Meaning
Clears the cursor, then puts the bag at a slot on it and locks the bag
Confidence
verified, proof one
Finding
ui/bags#picking-up-a-bag

Finding: Picking up a bag in ui: bags and bag slots

PickupBagFromSlot(slot) is 0x4c8fa0, which returns nothing; its argument rules are those of PutItemInBag (Invalid bag slot in PickupBagFromSlot). The worker 0x4c7b00 has the same three gates, then clears a held item (ClearCursor(1, 1), releasing its lock). An empty slot goes to 0x4c7300(slot). An occupant that is not a container (mask 4) or is locked ([item+0x314] bit 0) is left alone; otherwise the bag goes on the cursor (SetCursorItem(slot, 1, item, player, 0)) and is locked.

The derivation is in the doc.

Callers 1

Callees 7

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