summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/012-5/nicholas.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/npc/012-5/nicholas.txt b/npc/012-5/nicholas.txt
index 9bcb9eb6e..f81f82f7f 100644
--- a/npc/012-5/nicholas.txt
+++ b/npc/012-5/nicholas.txt
@@ -59,10 +59,14 @@
delitem .@base1, .@amon1;
delitem .@base2, .@amon2;
Zeny = Zeny - .@price;
+
+ // craft the item with +30% crit dmg (weapons) or +1 random stat (etc)
if (array_find(.WeaponCraft, .@prize) >= 0)
CsysNpcCraft(.@prize, IOPT_CRITDMG, rand(28,32));
else
- getitem .@prize, 1;
+ CsysNpcCraft(.@prize, any(VAR_STRAMOUNT, VAR_AGIAMOUNT, VAR_VITAMOUNT, VAR_INTAMOUNT, VAR_DEXAMOUNT, VAR_LUKAMOUNT), any(1,1,1,2));
+
+ // Yield some experience for the craft
.@xp=getiteminfo(.@base1, ITEMINFO_SELLPRICE)*.@amon1+getiteminfo(.@base2, ITEMINFO_SELLPRICE)*.@amon2;
.@xp=.@xp*2/3;
getexp .@xp, rand(1,10);