Kuken's Hat

Item ID 15831 Name Kuken's Hat
None
Weapon Level 0 Identifier Kuken_Hat_EXE
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 20 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 30 Min Equip Level 50
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
if (BaseJob == Job_Gunslinger) {
   bonus bBaseAtk,2*(readparam(bDex)/9);
   bonus bMatk,2*(readparam(bInt)/9);
   if (.@r>=7) {
       bonus bDef,10;
       bonus bMdef,15;
       bonus2 bVariableCastrate,"GS_TRACKING",-30;
       if (.@r>=8) {
           bonus bDelayrate,-10;
           bonus bCritical,10;
           if (.@r>=9) {
               bonus3 bAutoSpell,"GS_RAPIDSHOWER",2,70;
               bonus bLongAtkRate,5;
               if (.@r>=10) {
                   bonus bAllStats,2;
                   bonus bMaxHPrate,3;
                   bonus bMaxSPrate,3;
               }
           }
       }
   }
}
else if (BaseJob == Job_Ninja) {
   bonus bBaseAtk,2*(readparam(bStr)/9);
   bonus bMatk,2*(readparam(bInt)/9);
   if (.@r>=7) {
       bonus bDef,10;
       bonus bMdef,15;
       bonus bLongAtkRate,5;
       bonus2 bSkillAtk,"NJ_KAENSIN",50;
       bonus2 bSkillAtk,"NJ_RAIGEKISAI",50;
       if (.@r>=8) {
           bonus bMatk,15;
           bonus bBaseAtk,15;
           bonus bDelayrate,-10;
           if (.@r>=9) {
               bonus bFlee,10;
               bonus2 bVariableCastrate,"NJ_HUUMA",-20;
               bonus2 bVariableCastrate,"NJ_KAENSIN",-20;
               bonus2 bVariableCastrate,"NJ_RAIGEKISAI",-20;
               if (.@r>=10) {
                   bonus bAllStats,2;
                   bonus bMaxHPrate,3;
                   bonus bMaxSPrate,3;
               }
           }
       }
   }
}