Great Magician's Ceremonial Crown-LT

Item ID 400263 Name Great Magician's Ceremonial Crown-LT
It is said that a certain great mage prepared it in a robe and used it.
It has been modified to suit the upgraded OS weapons.
_______________________
For each 2 Refine Levels:
MATK +20
_______________________
Refine Level +7:
Decreases Variable Casting Time by 15%.
_______________________
Refine Level +9:
Increases Magical Damage with every element by 20%.
_______________________
Refine Level +11:
Increases Magical Damage against monsters of Small and Medium sized enemies by 20%.
Decreases Fixed Casting Time by 0.2 seconds.
_______________________
When equipped with Cannon Rapier-OSAD:
MATK +70

For each 2 Refine Levels of Cannon Rapier-OSAD:
Increases damage of Hell Inferno by 7%.
_______________________
When equipped with Rutilus Stick-OSAD:
MATK +70

For each 2 Refine Levels of Rutilus Stick-OSAD:
Increases damage of Comet by 5%.
Increases damage of Crimson Rock^ by 7%.
_______________________
When equipped with Kuroiro-OSAD:
Increases Magical Damage with Water, Wind and Fire element by 7%.

For each 2 Refine Levels of Kuroiro-OSAD:
Increases damage of Flaming Petals, Freezing Spear and Wind Blade by 5%.
_______________________
Type: Headgear
Defense: 0
Position: Upper
Weight: 10
Armor Level: 2
_______________________
Requirement:
Base Level 170
Weapon Level 0 Identifier Large_Sorcerer_Crown_LT
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 0 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 10 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 bMatk,20*(.@r/2);
if (.@r>=7) {
   bonus bVariableCastrate,-15;
   if (.@r>=9) {
      bonus2 bMagicAtkEle,Ele_All,20;
      if (.@r>=10) {
         bonus bFixedCast,-200;
         bonus2 bMagicAddSize,Size_Small,20;
         bonus2 bMagicAddSize,Size_Medium,20;
      }
   }
}

Set Script
Great Magician's Ceremonial Crown-LT
Cannon Rapier-OSAD
.@r_weapon = getequiprefinerycnt(EQI_HAND_R);
bonus bMatk,70;
bonus2 bSkillAtk,"WL_HELLINFERNO",7*(.@r_weapon/2);
Great Magician's Ceremonial Crown-LT
Kuroiro-OSAD
.@r_weapon = getequiprefinerycnt(EQI_HAND_R);
.@r_shield = getequiprefinerycnt(EQI_HAND_L);
if (getequipid(EQI_HAND_L) == 510066) {
   .@r_left = .@r_shield/2;
}
if (getequipid(EQI_HAND_R) == 510066) {
   .@r_right = .@r_weapon/2;
}
if (getequipid(EQI_HAND_L) == 510066 && getequipid(EQI_HAND_R) == 510066) {
   .@val = 14;
}
else {
   .@val = 7;
}
bonus2 bMagicAtkEle,Ele_Fire,.@val;
bonus2 bMagicAtkEle,Ele_Water,.@val;
bonus2 bMagicAtkEle,Ele_Wind,.@val;
bonus2 bSkillAtk,"NJ_KOUENKA",5*(.@r_left+.@r_right);
bonus2 bSkillAtk,"NJ_HYOUSENSOU",5*(.@r_left+.@r_right);
bonus2 bSkillAtk,"NJ_HUUJIN",5*(.@r_left+.@r_right);
Great Magician's Ceremonial Crown-LT
Rutilus Stick-OSAD
.@r_weapon = getequiprefinerycnt(EQI_HAND_R);
bonus bMatk,70;
bonus2 bSkillAtk,"WL_CRIMSONROCK",7*(.@r_weapon/2);
bonus2 bSkillAtk,"WL_COMET",5*(.@r_weapon/2);