Ravage Magic Muffler

Item ID 480068 Name Ravage Magic Muffler
An improved muffler exclusively for anti-magic, not only has excellent magic defense, but also greatly improves the wearer's physical ability.
_______________________
MaxHP +2000
_______________________
For each 2 Refine Levels:
MaxHP +1%
_______________________
For each 3 Refine Levels:
Increases Attack Speed (decreases After Attack Delay by 1%).
Decreases Variable Casting Time by 1%.
_______________________
Refine Level +9:
Increases damage against all sized monsters by 3%.
_______________________
Refine Level +11:
Random chance to recover 350 HP and 20 SP per second for 10 seconds when dealing damage.
_______________________
When equipped with Anti-Conjurer Suit:
ATK +50

Refine Level of Anti-Conjurer Suit is +11 or higher:
ATK +5%
Increases Attack Speed (decreases After Attack Delay by 10%).
_______________________
When equipped with Magic Protector Robe:
MATK +50

Refine Level of Magic Protector Robe is +11 or higher:
MATK +5%
Decreases Variable Casting Time by 10%.
_______________________
Type: Garment
Defense: 90
Weight: 80
Armor Level: 2
_______________________
Requirement:
Base Level 230
Weapon Level 0 Identifier MD_Geffen_Hood4
Attack 0 Type Armor
MATK 0 Equip Locations Garment
Defense 90 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 80 Min Equip Level 230
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMaxHP,2000;
bonus bMaxHPrate,(.@r/2);
bonus bAspdRate,(.@r/3);
bonus bVariableCastrate,-(.@r/3);
if (.@r>=9) {
   bonus2 bAddSize,Size_All,3;
   bonus2 bMagicAddSize,Size_All,3;
   if (.@r>=11) {
      autobonus "{ bonus2 bHPRegenRate,350,1000; bonus2 bSPRegenRate,20,1000; }",1,10000,BF_WEAPON|BF_MAGIC;
   }
}

Set Script
Ravage Magic Muffler
Magic Protector Robe
bonus bMatk,50;
if (getequiprefinerycnt(EQI_ARMOR) >= 11) {
   bonus bVariableCastrate,-10;
   bonus bMatkRate,5;
}
Ravage Magic Muffler
Anti Conjurer Suit
bonus bBaseAtk,50;
if (getequiprefinerycnt(EQI_ARMOR) >= 11) {
   bonus bAspdRate,10;
   bonus bAtkRate,5;
}