diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-24 11:39:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-24 11:39:45 +0300 |
commit | 0d588890a6cd3cc9034614504ae6f18b6c5f0682 (patch) | |
tree | be3a3935ae3159f86b015570c64f1e3e055b376e /src/net/eathena/buyingstorehandler.cpp | |
parent | 03548e276d033939449abb9b3a94a57803a57964 (diff) | |
download | manaplus-0d588890a6cd3cc9034614504ae6f18b6c5f0682.tar.gz manaplus-0d588890a6cd3cc9034614504ae6f18b6c5f0682.tar.bz2 manaplus-0d588890a6cd3cc9034614504ae6f18b6c5f0682.tar.xz manaplus-0d588890a6cd3cc9034614504ae6f18b6c5f0682.zip |
eathena: add partial support for packet SMSG_BUYINGSTORE_OPEN 0x0810.
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r-- | src/net/eathena/buyingstorehandler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 |