From 2f63276d3c09246878fb2470c3c047c7d4144a2d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Mar 2015 22:41:39 +0300 Subject: eathena: add packet CMSG_NPC_CASH_SHOP_CLOSE 0x084a. --- src/net/eathena/cashshophandler.cpp | 5 +++++ src/net/eathena/cashshophandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 8 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index 082394b68..fcdf84ca9 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -181,4 +181,9 @@ void CashShopHandler::buyItem(const int points, outMsg.writeInt16(static_cast(itemId), "item id"); } +void CashShopHandler::close() const +{ + createOutPacket(CMSG_NPC_CASH_SHOP_CLOSE); +} + } // namespace EAthena diff --git a/src/net/eathena/cashshophandler.h b/src/net/eathena/cashshophandler.h index 08aa39ac5..dc6980ec7 100644 --- a/src/net/eathena/cashshophandler.h +++ b/src/net/eathena/cashshophandler.h @@ -46,6 +46,8 @@ class CashShopHandler final : public MessageHandler, const unsigned char color, const int amount) const override final; + void close() const override final; + protected: static void processCashShopOpen(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 81c062f79..4e0311e29 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -533,6 +533,7 @@ #define CMSG_NPC_MARKET_CLOSE 0x09d8 #define CMSG_NPC_MARKET_BUY 0x09d6 #define CMSG_NPC_CASH_SHOP_BUY 0x0288 +#define CMSG_NPC_CASH_SHOP_CLOSE 0x084a #define CMSG_TRADE_REQUEST 0x00e4 #define CMSG_TRADE_RESPONSE 0x00e6 -- cgit v1.2.3-70-g09d2