Maximum Mammoth Shadow Earring

Item ID 24681 Name Maximum Mammoth Shadow Earring
A sacred earring which is believed to protect its wearer. It also draws the wearer's potential abilities.
_______________________
ATK +3%
_______________________
For each 2 Refine Levels:
Increases melee and ranged phsyical damage by 1%.
_______________________
Refine Level +10:
MaxHP +3%
_______________________
When equipped with Maximum Mammoth Shadow Pendant:
ATK +2%

Total Refine Level of entire set at least +18:
Prevents knock-back effect.

Total Refine Level of entire set at least +20:
Increases Physical Damage against enemies of against enemies of all elements by 12%.
_______________________
Type: Shadow Earring
_______________________
Requirement: None
Weapon Level 0 Identifier S_M_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 bAtkRate,3;
bonus bLongAtkRate,(.@r/2);
bonus bShortAtkRate,(.@r/2);
if (.@r>=10) {
   bonus bMaxHPrate,3;
}

Set Script
Maximum Mammoth Shadow Earring
Maximum Mammoth Shadow Pendant
.@sum = getequiprefinerycnt(EQI_SHADOW_ACC_R)+getequiprefinerycnt(EQI_SHADOW_ACC_L);
bonus bAtkRate,2;
if (.@sum >= 18) {
   bonus bNoKnockback;
   if (.@sum >= 20) {
      bonus2 bAddEle,Ele_All,12;
   }
}