Warning:  I received the following from a site visitor:
I'm not sure if other people are having the same problem, but it was causing my Dedicated Server to crash, and also a lot of my players were complaining that they were crashing from them too. Just wanted to make it known if it wasn't already :) Thanks

Author Sticky: Post Working Scripts Here
Moondog Posted: Friday, 21 June 06:08PM
1. Name: Day/Night Lights

2. What it does: Turns a placeable light on during the night and off during the day.

3. Notes: Meant to be placed on the OnHeartbeat event of a placeable light.

4. Script:
NWScript:
//:: j_light_daynight.nss

//:: Based on NW_O2_ONOFF.nss

//:: Copyright (c) 2001 Bioware Corp.



//:: Modified By:  Moondog

//:: Modified On:  June 21, 2002

//:: Changed from an on/off switch for lights to

//:: automatically turning a light on during the

//:: night and off during the day.

//:: This is an OnHeartbeat script for placeable

//:: lights.

//:: Original Created By:  Brent

//:: Original Created On:  January 2002

void TurnOnLight();

void TurnOffLight();

void main()

{

//runonce

    if (GetLocalInt (OBJECT_SELF,"RUNONCE") != 1)

    {

        SetLocalInt (OBJECT_SELF,"RUNONCE", 1);

        PlayAnimation (ANIMATION_PLACEABLE_DEACTIVATE);

        SetPlaceableIllumination (OBJECT_SELF, FALSE);

        SetLocalInt (OBJECT_SELF,"NW_L_AMION",0);

        RecomputeStaticLighting (GetArea(OBJECT_SELF));

    }



//normal heartbeat

    if (GetLocalInt (OBJECT_SELF,"NW_L_AMION") == 0 && GetIsNight() == TRUE)

    {

        TurnOnLight();

    }

    else if (GetLocalInt (OBJECT_SELF,"NW_L_AMION") == 1 && GetIsDay() == TRUE)

    {

        TurnOffLight();

    }

}

void TurnOnLight()

{

    PlayAnimation (ANIMATION_PLACEABLE_ACTIVATE);

    SetPlaceableIllumination (OBJECT_SELF, TRUE);

    SetLocalInt (OBJECT_SELF,"NW_L_AMION",1);

    RecomputeStaticLighting (GetArea(OBJECT_SELF));

}

void TurnOffLight()

{

    PlayAnimation (ANIMATION_PLACEABLE_DEACTIVATE);

    SetPlaceableIllumination (OBJECT_SELF, FALSE);

    SetLocalInt (OBJECT_SELF,"NW_L_AMION",0);

    RecomputeStaticLighting (GetArea(OBJECT_SELF));

}