From 823aa3ec75e3d7388bafffa5dd7d1fb36a54e7ce Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Mar 2015 23:48:23 +0300 Subject: eathena: add partial support for packet SMSG_AUTOSHADOW_SPELL_LIST 0x0442. --- src/net/eathena/playerhandler.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/net/eathena/playerhandler.cpp') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 500ece81e..94d974be5 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -70,6 +70,7 @@ PlayerHandler::PlayerHandler() : SMSG_PLAYER_FAME_TAEKWON, SMSG_PLAYER_READ_BOOK, SMSG_PLAYER_EQUIP_TICK_ACK, + SMSG_AUTOSHADOW_SPELL_LIST, 0 }; handledMessages = _messages; @@ -181,6 +182,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPlayerEquipTickAck(msg); break; + case SMSG_AUTOSHADOW_SPELL_LIST: + processPlayerAutoShadowSpellList(msg); + break; + default: break; } @@ -597,4 +602,12 @@ void PlayerHandler::processPlayerEquipTickAck(Net::MessageIn &msg) msg.readInt32("flag"); } +void PlayerHandler::processPlayerAutoShadowSpellList(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + const int count = (msg.readInt16("len") - 8) / 2; + for (int f = 0; f < count; f ++) + msg.readInt16("skill id"); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50