/// <summary> /// Change the player password. /// </summary> /// <param name="Script">Supplies the caller's script object.</param> /// <param name="Password">Supplies the new password to set.</param> public static void SetPlayerPassword(CLRScriptBase Script, string Password) { Script.NWNXSetString("SRVADMIN", "SETPLAYERPASSWORD", Password, 0, ""); }
/// <summary> /// Change the admin password. /// </summary> /// <param name="Script">Supplies the caller's script object.</param> /// <param name="Password">Supplies the new password to set.</param> public static void SetAdminPassword(CLRScriptBase Script, string Password) { Script.NWNXSetString("SRVADMIN", "SETADMINPASSWORD", Password, 0, ""); }
/// <summary> /// Request that the game server cleanly shut down. Note that NWNX4 /// will restart the game server afterwards in the default ALFA /// configuration, so this function is usually used to restart the game /// server, not stop it permanently. /// </summary> /// <param name="Script">Supplies the caller's script object.</param> public static void ShutdownGameServer(CLRScriptBase Script) { Script.NWNXSetString("SRVADMIN", "SHUTDOWNNWN2SERVER", "", 0, ""); }