summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 14:15:18 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 14:15:18 +0300
commit9b9a37c488c12c448e2d0287dc54df15e57c9f38 (patch)
treeb777e1bcab4018e138c0e3339cfd5f77087126a1 /src/net/eathena
parentd0e9d200299f9b6c2cc8a95f405c7821d8d5dc78 (diff)
downloadmv-9b9a37c488c12c448e2d0287dc54df15e57c9f38.tar.gz
mv-9b9a37c488c12c448e2d0287dc54df15e57c9f38.tar.bz2
mv-9b9a37c488c12c448e2d0287dc54df15e57c9f38.tar.xz
mv-9b9a37c488c12c448e2d0287dc54df15e57c9f38.zip
eathena: add partial support for packet SMSG_PLAYER_SKILL_PRODUCE_MIX_LIST 0x018d.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/eathena/skillhandler.cpp18
-rw-r--r--src/net/eathena/skillhandler.h2
3 files changed, 21 insertions, 0 deletions
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 8c300d524..6b82f8086 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -99,6 +99,7 @@
#define SMSG_PLAYER_SKILL_COOLDOWN_LIST 0x0985
#define SMSG_PLAYER_SKILL_MESSAGE 0x0215
#define SMSG_PLAYER_NOTIFY_MAPINFO 0x0189
+#define SMSG_PLAYER_SKILL_PRODUCE_MIX_LIST 0x018d
#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 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
diff --git a/src/net/eathena/skillhandler.h b/src/net/eathena/skillhandler.h
index 2960761ca..9a375b325 100644
--- a/src/net/eathena/skillhandler.h
+++ b/src/net/eathena/skillhandler.h
@@ -71,6 +71,8 @@ class SkillHandler final : public MessageHandler, public Ea::SkillHandler
static void processSkillWarpPoint(Net::MessageIn &msg);
static void processSkillMemoMessage(Net::MessageIn &msg);
+
+ static void processSkillProduceMixList(Net::MessageIn &msg);
};
} // namespace EAthena