From 84b673bf3871970e43f8358728b5c4aedfc3f1e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 16:57:12 +0300 Subject: eathena: add packet CMSG_MOVE_TO_CART 0x0126. --- src/net/eathena/inventoryhandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/eathena/inventoryhandler.cpp') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index dba668745..7fa96f64e 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -217,6 +217,12 @@ void InventoryHandler::moveItem2(const int source, const int slot, outMsg.writeInt16(static_cast(slot + STORAGE_OFFSET)); outMsg.writeInt32(amount); } + else if (source == Inventory::INVENTORY && destination == Inventory::CART) + { + MessageOut outMsg(CMSG_MOVE_TO_CART); + outMsg.writeInt16(static_cast(slot + INVENTORY_OFFSET)); + outMsg.writeInt32(amount); + } } void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg) -- cgit v1.2.3-60-g2f50