Guest User

Untitled

a guest
Aug 13th, 2013
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.17 KB | None | 0 0
  1. //===== rAthena Documentation ================================
  2. //= rAthena Item Bonuses List
  3. //===== By: ==================================================
  4. //= rAthena Dev Team
  5. //===== Current Version: =====================================
  6. //= 20121219
  7. //===== Description: =========================================
  8. //= List of script instructions used in item bonuses,
  9. //= mainly bonus/bonus2/bonus3/bonus4/bonus5 arguments.
  10. //============================================================
  11.  
  12. bonus bMatk,n; MATK + n
  13. bonus bCopycat,n; n% chance to auto-cast the last skill used on you back to the caster
  14. bonus bSetRace,n; Race becomes n
  15. bonus bPayback,n; n/10% chance to kill an enemy that killed the wearer (except Boss monster)
  16. bonus bIntimacy,n; Increases intimacy by feeding Homunculus by n%
  17. bonus bSongMove,n; Allows Clown/Gypsy to walk while performing (n is meaningless)
  18. bonus bLastStand,n; n% chance to survive a fatal hit (leave the player with 1 HP)
  19. bonus bSkillTime,n; Reduces skill attack animation time by n%
  20. bonus bAvoidTrap,n; x% chance to avoid a trap when stood on
  21. bonus bSkillMove,n; Allows movement while casting at 100-n% regular walk speed
  22. bonus bMinDamage,n; n% chance to deal minimum attack damage
  23. bonus bMaxDamage,n; n% chance to deal maximum attack damage
  24. bonus bNoAreaMagic,n; Decreases damage from AoE skills by n% (100 = immunity)
  25. bonus bCritAtkMiss,n; n% chance to dodge a critical hit
  26. bonus bNoSingleMagic,n; Decreases damage from single target skills by n% (100 = immunity)
  27. bonus bDeathKeepBuffs,n; Retain buffs on death (n is meaningless)
  28. bonus bMagicDamageReturn2,n; n% chance to deal magic damage back to the caster
  29. bonus2 bSkillMove,n,x; Allows movement while casting skill n at 100-x% regular walk speed (supports skill names)
  30. bonus2 bIgnoreGTB,n,x; n% chance to ignore GTB effect, dealing x% damage
  31. bonus2 bCriticalDodge,n,x; x% chance to completely avoid damage when HP is less than or equal to x%
  32. bonus3 bAreaSkill,n,x,y; y% chance for skill n to be AoE in y*y cells (supports skill names)
  33. bonus3 bSkillGainSP,n,x,y; x/10% chance to gain y SP when using the skill n (supports skill names)
  34. bonus2 bElementDamage,n,x; n element damage + x%
  35. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison, 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  36. bonus2 bBreakLimit,n,x; n breaks the natural limit, up to x
  37. n: bMaxHP, bMaxSP
  38. bonus2 bSCDamage,n,x; Increase damage on enemy inflicted with n by x%
  39. n: SC_BLIND, SC_DECREASEAGI etc (see /db/const.txt for full list)
  40. bonus2 bSCResist,n,x; Increases resistance to n by x%
  41. n: SC_BLIND, SC_DECREASEAGI etc (see /db/const.txt for full list)
  42. bonus3 bSCExchange,n,x,y; y% chance for n to become y when cast on you
  43. n: SC_BLIND, SC_DECREASEAGI etc (see /db/const.txt for full list)
  44. bonus2 bNoConsume,n,x; y% chance to ignore the consumption of specified items/SP
  45. n: NC_ATTACK (Ammo), NC_SKILL (Skill requirements), NC_GEMSTONE (Gemstones), NC_SKILLSP (SP Required)
  46. bonus bHealAttack,n; Causes Heal to become attack type regardless of Undead element/race
  47. n: 1=Enemies, 2=Party/Guild, 3=Self (stacks, 1+2 = enemy+party/guild)
  48. bonus3 bCloneAid,n,x,y; n/10% chance to spawn a clone of yourself while attacking
  49. x: ATF_FLAGS (ATF_WEAPON|ATF_LONG = spawn while attacking with long range)
  50. bonus2 bFullDodge,n,x; n/10% chance to completely avoid damage
  51. x: ATF_FLAGS (ATF_WEAPON|ATF_LONG = avoid while being attacked with long range)
  52. bonus bMdefAtkRatioEle,n; n attribute if defensive power is high the high extent big damage is given, (defense disregard) :
  53. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison, 6=Holy, 7=Dark, 8=Spirit, 9=Undead
  54. bonus bMdefAtkRatioRace,n; Does more magic damage depending on monster MDEF against race n (defense disregard) :
  55. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  56. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  57. 10=Boss monster, 11=Other than (normal monster) boss monster
  58. bonus2 bHPAttackRatio,n,x; Deal more damage depending on HP of race n
  59. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  60. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  61. 10=Boss monster, 11=Other than (normal monster) boss monster
  62. x: Percentage increase (50 = +50% damage at 100% HP)
  63. bonus2 bSPAttackRatio,n,x; Deal more damage depending on SP of race n
  64. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  65. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  66. 10=Boss monster, 11=Other than (normal monster) boss monster
  67. x: Percentage increase (50 = +50% damage at 100% SP)
  68. bonus3 bHPDrainRatio,n,x,y; y/10% chance to drain x% current HP of the enemy of race n, and absorb it as health
  69. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  70. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  71. 10=Boss monster, 11=Other than (normal monster) boss monster
  72. bonus3 bSPDrainRatio,n,x,y; y/10% chance to drain x% current SP of the enemy of race n, and absorb it as SP
  73. n: 0=Formless, 1=Undead, 2=Brute, 3=Plant, 4=Insect,
  74. 5=Fish, 6=Demon, 7=Demi-Human, 8=Angel, 9=Dragon,
  75. 10=Boss monster, 11=Other than (normal monster) boss monster
  76. bonus3 bAtkEmotion,n,x,y; x/10% chance to use emotion n when :
  77. y: 1 = Attacking
  78. 2 = Being attacked
  79. 3 = Both
  80. bonus3 bSubEle,n,x,y; Reduce damage from element n by x% when satisfying y
  81. y: Trigger criteria:
  82. BF_SHORT: Trigger on melee attack
  83. BF_LONG: Trigger on ranged attack
  84. ( Default: BF_SHORT+BF_LONG )
  85.  
  86. BF_WEAPON: Trigger on weapon skills
  87. BF_MAGIC: Trigger on magic skills
  88. BF_MISC: Trigger on misc skills
  89. ( Default: BF_WEAPON )
  90.  
  91. BF_NORMAL: Trigger on normal attacks.
  92. BF_SKILL: Trigger on skills
  93. (Default: BF_SKILL if type is BF_MISC or BF_MAGIC, BF_NORMAL if type is BF_WEAPON)
  94. //----- Special bonus -------------------------------------
  95. bonus3 bCompare,n,x,y; Compares n stat between target and attacker, if satisfies x, perform x (modifier is y)
  96. x: ISMORE = Attacker Stat > Target Stat
  97. ISEQUAL = Attacker Stat = Target Stat
  98. ISLESS = Attacker Stat < Target Stat
  99.  
  100. MAKEPOS = Make the difference positive
  101. MAKENEG = Make the difference negative
  102.  
  103. ADDATK = Damage + y
  104. ADDINC = Damage + y%
  105. MU_ADDATK = Damage + (y * difference)
  106. MU_ADDINC = Damage + (y * difference)%
  107.  
  108. Examples:
  109. bonus3 bCompare,bStr,ISMORE|ISEQUAL|ADDATK,50;
  110. ^- Increases damage by 50 is Attacker STR >= Target STR
  111. bonus3 bCompare,bBaseStr,ISLESS|MAKEPOS|MU_ADDINC,3;
  112. ^- Makes the difference positive (Eg: -5 = 5), increases damage by (3 * difference)%
  113. if Attacker BASESTR < Target BASESTR
  114.  
  115. Custom:
  116. bBaseStr = Base STR (excluding +bonus)
  117. bBaseAgi = Base AGI (excluding +bonus)
  118. bBaseVit = Base VIT (excluding +bonus)
  119. bBaseInt = Base INT (excluding +bonus)
  120. bBaseDex = Base DEX (excluding +bonus)
  121. bBaseLuk = Base LUK (excluding +bonus)
  122. //---------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment