Elegant Shadow Weapon

Item ID 24363 Name Elegant Shadow Weapon
A pair of gloves that can draw the wearer's potential ability.
_______________________
MaxHP +100
_______________________
For each 2 Refine Levels:
MaxHP +150
_______________________
When equipped with Elegant Shadow Earring and Elegant Shadow Pendant:
1% chance to restore 100 HP per second for 5 seconds when dealing magical attacks.
_______________________
Total Refine Level of entire set at least +15:
Increases trigger rate by 1%.
_______________________
Total Refine Level of entire set at least +25:
Increases restored HP by 150.
_______________________
Type: Shadow Weapon
_______________________
Requirement: None
Weapon Level 0 Identifier S_Elegant_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 1
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 bMaxHP,100+((.@r/2)*150);

Set Script
Elegant Shadow Weapon
Elegant Shadow Earring
Elegant Shadow Pendant
.@r = getequiprefinerycnt(EQI_SHADOW_WEAPON) + getequiprefinerycnt(EQI_SHADOW_ACC_R) + getequiprefinerycnt(EQI_SHADOW_ACC_L);
.@rate = 10 + 10*(.@r/15);
if (.@r >= 25) {
   .@hp = 250;
}
else {
   .@hp = 100;
}
autobonus "{ bonus2 bHPRegenRate,"+.@hp+",1000; }",.@rate,5000,BF_MAGIC;