Majestic Devil Horn

Item ID 5584 Name Majestic Devil Horn
The horns imbued with full of Devil Spirit. Feels so tight and harsh.
_______________________
Decreases damage taken from Demon race monsters by 3%.
_______________________
Restores 1 SP when defeating target.
_______________________
Type: Headgear
Defense: 2
Position: Upper
Weight: 40
Armor Level: 1
_______________________
Requirement: None
Weapon Level 0 Identifier Majestic_Evil_Horn
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 2 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 0 Equip Upper None
Weight 40 Min Equip Level 1
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction Can't be dropped
Item Script
bonus2 bSubRace,RC_Demon,3;
bonus bSPGainValue,1;
bonus bMagicSPGainValue,1;
if (vip_status(VIP_STATUS_ACTIVE)) {
   bonus bSPGainValue,2;
   bonus bMagicSPGainValue,2;
   bonus2 bSubRace,RC_Demon,2;
}

Set Script
Majestic Devil Horn
Evil Dragon Armor
.@r = getequiprefinerycnt(EQI_ARMOR);
if (.@r>=12) {
   bonus2 bHPDrainRate,-60,6;
   bonus2 bSPDrainRate,-60,5;
}
else if (.@r>=9) {
   bonus2 bHPDrainRate,-40,4;
   bonus2 bSPDrainRate,-40,3;
}
else if (.@r>=6) {
   bonus2 bHPDrainRate,-30,3;
   bonus2 bSPDrainRate,-30,2;
}
else {
   bonus2 bHPDrainRate,30,15;
   bonus2 bSPDrainRate,10,7;
}