root/doc/item_bonus.txt @ 7

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