summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-26 04:07:49 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-26 04:07:49 +0300
commitf6b2109e3ae09f1b01d0e1c436f88f1f54dbd7d6 (patch)
tree4299f456309d927a624880f6115d396990c99b83 /src/net
parent89068d61b30e19f69f53df05b0542c37c12397ea (diff)
downloadmv-f6b2109e3ae09f1b01d0e1c436f88f1f54dbd7d6.tar.gz
mv-f6b2109e3ae09f1b01d0e1c436f88f1f54dbd7d6.tar.bz2
mv-f6b2109e3ae09f1b01d0e1c436f88f1f54dbd7d6.tar.xz
mv-f6b2109e3ae09f1b01d0e1c436f88f1f54dbd7d6.zip
Add packet CMSG_INSTANCE_COMMAND 0x02cf.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/maphandler.cpp6
-rw-r--r--src/net/eathena/maphandler.h2
-rw-r--r--src/net/eathena/packetsout.inc2
-rw-r--r--src/net/maphandler.h2
-rw-r--r--src/net/tmwa/maphandler.cpp4
-rw-r--r--src/net/tmwa/maphandler.h2
6 files changed, 18 insertions, 0 deletions
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