summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
authorKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-11 07:12:45 +0000
committerKevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-04-11 07:12:45 +0000
commit3e2be49541f4f9e464fb7cac1c4bd6eff4df5572 (patch)
treefbda0c2978ef30de8362c56d2a352a06791d2bce /src/map/quest.c
parentc6670cae6548eb6792b13f00ea6d8299c2c825fc (diff)
downloadhercules-3e2be49541f4f9e464fb7cac1c4bd6eff4df5572.tar.gz
hercules-3e2be49541f4f9e464fb7cac1c4bd6eff4df5572.tar.bz2
hercules-3e2be49541f4f9e464fb7cac1c4bd6eff4df5572.tar.xz
hercules-3e2be49541f4f9e464fb7cac1c4bd6eff4df5572.zip
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
Diffstat (limited to 'src/map/quest.c')
-rw-r--r--src/map/quest.c17
1 files changed, 9 insertions, 8 deletions
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;