From acc5e06a62dd6a368b06829e0ad2a2d2607af341 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 3 Nov 2018 02:09:11 +0300 Subject: Add packet SMSG_QUEST_UPDATE_OBJECTIVES 0x0afe --- src/net/eathena/packetsin.inc | 3 +++ src/net/eathena/questrecv.cpp | 11 ++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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"); } -- cgit v1.2.3-60-g2f50