Gemstone Shadow Weapon II

Item ID 24335 Name Gemstone Shadow Weapon II
A pair of gloves that can draw the wearer's potential ability.
_______________________
HIT +5
_______________________
Decreases SP Consumption by 2%.
_______________________
Refine Level +7:
Decreases SP Consumption by additional 1%.
_______________________
When equipped with Gemstone Shadow Shield II and Gemstone Shadow Earring II:
All Basic Stats +1
_______________________
Total Refine Level of entire set at least +25:
Nullifies gemstone requirement of certain skills.
Increases SP Consumption by 70%.
_______________________
For each Refine Levels of entire set:
Decreases SP Consumption by additional 1%.
_______________________
Type: Shadow Weapon
_______________________
Requirement: None
Weapon Level 0 Identifier S2_Gemstone_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 bHit,5;
if (.@r >= 7) {
   bonus bUseSPrate,-3;
}
else {
   bonus bUseSPrate,-2;
}

Set Script
Gemstone Shadow Earring II
Gemstone Shadow Weapon II
Gemstone Shadow Shield II
bonus bAllStats,1;
.@r = getequiprefinerycnt(EQI_SHADOW_ACC_R) + getequiprefinerycnt(EQI_SHADOW_WEAPON) + getequiprefinerycnt(EQI_SHADOW_SHIELD);
if (.@r >= 25) {
   bonus bNoGemStone;
   bonus bUseSPrate,70-.@r;
}