Critical Shadow Shoes

Item ID 24333 Name Critical Shadow Shoes
A pair of shoes worn on top of normal shoes for additional defense. Needs a complete set to have bonus effect.
_______________________
FLEE +5
_______________________
For each 2 Refine Levels:
FLEE +1
_______________________
Refine Level +7:
Critical +2
_______________________
Refine Level +9:
Critical +2
_______________________
When equipped with Critical Shadow Shield:
For each Refine Level of entire set:
ATK +1
_______________________
Total Refine Level of entire set at least +15:
Increases Critical Damage by 1%.
_______________________
Type: Shadow Shoes
_______________________
Requirement: None
Weapon Level 0 Identifier S_Critical_Shoes
Attack 0 Type Shadow Equipment
MATK 0 Equip Locations Shadow Shoes
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;
bonus bFlee,5+.@r/2;
if (.@r >= 9) {
   bonus bCritical,4;
} else if (.@r >= 7) {
   bonus bCritical,2;
}

Set Script
Critical Shadow Shield
Critical Shadow Shoes
.@r = getequiprefinerycnt(EQI_SHADOW_SHOES) + getequiprefinerycnt(EQI_SHADOW_SHIELD);
bonus bBaseAtk,.@r;
if (.@r >= 15) {
   bonus bCritAtkRate,1;
}