diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/cashshophandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/cashshophandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 8 insertions, 0 deletions
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<int16_t>(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 |