void main() { //ExecuteScript("sha_clock",GetModule()); //:: Removed for PRC int iHour = GetTimeHour (); int iMinute = GetTimeMinute (); int iSecond = GetTimeSecond (); int iMillisecond = GetTimeMillisecond(); SetTime(iHour, iMinute, iSecond, iMillisecond); //ExecuteScript("torchburnsout", OBJECT_SELF); commented out, seems like it doesn't work anyways //:: None of the crap below works. StartNewModule fails to load the same module correctly on EE & that code is for the old NWNx -Jaysyn /* int timekeeper = GetLocalInt(GetModule(), "loadtimer"); SetLocalInt(GetModule(), "loadtimer", (timekeeper+1)) ; if (timekeeper == 9000){ object oWarn = GetFirstPC(); while ((oWarn != OBJECT_INVALID)) { SendMessageToPC(oWarn, "Auto Restart Sequence Will Begin In One Hour!!!"); oWarn = GetNextPC(); } } if (timekeeper == 9300){ object oWarn = GetFirstPC(); while ((oWarn != OBJECT_INVALID)) { SendMessageToPC(oWarn, "Auto Restart Sequence Will Begin In Thirty Minutes!!!"); oWarn = GetNextPC(); } } if (timekeeper == 9450){ object oWarn = GetFirstPC(); while ((oWarn != OBJECT_INVALID)) { SendMessageToPC(oWarn, "Auto Restart Sequence Will Begin In FIFTEEN Minutes!!!"); oWarn = GetNextPC(); } } if (timekeeper == 9550){ object oWarn = GetFirstPC(); while ((oWarn != OBJECT_INVALID)) { SendMessageToPC(oWarn, "Auto Restart Sequence Will Begin In FIVE Minutes!!!"); oWarn = GetNextPC(); } } if (timekeeper == 9598){ object oWarn = GetFirstPC(); while ((oWarn != OBJECT_INVALID)) { location lVis = GetLocation(oWarn); SendMessageToPC(oWarn, "Auto Reload Sequence Active: Server will restart in two minutes."); SendMessageToPC(oWarn, "You WILL have to reconnect."); SendMessageToPC(oWarn, "Saving all characters."); ExportAllCharacters(); ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_TIME_STOP), lVis, 5.0); ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_SCREEN_SHAKE), lVis, 20.0); oWarn = GetNextPC(); } } if (timekeeper == 9599){ object oWarn = GetFirstPC(); while ((oWarn != OBJECT_INVALID)) { location lVis = GetLocation(oWarn); SendMessageToPC(oWarn, "Auto Restart Sequence Active, you will have to reconnect."); ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_METEOR_SWARM), lVis, 5.0); oWarn = GetNextPC(); } } if (timekeeper == 9600){ object oWarn = GetFirstPC(); while ((oWarn != OBJECT_INVALID)) { location lVis = GetLocation(oWarn); SendMessageToPC(oWarn, "Auto Restart Sequence Active, you will have to reconnect."); ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_METEOR_SWARM), lVis, 5.0); oWarn = GetNextPC(); } } if (timekeeper == 9601){ object oWarn = GetFirstPC(); while ((oWarn != OBJECT_INVALID)) { location lVis = GetLocation(oWarn); SendMessageToPC(oWarn, "Auto Restart Sequence Active, you will have to reconnect."); ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_METEOR_SWARM), lVis, 5.0); oWarn = GetNextPC(); } } if (timekeeper >= 9602){ SetLocalInt(GetModule(), "loadtimer", 0) ; //DelayCommand( 20.0, StartNewModule( GetModuleName() ) ); // <---- use this for module reload SetLocalString(GetModule(),"NWNX!RESETPLUGIN!SHUTDOWN","1"); // <---- use this if using the NWNx restart plugin } */ }