King's Mail

Item ID 15386 Name King's Mail
Armor that was only allowed to be worn by the guards who once protected the old king.
It is said that if a person who is proud of marvelous security and has a firm determination wears it, he can overcome any adversity.
_______________________
MDEF +10
_______________________
Decreases damage taken from Undead and Demon race by 15%.
_______________________
Refine Level +6:
MaxHP +5%
Increases Healing skills effectiveness by 10%.
Increases HP Recovery Rate of Recovery Items by 10%.
_______________________
Refine Level +8:
MaxHP +5%
Increases Healing skills effectiveness by additional 10%.
Increases HP Recovery Rate of Recovery Items by additional 10%.
_______________________
When equipped with Save the King:
For each Refine Level of King's Mail:
Increases damage of Grand Cross, Bash and Holy Cross by 20%.
_______________________
When equipped with SKing's Guard:
For each Refine Level of King's Mail:
Decreases damage taken from Shadow elemental attacks by 5%.
_______________________
Type: Armor
Defense: 180
Element: Holy
Weight: 150
Armor Level: 1
_______________________
Requirement:
Base Level 130
Royal Guard
Weapon Level 0 Identifier Kings_Mail
Attack 0 Type Armor
MATK 0 Equip Locations Armor
Defense 180 Equippable Jobs Crusader
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper Third, Third Upper, Third Baby
Weight 150 Min Equip Level 130
NPC Buy 20 Max Equip Level None
NPC Sell 10 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bDefEle,Ele_Holy;
bonus bMdef,10;
bonus2 bSubRace,RC_Demon,15;
bonus2 bSubRace,RC_Undead,15;
if (.@r>=6) {
   bonus bMaxHPrate,5;
   bonus bHealPower,10;
   bonus bHealPower2,10;
   bonus bAddItemHealRate,10;
}
if (.@r>=8) {
   bonus bMaxHPrate,5;
   bonus bHealPower,10;
   bonus bHealPower2,10;
   bonus bAddItemHealRate,10;
}

Set Script
Save the King
King's Mail
.@r = getequiprefinerycnt(EQI_ARMOR);
bonus2 bSkillAtk,"CR_GRANDCROSS",20*.@r;
bonus2 bSkillAtk,"SM_BASH",20*.@r;
bonus2 bSkillAtk,"CR_HOLYCROSS",20*.@r;
King's Mail
King's Guard
.@r = getequiprefinerycnt(EQI_ARMOR);
bonus2 bSubEle,Ele_Dark,5*.@r;