diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-17 23:48:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-17 23:48:23 +0300 |
commit | 823aa3ec75e3d7388bafffa5dd7d1fb36a54e7ce (patch) | |
tree | 8ceae54ede2df12e048ed86aa829550335af0154 /src/net/eathena/playerhandler.cpp | |
parent | 593aa06d1c7b9bd68c1d47e2967db3cac41c8368 (diff) | |
download | manaverse-823aa3ec75e3d7388bafffa5dd7d1fb36a54e7ce.tar.gz manaverse-823aa3ec75e3d7388bafffa5dd7d1fb36a54e7ce.tar.bz2 manaverse-823aa3ec75e3d7388bafffa5dd7d1fb36a54e7ce.tar.xz manaverse-823aa3ec75e3d7388bafffa5dd7d1fb36a54e7ce.zip |
eathena: add partial support for packet SMSG_AUTOSHADOW_SPELL_LIST 0x0442.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 |