Swordman Shadow Earring

Item ID 24246 Name Swordman Shadow Earring
A sacred earring which is believed to protect its wearer. It also draws the wearer's potential abilities.
_______________________
Decreases SP Consumption of Bash by 20%.
_______________________
For each Refine Level:
Decreases SP Consumption of Bash by additional 3%.
_______________________
When equipped with Swordman Shadow Pendant:
ATK +1%
MaxHP +1%
_______________________
Total Refine Level of entire set at least +10:
ATK +2%
MaxHP +2%
_______________________
Type: Shadow Earring
_______________________
Requirement: None
Weapon Level 0 Identifier S_Swordman_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 bSkillUseSPrate,"SM_BASH",20+(3*.@r);

Set Script
Rune Knight Shadow Weapon
Rune Knight Shadow Shield
Swordman Shadow Earring
Swordman Shadow Pendant
Knight Shadow Shoes
Knight Shadow Armor
bonus bAllStats,10;
bonus bMaxHPrate,5;
bonus bMaxSPrate,5;
bonus2 bIgnoreDefClassRate,Class_Normal,50;
bonus2 bIgnoreMDefClassRate,Class_Normal,50;
Royal Guard Shadow Weapon
Royal Guard Shadow Shield
Swordman Shadow Earring
Swordman Shadow Pendant
Crusader Shadow Shoes
Crusader Shadow Armor
bonus bAllStats,10;
bonus bMaxHPrate,5;
bonus bMaxSPrate,5;
bonus2 bIgnoreDefClassRate,Class_Normal,50;
bonus2 bIgnoreMDefClassRate,Class_Normal,50;
Swordman Shadow Earring
Swordman Shadow Pendant
bonus bAtkRate,1;
bonus bMaxHPrate,1;
if (getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 10) {
   bonus bAtkRate,2;
   bonus bMaxHPrate,2;
}