summaryrefslogtreecommitdiff
path: root/world/map/npc/functions
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2011-11-17 20:14:18 +0100
committerJessica Tölke <jtoelke@mail.upb.de>2011-12-15 22:28:07 +0100
commit1b7b0b422a0de660302600fa1faccbbe5adffb23 (patch)
treec3a8a48fa10e99337e0dde2cdea42c8aadc9567e /world/map/npc/functions
parent9f2465632de25155aed319a960529004f67af8ed (diff)
downloadserverdata-1b7b0b422a0de660302600fa1faccbbe5adffb23.tar.gz
serverdata-1b7b0b422a0de660302600fa1faccbbe5adffb23.tar.bz2
serverdata-1b7b0b422a0de660302600fa1faccbbe5adffb23.tar.xz
serverdata-1b7b0b422a0de660302600fa1faccbbe5adffb23.zip
Added phrases for daily quests.
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r--world/map/npc/functions/dailyquest.txt38
1 files changed, 36 insertions, 2 deletions
diff --git a/world/map/npc/functions/dailyquest.txt b/world/map/npc/functions/dailyquest.txt
index 83de4f0c..4d9bbc95 100644
--- a/world/map/npc/functions/dailyquest.txt
+++ b/world/map/npc/functions/dailyquest.txt
@@ -75,6 +75,7 @@ L_Trade:
goto L_Exit_Good;
mes "\"Thank you!\"";
+ callsub S_SayPhrase;
mes "";
mes "[" + @dq_money + " money]";
mes "[" + @dq_exp + " experience points]";
@@ -96,12 +97,45 @@ L_Low_Level:
goto L_Exit;
L_Not_Enough_Points:
- if (!@dq_handle_return)
- mes "\"You look exhausted, maybe you should rest a bit.\"";
+ callsub S_SayPhrase;
set @dq_return, 2;
goto L_Exit;
L_Exit:
set @dq_handle_return, 0; // Incase they forget
return;
+
+S_SayPhrase:
+ if (@dq_handle_return)
+ return;
+ if (DailyQuestPoints > 100)
+ goto L_Very_Very_High;
+ if (DailyQuestPoints > 80)
+ goto L_Very_High;
+ if (DailyQuestPoints > 50)
+ goto L_Medium_High;
+ if (DailyQuestPoints > @dq_cost)
+ goto L_High;
+ if (DailyQuestPoints > @dq_cost / 2)
+ goto L_Medium;
+ goto L_Low;
+L_Very_Very_High:
+ mes "\"Woah, you're bursting with power.\"";
+ return;
+L_Very_High:
+ mes "\"You're in a very good shape.\"";
+ return;
+L_Medium_High:
+ mes "\"TODO"\";
+ return;
+L_High:
+ mes "\"You don't seem very exhausted by my tasks.\"";
+ return
+L_Medium:
+ mes "\"I do not have any further tasks for you right now.\"";
+ return;
+L_Low:
+ mes "\"You look exhausted, maybe you should rest a bit.\"";
+ return;
+
}