Racing Cap (Rune Knight)

Item ID 19195 Name Racing Cap (Rune Knight)
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 2 Levels of Two-Handed Quicken:
Increases Critical Damage by 5%.
_______________________
Refine Level +11:
Indestructible in battle
Physical attacks have a chance to auto-cast Level 5 Double Attack.
_______________________
Type: Headgear
Defense: 10
Position: Upper
Weight: 0
Armor Level: 1
_______________________
Requirement:
Base Level 100
Rune Knight
Weapon Level 0 Identifier Racing_C_Rune
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 10 Equippable Jobs Knight
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)
   bonus bCritAtkRate,5*(getskilllv("KN_TWOHANDQUICKEN")/2);
if (.@r>=11) {
   bonus bUnbreakableWeapon;
   skill "TF_DOUBLE",5;
}

Set Script
Racing Cap (Rune Knight)
Racing(Rune Knight) 1Lv
autobonus3 "{ bonus2 bAddSize,Size_All,5; }",1000,60000,"KN_TWOHANDQUICKEN";
Racing Cap (Rune Knight)
Racing(Rune Knight) 2Lv
autobonus3 "{ bonus2 bAddSize,Size_All,7; }",1000,60000,"KN_TWOHANDQUICKEN";
autobonus "{ bonus bNoSizeFix; }",50,3000,BF_WEAPON;
Racing Cap (Rune Knight)
Racing(Rune Knight) 3Lv
autobonus3 "{ bonus bBaseAtk,40; bonus2 bAddSize,Size_All,15; }",1000,60000,"KN_TWOHANDQUICKEN";
autobonus "{ bonus bNoSizeFix; }",50,5000,BF_WEAPON;
Racing Shoes
Racing Cap (Rune Knight)
if (getequiprefinerycnt(EQI_SHOES)+getequiprefinerycnt(EQI_HEAD_TOP) >= 21)
   bonus3 bAutoSpell,"RK_SONICWAVE",5,50;