Magician Knit Hat

Item ID 19171 Name Magician Knit Hat
A knit hat worn by a great magician who once worshiped the ghosts.
The fibers that have a great effect on the undead are woven.
_______________________
MDEF +10
_______________________
Increases Damage on Undead race by 5%.
_______________________
Decreases damage taken from Undead race by 2%.
_______________________
Restores 5 SP when a monster is killed.
_______________________
Refine Level +7:
MDEF +5
Increases Damage on Undead race by an additional 10%.
Decreases damage taken from Undead race by an additional 3%.
Restores additional 10 SP when a monster is killed.
_______________________
Refine Level +9:
MDEF +5
Increases Damage on Undead race by an additional 10%.
Decreases damage taken from Undead race by an additional 5%.
Restores additional 10 SP when a monster is killed.
_______________________
Type: Headgear
Defense: 10
Position: Upper
Weight: 50
Armor Level: 1
_______________________
Requirement:
Base Level 10
Weapon Level 0 Identifier Magician_Knithat
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 10 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 50 Min Equip Level 10
NPC Buy 20 Max Equip Level None
NPC Sell 10 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMdef,10;
bonus2 bAddRace,RC_Undead,5;
bonus2 bMagicAddRace,RC_Undead,5;
bonus2 bSubRace,RC_Undead,2;
bonus bSPGainValue,5;
bonus bLongSPGainValue,5;
bonus bMagicSPGainValue,5;
if (.@r>=7) {
   bonus bMdef,5;
   bonus2 bAddRace,RC_Undead,10;
   bonus2 bMagicAddRace,RC_Undead,10;
   bonus2 bSubRace,RC_Undead,3;
   bonus bSPGainValue,10;
   bonus bLongSPGainValue,10;
   bonus bMagicSPGainValue,10;
}
if (.@r>=9) {
   bonus bMdef,5;
   bonus2 bAddRace,RC_Undead,10;
   bonus2 bMagicAddRace,RC_Undead,10;
   bonus2 bSubRace,RC_Undead,5;
   bonus bSPGainValue,10;
   bonus bLongSPGainValue,10;
   bonus bMagicSPGainValue,10;
}