From d483510d3c721e49c671a6510b23dc950332ba73 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 7 Apr 2018 01:23:15 +0300 Subject: Add packet SMSG_QUEST_UPDATE_OBJECTIVES 0x09fa. --- src/net/eathena/packetsin.inc | 1 + src/net/eathena/questrecv.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 227893d74..f927c52ed 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -927,6 +927,7 @@ if (packetVersion >= 20150513) packet(SMSG_HOMUNCULUS_INFO, 0x09f7, 75, &HomunculusRecv::processHomunculusInfo, 20150513); packet(SMSG_QUEST_LIST, 0x09f8, -1, &QuestRecv::processAddQuests, 20150513); packet(SMSG_QUEST_ADD, 0x09f9, 143, &QuestRecv::processAddQuest, 20150513); + packet(SMSG_QUEST_UPDATE_OBJECTIVES, 0x09fa, -1, &QuestRecv::processUpdateQuestsObjectives, 20150513); } // 20150805 diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp index 896cd8ca0..f7ce0b312 100644 --- a/src/net/eathena/questrecv.cpp +++ b/src/net/eathena/questrecv.cpp @@ -185,7 +185,10 @@ void QuestRecv::processUpdateQuestsObjectives(Net::MessageIn &msg) for (int f = 0; f < num; f ++) { msg.readInt32("quest id"); - msg.readInt32("monster id"); + 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