Modified Dex Boots

Item ID 22117 Name Modified Dex Boots
A magical boots that was made a long time ago, no sign of wear nor tear on it.
_______________________
MaxHP +300
MaxSP +30
_______________________
For each 3 Refine Levels:
MaxHP +100
MaxSP +10
DEX +3
_______________________
Base DEX at least 120:
Decreases Fixed Casting Time by 0.5 seconds.
Increases Ranged Physical Damage by 5%.
_______________________
Type: Shoes
Defense: 25
Weight: 60
Armor Level: 1
Can be enchanted by:
[Hugin's Magician]glast_01,212,273,0,100,0,0
_______________________
Requirement:
Base Level 99
Rebel, Kagerou, Oboro, Star Emperor and Soul Reaper
Weapon Level 0 Identifier Modify_Dex_Boots_
Attack 0 Type Armor
MATK 0 Equip Locations Footgear
Defense 25 Equippable Jobs Kagerou / Oboro, Rebellion
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 60 Min Equip Level 99
NPC Buy 20 Max Equip Level None
NPC Sell 10 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMaxHP,300+(100*(.@r/3));
bonus bMaxSP,30+(10*(.@r/3));
bonus bDex,3*(.@r/3);
if (readparam(bDex)>=120) {
   bonus bLongAtkRate,5;
   bonus bFixedCast,-500;
}

Set Script
Excellent Dexterous Armor
Modified Dex Boots
bonus bLongAtkRate,5;
.@r = getequiprefinerycnt(EQI_ARMOR) + getequiprefinerycnt(EQI_SHOES);
if (.@r >= 21) {
   bonus2 bIgnoreDefRaceRate,RC_Brute,20;
   bonus2 bIgnoreDefRaceRate,RC_Demon,20;
}
Gigant Snake Skin
Modified Dex Boots
bonus bMaxHPrate,15;
bonus bMaxSPrate,5;
Gigant Snake Skin
Modified Dex Boots
bonus bMaxHPrate,15;
bonus bMaxSPrate,5;
Temporal Dex Manteau
Modified Dex Boots
bonus bLongAtkRate,7;
if (getequiprefinerycnt(EQI_SHOES) >= 10) {
   bonus2 bIgnoreDefRaceRate,RC_Demon,30;
   bonus2 bIgnoreDefRaceRate,RC_Brute,30;
   bonus2 bIgnoreMdefRaceRate,RC_Demon,30;
   bonus2 bIgnoreMdefRaceRate,RC_Brute,30;
}
[Not For Sale] Excellent Dexterous Armor
Modified Dex Boots
.@r = getequiprefinerycnt(EQI_ARMOR);
.@shoes = getequiprefinerycnt(EQI_SHOES);
bonus bLongAtkRate,5;
if ((.@r + .@shoes) >= 21) {
   bonus2 bIgnoreDefRaceRate,RC_Brute,20;
   bonus2 bIgnoreDefRaceRate,RC_Demon,20;
}