Initial Upload
Initial Upload
This commit is contained in:
16
_module/nss/asg_tes_alanvtim.nss
Normal file
16
_module/nss/asg_tes_alanvtim.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user