summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-10-10 21:11:03 +0300
committerAndrei Karas <akaras@inbox.ru>2018-10-22 01:42:43 +0300
commit36ba4a248e5c23af16e1cdf64cddff172e42a383 (patch)
tree610004c5352ae62305b30d8ef2c794b716cef031 /src/map
parentcd98199c9378bc15078317fc79ef7a32ad096f76 (diff)
downloadhercules-36ba4a248e5c23af16e1cdf64cddff172e42a383.tar.gz
hercules-36ba4a248e5c23af16e1cdf64cddff172e42a383.tar.bz2
hercules-36ba4a248e5c23af16e1cdf64cddff172e42a383.tar.xz
hercules-36ba4a248e5c23af16e1cdf64cddff172e42a383.zip
Update packet ZC_ALL_QUEST_LIST.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c6
-rw-r--r--src/map/packets_struct.h10
2 files changed, 13 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a7e8b66b9..dca381897 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -16872,7 +16872,11 @@ static void clif_quest_send_list(struct map_session_data *sd)
real_len += sizeof(info->objectives[j]);
mob_data = mob->db(qi->objectives[j].mob);
-#if PACKETVER >= 20150513
+#if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017
+ info->objectives[j].huntIdent = sd->quest_log[i].quest_id;
+ info->objectives[j].huntIdent2 = j;
+ info->objectives[j].mobType = 0; // Info Needed
+#elif PACKETVER >= 20150513
info->objectives[j].huntIdent = (sd->quest_log[i].quest_id * 1000) + j;
info->objectives[j].mobType = 0; // Info Needed
#endif
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 9fde3205c..5d209cee0 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -324,7 +324,9 @@ enum packet_headers {
achievementUpdateType = 0xa24,
achievementRewardAckType = 0xa26,
#endif // PACKETVER >= 20141016
-#if PACKETVER >= 20150513 // [4144] 0x09f8 handling in client from 2014-10-29aRagexe and 2014-03-26cRagexeRE
+#if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017
+ questListType = 0xaff, ///< ZC_ALL_QUEST_LIST4
+#elif PACKETVER >= 20150513 // [4144] 0x09f8 handling in client from 2014-10-29aRagexe and 2014-03-26cRagexeRE
questListType = 0x9f8, ///< ZC_ALL_QUEST_LIST3
#elif PACKETVER >= 20141022
questListType = 0x97a, ///< ZC_ALL_QUEST_LIST2
@@ -1451,7 +1453,11 @@ struct packet_hotkey {
* MISSION_HUNT_INFO_EX (PACKETVER >= 20150513)
*/
struct packet_mission_info_sub {
-#if PACKETVER >= 20150513
+#if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017
+ uint32 huntIdent;
+ uint32 huntIdent2;
+ uint32 mobType;
+#elif PACKETVER >= 20150513
uint32 huntIdent;
uint32 mobType;
#endif