Rideword Hat

Item ID 5208 Name Rideword Hat
A hat designed to mimic the look of a terrible magic book which attacks people.
_______________________
Random chance to absorb 8% physical damage inflicted into HP.
_______________________
Random chance to absorb 4% physical damage inflicted into SP.
_______________________
Drains 10 HP every 5 seconds while equipped.
_______________________
Type: Headgear
Defense: 3
Position: Upper
Weight: 30
Armor Level: 1
_______________________
Requirement:
Base Level 40
All Jobs except Novice
Weapon Level 0 Identifier Rideword_Hat
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 3 Equippable Jobs All jobs
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 30 Min Equip Level 40
NPC Buy 20 Max Equip Level None
NPC Sell 10 Refineable Yes
Credit Price None Trade restriction None
Item Script
bonus2 bHPDrainRate,50,8;
bonus2 bSPDrainRate,10,4;
bonus2 bHPLossRate,10,5000;

Set Script
Evil Dragon Armor
Rideword Hat
bonus2 bHPDrainRate,-50,8;
bonus2 bSPDrainRate,-10,4;
Rideword Hat
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,-50,8;
   bonus2 bSPDrainRate,-10,4;
}