From 70aa8d620ec337d629e096f2f7c8cdaa2104fb53 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 14:52:25 +0300 Subject: eathena: add partial support for packet SMSG_SKILL_ARROW_CREATE_LIST 0x01ad. --- src/net/eathena/skillhandler.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/net/eathena/skillhandler.cpp') diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 1316c4dda..d92fd697d 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -66,6 +66,7 @@ SkillHandler::SkillHandler() : SMSG_PLAYER_SKILL_PRODUCE_MIX_LIST, SMSG_PLAYER_SKILL_PRODUCE_EFFECT, SMSG_SKILL_UNIT_UPDATE, + SMSG_SKILL_ARROW_CREATE_LIST, 0 }; handledMessages = _messages; @@ -132,6 +133,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg) processSkillUnitUpdate(msg); break; + case SMSG_SKILL_ARROW_CREATE_LIST: + processSkillArrowCreateList(msg); + break; + default: break; } @@ -441,4 +446,13 @@ void SkillHandler::processSkillUnitUpdate(Net::MessageIn &msg) msg.readInt32("being id"); } +void SkillHandler::processSkillArrowCreateList(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + const int count = (msg.readInt16("len") - 4) / 2; + for (int f = 0; f < count; f ++) + msg.readInt16("item id"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2