HoS_PRC8/_mod/_module/nss/cg_calcdues.nss

12 lines
300 B
Plaintext
Raw Permalink Normal View History

2024-11-25 19:36:07 -05:00
// 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));
}