- summary: Moves an inventory item to a position: an equipment slot to equip it, or back to the bag to unequip it.
- area: Game.Inventory
Moves an inventory item to a position: an equipment slot to equip it, or back to the bag to unequip it.
Kind request · Area Game.Inventory
Moves one of your items to a new position.
HOW TO SEND IT
1. object_uid: the item's ObjectItem.uid from your inventory (not its
template id, ObjectItem.gid).
2. position: where it goes, a client inventory position:
- equipment slots: 0 amulet, 1 weapon, 2 left ring, 3 belt, 4 right ring,
5 boots, 6 hat, 7 cape, 8 pet, 9-14 the six Dofus slots, 15 shield,
16 mount, 29 ride harness, 27 follower, 28 entity, 30 costume;
- 63: back to the bag (unequip).
3. quantity: how many units to move, 1 for equipment. The client asks
for a number only when moving part of a stack.
4. Skip it when the item is already at that position: the client does not
send it then.
AFTER SENDING
Wait for ObjectMovementEvent with the same uid: your item is now at its
position. If the slot was taken, the item that was there comes back with its
own ObjectMovementEvent to 63.
When you may send it
- Requires
character_loadedinferred - Raised by: the player equips or unequips an item: double-click, drag and drop onto a slot, a slot's double-click, or the quantity popup when moving part of a stack proven
Related messages
- You will then receive
ObjectMovementEventobserved — the server confirms the move with the same uid and position; an item pushed out of the target slot gets its own ObjectMovementEvent back to the bag
Fields
| # | Field | Type | Meaning | You set it |
|---|---|---|---|---|
| 1 | quantity | int32 | How many units of the stack to move; 1 for equipment. (units) | required |
| 2 | object_uid | int32 | The inventory item to move: its uid, as in ObjectItem.uid. (item uid) | required |
| 3 | position | int32 | Where the item goes: an equipment slot (0 amulet, 1 weapon, 2/4 rings, 3 belt, 5 boots, 6 hat, 7 cape, 8 pet, 9-14 Dofus, 15 shield...) or 63 for the bag (unequip). (client inventory position) | required |