summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-18 15:30:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-18 15:30:43 +0300
commitd18d370956e6f58970c7f828b79dbf86525949ea (patch)
tree156a3f9e842affe124bb3a3a2cb6cc3d8d1cfa7d /src/net/eathena/vendinghandler.cpp
parent485cf3ed0a92beddfbff839d3603ff1f2a98f805 (diff)
downloadplus-d18d370956e6f58970c7f828b79dbf86525949ea.tar.gz
plus-d18d370956e6f58970c7f828b79dbf86525949ea.tar.bz2
plus-d18d370956e6f58970c7f828b79dbf86525949ea.tar.xz
plus-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.cpp12
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);