Time Gap Guardian Spear

Item ID 530060 Name Time Gap Guardian Spear
A spear filled with magical power flowing from the gap of time.
_______________________
Critical +5
_______________________
Increases damage of Radiant Spear by 15%.
_______________________
For each 2 Refine Levels:
ATK +25
ATK +1%
_______________________
For each 3 Refine Levels:
Increases damage of Radiant Spear by additional 5%.
_______________________
Refine Level +7:
Increases Critical Damage by 25%.
_______________________
Refine Level +9:
Critical +15, C.RATE +5.
_______________________
Refine Level +11:
Increases damage of Radiant Spear by additional 15%.
_______________________
When equipped with Time Dimensions Rune Crown (Imperial Guard):
Increases damage of Cannon Spear by 45%.
Increases Ranged Physical Damage by 20%.

If the Weapon and Headgear's Grade are A or higher:
Increases damage of Cannon Spear by additional (2 times the sum of refine level)%.
When using Radiant Spear, auto-cast Cannon Spear at the maximum learned level.
(The user must have learned Cannon Spear at Level 1 or higher for auto-casting).
_______________________
[Bonus by Grade]
[Grade D]: P.ATK +5
[Grade C]: Damage of Radiant Spear +15%.
[Grade B]: Ranged Physical Damage +10%.
[Grade A]: P.ATK +3 per 2 Refine Levels.
_______________________
Type: One-Handed Spear
Attack: 240
Weight: 270
Weapon Level: 5
_______________________
Requirement:
Base Level 250
Imperial Guard
Weapon Level 5 Identifier Time_Gap_Spear_IG
Attack 240 Type Weapon - One-Handed Spear
MATK 0 Equip Locations Main Hand
Defense 0 Equippable Jobs Crusader
Range 3 Equip Gender Both (Male and Female)
Slots 2 Equip Upper None
Weight 270 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,"IG_RADIANT_SPEAR",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,"IG_RADIANT_SPEAR",15;
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus bPAtk,5;
   if (.@g>=ENCHANTGRADE_C) {
      bonus2 bSkillAtk,"IG_RADIANT_SPEAR",15;
      if (.@g>=ENCHANTGRADE_B) {
         bonus bLongAtkRate,10;
         if (.@g>=ENCHANTGRADE_A) {
            bonus bPAtk,3*(.@r/2);
         }
      }
   }
}

Set Script
Time Gap Guardian Spear
Time Dimensions Rune Crown (Imperial Guard)
bonus bLongAtkRate,20;
bonus2 bSkillAtk,"LG_CANNONSPEAR",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,"LG_CANNONSPEAR",2*.@sum;
   if (getskilllv("LG_CANNONSPEAR") > 0) {
      bonus4 bAutoSpellOnSkill,"IG_RADIANT_SPEAR","LG_CANNONSPEAR",getskilllv("LG_CANNONSPEAR"),1000;
   }
}