From 0d588890a6cd3cc9034614504ae6f18b6c5f0682 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Sep 2014 11:39:45 +0300 Subject: eathena: add partial support for packet SMSG_BUYINGSTORE_OPEN 0x0810. --- src/net/eathena/buyingstorehandler.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/net/eathena/buyingstorehandler.cpp') diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index cc3972d40..346f81b07 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -39,6 +39,7 @@ BuyingStoreHandler::BuyingStoreHandler() : { static const uint16_t _messages[] = { + SMSG_BUYINGSTORE_OPEN, 0 }; handledMessages = _messages; @@ -49,9 +50,19 @@ void BuyingStoreHandler::handleMessage(Net::MessageIn &msg) { switch (msg.getId()) { + case SMSG_BUYINGSTORE_OPEN: + processBuyingStoreOpen(msg); + break; + default: break; } } +void BuyingStoreHandler::processBuyingStoreOpen(Net::MessageIn &msg) +{ + // +++ need create store dialog + msg.readUInt8("slots"); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50