summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-07 14:12:55 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-07 14:12:55 +0300
commitf52847a08113f09459d620cc5d91193b38d7a064 (patch)
tree277e94c02fb0f25f9db64bba18db352919a572b7 /src/net/eathena/vendinghandler.cpp
parent9d195207af67df767233ff6128f5b1df0421f83e (diff)
downloadmv-f52847a08113f09459d620cc5d91193b38d7a064.tar.gz
mv-f52847a08113f09459d620cc5d91193b38d7a064.tar.bz2
mv-f52847a08113f09459d620cc5d91193b38d7a064.tar.xz
mv-f52847a08113f09459d620cc5d91193b38d7a064.zip
eathena: add packet CMSG_VENDING_LIST_REQ 0x0130.
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 dd1d7e7cc..0b145e3e7 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -20,6 +20,8 @@
#include "net/eathena/vendinghandler.h"
+#include "being/being.h"
+
#include "net/eathena/messageout.h"
#include "net/eathena/protocol.h"
@@ -157,4 +159,13 @@ void VendingHandler::close() const
createOutPacket(CMSG_VENDING_CLOSE);
}
+void VendingHandler::open(const Being *const being) const
+{
+ if (!being)
+ return;
+
+ createOutPacket(CMSG_VENDING_LIST_REQ);
+ outMsg.writeInt32(being->getId(), "account id");
+}
+
} // namespace EAthena