Robust Magical Armor

Item ID 15279 Name Robust Magical Armor
Blue armor with strong magic.
_______________________
MATK +50
_______________________
For each 3 Refine Levels:
MATK +2%
_______________________
Refine Level +7:
Ignores magical defense of enemies of Brute and Demon race by 30%.
_______________________
Refine Level +9:
Increases Magical Damage against monsters of Brute and Demon race by 10%.
_______________________
Refine Level +11:
Increases Magical Damage against Wind and Earth elemental by 10%.
_______________________
When equipped with Temporal INT Boots [1] or Modified INT Boots [1]:
MATK +10%
Total Refine Level of entire set at least +21:
Ignores magical defense of enemies of Brute and Demon race by additional 20%.
_______________________
Type: Armor
Defense: 60
Weight: 90
Armor Level: 1
_______________________
Requirement: None
Weapon Level 0 Identifier Overwhelm_Int_Armor
Attack 0 Type Armor
MATK 0 Equip Locations Armor
Defense 60 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 90 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 bMatk,50;
if (.@r > 2)
   bonus bMatkRate,.@r/3*2;
if (.@r > 6) {
   bonus2 bIgnoreMdefRaceRate,RC_Brute,30;
   bonus2 bIgnoreMdefRaceRate,RC_Demon,30;
}
if (.@r > 8) {
   bonus2 bMagicAddRace,RC_Demon,10;
   bonus2 bMagicAddRace,RC_Brute,10;
}
if (.@r > 10) {
   bonus2 bMagicAddEle,Ele_Earth,10;
   bonus2 bMagicAddEle,Ele_Wind,10;
}

Set Script
Robust Magical Armor
Temporal Int Boots
bonus bMatkRate,10;
.@r = getequiprefinerycnt(EQI_ARMOR) + getequiprefinerycnt(EQI_SHOES);
if (.@r >= 21) {
   bonus2 bIgnoreMdefRaceRate,RC_Brute,20;
   bonus2 bIgnoreMdefRaceRate,RC_Demon,20;
}
Robust Magical Armor
Modified Intelligence Boots
bonus bMatkRate,10;
.@r = getequiprefinerycnt(EQI_ARMOR) + getequiprefinerycnt(EQI_SHOES);
if (.@r >= 21) {
   bonus2 bIgnoreMdefRaceRate,RC_Brute,20;
   bonus2 bIgnoreMdefRaceRate,RC_Demon,20;
}
Young Leaf of World Tree (Int)
Robust Magical Armor
Temporal Int Manteau
.@sum = getequiprefinerycnt(EQI_HEAD_MID)+getequiprefinerycnt(EQI_ARMOR)+getequiprefinerycnt(EQI_GARMENT);
bonus bVariableCastrate,-10;
if (.@sum >= 14) {
   bonus bMatk,80;
}
if (.@sum >= 18) {
   bonus2 bMagicAtkEle,Ele_All,10;
   bonus bDelayrate,-7;
}
if (.@sum >= 22) {
   bonus2 bMagicAddSize,Size_All,10;
}