bonus bMdef,10;
bonus2 bSubEle,Ele_Earth,10;
bonus2 bAddEle,Ele_Earth,5;
bonus2 bMagicAddEle,Ele_Earth,5;
.@r = getrefine();
if (.@r>=6) {
   bonus2 bSubEle,Ele_Earth,15;
   bonus2 bAddEle,Ele_Earth,10;
   bonus2 bMagicAddEle,Ele_Earth,10;
}
if (.@r>=8) {
   if (readparam(bStr)>=90) {
      bonus bBaseAtk,50;
   }
   if (readparam(bAgi)>=90) {
      bonus bAspdRate,5;
   }
   if (readparam(bVit)>=90) {
      bonus bHealPower2,10;
      bonus bAddItemHealRate,10;
   }
   if (readparam(bInt)>=90) {
      bonus bMatk,30;
   }
   if (readparam(bDex)>=90) {
      bonus bVariableCastrate,-5;
   }
   if (readparam(bLuk)>=90) {
      bonus bCritAtkRate,5;
   }
}