summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-20 15:35:43 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-20 15:35:43 -0300
commit0fed099bb375cdfb19802dd69a88575c6b4f5ab6 (patch)
tree0ac6a7328edd6a3d28f9a1fbf64986955f771660 /npc/functions
parent7fc5c0df16c91ab7b8ee5c785445bc9ee118247d (diff)
downloadserverdata-0fed099bb375cdfb19802dd69a88575c6b4f5ab6.tar.gz
serverdata-0fed099bb375cdfb19802dd69a88575c6b4f5ab6.tar.bz2
serverdata-0fed099bb375cdfb19802dd69a88575c6b4f5ab6.tar.xz
serverdata-0fed099bb375cdfb19802dd69a88575c6b4f5ab6.zip
Doing LoF Quests allow you up to 3 minutes discount on every warp time w/ Flask
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/util.txt22
1 files changed, 21 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 8f595cd9a..9228e8f25 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -92,7 +92,7 @@ function script marine_maxre {
// Returns reputation with the La Marine for discounts
// Takes one argument (PC_DEST$). Grep for "getarg".
// Before updating this, update marine_maxre too!
-function script marine_reputation {
+function script reputation {
.@nr=0; // Base reputation
// Tulimshar Quests (12 points)
@@ -152,6 +152,7 @@ function script marine_reputation {
.@nr=.@nr+1;
+
// Hurnscald Quests (5 points)
} else if (getarg(0) == "Hurns") {
@@ -177,6 +178,25 @@ function script marine_reputation {
}
+
+
+ // Land Of Fire Quests (3 points)
+ } else if (getarg(0) == "LoF") {
+
+ // The EPISODE (+1 rep)
+ if (getq(LoFQuest_EPISODE) >= 2)
+ .@nr=.@nr+1;
+
+ // George Quest (+1 rep)
+ if (getq(LoFQuest_George) >= 3)
+ .@nr=.@nr+1;
+
+ // Fairy Quest (+1 rep)
+ if (getq(LoFQuest_Fairy) >= 3)
+ .@nr=.@nr+1;
+
+ }
+
//debugmes "Reputation: "+str(.@nr);
return .@nr;