summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-08 16:13:02 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-08 16:13:02 -0300
commit803f13ecb7e0c2ffb1d6351fb08510fb33a2a590 (patch)
treeca31e6ce419d45f28a72c6f4b13ca0746c9c5e87
parent7f36d6d9f61b58db006e8ae8b5fbb87510d54977 (diff)
downloadserverdata-803f13ecb7e0c2ffb1d6351fb08510fb33a2a590.tar.gz
serverdata-803f13ecb7e0c2ffb1d6351fb08510fb33a2a590.tar.bz2
serverdata-803f13ecb7e0c2ffb1d6351fb08510fb33a2a590.tar.xz
serverdata-803f13ecb7e0c2ffb1d6351fb08510fb33a2a590.zip
Salohcin prices will now fluctuate between 20k and 60k GP until act 5.
It'll fluctuate between 50k and 90k afterwards. The two hero titles are worth a 20k discount each.
-rw-r--r--npc/025-1/salohcin.txt36
1 files changed, 28 insertions, 8 deletions
diff --git a/npc/025-1/salohcin.txt b/npc/025-1/salohcin.txt
index 1c0bdc6ce..df322af22 100644
--- a/npc/025-1/salohcin.txt
+++ b/npc/025-1/salohcin.txt
@@ -5,25 +5,45 @@
// Nicholas the Blacksmith, spelled backwards
025-1,108,67,0 script Salohnic NPC_NICHOLAS,{
+ // Define variables
+ if ($GAME_STORYLINE >= 4) {
+ .@tx$=l("twice");
+ .@txn=3;
+ .@prc=90000;
+ } else {
+ .@tx$=l("once");
+ .@txn=2;
+ .@prc=60000;
+ }
+
+ // World Hero bonuses
+ if (reputation("Candor") >= 100 &&
+ reputation("Tulim") >= 100 &&
+ reputation("Halin") >= 100 &&
+ reputation("Hurns") >= 100 &&
+ reputation("LoF") >= 100 &&
+ reputation("Nival") >= 100 &&
+ reputation("Frostia") >= 100)
+ .@prc-=20000;
+
+ if (strcharinfo(0) == $MOST_HEROIC$)
+ .@prc-=20000;
+
+ // NPC body
mesn;
mesq l("Hello there, I am %s and I change item options, can I help you today?", .name$);
mes "";
mesn;
- mesq l("You'll be charged even if you fail, be warned. You can re-roll the same item once, free of charge, but it may break and there will be no refunds!");
+ mesq l("You'll be charged even if you fail, be warned. You can re-roll the same item %s, free of charge, but it may break and there will be no refunds!", .@tx$);
next;
- if (!SmithTweakSystem(60000, 2)) {
+
+ if (!SmithTweakSystem(.@prc, .@txn)) {
mes "";
mesn;
mesq l("You can always try again another day!");
}
close;
-
-
-
-
-
-
OnInit:
.sex = G_MALE;
.distance = 5;