From 6998289cd1f4650ad686731c6925e05b4c9fb82a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 5 Feb 2015 21:26:25 +0300 Subject: eathena: add packet CMSG_BUYINGSTORE_OPEN 0x0360. --- src/net/eathena/buyingstorehandler.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/eathena/buyingstorehandler.cpp') 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 -- cgit v1.2.3-70-g09d2