Circulation of Life: Summer

Item ID 480350 Name Circulation of Life: Summer
A manteau that amplifies the energy of summer according to the truth of the Circularity of Life.
True power awakens with the power of the constellations.
_______________________
POW +4, CON +4, Critical -20.
_______________________
For each 2 Refine Levels:
ATK +10
_______________________
For each 3 Refine Levels:
Increases Ranged Physical Damage by 2%.
_______________________
Refine Level +7:
Decreases Variable Casting Time by 10%.
_______________________
Refine Level +9:
Increases Attack Speed (decreases After Attack Delay by 10%).
_______________________
Refine Level +11:
P.ATK +7
Decreases After Skill Delay by 10%.
_______________________
[Bonus by Grade]
[Grade D]: RES +25, MRES +25.
[Grade C]: ATK +10%, Ranged Physical Damage +7%.
[Grade B]: POW +5, CON +5, P.ATK +7, DEF +50
[Grade A]: P.ATK +9, Physical Damage against enemies of every element +5%.
_______________________
Type: Garment
Defense: 80
Weight: 70
Armor Level: 2
_______________________
Requirement:
Base Level 250
Weapon Level 0 Identifier Circul_Of_Life_Summer
Attack 0 Type Armor
MATK 0 Equip Locations Garment
Defense 80 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 70 Min Equip Level 250
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction Can't be dropped, Can't be traded with player, Can't be put in Cart, Can't be put in Guild Storage, Can't be attached in Mail, Can't be auctioned
Item Script
.@g = getenchantgrade();
.@r = getrefine();
bonus bCritical,-20;
bonus bPow,4;
bonus bCon,4;
bonus bBaseAtk,10*(.@r/2);
bonus bLongAtkRate,2*(.@r/3);
if (.@r>=7) {
   bonus bVariableCastrate,-10;
   if (.@r>=9) {
      bonus bAspdRate,10;
      if (.@r>=11) {
         bonus bDelayrate,-10;
         bonus bPAtk,7;
      }
   }
}
if (.@g>=ENCHANTGRADE_D) {
   bonus bMRes,25;
   bonus bRes,25;
   if (.@g>=ENCHANTGRADE_C) {
      bonus bLongAtkRate,7;
      bonus bAtkRate,10;
      if (.@g>=ENCHANTGRADE_B) {
         bonus bPAtk,7;
         bonus bDef,50;
         bonus bPow,5;
         bonus bCon,5;
         if (.@g>=ENCHANTGRADE_A) {
            bonus2 bAddEle,Ele_All,7;
            bonus bPAtk,9;
         }
      }
   }
}

Set Script
Signet of Circulation: Summer
Circulation of Life: Summer
.@val = 5+3*(getequiprefinerycnt(EQI_GARMENT)/2);
bonus2 bAddRace,RC_All,.@val;
bonus2 bAddRace,RC_Player_Human,-.@val;
bonus2 bAddRace,RC_Player_Doram,-.@val;
bonus bDelayrate,-10;