diff options
author | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-09-12 02:43:02 +0000 |
---|---|---|
committer | Inkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-09-12 02:43:02 +0000 |
commit | 1739298348c4d8c9052c05b7ac9a528e34de14d4 (patch) | |
tree | 43a8290fe0b32c6b303cfe0b4f3893be7893978a /src/map/quest.c | |
parent | 19842e42ba718181671aa80a0dec83b0f680a209 (diff) | |
download | hercules-1739298348c4d8c9052c05b7ac9a528e34de14d4.tar.gz hercules-1739298348c4d8c9052c05b7ac9a528e34de14d4.tar.bz2 hercules-1739298348c4d8c9052c05b7ac9a528e34de14d4.tar.xz hercules-1739298348c4d8c9052c05b7ac9a528e34de14d4.zip |
* Clarified the names of some questlog functions and eventually implemented kill counts updating.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14056 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/quest.c')
-rw-r--r-- | src/map/quest.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/map/quest.c b/src/map/quest.c index 61d6fda36..03a74214f 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -50,8 +50,8 @@ int quest_pc_login(TBL_PC * sd) if(sd->avail_quests == 0) return 1; - clif_send_questlog(sd); - clif_send_questlog_info(sd); + clif_quest_send_list(sd); + clif_quest_send_mission(sd); return 0; } @@ -93,7 +93,7 @@ int quest_add(TBL_PC * sd, int quest_id) sd->num_quests++; sd->avail_quests++; - clif_send_quest_info(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); @@ -139,8 +139,8 @@ int quest_change(TBL_PC * sd, int qid1, int qid2) sd->quest_index[i] = j; - clif_send_quest_delete(sd, qid1); - clif_send_quest_info(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); @@ -170,7 +170,7 @@ int quest_delete(TBL_PC * sd, int quest_id) memset(&sd->quest_log[sd->num_quests], 0, sizeof(struct quest)); sd->quest_index[sd->num_quests] = 0; - clif_send_quest_delete(sd, quest_id); + clif_quest_delete(sd, quest_id); if( save_settings&64 ) chrif_save(sd,0); @@ -191,11 +191,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]++; - - // Should figure out the real packet. - //clif_send_quest_delete(sd, sd->quest_log[i].quest_id); - //clif_send_quest_info(sd, &sd->quest_log[i]); - //break; + clif_quest_update_objective(sd,&sd->quest_log[i],sd->quest_index[i]); } } } @@ -216,7 +212,7 @@ int quest_update_status(TBL_PC * sd, int quest_id, quest_state status) if( status < Q_COMPLETE ) { - clif_send_quest_status(sd, quest_id, (bool)status); + clif_quest_update_status(sd, quest_id, (bool)status); return 0; } @@ -228,7 +224,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_send_quest_delete(sd, quest_id); + clif_quest_delete(sd, quest_id); if( save_settings&64 ) chrif_save(sd,0); |