Royal Magician Wand

Item ID 26166 Name Royal Magician Wand
A ceremonial staff used by the Glastheim Mages.
It's an ordinary weapon with nothing special, but it is influenced by the magical power of Himelmez.
_______________________
Indestructible in battle
_______________________
MATK +180
_______________________
Increases Magical Damage with Fire element by 5%.
_______________________
For each Refine Level:
MATK +4
_______________________
Refine Level +9:
Increases damage of Hell Inferno and Crimson Rock by 20%.
_______________________
Refine Level +11:
Increases Magical Damage against monsters of Undead and Angel race by 20%.
_______________________
When equipped with King Schmidt's Suit and King Schmidt's Manteau:
MATK +30
Magical attacks have a chance to increase Magical Damage with Fire and Shadow element by 10% for 10 seconds.
_______________________
Total Refine Level of entire set at least +30:
Increases Magical Damage against Holy and Undead elemental by 20%.
_______________________
Type: Two-Handed Staff
Attack: 100
Weight: 150
Weapon Level: 4
_______________________
Requirement:
Base Level 170
Warlock
Weapon Level 4 Identifier R_Magician_Wand
Attack 80 Type Weapon - Staff
MATK 180 Equip Locations Main Hand
Defense 0 Equippable Jobs Wizard
Range 1 Equip Gender Both (Male and Female)
Slots 2 Equip Upper Third, Third Upper, Third Baby
Weight 80 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();
bonus2 bMagicAtkEle,Ele_Fire,5;
bonus bUnbreakableWeapon;
bonus bMatk,4*.@r;
if (.@r>=9) {
   bonus2 bSkillAtk,"WL_HELLINFERNO",20;
   bonus2 bSkillAtk,"WL_CRIMSONROCK",20;
}
if (.@r>=11) {
   bonus2 bMagicAddRace,RC_Undead,20;
   bonus2 bMagicAddRace,RC_Angel,20;
}

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