summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-28 20:42:36 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-28 20:42:36 -0200
commit896c8b6b5aba5c5f4b3992b818aedc0a281b4006 (patch)
tree86c7bce00e0537e4a7fdf593f15fa26bb0e2cb5d
parent879ab73690447609a96e82e3303f725752a9aa28 (diff)
downloadserverdata-896c8b6b5aba5c5f4b3992b818aedc0a281b4006.tar.gz
serverdata-896c8b6b5aba5c5f4b3992b818aedc0a281b4006.tar.bz2
serverdata-896c8b6b5aba5c5f4b3992b818aedc0a281b4006.tar.xz
serverdata-896c8b6b5aba5c5f4b3992b818aedc0a281b4006.zip
Halinarzo now have a reputation mechanism (it is a major city)
This affects party price
-rw-r--r--npc/003-2/estard.txt9
-rw-r--r--npc/functions/util.txt42
2 files changed, 47 insertions, 4 deletions
diff --git a/npc/003-2/estard.txt b/npc/003-2/estard.txt
index 8df4e477a..bec9469f0 100644
--- a/npc/003-2/estard.txt
+++ b/npc/003-2/estard.txt
@@ -15,10 +15,11 @@
function create_party {
.@party_price = 6500;
- .@party_price-=reputation("Tulim")*3;
- .@party_price-=reputation("Hurns")*3;
- .@party_price-=reputation("Nival")*3;
- .@party_price-=reputation("LoF")*3;
+ .@party_price-=reputation("Tulim")*5;
+ .@party_price-=reputation("Hurns")*5;
+ .@party_price-=reputation("Nival")*5;
+ .@party_price-=reputation("Halin")*5;
+ .@party_price-=reputation("LoF")*5;
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
l("Creating a party has some advantages, it's a pretty good choice!"),
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 01a436a94..dfa178db5 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -214,6 +214,11 @@ function script reputation {
.@nr=.@nr*100/15;
+
+
+
+
+
// Hurnscald Quests (7 points)
} else if (getarg(0) == "Hurns") {
@@ -249,6 +254,11 @@ function script reputation {
.@nr=.@nr*100/7;
+
+
+
+
+
// Land Of Fire Quests (5 points)
} else if (getarg(0) == "LoF") {
@@ -295,6 +305,38 @@ function script reputation {
.@nr=.@nr*100/2;
+
+
+
+
+
+ // Halinarzo Quests (5 points)
+ } else if (getarg(0) == "Halin") {
+
+ // Foxhound Famine Quest (+1 rep)
+ if (getq(HalinarzoQuest_Foxhound) >= 6)
+ .@nr=.@nr+1;
+
+ // Charles Quest (+1 rep)
+ if (getq(HalinarzoQuest_TraderKing) >= 2)
+ .@nr=.@nr+1;
+
+ // Joaquim & Yumi Quest (+1 rep)
+ if (getq(HalinarzoQuest_SickWife) >= 5)
+ .@nr=.@nr+1;
+
+ // Life Delight Quest (+1 rep)
+ if (getq(HalinarzoQuest_LifeDelight) >= 2)
+ .@nr=.@nr+1;
+
+ // Sawis Quest (+1 rep)
+ if (getq(HalinarzoQuest_Sawis) >= 2)
+ .@nr=.@nr+1;
+
+ // HALINARZO Magical Forumula
+ .@nr=.@nr*100/5;
+
+
// Final
}