HoS_PRC8/_mod/_module/nss/cg_calcdues.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

12 lines
300 B
Plaintext

// calculate dues
void main()
{
object oPC=GetPCSpeaker();
int nLTime=GetLocalInt(oPC,"nCGDues");
int nNow=(GetCalendarYear()*365)+(GetCalendarMonth()*30)+GetCalendarDay();
int nDif=nNow-nLTime;
nDif=nDif*2;
SetLocalInt(oPC,"nDuesOwed",nDif);
SetCustomToken(90001,IntToString(nDif));
}