Infinity Shadow Earring

Item ID 24150 Name Infinity Shadow Earring
A sacred earring which is believed to protect its wearer. It also draws the wearer's potential abilities.
_______________________
Decreases damage taken from Small, Medium and Large size by 1%.
_______________________
Refine Level +7:
Decreases damage taken from Small, Medium and Large size by additional 1%.
_______________________
Refine Level +9:
Decreases damage taken from Small, Medium and Large size by additional 1%.
_______________________
When equipped with Infinity Shadow Pendant:
ATK +1%
_______________________
Total Refine Level of entire set at least +15:
Nullifies weapon damage penalty resulting from monster's size.
_______________________
Type: Shadow Earring
_______________________
Requirement: None
Weapon Level 0 Identifier S_Infinity_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 bAddSize,Size_All,1;
bonus2 bMagicAddSize,Size_All,1;
if (.@r>=7) {
   bonus2 bAddSize,Size_All,1;
   bonus2 bMagicAddSize,Size_All,1;
}
if (.@r>=9) {
   bonus2 bAddSize,Size_All,1;
   bonus2 bMagicAddSize,Size_All,1;
}

Set Script
Infinity Shadow Earring
Infinity Shadow Pendant
bonus bAtkRate,1;
if (getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 15)
   bonus bNoSizeFix;