summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/maphandler.cpp8
-rw-r--r--src/net/eathena/maphandler.h2
-rw-r--r--src/net/eathena/packetsout.inc7
3 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/maphandler.cpp b/src/net/eathena/maphandler.cpp
index 760a5c458..8136fdb79 100644
--- a/src/net/eathena/maphandler.cpp
+++ b/src/net/eathena/maphandler.cpp
@@ -20,6 +20,9 @@
#include "net/eathena/maphandler.h"
+#include "net/eathena/messageout.h"
+#include "net/eathena/protocolout.h"
+
#include "debug.h"
namespace EAthena
@@ -36,4 +39,9 @@ MapHandler::~MapHandler()
mapHandler = nullptr;
}
+void MapHandler::blockPlayCancel() const
+{
+ createOutPacket(CMSG_MAP_BLOCK_PLAY_CANCEL);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/maphandler.h b/src/net/eathena/maphandler.h
index 277bbce86..d87947f78 100644
--- a/src/net/eathena/maphandler.h
+++ b/src/net/eathena/maphandler.h
@@ -34,6 +34,8 @@ class MapHandler final : public Net::MapHandler
A_DELETE_COPY(MapHandler)
~MapHandler() override final;
+
+ void blockPlayCancel() const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index ef9ce6c14..34ac2b436 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -333,6 +333,7 @@ packet(CMSG_MAIL2_CANCEL_WRITE_MAIL, 0x0000, 0, nullptr);
packet(CMSG_CLAN_MESSAGE, 0x0000, 0, nullptr);
packet(CMSG_WINDOW_OPEN_REQUEST2, 0x0000, 0, nullptr);
packet(CMSG_ATTENDANCE_REWARD, 0x0000, 0, nullptr);
+packet(CMSG_MAP_BLOCK_PLAY_CANCEL, 0x0000, 0, nullptr);
#else
// 20040713
if (packetVersion >= 20040713)
@@ -564,6 +565,12 @@ if (packetVersion >= 20081210)
packet(CMSG_SKILL_SELECT_MENU, 0x0443, 8, clif->pSkillSelectMenu);
}
+// 20090520
+if (packetVersion >= 20090520)
+{
+ packet(CMSG_MAP_BLOCK_PLAY_CANCEL, 0x0447, 2, clif->p_cz_blocking_play_cancel);
+}
+
// 20090603
if (packetVersion >= 20090603)
{