Soul Shadow Earring

Item ID 24229 Name Soul Shadow Earring
A sacred earring which is believed to protect its wearer. It also draws the wearer's potential abilities.
_______________________
MATK +5
_______________________
For each Refine Level:
MATK +1
_______________________
Refine Level +7:
MaxHP +1%
_______________________
Refine Level +9:
MATK +1%
_______________________
When equipped with Soul Shadow Weapon and Soul Shadow Pendant:
MATK +10
_______________________
Total Refine Level of entire set at least +20:
MATK +1%
_______________________
Total Refine Level of entire set at least +25:
MATK +1%
_______________________
Type: Shadow Earring
_______________________
Requirement:
Base Level 70
Weapon Level 0 Identifier S_Spirit_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 70
NPC Buy 10 Max Equip Level None
NPC Sell 5 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMaxHP,.@r*10;
bonus bMatk,(5+.@r);
if (.@r>=7)
   bonus bMaxHPrate,1;
if (.@r>=9)
   bonus bMatkRate,1;

Set Script
Enhanced Soul Shadow Weapon
Soul Shadow Earring
Soul Shadow Pendant
.@r = getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L);
bonus bMatkRate,1;
if (.@r>=20) {
   bonus bMatkRate,1;
}
if (.@r>=25) {
   bonus bMatkRate,1;
}
Soul Shadow Weapon
Soul Shadow Earring
Soul Shadow Pendant
.@r = getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L);
bonus bMatk,10;
if (.@r>=20) {
   bonus bMatkRate,1;
}
if (.@r>=25) {
   bonus bMatkRate,1;
}
Soul Shadow Earring
Soul Shadow Pendant
Spirit Magic Executioner Shadow Weapon
.@r = getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L);
bonus bMatk,10;
if (.@r>=20) {
   bonus bMatkRate,1;
}
if (.@r>=25) {
   bonus bMatkRate,1;
}