diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-18 17:13:15 +0530 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-03-13 07:52:47 +0000 |
commit | 974c7f982484341b58bf85c517bc81ab3b0e5ebe (patch) | |
tree | 947532cd69a30780138fff3e31513e2cf203c108 /src/map/clif.c | |
parent | 7a73c1cef1a60cc7282e1f60b5ed8e4a79d0dae7 (diff) | |
download | hercules-974c7f982484341b58bf85c517bc81ab3b0e5ebe.tar.gz hercules-974c7f982484341b58bf85c517bc81ab3b0e5ebe.tar.bz2 hercules-974c7f982484341b58bf85c517bc81ab3b0e5ebe.tar.xz hercules-974c7f982484341b58bf85c517bc81ab3b0e5ebe.zip |
Extended UPDATE_MISSION_HUNT to support new packet
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index a8f958241..8adb24450 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -16286,6 +16286,7 @@ void clif_quest_delete(struct map_session_data *sd, int quest_id) { /// Notification of an update to the hunting mission counter (ZC_UPDATE_MISSION_HUNT). /// 02b5 <packet len>.W <mobs>.W { <quest id>.L <mob id>.L <total count>.W <current count>.W }*3 +/// 09fa <packet len>.W <mobs>.W { <quest id>.L <hunt identification>.L <total count>.W <current count>.W }*3 void clif_quest_update_objective(struct map_session_data *sd, struct quest *qd) { int i, len, real_len; @@ -16313,7 +16314,11 @@ void clif_quest_update_objective(struct map_session_data *sd, struct quest *qd) real_len += sizeof(packet->objectives[i]); packet->objectives[i].questID = qd->quest_id; +#if PACKETVER >= 20150513 + packet->objectives[i].huntIdent = (qd->quest_id * 1000) + i; +#else packet->objectives[i].mob_id = qi->objectives[i].mob; +#endif packet->objectives[i].maxCount = qi->objectives[i].count; packet->objectives[i].count = qd->count[i]; } |