diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-22 16:27:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-22 16:27:04 +0300 |
commit | 08d9fbf5d4fb388bc186729a1174bf4aef0f8095 (patch) | |
tree | e66e8de2d5cfed35f30026b764538d8b0b900caf /src/net/eathena | |
parent | dc4a8bf50b6285079902da824202d29d767b90ec (diff) | |
download | manaverse-08d9fbf5d4fb388bc186729a1174bf4aef0f8095.tar.gz manaverse-08d9fbf5d4fb388bc186729a1174bf4aef0f8095.tar.bz2 manaverse-08d9fbf5d4fb388bc186729a1174bf4aef0f8095.tar.xz manaverse-08d9fbf5d4fb388bc186729a1174bf4aef0f8095.zip |
Impliment packet SMSG_PLAYER_CART_ADD_ERROR.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 45ea1bc3a..0b3b12b5e 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -1278,9 +1278,17 @@ void InventoryHandler::processFavoriteItem(Net::MessageIn &msg) void InventoryHandler::processCartAddError(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; - - msg.readUInt8("flag"); + switch(msg.readUInt8("flag")) + { + case 0: + NotifyManager::notify(NotifyTypes::CART_ADD_WEIGHT_ERROR); + break; + case 1: + NotifyManager::notify(NotifyTypes::CART_ADD_COUNT_ERROR); + break; + default: + break; + } } void InventoryHandler::processBindItem(Net::MessageIn &msg) |