summaryrefslogtreecommitdiff
path: root/world/map
diff options
context:
space:
mode:
Diffstat (limited to 'world/map')
-rw-r--r--world/map/npc/functions/dailyquest.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/world/map/npc/functions/dailyquest.txt b/world/map/npc/functions/dailyquest.txt
index 6a09c291..c0e6c998 100644
--- a/world/map/npc/functions/dailyquest.txt
+++ b/world/map/npc/functions/dailyquest.txt
@@ -27,8 +27,7 @@
// (DailyQuestBonus makes a good reward from non-daily quests)
-
-function|script|DailyQuest|{
+function|script|DailyQuestPoints|{
set @dq_earliest, gettimetick(2) - 86400;
if (DailyQuestTime < @dq_earliest)
set DailyQuestTime, @dq_earliest;
@@ -53,6 +52,13 @@ L_Bonus:
set DailyQuestPoints, DailyQuestPoints + DailyQuestBonus;
set DailyQuestBonus, 0;
+ return;
+}
+
+function|script|DailyQuest|{
+
+ callfunc "DailyQuestPoints";
+
if (BaseLevel < @dq_level)
goto L_Low_Level;
if (DailyQuestPoints < @dq_cost)