Spirit of Green Maiden

Item ID 19135 Name Spirit of Green Maiden
A spirit of Green Maiden that float on your head.
_______________________
Random chance to transform wearer into Green Maiden for 5 seconds when dealing physical or magical attack.
While transforming, increases MATK and Critical attack damage by 30%.
_______________________
For each 2 Refine Levels:
Increases experience gained from defeating monsters by 1%.
Increases item drop rate by 1%.
_______________________
For each 4 Refine Levels:
MaxHP +2%
MaxSP +2%
_______________________
Refine Level +9:
Increases HP and SP Recovery Rate by 40%.
_______________________
Refine Level +12:
MaxHP +3%
MaxSP +3%
_______________________
Type: Headgear
Defense: 0
Position: Upper
Weight: 1
Armor Level: 1
_______________________
Requirement: None
Weapon Level 0 Identifier Spirit_Of_Chung_E
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 0 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 0 Equip Upper None
Weight 1 Min Equip Level None
NPC Buy 20 Max Equip Level None
NPC Sell 10 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus2 bExpAddRace,RC_All,.@r/2;
bonus2 bDropAddRace,RC_All,.@r/2;
bonus bMaxHPrate,2*(.@r/4);
bonus bMaxSPrate,2*(.@r/4);
if (.@r>=9) {
   bonus bHPrecovRate,40;
   bonus bSPrecovRate,40;
}
if (.@r>=12) {
   bonus bMaxHPrate,3;
   bonus bMaxSPrate,3;
}
autobonus "{ bonus bCritAtkRate,30; bonus bMatkRate,30; }",1,5000,BF_WEAPON|BF_MAGIC,"{ active_transform 1519,5000; }";