Bearer's Shadow Armor II

Item ID 24337 Name Bearer's Shadow Armor II
A suit of armor worn on top of normal armor for additional defense. Needs a complete set to have bonus effect.
_______________________
MaxHP +1%
MDEF +1
_______________________
Refine Level +7:
MaxHP +2%
_______________________
When equipped with Bearer's Shadow Pendant II and Bearer's Shadow Shoes II:
All Basic Stats +1
_______________________
Total Refine Level of entire set at least +25:
Enables unlimited effect of Endure.
MaxHP -35%
_______________________
For each Refine Levels of entire set:
MaxHP +1%
_______________________
Type: Shadow Armor
_______________________
Requirement: None
Weapon Level 0 Identifier S2_Bearers_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 bMdef,1;
if (.@r >= 7) {
   bonus bMaxHPrate,3;
}
else {
   bonus bMaxHPrate,1;
}

Set Script
Bearer's Shadow Pendant II
Bearer's Shadow Armor II
Bearer's Shadow Shoes II
bonus bAllStats,1;
.@r = getequiprefinerycnt(EQI_SHADOW_SHOES) + getequiprefinerycnt(EQI_SHADOW_ACC_L) + getequiprefinerycnt(EQI_SHADOW_ARMOR);
if (.@r >= 25) {
   bonus bNoWalkDelay;
   bonus bMaxHPrate,.@r-35;
}