Magic Compose Shadow Armor

Item ID 24334 Name Magic Compose Shadow Armor
A suit of armor worn on top of normal armor for additional defense. Needs a complete set to have bonus effect.
_______________________
Refine Level +2:
Random chance to auto-cast Level (RefineLv/2) Lightning Bolt, Cold Bolt, Fire Bolt or Earth Spike when dealing melee physical attacks.
_______________________
For each Refine Level:
Increases the chance by 0.1%.
_______________________
Type: Shadow Armor
_______________________
Requirement: None
Weapon Level 0 Identifier S_MagicCompose_Armor
Attack 0 Type Shadow Equipment
MATK 0 Equip Locations Shadow Armor
Defense 0 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 0 Equip Upper None
Weight 0 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 bMaxHP,.@r*10;
if (.@r > 1) {
   .@val = .@r/2;
   bonus3 bAutoSpell,"MG_COLDBOLT",.@val,(5+.@r);
   bonus3 bAutoSpell,"MG_COLDBOLT",.@val,(5+.@r);
   bonus3 bAutoSpell,"MG_FIREBOLT",.@val,(5+.@r);
   bonus3 bAutoSpell,"MG_LIGHTNINGBOLT",.@val,(5+.@r);
   bonus3 bAutoSpell,"WZ_EARTHSPIKE",.@val,(5+.@r);
}