Bow Master Shadow Armor

Item ID 1270009 Name Bow Master Shadow Armor
A suit of armor worn on top of normal armor for additional defense. Needs a complete set to have bonus effect.
_______________________
ATK +3%, ATK +7.
_______________________
For each 3 Refine Levels:
Increases Ranged Physical Damage by 2%.
_______________________
Refine Level +10:
P.ATK +3.
_______________________
When equipped with Bow Master Shadow Shoes:
P.ATK +2.

Total Refine Level of entire set is at least +15:
MaxHP +3%.
Increases Physical Damage against enemies of every element by 5%.

Total Refine Level of entire set is at least +18:
Ignores physical defense of every race, except Players, by 50%.
_______________________
When equipped with Bow Master Shadow Shoes and Master Shadow Shield:
Increases Physical Damage against enemies of every size by 5%.
P.ATK +2.

Total Refine Level of entire set is at least +27:
Ignores physical resistance of every race, except Players, by 10%.
_______________________
[Shadow Exclusive Magic Book]itemmall,41,63,0,100,0,0 can grant Random Options with 2 Shadow Essences to it.
_______________________
Type: Shadow Armor
_______________________
Requirement:
Base Level 200
Weapon Level 0 Identifier S_Bow_M_Armor
Attack 0 Type Shadow Equipment
MATK 0 Equip Locations Shadow Armor
Defense 0 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 0 Equip Upper None
Weight 0 Min Equip Level 200
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 bBaseAtk,7;
bonus bLongAtkRate,2*(.@r/3);
if (.@r>=10) {
   bonus bPAtk,3;
}

Set Script
Bow Master Shadow Armor
Master Shadow Shield
Bow Master Shadow Shoes
.@sum = getequiprefinerycnt(EQI_SHADOW_ARMOR)+getequiprefinerycnt(EQI_SHADOW_SHIELD)+getequiprefinerycnt(EQI_SHADOW_SHOES);
bonus2 bAddSize,Size_All,5;
bonus bPAtk,2;
if (.@sum>=27) {
   bonus2 bIgnoreResRaceRate,RC_All,10;
   bonus2 bIgnoreResRaceRate,RC_Player_Human,-10;
   bonus2 bIgnoreResRaceRate,RC_Player_Doram,-10;
}
Bow Master Shadow Armor
Bow Master Shadow Shoes
.@sum = getequiprefinerycnt(EQI_SHADOW_ARMOR)+getequiprefinerycnt(EQI_SHADOW_SHOES);
bonus bPAtk,2;
if (.@sum>=15) {
   bonus2 bAddEle,Ele_All,5;
   bonus bMaxHPrate,3;
   if (.@sum>=18) {
      bonus2 bIgnoreDefRaceRate,RC_All,50;
      bonus2 bIgnoreDefRaceRate,RC_Player_Human,-50;
      bonus2 bIgnoreDefRaceRate,RC_Player_Doram,-50;
   }
}