Evil Dragon Armor

Item ID 15145 Name Evil Dragon Armor
A suit of armor made out of the scales of a powerful dragon that was once feared by the world.
It has the power to absorb all kinds of energy.
_______________________
Refine Level +8:
3% chance to restore 3% of damage as HP when performing a physical attack.
2% chance to restore 2% of damage as SP when performing a physical attack.
_______________________
Refine Level +9:
Increases the rate by 1% and HP and SP restored by 1%.
_______________________
Refine Level +10:
Increases the rate by 2% and HP and SP restored by 2%.
_______________________
When equipped with Rideword Hat:
The HP/SP absorption effect of Rideword Hat will not be activated.
_______________________
When equipped with Vanargand Helm:
The HP/SP absorption effect of Vanargand Helm will not be activated.
_______________________
When equipped with Nidhoggur's Shadow Garb:
The SP absorption effect of Nidhoggur's Shadow Garb will not be activated.
_______________________
When enchanted with Energy:
The SP absorption effect of Energy will not be activated.
_______________________
Type: Armor
Defense: 60
Weight: 400
Armor Level: 1
_______________________
Requirement:
Base Level 99
Weapon Level 0 Identifier EvilDragon_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 400 Min Equip Level 99
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
if (.@r>=10) {
   bonus2 bHPDrainRate,60,6;
   bonus2 bSPDrainRate,50,5;
} else if (.@r>=9) {
   bonus2 bHPDrainRate,40,4;
   bonus2 bSPDrainRate,30,3;
} else if (.@r>=8) {
   bonus2 bHPDrainRate,30,3;
   bonus2 bSPDrainRate,20,2;
}

Set Script
Evil Dragon Armor
Vanargandr Helm
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
if (.@r >= 9) {
   bonus2 bHPDrainRate,-60,-8;
   bonus2 bSPDrainRate,-20,-4;
}
else if (.@r >= 8) {
   bonus2 bHPDrainRate,-50,-5;
   bonus2 bSPDrainRate,-10,-2;
}
else if (.@r >= 7) {
   bonus2 bHPDrainRate,-30,-5;
   bonus2 bSPDrainRate,-10,-2;
}
else if (.@r >= 5) {
   bonus2 bHPDrainRate,-10,-3;
   bonus2 bSPDrainRate,-10,-1;
}
else {
   bonus2 bHPDrainRate,-10,-1;
   bonus2 bSPDrainRate,-10,-1;
}
Evil Dragon Armor
Nydhorgg's Shadow Garb
bonus2 bSPDrainRate,-10,1;
Evil Dragon Armor
Rideword Hat
bonus2 bHPDrainRate,-50,8;
bonus2 bSPDrainRate,-10,4;