Royal Magician Staff

Item ID 2060 Name Royal Magician Staff
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 +270
MATK +5%
_______________________
For each Refine Level:
MATK +5
_______________________
Refine Level +9:
Increases damage of Chain Lightning and Earth Strain 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 Wind and Earth 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_Staff
Attack 100 Type Weapon - Two-Handed Staff
MATK 270 Equip Locations Two-Handed
Defense 0 Equippable Jobs Wizard
Range 1 Equip Gender Both (Male and Female)
Slots 2 Equip Upper Third, Third Upper, Third Baby
Weight 150 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 bUnbreakableWeapon;
bonus bMatkRate,5;
bonus bMatk,5*.@r;
if (.@r >= 9) {
   bonus2 bSkillAtk,"WL_CHAINLIGHTNING_ATK",20;
   bonus2 bSkillAtk,"WL_EARTHSTRAIN",20;
}
if (.@r >= 11) {
   bonus2 bMagicAddRace,RC_Undead,20;
   bonus2 bMagicAddRace,RC_Angel,20;
}

Set Script
Royal Magician Staff
King Schmidt's Suit
King Schmidt's Manteau
.@sum = getequiprefinerycnt(EQI_HAND_R)+getequiprefinerycnt(EQI_ARMOR)+getequiprefinerycnt(EQI_GARMENT);
autobonus "{ bonus2 bMagicAtkEle,Ele_Earth,10; bonus2 bMagicAtkEle,Ele_Wind,10; }",1,10000,BF_MAGIC;
bonus bMatk,30;
if (.@sum >= 30) {
   bonus2 bMagicAddEle,Ele_Undead,20;
   bonus2 bMagicAddEle,Ele_Holy,20;
}