Upgrade Part - Plate

Item ID 15344 Name Upgrade Part - Plate
An upgrade part of mado gear that boosts the defense power. It is easy to assemble and disassemble.
_______________________
Decreases Physical and Magical Damage taken from Small and Medium size by 10%.
_______________________
Refine Level +7:
Decreases Physical and Magical Damage taken from Large size by 10%.
_______________________
Refine Level +9:
Decreases Physical and Magical Damage taken from Medium size by 5%.
_______________________
When equipped with Upgrade Part - Engine, Upgrade Part - Booster and Upgrade Part - Gun Barrel:
Increases damage of Arm Cannon by 50%.
_______________________
Indestructible in battle
_______________________
Type: Armor
Defense: 110
Weight: 300
Armor Level: 1
_______________________
Requirement:
Base Level 130
Mechanic
Weapon Level 0 Identifier Upgrade_Part_Plate_
Attack 0 Type Armor
MATK 0 Equip Locations Armor
Defense 110 Equippable Jobs Blacksmith
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper Third, Third Upper, Third Baby
Weight 300 Min Equip Level 130
NPC Buy 25,000 Max Equip Level None
NPC Sell 12,500 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
.@val = 10;
if (.@r>6) {
   bonus2 bSubSize,Size_Large,10;
   if (.@r>8) {
      .@val += 5;
   }
}
bonus2 bSubSize,Size_Small,.@val;
bonus2 bSubSize,Size_Medium,.@val;

Set Script
Upgrade Part - Plate
Upgrade Part - Engine
Upgrade Part - Booster
Upgrade Part - Gun Barrel
bonus2 bSkillAtk,"NC_ARMSCANNON",50;
Upgrade Part - Plate
Auto Parts - Cannons
.@r = getequiprefinerycnt(EQI_ARMOR);
bonus bBaseAtk,100;
bonus bLongAtkRate,10;
if (.@r>=7)
   bonus2 bAddSize,Size_All,15;
if (.@r>=9)
   bonus2 bSkillAtk,"NC_ARMSCANNON",30;
Upgrade Part - Gun Barrel
Upgrade Part - Plate
Upgrade Part - Engine
Upgrade Part - Booster
Auto Parts - Cannons
bonus2 bResEff,Eff_Freeze,10000;
if (getequiprefinerycnt(EQI_ARMOR)+getequiprefinerycnt(EQI_GARMENT)+getequiprefinerycnt(EQI_SHOES)>=27) {
   bonus2 bSkillCooldown,"NC_ARMSCANNON",-300;
   bonus2 bAddClass,Class_Boss,25;
}