Aantioch_Infernum/_module/nss/asg_resdesk_05t.nss

15 lines
390 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
int StartingConditional()
{
int iResult = TRUE;
object oPC = GetPCSpeaker();
int iNow = (GetCalendarMonth()*1000) + (GetCalendarDay()*100) + GetTimeHour();
int iLast = GetLocalInt(oPC,"ASG_RESEARCHAGAININ");
if (iNow>iLast-1) iResult = FALSE;
else
{
int iDif = iLast - iNow;
SetCustomToken(1970001,IntToString(iDif));
}
return iResult;
}