summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-02 13:34:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-02 13:34:13 +0300
commita4fb6c80502e707c19ab70432418295ea4c48d6a (patch)
tree3e499139025aff635e6220a19d9b4b1595753d34 /src/net/eathena
parent2e0f3379ea7f8440815b6615345778874fcf5a3a (diff)
downloadplus-a4fb6c80502e707c19ab70432418295ea4c48d6a.tar.gz
plus-a4fb6c80502e707c19ab70432418295ea4c48d6a.tar.bz2
plus-a4fb6c80502e707c19ab70432418295ea4c48d6a.tar.xz
plus-a4fb6c80502e707c19ab70432418295ea4c48d6a.zip
eathena: add packet SMSG_PLAYER_DELETE_SKILL 0x0441.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/packets.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/skillhandler.cpp11
-rw-r--r--src/net/eathena/skillhandler.h2
4 files changed, 15 insertions, 1 deletions
diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h
index f3dd469b9..dfffeb661 100644
--- a/src/net/eathena/packets.h
+++ b/src/net/eathena/packets.h
@@ -132,7 +132,7 @@ int16_t packet_lengths[] =
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 25,
// #0x0440
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 4a88e44db..cbb1221fb 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -79,6 +79,7 @@
#define SMSG_PLAYER_ARROW_MESSAGE 0x013b
#define SMSG_PLAYER_SKILLS 0x010f
#define SMSG_PLAYER_ADD_SKILL 0x0111
+#define SMSG_PLAYER_DELETE_SKILL 0x0441
#define SMSG_PLAYER_SKILL_UP 0x010e
#define SMSG_PLAYER_HEAL 0x013d
#define SMSG_PLAYER_SKILL_COOLDOWN 0x043d
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index de1b53c18..595f5a8a2 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -59,6 +59,7 @@ SkillHandler::SkillHandler() :
SMSG_PLAYER_SKILL_COOLDOWN_LIST,
SMSG_SKILL_SNAP,
SMSG_PLAYER_ADD_SKILL,
+ SMSG_PLAYER_DELETE_SKILL,
0
};
handledMessages = _messages;
@@ -97,6 +98,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg)
processSkillAdd(msg);
break;
+ case SMSG_PLAYER_DELETE_SKILL:
+ processSkillDelete(msg);
+ break;
+
default:
break;
}
@@ -207,6 +212,12 @@ void SkillHandler::processSkillAdd(Net::MessageIn &msg)
}
}
+void SkillHandler::processSkillDelete(Net::MessageIn &msg)
+{
+ // ignored, because after this packet server will send all skills.
+ msg.readInt32("skill id");
+}
+
void SkillHandler::processSkillCoolDown(Net::MessageIn &msg)
{
const int skillId = msg.readInt16("skill id");
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index 571947491..509b0fd71 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -63,6 +63,8 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler
void processSkillSnap(Net::MessageIn &msg);
void processSkillAdd(Net::MessageIn &msg);
+
+ void processSkillDelete(Net::MessageIn &msg);
};
} // namespace EAthena