From 0a30c5377d336459ba6a100af532d3aaa29ddb1b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Sep 2014 17:22:19 +0300 Subject: eathena: add packet CMSG_MOVE_FROM_CART_TO_STORAGE 0x0129. --- src/net/eathena/inventoryhandler.cpp | 6 ++++++ src/net/eathena/protocol.h | 1 + 2 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 9dc644fd5..f319449f4 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -229,6 +229,12 @@ void InventoryHandler::moveItem2(const int source, const int slot, outMsg.writeInt16(static_cast(slot + INVENTORY_OFFSET)); outMsg.writeInt32(amount); } + else if (source == Inventory::CART && destination == Inventory::STORAGE) + { + MessageOut outMsg(CMSG_MOVE_FROM_CART_TO_STORAGE); + outMsg.writeInt16(static_cast(slot + INVENTORY_OFFSET)); + outMsg.writeInt32(amount); + } } void InventoryHandler::useCard(const int index) const diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 751bcf96d..4d1cda3eb 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -287,6 +287,7 @@ #define CMSG_MOVE_TO_CART 0x0126 #define CMSG_MOVE_FROM_CART 0x0127 #define CMSG_CHANGE_CART 0x01af +#define CMSG_MOVE_FROM_CART_TO_STORAGE 0x0129 #define CMSG_ADMIN_ANNOUNCE 0x0099 #define CMSG_ADMIN_LOCAL_ANNOUNCE 0x019C -- cgit v1.2.3-70-g09d2