Tempest Shadow Earring

Item ID 24168 Name Tempest Shadow Earring
A sacred earring which is believed to protect its wearer. It also draws the wearer's potential abilities.
_______________________
Ignores magical defense of enemies of Normal class by 5%.
_______________________
For each 2 Refine Levels:
Ignores magical defense of enemies of Normal class by additional 1%.
_______________________
Type: Shadow Earring
_______________________
Requirement: None
Weapon Level 0 Identifier S_Tempest_Earring
Attack 0 Type Shadow Equipment
MATK 0 Equip Locations Shadow Accessory Right (Earring)
Defense 0 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 0 Equip Upper None
Weight 0 Min Equip Level 1
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMaxHP,.@r*10;
bonus2 bIgnoreMdefClassRate,Class_Normal,5+(.@r/2);

Set Script
Tempest Shadow Earring
Tempest Pendant Shadow
Spirit Magic Executioner Shadow Weapon
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25) {
   bonus2 bIgnoreMdefRaceRate,RC_DemiHuman,100;
}
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Demi-Human Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25)
   bonus2 bIgnoreMdefRaceRate,RC_DemiHuman,100;
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Exorcist Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25)
   bonus2 bIgnoreMdefRaceRate,RC_Demon,100;
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Hunting Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25) {
   bonus2 bIgnoreMdefRaceRate,RC_Brute,100;
   bonus2 bIgnoreMdefRaceRate,RC_Player_Doram,100;
}
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Insect Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25)
   bonus2 bIgnoreMdefRaceRate,RC_Insect,100;
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Fishing Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25)
   bonus2 bIgnoreMdefRaceRate,RC_Fish,100;
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Dragon Killer Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25)
   bonus2 bIgnoreMdefRaceRate,RC_Dragon,100;
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Angelus Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25)
   bonus2 bIgnoreMdefRaceRate,RC_Angel,100;
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Formless Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25)
   bonus2 bIgnoreMdefRaceRate,RC_Formless,100;
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Holy Water Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25)
   bonus2 bIgnoreMdefRaceRate,RC_Undead,100;
Tempest Shadow Earring
Tempest Pendant Shadow
Magic Caesars Shadow Weapon
bonus bMatk,5;
if (getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 25)
   bonus2 bIgnoreMdefRaceRate,RC_Plant,100;
Tempest Shadow Earring
Tempest Pendant Shadow
Tempest Shadow Shield
Tempest Shadow Shoes
Tempest Shadow Weapon
Tempest Shadow Armor
if ((getequiprefinerycnt(EQI_SHADOW_ARMOR)+getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_SHIELD)+getequiprefinerycnt(EQI_SHADOW_SHOES)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L)) >= 54) {
   bonus2 bIgnoreDefClassRate,Class_Normal,20;
}
Magic Exorcist Current Shadow Weapon
Tempest Shadow Earring
Tempest Pendant Shadow
bonus bMatk,5;
.@r = getequiprefinerycnt(EQI_SHADOW_WEAPON) + getequiprefinerycnt(EQI_SHADOW_ACC_R) + getequiprefinerycnt(EQI_SHADOW_ACC_L);
if (.@r >= 25) {
   bonus2 bIgnoreMdefRaceRate,RC_Demon,100;
   bonus2 bIgnoreMdefRaceRate,RC_Angel,100;
}
Magic Vibration Dragon Killer Shadow Weapon
Tempest Shadow Earring
Tempest Pendant Shadow
bonus bMatk,5;
.@r = getequiprefinerycnt(EQI_SHADOW_WEAPON) + getequiprefinerycnt(EQI_SHADOW_ACC_R) + getequiprefinerycnt(EQI_SHADOW_ACC_L);
if (.@r >= 25) {
   bonus2 bIgnoreMdefRaceRate,RC_Formless,100;
   bonus2 bIgnoreMdefRaceRate,RC_Dragon,100;
}
Magic Caesars Hunting Shadow Weapon
Tempest Shadow Earring
Tempest Pendant Shadow
bonus bMatk,5;
.@r = getequiprefinerycnt(EQI_SHADOW_WEAPON) + getequiprefinerycnt(EQI_SHADOW_ACC_R) + getequiprefinerycnt(EQI_SHADOW_ACC_L);
if (.@r >= 25) {
   bonus2 bIgnoreMdefRaceRate,RC_Brute,100;
   bonus2 bIgnoreMdefRaceRate,RC_Plant,100;
}
Magic Fishing Insect Shadow Weapon
Tempest Shadow Earring
Tempest Pendant Shadow
bonus bMatk,5;
.@r = getequiprefinerycnt(EQI_SHADOW_WEAPON) + getequiprefinerycnt(EQI_SHADOW_ACC_R) + getequiprefinerycnt(EQI_SHADOW_ACC_L);
if (.@r >= 25) {
   bonus2 bIgnoreMdefRaceRate,RC_Fish,100;
   bonus2 bIgnoreMdefRaceRate,RC_Insect,100;
}
Magic Executioner Holy Water Shadow Weapon
Tempest Shadow Earring
Tempest Pendant Shadow
bonus bMatk,5;
.@r = getequiprefinerycnt(EQI_SHADOW_WEAPON) + getequiprefinerycnt(EQI_SHADOW_ACC_R) + getequiprefinerycnt(EQI_SHADOW_ACC_L);
if (.@r >= 25) {
   bonus2 bIgnoreMdefRaceRate,RC_DemiHuman,100;
   bonus2 bIgnoreMdefRaceRate,RC_Undead,100;
}