Spell Caster Shadow Earring

Item ID 24749 Name Spell Caster Shadow Earring
A sacred earring which is believed to protect its wearer. It also draws the wearer's potential abilities.
_______________________
For each Refine Level:
Decreases Variable Casting Time by 1%.
_______________________
For each 3 Refine Levels:
ATK +1%, MATK +1%
_______________________
When equipped with Spell Caster Shadow Pendant:
Decreases SP Consumption by 10%.

Total Refine Level of entire set is at least +20:
Decreases Fixed Casting Time by 0.3 seconds.
(However, when equipped with Spell Caster Shadow Armor and Spell Caster Shadow Shoes, Fixed Casting Reduction will not overlap.)
_______________________
Type: Shadow Earring
_______________________
Requirement: None
Weapon Level 0 Identifier S_SpellCaster_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 None
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;
bonus bVariableCastrate,-.@r;
bonus bMatkRate,(.@r/3);
bonus bAtkRate,(.@r/3);

Set Script
Spell Caster Shadow Earring
Spell Caster Shadow Pendant
.@sum = getequiprefinerycnt(EQI_SHADOW_ACC_L)+getequiprefinerycnt(EQI_SHADOW_ACC_R);
bonus bUseSPrate,-10;
if (.@sum >= 20) {
   bonus bFixedCast,-300;
}