From 24830b94e4b91d9d357b43f463cdd1d53842964e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 10 Jun 2018 21:57:08 -0300 Subject: If you've been really dilligent, Nard will only charge 250 GP. And that's the final price. (Candor + Tulimshar are taken in account) --- npc/002-4/nard.txt | 10 ++++++---- npc/functions/util.txt | 15 ++++++++++++++- 2 files changed, 20 insertions(+), 5 deletions(-) (limited to 'npc') 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; -- cgit v1.2.3-60-g2f50