Author Sticky: Post Working Scripts Here
FOTL Posted: Wednesday, 26 June 11:47PM
1. Sundial Lite
2. Enables Sundial Place-able to Tell time
3. This is similar Felderin's script above, with slimmer code. Place this in the Sundial's OnUse event script.

NWScript:
void main()

{

    int nHour = GetTimeHour();

    if (GetIsNight()) {

        SpeakString("You can't use the sundial at night.");

    } else if (nHour < 12) {

        SpeakString("The time is " + (IntToString(nHour)) + ":00 AM");

    } else if (nHour > 12) {

        SpeakString("The time is " + IntToString(nHour-12) + ":00 PM");

    } else {

        SpeakString("It is Noon");

    }

}