I am going to refrain from listing all the possiable pit falls of doing this and assune that your request matches the situation for the game you are building. So here is the script the way you requested it.
void main()
{
object oPC= GetEnteringObject();
if (GetIsDM(oPC)) return;
object oOther = GetFirstPC();
while ( GetIsObjectValid(oOther))
{
if ( oOther != oPC &&
GetArea(oOther) == OBJECT_SELF &&
!GetIsDM(oOther)
) return;
oOther = GetNextPC();
}
SetTime(GetTimeHour()+4,GetTimeMinute(),GetTimeSecond(),0);
}
Modifié par Lightfoot8, 12 juin 2012 - 11:23 .