Initial commit

Initial commit
This commit is contained in:
Jaysyn904
2024-09-13 09:10:39 -04:00
parent 09dc8aec92
commit d1c309ae63
8437 changed files with 8727659 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
////////////////////////////////////////////////////////////////////////////////
// Modlue Reload
// opw_dm_modreload
// By Don Anderson
// dandersonru@msn.com
//
// This is called from opw_dm_switch
//
////////////////////////////////////////////////////////////////////////////////
void ReloadCount(object oMod)
{
int nCount = GetLocalInt(oMod,"RELOADCOUNT");
if(nCount == 0) nCount = 10;
if(nCount > 1)
{
nCount = nCount - 1;
SpeakString("Server restarting in: " +IntToString(nCount), TALKVOLUME_SHOUT);
}
else
{
ExportAllCharacters();
string sMod = GetLocalString(oMod,"MODNAME");
StartNewModule(sMod);
return;
}
SetLocalInt(oMod,"RELOADCOUNT",nCount);
DelayCommand(3.0,ReloadCount(oMod));
}
void main()
{
object oMod = GetModule();
DelayCommand(3.0,ReloadCount(oMod));
}