Mammoth Shadow Earring

Item ID 24672 Name Mammoth Shadow Earring
A sacred earring which is believed to protect its wearer. It also draws the wearer's potential abilities.
_______________________
Increases Critical Damage by 1%.
_______________________
For each 2 Refine Levels:
Increases Critical Damage by additional 1%.
_______________________
Refine Level +9:
Increases Melee and Ranged Physical Damage by 3%.
_______________________
When equipped with Mammoth Shadow Armor, Mammoth Shadow Shield, Mammoth Shadow Shoes, Mammoth Shadow Weapon, Mammoth Shadow Earring and Mammoth Shadow Pendant:
ATK +1%

Total Refine Level of entire set at least +45:
Prevents knock-back effect.
_______________________
Type: Shadow Pendant
_______________________
Requirement: None
Weapon Level 0 Identifier S_Mammoth_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 None
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMaxHP,.@r*10;
bonus bCritAtkRate,1+(.@r/2);
if (.@r>=9) {
   bonus bLongAtkRate,3;
   bonus bShortAtkRate,3;
}

Set Script
Mammoth Shadow Earring
Mammoth Shadow Armor
Mammoth Shadow Shoes
Mammoth Shadow Pendant
Mammoth Shadow Weapon
Mammoth Shadow Shield
bonus bAtkRate,1;
if (getequiprefinerycnt(EQI_SHADOW_ARMOR)+getequiprefinerycnt(EQI_SHADOW_SHIELD)+getequiprefinerycnt(EQI_SHADOW_SHOES)+getequiprefinerycnt(EQI_SHADOW_WEAPON)+getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L) >= 45) {
   bonus bNoKnockback;
}