summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-23 01:47:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-23 01:47:45 +0300
commitc21d7f9229d7d450012a8cd3b197c0f4432bfb7a (patch)
tree364b8f0571cbce3490b70fc2a2e363ab39ad72a2 /src/net/eathena/inventoryhandler.cpp
parent08fd4bc94a6b8b9a355179118d85dcf8258d619d (diff)
downloadmv-c21d7f9229d7d450012a8cd3b197c0f4432bfb7a.tar.gz
mv-c21d7f9229d7d450012a8cd3b197c0f4432bfb7a.tar.bz2
mv-c21d7f9229d7d450012a8cd3b197c0f4432bfb7a.tar.xz
mv-c21d7f9229d7d450012a8cd3b197c0f4432bfb7a.zip
eathena: add partial support for packet SMSG_CART_INFO 0x0121.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index f628073f0..ab384e2ce 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -94,6 +94,7 @@ InventoryHandler::InventoryHandler() :
SMSG_PLAYER_INSERT_CARD,
SMSG_PLAYER_ITEM_RENTAL_TIME,
SMSG_PLAYER_ITEM_RENTAL_EXPIRED,
+ SMSG_CART_INFO,
0
};
handledMessages = _messages;
@@ -192,6 +193,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
processPlayerItemRentalExpired(msg);
break;
+ case SMSG_CART_INFO:
+ processCartInfo(msg);
+ break;
+
default:
break;
}
@@ -726,4 +731,12 @@ void InventoryHandler::processPlayerStorageRemove(Net::MessageIn &msg)
BLOCK_END("InventoryHandler::processPlayerStorageRemove")
}
+void InventoryHandler::processCartInfo(Net::MessageIn &msg)
+{
+ msg.readInt16("cart items used");
+ msg.readInt16("max cart items");
+ msg.readInt32("cart weight");
+ msg.readInt32("max cart weight");
+}
+
} // namespace EAthena