Amistr Cap

Item ID 5766 Name Amistr Cap
Smooth fluffy cap inspired by Homunculus Amistr.
_______________________
VIT +1
_______________________
Random chance to auto-cast Level 5 Pierce when dealing physical damage.
_______________________
For each 2 Refine Levels:
VIT +1
_______________________
When equipped with Romantic Leaf:
Reflects physical damage by 1%.
_______________________
For each 2 Refine Levels of Amistr Cap:
Reflects physical damage by 1%.
_______________________
When equipped with Romantic Flower:
MaxSP +20
_______________________
For each 2 Refine Levels of Amistr Cap:
MaxSP +10
_______________________
When equipped with Scarlet Rose:
For each Refine Level of Amistr Cap:
MATK +1%
ATK +1%.
(Limited to +10 Refine Level)
_______________________
When equipped with Crunch Toast:
MaxHP +100
_______________________
Refine Level of Amistr Cap is +7 or higher:
MaxHP +100
_______________________
Refine Level of Amistr Cap is +9 or higher:
MaxHP +200
_______________________
Type: Headgear
Defense: 4
Position: Upper
Weight: 50
Armor Level: 1
_______________________
Requirement: None
Weapon Level 0 Identifier Amistr_Cap
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 4 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 50 Min Equip Level 1
NPC Buy 20 Max Equip Level None
NPC Sell 10 Refineable Yes
Credit Price None Trade restriction Can't be dropped
Item Script
bonus bVit,1+(getrefine()/2);
bonus5 bAutoSpell,"KN_PIERCE",5,10,BF_WEAPON,1;

Set Script
Toast
Amistr Cap
bonus bMaxHP,100;
.@r = getrefine();
if (.@r >= 7)
   bonus bMaxHP,100;
   if (.@r >= 9)
      bonus bMaxHP,200;
Scarlet Rose
Amistr Cap
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
bonus2 bAddClass,Class_All,min(.@r,10);
bonus bMatk,min(.@r,10);
Amistr Cap
Romantic Flower
bonus bMaxSP,20*(getequiprefinerycnt(EQI_HEAD_TOP)/2);
Amistr Cap
Romantic Leaf
bonus bShortWeaponDamageReturn,(getequiprefinerycnt(EQI_HEAD_TOP)/2);
Crunch Toast
Amistr Cap
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
if (.@r>8) {
   bonus bMaxHP,400;
}
else if (.@r>6) {
   bonus bMaxHP,200;
}
else {
   bonus bMaxHP,100;
}