summaryrefslogtreecommitdiff
path: root/src/net/eathena
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 /src/net/eathena
parentca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390 (diff)
downloadmanaplus-0aeab113a9c90d81a74b92aae908502e5cdd8f30.tar.gz
manaplus-0aeab113a9c90d81a74b92aae908502e5cdd8f30.tar.bz2
manaplus-0aeab113a9c90d81a74b92aae908502e5cdd8f30.tar.xz
manaplus-0aeab113a9c90d81a74b92aae908502e5cdd8f30.zip
Add packet CMSG_REQ_REMAIN_TIME 0x01c0
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/gamehandler.cpp5
-rw-r--r--src/net/eathena/gamehandler.h2
-rw-r--r--src/net/eathena/packetsout.inc2
3 files changed, 9 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);