Start work on OP_MoveMultipleItems (RoF+)

Currently it just kicks to prevent desyncs
This commit is contained in:
Michael Cook (mackal)
2017-11-25 23:56:29 -05:00
parent 29a62dfa85
commit e19b7bd368
6 changed files with 24 additions and 0 deletions
+1
View File
@@ -340,6 +340,7 @@ N(OP_MOTD),
N(OP_MoveCoin),
N(OP_MoveDoor),
N(OP_MoveItem),
N(OP_MoveMultipleItems),
N(OP_MoveLogDisregard),
N(OP_MoveLogRequest),
N(OP_MultiLineMsg),
+14
View File
@@ -1827,6 +1827,20 @@ struct MoveItem_Struct
/*0028*/
};
struct MultiMoveItemSub_Struct
{
/*0000*/ InventorySlot_Struct from_slot;
/*0012*/ InventorySlot_Struct to_slot;
/*0024*/ uint32 number_in_stack;
/*0028*/ uint8 unknown[8];
};
struct MultiMoveItem_Struct
{
/*0000*/ uint32 count;
/*0004*/ MultiMoveItemSub_Struct moves[0];
};
//
// from_slot/to_slot
// -1 - destroy