diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 15:59:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 15:59:14 +0300 |
commit | 1769c5e53a8a2765a19906fb94f992bbe579eefe (patch) | |
tree | 73c0f2ef0d8d61de40876848bdb3120512e9a599 | |
parent | 7df47310cba40daf9f29fbebfddef8b978b2770f (diff) | |
download | mv-1769c5e53a8a2765a19906fb94f992bbe579eefe.tar.gz mv-1769c5e53a8a2765a19906fb94f992bbe579eefe.tar.bz2 mv-1769c5e53a8a2765a19906fb94f992bbe579eefe.tar.xz mv-1769c5e53a8a2765a19906fb94f992bbe579eefe.zip |
eathena: add partial support for packet SMSG_PLAYER_STORAGE_PASSWORD_RESULT 0x023c.
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 13 | ||||
-rw-r--r-- | src/net/eathena/inventoryhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 17 insertions, 1 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 52f793eb9..c60af4755 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -111,6 +111,7 @@ InventoryHandler::InventoryHandler() : SMSG_PLAYER_REPAIR_EFFECT, SMSG_PLAYER_REFINE_LIST, SMSG_PLAYER_STORAGE_PASSWORD, + SMSG_PLAYER_STORAGE_PASSWORD_RESULT, 0 }; handledMessages = _messages; @@ -263,6 +264,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) processPlayerStoragePassword(msg); break; + case SMSG_PLAYER_STORAGE_PASSWORD_RESULT: + processPlayerStoragePasswordResult(msg); + break; + default: break; } @@ -1054,4 +1059,12 @@ void InventoryHandler::processPlayerStoragePassword(Net::MessageIn &msg) msg.readInt16("info"); } +void InventoryHandler::processPlayerStoragePasswordResult(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt16("result"); + msg.readInt16("error count"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index 2a40b6293..94855384e 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -129,6 +129,8 @@ class InventoryHandler final : public MessageHandler, static void processPlayerStoragePassword(Net::MessageIn &msg); + static void processPlayerStoragePasswordResult(Net::MessageIn &msg); + static Ea::InventoryItems mCartItems; }; diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index c74e5591c..56115cd04 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -86,7 +86,7 @@ int16_t packet_lengths[] = 26, -1, 0, 0, 18, 26, 11, 34, 0, 36, 10, 19, 10, 0, 32, 0, 22, -1, 16, 0, 42, 6, 6, 0, 0, 282, 282, 10, 10, 0, 0, 0, -1, -1, 0, 8, 10, 0, 282, 0, 0, 15, 0, 0, 0, 19, 71, 5, - 12, 0, 0, 0, 0, -1, 0, 0, 282, 0, 4, 0, 0, 0, 0, 0, + 12, 0, 0, 0, 0, -1, 0, 0, 282, 0, 4, 0, 6, 0, 0, 0, // #0x0240 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, -1, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 4, 0, 6, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index b140cd9ca..f7ca7f7da 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -233,6 +233,7 @@ #define SMSG_PLAYER_STORAGE_REMOVE 0x00f6 #define SMSG_PLAYER_STORAGE_CLOSE 0x00f8 /**< Storage access closed */ #define SMSG_PLAYER_STORAGE_PASSWORD 0x023a +#define SMSG_PLAYER_STORAGE_PASSWORD_RESULT 0x023c #define SMSG_ADMIN_KICK_ACK 0x00cd #define SMSG_ADMIN_GET_LOGIN_ACK 0x01e0 |