Royal Foxtail

Item ID 26172 Name Royal Foxtail
A mysterious foxtail found in the Glastheim Castle.
It's an ordinary weapon with nothing special, but it is influenced by the magical power of Himelmez.
_______________________
Indestructible in battle
_______________________
MATK +350
MATK +5%
_______________________
For each Refine Level:
ATK +4
MATK +4
_______________________
Refine Level +9:
Increases damage of Catnip Meteor and Picky Peck by 20%.
Decreases After Skill Delay by 12%.
_______________________
Refine Level +11:
Increases Physical Damage against enemies of Undead and Angel race by 20%.
_______________________
When equipped with King Schmidt's Suit and King Schmidt's Manteau:
ATK +30, MATK +30
Physical attacks have a chance to increase Ranged Physical Damage by additional 10% for 10 seconds.
Magical attacks have a chance to increase MATK by additional 10% for 10 seconds.
_______________________
Total Refine Level of entire set at least +30:
Increases Damage against Holy and Undead elemental by 20%.
_______________________
Type: Staff
Attack: 275
Weight: 120
Weapon Level: 4
_______________________
Requirement:
Base Level 170
Summoner (Doram)
Weapon Level 4 Identifier R_Foxtail_rod
Attack 275 Type Weapon - Staff
MATK 350 Equip Locations Main Hand
Defense 0 Equippable Jobs Summoner
Range 1 Equip Gender Both (Male and Female)
Slots 2 Equip Upper None
Weight 120 Min Equip Level 170
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMatkRate,5;
bonus bUnbreakableWeapon;
bonus bMatk,4*.@r;
bonus bBaseAtk,4*.@r;
if (.@r>=9) {
   bonus2 bSkillAtk,"SU_CN_METEOR",20;
   bonus2 bSkillAtk,"SU_PICKYPECK",20;
}
if (.@r>=11) {
   bonus2 bAddRace,RC_Undead,20;
   bonus2 bAddRace,RC_Angel,20;
}

Set Script
Royal Foxtail
King Schmidt's Suit
King Schmidt's Manteau
.@sum = getequiprefinerycnt(EQI_HAND_R)+getequiprefinerycnt(EQI_ARMOR)+getequiprefinerycnt(EQI_GARMENT);
autobonus "{ bonus bMatkRate,10; }",1,10000,BF_MAGIC;
autobonus "{ bonus bLongAtkRate,10; }",1,10000,BF_WEAPON;
bonus bMatk,30;
bonus bBaseAtk,30;
if (.@sum >= 30) {
   bonus2 bMagicAddEle,Ele_Undead,20;
   bonus2 bAddEle,Ele_Undead,20;
   bonus2 bMagicAddEle,Ele_Holy,20;
   bonus2 bAddEle,Ele_Holy,20;
}
Heaven's Majesty
Royal Foxtail
bonus bAspdRate,15;
bonus2 bSubRace,RC_Player_Human,10;
skill "PA_GOSPEL",1;