diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-07 12:10:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-07 12:10:11 +0300 |
commit | 8ea8b75484d4896e31a27975311e51455bb00150 (patch) | |
tree | 3fe04e84f011027216c2be1c7637feccd1e0d8c9 /src/net/eathena/vendinghandler.cpp | |
parent | 291f73098e52742bed3f4c4271524e347ee317e1 (diff) | |
download | manaverse-8ea8b75484d4896e31a27975311e51455bb00150.tar.gz manaverse-8ea8b75484d4896e31a27975311e51455bb00150.tar.bz2 manaverse-8ea8b75484d4896e31a27975311e51455bb00150.tar.xz manaverse-8ea8b75484d4896e31a27975311e51455bb00150.zip |
eathena: add partial support for packet SMSG_VENDING_OPEN_REQ 0x012d.
Diffstat (limited to 'src/net/eathena/vendinghandler.cpp')
-rw-r--r-- | src/net/eathena/vendinghandler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp index ea9ddeda6..d38f2d102 100644 --- a/src/net/eathena/vendinghandler.cpp +++ b/src/net/eathena/vendinghandler.cpp @@ -34,6 +34,7 @@ VendingHandler::VendingHandler() : { static const uint16_t _messages[] = { + SMSG_VENDING_OPEN_REQ, 0 }; handledMessages = _messages; @@ -44,9 +45,18 @@ void VendingHandler::handleMessage(Net::MessageIn &msg) { switch (msg.getId()) { + case SMSG_VENDING_OPEN_REQ: + processOpenReq(msg); + break; + default: break; } } +void VendingHandler::processOpenReq(Net::MessageIn &msg) +{ + msg.readInt16("slots allowed"); +} + } // namespace EAthena |