Engraved Fiery Earth Rune Armor

Item ID 450282 Name Engraved Fiery Earth Rune Armor
An armor born from deep energy research on Varmundt's Biosphere.
The rune magic of flame and earth is engraved along with the user's magic.
_______________________
POW +3, CON +3, Critical -10.
ATK +140
_______________________
For each 2 Refine Levels:
ATK +15, DEF +30
_______________________
Refine Level +7:
ATK +5%, P.ATK +2, MDEF +25.
_______________________
Refine Level +9:
P.ATK +5, MDEF +25.
_______________________
Refine Level +11:
Decreases After Skill Delay by 10%.
Increases Melee Physical Damage by 15%.
_______________________
[Bonus by Grade]
[Grade D]: ATK +25, ATK +5%.
[Grade C]: ATK +45, ATK +8%, Melee Physical Damage +3%.
[Grade B]: ATK +13%, Melee Physical Damage +5%, POW +10.
[Grade A]: ATK +16%, Melee Physical Damage +7%, CON +10.
_______________________
Type: Armor
Defense: 200
Weight: 0
Armor Level: 2
_______________________
Requirement:
Base Level 250
Weapon Level 0 Identifier Flame_E_R_Armor2
Attack 0 Type Armor
MATK 0 Equip Locations Armor
Defense 200 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 0 Min Equip Level 250
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction Can't be dropped, Can't be traded with player, Can't be put in Cart, Can't be put in Storage, Can't be put in Guild Storage, Can't be attached in Mail, Can't be auctioned
Item Script
.@g = getenchantgrade();
.@r = getrefine();
bonus bCritical,-10;
bonus bPow,3;
bonus bCon,3;
bonus bBaseAtk,140+15*(.@r/2);
bonus bDef,30*(.@r/2);
if (.@r>=7) {
   bonus bPAtk,2;
   bonus bAtkRate,5;
   bonus bMdef,25;
   if (.@r>=9) {
      bonus bPAtk,5;
      bonus bMdef,25;
      if (.@r>=11) {
         bonus bShortAtkRate,15;
         bonus bDelayrate,-10;
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus bAtkRate,5;
   bonus bBaseAtk,25;
   if (.@g>=ENCHANTGRADE_C) {
      bonus bShortAtkRate,3;
      bonus bAtkRate,8;
      bonus bBaseAtk,45;
      if (.@g>=ENCHANTGRADE_B) {
         bonus bShortAtkRate,5;
         bonus bAtkRate,13;
         bonus bPow,10;
         if (.@g>=ENCHANTGRADE_A) {
            bonus bShortAtkRate,7;
            bonus bAtkRate,16;
            bonus bCon,10;
         }
      }
   }
}

Set Script
Engraved Fiery Earth Rune Armor
Biosphere Abyss Ring
bonus2 bIgnoreDefClassRate,Class_All,50;
bonus2 bAddClass,Class_All,30;