Poenitentia Catapulta

Item ID 630009 Name Poenitentia Catapulta
A spear containing the pain of bereavement.
_______________________
ATK +10%
_______________________
Increases damage of Madness Crusher by 10%.
_______________________
For each 2 Refine Levels:
Increases damage of Hundred Spear by 3%.
_______________________
Refine Level +7:
Decreases Variable Casting Time by 10%.
_______________________
Refine Level +9:
Increases damage of Hundred Spear by additional 25%.
_______________________
Refine Level +11:
Decreases Hundred Spear skill cooldown by 2 seconds.
_______________________
[Bonus by Grade]
[Grade D]: Damage of Madness Crusher +5%.
[Grade C]: Damage of Madness Crusher +8%, P.ATK +1.
[Grade B]: Damage of Madness Crusher +12%, POW +2.
_______________________
Type: Two-Handed Spear
Attack: 320
Weight: 230
Weapon Level: 5
_______________________
Requirement:
Base Level 230
Dragon Knight
Weapon Level 5 Identifier Poenitentia_Catapulta
Attack 320 Type Weapon - Two-Handed Spear
MATK 0 Equip Locations Two-Handed
Defense 0 Equippable Jobs Knight
Range 3 Equip Gender Both (Male and Female)
Slots 2 Equip Upper None
Weight 230 Min Equip Level 230
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 bAtkRate,10;
bonus2 bSkillAtk,"DK_MADNESS_CRUSHER",10;
bonus2 bSkillAtk,"RK_HUNDREDSPEAR",3*(.@r/2);
if (.@r>=7) {
   bonus bVariableCastrate,-10;
   if (.@r>=9) {
      bonus2 bSkillAtk,"RK_HUNDREDSPEAR",25;
      if (.@r>=11) {
         bonus2 bSkillCooldown,"RK_HUNDREDSPEAR",-2000;
      }
   }
}
if (.@g >= ENCHANTGRADE_D) {
   bonus2 bSkillAtk,"DK_MADNESS_CRUSHER",5;
   if (.@g >= ENCHANTGRADE_C) {
      bonus bPAtk,1;
      bonus2 bSkillAtk,"DK_MADNESS_CRUSHER",8;
      if (.@g >= ENCHANTGRADE_B) {
         bonus bPow,2;
         bonus2 bSkillAtk,"DK_MADNESS_CRUSHER",12;
      }
   }
}

Set Script
Confession Courage Crown
Poenitentia Catapulta
.@r = getequiprefinerycnt(EQI_HAND_R);
bonus bLongAtkRate,15;
bonus2 bSkillAtk,"RK_HUNDREDSPEAR",10*(.@r/2);
bonus2 bSkillAtk,"DK_MADNESS_CRUSHER",10*(.@r/2);