summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 17:31:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 17:31:16 +0300
commit96057b81bef579e1c73cdb70a0e2589bf806d74a (patch)
treeb75fe752b401a746a7532d1c7dc4108d4911c680 /src/net/eathena
parent0a30c5377d336459ba6a100af532d3aaa29ddb1b (diff)
downloadplus-96057b81bef579e1c73cdb70a0e2589bf806d74a.tar.gz
plus-96057b81bef579e1c73cdb70a0e2589bf806d74a.tar.bz2
plus-96057b81bef579e1c73cdb70a0e2589bf806d74a.tar.xz
plus-96057b81bef579e1c73cdb70a0e2589bf806d74a.zip
eathena: add packet CMSG_MOVE_FROM_STORAGE_TO_CART 0x0128.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/inventoryhandler.cpp6
-rw-r--r--src/net/eathena/protocol.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index f319449f4..7bf1d7d07 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -235,6 +235,12 @@ void InventoryHandler::moveItem2(const int source, const int slot,
outMsg.writeInt16(static_cast<int16_t>(slot + INVENTORY_OFFSET));
outMsg.writeInt32(amount);
}
+ else if (source == Inventory::STORAGE && destination == Inventory::CART)
+ {
+ MessageOut outMsg(CMSG_MOVE_FROM_STORAGE_TO_CART);
+ outMsg.writeInt16(static_cast<int16_t>(slot + STORAGE_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 4d1cda3eb..41649fde1 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_STORAGE_TO_CART 0x0128
#define CMSG_MOVE_FROM_CART_TO_STORAGE 0x0129
#define CMSG_ADMIN_ANNOUNCE 0x0099