diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/buyingstorehandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/buyingstorehandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp index 519c30aae..7801fb5f4 100644 --- a/src/net/eathena/buyingstorehandler.cpp +++ b/src/net/eathena/buyingstorehandler.cpp @@ -142,4 +142,9 @@ void BuyingStoreHandler::create(const std::string &name, } } +void BuyingStoreHandler::close() const +{ + createOutPacket(CMSG_BUYINGSTORE_CLOSE); +} + } // namespace EAthena diff --git a/src/net/eathena/buyingstorehandler.h b/src/net/eathena/buyingstorehandler.h index 1a647a67c..4e1d0dcd0 100644 --- a/src/net/eathena/buyingstorehandler.h +++ b/src/net/eathena/buyingstorehandler.h @@ -42,6 +42,8 @@ class BuyingStoreHandler final : public MessageHandler, const bool flag, std::vector<ShopItem*> &items) const override final; + void close() const override final; + protected: static void processBuyingStoreOpen(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 1f5d913a3..e6a599cf7 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -551,5 +551,6 @@ #define CMSG_VENDING_CREATE_SHOP 0x01b2 #define CMSG_BUYINGSTORE_CREATE 0x0815 +#define CMSG_BUYINGSTORE_CLOSE 0x0817 #endif // NET_EATHENA_PROTOCOL_H |