summaryrefslogtreecommitdiff
path: root/src/net/eathena/buyingstorehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-05 21:26:25 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-05 21:26:25 +0300
commit6998289cd1f4650ad686731c6925e05b4c9fb82a (patch)
tree113bc202448d787bc87d564efebf1bdaa7015ee4 /src/net/eathena/buyingstorehandler.cpp
parentb99884f2536ee8c850f9957dac0ef73043693f92 (diff)
downloadmv-6998289cd1f4650ad686731c6925e05b4c9fb82a.tar.gz
mv-6998289cd1f4650ad686731c6925e05b4c9fb82a.tar.bz2
mv-6998289cd1f4650ad686731c6925e05b4c9fb82a.tar.xz
mv-6998289cd1f4650ad686731c6925e05b4c9fb82a.zip
eathena: add packet CMSG_BUYINGSTORE_OPEN 0x0360.
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r--src/net/eathena/buyingstorehandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp
index efcdc6d0c..44a8a7d4b 100644
--- a/src/net/eathena/buyingstorehandler.cpp
+++ b/src/net/eathena/buyingstorehandler.cpp
@@ -23,6 +23,8 @@
#include "notifymanager.h"
#include "shopitem.h"
+#include "being/being.h"
+
#include "net/ea/eaprotocol.h"
#include "net/eathena/messageout.h"
@@ -157,4 +159,12 @@ void BuyingStoreHandler::close() const
createOutPacket(CMSG_BUYINGSTORE_CLOSE);
}
+void BuyingStoreHandler::open(const Being *const being) const
+{
+ if (!being)
+ return;
+ createOutPacket(SMSG_BUYINGSTORE_OPEN);
+ outMsg.writeInt32(being->getId(), "account id");
+}
+
} // namespace EAthena