Magical Feather

Item ID 19211 Name Magical Feather
A winged hairband wore by priest whose fought demons.
Increases the attack and defense power against specific element.
_______________________
Random chance to auto-cast Level 1 Holy Light when dealing physical damage.
_______________________
Increases Physical Damage against enemies of Poison, Holy, Ghost, Shadow, Undead elemental monsters by 5%.
_______________________
For each 3 Refine Levels:
Increases damage of Holy Light by 100%.
Increases SP Consumption by of Holy Light by 10.
_______________________
Refine Level +7:
Increases Physical Damage against enemies of Poison, Holy, Ghost, Shadow and Undead elemental monsters by 5%.
_______________________
Refine Level +9:
Decreases damage taken from Poison, Holy, Ghost, Shadow, Undead elemental monsters by 5%.
_______________________
Refine Level +12:
Increases the rate of auto-casting Holy Light.
_______________________
Type: Headgear
Defense: 5
Position: Upper
Weight: 3
Armor Level: 1
_______________________
Requirement:
Base Level 10
Weapon Level 0 Identifier Magical_Feather_K
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 3 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();
if (.@r>=7)
   .@b = 10;
else
   .@b = 5;
bonus2 bMagicAddEle,Ele_Dark,.@b;
bonus2 bMagicAddEle,Ele_Poison,.@b;
bonus2 bMagicAddEle,Ele_Holy,.@b;
bonus2 bMagicAddEle,Ele_Ghost,.@b;
bonus2 bMagicAddEle,Ele_Undead,.@b;
bonus2 bAddEle,Ele_Dark,.@b;
bonus2 bAddEle,Ele_Poison,.@b;
bonus2 bAddEle,Ele_Holy,.@b;
bonus2 bAddEle,Ele_Ghost,.@b;
bonus2 bAddEle,Ele_Undead,.@b;
if (.@r>=9) {
   bonus2 bSubEle,Ele_Dark,7;
   bonus2 bSubEle,Ele_Poison,7;
   bonus2 bSubEle,Ele_Holy,7;
   bonus2 bSubEle,Ele_Ghost,7;
   bonus2 bSubEle,Ele_Undead,7;
}
if (.@r>=12) {
   .@val = 1;
}
bonus5 bAutoSpell,"AL_HOLYLIGHT",1+.@val,10,BF_SHORT|BF_WEAPON,1;
bonus5 bAutoSpell,"AL_HOLYLIGHT",1+.@val,5,BF_LONG|BF_WEAPON,1;