diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-05-30 15:46:44 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-05-30 15:46:44 -0300 |
commit | 890700b108fd4f1ea0b748b6a4eb0b49d85c90ab (patch) | |
tree | e41ad6100887aba2acd4a3a7bc304b3ef5390a6b /npc/012-5/nicholas.txt | |
parent | ddb4c03f64d652f941174c22715d56a25ed51e2f (diff) | |
download | serverdata-890700b108fd4f1ea0b748b6a4eb0b49d85c90ab.tar.gz serverdata-890700b108fd4f1ea0b748b6a4eb0b49d85c90ab.tar.bz2 serverdata-890700b108fd4f1ea0b748b6a4eb0b49d85c90ab.tar.xz serverdata-890700b108fd4f1ea0b748b6a4eb0b49d85c90ab.zip |
Several fixes and now NPCs have their own craft system.
So NPCs craft now may give bonuses too - existing craft bonuses maintaned.
Diffstat (limited to 'npc/012-5/nicholas.txt')
-rw-r--r-- | npc/012-5/nicholas.txt | 6 |
1 files changed, 5 insertions, 1 deletions
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: |