Auto Spell Shadow Shield

Item ID 24722 Name Auto Spell Shadow Shield
A small shield worn on the arm for additional defense. Needs a complete set to have bonus effect.
_______________________
MATK +15
_______________________
For each 2 Refine Levels:
MATK +1
_______________________
Refine Level +9:
Physical melee attacks have a 7% chance to auto-cast Level 7 Napalm Beat.
_______________________
Refine Level +10:
Physical melee attacks have a 10% chance to auto-cast Level 10 Napalm Beat.
_______________________
When equipped with Auto Spell Shadow Armor and Auto Spell Shadow Shoes:
MATK +1%

Total Refine Level of entire set at least +21:
Physical melee attacks have a 4% chance to auto-cast Level 3 Napalm Vulcan.

Total Refine Level of entire set at least +27:
Physical melee attacks have a 8% chance to auto-cast Level 5 Napalm Vulcan.
_______________________
Type: Shadow Shield
_______________________
Requirement: None
Weapon Level 0 Identifier S_AutoSpell_Shield
Attack 0 Type Shadow Equipment
MATK 0 Equip Locations Shadow Shield
Defense 0 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 0 Equip Upper None
Weight 0 Min Equip Level None
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;
bonus bMatk,15+(.@r/2);
if (.@r==9)
   bonus3 bAutoSpell,"MG_NAPALMBEAT",7,70;
else if (.@r>9)
   bonus3 bAutoSpell,"MG_NAPALMBEAT",10,100;

Set Script
Auto Spell Shadow Shield
Auto Spell Shadow Armor
Auto Spell Shadow Shoes
.@sum = getequiprefinerycnt(EQI_SHADOW_ARMOR)+getequiprefinerycnt(EQI_SHADOW_SHOES)+getequiprefinerycnt(EQI_SHADOW_SHIELD);
bonus bMatkRate,1;
if (.@sum >= 27) {
   bonus3 bAutoSpell,"HW_NAPALMVULCAN",5,80;
}
else if (.@sum >= 21) {
   bonus3 bAutoSpell,"HW_NAPALMVULCAN",3,40;
}