Cannon Rapier-OSAD

Item ID 500051 Name Cannon Rapier-OSAD
A upgraded version of the sword that causes a strong explosion by activating the detonation system built into the sword.
_______________________
MATK +150
_______________________
Random chance to auto cast Fire Bolt and Fire Ball when dealing physical damage, skill level is equal to Refine Level (up to Refine Level 10).
_______________________
Refine Level +7:
Increases Attack Speed (decreases After Attack Delay by 7%).
_______________________
Refine Level +9:
Increases damage of Fire Bolt and Fire Ball by 60%.
_______________________
Refine Level +11:
Random chance to auto cast Level 4 Hell Inferno when dealing physical damage.
_______________________
Type: One-Handed Sword
Attack: 160
Weight: 80
Weapon Level: 5
_______________________
Requirement:
Base Level 170
Novice, Swordsman, Thief and Merchant classes
Weapon Level 5 Identifier Cannon_Rapier_AD
Attack 160 Type Weapon - One-Handed Sword
MATK 150 Equip Locations Main Hand
Defense 0 Equippable Jobs Novice, Super novice, Swordman, Merchant, Thief, Knight, Blacksmith, Assassin, Crusader, Rogue, Alchemist
Range 1 Equip Gender Both (Male and Female)
Slots 2 Equip Upper None
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();
bonus3 bAutoSpell,"MG_FIREBOLT",min(.@r,10),80;
bonus3 bAutoSpell,"MG_FIREBALL",min(.@r,10),80;
if (.@r>=7) {
   bonus bAspdRate,10;
   if (.@r>=9) {
      bonus2 bSkillAtk,"MG_FIREBOLT",60;
      bonus2 bSkillAtk,"MG_FIREBALL",60;
      if (.@r>=11) {
         bonus3 bAutoSpell,"WL_HELLINFERNO",4,40;
      }
   }
}

Set Script
Scorpio Celestial Coronet-LT
Cannon Rapier-OSAD
.@r_weapon = getequiprefinerycnt(EQI_HAND_R);
bonus2 bSkillCooldown,"LG_RAYOFGENESIS",-1000;
bonus2 bSkillAtk,"LG_RAYOFGENESIS",7*(.@r_weapon/2);
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);