Patent Freedom Stick

Item ID 550081 Name Patent Freedom Stick
A one-handed staff used by any hero regardless of form.
An ancient power has been imbued and it has begun to show its original ability.
It resonates with Ancient Hero's Boots.
_______________________
Indestructible in battle
_______________________
MATK +200
_______________________
For each 2 Refine Levels:
MATK +15
_______________________
For each 3 Refine Levels:
Increases damage of Heaven's Drive by 30%.
_______________________
Refine Level +7:
Increases Magical Damage against enemies of every element by 15%.
Enables the use of Level 5 Psychic Wave.
_______________________
Refine Level +9:
Increases damage of Psychic Wave by 10%
Decreases Variable Casting Time by 10%.
_______________________
Refine Level +11:
Increases Magical Damage with Earth and Neutral element by 10%.
Decreases Variable Casting Time by additional 5%.
_______________________
When equipped with Great Hero's Boots:
INT +10, MATK +7%.
_______________________
Type: One-Handed Staff
Attack: 90
Weight: 100
Weapon Level: 4
_______________________
Requirement:
Base Level 150
Novice
Weapon Level 4 Identifier Up_Freedom_Stick
Attack 90 Type Weapon - Staff
MATK 0 Equip Locations Main Hand
Defense 0 Equippable Jobs Novice, Super novice
Range 1 Equip Gender Both (Male and Female)
Slots 2 Equip Upper None
Weight 100 Min Equip Level 150
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 bMatk,200+15*(.@r/2);
bonus2 bSkillAtk,"WZ_HEAVENDRIVE",30*(.@r/3);
if (.@r>=7) {
   skill "SO_PSYCHIC_WAVE",5;
   bonus2 bMagicAddEle,Ele_All,15;
   if (.@r>=9) {
      bonus bVariableCastrate,-10;
      bonus2 bSkillAtk,"SO_PSYCHIC_WAVE",10;
      if (.@r>=11) {
         bonus2 bMagicAtkEle,Ele_Neutral,10;
         bonus2 bMagicAtkEle,Ele_Earth,10;
         bonus bVariableCastrate,-5;
      }
   }
}

Set Script
Patent Freedom Stick
Great Hero Boots
bonus bMatkRate,7;
bonus bInt,10;
Ring of Unknown Hero (Novice)
Patent Freedom Stick
bonus2 bMagicAddRace,RC_All,8;
if (getequiprefinerycnt(EQI_HAND_R)>=11)
   bonus2 bSkillAtk,"SO_PSYCHIC_WAVE",(readparam(bInt)+readparam(bDex))/12;
[Not For Sale] Ring of Unknown Hero (Novice)
Patent Freedom Stick
bonus2 bMagicAddRace,RC_All,8;
if (getequiprefinerycnt(EQI_HAND_R)>=11)
   bonus2 bSkillAtk,"SO_PSYCHIC_WAVE",(readparam(bInt)+readparam(bDex))/12;