From 890700b108fd4f1ea0b748b6a4eb0b49d85c90ab Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 30 May 2019 15:46:44 -0300 Subject: Several fixes and now NPCs have their own craft system. So NPCs craft now may give bonuses too - existing craft bonuses maintaned. --- 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 c600a099e..9bcb9eb6e 100644 --- a/npc/012-5/nicholas.txt +++ b/npc/012-5/nicholas.txt @@ -59,7 +59,10 @@ delitem .@base1, .@amon1; delitem .@base2, .@amon2; Zeny = Zeny - .@price; - getitem .@prize, 1; + if (array_find(.WeaponCraft, .@prize) >= 0) + CsysNpcCraft(.@prize, IOPT_CRITDMG, rand(28,32)); + else + getitem .@prize, 1; .@xp=getiteminfo(.@base1, ITEMINFO_SELLPRICE)*.@amon1+getiteminfo(.@base2, ITEMINFO_SELLPRICE)*.@amon2; .@xp=.@xp*2/3; getexp .@xp, rand(1,10); @@ -216,6 +219,7 @@ OnInit: .sex = G_MALE; .distance = 5; + setarray .WeaponsCraft, WoodenSword, BugSlayer, ShortGladius, RealBronzeGladius, Backsword; end; OnClock0009: -- cgit v1.2.3-70-g09d2