Temporal Circlet (Star Emperor)

Item ID 19486 Name Temporal Circlet (Star Emperor)
A special energy was given to the circlet, which was
made of ores and gemstones from the gaps of time by Hugin.
_______________________
For each 2 Refine Levels:
ATK +15
_______________________
For each 3 Refine Levels:
Increases Attack Speed (decreases After Attack Delay by 2%).
Increases damage of Falling Star by 30%.
_______________________
For each 4 Refine Levels:
Increases Physical Damage against enemies of all size enemies by 2%.
_______________________
Refine Level +11:
ATK +5%
_______________________
Type: Headgear
Defense: 10
Position: Upper
Weight: 0
Armor Level: 1
_______________________
Requirement:
Base Level 170
Star Emperor
Weapon Level 0 Identifier S_Circlet_Of_Time_SJ
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 10 Equippable Jobs Star Gladiator
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper Third, Third Upper, Third Baby
Weight 0 Min Equip Level 170
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
.@r = getrefine();
bonus bBaseAtk,15*(.@r/2);
bonus2 bSkillAtk,"SJ_FALLINGSTAR_ATK",30*(.@r/3);
bonus2 bSkillAtk,"SJ_FALLINGSTAR_ATK2",30*(.@r/3);
bonus2 bAddSize,Size_All,2*(.@r/4);
bonus bAspdRate,(.@r/3)*2;
if (.@r>=11) {
   bonus bAtkRate,5;
}

Set Script
Temporal Circlet (Star Emperor)
Brave Heart (Sky Emperor)
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
bonus bMaxHPrate,15;
bonus bMaxSPrate,15;
bonus2 bAddSize,Size_All,15;
bonus bShortAtkRate,15;
bonus bLongAtkRate,15;
if (.@r>=11) {
   bonus bBaseAtk,175;
   if (.@r>=12) {
        bonus2 bSkillAtk,"SKE_STAR_CANNON",50;
        bonus2 bSkillAtk,"SKE_MIDNIGHT_KICK",50;
   }
}
Temporal Circlet (Star Emperor)
White Knight Mantle (Melee)
if ((getequiprefinerycnt(EQI_HEAD_TOP) + getequiprefinerycnt(EQI_GARMENT)) >= 21) {
   bonus2 bSkillAtk,"SJ_FALLINGSTAR_ATK",50;
   bonus2 bSkillAtk,"SJ_FALLINGSTAR_ATK2",50;
}