summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-01-25 03:42:47 +0300
committerAndrei Karas <akaras@inbox.ru>2019-01-25 03:42:47 +0300
commit0aeab113a9c90d81a74b92aae908502e5cdd8f30 (patch)
treefaf6444053aa2b84e00ddf32b103d242f77debbd
parentca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390 (diff)
downloadmanaverse-0aeab113a9c90d81a74b92aae908502e5cdd8f30.tar.gz
manaverse-0aeab113a9c90d81a74b92aae908502e5cdd8f30.tar.bz2
manaverse-0aeab113a9c90d81a74b92aae908502e5cdd8f30.tar.xz
manaverse-0aeab113a9c90d81a74b92aae908502e5cdd8f30.zip
Add packet CMSG_REQ_REMAIN_TIME 0x01c0
-rw-r--r--src/net/eathena/gamehandler.cpp5
-rw-r--r--src/net/eathena/gamehandler.h2
-rw-r--r--src/net/eathena/packetsout.inc2
-rw-r--r--src/net/gamehandler.h2
-rw-r--r--src/net/tmwa/gamehandler.cpp4
-rw-r--r--src/net/tmwa/gamehandler.h2
6 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/gamehandler.cpp b/src/net/eathena/gamehandler.cpp
index 2a9f5028f..1ed6851dd 100644
--- a/src/net/eathena/gamehandler.cpp
+++ b/src/net/eathena/gamehandler.cpp
@@ -223,4 +223,9 @@ void GameHandler::disconnect2() const
createOutPacket(CMSG_CLIENT_QUIT);
}
+void GameHandler::reqRemainTime() const
+{
+ createOutPacket(CMSG_REQ_REMAIN_TIME);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/gamehandler.h b/src/net/eathena/gamehandler.h
index 864881c2d..a67bb0e5c 100644
--- a/src/net/eathena/gamehandler.h
+++ b/src/net/eathena/gamehandler.h
@@ -51,6 +51,8 @@ class GameHandler final : public Ea::GameHandler
void mapLoadedEvent() const override final;
+ void reqRemainTime() const override final;
+
bool mustPing() const override final A_WARN_UNUSED
{ return true; }
};
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index 8811c8a4a..ec05f490f 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -254,6 +254,8 @@ packet(CMSG_VENDING_CREATE_SHOP, 0x01b2, -1, clif->pOpenVending);
packet(CMSG_MERGE_ITEM_ACK, 0x096e, -1, clif->ackmergeitems);
packet(CMSG_MERGE_ITEM_CANCEL, 0x0974, 2, clif->cancelmergeitem);
+packet(CMSG_REQ_REMAIN_TIME, 0x01c0, 2, clif->pReqRemainTime);
+
packet2(CMSG_SET_STATUS, 0x0b0e, 0, nullptr);
packet2(CMSG_ONLINE_LIST, 0x0b0f, 0, nullptr);
diff --git a/src/net/gamehandler.h b/src/net/gamehandler.h
index 88bddcdbc..22b0bd7d4 100644
--- a/src/net/gamehandler.h
+++ b/src/net/gamehandler.h
@@ -62,6 +62,8 @@ class GameHandler notfinal
virtual void initEngines() const = 0;
virtual void clear() const = 0;
+
+ virtual void reqRemainTime() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/gamehandler.cpp b/src/net/tmwa/gamehandler.cpp
index 5381f65aa..66a2fdce2 100644
--- a/src/net/tmwa/gamehandler.cpp
+++ b/src/net/tmwa/gamehandler.cpp
@@ -132,4 +132,8 @@ void GameHandler::disconnect2() const
createOutPacket(CMSG_CLIENT_DISCONNECT);
}
+void GameHandler::reqRemainTime() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/gamehandler.h b/src/net/tmwa/gamehandler.h
index 75df7737a..71fada81e 100644
--- a/src/net/tmwa/gamehandler.h
+++ b/src/net/tmwa/gamehandler.h
@@ -51,6 +51,8 @@ class GameHandler final : public Ea::GameHandler
void mapLoadedEvent() const override final;
+ void reqRemainTime() const override final;
+
bool mustPing() const override final A_WARN_UNUSED
{ return false; }
};