Moan of Corruption

Item ID 470204 Name Moan of Corruption
Shoes worn by a corrupt high priest.
_______________________
SPL +5, CON +3.
_______________________
Decreases SP Consumption by 15%.
_______________________
For each 3 Refine Levels:
MATK +7
_______________________
Refine Level +7:
MATK +5%, S.MATK +3.
_______________________
Refine Level +9:
Decreases Variable Casting Time by 10%.
_______________________
Refine Level +11:
Increases Magical Damage against monsters of Medium and Large by 15%.
_______________________
When equipped with Fallen Bishop Card:
MaxSP +25%
Increases Magical Damage against monsters of Holy element by 15%.
_______________________
When equipped with Sealed Fallen Bishop Card:
Increases Magical Damage against monsters of Holy element by 10%.
_______________________
[Bonus by Grade]
[Grade D]: MATK +5%, SPL +5.
[Grade C]: Fixed Casting Time -1 second.
[Grade B]: S.MATK +7
[Grade A]: SPL +8 per 2 Refine Levels
_______________________
Type: Shoes
Defense: 16
Weight: 30
Armor Level: 2
_______________________
Requirement:
Base Level 240
Weapon Level 0 Identifier Corruption_Boots_K
Attack 0 Type Armor
MATK 0 Equip Locations Footgear
Defense 16 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 30 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 bSpl,5;
bonus bCon,3;
bonus bUseSPrate,15;
bonus bMatk,7*(.@r/3);
if (.@r>=7) {
   bonus bSMatk,3;
   bonus bMatkRate,5;
   if (.@r>=9) {
      bonus bVariableCastrate,-10;
      if (.@r>=11) {
         bonus2 bMagicAddSize,Size_Medium,15;
         bonus2 bMagicAddSize,Size_Large,15;
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus bMatkRate,5;
   bonus bSpl,5;
   if (.@g>=ENCHANTGRADE_C) {
      bonus bFixedCast,-1000;
      if (.@g>=ENCHANTGRADE_B) {
         bonus bSMatk,7;
         if (.@g>=ENCHANTGRADE_A) {
            bonus bSpl,8*(.@r/2);
         }
      }
   }
}

Set Script
Moan of Corruption
Fallen Bishop Hibram Card
bonus2 bMagicAddEle,Ele_Holy,15;
bonus bMaxSPrate,25;
Moan of Corruption
Sealed Fallen Bishop Hibram Card
bonus2 bMagicAddEle,Ele_Holy,10;
bonus bMaxSPrate,15;