From 23a6cfe6fd8af082d2bb296f3a5efae9d1f834c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 6 Feb 2015 21:55:38 +0300 Subject: eathena: add partial support for packet SMSG_BUYINGSTORE_REPORT 0x081b. --- src/net/eathena/buyingstorehandler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/net/eathena/buyingstorehandler.cpp') diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 4ce4378bc..2356f6546 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -51,6 +51,7 @@ BuyingStoreHandler::BuyingStoreHandler() : SMSG_BUYINGSTORE_HIDE_BOARD, SMSG_BUYINGSTORE_ITEMS_LIST, SMSG_BUYINGSTORE_SELL_FAILED, + SMSG_BUYINGSTORE_REPORT, 0 }; handledMessages = _messages; @@ -89,6 +90,10 @@ void BuyingStoreHandler::handleMessage(Net::MessageIn &msg) processBuyingStoreSellFailed(msg); break; + case SMSG_BUYINGSTORE_REPORT: + processBuyingStoreReport(msg); + break; + default: break; } @@ -179,6 +184,13 @@ void BuyingStoreHandler::processBuyingStoreSellFailed(Net::MessageIn &msg) } } +void BuyingStoreHandler::processBuyingStoreReport(Net::MessageIn &msg) +{ + msg.readInt16("item id"); + msg.readInt16("amount"); + msg.readInt32("money limit"); +} + void BuyingStoreHandler::create(const std::string &name, const int maxMoney, const bool flag, -- cgit v1.2.3-70-g09d2