diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-17 03:21:55 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-17 03:21:55 -0200 |
commit | e6c6f2c9f6fa44a8d274c3f5f39ec1e5f903a1ad (patch) | |
tree | d653d9c38fd22eb7a8ed171807d7273a1a2b0e01 /npc/functions | |
parent | cd237b94dfa0103d15ff72152b7ebf784be2bd18 (diff) | |
download | serverdata-e6c6f2c9f6fa44a8d274c3f5f39ec1e5f903a1ad.tar.gz serverdata-e6c6f2c9f6fa44a8d274c3f5f39ec1e5f903a1ad.tar.bz2 serverdata-e6c6f2c9f6fa44a8d274c3f5f39ec1e5f903a1ad.tar.xz serverdata-e6c6f2c9f6fa44a8d274c3f5f39ec1e5f903a1ad.zip |
Stop beating around the bush. reputation() now returns a 0~100 int.
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/util.txt | 25 |
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 } |