Hi,
This first script kills any creatures you attach it to when the time of day is between 6am and 6pm.




//::///////////////////////////////////////////////
//:: Name: Opticus
//:: FileName: killatdawn.nss
//:://////////////////////////////////////////////
/*
07/19/2002 Initial Creation
This script checks the current game time. If the game time is somewhere
between 6am and 6pm, all creatures which have this script attached to them
will be destroyed. Good for killing off any undead creatures which aren't
supposed to be around in the daylight. Place this script on the heartbeat
event of the creature you will be creating.
*/
void main()
{
int HourOfDay;
HourOfDay = GetTimeHour(); //Get the value for the current hour of the day.
//If it is between 6am and 6pm, destroy this object.
if(HourOfDay >= 6 && HourOfDay <= 18)
{
DestroyObject(OBJECT_SELF,0.0);
}
}





This second script will not allow certain encounters to spawn if the time of day is between 6am and 6pm.




//::///////////////////////////////////////////////
//:: Created By: Opticus
//:: FileName: nodayencounter.nss
//:://////////////////////////////////////////////
/*
07/19/2002 Initial Creation
This script checks the current game time for use with an encounter.
If the game time is somewhere between 6am and 6pm, all creatures which
would normally be spawned in the encounter will not not spawn. This will assure
that certain selected undead creatures will only spawn in the hours of
darkness even if the player steps within the encounter area on the screen.
Place this script on the on_enter event of an encounter.
*/
void main()
{
//declarations
int HourOfDay;
//Assign the current hour of the day to our variable.
HourOfDay = GetTimeHour();
if(HourOfDay >= 6 && HourOfDay <= 18) //See if the hour is between 6am-6pm
{
//If it is don't start the encounter.
SetEncounterActive(FALSE,OBJECT_SELF);
}
}