summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-29 13:17:32 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-29 13:17:32 +0300
commit5b1359f867190b46f3107f4e3ba85d484e14c130 (patch)
tree7f932747a6149dc69d32808b4b196a03fd82e94d
parent5bf9a084a9d188105b919e984a655a5cf08bb497 (diff)
downloadmanaverse-5b1359f867190b46f3107f4e3ba85d484e14c130.tar.gz
manaverse-5b1359f867190b46f3107f4e3ba85d484e14c130.tar.bz2
manaverse-5b1359f867190b46f3107f4e3ba85d484e14c130.tar.xz
manaverse-5b1359f867190b46f3107f4e3ba85d484e14c130.zip
eathena: add packet CMSG_NPC_CASH_SHOP_SCHEDULE 0x08c9.
-rw-r--r--src/net/cashshophandler.h2
-rw-r--r--src/net/eathena/cashshophandler.cpp5
-rw-r--r--src/net/eathena/cashshophandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/cashshophandler.cpp4
-rw-r--r--src/net/tmwa/cashshophandler.h2
6 files changed, 16 insertions, 0 deletions
diff --git a/src/net/cashshophandler.h b/src/net/cashshophandler.h
index a0d09e5a4..64a04d8ed 100644
--- a/src/net/cashshophandler.h
+++ b/src/net/cashshophandler.h
@@ -46,6 +46,8 @@ class CashShopHandler notfinal
virtual void requestPoints() const = 0;
virtual void requestTab(const int tab) const = 0;
+
+ virtual void schedule() const = 0;
};
} // namespace Net
diff --git a/src/net/eathena/cashshophandler.cpp b/src/net/eathena/cashshophandler.cpp
index e0eaa0dea..3ddbe9444 100644
--- a/src/net/eathena/cashshophandler.cpp
+++ b/src/net/eathena/cashshophandler.cpp
@@ -197,4 +197,9 @@ void CashShopHandler::requestTab(const int tab) const
outMsg.writeInt16(static_cast<int16_t>(tab), "tab");
}
+void CashShopHandler::schedule() const
+{
+ createOutPacket(CMSG_NPC_CASH_SHOP_SCHEDULE);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/cashshophandler.h b/src/net/eathena/cashshophandler.h
index dcd410e0f..cc8859a89 100644
--- a/src/net/eathena/cashshophandler.h
+++ b/src/net/eathena/cashshophandler.h
@@ -52,6 +52,8 @@ class CashShopHandler final : public MessageHandler,
void requestTab(const int tab) const override final;
+ void schedule() 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 152acc891..cb4bcc401 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -540,6 +540,7 @@
#define CMSG_NPC_CASH_SHOP_CLOSE 0x084a
#define CMSG_NPC_CASH_SHOP_OPEN 0x0844
#define CMSG_NPC_CASH_SHOP_REQUEST_TAB 0x0846
+#define CMSG_NPC_CASH_SHOP_SCHEDULE 0x08c9
#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 259a59a33..c9fecd9fb 100644
--- a/src/net/tmwa/cashshophandler.cpp
+++ b/src/net/tmwa/cashshophandler.cpp
@@ -61,4 +61,8 @@ void CashShopHandler::requestTab(const int tab A_UNUSED) const
{
}
+void CashShopHandler::schedule() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/cashshophandler.h b/src/net/tmwa/cashshophandler.h
index 1bef0e9c0..588aba087 100644
--- a/src/net/tmwa/cashshophandler.h
+++ b/src/net/tmwa/cashshophandler.h
@@ -50,6 +50,8 @@ class CashShopHandler final : public MessageHandler,
void requestPoints() const override final;
void requestTab(const int tab) const override final;
+
+ void schedule() const override final;
};
} // namespace TmwAthena