Amistr Beret

Item ID 19308 Name Amistr Beret
A beret made from the ear of Amistr.
_______________________
For each 2 Refine Levels:
ATK +10
MATK +10
_______________________
Refine Level +7:
Decreases Variable Casting Time by 10%.
_______________________
Refine Level +9:
Increases Magical Damage with Neutral and Holy element by 10%.
_______________________
Refine Level +11:
MATK +3%
ATK +5%
_______________________
For each Refine Level above +10:
Decreases Fixed Casting Time by 0.1 second (up to +15).
_______________________
When equipped with Holy Stick:
MATK +10
_______________________
For each 2 Refine Levels of equipped Holy Stick:
Increases damage of Adoramus by 30%.
_______________________
When equipped with Wondrous Foxtail Staff:
For each 2 Refine Levels of equipped Wondrous Foxtail Staff:
Increases Magical Damage with Neutral element by 5%.
_______________________
When equipped with Twin Edge of Naght Sieger(B):
For each 2 Refine Levels of equipped Twin Edge of Naght Sieger(B):
Increases damage of Cart Cannon by 10%.
_______________________
Type: Headgear
Defense: 15
Position: Upper
Weight: 20
Armor Level: 1
_______________________
Requirement: None
Weapon Level 0 Identifier Amistr_Beret
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 15 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 20 Min Equip Level None
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus bMatk,10*(.@r/2);
bonus bBaseAtk,10*(.@r/2);
if (.@r>=7) {
   bonus bVariableCastrate,-10;
}
if (.@r>=9) {
   bonus2 bMagicAtkEle,Ele_Neutral,10;
   bonus2 bMagicAtkEle,Ele_Holy,10;
}
if (.@r>=11) {
   bonus bMatkRate,3;
   bonus bAtkRate,5;
}
if (.@r>=10) {
   bonus bFixedCast,-100*(min((.@r-10),15)/1);
}

Set Script
Amistr Beret
Holy Stick
.@r_weapon = getequiprefinerycnt(EQI_HAND_R);
bonus bMatk,10*(.@r_weapon/2);
bonus2 bSkillAtk,"AB_ADORAMUS",30*(.@r_weapon/2);
Amistr Beret
Strange God Foxtail Staff
.@r_weapon = getequiprefinerycnt(EQI_HAND_R);
bonus2 bMagicAtkEle,Ele_Neutral,5*(.@r_weapon/2);
Amistr Beret
Twin Edge of Naght Sieger
.@r_weapon = getequiprefinerycnt(EQI_HAND_R);
bonus2 bSkillAtk,"GN_CARTCANNON",10*(.@r_weapon/2);