From e6c6f2c9f6fa44a8d274c3f5f39ec1e5f903a1ad Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 17 Dec 2018 03:21:55 -0200 Subject: Stop beating around the bush. reputation() now returns a 0~100 int. --- npc/functions/util.txt | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to 'npc/functions/util.txt') 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 } -- cgit v1.2.3-70-g09d2