diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/packetsin.inc | 3 | ||||
-rw-r--r-- | src/net/eathena/questrecv.cpp | 11 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index c8c5ef0f7..65c65b593 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -1369,6 +1369,7 @@ if (packetVersionZero >= 20181010) { packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181010); packet(SMSG_QUEST_ADD, 0x0b0c, 155, &QuestRecv::processAddQuest, 20181010); + packet(SMSG_QUEST_UPDATE_OBJECTIVES, 0x0afe, -1, &QuestRecv::processUpdateQuestsObjectives, 20181010); } // 20181017 main @@ -1376,6 +1377,7 @@ if (packetVersionMain >= 20181017) { packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181017); packet(SMSG_QUEST_ADD, 0x0b0c, 155, &QuestRecv::processAddQuest, 20181017); + packet(SMSG_QUEST_UPDATE_OBJECTIVES, 0x0afe, -1, &QuestRecv::processUpdateQuestsObjectives, 20181017); } // 20181017 re @@ -1383,6 +1385,7 @@ if (packetVersionRe >= 20181017) { packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181017); packet(SMSG_QUEST_ADD, 0x0b0c, 155, &QuestRecv::processAddQuest, 20181017); + packet(SMSG_QUEST_UPDATE_OBJECTIVES, 0x0afe, -1, &QuestRecv::processUpdateQuestsObjectives, 20181017); } // 20181017 main 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"); } |