From 594bec3c5e79a970bb9e24000321c035607fc4ed Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 3 Nov 2018 01:52:04 +0300 Subject: Add packet SMSG_QUEST_LIST 0x0aff. --- src/net/eathena/packetsin.inc | 18 ++++++++++++++++++ src/net/eathena/questrecv.cpp | 8 +++++++- 2 files changed, 25 insertions(+), 1 deletion(-) (limited to 'src/net') diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index aa30f5cfc..388511795 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -1364,6 +1364,24 @@ if (packetVersion >= 20181002) packet(SMSG_BEING_REMOVE_SPECIAL_EFFECT, 0x0b0d, 10, &BeingRecv::processBeingRemoveSpecialEffect, 20181002); } +// 20181010 zero +if (packetVersionZero >= 20181010) +{ + packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181010); +} + +// 20181017 main +if (packetVersionMain >= 20181017) +{ + packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181017); +} + +// 20181017 re +if (packetVersionRe >= 20181017) +{ + packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181017); +} + // 20181017 main if (packetVersionMain >= 20181017) { diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp index b05d85c64..b77915e3a 100644 --- a/src/net/eathena/questrecv.cpp +++ b/src/net/eathena/questrecv.cpp @@ -108,7 +108,13 @@ void QuestRecv::processAddQuests(Net::MessageIn &msg) const int cnt = msg.readInt16("objectives count"); for (int d = 0; d < cnt; d ++) { - if (msg.getVersion() >= 20150513) + if (msg.getVersion() >= 20181010) + { + msg.readInt32("hunt ident"); + msg.readInt32("hunt ident2"); + msg.readInt32("mob type"); + } + else if (msg.getVersion() >= 20150513) { msg.readInt32("hunt ident"); msg.readInt32("mob type"); -- cgit v1.2.3-60-g2f50