diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-05 18:55:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-05 18:55:29 +0300 |
commit | b99884f2536ee8c850f9957dac0ef73043693f92 (patch) | |
tree | 9af38379c0df830c9ae0bb314c1179670186b1a5 /src/net/eathena | |
parent | 1ab01e47c19cea70b4ce9aa8ceb4e6eb3c273b08 (diff) | |
download | ManaVerse-b99884f2536ee8c850f9957dac0ef73043693f92.tar.gz ManaVerse-b99884f2536ee8c850f9957dac0ef73043693f92.tar.bz2 ManaVerse-b99884f2536ee8c850f9957dac0ef73043693f92.tar.xz ManaVerse-b99884f2536ee8c850f9957dac0ef73043693f92.zip |
eathena: add partial support for packet SMSG_BUYINGSTORE_HIDE_BOARD 0x0816
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/buyingstorehandler.cpp | 10 | ||||
-rw-r--r-- | src/net/eathena/buyingstorehandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 7801fb5f4..efcdc6d0c 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -46,6 +46,7 @@ BuyingStoreHandler::BuyingStoreHandler() : SMSG_BUYINGSTORE_CREATE_FAILED, SMSG_BUYINGSTORE_OWN_ITEMS, SMSG_BUYINGSTORE_SHOW_BOARD, + SMSG_BUYINGSTORE_HIDE_BOARD, 0 }; handledMessages = _messages; @@ -72,6 +73,10 @@ void BuyingStoreHandler::handleMessage(Net::MessageIn &msg) processBuyingStoreShowBoard(msg); break; + case SMSG_BUYINGSTORE_HIDE_BOARD: + processBuyingStoreHideBoard(msg); + break; + default: break; } @@ -124,6 +129,11 @@ void BuyingStoreHandler::processBuyingStoreShowBoard(Net::MessageIn &msg) msg.readString(80, "board name"); } +void BuyingStoreHandler::processBuyingStoreHideBoard(Net::MessageIn &msg) +{ + msg.readInt32("account id"); +} + void BuyingStoreHandler::create(const std::string &name, const int maxMoney, const bool flag, diff --git a/src/net/eathena/buyingstorehandler.h b/src/net/eathena/buyingstorehandler.h index 4e1d0dcd0..8d6fe4255 100644 --- a/src/net/eathena/buyingstorehandler.h +++ b/src/net/eathena/buyingstorehandler.h @@ -52,6 +52,8 @@ class BuyingStoreHandler final : public MessageHandler, static void processBuyingStoreOwnItems(Net::MessageIn &msg); static void processBuyingStoreShowBoard(Net::MessageIn &msg); + + static void processBuyingStoreHideBoard(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index e6a599cf7..afea06b62 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -171,6 +171,7 @@ #define SMSG_BUYINGSTORE_CREATE_FAILED 0x0812 #define SMSG_BUYINGSTORE_OWN_ITEMS 0x0813 #define SMSG_BUYINGSTORE_SHOW_BOARD 0x0814 +#define SMSG_BUYINGSTORE_HIDE_BOARD 0x0816 // Receiving a request to trade #define SMSG_TRADE_REQUEST 0x01f4 |