Physical Shadow Armor

Item ID 24395 Name Physical Shadow Armor
A suit of armor worn on top of normal armor for additional defense. Needs a complete set to have bonus effect.
_______________________
ATK +20
_______________________
Refine Level +7:
ATK +2%
_______________________
Refine Level +9:
ATK +3%
_______________________
When equipped with Physical Shadow Shield and Physical Shadow Shoes:
For each 2 Refine Levels of entire set:
ATK +1
_______________________
Total Refine Level of entire set at least +23:
ATK +2%
_______________________
Total Refine Level of entire set at least +25:
ATK +3%
_______________________
Type: Shadow Armor
_______________________
Requirement: None
Weapon Level 0 Identifier S_Physical_Armor
Attack 0 Type Shadow Equipment
MATK 0 Equip Locations Shadow Armor
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 bBaseAtk,20;
if (.@r >= 9) {
   bonus bAtkRate,5;
} else if (.@r >= 7) {
   bonus bAtkRate,2;
}

Set Script
Physical Shadow Shoes
Physical Shadow Shield
Physical Shadow Armor
.@r = getequiprefinerycnt(EQI_SHADOW_ARMOR) + getequiprefinerycnt(EQI_SHADOW_SHIELD) + getequiprefinerycnt(EQI_SHADOW_SHOES);
bonus bBaseAtk,.@r*2;
if (.@r >= 25) {
   bonus bAtkRate,5;
}
else if (.@r >= 23) {
   bonus bAtkRate,2;
}