Lord Bearer's Shadow Armor

Item ID 24764 Name Lord Bearer's Shadow Armor
A suit of armor worn on top of normal armor for additional defense. Needs a complete set to have bonus effect.
_______________________
For each 2 Refine Levels:
MaxHP +1%
_______________________
Refine Level +7:
Increases Physical and Magical Damage against enemies of every size by 5%.
_______________________
Refine Level +9:
MaxHP +5%
_______________________
When equipped with Lord Bearer's Shadow Shoes:
All Basic Stats +2, MaxHP -20%
Enables unlimited effect of Endure.

Total Refine Level of entire set is at least +18:
MaxHP +25%
_______________________
Type: Shadow Armor
_______________________
Requirement: None
Weapon Level 0 Identifier S_R_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 None
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 bMaxHPrate,(.@r/2);
if (.@r>=7) {
   bonus2 bAddSize,Size_All,5;
   bonus2 bMagicAddSize,Size_All,5;
   if (.@r>=9) {
      bonus bMaxHPrate,5;
   }
}

Set Script
Lord Bearer's Shadow Armor
Lord Bearer's Shadow Shoes
.@sum = getequiprefinerycnt(EQI_SHADOW_ARMOR)+getequiprefinerycnt(EQI_SHADOW_SHOES);
bonus bAllStats,2;
if (.@sum >= 18) {
   bonus bMaxHPrate,-20;
   bonus bNoWalkDelay;
   if (.@sum >= 20) {
      bonus bMaxHPrate,25;
   }
}