diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/cashshophandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/cashshophandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp index 24751bfe0..e0eaa0dea 100644 --- a/src/net/eathena/cashshophandler.cpp +++ b/src/net/eathena/cashshophandler.cpp @@ -191,4 +191,10 @@ void CashShopHandler::requestPoints() const createOutPacket(CMSG_NPC_CASH_SHOP_OPEN); } +void CashShopHandler::requestTab(const int tab) const +{ + createOutPacket(CMSG_NPC_CASH_SHOP_REQUEST_TAB); + outMsg.writeInt16(static_cast<int16_t>(tab), "tab"); +} + } // namespace EAthena diff --git a/src/net/eathena/cashshophandler.h b/src/net/eathena/cashshophandler.h index e25599028..dcd410e0f 100644 --- a/src/net/eathena/cashshophandler.h +++ b/src/net/eathena/cashshophandler.h @@ -50,6 +50,8 @@ class CashShopHandler final : public MessageHandler, void requestPoints() const override final; + void requestTab(const int tab) 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 1d8c1648a..152acc891 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -539,6 +539,7 @@ #define CMSG_NPC_CASH_SHOP_BUY 0x0288 #define CMSG_NPC_CASH_SHOP_CLOSE 0x084a #define CMSG_NPC_CASH_SHOP_OPEN 0x0844 +#define CMSG_NPC_CASH_SHOP_REQUEST_TAB 0x0846 #define CMSG_TRADE_REQUEST 0x00e4 #define CMSG_TRADE_RESPONSE 0x00e6 |