From 0fed099bb375cdfb19802dd69a88575c6b4f5ab6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 20 Jul 2018 15:35:43 -0300 Subject: Doing LoF Quests allow you up to 3 minutes discount on every warp time w/ Flask --- npc/functions/util.txt | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'npc/functions/util.txt') 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; -- cgit v1.2.3-70-g09d2