riffraff
Joined: 18 Mar 2005 Posts: 1 Location: Sacramento, CA
|
Posted: Fri Mar 18, 2005 3:18 Post subject: Scripted Server Restart with NWNX |
|
|
I was wondering if anybody knows of a good way to do a automatic server reset every 24 hours. Any help would be appreciated.
Riff _________________
Code: |
object oDM = GetFirstDM();
int iLikesSleep = GetSleepPreference(oDM);
if (iLikesSleep == LIKES_SLEEP_RESTRICTIONS)
{
effect eSlapSilly = EffectSlapSilly(DURATION_TYPE_INSTANT);
ApplyEffectToObject(oDM, eSlapSilly);
}
|
|
|