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 | |
parent | b99884f2536ee8c850f9957dac0ef73043693f92 (diff) | |
download | manaverse-6998289cd1f4650ad686731c6925e05b4c9fb82a.tar.gz manaverse-6998289cd1f4650ad686731c6925e05b4c9fb82a.tar.bz2 manaverse-6998289cd1f4650ad686731c6925e05b4c9fb82a.tar.xz manaverse-6998289cd1f4650ad686731c6925e05b4c9fb82a.zip |
eathena: add packet CMSG_BUYINGSTORE_OPEN 0x0360.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/buyingstorehandler.cpp | 10 | ||||
-rw-r--r-- | src/net/eathena/buyingstorehandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 14 insertions, 1 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 diff --git a/src/net/eathena/buyingstorehandler.h b/src/net/eathena/buyingstorehandler.h index 8d6fe4255..ae38bffa8 100644 --- a/src/net/eathena/buyingstorehandler.h +++ b/src/net/eathena/buyingstorehandler.h @@ -44,6 +44,8 @@ class BuyingStoreHandler final : public MessageHandler, void close() const override final; + void open(const Being *const being) const override final; + protected: static void processBuyingStoreOpen(Net::MessageIn &msg); diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 147e6ac67..8dac54b14 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -112,7 +112,7 @@ int16_t packet_lengths[] = // #0x0340 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // #0x0380 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index afea06b62..c2be70ec0 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -553,5 +553,6 @@ #define CMSG_BUYINGSTORE_CREATE 0x0815 #define CMSG_BUYINGSTORE_CLOSE 0x0817 +#define CMSG_BUYINGSTORE_OPEN 0x0360 #endif // NET_EATHENA_PROTOCOL_H |