diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-07 13:26:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-07 13:26:24 +0300 |
commit | d73c56f5d0495ffc2758b8057207d304c827dc3e (patch) | |
tree | b8c9780f3565548b569a27a23023247fcaf84ff4 /src/net/eathena/vendinghandler.cpp | |
parent | a39151db799a49eac2ae0588f99a6cad23b914c3 (diff) | |
download | manaverse-d73c56f5d0495ffc2758b8057207d304c827dc3e.tar.gz manaverse-d73c56f5d0495ffc2758b8057207d304c827dc3e.tar.bz2 manaverse-d73c56f5d0495ffc2758b8057207d304c827dc3e.tar.xz manaverse-d73c56f5d0495ffc2758b8057207d304c827dc3e.zip |
eathena: add partial support for packet SMSG_VENDING_BUY_ACK 0x0135.
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 10ced1a07..e342ccea8 100644 --- a/src/net/eathena/vendinghandler.cpp +++ b/src/net/eathena/vendinghandler.cpp @@ -38,6 +38,7 @@ VendingHandler::VendingHandler() : SMSG_VENDING_SHOW_BOARD, SMSG_VENDING_HIDE_BOARD, SMSG_VENDING_ITEMS_LIST, + SMSG_VENDING_BUY_ACK, 0 }; handledMessages = _messages; @@ -64,6 +65,10 @@ void VendingHandler::handleMessage(Net::MessageIn &msg) processItemsList(msg); break; + case SMSG_VENDING_BUY_ACK: + processBuyAck(msg); + break; + default: break; } @@ -103,4 +108,11 @@ void VendingHandler::processItemsList(Net::MessageIn &msg) } } +void VendingHandler::processBuyAck(Net::MessageIn &msg) +{ + msg.readInt16("inv index"); + msg.readInt16("amount"); + msg.readUInt8("flag"); +} + } // namespace EAthena |