GetSlotInContainer
function · objectlayer · primitive
- Address
0x5edf30· 130 bytes, up to0x5edfb1- Meaning
- Returns an item's slot within its container, 0xff when absent, with no null check on the container
- Confidence
- verified, proof one
- Finding
- objectlayer/inventory#opening-and-wrapping-items
Finding: Opening and wrapping items in objectlayer: inventory
0x5edba0(item, &bag, &slot) finds an item's bag index and slot. 0x5edc80 opens an item:
the auto-loot byte follows modifier key 0, the loot target becomes the item, and 0xac goes out
with the bag and slot; 0x5edd60 plays UnwrapGift and sends the same. 0x5edea0 starts
wrapping with an item, 0x5eded0 ends it, and 0x5edfc0(target) sends 0x1d3 with the wrapper's
and the target's bag and slot, then ends it. 0x5ede00 shows ERR_WRONG_BAG_TYPE_SUBCLASS with
the bag family's name for result 0x10.
The derivation is in the doc.
Callers 1
- CGPlayer_C::SendWrapItem objectlayer
Callees 1
- ClntObjMgrObjectPtr objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.