Devil Guardian Sword

Item ID 500072 Name Devil Guardian Sword
A one-handed sword used by the gatekeeper who guards the gates of hell.
_______________________
MATK +220
_______________________
MATK +5%, SPL +2
Increases damage of Cross Rain by 5%.
_______________________
Refine Level +5:
Increases damage of Cross Rain by additional 10%.
_______________________
Refine Level +7:
Increases Magical Damage with Holy element by 5%.
_______________________
Refine Level +9:
Increases damage of Cross Rain by additional 10%.
_______________________
Refine Level +10:
Decreases Variable Casting Time by 10%.
_______________________
Refine Level +11:
Increases damage of Cross Rain by additional 5%.
Increases Magical Damage with Holy element by additional 15%.
_______________________
[Bonus by Grade]
[Grade D]: Magical Damage with Holy element +10%.
[Grade C]: Magical Damage against enemies of every size +10%.
[Grade B]: Magical Damage against enemies of every race +10%.
[Grade A]: Magical Damage against enemies of every element +10%.
_______________________
Type: One-Handed Sword
Attack: 100
Weight: 180
Weapon Level: 5
_______________________
Requirement:
Base Level 215
Imperial Guard
Weapon Level 5 Identifier Devil_Guardian_Sword
Attack 100 Type Weapon - One-Handed Sword
MATK 220 Equip Locations Main Hand
Defense 0 Equippable Jobs Crusader
Range 1 Equip Gender Both (Male and Female)
Slots 2 Equip Upper None
Weight 180 Min Equip Level 215
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 bMatkRate,5;
bonus bSpl,2;
bonus2 bSkillAtk,"IG_CROSS_RAIN",5;
if (.@r>=5) {
   bonus2 bSkillAtk,"IG_CROSS_RAIN",10;
   if (.@r>=7) {
      bonus2 bMagicAtkEle,Ele_Holy,5;
      if (.@r>=9) {
         bonus2 bSkillAtk,"IG_CROSS_RAIN",10;
         if (.@r>=10) {
            bonus bVariableCastrate,-10;
            if (.@r>=11) {
               bonus2 bMagicAtkEle,Ele_Holy,15;
               bonus2 bSkillAtk,"IG_CROSS_RAIN",5;
            }
         }
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus2 bMagicAtkEle,Ele_Holy,10;
   if (.@g>=ENCHANTGRADE_C) {
      bonus2 bMagicAddSize,Size_All,10;
      if (.@g>=ENCHANTGRADE_B) {
         bonus2 bMagicAddRace,RC_All,10;
         if (.@g>=ENCHANTGRADE_A) {
            bonus2 bMagicAddEle,Ele_All,10;
         }
      }
   }
}

Set Script
Crown of Good and Evil (Imperial Guard)
Evil Spell
Devil Guardian Sword
bonus2 bMagicAtkEle,Ele_Holy,20;
bonus2 bSkillAtk,"IG_CROSS_RAIN",15;
Crown of Good and Evil (Imperial Guard)
Devil Guardian Sword
.@r = getequiprefinerycnt(EQI_HAND_R)/3;
bonus2 bMagicAtkEle,Ele_Holy,5*.@r;
bonus2 bSkillAtk,"IG_CROSS_RAIN",4*.@r;
if (getenchantgrade(EQI_HAND_R)>=ENCHANTGRADE_B) {
   bonus2 bSkillAtk,"IG_CROSS_RAIN",10;
}