Engraved Soul Purifying Rune Robe

Item ID 450284 Name Engraved Soul Purifying Rune Robe
An robe born from deep energy research on Varmundt's Biosphere.
The soul and purification rune magic is imprinted along with the user's magic.
_______________________
SPL +3, CON +3, MATK +140.
Decreases SP Consumption by 10%.
_______________________
For each 2 Refine Levels:
MATK +15, DEF +30
_______________________
Refine Level +7:
MATK +5%, S.MATK +2, MDEF +25.
_______________________
Refine Level +9:
S.MATK +5, MDEF +25.
_______________________
Refine Level +11:
Decreases After Skill Delay by 10%.
Increases Magical Damage with every element by 15%.
_______________________
[Bonus by Grade]
[Grade D]: MATK +25, MATK +5%.
[Grade C]: MATK +45, MATK +8%, Magical Damage with every element +3%.
[Grade B]: MATK +13%, Magical Damage with every element +5%, SPL +10.
[Grade A]: MATK +16%, Magical Damage with every element +7%, CON +10.
_______________________
Type: Armor
Defense: 75
Weight: 0
Armor Level: 2
_______________________
Requirement:
Base Level 250
Weapon Level 0 Identifier Soul_P_R_Robe2
Attack 0 Type Armor
MATK 0 Equip Locations Armor
Defense 75 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 bUseSPrate,10;
bonus bSpl,3;
bonus bCon,3;
bonus bMatk,140+15*(.@r/2);
bonus bDef,30*(.@r/2);
if (.@r>=7) {
   bonus bSMatk,2;
   bonus bMatkRate,5;
   bonus bMdef,25;
   if (.@r>=9) {
      bonus bSMatk,5;
      bonus bMdef,25;
      if (.@r>=11) {
         bonus2 bMagicAtkEle,Ele_All,15;
         bonus bDelayrate,-10;
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus bMatkRate,5;
   bonus bMatk,25;
   if (.@g>=ENCHANTGRADE_C) {
      bonus2 bMagicAtkEle,Ele_All,3;
      bonus bMatkRate,8;
      bonus bMatk,45;
      if (.@g>=ENCHANTGRADE_B) {
         bonus2 bMagicAtkEle,Ele_All,5;
         bonus bMatkRate,13;
         bonus bSpl,10;
         if (.@g>=ENCHANTGRADE_A) {
            bonus2 bMagicAtkEle,Ele_All,7;
            bonus bMatkRate,16;
            bonus bCon,10;
         }
      }
   }
}

Set Script
Engraved Soul Purifying Rune Robe
Biosphere Abyss Ring
bonus2 bIgnoreMdefClassRate,Class_All,50;
bonus bMatkRate,30;