item_bonus.txt 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. //===== rAthena Documentation ================================
  2. //= rAthena Item Bonuses List
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Last Updated: ========================================
  6. //= 20151029
  7. //===== Description: =========================================
  8. //= List of script instructions used in item bonuses.
  9. //============================================================
  10. Constants
  11. ---------
  12. This list contains all available constants referenced in the 'bonus' commands.
  13. * Status effect (eff)
  14. Eff_Bleeding, Eff_Blind, Eff_Burning, Eff_Confusion, Eff_Crystalize, Eff_Curse, Eff_DPoison,
  15. Eff_Fear, Eff_Freeze, Eff_Poison, Eff_Silence, Eff_Sleep, Eff_Stone, Eff_Stun, Eff_Freezing,
  16. Eff_Heat, Eff_Deepsleep, Eff_WhiteImprison, Eff_Hallucination
  17. * Element (e)
  18. Ele_Dark, Ele_Earth, Ele_Fire, Ele_Ghost, Ele_Holy, Ele_Neutral, Ele_Poison,
  19. Ele_Undead, Ele_Water, Ele_Wind, Ele_All
  20. * Race (r)
  21. RC_Angel, RC_Brute, RC_DemiHuman, RC_Demon, RC_Dragon, RC_Fish, RC_Formless,
  22. RC_Insect, RC_Plant, RC_Player_Human (RC_Player deprecated), RC_Player_Doram, RC_Undead, RC_All
  23. * Monster Race (mr)
  24. RC2_Goblin, RC2_Kobold, RC2_Orc, RC2_Golem, RC2_Guardian, RC2_Ninja, RC2_GVG, RC2_Battlefield,
  25. RC2_Treasure, RC2_BioLab, RC2_Manuk, RC2_Splendide, RC2_Scaraba, RC2_OGH_ATK_DEF, RC2_OGH_Hidden,
  26. RC2_Bio5_Swordman_Thief, RC2_Bio5_Acolyte_Merchant, RC2_Bio5_Mage_Archer, RC2_Bio5_MVP,
  27. RC2_Clocktower, RC2_Thanatos, RC2_Faceworm, RC2_Hearthunter, RC2_Rockridge, RC2_Werner_Lab,
  28. RC2_Temple_Demon, RC2_Illusion_Vampire, RC2_Malangdo, RC2_EP172ALPHA, RC2_EP172BETA, RC2_EP172BATH,
  29. RC2_Illusion_Turtle, RC2_Rachel_Sanctuary, RC2_Illusion_Luanda, RC2_Illusion_Frozen, RC2_Illusion_Moonlight,
  30. RC2_Ep16_def, RC2_Edda_Arunafeltz, RC2_Lasagna, RC2_Glast_Heim_Abyss
  31. * Class (c)
  32. Class_Normal, Class_Boss, Class_Guardian, Class_All
  33. * Size (s)
  34. Size_Small, Size_Medium, Size_Large, Size_All
  35. * Trigger criteria (bf)
  36. BF_SHORT = Trigger on melee attacks
  37. BF_LONG = Trigger on ranged attacks
  38. (Default: BF_SHORT+BF_LONG)
  39. BF_WEAPON = Trigger on weapon skills
  40. BF_MAGIC = Trigger on magic skills
  41. BF_MISC = Trigger on misc skills
  42. (Default: BF_WEAPON)
  43. BF_NORMAL = Trigger on normal attacks
  44. BF_SKILL = Trigger on skills
  45. (Default: BF_SKILL if type is BF_MISC or BF_MAGIC, BF_NORMAL if type is BF_WEAPON)
  46. * Trigger criteria (atf)
  47. Effect target: (Default: Attacked target)
  48. ATF_SELF = Trigger effect on self
  49. ATF_TARGET = Trigger effect on target
  50. Attack range criteria: (Default: All attacks)
  51. ATF_SHORT = Trigger on melee attacks
  52. ATF_LONG = Trigger on ranged attacks
  53. Skill/attack type criteria: (Default: Physical/weapon)
  54. ATF_SKILL = Trigger on magic/misc skills
  55. ATF_WEAPON = Trigger on weapon skill / physical attacks
  56. ATF_MAGIC = Trigger on magic skills
  57. ATF_MISC = Trigger on misc skills
  58. * Other values:
  59. Skill (sk): see 'db/(pre-)re/skill_db.yml' (NOTE: Both skill IDs and names, in quotes, are supported.)
  60. Monster id (mid): see 'db/(pre-)re/mob_db.yml'
  61. Item id (iid): see 'db/item_db.yml'
  62. Item group (ig): see 'db/(pre-)re/item_group_db.yml' and the constants in 'src/map/script_constants.hpp', prefixed with IG_*
  63. Weapon type (w): see 'doc/item_db.txt' -> SubType
  64. Bonuses
  65. -------
  66. The format of bonuses listed in this file is as follows:
  67. 1. Basic Bonuses
  68. 2. Extended Bonuses
  69. 3. Group-specific Bonuses
  70. 4. Status-related Bonuses
  71. 5. AutoSpell Bonuses
  72. 6. Misc Bonuses
  73. ====================
  74. | 1. Basic Bonuses |
  75. ====================
  76. Base stats
  77. ----------
  78. bonus bStr,n; STR + n
  79. bonus bAgi,n; AGI + n
  80. bonus bVit,n; VIT + n
  81. bonus bInt,n; INT + n
  82. bonus bDex,n; DEX + n
  83. bonus bLuk,n; LUK + n
  84. bonus bAllStats,n; STR + n, AGI + n, VIT + n, INT + n, DEX + n, LUK + n
  85. bonus bAgiVit,n; AGI + n, VIT + n
  86. bonus bAgiDexStr,n; STR + n, AGI + n, DEX + n
  87. Trait Stats
  88. -----------
  89. bonus bPow,n; POW + n
  90. bonus bSta,n; STA + n
  91. bonus bWis,n; WIS + n
  92. bonus bSpl,n; SPL + n
  93. bonus bCon,n; CON + n
  94. bonus bCrt,n; CRT + n
  95. bonus bAllTraitStats,n; POW + n, STA + n, WIS + n, SPL + n, CON + n, CRT + n
  96. HP/SP/AP
  97. -----
  98. bonus bMaxHP,n; MaxHP + n
  99. bonus bMaxHPrate,n; MaxHP + n%
  100. bonus bMaxSP,n; MaxSP + n
  101. bonus bMaxSPrate,n; MaxSP + n%
  102. bonus bMaxAP,n; MaxAP + n
  103. bonus bMaxAPrate,n; MaxAP + n%
  104. Atk/Def
  105. -------
  106. bonus bBaseAtk,n; Basic attack power + n
  107. bonus bAtk,n; ATK + n (unofficial)
  108. bonus bAtk2,n; ATK2 + n
  109. bonus bAtkRate,n; ATK + n% that won't interfere with Damage modifier and SC_EDP (renewal mode only)
  110. bonus bWeaponAtkRate,n; Weapon ATK + n%
  111. bonus bMatk,n; Magical attack power + n
  112. bonus bMatk2,n; Magical attack power + n (not visible in status window)
  113. bonus bMatkRate,n; Magical attack power + n%
  114. bonus bWeaponMatkRate,n; Weapon Magical ATK + n% (renewal mode only)
  115. bonus bDef,n; Equipment DEF + n
  116. bonus bDefRate,n; Equipment DEF + n%
  117. bonus bDef2,n; VIT based DEF + n
  118. bonus bDef2Rate,n; VIT based DEF + n%
  119. bonus bMdef,n; Equipment MDEF + n
  120. bonus bMdefRate,n; Equipment MDEF + n%
  121. bonus bMdef2,n; INT based MDEF + n
  122. bonus bMdef2Rate,n; INT based MDEF + n%
  123. Additional stats
  124. ----------------
  125. bonus bHit,n; Hit + n
  126. bonus bHitRate,n; Hit + n%
  127. bonus bCritical,n; Critical + n
  128. bonus bCriticalLong,n; Critical + n for normal long ranged attack (won't be shown in status window)
  129. bonus2 bCriticalAddRace,r,n; Critical + n against enemies of race r
  130. bonus bCriticalRate,n; Critical + n%
  131. bonus bFlee,n; Flee + n
  132. bonus bFleeRate,n; Flee + n%
  133. bonus bFlee2,n; Perfect Dodge + n
  134. bonus bFlee2Rate,n; Perfect Dodge + n%
  135. bonus bPerfectHitRate,n; On-target impact attack probability n% (only the highest among all is applied)
  136. bonus bPerfectHitAddRate,n; On-target impact attack probability + n%
  137. bonus bSpeedRate,n; Movement speed + n% (only the highest among all is applied, won't be stacked with SC_SPEEDUP0, SC_SPEEDUP1)
  138. bonus bSpeedAddRate,n; Movement speed + n%
  139. bonus bAspd,n; Attack speed + n
  140. bonus bAspdRate,n; Attack speed + n%
  141. bonus bAtkRange,n; Attack range + n
  142. bonus bAddMaxWeight,n; MaxWeight + n (in units of 0.1)
  143. bonus bPAtk,n; PAtk + n
  144. bonus bPAtkRate,n; PAtk + n%
  145. bonus bSMatk,n; SMatk + n
  146. bonus bSMatkRate,n; SMatk + n%
  147. bonus bRes,n; Res + n
  148. bonus bResRate,n; Res + n%
  149. bonus bMRes,n; MRes + n
  150. bonus bMResRate,n; MRes + n%
  151. bonus bHPlus,n; HPlus + n
  152. bonus bHPlusRate,n; HPlus + n%
  153. bonus bCRate,n; CRate + n
  154. bonus bCRateRate,n; CRate + n%
  155. =======================
  156. | 2. Extended Bonuses |
  157. =======================
  158. HP/SP
  159. -----
  160. bonus bHPrecovRate,n; Natural HP recovery ratio + n%
  161. bonus bSPrecovRate,n; Natural SP recovery ratio + n%
  162. bonus2 bHPRegenRate,n,t; Gain n HP every t milliseconds
  163. bonus2 bHPLossRate,n,t; Lose n HP every t milliseconds
  164. bonus2 bSPRegenRate,n,t; Gain n SP every t milliseconds
  165. bonus2 bSPLossRate,n,t; Lose n SP every t milliseconds
  166. bonus2 bRegenPercentHP,n,t; Gain n% of max HP every t milliseconds
  167. bonus2 bRegenPercentSP,n,t; Gain n% of max SP every t milliseconds
  168. bonus bNoRegen,x; Stops HP or SP regeneration (x: 1=HP, 2=SP)
  169. bonus bUseSPrate,n; SP consumption + n%
  170. bonus2 bSkillUseSP,sk,n; Decreases SP consumption of skill sk by n
  171. bonus2 bSkillUseSPrate,sk,n; Decreases SP consumption of skill sk by n%
  172. Atk/Def
  173. -------
  174. bonus2 bSkillAtk,sk,n; Increases damage of skill sk by n%
  175. bonus bShortAtkRate,n; Increases damage of short ranged attacks by n%
  176. bonus bLongAtkRate,n; Increases damage of long ranged attacks by n%
  177. bonus bCritAtkRate,n; Increases critical damage by +n%
  178. bonus bCritDefRate,n; Decreases critical damage received by n%
  179. bonus bCriticalDef,n; Decreases the chance of being hit by critical hits by n%
  180. bonus2 bWeaponAtk,w,n; Adds n ATK when weapon of type w is equipped
  181. bonus2 bWeaponDamageRate,w,n; Adds n% damage to normal attacks when weapon of type w is equipped
  182. bonus bNearAtkDef,n; Adds n% damage reduction against melee physical attacks
  183. bonus bLongAtkDef,n; Adds n% damage reduction against ranged physical attacks
  184. bonus bMagicAtkDef,n; Adds n% damage reduction against magical attacks
  185. bonus bMiscAtkDef,n; Adds n% damage reduction against MISC attacks (traps, falcon, ...)
  186. bonus bNoWeaponDamage,n; Adds n% reduction to received physical damage
  187. bonus bNoMagicDamage,n; Adds n% reduction to received magical effect (attack, healing, support spells are all blocked)
  188. bonus bNoMiscDamage,n; Adds n% reduction to received misc damage
  189. Healing
  190. -------
  191. bonus bHealPower,n; Increases heal amount of all heal skills by n%
  192. bonus bHealPower2,n; Increases heal amount if you are healed by any skills by n%
  193. bonus2 bSkillHeal,sk,n; Increases heal amount of skill sk by n%
  194. bonus2 bSkillHeal2,sk,n; Increases heal amount if you are healed by skill sk by n%
  195. bonus bAddItemHealRate,n; Increases HP recovered by n% for healing items
  196. bonus2 bAddItemHealRate,iid,n; Increases HP recovered by n% for item iid
  197. bonus2 bAddItemGroupHealRate,ig,n; Increases HP recovered by n% for items of item group ig
  198. bonus bAddItemSPHealRate,n; Increases SP recovered by n% for healing items
  199. bonus2 bAddItemSPHealRate,iid,n; Increases SP recovered by n% for item iid
  200. bonus2 bAddItemGroupSPHealRate,ig,n; Increases SP recovered by n% for items of item group ig
  201. Cast time/delay
  202. ---------------
  203. bonus bCastrate,n; Skill cast time rate + n%. (If RENEWAL_CAST is defined, this bonus is equal to bVariableCastrate)
  204. bonus2 bCastrate,sk,n; Adjust casting time of skill sk by n%.(If RENEWAL_CAST is defined, this bonus is equal to bVariableCastrate)
  205. bonus bFixedCastrate,n; Increases fixed cast time of all skills by n% (has effect in RENEWAL_CAST only)
  206. bonus2 bFixedCastrate,sk,n; Increases fixed cast time of skill sk by n% (has effect in RENEWAL_CAST only)
  207. bonus bVariableCastrate,n; Increases variable cast time of all skills by n%. (If RENEWAL_CAST is NOT defined, this bonus is equal to bCastrate)
  208. bonus2 bVariableCastrate,sk,n; Increases variable cast time of skill sk by n% (If RENEWAL_CAST is NOT defined, this bonus is equal to bCastrate)
  209. bonus bFixedCast,t; Increases fixed cast time of all skills by t milliseconds (has effect in RENEWAL_CAST only)
  210. bonus2 bSkillFixedCast,sk,t; Increases fixed cast time of skill sk by t milliseconds (has effect in RENEWAL_CAST only)
  211. bonus bVariableCast,t; Increases variable cast time of all skills by t milliseconds
  212. bonus2 bSkillVariableCast,sk,t; Increases variable cast time of skill sk by t milliseconds
  213. bonus bNoCastCancel; Prevents casting from being interrupted when hit (does not work in GvG)
  214. bonus bNoCastCancel2; Prevents casting from being interrupted when hit (works even in GvG)
  215. bonus bDelayrate,n; Increases skill delay by n%
  216. bonus2 bSkillDelay,sk,t; Increases delay of skill sk by t milliseconds
  217. bonus2 bSkillCooldown,sk,t; Increases cooldown of skill sk by t milliseconds
  218. =============================
  219. | 3. Group-specific Bonuses |
  220. =============================
  221. Damage modifiers
  222. ----------------
  223. bonus2 bAddEle,e,x; +x% physical damage against element e
  224. bonus3 bAddEle,e,x,bf; +x% physical damage against element e with trigger criteria bf
  225. bonus2 bMagicAddEle,e,x; +x% magical damage against element e
  226. bonus2 bSubEle,e,x; +x% damage reduction against attack element e
  227. bonus3 bSubEle,e,x,bf; +x% damage reduction against attack element e with trigger criteria bf
  228. bonus2 bSubDefEle,e,x; +x% physical damage reduction from enemy with defense element e
  229. bonus2 bMagicSubDefEle,e,x; +x% magic damage reduction from enemy with defense element e
  230. bonus2 bAddRace,r,x; +x% physical damage against race r
  231. bonus2 bMagicAddRace,r,x; +x% magical damage against race r
  232. bonus2 bSubRace,r,x; +x% damage reduction against race r
  233. bonus3 bSubRace,r,x,bf; +x% damage reduction against race r with trigger criteria bf
  234. bonus2 bAddClass,c,x; +x% physical damage against class c
  235. bonus2 bMagicAddClass,c,x; +x% magical damage against class c
  236. bonus2 bSubClass,c,x; +x% damage reduction against class c
  237. bonus2 bAddSize,s,x; +x% physical damage against size s
  238. bonus2 bMagicAddSize,s,x; +x% magical damage against size s
  239. bonus2 bSubSize,s,x; +x% damage reduction against size s
  240. bonus2 bWeaponSubSize,s,x; +x% physical damage reduction against size s
  241. bonus2 bMagicSubSize,s,x; +x% magic damage reduction against size s
  242. bonus bNoSizeFix; Ignores the size modifier when calculating damage
  243. bonus2 bAddDamageClass,mid,x; +x% physical damage against monster mid
  244. bonus2 bAddMagicDamageClass,mid,x; +x% magical damage against monster mid
  245. NOTE: Against players, mid is the player's job id.
  246. LIMIT: Only 10 of these bonuses can be set. Those which exceed 10 are ignored.
  247. bonus2 bAddDefMonster,mid,x; +x% physical damage reduction against monster mid
  248. bonus2 bAddMDefMonster,mid,x; +x% magical damage reduction against monster mid
  249. NOTE: Against players, mid is the player's job id.
  250. bonus2 bAddRace2,mr,x; +x% damage against monster race mr
  251. bonus2 bSubRace2,mr,x; +x% damage reduction against monster race mr
  252. bonus2 bMagicAddRace2,mr,x; +x% magic damage against monster race mr
  253. bonus2 bSubSkill,sk,n; Reduces n% damage received from skill sk
  254. bonus bAbsorbDmgMaxHP,n; If the damage received is more than n% of Max HP, the damage received is [TotalDamage] - [n% of MaxHP] (Doesn't stack, will use the highest value) (Legacy rAthena behavior)
  255. bonus bAbsorbDmgMaxHP2,n; If the damage received is more than n% of Max HP, the damage received is reduced to n% of MaxHP (Doesn't stack, will use the highest value) (Official behavior)
  256. Atk/Def
  257. -------
  258. bonus bAtkEle,e; Gives the player's attacks element e
  259. bonus bDefEle,e; Gives the player's defense element e
  260. bonus2 bMagicAtkEle,e,x; Increases damage of e element magic by x%
  261. bonus bDefRatioAtkRace,r; Deals more damage to enemies of race r with higher defense
  262. bonus bDefRatioAtkEle,e; Deals more damage to enemies of element e with higher defense
  263. bonus bDefRatioAtkClass,c; Deals more damage to enemies of class c with higher defense
  264. bonus4 bSetDefRace,r,n,t,y; Set DEF to y of an enemy of race r at n% for t milliseconds with normal attack
  265. bonus4 bSetMDefRace,r,n,t,y; Set MDEF to y of an enemy of race r at n% for t milliseconds with normal attack
  266. Ignore Def
  267. ----------
  268. bonus bIgnoreDefEle,e; Disregard DEF against enemies of element e
  269. bonus bIgnoreDefRace,r; Disregard DEF against enemies of race r
  270. bonus bIgnoreDefClass,c; Disregard DEF against enemies of class c
  271. bonus bIgnoreMDefRace,r; Disregard MDEF against enemies of race r
  272. bonus2 bIgnoreDefRaceRate,r,n; Disregard n% of the target's DEF if the target belongs to race r
  273. bonus2 bIgnoreMdefRaceRate,r,n; Disregard n% of the target's MDEF if the target belongs to race r
  274. bonus2 bIgnoreMdefRace2Rate,mr,n; Disregard n% of the target's MDEF if the target belongs to monster race mr
  275. bonus bIgnoreMDefEle,e; Disregard MDEF against enemies of element e
  276. bonus2 bIgnoreDefClassRate,c,n; Disregard n% of the target's DEF if the target belongs to class c
  277. bonus2 bIgnoreMdefClassRate,c,n; Disregard n% of the target's MDEF if the target belongs to class c
  278. Ignore Res
  279. ----------
  280. bonus2 bIgnoreResRaceRate,r,n; Disregard n% of the target's Res if the target belongs to race r
  281. bonus2 bIgnoreMResRaceRate,r,n; Disregard n% of the target's MRes if the target belongs to race r
  282. Experience
  283. ----------
  284. bonus2 bExpAddRace,r,x; Increase exp gained by x% against enemies of race r
  285. bonus2 bExpAddClass,c,x; Increase exp gained by x% against enemies of class c
  286. =============================
  287. | 4. Status-related Bonuses |
  288. =============================
  289. bonus2 bAddEff,eff,n; Adds a n/100% chance to cause status eff on the target when attacking
  290. bonus2 bAddEff2,eff,n; Adds a n/100% chance to cause status eff on self when attacking
  291. bonus2 bAddEffWhenHit,eff,n; Adds a n/100% chance to cause status eff on the enemy when being hit by physical damage
  292. bonus2 bResEff,eff,n; Adds a n/100% tolerance to status eff
  293. bonus3 bAddEff,eff,n,atf; Adds a n/100% chance to cause status eff on the target when attacking
  294. bonus4 bAddEff,eff,n,atf,t; Adds a n/100% chance to cause status eff for t milliseconds on the target when attacking
  295. bonus3 bAddEffWhenHit,eff,n,atf; Adds a n/100% chance to cause status eff on the target when being hit by physical damage
  296. bonus4 bAddEffWhenHit,eff,n,atf,t; Adds a n/100% chance to cause status eff for t milliseconds on the target when being hit by physical damage
  297. atf is the trigger criteria:
  298. Effect target: (Default: Attacked target)
  299. ATF_SELF = trigger effect on self
  300. ATF_TARGET = trigger effect on target
  301. Attack range criteria: (Default: All attacks)
  302. ATF_SHORT = trigger on melee attacks
  303. ATF_LONG = trigger on ranged attacks
  304. Skill/attack type criteria: (Default: Physical/weapon)
  305. ATF_SKILL = trigger on magic/misc skills
  306. ATF_WEAPON = trigger on weapon skill / physical attacks
  307. ATF_MAGIC = trigger on magic skills
  308. ATF_MISC = trigger on misc skills
  309. bonus3 bAddEffOnSkill,sk,eff,n; Adds a n/100% chance to cause status eff on enemy when using skill sk
  310. bonus4 bAddEffOnSkill,sk,eff,n,atf; Adds a n/100% chance to cause status eff on the target when using skill sk
  311. bonus5 bAddEffOnSkill,sk,eff,n,atf,t; Adds a n/100% chance to cause status eff for t milliseconds on the target when using skill sk
  312. atf is the trigger criteria:
  313. ATF_SELF = trigger effect on self
  314. ATF_TARGET = trigger effect on target
  315. bonus2 bComaClass,c,n; Adds a n/100% chance to cause Coma when attacking a target of class c (regardless the type of attack)
  316. bonus2 bComaRace,r,n; Adds a n/100% chance to cause Coma when attacking a target of race r (regardless the type of attack)
  317. bonus2 bWeaponComaEle,e,n; Adds a n/100% chance to cause Coma when attacking a target of element e with a normal attack
  318. bonus2 bWeaponComaClass,c,n; Adds a n/100% chance to cause Coma when attacking a target of class c with a normal attack
  319. bonus2 bWeaponComaRace,r,n; Adds a n/100% chance to cause Coma when attacking a target of race r with a normal attack
  320. ========================
  321. | 5. AutoSpell Bonuses |
  322. ========================
  323. NOTES:
  324. - For all AutoSpell bonuses, target does not have be within the spell's range to go off.
  325. -- Enable conf/battle/battle.conf::autospell_check_range to force a range check.
  326. - By default, AutoSpell skills are casted on target unless it is a self or support skill (inf = 4/16).
  327. bonus3 bAutoSpell,sk,y,n; Adds a n/10% chance to cast skill sk of level y when attacking
  328. bonus3 bAutoSpellWhenHit,sk,y,n; Adds a n/10% chance to cast skill sk of level y when being hit by a direct attack
  329. bonus4 bAutoSpell,sk,y,n,i; Adds a n/10% chance to cast skill sk of level y when attacking
  330. bonus5 bAutoSpell,sk,y,n,bf,i; Adds a n/10% chance to cast skill sk of level y when attacking with trigger criteria bf
  331. bonus4 bAutoSpellWhenHit,sk,y,n,i; Adds a n/10% chance to cast skill sk of level y when being hit by a direct attack
  332. bonus5 bAutoSpellWhenHit,sk,y,n,bf,i; Adds a n/10% chance to cast skill sk of level y when being hit by a direct attack with trigger criteria bf
  333. i provides additional options (bitfield):
  334. &0 = cast on self
  335. &1 = cast on enemy
  336. &2 = use random skill level in [1..y]
  337. &3 = 1+2 (random level on enemy)
  338. bonus4 bAutoSpellOnSkill,sk,x,y,n; Adds a n/10% chance to autospell skill x at level y when using skill sk
  339. bonus5 bAutoSpellOnSkill,sk,x,y,n,i; Adds a n/10% chance to autospell skill x at level y when using skill sk
  340. i provides additional options (bitfield):
  341. &1 = forces the skill to be casted on self, rather than on the target of skill sk
  342. &2 = random skill level in [1..y] is chosen
  343. ===================
  344. | 6. Misc Bonuses |
  345. ===================
  346. HP/SP drain
  347. -----------
  348. bonus bHPDrainValue,n; Heals +n HP with a normal attack
  349. bonus2 bHPDrainValueRace,r,n; Heals +n HP when attacking a monster of race r with normal attack
  350. bonus2 bHpDrainValueClass,c,n; Heals +n HP when attacking a monster of class c with normal attack
  351. bonus bSPDrainValue,n; Heals +n SP with a normal attack
  352. bonus2 bSPDrainValueRace,r,n; Heals +n SP when attacking a monster of race r with normal attack
  353. bonus2 bSpDrainValueClass,c,n; Heals +n SP when attacking a monster of class c with normal attack
  354. bonus2 bHPDrainRate,x,n; Adds a x/10% chance to drain n% HP from inflicted damage when attacking
  355. bonus2 bSPDrainRate,x,n; Adds a x/10% chance to drain n% SP from inflicted damage when attacking
  356. HP/SP vanish
  357. ------------
  358. bonus2 bHPVanishRate,x,n; Add a x/10% chance of decreasing enemy's HP amount by n% with a normal attack
  359. bonus3 bHPVanishRaceRate,r,x,n; Add a x/10% chance of decreasing enemy's HP amount by n% when attacking, depends on enemy race r
  360. bonus3 bHPVanishRate,x,n,bf; Add a x/10% chance of decreasing enemy's HP amount by n% when attacking with trigger criteria bf
  361. bonus2 bSPVanishRate,x,n; Add a x/10% chance of decreasing enemy's SP amount by n% with a normal attack
  362. bonus3 bSPVanishRaceRate,r,x,n; Add a x/10% chance of decreasing enemy's SP amount by n% when attacking, depends on enemy race r
  363. bonus3 bSPVanishRate,x,n,bf; Add a x/10% chance of decreasing enemy's SP amount by n% when attacking with trigger criteria bf
  364. bonus3 bStateNoRecoverRace,r,x,t; Set a no recovery state of an enemy of race r at x/100% for t milliseconds with normal attack.
  365. HP/SP gain
  366. ------------
  367. bonus bHPGainValue,n; Heals +n HP when killing an enemy with a melee-physical attack
  368. bonus bSPGainValue,n; Heals +n SP when killing an enemy with a melee-physical attack
  369. bonus2 bSPGainRace,r,n; Heals +n SP when killing an enemy of race r with a melee-physical attack
  370. bonus bLongHPGainValue,n; Heals +n HP when killing an enemy with a range-physical attack
  371. bonus bLongSPGainValue,n; Heals +n SP when killing an enemy with a range-physical attack
  372. bonus bMagicHPGainValue,n; Heals +n HP when killing an enemy with a magical attack
  373. bonus bMagicSPGainValue,n; Heals +n SP when killing an enemy with a magical attack
  374. Damage return
  375. -------------
  376. bonus bShortWeaponDamageReturn,n; Reflects n% of received melee damage back to the enemy that caused it
  377. bonus bLongWeaponDamageReturn,n; Reflects n% of received ranged damage back to the enemy that caused it
  378. bonus bMagicDamageReturn,n; Adds a n% chance to reflect targetted magic spells back to the enemy that caused it
  379. bonus bReduceDamageReturn,n; Reduces reflected damage (melee/ranged/magic) by n%
  380. Strip/Break equipment
  381. ---------------------
  382. bonus bUnstripableWeapon; Weapon cannot be taken off via Strip skills
  383. bonus bUnstripableArmor; Armor cannot be taken off via Strip skills
  384. bonus bUnstripableHelm; Helm cannot be taken off via Strip skills
  385. bonus bUnstripableShield; Shield cannot be taken off via Strip skills
  386. bonus bUnstripable; All equipment cannot be taken off via strip skills
  387. bonus bUnbreakableGarment; Garment cannot be damaged/broken by any means
  388. bonus bUnbreakableWeapon; Weapon cannot be damaged/broken by any means
  389. bonus bUnbreakableArmor; Armor cannot be damaged/broken by any means
  390. bonus bUnbreakableHelm; Helm cannot be damaged/broken by any means
  391. bonus bUnbreakableShield; Shield cannot be damaged/broken by any means
  392. bonus bUnbreakableShoes; Shoes cannot be damaged/broken by any means
  393. bonus bUnbreakable,n; Reduces the break chance of all equipped equipment by n%
  394. bonus bBreakWeaponRate,n; Adds a n/100% chance to break enemy's weapon while attacking (stacks with other break chances)
  395. bonus bBreakArmorRate,n; Adds a n/100% chance to break enemy's armor while attacking (stacks with other break chances)
  396. Monster drops
  397. -------------
  398. bonus2 bDropAddRace,r,x; Adds x% to player's drop rate when killing a monster with race r.
  399. bonus2 bDropAddClass,c,x; Adds x% to player's drop rate when killing a monster with class c.
  400. bonus3 bAddMonsterIdDropItem,iid,mid,n; Adds a n/100% chance of dropping item iid when killing monster mid
  401. bonus2 bAddMonsterDropItem,iid,n; Adds a n/100% chance for item iid to be dropped when killing a monster
  402. bonus3 bAddMonsterDropItem,iid,r,n; Adds a n/100% chance for item iid to be dropped when killing a monster of race r
  403. bonus3 bAddClassDropItem,iid,c,n; Adds a n/100% chance for item iid to be dropped when killing a monster of class c
  404. bonus2 bAddMonsterDropItemGroup,ig,n; Adds a n/100% chance to get an item of group type ig when killing a monster
  405. bonus3 bAddMonsterDropItemGroup,ig,r,n; Adds a n/100% chance to get an item of group type ig when killing a monster of race r
  406. bonus3 bAddClassDropItemGroup,ig,c,n; Adds a n/100% chance to get an item of group type ig when killing a monster of class c
  407. NOTE: If 'x' is negative value, then it's a part of formula:
  408. chance = -n*(killed_mob_level/10)+1
  409. NOTE: Officially, the drop bonus for groups always activates to 100% so n should be 10000 for all
  410. official items. The actual drop rate of each item is defined in the item_group_db instead.
  411. Please note that each time only one random item in the group is checked for its drop rate.
  412. That means that the chance is divided by the number of items in the group.
  413. bonus2 bGetZenyNum,x,n; Adds a n% chance of gaining 1~x zeny when killing a monster (only the highest among all is applied)
  414. bonus2 bAddGetZenyNum,x,n; Adds a n% chance of gaining 1~x zeny when killing a monster
  415. NOTE: If n < 0, the max zeny to gain is -x*monster level.
  416. Misc effects
  417. ------------
  418. bonus bDoubleRate,n; Double Attack probability n% (works with all weapons | only the highest among all is applied)
  419. bonus bDoubleAddRate,n; Double Attack probability + n% (works with all weapons)
  420. bonus bSplashRange,n; Splash attack radius + n (only the highest among all is applied)
  421. bonus bSplashAddRange,n; Splash attack radius + n
  422. NOTE: n=1 makes a 3*3 cells area, n=2 a 5*5 area, etc.
  423. bonus2 bAddSkillBlow,sk,n; Knock back the target by n cells when using skill sk
  424. bonus bNoKnockback; Character is no longer knocked back by enemy skills with such effect
  425. bonus bNoGemStone; Skills requiring Gemstones do not require them
  426. NOTE: Hocus Pocus still requires 1 Yellow Gemstone, Ganbantein requirements not reduced
  427. bonus bIntravision; Always see Hiding and Cloaking players/mobs
  428. bonus bPerfectHide; Hidden/cloaked character is no longer detected by monsters with 'detector' mode
  429. bonus bRestartFullRecover; When reviving, HP and SP are fully healed
  430. bonus bClassChange,n; Gives a n/100% chance to change the attacked monster's class with normal attack
  431. bonus bAddStealRate,n; Increases success rate of Steal skill by n/100%
  432. bonus bNoMadoFuel; Nullify Magic Gear Fuel requirement for skills.
  433. bonus bNoWalkDelay; Give infinite Endure.