diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/cashshophandler.h | 2 | ||||
-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 | ||||
-rw-r--r-- | src/net/tmwa/cashshophandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/cashshophandler.h | 2 |
6 files changed, 16 insertions, 0 deletions
diff --git a/src/net/cashshophandler.h b/src/net/cashshophandler.h index df9f0e172..1972ab6e8 100644 --- a/src/net/cashshophandler.h +++ b/src/net/cashshophandler.h @@ -42,6 +42,8 @@ class CashShopHandler notfinal const int amount) const = 0; virtual void close() const = 0; + + virtual void requestPoints() const = 0; }; } // namespace Net diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index fcdf84ca9..24751bfe0 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -186,4 +186,9 @@ void CashShopHandler::close() const createOutPacket(CMSG_NPC_CASH_SHOP_CLOSE); } +void CashShopHandler::requestPoints() const +{ + createOutPacket(CMSG_NPC_CASH_SHOP_OPEN); +} + } // namespace EAthena diff --git a/src/net/eathena/cashshophandler.h b/src/net/eathena/cashshophandler.h index dc6980ec7..e25599028 100644 --- a/src/net/eathena/cashshophandler.h +++ b/src/net/eathena/cashshophandler.h @@ -48,6 +48,8 @@ class CashShopHandler final : public MessageHandler, void close() const override final; + void requestPoints() 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 5cea63669..1d8c1648a 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -538,6 +538,7 @@ #define CMSG_NPC_MARKET_BUY 0x09d6 #define CMSG_NPC_CASH_SHOP_BUY 0x0288 #define CMSG_NPC_CASH_SHOP_CLOSE 0x084a +#define CMSG_NPC_CASH_SHOP_OPEN 0x0844 #define CMSG_TRADE_REQUEST 0x00e4 #define CMSG_TRADE_RESPONSE 0x00e6 diff --git a/src/net/tmwa/cashshophandler.cpp b/src/net/tmwa/cashshophandler.cpp index cefeb496d..374c4d081 100644 --- a/src/net/tmwa/cashshophandler.cpp +++ b/src/net/tmwa/cashshophandler.cpp @@ -53,4 +53,8 @@ void CashShopHandler::close() const { } +void CashShopHandler::requestPoints() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/cashshophandler.h b/src/net/tmwa/cashshophandler.h index 9a15a260e..47ea4b505 100644 --- a/src/net/tmwa/cashshophandler.h +++ b/src/net/tmwa/cashshophandler.h @@ -46,6 +46,8 @@ class CashShopHandler final : public MessageHandler, const int amount) const override final; void close() const override final; + + void requestPoints() const override final; }; } // namespace TmwAthena |