Thornbush Hairband

Item ID 18804 Name Thornbush Hairband
Hairband made with magic thorns which only grows on top floor of tower.
_______________________
INT +1
DEX +1
_______________________
Increases Magical Damage against monsters of Fire, Wind, Water and Earth elemental by 5%.
_______________________
Refine Level +5:
Increases Magical Damage against monsters of Fire, Wind, Water and Earth elemental by 5%.
_______________________
When equipped with Thorn Staff of Darkness:
For each Refine Level of Thorn Staff of Darkness:
MATK +10
_______________________
Type: Headgear
Defense: 5
Position: Upper
Weight: 30
Armor Level: 1
_______________________
Requirement:
Base Level 10
Weapon Level 0 Identifier Thornbush_Hairband
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 5 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 30 Min Equip Level 10
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bInt,1;
bonus bDex,1;
bonus2 bMagicAddEle,Ele_Fire,5;
bonus2 bMagicAddEle,Ele_Water,5;
bonus2 bMagicAddEle,Ele_Wind,5;
bonus2 bMagicAddEle,Ele_Earth,5;
if (.@r>=5) {
   bonus2 bMagicAddEle,Ele_Fire,min(.@r,10)*2;
   bonus2 bMagicAddEle,Ele_Water,min(.@r,10)*2;
   bonus2 bMagicAddEle,Ele_Wind,min(.@r,10)*2;
   bonus2 bMagicAddEle,Ele_Earth,min(.@r,10)*2;
}

Set Script
Thornbush Hairband
Thorn Staff of Darkness
bonus bMatk,10*min(getequiprefinerycnt(EQI_HAND_R),10);
Thornbush Hairband
Thorn Staff of Darkness
bonus bMatk,10*min(getequiprefinerycnt(EQI_HAND_R),10);