Auto Spell Shadow Weapon

Item ID 24725 Name Auto Spell Shadow Weapon
A pair of gloves that can draw the wearer's potential ability.
_______________________
ATK +15
_______________________
For each 2 Refine Levels:
ATK +1
_______________________
Refine Level +9:
Physical melee attacks have a 7% chance to auto-cast Level 7 Bash.
_______________________
Refine Level +10:
Physical melee attacks have a 10% chance to auto-cast Level 10 Bash.
_______________________
When equipped with Auto Spell Shadow Earring and Auto Spell Shadow Pendant:
ATK +1%,

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

Total Refine Level of entire set at least +27:
Physical melee attacks have a 8% chance to auto-cast Level 10 Sonic Blow.
_______________________
Type: Shadow Weapon
_______________________
Requirement: None
Weapon Level 0 Identifier S_AutoSpell_Weapon
Attack 0 Type Shadow Equipment
MATK 0 Equip Locations Shadow Weapon
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 bBaseAtk,.@r;
bonus bMatk,.@r;
bonus bBaseAtk,15+(.@r/2);
if (.@r==9)
   bonus3 bAutoSpell,"SM_BASH",7,70;
else if (.@r>9)
   bonus3 bAutoSpell,"SM_BASH",10,100;

Set Script
Auto Spell Shadow Weapon
Auto Spell Shadow Pendant
Auto Spell Shadow Earring
.@sum = getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_L)+getequiprefinerycnt(EQI_SHADOW_ACC_R);
bonus bAtkRate,1;
if (.@sum >= 27) {
   bonus3 bAutoSpell,"AS_SONICBLOW",10,80;
}
else if (.@sum >= 21) {
   bonus3 bAutoSpell,"AS_SONICBLOW",7,40;
}