Dimensions Night Rifle

Item ID 810040 Name Dimensions Night Rifle
A rifle imbued with rune magic.
_______________________
Critical +5
Increases damage of Spiral Shooting by 15%.
_______________________
For each 2 Refine Levels:
ATK +25
ATK +1%
_______________________
For each 3 Refine Levels:
Increases damage of Spiral Shooting by additional 5%.
_______________________
Refine Level +7:
Increases Critical Damage by 20%.
_______________________
Refine Level +9:
Critical +15
C.RATE +5
_______________________
Refine Level +11:
Increases damage of Spiral Shooting by additional 15%.
_______________________
When equipped with Time Dimensions Rune Crown (Night Watch):
Increases damage of Only One Bullet by 45%.
Increases Ranged Physical Damage by 15%.

If the Weapon and Headgear's Grade are A or higher:
Increases damage of Spiral Shooting by additional (the sum of refine level)%.

Casting Only One Bullet has a chance to auto cast Level 1 Spiral Shooting.
(If you learned a higher Level, it will auto cast that Level instead.)
_______________________
[Bonus by Grade]
[Grade D]: P.ATK +5
[Grade C]: Damage of Spiral Shooting +15%.
[Grade B]: Ranged Physical Damage +10%.
[Grade A]: P.ATK +3 per 2 Refine Levels.
_______________________
Type: Rifle
Attack: 320
Weight: 230
Weapon Level: 5
_______________________
Requirement:
Base Level 250
Night Watch
Weapon Level 5 Identifier Dimen_NW_Rifle
Attack 320 Type Weapon - Rifle
MATK 0 Equip Locations Two-Handed
Defense 0 Equippable Jobs Rebellion
Range 9 Equip Gender Both (Male and Female)
Slots 2 Equip Upper None
Weight 230 Min Equip Level 250
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@g = getenchantgrade();
.@r = getrefine();
bonus bCritical,5;
bonus2 bSkillAtk,"NW_SPIRAL_SHOOTING",15+5*(.@r/3);
bonus bAtkRate,(.@r/2);
bonus bBaseAtk,25*(.@r/2);
if (.@r>=7) {
   bonus bCritAtkRate,20;
   if (.@r>=9) {
      bonus bCRate,5;
      bonus bCritical,15;
      if (.@r>=11) {
         bonus2 bSkillAtk,"NW_SPIRAL_SHOOTING",15;
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus bPAtk,5;
   if (.@g>=ENCHANTGRADE_C) {
      bonus2 bSkillAtk,"NW_SPIRAL_SHOOTING",15;
      if (.@g>=ENCHANTGRADE_B) {
         bonus bLongAtkRate,10;
         if (.@g>=ENCHANTGRADE_A) {
            bonus bPAtk,3*(.@r/2);
         }
      }
   }
}

Set Script
Dimensions Night Rifle
Time Dimensions Rune Crown (Night Watch)
bonus bLongAtkRate,15;
bonus2 bSkillAtk,"NW_ONLY_ONE_BULLET",45;
if (getenchantgrade(EQI_HAND_R)>=ENCHANTGRADE_A && getenchantgrade(EQI_HEAD_TOP)>=ENCHANTGRADE_A) {
   .@sum = getequiprefinerycnt(EQI_HAND_R)+getequiprefinerycnt(EQI_HEAD_TOP);
   bonus2 bSkillAtk,"NW_SPIRAL_SHOOTING",.@sum;
   if (getskilllv("NW_SPIRAL_SHOOTING") > 0) {
      bonus4 bAutoSpellOnSkill,"NW_ONLY_ONE_BULLET","NW_SPIRAL_SHOOTING",getskilllv("NW_SPIRAL_SHOOTING"),1000;
   }
}