diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-18 17:36:25 +0530 |
---|---|---|
committer | Asheraf <acheraf1998@gmail.com> | 2018-03-13 07:52:57 +0000 |
commit | d02ebf0532fe251bfac6c6aec78e72eb64156bd7 (patch) | |
tree | 44f4b87e9a429a97008386026a04beee7bb786a5 /src/map/quest.c | |
parent | 974c7f982484341b58bf85c517bc81ab3b0e5ebe (diff) | |
download | hercules-d02ebf0532fe251bfac6c6aec78e72eb64156bd7.tar.gz hercules-d02ebf0532fe251bfac6c6aec78e72eb64156bd7.tar.bz2 hercules-d02ebf0532fe251bfac6c6aec78e72eb64156bd7.tar.xz hercules-d02ebf0532fe251bfac6c6aec78e72eb64156bd7.zip |
Added quest_notify_objective and its packet
Diffstat (limited to 'src/map/quest.c')
-rw-r--r-- | src/map/quest.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/quest.c b/src/map/quest.c index 4c5dcb59f..581ecf45e 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -148,7 +148,11 @@ int quest_add(struct map_session_data *sd, int quest_id, unsigned int time_limit sd->save_quest = true; clif->quest_add(sd, &sd->quest_log[n]); +#if PACKETVER >= 20150513 + clif->quest_notify_objective(sd, &sd->quest_log[n]); +#else clif->quest_update_objective(sd, &sd->quest_log[n]); +#endif if ((map->save_settings & 64) != 0) chrif->save(sd, 0); @@ -201,7 +205,11 @@ int quest_change(struct map_session_data *sd, int qid1, int qid2) clif->quest_delete(sd, qid1); clif->quest_add(sd, &sd->quest_log[i]); +#if PACKETVER >= 20150513 + clif->quest_notify_objective(sd, &sd->quest_log[i]); +#else clif->quest_update_objective(sd, &sd->quest_log[i]); +#endif if( map->save_settings&64 ) chrif->save(sd,0); |