Racing Cap (Royal Guard)

Item ID 19196 Name Racing Cap (Royal Guard)
A very valuable commemorative hat made by the Monster Race Association for customers who use Monster Race.
_______________________
For each 2 Refine Levels:
ATK +10
_______________________
For each 3 Refine Levels:
Increases Attack Speed (decreases After Attack Delay by 2%).
_______________________
Refine Level +8:
For each Level of Spear Mastery:
Increases damage of GBurst Attack by 1%.
_______________________
Refine Level +11:
Decreases Earth Drive skill cooldown by 1 second.
_______________________
Type: Headgear
Defense: 10
Position: Upper
Weight: 0
Armor Level: 1
_______________________
Requirement:
Base Level 100
Royal Guard
Weapon Level 0 Identifier Racing_C_Royal
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 10 Equippable Jobs Crusader
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper Third, Third Upper, Third Baby
Weight 0 Min Equip Level 100
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 sold to NPC, 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,10*(.@r/2);
bonus bAspdRate,2*(.@r/3);
if (.@r>=8)
   bonus2 bSkillAtk,"LG_RAGEBURST",10*getskilllv("KN_SPEARMASTERY");
if (.@r>=11)
   bonus2 bSkillCooldown,"LG_EARTHDRIVE",-1000;

Set Script
Racing Cap (Royal Guard)
Racing(Royal Guard) 1Lv
bonus2 bSkillCooldown,"LG_SHIELDPRESS",-500;
Racing Cap (Royal Guard)
Racing(Royal Guard) 2Lv
autobonus3 "{ bonus2 bSkillAtk,\"LG_SHIELDPRESS\",20; }",1000,60000,"LG_EARTHDRIVE";
bonus2 bSkillCooldown,"LG_SHIELDPRESS",-1000;
Racing Cap (Royal Guard)
Racing(Royal Guard) 3Lv
autobonus3 "{ bonus2 bSkillAtk,\"LG_SHIELDPRESS\",60; }",1000,60000,"LG_EARTHDRIVE";
bonus2 bSkillCooldown,"LG_SHIELDPRESS",-1500;
Racing Shoes
Racing Cap (Royal Guard)
if (getequiprefinerycnt(EQI_SHOES)+getequiprefinerycnt(EQI_HEAD_TOP) >= 21)
   bonus2 bSkillCooldown,"LG_SHIELDPRESS",-500;