From f4b973c1e75e43d75ab9d6eb4f629eb10d15a520 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 12:50:25 +0300 Subject: eathena: add partial support for packet SMSG_PLAYER_REFINE 0x0188. --- src/net/eathena/inventoryhandler.cpp | 14 ++++++++++++++ src/net/eathena/inventoryhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 17 insertions(+) (limited to 'src') diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 96a88c0b3..ca354bf6c 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -106,6 +106,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_CART_REMOVE, SMSG_PLAYER_IDENTIFY_LIST, SMSG_PLAYER_IDENTIFIED, + SMSG_PLAYER_REFINE, 0 }; handledMessages = _messages; @@ -238,6 +239,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processPlayerIdentified(msg); break; + case SMSG_PLAYER_REFINE: + processPlayerRefine(msg); + break; + default: break; } @@ -972,4 +977,13 @@ void InventoryHandler::processPlayerIdentified(Net::MessageIn &msg) msg.readUInt8("flag"); } +void InventoryHandler::processPlayerRefine(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt16("flag"); + msg.readInt16("inv index"); + msg.readInt16("val"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index 719515c33..b9ee79912 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -119,6 +119,8 @@ class InventoryHandler final : public MessageHandler, static void processPlayerIdentified(Net::MessageIn &msg); + static void processPlayerRefine(Net::MessageIn &msg); + static Ea::InventoryItems mCartItems; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index fe77ca0ea..5436d57ba 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -80,6 +80,7 @@ #define SMSG_PLAYER_CART_REMOVE 0x0125 #define SMSG_PLAYER_ITEM_RENTAL_TIME 0x0298 #define SMSG_PLAYER_ITEM_RENTAL_EXPIRED 0x0299 +#define SMSG_PLAYER_REFINE 0x0188 #define SMSG_PLAYER_EQUIPMENT 0x0992 #define SMSG_PLAYER_EQUIP 0x0999 #define SMSG_PLAYER_UNEQUIP 0x099a -- cgit v1.2.3-70-g09d2