summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-07 12:17:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-07 12:17:47 +0300
commitef0bd75596f6e30375c9a9ddb62318d165b62b31 (patch)
tree8cf66f10db2e9a2f137162b1e143cb79dcf8abfa /src/net/eathena/vendinghandler.cpp
parent8ea8b75484d4896e31a27975311e51455bb00150 (diff)
downloadplus-ef0bd75596f6e30375c9a9ddb62318d165b62b31.tar.gz
plus-ef0bd75596f6e30375c9a9ddb62318d165b62b31.tar.bz2
plus-ef0bd75596f6e30375c9a9ddb62318d165b62b31.tar.xz
plus-ef0bd75596f6e30375c9a9ddb62318d165b62b31.zip
eathena: add partial support for packet SMSG_VENDING_SHOW_BOARD 0x0131.
Diffstat (limited to 'src/net/eathena/vendinghandler.cpp')
-rw-r--r--src/net/eathena/vendinghandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp
index d38f2d102..8605cbe98 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -35,6 +35,7 @@ VendingHandler::VendingHandler() :
static const uint16_t _messages[] =
{
SMSG_VENDING_OPEN_REQ,
+ SMSG_VENDING_SHOW_BOARD,
0
};
handledMessages = _messages;
@@ -49,6 +50,10 @@ void VendingHandler::handleMessage(Net::MessageIn &msg)
processOpenReq(msg);
break;
+ case SMSG_VENDING_SHOW_BOARD:
+ processShowBoard(msg);
+ break;
+
default:
break;
}
@@ -59,4 +64,10 @@ void VendingHandler::processOpenReq(Net::MessageIn &msg)
msg.readInt16("slots allowed");
}
+void VendingHandler::processShowBoard(Net::MessageIn &msg)
+{
+ msg.readInt32("owner id");
+ msg.readString(80, "shop name");
+}
+
} // namespace EAthena