Racing Cap (Archbishop)

Item ID 19197 Name Racing Cap (Archbishop)
A very valuable commemorative hat made by the Monster Race Association for customers who use Monster Race.
_______________________
For each 2 Refine Levels:
MATK +10
_______________________
For each 3 Refine Levels:
Increases Attack Speed (decreases After Attack Delay by 2%).
_______________________
Refine Level +8:
For each Level of Mace Mastery:
Increases damage of Duple Light by 10%.
_______________________
Refine Level +11:
Physical attacks have a chance to auto-cast Level 5Adoramus.
(Consumes Blue Gemstone and auto-casts at the Level when learned.)
_______________________
Type: Headgear
Defense: 10
Position: Upper
Weight: 0
Armor Level: 1
_______________________
Requirement:
Base Level 100
Archbishop
Weapon Level 0 Identifier Racing_C_Bishop
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 10 Equippable Jobs Priest
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 bMatk,10*(.@r/2);
bonus bAspdRate,2*(.@r/3);
if (.@r>=8)
   bonus2 bSkillAtk,"AB_DUPLELIGHT_MELEE",10*getskilllv("PR_MACEMASTERY");
   bonus2 bSkillAtk,"AB_DUPLELIGHT_MAGIC",10*getskilllv("PR_MACEMASTERY");
/*
if (.@r>=11)
   bonus3 bAutoSpell,"AB_ADORAMUS",max(5,getskilllv("AB_ADORAMUS")),50;
Unknow Rate and Blue Gemstone consume mechanic
*/

Set Script
Racing Cap (Archbishop)
Racing(Archbishop) 1Lv
bonus2 bSkillAtk,"AB_ADORAMUS",20;
Racing Cap (Archbishop)
Racing(Archbishop) 2Lv
bonus2 bSkillAtk,"AB_ADORAMUS",30;
autobonus "{ bonus bNoGemStone; }",10,3000,BF_WEAPON;
Racing Cap (Archbishop)
Racing(Archbishop) 3Lv
bonus2 bSkillAtk,"AB_ADORAMUS",60;
autobonus "{ bonus bNoGemStone; }",30,5000,BF_WEAPON;
Racing Shoes
Racing Cap (Archbishop)
if (getequiprefinerycnt(EQI_SHOES)+getequiprefinerycnt(EQI_HEAD_TOP) >= 21)
   autobonus "{ bonus2 bSkillAtk,\"AB_ADORAMUS\",100; }",15,5000,BF_WEAPON|BF_MAGIC;