summaryrefslogtreecommitdiff
path: root/src/net/eathena
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 /src/net/eathena
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.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/playerhandler.cpp5
-rw-r--r--src/net/eathena/playerhandler.h1
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 7 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