From 3e2be49541f4f9e464fb7cac1c4bd6eff4df5572 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 11 Apr 2008 07:12:45 +0000 Subject: Finished most of the quest log code, still bits here and there but it's usable now. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12558 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/quest.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/map/quest.c') diff --git a/src/map/quest.c b/src/map/quest.c index f01ff4526..9ce8a0251 100644 --- a/src/map/quest.c +++ b/src/map/quest.c @@ -44,11 +44,6 @@ int quest_pc_login(TBL_PC * sd) return 0; } -struct quest * quest_make(int id, time_t time, int num_objs, struct quest_objective ** qo_arr) -{ - return NULL; -} - int quest_add(TBL_PC * sd, struct quest * qd) { @@ -101,7 +96,7 @@ int quest_delete(TBL_PC * sd, int quest_id) } -int quest_update_objective(TBL_PC * sd, int quest_id, int objective_num, struct quest_objective qod) +int quest_update_objective(TBL_PC * sd, int quest_id, int objective_num, const char * name, int count) { int i; @@ -113,8 +108,8 @@ int quest_update_objective(TBL_PC * sd, int quest_id, int objective_num, struct if(i != MAX_QUEST) return -1; - memcpy(sd->quest_log[i].objectives[objective_num].name, qod.name, NAME_LENGTH); - sd->quest_log[i].objectives[objective_num].count = qod.count; + memcpy(&sd->quest_log[i].objectives[objective_num].name, name, NAME_LENGTH); + sd->quest_log[i].objectives[objective_num].count = count; //Notify client clif_send_quest_info(sd, &sd->quest_log[i]); @@ -123,6 +118,12 @@ int quest_update_objective(TBL_PC * sd, int quest_id, int objective_num, struct } +int quest_update_status(TBL_PC * sd, int quest_id, bool status) +{ + + return 0; +} + int quest_load_info(TBL_PC * sd, struct mmo_charstatus * st) { sd->num_quests = st->num_quests; -- cgit v1.2.3-60-g2f50