PWE_PRC8/_module/nss/my_charfuncs.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

21 lines
453 B
Plaintext

int GetBestClass(object oChar)
{
int nFirst;
int nSecond;
int nThird;
nFirst = GetLevelByPosition(1,oChar);
nSecond = GetLevelByPosition(2,oChar);
nThird = GetLevelByPosition(3,oChar);
if(nFirst >= nSecond && nFirst >= nThird)
return nFirst;
else if(nSecond >= nFirst && nSecond >= nThird)
return nSecond;
else if(nThird >= nFirst && nThird >= nSecond)
return nThird;
return nFirst;
}