summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-03 01:52:04 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-03 01:52:04 +0300
commit594bec3c5e79a970bb9e24000321c035607fc4ed (patch)
treeaa790f01ae0dcb46027df0e250da73de0278718b
parent6490c4cffbf326ad8044c149d7ce100c94c02b8d (diff)
downloadplus-594bec3c5e79a970bb9e24000321c035607fc4ed.tar.gz
plus-594bec3c5e79a970bb9e24000321c035607fc4ed.tar.bz2
plus-594bec3c5e79a970bb9e24000321c035607fc4ed.tar.xz
plus-594bec3c5e79a970bb9e24000321c035607fc4ed.zip
Add packet SMSG_QUEST_LIST 0x0aff.
-rw-r--r--src/net/eathena/packetsin.inc18
-rw-r--r--src/net/eathena/questrecv.cpp8
2 files changed, 25 insertions, 1 deletions
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");