From b9a62032602622768f669f633b6e40a19e217565 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 30 May 2019 15:50:37 -0300 Subject: Nicholas will now give item bonuses even for non-weapon craft --- npc/012-5/nicholas.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'npc/012-5') 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); -- cgit v1.2.3-70-g09d2