Pirate Captain's Coat

Item ID 480174 Name Pirate Captain's Coat
The captain's coat worn by Drake.
_______________________
Critical +3, C.RATE +5
_______________________
For each 2 Refine Levels:
ATK +15
Increases Critical Damage by 3%.
_______________________
For each 3 Refine Levels:
Increases Physical Damage against enemies of every size by 5%.
_______________________
Refine Level +7:
ATK +5%, P.ATK +7
_______________________
Refine Level +9:
Decreases After Skill Delay by 10%.
_______________________
Refine Level +11:
DEF +150
Decreases After Skill Delay by additional 5%.
_______________________
When equipped with Drake Card:
Critical +15, C.RATE +10
Increases Melee and Ranged Physical Damage by 15%.
_______________________
[Additional Options by Grade]
[Grade D]: Critical +3, CRT +3
[Grade C]: Critical Damage +15%
[Grade B]: POW +3, CON +3
[Grade A]: P.ATK +7
_______________________
Type: Garment
Defense: 15
Weight: 60
Armor Level: 2
_______________________
Requirement:
Base Level 200
Weapon Level 0 Identifier Pirate_Captain_Coat
Attack 0 Type Armor
MATK 0 Equip Locations Garment
Defense 15 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 60 Min Equip Level 200
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 bCRate,5;
bonus bCritical,3;
bonus bCritAtkRate,3*(.@r/2);
bonus bBaseAtk,15*(.@r/2);
bonus2 bAddSize,Size_All,5*(.@r/3);
if (.@r>=7) {
   bonus bPAtk,7;
   bonus bAtkRate,5;
   if (.@r>=9) {
      bonus bDelayrate,-10;
      if (.@r>=11) {
         bonus bDelayrate,-5;
         bonus bDef,150;
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus bCritical,3;
   bonus bCrt,3;
   if (.@g>=ENCHANTGRADE_C) {
      bonus bCritAtkRate,15;
      if (.@g>=ENCHANTGRADE_B) {
         bonus bPow,3;
         bonus bCon,3;
         if (.@g>=ENCHANTGRADE_A) {
            bonus bPAtk,7;
         }
      }
   }
}

Set Script
Pirate Captain's Coat
Drake Card
bonus bLongAtkRate,15;
bonus bShortAtkRate,15;
bonus bCRate,10;
bonus bCritical,15;