summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-30 15:50:37 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-30 15:50:37 -0300
commitb9a62032602622768f669f633b6e40a19e217565 (patch)
tree49e44cee6942a0c4f86f7f0c99a3801aec92a285
parent890700b108fd4f1ea0b748b6a4eb0b49d85c90ab (diff)
downloadserverdata-b9a62032602622768f669f633b6e40a19e217565.tar.gz
serverdata-b9a62032602622768f669f633b6e40a19e217565.tar.bz2
serverdata-b9a62032602622768f669f633b6e40a19e217565.tar.xz
serverdata-b9a62032602622768f669f633b6e40a19e217565.zip
Nicholas will now give item bonuses even for non-weapon craft
-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);