Spell Circuit

Item ID 19249 Name Spell Circuit
The magic circle that imaged the property.
It feels like you can use a powerful magic just to wear it.
_______________________
For each 2 Refine Levels:
MATK +20
_______________________
Refine Level +7:
Decreases Variable Casting Time by 10%.
_______________________
Refine Level +9:
Increases Magical Damage with Neutral and Shadow element by 10%.
_______________________
Refine Level +11:
Increases Magical Damage with Water, Wind, Earth and Fire element by 10%.
_______________________
For each Refine Level above +10:
Decreases Fixed Casting Time by 0.1 second (up to +15).
_______________________
When equipped with Mental Stick:
Every 2 Refine Level of Mental Stick:
Increases damage of Psychic Wave by 5%.
_______________________
When equipped with Kronos:
Every 2 Refine Level of Kronos
Increases damage of Hell Inferno by 10%.
_______________________
When equipped with Mikatsuki or Raksasa Dagger:
Decreases Variable Casting Time as percent equal to Refine Level of Mikatsuki or Raksasa Dagger.
_______________________
Every 2 Refine Level of Mikatsuki or Raksasa Dagger:
Increases damage of Flaming Petals, Freezing Spear and Wind Blade by 5%.
_______________________
Type: Headgear
Defense: 0
Position: Upper
Weight: 10
Armor Level: 1
_______________________
Requirement: None
Weapon Level 0 Identifier Spell_Circuit
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 None
NPC Buy 20 Max Equip Level None
NPC Sell 10 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMatk,(.@r/2)*20;
if (.@r>6) {
   bonus bVariableCastrate,-10;
}
if (.@r>8) {
   bonus2 bMagicAtkEle,Ele_Dark,10;
   bonus2 bMagicAtkEle,Ele_Neutral,10;
}
if (.@r>10) {
   bonus2 bMagicAtkEle,Ele_Water,10;
   bonus2 bMagicAtkEle,Ele_Wind,10;
   bonus2 bMagicAtkEle,Ele_Earth,10;
   bonus2 bMagicAtkEle,Ele_Fire,10;
}
.@val = max(min(.@r-15,5),0);
bonus bFixedCast,-.@val*100;

Set Script
Spell Circuit
Mental Stick
.@r_weapon = getequiprefinerycnt(EQI_HAND_R);
bonus2 bSkillAtk,"SO_PSYCHIC_WAVE",5*(.@r_weapon/2);
Spell Circuit
Kronos
.@r_weapon = getequiprefinerycnt(EQI_HAND_R);
bonus2 bSkillAtk,"WL_HELLINFERNO",10*(.@r_weapon/2);
Spell Circuit
Nachal Sword
Mikacheuki
.@r = getequiprefinerycnt(EQI_HAND_R)+getequiprefinerycnt(EQI_HAND_L);
bonus bVariableCastrate,-.@r;
bonus2 bSkillAtk,"NJ_KOUENKA",5*(.@r/2);
bonus2 bSkillAtk,"NJ_HYOUSENSOU",5*(.@r/2);
bonus2 bSkillAtk,"NJ_HUUJIN",5*(.@r/2);