diff options
-rw-r--r-- | npc/025-1/salohcin.txt | 36 |
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; |