Script::PickupBagFromSlot
function · ui · orchestration
- Address
0x4c8fa0· 69 bytes, up to0x4c8fe4- Signature
int __fastcall (lua_State *L)- Meaning
- Picks up the bag at a bag slot through the bag pickup worker and returns nothing
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 3
- PickupBag ui
- ReadInventorySlotArg ui
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.