From 240cf581ec7e1727097065a55a654dfdb6330ccd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Mar 2015 17:22:04 +0300 Subject: eathena: add pacrtial support for packet SMSG_PLAYER_CART_ADD_ERROR 0x012c. --- src/net/eathena/inventoryhandler.cpp | 12 ++++++++++++ src/net/eathena/inventoryhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 15 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index b0dbab786..62283dd4a 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -115,6 +115,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_COOKING_LIST, SMSG_ITEM_DAMAGED, SMSG_PLAYER_FAVORITE_ITEM, + SMSG_PLAYER_CART_ADD_ERROR, 0 }; handledMessages = _messages; @@ -283,6 +284,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processFavoriteItem(msg); break; + case SMSG_PLAYER_CART_ADD_ERROR: + processCartAddError(msg); + break; + default: break; } @@ -1108,4 +1113,11 @@ void InventoryHandler::processFavoriteItem(Net::MessageIn &msg) msg.readUInt8("favorite (0 - favorite)"); } +void InventoryHandler::processCartAddError(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readUInt8("flag"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index f53050ccd..a902350da 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -137,6 +137,8 @@ class InventoryHandler final : public MessageHandler, static void processFavoriteItem(Net::MessageIn &msg); + static void processCartAddError(Net::MessageIn &msg); + static Ea::InventoryItems mCartItems; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 6b1fd6fc8..311650643 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -81,6 +81,7 @@ #define SMSG_PLAYER_IDENTIFY_LIST 0x0177 #define SMSG_PLAYER_IDENTIFIED 0x0179 #define SMSG_PLAYER_CART_ADD 0x01c5 +#define SMSG_PLAYER_CART_ADD_ERROR 0x012c #define SMSG_PLAYER_CART_ITEMS 0x0993 #define SMSG_PLAYER_CART_EQUIP 0x0994 #define SMSG_PLAYER_CART_REMOVE 0x0125 -- cgit v1.2.3-60-g2f50