diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-02-05 21:26:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-02-05 21:26:25 +0300 |
commit | 6998289cd1f4650ad686731c6925e05b4c9fb82a (patch) | |
tree | 113bc202448d787bc87d564efebf1bdaa7015ee4 /src/net/eathena/buyingstorehandler.cpp | |
parent | b99884f2536ee8c850f9957dac0ef73043693f92 (diff) | |
download | plus-6998289cd1f4650ad686731c6925e05b4c9fb82a.tar.gz plus-6998289cd1f4650ad686731c6925e05b4c9fb82a.tar.bz2 plus-6998289cd1f4650ad686731c6925e05b4c9fb82a.tar.xz plus-6998289cd1f4650ad686731c6925e05b4c9fb82a.zip |
eathena: add packet CMSG_BUYINGSTORE_OPEN 0x0360.
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r-- | src/net/eathena/buyingstorehandler.cpp | 10 |
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 |