summaryrefslogtreecommitdiff
path: root/src/net/eathena/questrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-07 01:15:20 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-07 01:54:33 +0300
commit47777be518740ddac51b09b0c7cf9237d719c833 (patch)
treef978fa616b2fb5e3bc4371cccba5df19e8e823fc /src/net/eathena/questrecv.cpp
parente74554d22e2308ffb7ecdcae07477b8414f64a3b (diff)
downloadmanaplus-47777be518740ddac51b09b0c7cf9237d719c833.tar.gz
manaplus-47777be518740ddac51b09b0c7cf9237d719c833.tar.bz2
manaplus-47777be518740ddac51b09b0c7cf9237d719c833.tar.xz
manaplus-47777be518740ddac51b09b0c7cf9237d719c833.zip
Add packet SMSG_QUEST_ADD 0x09f9.
Diffstat (limited to 'src/net/eathena/questrecv.cpp')
-rw-r--r--src/net/eathena/questrecv.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp
index 8b709062d..896cd8ca0 100644
--- a/src/net/eathena/questrecv.cpp
+++ b/src/net/eathena/questrecv.cpp
@@ -42,9 +42,20 @@ void QuestRecv::processAddQuest(Net::MessageIn &msg)
for (int f = 0; f < num; f ++)
{
// need use in quests kills list
- msg.readInt32("monster id");
- msg.readInt16("count");
- msg.readString(24, "monster name");
+ if (msg.getVersion() >= 20150513)
+ {
+ msg.readInt32("hunt ident");
+ msg.readInt32("mob type");
+ }
+ msg.readInt32("mob id");
+ if (msg.getVersion() >= 20150513)
+ {
+ msg.readInt16("level min");
+ msg.readInt16("level max");
+ }
+ msg.readInt16("hunt count");
+ msg.readInt16("max count");
+ msg.readString(24, "mob name");
}
msg.skipToEnd("unused");