diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-18 15:30:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-18 15:30:43 +0300 |
commit | d18d370956e6f58970c7f828b79dbf86525949ea (patch) | |
tree | 156a3f9e842affe124bb3a3a2cb6cc3d8d1cfa7d /src/net/eathena/vendinghandler.cpp | |
parent | 485cf3ed0a92beddfbff839d3603ff1f2a98f805 (diff) | |
download | manaplus-d18d370956e6f58970c7f828b79dbf86525949ea.tar.gz manaplus-d18d370956e6f58970c7f828b79dbf86525949ea.tar.bz2 manaplus-d18d370956e6f58970c7f828b79dbf86525949ea.tar.xz manaplus-d18d370956e6f58970c7f828b79dbf86525949ea.zip |
eathena: add partial support for packet SMSG_VENDING_OPEN_STATUS 0x0a28.
Diffstat (limited to 'src/net/eathena/vendinghandler.cpp')
-rw-r--r-- | src/net/eathena/vendinghandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp index 079dde1e2..27a43200f 100644 --- a/src/net/eathena/vendinghandler.cpp +++ b/src/net/eathena/vendinghandler.cpp @@ -59,6 +59,8 @@ VendingHandler::VendingHandler() : SMSG_VENDING_ITEMS_LIST, SMSG_VENDING_BUY_ACK, SMSG_VENDING_OPEN, + SMSG_VENDING_REPORT, + SMSG_VENDING_OPEN_STATUS, 0 }; handledMessages = _messages; @@ -98,6 +100,10 @@ void VendingHandler::handleMessage(Net::MessageIn &msg) processReport(msg); break; + case SMSG_VENDING_OPEN_STATUS: + processOpenStatus(msg); + break; + default: break; } @@ -198,6 +204,12 @@ void VendingHandler::processReport(Net::MessageIn &msg) msg.readInt16("amount"); } +void VendingHandler::processOpenStatus(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readUInt8("result"); +} + void VendingHandler::close() const { createOutPacket(CMSG_VENDING_CLOSE); |