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