Star Cluster of Stamina Lv3

Item ID 310679 Name Star Cluster of Stamina Lv3
A stellar essence that strengthens the wearer.
_______________________
For each 15 base STA:
MaxHP +3%, RES +4
_______________________
If enchanted Armor's Grade is D:
For each 15 base STA:
MaxHP +1%, RES +1
_______________________
If enchanted Armor's Grade is C:
For each 15 base STA:
MaxHP +2%, RES +2
_______________________
If enchanted Armor's Grade is B:
For each 15 base STA:
MaxHP +2%, RES +2
_______________________
If enchanted Armor's Grade is A:
For each 15 base STA:
MaxHP +3%, RES +3
Weapon Level 0 Identifier Star_Cluster_Of_Sta3
Attack 0 Type Card - Enchant
MATK 0 Equip Locations None
Defense 0 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 0 Equip Upper None
Weight 0 Min Equip Level None
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable No
Credit Price None Trade restriction None
Item Script
.@param = (readparam(bSta)/15);
.@g = getenchantgrade();
bonus bMaxHPrate,3*.@param;
bonus bRes,4*.@param;
if (.@g >= ENCHANTGRADE_D) {
   bonus bMaxHPrate,.@param;
   bonus bRes,.@param;
   if (.@g >= ENCHANTGRADE_C) {
      bonus bMaxHPrate,2*.@param;
      bonus bRes,2*.@param;
      if (.@g >= ENCHANTGRADE_B) {
         bonus bMaxHPrate,2*.@param;
         bonus bRes,2*.@param;
         if (.@g >= ENCHANTGRADE_A) {
            bonus bMaxHPrate,3*.@param;
            bonus bRes,3*.@param;
         }
      }
   }
}

Set Script
Signet of Stamina 3Lv
Star Cluster of Stamina Lv3
bonus bMaxHPrate,5;
Signet of Stamina 4Lv
Star Cluster of Stamina Lv3
bonus bMaxHPrate,7;
Signet of Stamina 5Lv
Star Cluster of Stamina Lv3
bonus bMaxHPrate,10;
Star Cluster of Stamina Lv3
Asteria's Helm-LT
bonus2 bSubSize,Size_Medium,15;
if (readparam(bSta)>=90) {
   bonus bLongAtkDef,10;
   bonus bNearAtkDef,-10;
}
Star Cluster of Stamina Lv3
Astrologer's Dawn Boots
.@g = getenchantgrade(EQI_SHOES);
autobonus "{ bonus bVit,150; }",30,10000,BF_WEAPON;
if (.@g>=ENCHANTGRADE_C) {
   bonus bMaxHPrate,10;
   bonus bPAtk,10;
   if (.@g>=ENCHANTGRADE_A) {
       bonus bMaxHPrate,20;
       bonus bPAtk,15;
       bonus2 bAddSize,Size_All,30;
   }
}