Awakened Eden Group Hat II

Item ID 19165 Name Awakened Eden Group Hat II
A hat given to full-fledged member of Eden Group. It's show the design and technology of Eden Group.
_______________________
Random chance to increase ATK by 30 for 5 seconds when dealing physical damage.
Random chance to increase MATK by 30 for 5 seconds when dealing magical damage.
_______________________
Refine Level +7:
ATK +15
MATK +15
_______________________
Refine Level +9:
All Basic Stats +2.
_______________________
Refine Level +12:
Restores HP by 2% and SP by 1% every 10 seconds.
_______________________
Type: Headgear
Defense: 10
Position: Upper
Weight: 0
Armor Level: 1
_______________________
Requirement:
Base Level 160
Weapon Level 0 Identifier Para_Team_Hat160
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 10 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 0 Min Equip Level 160
NPC Buy 20 Max Equip Level None
NPC Sell 10 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
autobonus "{ bonus bBaseAtk,30; }",70,5000,BF_WEAPON,"{ specialeffect2 EF_ENHANCE; }";
autobonus "{ bonus bMatk,30; }",50,5000,BF_MAGIC,"{ specialeffect2 EF_SPELLBREAKER; }";
.@r = getrefine();
if (.@r >= 7) {
   bonus bBaseAtk,15;
   bonus bMatk,15;
   if (.@r >= 9) {
      bonus bAllStats,2;
      if (.@r >= 12) {
         bonus2 bRegenPercentHP,2,10000;
         bonus2 bRegenPercentSP,1,10000;
      }
   }
}