17 lines
500 B
Plaintext
17 lines
500 B
Plaintext
int StartingConditional()
|
|
{
|
|
int iResult = FALSE;
|
|
|
|
int rTime = GetLocalInt(GetModule(),"ASG_MICS_BUILDTIME");
|
|
if (rTime > 0)
|
|
{
|
|
iResult = TRUE;
|
|
int iNow = (GetCalendarYear()*10000)+ (GetCalendarDay()*100)+ (GetCalendarMonth()*1000) + GetTimeHour();
|
|
int iLast = GetLocalInt(OBJECT_SELF,"ASG_ALTARANVILTIME");
|
|
int iDif = iLast - iNow;
|
|
SetCustomToken(1970000,IntToString(iDif));
|
|
if (iNow>=iLast) iResult = FALSE;
|
|
}
|
|
return iResult;
|
|
}
|