diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-11-03 02:09:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-11-03 02:09:11 +0300 |
commit | acc5e06a62dd6a368b06829e0ad2a2d2607af341 (patch) | |
tree | 4a2f94b327d3b6db007f2341b094ffde8601a789 /src/net/eathena/questrecv.cpp | |
parent | aeb24c79e3b69fafaa082ee586902b87f82a02f1 (diff) | |
download | mv-acc5e06a62dd6a368b06829e0ad2a2d2607af341.tar.gz mv-acc5e06a62dd6a368b06829e0ad2a2d2607af341.tar.bz2 mv-acc5e06a62dd6a368b06829e0ad2a2d2607af341.tar.xz mv-acc5e06a62dd6a368b06829e0ad2a2d2607af341.zip |
Add packet SMSG_QUEST_UPDATE_OBJECTIVES 0x0afe
Diffstat (limited to 'src/net/eathena/questrecv.cpp')
-rw-r--r-- | src/net/eathena/questrecv.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp index db8a1f39d..a7d295038 100644 --- a/src/net/eathena/questrecv.cpp +++ b/src/net/eathena/questrecv.cpp @@ -197,10 +197,19 @@ void QuestRecv::processUpdateQuestsObjectives(Net::MessageIn &msg) for (int f = 0; f < num; f ++) { msg.readInt32("quest id"); - if (msg.getVersion() >= 20150513) + if (msg.getVersion() >= 20181010) + { msg.readInt32("hunt ident"); + msg.readInt32("hunt ident2"); + } + else if (msg.getVersion() >= 20150513) + { + msg.readInt32("hunt ident"); + } else + { msg.readInt32("monster id"); + } msg.readInt16("count old"); msg.readInt16("count new"); } |