Unpredictable Magic Cloak

Item ID 480175 Name Unpredictable Magic Cloak
None
Weapon Level 0 Identifier Changeable_Magic_Cape
Attack 0 Type Armor
MATK 0 Equip Locations Garment
Defense 40 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 20 Min Equip Level 1
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMatk,4*.@r;
bonus2 bMagicAtkEle,Ele_All,2*(.@r/3);
if (.@r>=7)
   bonus bAspdRate,10;
if (.@r>=9)
   bonus bMatkRate,10;
if (.@r>=11) {
   bonus3 bAutoSpell,"MG_THUNDERSTORM",5,50;
   bonus3 bAutoSpell,"WZ_HEAVENDRIVE",5,50;
}
if (getskilllv("SC_AUTOSHADOWSPELL") == 10) {
   bonus bMatk,150;
   bonus2 bMagicAddEle,Ele_All,10;
   if (.@r>=9) {
       bonus3 bAutoSpell,"WL_HELLINFERNO",3,50;
       bonus3 bAutoSpell,"SO_DIAMONDDUST",3,50;
   }
   if (.@r>=11) {
       bonus3 bAutoSpell,"SO_EARTHGRAVE",3,50;
       bonus3 bAutoSpell,"WL_CHAINLIGHTNING",3,50;
   }
   if (.@r>=13) {
       bonus2 bIgnoreMdefClassRate,Class_Boss,15;
       bonus2 bIgnoreMdefClassRate,Class_Normal,15;
   }
}