CGPlayer_C::SwapItems
function · objectlayer · primitive
- Address
0x5e0c40· 985 bytes, up to0x5e1018- Meaning
- Swaps two slots with 0x10d or 0x10c, first asking to confirm binding an item moved into equipment
- Confidence
- verified, proof one
- Finding
- objectlayer/inventory#moving-items
Finding: Moving items in objectlayer: inventory
The senders take bags as GUIDs and turn each into an index of the player's list with
CGPlayer_C::FindSlotIndex (0xff for the player itself).
| function | opcode | body |
|---|---|---|
0x5e0c40 | 0x10d, or 0x10c | src slot, dst slot within the player; else dst bag, dst slot, src bag, src slot |
0x5e1210 | 0x10e | src bag, src slot, dst bag, dst slot, count |
0x5e12e0 | 0x10b | src bag, src slot, dst bag |
0x5e18f0, 0x5e19e0 | 0x282, 0x283 | bag, slot of an occupied slot |
0x5e1ad0, 0x5e1b40 | 0x108, 0x109 | loot slot; bag, slot, loot slot |
0x5e1480 | 0x10a, or 0x268 | bag, slot; or the ammo's entry |
The derivation is in the doc.
Callers 6
- Script::EquipCursorItem ui
- ClickInventorySlot ui
- PutItemInContainer ui
- Script::PickupContainerItem ui
- OnSwapItemRecord objectlayer
- CGPlayer_C::AnswerBindConfirm objectlayer
Callees 11
- CDataStore::PutInt8 base
- CDataStore::PutUInt32 base
- ClntObjMgrObjectPtr objectlayer
- ClearCursor ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- ClientServices::Send net
- CGItem_C::IsBound objectlayer
- AllocItemSwap objectlayer
- CGPlayer_C::FindSlotIndex objectlayer
- CGPlayer_C::CanUseItem objectlayer
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.