Imp Hat-LT

Item ID 400156 Name Imp Hat-LT
An improved version of the hat modeled after the Imp, the mascot of the Thor Volcano Dungeon.
_______________________
Base Level at least 210:
P.ATK +2
S.MATK +2
_______________________
Physical attacks have a certain chance to grant Fire element to your weapon for 60 seconds.
Magical attacks have a certain chance to increase Magical Damage with Fire element by 20% for 60 seconds.
_______________________
Refine Level +7:
Increases Melee Physical Damage by 10%.
Increases Magical Damage with Fire element by 10%.
_______________________
Refine Level +9:
ATK +5%, MATK +5%
_______________________
Refine Level +11:
Increases Damage against Earth elemental by 20%.
_______________________
[Bonus by Grade]
[Grade D]: Melee physical damage +5%. Magical Damage with Fire element +5%.
[Grade C]: P.ATK +2, S.MATK +2
[Grade B]: Refine Level +12: Fixed Casting Time -0.5 seconds.
_______________________
Type: Headgear
Defense: 1
Position: Upper
Weight: 40
Armor Level: 2
_______________________
Requirement:
Base Level 150
Weapon Level 0 Identifier Imp_Hat_LT
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 1 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 40 Min Equip Level 150
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@g = getenchantgrade();
.@r = getrefine();
if (BaseLevel>=210) {
   bonus bPAtk,2;
   bonus bSMatk,2;
}
if (.@r>=7) {
   bonus2 bMagicAtkEle,Ele_Fire,10;
   bonus bShortAtkRate,10;
   if (.@r>=9) {
      bonus bAtkRate,5;
      bonus bMatkRate,5;
      if (.@r>=11) {
         bonus2 bMagicAddEle,Ele_Earth,20;
         bonus2 bAddEle,Ele_Earth,20;
      }
   }
}
if (.@g >= ENCHANTGRADE_D) {
   bonus2 bMagicAtkEle,Ele_Fire,5;
   bonus bShortAtkRate,5;
   if (.@g >= ENCHANTGRADE_C) {
      bonus bPAtk,2;
      bonus bSMatk,2;
      if (.@g >= ENCHANTGRADE_B) {
         if (.@r>=12) {
            bonus bFixedCast,-500;
         }
      }
   }
}
autobonus "{ bonus bAtkEle,Ele_Fire; }",1,60000,BF_WEAPON;
autobonus "{ bonus2 bMagicAtkEle,Ele_Fire,20; }",1,60000,BF_MAGIC;