item_bonus.txt 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. //===== Athena Doc ========================================
  2. //= eAthena Item Bonuses List
  3. //===== By ================================================
  4. //= Developers
  5. //===== Version ===========================================
  6. //= 1.1.20090524
  7. //=========================================================
  8. //= 1.0 - Standardized doc file
  9. //= 1.1.20080612 - skill command and bonuses (bAutoSpell, bSkillAtk,
  10. //= bSkillHeal, bAutoSpellWhenHit, bAddSkillBlow, bCastrate) accept
  11. //= skill names [FlavioJS]
  12. //= 1.1.20090122 - removed outdated bSPDrainValue command [ultramage]
  13. //= 1.1.20090421 - added the correct bonus documentation for bSPDrainValue [Playtester]
  14. //= 1.1.20090524 - removed outdated bMatk/bMatk1/bMatk2 doc [ultramage]
  15. //= 1.1.20090529 - added documentation for bHealPower, bHealPower2 [Inkfish]
  16. //===== Description =======================================
  17. //= List of script instructions used in item bonuses,
  18. //= mainly bonus/bonus2/bonus3/bonus4/bonus5 arguments
  19. //=========================================================
  20. skill i,n; Gives skill #i at level n (supports skill names)
  21. bonus bStr,n; STR + n
  22. bonus bAgi,n; AGI + n
  23. bonus bVit,n; VIT + n
  24. bonus bInt,n; INT + n
  25. bonus bDex,n; DEX + n
  26. bonus bLuk,n; LUK + n
  27. bonus bAllStats,n; STR + n, AGI + n, VIT + n, INT + n, DEX + n, LUK + n
  28. bonus bMaxHP,n; MaxHP + n
  29. bonus bMaxSP,n; MaxSP + n
  30. bonus bMaxHPrate,n; MaxHP + n%
  31. bonus bMaxSPrate,n; MaxSP + n%
  32. bonus bAtk,n; ATK + n
  33. bonus bAtk2,n; ATK2 + n
  34. bonus bAtkRate,n; Attack power + n%
  35. bonus bBaseAtk,n; Basic attack power + n
  36. bonus bMatkRate,n; Magical attack power + n%
  37. bonus bDef,n; Equipment DEF + n
  38. bonus bDef2,n; VIT based DEF + n
  39. bonus bDefRate,n; Equipment DEF + n%
  40. bonus bDef2Rate,n; VIT based DEF + n%
  41. bonus bMdef,n; Equipment MDEF + n
  42. bonus bMdef2,n; INT based MDEF + n
  43. bonus bMdefRate,n; Equipment MDEF + n%
  44. bonus bMdef2Rate,n; INT based MDEF + n%
  45. bonus bHit,n; Hit + n
  46. bonus bHitRate,n; Hit + n%
  47. bonus bCritical,n; Critical + n
  48. bonus bCriticalRate,n; Critical + n%
  49. bonus bFlee,n; Flee + n
  50. bonus bFleeRate,n; Flee + n%
  51. bonus bFlee2,n; Perfect Dodge + n
  52. bonus bFlee2Rate,n; Perfect Dodge + n%
  53. bonus bSpeedRate,n; Moving speed + n% (only the highest among all is applied)
  54. bonus bSpeedAddRate,n; Moving speed + n%
  55. bonus bAspd,n; Attack speed + n
  56. bonus bAspdRate,n; Attack speed + n%
  57. bonus bAtkRange,n; Attack range + n
  58. bonus bCastrate,n; Skill casting time rate + n%
  59. bonus bUseSPrate,n; SP consumption + n%
  60. bonus bHPrecovRate,n; Natural HP recovery ratio + n%
  61. bonus bSPrecovRate,n; Natural SP recovery ratio + n%
  62. bonus bDoubleRate,n; Double Attack probability n% (works with all weapons | only the highest among all is applied)
  63. bonus bDoubleAddRate,n; Double Attack probability + n% (works with all weapons)
  64. bonus bPerfectHitRate,n; On-target impact attack probability n% (only the highest among all is applied)
  65. bonus bPerfectHitAddRate,n; On-target impact attack probability + n%
  66. bonus bCriticalDef,n; Critical ? and others the trap it is, probability + n%
  67. bonus bNearAtkDef,n; Adds n% damage reduction against melee physical attacks
  68. bonus bLongAtkDef,n; Adds n% damage reduction against ranged physical attacks
  69. bonus bMagicAtkDef,n; Adds n% damage reduction against magical attacks
  70. bonus bMiscAtkDef,n; Adds n% damage reduction against MISC attacks (traps, falcon, ...)
  71. bonus bIgnoreDefRace,n; Disregard DEF against enemies of race n
  72. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  73. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  74. 10=Boss monster, 11=Other than (normal monster) boss monster
  75. bonus bIgnoreDefEle,n; Disregard DEF against enemies of element n
  76. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  77. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  78. 10=Boss monster, 11=Other than (normal monster) boss monster
  79. bonus bIgnoreMDefRace; Disregard MDEF against enemies of race n
  80. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  81. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  82. 10=Boss monster, 11=Other than (normal monster) boss monster
  83. bonus bIgnoreMDefEle; Disregard MDEF against enemies of element n
  84. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison, 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  85. bonus bIgnoreMdefRate,n; Disregard n% of the target's MDEF
  86. bonus bDefRatioAtkRace,n; Does more damage depending on monster Defense against race n (defense disregard) :
  87. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  88. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  89. 10=Boss monster, 11=Other than (normal monster) boss monster
  90. bonus bDefRatioAtkEle,n; n attribute if defensive power is high the high extent big damage is given, (defense disregard) :
  91. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison, 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  92. bonus bAtkEle,n; Gives the player's attacks element n
  93. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison, 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  94. bonus bDefEle,n; Gives the player's defense element n
  95. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison, 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  96. bonus bSplashRange n; Splash attack radius + n (e.g. n=1 makes a 3*3 cells area, n=2 a 5*5 area, etc)
  97. Only the highest among all is applied
  98. bonus bSplashAddRange n; Splash attack radius + n (e.g. n=1 makes a 3*3 cells area, n=2 a 5*5 area, etc)
  99. bonus bRestartFullRecover,n; When reviving, HP and SP are fully healed (n is meaningless)
  100. bonus bNoCastCancel,n; Prevents casting from being interrupted when hit
  101. (does not work in GvG | n is meaningless)
  102. bonus bNoCastCancel2,n; Prevents casting from being interrupted when hit
  103. (works even in GvG | n is meaningless)
  104. bonus bNoSizeFix,n; The attack revision with the size of the monster is not received (n is meaningless)
  105. bonus bNoWeaponDamage,n; Prevents from receiving any physical damage (n is meaningless)
  106. bonus bNoMagicDamage,n; Prevents from receiving any magical effect
  107. (Attack, Healing, Support spells are all blocked | n is meaningless)
  108. bonus bNoGemStone,n; Skills requiring Gemstones do no require them
  109. (Hocus Pocus will still require 1 Yellow Gemstone | n is meaningless)
  110. bonus bIntravision,n; Always see Hiding and Cloaking players/mobs (n is meaningless)
  111. bonus bHealPower,n; Increase heal amount of all heal skills by n% (supports skill names)
  112. bonus bHealPower2,n; Increase heal amount if you are healed by any skills by n% (supports skill names)
  113. bonus2 bAddEff,e,x; Adds a x/10000 chance to cause effect e to the target when attacking (e.g. x=100 makes 1% chance, x=10000 makes 100% chance, etc)
  114. e: Eff_Blind, Eff_Sleep, Eff_Poison, Eff_Freeze, Eff_Silence, Eff_Stan, Eff_Curse, Eff_Confusion, Eff_Stone, Eff_Bleeding
  115. bonus2 bResEff,e,x; Adds a x/10000 tolerance to effect e (e.g. x=100 makes 1% tolerance, x=10000 makes 100% tolerance, etc)
  116. e: Eff_Blind, Eff_Sleep, Eff_Poison, Eff_Freeze, Eff_Silence, Eff_Stan, Eff_Curse, Eff_Confusion, Eff_Stone, Eff_Bleeding
  117. bonus2 bCastrate,n,x; Adjust casting time of skill n by x% (supports skill names)
  118. bonus2 bAddSize,n,x; +x% physical damage against size n.
  119. n: 0=Small 1=Medium 2=Large
  120. bonus2 bMagicAddSize,n,x; +x% magical damage against size n.
  121. n: 0=Small 1=Medium 2=Large
  122. bonus2 bSubSize,n,x; x% Damage reduction against size n.
  123. n: 0=Small 1=Medium 2=Large
  124. bonus2 bAddRace,n,x; +x% physical damage against race n
  125. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  126. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  127. 10=Boss monster, 11=Other than (normal monster) boss monster
  128. bonus2 bMagicAddRace,n,x; +x% magical damage against race n
  129. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  130. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  131. 10=Boss monster, 11=Other than (normal monster) boss monster
  132. bonus2 bSubRace,n,x; +x% damage reduction against race n
  133. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  134. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  135. 10=Boss monster, 11=Other than (normal monster) boss monster
  136. bonus2 bAddEle,n,x; +x% physical damage against element n
  137. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison,
  138. 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  139. bonus2 bMagicAddEle,n,x +x% magical damage against element n
  140. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison,
  141. 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  142. bonus2 bSubEle,n,x; x% Damage reduction against element n.
  143. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison,
  144. 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  145. bonus2 bAddDamageClass,n,x; +x% extra physical damage against monsters of class n
  146. Against players, n is their job id
  147. bonus2 bAddMagicDamageClass,n,x; +x% extra magical damage against monsters of class n
  148. Against players, n is their job id.
  149. bonus2 bAddDefClass,n,x; x% physical damage reduction against monsters of class n
  150. Against players, n is their job id.
  151. bonus2 bAddMDefClass,n,x; x% magical damage reduction against monsters of class n
  152. Against players, n is their job id.
  153. bonus2 bIgnoreMdefRate,n,x; Disregard x% of the target's MDEF if the target belongs to race n;
  154. bonus2 bHPDrainRate,n,x; n/10 % probability to drain x% HP when attacking
  155. bonus2 bSPDrainRate,n,x; n/10 % probability to drain x% SP when attacking
  156. bonus2 bSPVanishRate,n,x; Add the (n/10)% chance of decreasing enemy's SP (player) amount by x% when attacking
  157. bonus2 bAddMonsterDropItem,n,x; When killing any monsters with physical attack, the probability which drops item n +x% (the item which the monster drops unrelated ones)
  158. if 'x' is negative value, then it's a part of formula
  159. chance = -x*(killed_mob_level/10)+1
  160. bonus2 bGetZenyNum,n,x; When killing a monster, there is a x% chance of gaining 1~n zeny
  161. (only the highest among all is applied).
  162. If n < 0, the max zeny to gain is -n*monster level.
  163. bonus2 bAddGetZenyNum,n,x; Same as bGetZenyNum, but the rates and zeny to gain stack.
  164. bonus3 bAddMonsterDropItem,n,x,y; When killing monsters from race x with physical attack, the probability which drops item n +y% (the item which the monster drops unrelated ones)
  165. 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  166. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  167. 10=Boss monster, 11=Other than (normal monster) boss monster
  168. if 'x' is negative value, then it's a part of formula
  169. chance = -x*(killed_mob_level/10)+1
  170. bonus3 bAutoSpell,n,x,y; Auto Spell casting on attack of spell n at level x with y/10% chance. (supports skill names)
  171. Skill is casted on target unless it is a self or support (inf = 4/16) skill.
  172. // bAddDamageClass, bAddMagicDamageClass and bAddMonsterDropItem it is setting possible up to 10. Those which exceed 10 are ignored.
  173. // those which can be used with the arrow are only bCritical, bAtkEle, bHit, bAddEle, bAddRace, bAddSize and bAddEff. The other things are ignored.
  174. //---- 2/15 new card effects ----
  175. bonus bCritAtkRate,n; Increase critical damage by +n%
  176. bonus bNoRegen,n; Stops regeneration for n
  177. n: 1=HP, 2=SP
  178. bonus bUnstripableWeapon,n; Weapon cannot be taken off via Strip skills
  179. bonus bUnstripableArmor,n; Armor cannot be taken off via Strip skills
  180. bonus bUnstripableHelm,n; Helm cannot be taken off via Strip skills
  181. bonus bUnstripableShield,n; Shield cannot be taken off via Strip skills
  182. bonus bSPGainValue,n; When killing a monster by physical attack, you gain n SP
  183. bonus bHPGainValue,n; When killing a monster by physical attack, you gain n HP
  184. bonus bIgnoreDefMob,n; Ignore monster's DEF when attacking.
  185. n: 0=All normal monster except Bosses, 1=All monsters
  186. bonus2 bCriticalAddRace,n,r; Critical + n vs. enemies of race r
  187. r:
  188. 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  189. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  190. 10=Boss monster, 11=Other than (normal monster) boss monster
  191. bonus2 bHPRegenRate,n,x; Gain n HP every x milliseconds
  192. bonus2 bHPLossRate,n,x; Lose n HP every x milliseconds
  193. bonus2 bAddEffWhenHit,n,x; x/100% chance to cause n state to the enemy when being hit by physical damage
  194. bonus2 bSkillAtk,n,x; Increase damage of skill n by x% (supports skill names)
  195. bonus2 bSkillHeal,n,x; Increase heal amount of skill n by x% (supports skill names)
  196. bonus2 bSkillHeal2,n,x; Increase heal amount if you are healed by skill n by x% (supports skill names)
  197. bonus2 bAddDamageByClass,n,x; When being hit by monster of class n increase damage by x%
  198. bonus2 bAddRace2,n,x; Increase damage by x% vs. enemies of race n
  199. (Check db/mob_race2_db.txt)
  200. y: 0=Don't show damage 1=Show damage
  201. bonus3 bAutoSpellWhenHit,x,y,n; n/10% chance to cast skill x of level y on
  202. attacker (unless it is a self or support skill) when being hit by a
  203. direct attack. (supports skill names)
  204. Target must be within spell's range to go off.
  205. bonus3 bSPDrainRate,n,x,y; When attacking there is a n% chance to either gain SP equivalent to x% of damage dealt,
  206. OR drain the amount of sp from the enemy.
  207. y: 0=gain sp 1:drain enemy sp
  208. bonus4 bAutoSpell,x,y,n,i; n/10% chance to cast skill x of level y when attacking (supports skill names)
  209. i:
  210. 0=cast on self
  211. 1=cast on enemy, not on self
  212. 2=use random skill lv in [1..y]
  213. 3=1+2 (random lv on enemy)
  214. 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)
  215. Target must be within spell's range to go off.
  216. i:
  217. 0=cast on self
  218. 1=cast on enemy, not on self
  219. 2=use random skill lv in [1..y]
  220. 3=1+2 (random lv on enemy)
  221. bonus5 bAutoSpell,x,y,n,t,i; n/10% chance to cast skill x of level y when attacking (supports skill names)
  222. t: Trigger criteria:
  223. BF_SHORT: Trigger on melee attack
  224. BF_LONG: Trigger on ranged attack
  225. ( Default: BF_SHORT+BF_LONG )
  226. BF_WEAPON: Trigger on weapon skills
  227. BF_MAGIC: Trigger on magic skills
  228. BF_MISC: Trigger on misc skills
  229. ( Default: BF_WEAPON )
  230. BF_NORMAL: Trigger on normal
  231. attacks.
  232. BF_SKILL: Trigger on skills
  233. (Default: BF_SKILL if type is BF_MISC or BF_MAGIC, BF_NORMAL if type is BF_WEAPON)
  234. i:
  235. 0=cast on self
  236. 1=cast on enemy, not on self
  237. 2=use random skill lv in [1..y]
  238. 3=1+2 (random lv on enemy)
  239. bonus5 bAutoSpellWhenHit,x,y,n,t,i; n/10% chance to cast skill x of level y when being hit by a direct attack. (supports skill names)
  240. Target must be within spell's range to go off.
  241. t: Trigger criteria:
  242. BF_SHORT: Trigger on melee attack
  243. BF_LONG: Trigger on ranged attack
  244. ( Default: BF_SHORT+BF_LONG )
  245. BF_WEAPON: Trigger on weapon skills
  246. BF_MAGIC: Trigger on magic skills
  247. BF_MISC: Trigger on misc skills
  248. ( Default: BF_WEAPON )
  249. BF_NORMAL: Trigger on normal
  250. attacks.
  251. BF_SKILL: Trigger on skills
  252. (Default: BF_SKILL if type is BF_MISC or BF_MAGIC, BF_NORMAL if type is BF_WEAPON)
  253. i: 1=cast on enemy, not on self
  254. 2=use random skill lv in [1..y]
  255. 3=1+2 (random lv on enemy)
  256. //---- 2/22 new card effects ----
  257. bonus2 bAddItemHealRate,n,x; Increases HP recovered by n type items by x%,
  258. you can also use direct item IDs instead
  259. of group values.
  260. (Check db/item_group_db.txt)
  261. //---- 3/15 new card effects ----
  262. bonus2 bSPRegenRate,n,x; Gain n SP every x milliseconds
  263. bonus2 bSPLossRate,n,x; Lose n SP every x milliseconds
  264. bonus2 bExpAddRace,n,x; Increase exp gained by x% vs. enemies of race n
  265. bonus2 bSPGainRace,n,x; When killing a monster of race n by physical attack gain x amount of sp
  266. bonus2 bSubRace2,n,x; Damage x% reduction from enemies of race n
  267. (Check db/mob_race2_db.txt)
  268. bonus2 bAddMonsterDropItemGroup,n,x; x% chance to get an item of group type n when you kill a monster
  269. (Check db/item_group_db.txt)
  270. if 'x' is negative value, then it's a part of formula
  271. chance = -x*(killed_mob_level/10)+1
  272. bonus3 bAddEff,n,x,y; Adds a x/10000 chance to cause effect n to the target when attacking
  273. (e.g. x=100 makes 1% chance, x=10000 makes 100% chance, etc).
  274. y is the trigger criteria:
  275. ATF_SELF: Trigger effect on self.
  276. ATF_TARGET: Trigger effect on target (default)
  277. ATF_SHORT: Trigger on melee attacks
  278. ATF_LONG: Trigger in ranged attacks (default: trigger on all attacks)
  279. bonus3 bAddEffWhenHit,n,x,y; x/10000 chance to cause n state to the enemy when being hit by physical damage.
  280. y is the trigger criteria:
  281. ATF_SELF: Trigger effect on self.
  282. ATF_TARGET: Trigger effect on target (default)
  283. ATF_SHORT: Trigger on melee attacks
  284. ATF_LONG: Trigger in ranged attacks (default: trigger on all attacks)
  285. bonus3 bAddMonsterDropItemGroup,n,x,y; y% chance to get an item of group type n when you kill a
  286. monster of race x (Check db/item_group_db.txt)
  287. 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  288. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  289. 10=Boss monster, 11=Other than (normal monster) boss monster
  290. if 'y' is negative value, then it's a part of formula
  291. chance = -y*(killed_mob_level/10)+1
  292. bonus2 bWeaponComaRace,x,y; y/100% chance to cause Coma when attacking a monster of race x with a normal attack
  293. 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  294. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  295. 10=Boss monster, 11=Other than (normal monster) boss monster
  296. bAddStealRate,n; n/100% increase to Steal skill success chance
  297. bonus2 bAddSkillBlow,x,y; Pushback the target by y cells when using skill x (supports skill names)
  298. bonus bSPDrainValue,n; When hitting a monster by physical attack, you gain n SP
  299. (use negative numbers so the user loses SP)
  300. bonus2 bSPDrainValue,n,x; When hitting a monster by physical attack, ...
  301. x:
  302. 0=you gain n SP
  303. 1=you drain n SP from target
  304. bonus2 bIgnoreDefRate,n,x; Disregard x% of the target's DEF if the target belongs to race n;
  305. bonus3 bAddEle,n,x,t; +x% physical damage against element n
  306. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison,
  307. 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  308. t: Trigger criteria:
  309. BF_SHORT: Trigger on melee attack
  310. BF_LONG: Trigger on ranged attack
  311. ( Default: BF_SHORT+BF_LONG )
  312. BF_WEAPON: Trigger on weapon skills
  313. BF_MAGIC: Trigger on magic skills
  314. BF_MISC: Trigger on misc skills
  315. ( Default: BF_WEAPON )
  316. BF_NORMAL: Trigger on normal
  317. attacks.
  318. BF_SKILL: Trigger on skills
  319. (Default: BF_SKILL if type is BF_MISC or BF_MAGIC, BF_NORMAL if type is BF_WEAPON)
  320. i: 1=cast on enemy, not on self
  321. 2=use random skill lv in [1..y]
  322. 3=1+2 (random lv on enemy)
  323. bonus3 bSubEle,n,x,t; x% Damage reduction against element n.
  324. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison,
  325. 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  326. t: Trigger criteria:
  327. BF_SHORT: Trigger on melee attack
  328. BF_LONG: Trigger on ranged attack
  329. ( Default: BF_SHORT+BF_LONG )
  330. BF_WEAPON: Trigger on weapon skills
  331. BF_MAGIC: Trigger on magic skills
  332. BF_MISC: Trigger on misc skills
  333. ( Default: BF_WEAPON )
  334. BF_NORMAL: Trigger on normal
  335. attacks.
  336. BF_SKILL: Trigger on skills
  337. (Default: BF_SKILL if type is BF_MISC or BF_MAGIC, BF_NORMAL if type is BF_WEAPON)
  338. i: 1=cast on enemy, not on self
  339. 2=use random skill lv in [1..y]
  340. 3=1+2 (random lv on enemy)