summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
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