summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-03 02:09:11 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-03 02:09:11 +0300
commitacc5e06a62dd6a368b06829e0ad2a2d2607af341 (patch)
tree4a2f94b327d3b6db007f2341b094ffde8601a789 /src
parentaeb24c79e3b69fafaa082ee586902b87f82a02f1 (diff)
downloadmanaplus-acc5e06a62dd6a368b06829e0ad2a2d2607af341.tar.gz
manaplus-acc5e06a62dd6a368b06829e0ad2a2d2607af341.tar.bz2
manaplus-acc5e06a62dd6a368b06829e0ad2a2d2607af341.tar.xz
manaplus-acc5e06a62dd6a368b06829e0ad2a2d2607af341.zip
Add packet SMSG_QUEST_UPDATE_OBJECTIVES 0x0afe
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/packetsin.inc3
-rw-r--r--src/net/eathena/questrecv.cpp11
2 files changed, 13 insertions, 1 deletions
diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc
index c8c5ef0f7..65c65b593 100644
--- a/src/net/eathena/packetsin.inc
+++ b/src/net/eathena/packetsin.inc
@@ -1369,6 +1369,7 @@ if (packetVersionZero >= 20181010)
{
packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181010);
packet(SMSG_QUEST_ADD, 0x0b0c, 155, &QuestRecv::processAddQuest, 20181010);
+ packet(SMSG_QUEST_UPDATE_OBJECTIVES, 0x0afe, -1, &QuestRecv::processUpdateQuestsObjectives, 20181010);
}
// 20181017 main
@@ -1376,6 +1377,7 @@ if (packetVersionMain >= 20181017)
{
packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181017);
packet(SMSG_QUEST_ADD, 0x0b0c, 155, &QuestRecv::processAddQuest, 20181017);
+ packet(SMSG_QUEST_UPDATE_OBJECTIVES, 0x0afe, -1, &QuestRecv::processUpdateQuestsObjectives, 20181017);
}
// 20181017 re
@@ -1383,6 +1385,7 @@ if (packetVersionRe >= 20181017)
{
packet(SMSG_QUEST_LIST, 0x0aff, -1, &QuestRecv::processAddQuests, 20181017);
packet(SMSG_QUEST_ADD, 0x0b0c, 155, &QuestRecv::processAddQuest, 20181017);
+ packet(SMSG_QUEST_UPDATE_OBJECTIVES, 0x0afe, -1, &QuestRecv::processUpdateQuestsObjectives, 20181017);
}
// 20181017 main
diff --git a/src/net/eathena/questrecv.cpp b/src/net/eathena/questrecv.cpp
index db8a1f39d..a7d295038 100644
--- a/src/net/eathena/questrecv.cpp
+++ b/src/net/eathena/questrecv.cpp
@@ -197,10 +197,19 @@ void QuestRecv::processUpdateQuestsObjectives(Net::MessageIn &msg)
for (int f = 0; f < num; f ++)
{
msg.readInt32("quest id");
- if (msg.getVersion() >= 20150513)
+ if (msg.getVersion() >= 20181010)
+ {
msg.readInt32("hunt ident");
+ msg.readInt32("hunt ident2");
+ }
+ else if (msg.getVersion() >= 20150513)
+ {
+ msg.readInt32("hunt ident");
+ }
else
+ {
msg.readInt32("monster id");
+ }
msg.readInt16("count old");
msg.readInt16("count new");
}