bonus4 bAutoSpellWhenHit,x,y,n,i;
n/10% chance to cast skill x of level y when being hit by a direct attack. (supports skill names)
Target must be within spell's range to go off.
i:
0=cast on self
1=cast on enemy, not on self
2=use random skill lv in [1..y]
3=1+2 (random lv on enemy)
For more item bonus effects, look at
https://github.com/HerculesWS/Hercules/blob/master/doc/item_bonus.txt
For skill names, look at
https://github.com/HerculesWS/Hercules/blob/master/db/re/skill_db.txt
bonus4 bAutoSpellWhenHit,NJ_KOUENKA,10,50,1; // %5 chance to cast level 10 Crimson Fire Blossom when hit by enemy
>
bonus5 bAutoSpell,x,y,n,t,i; n/10% chance to cast skill x of level y when attacking (supports skill names)
t: Trigger criteria:
BF_SHORT: Trigger on melee attack
BF_LONG: Trigger on ranged attack
( Default: BF_SHORT+BF_LONG )
BF_WEAPON: Trigger on weapon skills
BF_MAGIC: Trigger on magic skills
BF_MISC: Trigger on misc skills
( Default: BF_WEAPON )
BF_NORMAL: Trigger on normal
attacks.
BF_SKILL: Trigger on skills
(Default: BF_SKILL if type is BF_MISC or BF_MAGIC, BF_NORMAL if type is BF_WEAPON)
i:
0=cast on self
1=cast on enemy, not on self
2=use random skill lv in [1..y]
3=1+2 (random lv on enemy)
bonus5 bAutoSpell,NJ_KOUENKA,10,50,BF_SHORT,1; // %5 chance to cast level 10 Crimson Fire Blossom when attacking by melee