From aeb24c79e3b69fafaa082ee586902b87f82a02f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 3 Nov 2018 01:59:46 +0300 Subject: Add packet SMSG_QUEST_ADD 0x0b0c --- src/net/eathena/packetsin.inc | 3 +++ src/net/eathena/questrecv.cpp | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 388511795..c8c5ef0f7 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -1368,18 +1368,21 @@ if (packetVersion >= 20181002) if (packetVersionZero >= 20181010) { packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181010); + packet(SMSG_QUEST_ADD, 0x0b0c, 155, &QuestRecv::processAddQuest, 20181010); } // 20181017 main if (packetVersionMain >= 20181017) { packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181017); + packet(SMSG_QUEST_ADD, 0x0b0c, 155, &QuestRecv::processAddQuest, 20181017); } // 20181017 re if (packetVersionRe >= 20181017) { packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181017); + packet(SMSG_QUEST_ADD, 0x0b0c, 155, &QuestRecv::processAddQuest, 20181017); } // 20181017 main diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp index b77915e3a..db8a1f39d 100644 --- a/src/net/eathena/questrecv.cpp +++ b/src/net/eathena/questrecv.cpp @@ -42,7 +42,13 @@ void QuestRecv::processAddQuest(Net::MessageIn &msg) for (int f = 0; f < num; f ++) { // need use in quests kills list - 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-70-g09d2