Officer's Hat-LT

Item ID 400445 Name Officer's Hat-LT
An improved version of a high-ranking officer's hat.
A restrained color tone with gold-plated decorations as a focal point.
_______________________
For each 2 Refine Levels:
ATK +10, MATK +10.
_______________________
Refine Level +7:
ATK +5%, MATK +5%.
_______________________
Refine Level +9:
Physical attacks have a 5% chance of absorbing 5% of the damage dealt as HP.
Physical attacks have a 1% chance of absorbing 3% of the damage dealt as SP.

Magical attacks have a 4% chance to recover 300 HP every second for 4 seconds.
Magical attacks have a 4% chance to recover 70 SP every second for 4 seconds.
_______________________
Refine Level +11:
Increases Attack Speed(decreases After Attack Delay by 10%).
Decreases Variable Casting Time by 10%.
_______________________
[Bonus by Grade]
[Grade D]: Physical Damage +5%, Magical Damage with every element +5%.
[Grade C]: Refine Level +12: Fixed Casting Time -0.5 seconds.
[Grade B]: P.ATK +5, S.MATK +5.
_______________________
Type: Headgear
Defense: 35
Position: Upper
Weight: 40
Armor Level: 2
_______________________
Requirement:
Base Level 100
Weapon Level 0 Identifier Officer_Cap_LT
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 35 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 40 Min Equip Level 100
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@g = getenchantgrade();
.@r = getrefine();
bonus bMatk,10*(.@r/2);
bonus bBaseAtk,10*(.@r/2);
if (.@r>=7) {
   bonus bMatkRate,5;
   bonus bAtkRate,5;
   if (.@r>=9) {
      bonus2 bHPDrainRate,50,5;
      bonus2 bSPDrainRate,10,3;
      autobonus "{ bonus2 bHPRegenRate,300,1000; bonus2 bSPRegenRate,70,1000; }",40,4000,BF_MAGIC;
      if (.@r>=11) {
         bonus bAspdRate,10;
         bonus bVariableCastrate,-10;
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus2 bMagicAtkEle,Ele_All,5;
   bonus bLongAtkRate,5;
   bonus bShortAtkRate,5;
   if (.@g>=ENCHANTGRADE_C) {
      if (.@r>=12) {
         bonus bFixedCast,-500;
      }
      if (.@g>=ENCHANTGRADE_B) {
         bonus bPAtk,5;
         bonus bSMatk,5;
      }
   }
}