Red Bread Hat

Item ID 18601 Name Red Bread Hat
A lovely red hat with a white pom pom.
_______________________
MATK +5%
MDEF +5
_______________________
For each Refine Level equal or above +6:
Decreases damage taken from Demi-Human race by 1%.
Increases Magical Damage against monsters of Demi-Human race by 1%.
_______________________
Type: Headgear
Defense: 0
Position: Upper
Weight: 30
Armor Level: 1
_______________________
Requirement: None
Weapon Level 0 Identifier Red_Bread_Hat
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 0 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 30 Min Equip Level None
NPC Buy 20 Max Equip Level None
NPC Sell 10 Refineable Yes
Credit Price None Trade restriction Can't be dropped
Item Script
.@r = getrefine();
if (.@r < 5)
   .@r = 5;
bonus bMatkRate,5;
bonus2 bSubRace,RC_DemiHuman,.@r-5;
bonus2 bSubRace,RC_Player_Human,.@r-5;
bonus2 bMagicAddRace,RC_DemiHuman,.@r-5;
bonus2 bMagicAddRace,RC_Player_Human,.@r-5;
bonus bMdef,5;