summaryrefslogtreecommitdiff
path: root/npc/017-5
diff options
context:
space:
mode:
Diffstat (limited to 'npc/017-5')
-rw-r--r--npc/017-5/nahrec.txt41
1 files changed, 35 insertions, 6 deletions
diff --git a/npc/017-5/nahrec.txt b/npc/017-5/nahrec.txt
index 009998e46..cd78feaa6 100644
--- a/npc/017-5/nahrec.txt
+++ b/npc/017-5/nahrec.txt
@@ -58,11 +58,11 @@ function NahrecMain {
mesn;
mesq l("Yes, I can craft many things. In addition to plating and improving armor, I can craft smaller items made of gold and other metals.");
select
- rif(false && countitem(WarlordPlate) > 0, l("Can you improve my Warlord Plate for me?")),
- rif(false && countitem(LightPlatemail) > 0, l("Can you improve my Light Platemail for me?")),
+ rif(!RECIPES_EQUIPMENT[CraftGoldenLightPlate], l("Can you improve my Light Platemail for me?")),
+ rif(!RECIPES_EQUIPMENT[CraftGoldenWarlord], l("Can you improve my Warlord Plate for me?")),
l("Can you craft Chainmail?"),
l("Can you craft Light Platemail?"),
- rif(false, l("Can you craft Warlord Plate?")),
+ l("Can you craft Warlord Plate?"),
l("Can you craft Savior Pants?"),
l("Can you craft Chainmail Skirt?"),
l("Do you know something about 'Mylarin Dust'?"),
@@ -70,10 +70,31 @@ function NahrecMain {
mes "";
switch (@menu) {
case 1:
- blacksmith_create(GoldIngot, 35, WarlordPlate, 1, GoldenWarlordPlate, 200000);
+ mesn;
+ mesq ("For %d GP I'll teach you, do we have a deal?", fnum(30000));
+ next;
+ if (askyesno() == ASK_YES && Zeny > 30000) {
+ mes "";
+ Zeny-=30000;
+ RECIPES_EQUIPMENT[CraftGoldenLightPlate]=true;
+ mesn;
+ mesc l("Nahrec discretly gives you a recipe.");
+ mesc l("\"*psst, just follow what is outlined here to make it golden.*\"");
+ }
break;
case 2:
- blacksmith_create(GoldIngot, 10, LightPlatemail, 1, GoldenLightPlatemail, 30000);
+ mesn;
+ mesq ("For %d GP I'll teach you, do we have a deal?", fnum(200000));
+ next;
+ if (askyesno() == ASK_YES && Zeny > 200000) {
+ mes "";
+ Zeny-=200000;
+ RECIPES_EQUIPMENT[CraftGoldenWarlord]=true;
+ mesn;
+ mesc l("Nahrec discretly gives you a recipe.");
+ mesc l("\"*psst, just follow what is outlined here to make it golden.*\"");
+ }
+ break;
break;
case 3:
blacksmith_create(IronIngot, 10, SilverIngot, 2, Chainmail, 20000);
@@ -148,7 +169,15 @@ function blacksmith_create {
delitem .@base1, .@amon1;
delitem .@base2, .@amon2;
POL_PlayerMoney(.@price);
- getitem .@prize, 1;
+ if (.@prize == WarlordPlate) {
+ .@b=any(IOPT_SPLASHDAMAGE, VAR_ITEMDEFPOWER);
+ if (.@b == IOPT_SPLASHDAMAGE)
+ CsysNpcCraft(.@prize, .@b, 1);
+ else
+ CsysNpcCraft(.@prize, VAR_ITEMDEFPOWER, 50, VAR_MDEFPOWER, 30);
+ } else {
+ CsysNpcCraft(.@prize, IOPT_SCRESIST_POISON, 10, IOPT_SCRESIST_SILENCE, 10, IOPT_SCRESIST_BLIND, 10, IOPT_SCRESIST_CURSE, 10);
+ }
mes "";
mesn;