summaryrefslogtreecommitdiff
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
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)
-rw-r--r--npc/002-4/nard.txt10
-rw-r--r--npc/functions/util.txt15
2 files changed, 20 insertions, 5 deletions
diff --git a/npc/002-4/nard.txt b/npc/002-4/nard.txt
index 982c0cf27..a205b0ee6 100644
--- a/npc/002-4/nard.txt
+++ b/npc/002-4/nard.txt
@@ -164,13 +164,15 @@ L_NotYet:
close;
L_Travel:
- if (nard_reputation() >= 11)
+ if (nard_reputation() >= 14)
+ .@price-=1250;
+ if (nard_reputation() >= 12)
.@price-=1000;
- else if (nard_reputation() >= 9)
+ else if (nard_reputation() >= 10)
.@price-=750;
- else if (nard_reputation() >= 7)
+ else if (nard_reputation() >= 8)
.@price-=500;
- else if (nard_reputation() >= 5)
+ else if (nard_reputation() >= 6)
.@price-=250;
mesn;
mesq l("Hi @@.", strcharinfo(0));
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;