diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-11 12:50:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-11 12:50:25 +0300 |
commit | f4b973c1e75e43d75ab9d6eb4f629eb10d15a520 (patch) | |
tree | f9e886412269351eb7482971a7589a6f55d1144d /src/net | |
parent | 05fe7fa2f5a3a8c31bce7336da82145d99e5f477 (diff) | |
download | plus-f4b973c1e75e43d75ab9d6eb4f629eb10d15a520.tar.gz plus-f4b973c1e75e43d75ab9d6eb4f629eb10d15a520.tar.bz2 plus-f4b973c1e75e43d75ab9d6eb4f629eb10d15a520.tar.xz plus-f4b973c1e75e43d75ab9d6eb4f629eb10d15a520.zip |
eathena: add partial support for packet SMSG_PLAYER_REFINE 0x0188.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 14 | ||||
-rw-r--r-- | src/net/eathena/inventoryhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 17 insertions, 0 deletions
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 |