summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/playerhandler.cpp11
-rw-r--r--src/net/eathena/playerhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
4 files changed, 15 insertions, 1 deletions
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index 2e1d7884e..aefff741e 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -84,7 +84,7 @@ int16_t packet_lengths[] =
//0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// #0x0200
26, 0, 0, 0, 18, 26, 0, 0, 0, 0, 0, 19, 10, 0, 0, 0,
- 22, -1, 16, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 22, -1, 16, 0, 42, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
-1, 122, 0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 19, 71, 5,
12, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
// #0x0240
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index e4e65dbb9..92ce69f4f 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -58,6 +58,7 @@ PlayerHandler::PlayerHandler() :
SMSG_PLAYER_GET_EXP,
SMSG_PVP_INFO,
SMSG_PLAYER_HEAL,
+ SMSG_PLAYER_SKILL_MESSAGE,
0
};
handledMessages = _messages;
@@ -125,6 +126,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg)
processPlayerHeal(msg);
break;
+ case SMSG_PLAYER_SKILL_MESSAGE:
+ processPlayerSkillMessage(msg);
+ break;
+
default:
break;
}
@@ -466,6 +471,12 @@ void PlayerHandler::processPlayerHeal(Net::MessageIn &msg)
msg.readInt16("value");
}
+void PlayerHandler::processPlayerSkillMessage(Net::MessageIn &msg)
+{
+ // +++ need show this message
+ msg.readInt32("type");
+}
+
void PlayerHandler::setStat(const int type,
const int base,
const int mod,
diff --git a/src/net/eathena/playerhandler.h b/src/net/eathena/playerhandler.h
index 3a0ba20fa..335ac8b11 100644
--- a/src/net/eathena/playerhandler.h
+++ b/src/net/eathena/playerhandler.h
@@ -86,6 +86,8 @@ class PlayerHandler final : public MessageHandler, public Ea::PlayerHandler
void processPlayerHeal(Net::MessageIn &msg);
+ void processPlayerSkillMessage(Net::MessageIn &msg);
+
static void processWalkResponse(Net::MessageIn &msg);
};
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 78b622a80..b555e700a 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -90,6 +90,7 @@
#define SMSG_PLAYER_HEAL 0x013d
#define SMSG_PLAYER_SKILL_COOLDOWN 0x043d
#define SMSG_PLAYER_SKILL_COOLDOWN_LIST 0x0985
+#define SMSG_PLAYER_SKILL_MESSAGE 0x0215
#define SMSG_SKILL_FAILED 0x0110
#define SMSG_SKILL_DAMAGE 0x01de
#define SMSG_SKILL_AUTO_CAST 0x0147