From cd98199c9378bc15078317fc79ef7a32ad096f76 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Oct 2018 21:05:40 +0300 Subject: Update packet ZC_UPDATE_MISSION_HUNT_EX --- src/map/clif.c | 5 ++++- src/map/packets_struct.h | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'src/map') diff --git a/src/map/clif.c b/src/map/clif.c index 1e9844f14..a7e8b66b9 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -17022,7 +17022,10 @@ static void clif_quest_update_objective(struct map_session_data *sd, struct ques real_len += sizeof(packet->objectives[i]); packet->objectives[i].questID = qd->quest_id; -#if PACKETVER >= 20150513 +#if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017 + packet->objectives[i].huntIdent = qd->quest_id; + packet->objectives[i].huntIdent2 = i; +#elif PACKETVER >= 20150513 packet->objectives[i].huntIdent = (qd->quest_id * 1000) + i; #else packet->objectives[i].mob_id = qi->objectives[i].mob; diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 9248d96c8..9fde3205c 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -383,7 +383,9 @@ enum packet_headers { #else questAddType = 0x2b3, #endif // PACKETVER < 20150513 -#if PACKETVER >= 20150513 +#if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017 + questUpdateType = 0xafe, +#elif PACKETVER >= 20150513 questUpdateType = 0x9fa, #else questUpdateType = 0x2b5, @@ -1853,7 +1855,10 @@ struct packet_quest_add_header { */ struct packet_quest_update_hunt { uint32 questID; -#if PACKETVER >= 20150513 +#if PACKETVER_ZERO_NUM >= 20181010 || PACKETVER >= 20181017 + uint32 huntIdent; + uint32 huntIdent2; +#elif PACKETVER >= 20150513 uint32 huntIdent; #else uint32 mob_id; -- cgit v1.2.3-60-g2f50