diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-04-07 01:23:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-04-07 01:54:33 +0300 |
commit | d483510d3c721e49c671a6510b23dc950332ba73 (patch) | |
tree | cf02a4cbc50011050415c8f65e99b74ffd4ae2d1 /src/net/eathena | |
parent | 47777be518740ddac51b09b0c7cf9237d719c833 (diff) | |
download | manaplus-d483510d3c721e49c671a6510b23dc950332ba73.tar.gz manaplus-d483510d3c721e49c671a6510b23dc950332ba73.tar.bz2 manaplus-d483510d3c721e49c671a6510b23dc950332ba73.tar.xz manaplus-d483510d3c721e49c671a6510b23dc950332ba73.zip |
Add packet SMSG_QUEST_UPDATE_OBJECTIVES 0x09fa.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/packetsin.inc | 1 | ||||
-rw-r--r-- | src/net/eathena/questrecv.cpp | 5 |
2 files changed, 5 insertions, 1 deletions
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"); } |