diff options
author | shennetsind <notind@gmail.com> | 2013-05-17 11:08:38 -0700 |
---|---|---|
committer | shennetsind <notind@gmail.com> | 2013-05-17 11:08:38 -0700 |
commit | 080f7a22740225df70a488849587b462a5d6b1a3 (patch) | |
tree | 0c1dc751af9f06e1ce3729d271de301f78a4e611 /src/map/quest.c | |
parent | 754af15505f32237f8063e51ae9a1cb90788dff4 (diff) | |
parent | 25e848f1a0f9317d63106cae048a1ef838411cb2 (diff) | |
download | hercules-080f7a22740225df70a488849587b462a5d6b1a3.tar.gz hercules-080f7a22740225df70a488849587b462a5d6b1a3.tar.bz2 hercules-080f7a22740225df70a488849587b462a5d6b1a3.tar.xz hercules-080f7a22740225df70a488849587b462a5d6b1a3.zip |
Merge pull request #1 from Earisu/master
updating, with earisu's
Diffstat (limited to 'src/map/quest.c')
-rw-r--r-- | src/map/quest.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/map/quest.c b/src/map/quest.c index c7ca06514..3ef162aaa 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -53,8 +53,8 @@ int quest_pc_login(TBL_PC * sd) if(sd->avail_quests == 0) return 1; - clif_quest_send_list(sd); - clif_quest_send_mission(sd); + clif->quest_send_list(sd); + clif->quest_send_mission(sd); return 0; } @@ -97,7 +97,7 @@ int quest_add(TBL_PC * sd, int quest_id) sd->avail_quests++; sd->save_quest = true; - clif_quest_add(sd, &sd->quest_log[i], sd->quest_index[i]); + clif->quest_add(sd, &sd->quest_log[i], sd->quest_index[i]); if( save_settings&64 ) chrif_save(sd,0); @@ -144,8 +144,8 @@ int quest_change(TBL_PC * sd, int qid1, int qid2) sd->quest_index[i] = j; sd->save_quest = true; - clif_quest_delete(sd, qid1); - clif_quest_add(sd, &sd->quest_log[i], sd->quest_index[i]); + clif->quest_delete(sd, qid1); + clif->quest_add(sd, &sd->quest_log[i], sd->quest_index[i]); if( save_settings&64 ) chrif_save(sd,0); @@ -176,7 +176,7 @@ int quest_delete(TBL_PC * sd, int quest_id) sd->quest_index[sd->num_quests] = 0; sd->save_quest = true; - clif_quest_delete(sd, quest_id); + clif->quest_delete(sd, quest_id); if( save_settings&64 ) chrif_save(sd,0); @@ -217,7 +217,7 @@ void quest_update_objective(TBL_PC * sd, int mob) { if( quest_db[sd->quest_index[i]].mob[j] == mob && sd->quest_log[i].count[j] < quest_db[sd->quest_index[i]].count[j] ) { sd->quest_log[i].count[j]++; sd->save_quest = true; - clif_quest_update_objective(sd,&sd->quest_log[i],sd->quest_index[i]); + clif->quest_update_objective(sd,&sd->quest_log[i],sd->quest_index[i]); } } } @@ -236,7 +236,7 @@ int quest_update_status(TBL_PC * sd, int quest_id, quest_state status) { sd->save_quest = true; if( status < Q_COMPLETE ) { - clif_quest_update_status(sd, quest_id, (bool)status); + clif->quest_update_status(sd, quest_id, (bool)status); return 0; } @@ -247,7 +247,7 @@ int quest_update_status(TBL_PC * sd, int quest_id, quest_state status) { memcpy(&sd->quest_log[sd->avail_quests], &tmp_quest,sizeof(struct quest)); } - clif_quest_delete(sd, quest_id); + clif->quest_delete(sd, quest_id); if( save_settings&64 ) chrif_save(sd,0); |