34 lines
481 B
Plaintext
34 lines
481 B
Plaintext
|
|
||
|
int StartingConditional()
|
||
|
{
|
||
|
|
||
|
object oPC=GetPCSpeaker();
|
||
|
if (GetHitDice(oPC)==1)
|
||
|
{
|
||
|
return 0;
|
||
|
|
||
|
}
|
||
|
|
||
|
int nCurrentHour = (GetCalendarYear()-1)*12*28*24 +
|
||
|
(GetCalendarMonth()-1)*28*24 +
|
||
|
(GetCalendarDay()-1)*24 +
|
||
|
GetTimeHour();
|
||
|
int nLastSpawnHour = GetLocalInt( OBJECT_SELF, "LastRestHour");
|
||
|
int nSpawnDelay = 0;
|
||
|
|
||
|
|
||
|
|
||
|
if (nCurrentHour > (nLastSpawnHour + nSpawnDelay))
|
||
|
|
||
|
|
||
|
{
|
||
|
return 0;
|
||
|
|
||
|
}
|
||
|
|
||
|
else
|
||
|
{
|
||
|
return 1;
|
||
|
}
|
||
|
}
|