summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-07 12:51:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-07 12:51:43 +0300
commitf8bfed03f76e377bd036d502663f3b9d3268a4a5 (patch)
tree9a946cd303ac8ee6b685c6cb2dc5f24cb661f43b /src/net
parentef0bd75596f6e30375c9a9ddb62318d165b62b31 (diff)
downloadplus-f8bfed03f76e377bd036d502663f3b9d3268a4a5.tar.gz
plus-f8bfed03f76e377bd036d502663f3b9d3268a4a5.tar.bz2
plus-f8bfed03f76e377bd036d502663f3b9d3268a4a5.tar.xz
plus-f8bfed03f76e377bd036d502663f3b9d3268a4a5.zip
eathena: add partial support for packet SMSG_VENDING_HIDE_BOARD 0x0132.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/vendinghandler.cpp10
-rw-r--r--src/net/eathena/vendinghandler.h2
3 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 0f0a1a6ec..94ffd600c 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -308,6 +308,7 @@
#define SMSG_VENDING_OPEN_REQ 0x012d
#define SMSG_VENDING_SHOW_BOARD 0x0131
+#define SMSG_VENDING_HIDE_BOARD 0x0132
#define SMSG_ELEMENTAL_UPDATE_STATUS 0x081e
#define SMSG_ELEMENTAL_INFO 0x081d
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp
index 8605cbe98..8a1dd2ba8 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -36,6 +36,7 @@ VendingHandler::VendingHandler() :
{
SMSG_VENDING_OPEN_REQ,
SMSG_VENDING_SHOW_BOARD,
+ SMSG_VENDING_HIDE_BOARD,
0
};
handledMessages = _messages;
@@ -54,6 +55,10 @@ void VendingHandler::handleMessage(Net::MessageIn &msg)
processShowBoard(msg);
break;
+ case SMSG_VENDING_HIDE_BOARD:
+ processHideBoard(msg);
+ break;
+
default:
break;
}
@@ -70,4 +75,9 @@ void VendingHandler::processShowBoard(Net::MessageIn &msg)
msg.readString(80, "shop name");
}
+void VendingHandler::processHideBoard(Net::MessageIn &msg)
+{
+ msg.readInt32("owner id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/vendinghandler.h b/src/net/eathena/vendinghandler.h
index ee84cf79c..33cca37fd 100644
--- a/src/net/eathena/vendinghandler.h
+++ b/src/net/eathena/vendinghandler.h
@@ -41,6 +41,8 @@ class VendingHandler final : public MessageHandler,
static void processOpenReq(Net::MessageIn &msg);
static void processShowBoard(Net::MessageIn &msg);
+
+ static void processHideBoard(Net::MessageIn &msg);
};
} // namespace EAthena