Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
#include "nwnx_admin"
void BootAll()
{
ExportAllCharacters();
object pc = GetFirstPC();
while (pc != OBJECT_INVALID)
{
BootPC(pc, "Anphillia is updating, please log again in a minute");
pc = GetNextPC();
}
WriteTimestampedLogEntry("All players booted");
}
void main()
{
object oUsedBy = GetLastUsedBy();
if (!GetIsDM(oUsedBy))
{
SendMessageToPC(oUsedBy, "Only a DM can initiate a server restart.");
return;
}
WriteTimestampedLogEntry("Server restart requested.");
AssignCommand(GetModule(), SpeakString("The server will restart in 1 minute.", TALKVOLUME_SHOUT));
object pc = GetFirstPC();
while (pc != OBJECT_INVALID)
{
SendMessageToPC(pc, "The server will restart in 1 minute.");
pc = GetNextPC();
}
DelayCommand(60.0, BootAll());
DelayCommand(63.0, NWNX_Administration_ShutdownServer());
}