.@r = getrefine();
bonus bMdef,10;
bonus2 bAddRace,RC_Undead,5;
bonus2 bMagicAddRace,RC_Undead,5;
bonus2 bSubRace,RC_Undead,2;
bonus bSPGainValue,5;
bonus bLongSPGainValue,5;
bonus bMagicSPGainValue,5;
if (.@r>=7) {
   bonus bMdef,5;
   bonus2 bAddRace,RC_Undead,10;
   bonus2 bMagicAddRace,RC_Undead,10;
   bonus2 bSubRace,RC_Undead,3;
   bonus bSPGainValue,10;
   bonus bLongSPGainValue,10;
   bonus bMagicSPGainValue,10;
}
if (.@r>=9) {
   bonus bMdef,5;
   bonus2 bAddRace,RC_Undead,10;
   bonus2 bMagicAddRace,RC_Undead,10;
   bonus2 bSubRace,RC_Undead,5;
   bonus bSPGainValue,10;
   bonus bLongSPGainValue,10;
   bonus bMagicSPGainValue,10;
}