From f6b2109e3ae09f1b01d0e1c436f88f1f54dbd7d6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 26 Sep 2018 04:07:49 +0300 Subject: Add packet CMSG_INSTANCE_COMMAND 0x02cf. --- src/net/eathena/maphandler.cpp | 6 ++++++ src/net/eathena/maphandler.h | 2 ++ src/net/eathena/packetsout.inc | 2 ++ src/net/maphandler.h | 2 ++ src/net/tmwa/maphandler.cpp | 4 ++++ src/net/tmwa/maphandler.h | 2 ++ 6 files changed, 18 insertions(+) diff --git a/src/net/eathena/maphandler.cpp b/src/net/eathena/maphandler.cpp index 8136fdb79..c6b86eaf6 100644 --- a/src/net/eathena/maphandler.cpp +++ b/src/net/eathena/maphandler.cpp @@ -44,4 +44,10 @@ void MapHandler::blockPlayCancel() const createOutPacket(CMSG_MAP_BLOCK_PLAY_CANCEL); } +void MapHandler::destroyInstance() const +{ + createOutPacket(CMSG_INSTANCE_COMMAND); + outMsg.writeInt32(3, "command"); +} + } // namespace EAthena diff --git a/src/net/eathena/maphandler.h b/src/net/eathena/maphandler.h index d87947f78..d27ca2748 100644 --- a/src/net/eathena/maphandler.h +++ b/src/net/eathena/maphandler.h @@ -36,6 +36,8 @@ class MapHandler final : public Net::MapHandler ~MapHandler() override final; void blockPlayCancel() const override final; + + void destroyInstance() const override final; }; } // namespace EAthena diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 0bff320dd..3ea0fb61c 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -340,6 +340,7 @@ packet(CMSG_PLAYER_SELECT_STYLE2, 0x0000, 0, nullptr); packet(CMSG_PET_EVOLUTION, 0x0000, 0, nullptr); packet(CMSG_PLAYER_SET_TITLE, 0x0000, 0, nullptr); packet(CMSG_CHANGE_DRESS, 0x0000, 0, nullptr); +packet(CMSG_INSTANCE_COMMAND, 0x0000, 0, nullptr); #else // 20040713 if (packetVersion >= 20040713) @@ -540,6 +541,7 @@ if (packetVersion >= 20070212) if (packetVersion >= 20070227) { packet(CMSG_PARTY_INVITE2, 0x02c4, 26, clif->pPartyInvite2); + packet(CMSG_INSTANCE_COMMAND, 0x02cf, 6, clif->pMemorialDungeonCommand); } // 20080827 diff --git a/src/net/maphandler.h b/src/net/maphandler.h index a1c1db6f9..f1cca2b4c 100644 --- a/src/net/maphandler.h +++ b/src/net/maphandler.h @@ -38,6 +38,8 @@ class MapHandler notfinal { } virtual void blockPlayCancel() const = 0; + + virtual void destroyInstance() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/maphandler.cpp b/src/net/tmwa/maphandler.cpp index a3b7e005f..206f4189d 100644 --- a/src/net/tmwa/maphandler.cpp +++ b/src/net/tmwa/maphandler.cpp @@ -40,4 +40,8 @@ void MapHandler::blockPlayCancel() const { } +void MapHandler::destroyInstance() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/maphandler.h b/src/net/tmwa/maphandler.h index 6b35673e6..3d182d989 100644 --- a/src/net/tmwa/maphandler.h +++ b/src/net/tmwa/maphandler.h @@ -36,6 +36,8 @@ class MapHandler final : public Net::MapHandler ~MapHandler() override final; void blockPlayCancel() const override final; + + void destroyInstance() const override final; }; } // namespace TmwAthena -- cgit v1.2.3-60-g2f50