summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/util.txt25
1 files changed, 23 insertions, 2 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 330fd7ab3..513724f98 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -82,7 +82,7 @@ function script nard_reputation {
}
-// Returns reputation with the La Marine for discounts
+// Returns reputation based on quests completion for discounts. Returns 0~100 int.
// Takes one argument (PC_DEST$). Grep for "getarg".
function script reputation {
.@nr=0; // Base reputation
@@ -151,9 +151,15 @@ function script reputation {
if (getq(MineQuest_Caelum) >= 2)
.@nr=.@nr+1;
+ // Veteran Officer Quest (+1 rep)
+ if (getq(TulimsharQuest_WoodenSword) >= 2)
+ .@nr=.@nr+1;
+
+ // TULIMSHAR Magical Forumula
+ .@nr=.@nr*100/15;
- // Hurnscald Quests (5 points)
+ // Hurnscald Quests (7 points)
} else if (getarg(0) == "Hurns") {
// Alan Quest (+1 rep)
@@ -176,7 +182,16 @@ function script reputation {
if (getq(HurnscaldQuest_Bandits) >= 8)
.@nr=.@nr+1;
+ // Injuried Mouboo Quest (+1 rep)
+ if (getq(HurnscaldQuest_InjuriedMouboo) >= 2)
+ .@nr=.@nr+1;
+ // Blood Donor Quest (+1 rep)
+ if (getq(HurnscaldQuest_BloodDonor) >= 1)
+ .@nr=.@nr+1;
+
+ // HURNSCALD Magical Forumula
+ .@nr=.@nr*100/7;
// Land Of Fire Quests (4 points)
@@ -198,6 +213,9 @@ function script reputation {
if (getq(LoFQuest_Pets) >= 1)
.@nr=.@nr+1;
+ // LAND OF FIRE Magical Forumula
+ .@nr=.@nr*100/4;
+
@@ -214,6 +232,9 @@ function script reputation {
if (getq(NivalisQuest_Cindy) >= 5)
.@nr=.@nr+1;
+ // NIVALIS Magical Forumula
+ .@nr=.@nr*100/2;
+
// Final
}