summaryrefslogtreecommitdiff
path: root/src/map/quest.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/quest.c')
-rw-r--r--src/map/quest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/quest.c b/src/map/quest.c
index f73beb902..6e6bdb76c 100644
--- a/src/map/quest.c
+++ b/src/map/quest.c
@@ -92,6 +92,7 @@ int quest_add(TBL_PC * sd, int quest_id)
sd->quest_index[i] = j;
sd->num_quests++;
sd->avail_quests++;
+ sd->save_quest = true;
clif_quest_add(sd, &sd->quest_log[i], sd->quest_index[i]);
@@ -138,6 +139,7 @@ int quest_change(TBL_PC * sd, int qid1, int qid2)
sd->quest_log[i].state = Q_ACTIVE;
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]);
@@ -169,6 +171,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;
+ sd->save_quest = true;
clif_quest_delete(sd, quest_id);
@@ -213,6 +216,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]);
}
}
@@ -231,6 +235,7 @@ int quest_update_status(TBL_PC * sd, int quest_id, quest_state status)
}
sd->quest_log[i].state = status;
+ sd->save_quest = true;
if( status < Q_COMPLETE )
{