From 06972c2281cc8d13834e022639699e2dc03cb639 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 14:19:40 +0300 Subject: eathena: add partial support for packet SMSG_PLAYER_SKILL_PRODUCE_EFFECT 0x018f. --- src/net/eathena/protocol.h | 1 + src/net/eathena/skillhandler.cpp | 13 +++++++++++++ src/net/eathena/skillhandler.h | 2 ++ 3 files changed, 16 insertions(+) (limited to 'src') diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 6b82f8086..21f2b825d 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -100,6 +100,7 @@ #define SMSG_PLAYER_SKILL_MESSAGE 0x0215 #define SMSG_PLAYER_NOTIFY_MAPINFO 0x0189 #define SMSG_PLAYER_SKILL_PRODUCE_MIX_LIST 0x018d +#define SMSG_PLAYER_SKILL_PRODUCE_EFFECT 0x018f #define SMSG_SKILL_FAILED 0x0110 #define SMSG_SKILL_DAMAGE 0x01de #define SMSG_SKILL_AUTO_CAST 0x0147 diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 2e19d1e10..abe33cda1 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -64,6 +64,7 @@ SkillHandler::SkillHandler() : SMSG_SKILL_WARP_POINT, SMSG_SKILL_MEMO_MESSAGE, SMSG_PLAYER_SKILL_PRODUCE_MIX_LIST, + SMSG_PLAYER_SKILL_PRODUCE_EFFECT, 0 }; handledMessages = _messages; @@ -122,6 +123,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg) processSkillProduceMixList(msg); break; + case SMSG_PLAYER_SKILL_PRODUCE_EFFECT: + processSkillProduceEffect(msg); + break; + default: break; } @@ -416,4 +421,12 @@ void SkillHandler::processSkillProduceMixList(Net::MessageIn &msg) } } +void SkillHandler::processSkillProduceEffect(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt16("flag"); + msg.readInt16("item id"); +} + } // namespace EAthena diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h index 9a375b325..f1820ae3f 100644 --- a/src/net/eathena/skillhandler.h +++ b/src/net/eathena/skillhandler.h @@ -73,6 +73,8 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler static void processSkillMemoMessage(Net::MessageIn &msg); static void processSkillProduceMixList(Net::MessageIn &msg); + + static void processSkillProduceEffect(Net::MessageIn &msg); }; } // namespace EAthena -- cgit v1.2.3-70-g09d2