summaryrefslogtreecommitdiff
path: root/npc/functions/util.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-10 21:57:08 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-10 21:57:08 -0300
commit24830b94e4b91d9d357b43f463cdd1d53842964e (patch)
tree5eae0adc01c0df24dd23ad8680fbf176ead4720e /npc/functions/util.txt
parentb9cf2f7f9cfeaa90a80311b4b6ec9ec65915959e (diff)
downloadserverdata-24830b94e4b91d9d357b43f463cdd1d53842964e.tar.gz
serverdata-24830b94e4b91d9d357b43f463cdd1d53842964e.tar.bz2
serverdata-24830b94e4b91d9d357b43f463cdd1d53842964e.tar.xz
serverdata-24830b94e4b91d9d357b43f463cdd1d53842964e.zip
If you've been really dilligent, Nard will only charge 250 GP.
And that's the final price. (Candor + Tulimshar are taken in account)
Diffstat (limited to 'npc/functions/util.txt')
-rw-r--r--npc/functions/util.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 5449ca97a..509d4bd15 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -37,7 +37,7 @@ function script season_direction {
}
// Returns Nard reputation for discounts
-// Currently ranges from 0 to 12.
+// Currently ranges from 0 to 15.
function script nard_reputation {
.@nr=0; // Base reputation
@@ -85,10 +85,23 @@ function script nard_reputation {
if (getq(ShipQuests_Peter) == 3 || getq(ShipQuests_Peter) == 5)
.@nr=.@nr+1;
+ // Tulimshar Quests
// Swezanne Quest (+1 rep)
if (getq(TulimsharQuest_Swezanne) >= 1)
.@nr=.@nr+1;
+ // Sailors Quest (+1 rep)
+ if (getq(TulimsharQuest_Sailors) >= 2)
+ .@nr=.@nr+1;
+
+ // Hasan Quest (+1 rep)
+ if (getq(TulimsharQuest_Hasan) >= 5)
+ .@nr=.@nr+1;
+
+ // Dausen Quest (+1 rep)
+ if (getq(TulimsharQuest_WaterForGuard) >= 3)
+ .@nr=.@nr+1;
+
//debugmes "Reputation: "+str(.@nr);
return .@nr;