From 9b9a37c488c12c448e2d0287dc54df15e57c9f38 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Mar 2015 14:15:18 +0300 Subject: eathena: add partial support for packet SMSG_PLAYER_SKILL_PRODUCE_MIX_LIST 0x018d. --- src/net/eathena/skillhandler.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/net/eathena/skillhandler.cpp') diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp index 11164c3be..2e19d1e10 100644 --- a/src/net/eathena/skillhandler.cpp +++ b/src/net/eathena/skillhandler.cpp @@ -63,6 +63,7 @@ SkillHandler::SkillHandler() : SMSG_PLAYER_UPDATE_SKILL, SMSG_SKILL_WARP_POINT, SMSG_SKILL_MEMO_MESSAGE, + SMSG_PLAYER_SKILL_PRODUCE_MIX_LIST, 0 }; handledMessages = _messages; @@ -117,6 +118,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg) processSkillMemoMessage(msg); break; + case SMSG_PLAYER_SKILL_PRODUCE_MIX_LIST: + processSkillProduceMixList(msg); + break; + default: break; } @@ -398,4 +403,17 @@ void SkillHandler::processSkillMemoMessage(Net::MessageIn &msg) msg.readUInt8("type"); } +void SkillHandler::processSkillProduceMixList(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + const int count = (msg.readInt16("len") - 8) / 8; + for (int f = 0; f < count; f ++) + { + msg.readInt16("item id"); + for (int d = 0; d < 3; d ++) + msg.readInt16("material id"); + } +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2