From 803f13ecb7e0c2ffb1d6351fb08510fb33a2a590 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 8 Jan 2021 16:13:02 -0300 Subject: 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. --- npc/025-1/salohcin.txt | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) (limited to 'npc/025-1') 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; -- cgit v1.2.3-70-g09d2