Boitata Hat

Item ID 400109 Name Boitata Hat
A hat imbued with the power of the mythical creature, Boitata.
_______________________
POW +5, CRT +5, HIT -25.
_______________________
Increases Attack Speed (decreases After Attack Delay by 10%).
_______________________
For each 2 Refine Levels:
ATK +20, DEF +10.
_______________________
Refine Level +7:
Increases Physical Damage by 15%.
_______________________
Refine Level +7:
ATK +30, ATK +10%.
_______________________
Refine Level +7:
P.ATK +8.
Increases Critical Damage by 25%.
_______________________
When equipped with Boitata Card:
Increases Physical Damage against enemies of Poison and Water element by 40%.
_______________________
When equipped with Sealed Boitata Card:
Increases Physical Damage against enemies of Poison and Water element by 25%.
_______________________
[Bonus by Grade]
[Grade D]: ATK +5%, POW +5
[Grade C]: C.RATE +3, Critical +15.
[Grade B]: Fixed Casting Time -0.3 seconds.
[Grade A]: C.RATE +1 per 3 Refine Levels, Critical Damage +14%.
_______________________
Type: Headgear
Defense: 25
Position: Upper
Weight: 40
Armor Level: 2
_______________________
Requirement:
Base Level 240
Weapon Level 0 Identifier Boitata_Hat_K
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 25 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 40 Min Equip Level 240
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 bHit,-25;
bonus bPow,5;
bonus bCrt,5;
bonus bAspdRate,10;
bonus bBaseAtk,20*(.@r/2);
bonus bDef,10*(.@r/2);
if (.@r>=7) {
   bonus bShortAtkRate,15;
   bonus bLongAtkRate,15;
   if (.@r>=9) {
      bonus bAtkRate,10;
      bonus bBaseAtk,30;
      if (.@r>=11) {
         bonus bCritAtkRate,25;
         bonus bPAtk,8;
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus bAtkRate,5;
   bonus bPow,5;
   if (.@g>=ENCHANTGRADE_C) {
      bonus bCRate,3;
      bonus bCritical,15;
      if (.@g>=ENCHANTGRADE_B) {
         bonus bFixedCast,-300;
         if (.@g>=ENCHANTGRADE_A) {
            bonus bCritAtkRate,14*(.@r/3);
            bonus bCRate,(.@r/3);
         }
      }
   }
}

Set Script
Boitata Hat
Boitata Card
bonus2 bAddEle,Ele_Poison,40;
bonus2 bAddEle,Ele_Water,40;
Boitata Hat
Sealed Boitata Card
bonus2 bAddEle,Ele_Poison,25;
bonus2 bAddEle,Ele_Water,25;