From 05fe7fa2f5a3a8c31bce7336da82145d99e5f477 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 00:15:41 +0300 Subject: eathena: add partial support for packet SMSG_PLAYER_IDENTIFIED 0x0179. --- src/net/eathena/inventoryhandler.cpp | 13 +++++++++++++ src/net/eathena/inventoryhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 16 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index e936955e1..96a88c0b3 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -105,6 +105,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_CART_ITEMS, SMSG_PLAYER_CART_REMOVE, SMSG_PLAYER_IDENTIFY_LIST, + SMSG_PLAYER_IDENTIFIED, 0 }; handledMessages = _messages; @@ -233,6 +234,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processPlayerIdentifyList(msg); break; + case SMSG_PLAYER_IDENTIFIED: + processPlayerIdentified(msg); + break; + default: break; } @@ -959,4 +964,12 @@ void InventoryHandler::processPlayerIdentifyList(Net::MessageIn &msg) msg.readInt16("inv index"); } +void InventoryHandler::processPlayerIdentified(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt16("inv index"); + msg.readUInt8("flag"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index b65ebdba9..719515c33 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -117,6 +117,8 @@ class InventoryHandler final : public MessageHandler, static void processPlayerIdentifyList(Net::MessageIn &msg); + static void processPlayerIdentified(Net::MessageIn &msg); + static Ea::InventoryItems mCartItems; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index e9f045341..fe77ca0ea 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -73,6 +73,7 @@ #define SMSG_PLAYER_INVENTORY_REMOVE2 0x07fa #define SMSG_PLAYER_INVENTORY_USE 0x01c8 #define SMSG_PLAYER_IDENTIFY_LIST 0x0177 +#define SMSG_PLAYER_IDENTIFIED 0x0179 #define SMSG_PLAYER_CART_ADD 0x01c5 #define SMSG_PLAYER_CART_ITEMS 0x0993 #define SMSG_PLAYER_CART_EQUIP 0x0994 -- cgit v1.2.3-70-g09d2