summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-04-07 01:37:41 +0300
committerAndrei Karas <akaras@inbox.ru>2018-04-07 01:54:33 +0300
commitf2ce478013f9cf60af1978cce37f2c4f32a6d038 (patch)
tree4f8e5f7f776a29b44e8d3cc935d563fab94e34d4
parentd483510d3c721e49c671a6510b23dc950332ba73 (diff)
downloadmanaplus-f2ce478013f9cf60af1978cce37f2c4f32a6d038.tar.gz
manaplus-f2ce478013f9cf60af1978cce37f2c4f32a6d038.tar.bz2
manaplus-f2ce478013f9cf60af1978cce37f2c4f32a6d038.tar.xz
manaplus-f2ce478013f9cf60af1978cce37f2c4f32a6d038.zip
Add packet SMSG_QUEST_NOTIFY_OBJECTIVES 0x08fe.
-rw-r--r--src/net/eathena/packetsin.inc1
-rw-r--r--src/net/eathena/questrecv.cpp13
-rw-r--r--src/net/eathena/questrecv.h1
3 files changed, 15 insertions, 0 deletions
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index f927c52ed..4a5e3fbf3 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -928,6 +928,7 @@ if (packetVersion >= 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);
+ packet(SMSG_QUEST_NOTIFY_OBJECTIVES, 0x08fe, -1, &QuestRecv::processUpdateQuestsObjectives2, 20150513);
}
// 20150805
diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp
index f7ce0b312..b05d85c64 100644
--- a/src/net/eathena/questrecv.cpp
+++ b/src/net/eathena/questrecv.cpp
@@ -194,6 +194,19 @@ void QuestRecv::processUpdateQuestsObjectives(Net::MessageIn &msg)
}
}
+void QuestRecv::processUpdateQuestsObjectives2(Net::MessageIn &msg)
+{
+ // ignored
+ const int num = (msg.readInt16("len") - 4) / 12;
+ for (int f = 0; f < num; f ++)
+ {
+ msg.readInt32("quest id");
+ msg.readInt32("monster id");
+ msg.readInt16("max count");
+ msg.readInt16("count");
+ }
+}
+
void QuestRecv::processRemoveQuest(Net::MessageIn &msg)
{
const int var = msg.readInt32("quest id");
diff --git a/src/net/eathena/questrecv.h b/src/net/eathena/questrecv.h
index 1d7e17b95..f0b1582db 100644
--- a/src/net/eathena/questrecv.h
+++ b/src/net/eathena/questrecv.h
@@ -35,6 +35,7 @@ namespace EAthena
void processAddQuests(Net::MessageIn &msg);
void processAddQuests2(Net::MessageIn &msg);
void processAddQuestsObjectives(Net::MessageIn &msg);
+ void processUpdateQuestsObjectives2(Net::MessageIn &msg);
void processUpdateQuestsObjectives(Net::MessageIn &msg);
void processRemoveQuest(Net::MessageIn &msg);
void processActivateQuest(Net::MessageIn &msg);