.@r = getrefine();
if (.@r >= 9 ) {
   bonus2 bHPDrainRate,60,8;
   bonus2 bSPDrainRate,20,4;
} else if (.@r >= 8 ) {
   bonus2 bHPDrainRate,50,5;
   bonus2 bSPDrainRate,10,2;
} else if (.@r >= 7 ) {
   bonus2 bHPDrainRate,30,5;
   bonus2 bSPDrainRate,10,2;
} else if (.@r >= 5 ) {
   bonus2 bHPDrainRate,10,3;
   bonus2 bSPDrainRate,10,1;
}
else {
   bonus2 bHPDrainRate,10,1;
   bonus2 bSPDrainRate,10,1;
}