Automatic Armor Type B

Item ID 450128 Name Automatic Armor Type B
Combat armor type B improved with the technology of the Varmundt's mansion.
It is said to be able to add abilities by attaching various modules.
_______________________
MATK +125
_______________________
For each 2 Refine Levels:
MATK +10
_______________________
Refine Level +7:
Decreases Variable Casting Time by 15%.
_______________________
When equipped with Automatic Engine Wing Type A:
Increases Attack Speed (decreases After Attack Delay by 10%).
_______________________
When equipped with Automatic Engine Wing Type B:
MATK +50
_______________________
Type: Armor
Defense: 135
Weight: 100
Armor Level: 1
_______________________
Requirement:
Base Level 160
Weapon Level 0 Identifier Auto_Armor_B
Attack 0 Type Armor
MATK 0 Equip Locations Armor
Defense 135 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 100 Min Equip Level 160
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMatk,125+(10*(.@r/2));
if (.@r>=7) {
   bonus bVariableCastrate,-15;
}

Set Script
Automatic Armor Type B
Automatic Engine Wing Type A
bonus bAspdRate,10;
Automatic Armor Type B
Automatic Engine Wing Type B
bonus bMatk,50;
Automatic Leg Type A
Automatic Armor Type B
bonus bAspdRate,7;
Automatic Leg Type B
Automatic Armor Type B
bonus bMatkRate,7;
Adventure Clover
Automatic Armor Type B
bonus bAtkRate,20;
bonus bMatkRate,20;
bonus2 bExpAddRace,RC_All,3;
Wireless Security Drone
Automatic Armor Type B
bonus2 bAddRace,RC_All,8;
bonus2 bMagicAddRace,RC_All,8;
bonus bDelayrate,-(getequiprefinerycnt(EQI_ARMOR)/2);
Automatic Armor Type B
Automatic Engine Wing C-Type
if ((getequiprefinerycnt(EQI_ARMOR)+getequiprefinerycnt(EQI_GARMENT)) >= 21) {
   bonus2 bIgnoreDefRaceRate,RC_Dragon,30;
   bonus2 bIgnoreDefRaceRate,RC_Demon,30;
   bonus2 bIgnoreDefRaceRate,RC_Fish,30;
   bonus2 bIgnoreMdefRaceRate,RC_Dragon,30;
   bonus2 bIgnoreMdefRaceRate,RC_Demon,30;
   bonus2 bIgnoreMdefRaceRate,RC_Fish,30;
}