.@r = getrefine();
bonus bMaxHPrate,5;
bonus bMaxSPrate,5;
bonus bMaxHP,1500;
bonus bMaxSP,300;
if (.@r>=7) {
   bonus bMaxHPrate,2;
   bonus bMaxSPrate,2;
   if (.@r>=9) {
      bonus bMaxHPrate,3;
      bonus bMaxSPrate,3;
      if (.@r>=11) {
         bonus bMaxHPrate,4;
         bonus bMaxSPrate,4;
      }
   }
}