Tension Shadow Earring

Item ID 24361 Name Tension Shadow Earring
A sacred earring which is believed to protect its wearer. It also draws the wearer's potential abilities.
_______________________
MaxHP +1%
ATK +5
_______________________
For each 2 Refine Levels:
MaxHP +50
_______________________
When equipped with Tension Shadow Weapon and Tension Shadow Pendant:
2% chance to restore 100 HP per second for 5 seconds when dealing physical attacks.
_______________________
Total Refine Level of entire set at least +10:
Increases trigger rate by 1%.
_______________________
Total Refine Level of entire set at least +25:
Increases restored HP by 400.
_______________________
Type: Shadow Earring
_______________________
Requirement: None
Weapon Level 0 Identifier S_Tension_Earring
Attack 0 Type Shadow Equipment
MATK 0 Equip Locations Shadow Accessory Right (Earring)
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 bMaxHPrate,1;
bonus bBaseAtk,5;
bonus bMaxHP,.@r*10+50*(.@r/2);

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