Dim Glacier Staff

Item ID 640034 Name Dim Glacier Staff
A two-handed staff that lost its light due to poisonous magic.
It seems to have to be handled in a different way from the existing Glacier weapons.
_______________________
Indestructible in battle
_______________________
MATK +290
_______________________
Type: Two-Handed Staff
Attack: 150
Weight: 240
Weapon Level: 5
_______________________
Requirement:
Base Level 230
Mage, Acolyte and Soul Linker classes
Weapon Level 5 Identifier D_Glacier_Staff
Attack 150 Type Weapon - Two-Handed Staff
MATK 290 Equip Locations Two-Handed
Defense 0 Equippable Jobs Mage, Acolyte, Priest, Wizard, Monk, Sage, Soul Linker
Range 1 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 240 Min Equip Level 230
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
bonus bUnbreakableWeapon;

Set Script
Dim Glacier Armor
Dim Glacier Boots
Dim Glacier Manteau
Dim Glacier Staff
.@r = getequiprefinerycnt(EQI_HAND_R);
.@g = getenchantgrade(EQI_HAND_R);
bonus bBaseAtk,10*(.@r/3);
if (.@g >= ENCHANTGRADE_C) {
   bonus bPAtk,6;
   bonus bPow,5;
   bonus bCon,5;
   if (.@g >= ENCHANTGRADE_B) {
      bonus bPAtk,5;
      bonus bPow,5;
      bonus bCon,5;
      if (.@g >= ENCHANTGRADE_A) {
         bonus bPAtk,4;
         bonus bPow,5;
         bonus bCon,5;
         bonus2 bAddEle,Ele_All,20;
      }
   }
}
Dim Glacier Robe
Dim Glacier Shoes
Dim Glacier Muffler
Dim Glacier Staff
.@r = getequiprefinerycnt(EQI_HAND_R);
.@g = getenchantgrade(EQI_HAND_R);
bonus bMatk,10*(.@r/3);
if (.@g >= ENCHANTGRADE_C) {
   bonus bSMatk,6;
   bonus bSpl,5;
   bonus bCon,5;
   if (.@g >= ENCHANTGRADE_B) {
      bonus bSMatk,5;
      bonus bSpl,5;
      bonus bCon,5;
      if (.@g >= ENCHANTGRADE_A) {
         bonus bSMatk,4;
         bonus bSpl,5;
         bonus bCon,5;
         bonus2 bMagicAddEle,Ele_All,20;
      }
   }
}