Gemstone Shadow Weapon

Item ID 24087 Name Gemstone Shadow Weapon
A pair of gloves that can draw the wearer's potential ability.
_______________________
HIT +5
_______________________
For each 2 Refine Levels:
HIT +1
_______________________
When equipped with Gemstone Shadow Armor, Gemstone Shadow Shield, Gemstone Shadow Shoes, Gemstone Shadow Earring and Gemstone Shadow Pendant:
All Basic Stats +1
_______________________
Total Refine Level of entire set at least +45:
Nullifies gemstone from the requirement of skills.
Increases SP Consumption by 100%.
_______________________
For each Refine Level of entire set:
Decreases SP Consumption by 1%.
_______________________
Type: Shadow Weapon
_______________________
Requirement: None
Weapon Level 0 Identifier S_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+(.@r/2);

Set Script
Gemstone Shadow Armor
Gemstone Shadow Shoes
Gemstone Shadow Shield
Gemstone Shadow Weapon
Gemstone Shadow Earring
Gemstone Shadow Pendant
bonus bAllStats,1;
.@r = getequiprefinerycnt(EQI_SHADOW_ARMOR)+getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_SHIELD)+getequiprefinerycnt(EQI_SHADOW_SHOES)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L);
if (.@r >= 45) {
   bonus bNoGemStone;
   bonus bUseSPrate,100-.@r;
}
Gemstone Shadow Armor
Gemstone Shadow Shoes
Gemstone Shadow Shield
Gemstone Shadow Weapon
Gemstone Shadow Pendant
Gemstone Shadow Earring II
.@r = getequiprefinerycnt(EQI_SHADOW_ARMOR)+getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_SHIELD)+getequiprefinerycnt(EQI_SHADOW_SHOES)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L);
bonus bAllStats,1;
if (.@r >= 45) {
   bonus bNoGemStone;
   bonus bUseSPrate,(100-.@r);
}