summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 00:08:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 00:08:20 +0300
commit64af13a976cbe5cf2d050d3d576f1d008c5a7708 (patch)
tree0468dce60597c1a5942422324d33e75954a22951
parent96fec2bda470785d384ad14274ca9c6aefda0ae8 (diff)
downloadplus-64af13a976cbe5cf2d050d3d576f1d008c5a7708.tar.gz
plus-64af13a976cbe5cf2d050d3d576f1d008c5a7708.tar.bz2
plus-64af13a976cbe5cf2d050d3d576f1d008c5a7708.tar.xz
plus-64af13a976cbe5cf2d050d3d576f1d008c5a7708.zip
eathena: add support for packet CMSG_PLAYER_AUTO_REVIVE 0x0292.
-rw-r--r--src/net/eathena/playerhandler.cpp5
-rw-r--r--src/net/eathena/playerhandler.h1
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/playerhandler.h2
-rw-r--r--src/net/tmwa/playerhandler.cpp4
-rw-r--r--src/net/tmwa/playerhandler.h2
6 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index 963a29c52..33a8c611e 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -415,4 +415,9 @@ void PlayerHandler::processPvpInfo(Net::MessageIn &msg)
msg.readInt32("pvp point");
}
+void PlayerHandler::revive() const
+{
+ MessageOut outMsg(CMSG_PLAYER_AUTO_REVIVE);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h
index b58c1a752..9ff59dcc9 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -69,6 +69,7 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
void doriDori() const override final;
void explosionSpirits() const override final;
void requestPvpInfo() const override final;
+ void revive() const override final;
protected:
void processPlayerStatUpdate5(Net::MessageIn &msg);
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index dd4848534..cb90f05a9 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -363,6 +363,7 @@
#define CMSG_DORI_DORI 0x01e7
#define CMSG_EXPLOSION_SPIRITS 0x01ed
#define CMSG_PVP_INFO 0x020f
+#define CMSG_PLAYER_AUTO_REVIVE 0x0292
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb
diff --git a/src/net/playerhandler.h b/src/net/playerhandler.h
index 1b1a08157..764d52936 100644
--- a/src/net/playerhandler.h
+++ b/src/net/playerhandler.h
@@ -95,6 +95,8 @@ class PlayerHandler notfinal
virtual void explosionSpirits() const = 0;
virtual void requestPvpInfo() const = 0;
+
+ virtual void revive() const = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index a6517c1ea..3fdf081ff 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -464,4 +464,8 @@ void PlayerHandler::requestPvpInfo() const
{
}
+void PlayerHandler::revive() const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/playerhandler.h b/src/net/tmwa/playerhandler.h
index 7a0c5cb54..213d8596d 100644
--- a/src/net/tmwa/playerhandler.h
+++ b/src/net/tmwa/playerhandler.h
@@ -77,6 +77,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
void requestPvpInfo() const override final;
+ void revive() const override final;
+
protected:
void processPlayerStatUpdate5(Net::MessageIn &msg);