NWNX:EE  8193.36.12
nwnx_admin.nss File Reference
#include "nwnx"

Go to the source code of this file.

Functions

string NWNX_Administration_GetPlayerPassword ()
 Gets the current player password. More...
 
void NWNX_Administration_SetPlayerPassword (string password)
 Sets the password for players to login. More...
 
void NWNX_Administration_ClearPlayerPassword ()
 Clears the player password required to login. More...
 
string NWNX_Administration_GetDMPassword ()
 Gets the current DM password. More...
 
void NWNX_Administration_SetDMPassword (string password)
 Sets the password for DMs to login. More...
 
void NWNX_Administration_ShutdownServer ()
 Signals the server to immediately shut down. More...
 
void NWNX_Administration_DeletePlayerCharacter (object oPC, int bPreserveBackup=TRUE, string sKickMessage="")
 Deletes the player character from the servervault. More...
 
void NWNX_Administration_AddBannedIP (string ip)
 Bans the provided IP. More...
 
void NWNX_Administration_RemoveBannedIP (string ip)
 Removes the ban on the provided IP. More...
 
void NWNX_Administration_AddBannedCDKey (string key)
 Bans the provided Public CD Key. More...
 
void NWNX_Administration_RemoveBannedCDKey (string key)
 Removes the ban on the provided Public CD Key. More...
 
void NWNX_Administration_AddBannedPlayerName (string playerName)
 Bans the provided playername. More...
 
void NWNX_Administration_RemoveBannedPlayerName (string playerName)
 Removes the ban on the provided playername. More...
 
string NWNX_Administration_GetBannedList ()
 Get a list of all banned IPs/Keys/names as a string. More...
 
void NWNX_Administration_SetModuleName (string name)
 Set the module's name as shown to the serverlist. More...
 
void NWNX_Administration_SetServerName (string name)
 Set the server's name as shown to the serverlist. More...
 
string NWNX_Administration_GetServerName ()
 Returns the server's name as shown to the serverlist. More...
 
int NWNX_Administration_GetPlayOption (int option)
 Get an Administration Option value. More...
 
void NWNX_Administration_SetPlayOption (int option, int value)
 Set an Administration Options to a value. More...
 
int NWNX_Administration_DeleteTURD (string playerName, string characterName)
 Delete the TURD of playerName + characterName. More...
 
int NWNX_Administration_GetDebugValue (int type)
 Get an Administration Debug Type value. More...
 
void NWNX_Administration_SetDebugValue (int type, int state)
 Set an Administration Debug Type to a value. More...
 
void NWNX_Administration_ReloadRules ()
 Reload all rules (2da stuff etc). More...
 
int NWNX_Administration_GetMinLevel ()
 Get the servers minimum level. More...
 
void NWNX_Administration_SetMinLevel (int nLevel)
 Set the servers minimum level. More...
 
int NWNX_Administration_GetMaxLevel ()
 Get the servers maximum level. More...
 
void NWNX_Administration_SetMaxLevel (int nLevel)
 Set the servers maximum level. More...
 

Variables

Administration Options

const int NWNX_ADMINISTRATION_OPTION_ALL_KILLABLE = 0
 
const int NWNX_ADMINISTRATION_OPTION_NON_PARTY_KILLABLE = 1
 
const int NWNX_ADMINISTRATION_OPTION_REQUIRE_RESURRECTION = 2
 
const int NWNX_ADMINISTRATION_OPTION_LOSE_STOLEN_ITEMS = 3
 
const int NWNX_ADMINISTRATION_OPTION_LOSE_ITEMS = 4
 
const int NWNX_ADMINISTRATION_OPTION_LOSE_EXP = 5
 
const int NWNX_ADMINISTRATION_OPTION_LOSE_GOLD = 6
 
const int NWNX_ADMINISTRATION_OPTION_LOSE_GOLD_NUM = 7
 
const int NWNX_ADMINISTRATION_OPTION_LOSE_EXP_NUM = 8
 
const int NWNX_ADMINISTRATION_OPTION_LOSE_ITEMS_NUM = 9
 
const int NWNX_ADMINISTRATION_OPTION_PVP_SETTING = 10
 
const int NWNX_ADMINISTRATION_OPTION_PAUSE_AND_PLAY = 11
 
const int NWNX_ADMINISTRATION_OPTION_ONE_PARTY_ONLY = 12
 
const int NWNX_ADMINISTRATION_OPTION_ENFORCE_LEGAL_CHARACTERS = 13
 
const int NWNX_ADMINISTRATION_OPTION_ITEM_LEVEL_RESTRICTIONS = 14
 
const int NWNX_ADMINISTRATION_OPTION_CDKEY_BANLIST_ALLOWLIST = 15
 
const int NWNX_ADMINISTRATION_OPTION_DISALLOW_SHOUTING = 16
 
const int NWNX_ADMINISTRATION_OPTION_SHOW_DM_JOIN_MESSAGE = 17
 
const int NWNX_ADMINISTRATION_OPTION_BACKUP_SAVED_CHARACTERS = 18
 
const int NWNX_ADMINISTRATION_OPTION_AUTO_FAIL_SAVE_ON_1 = 19
 
const int NWNX_ADMINISTRATION_OPTION_VALIDATE_SPELLS = 20
 
const int NWNX_ADMINISTRATION_OPTION_EXAMINE_EFFECTS = 21
 
const int NWNX_ADMINISTRATION_OPTION_EXAMINE_CHALLENGE_RATING = 22
 
const int NWNX_ADMINISTRATION_OPTION_USE_MAX_HITPOINTS = 23
 
const int NWNX_ADMINISTRATION_OPTION_RESTORE_SPELLS_USES = 24
 
const int NWNX_ADMINISTRATION_OPTION_RESET_ENCOUNTER_SPAWN_POOL = 25
 
const int NWNX_ADMINISTRATION_OPTION_HIDE_HITPOINTS_GAINED = 26
 
const int NWNX_ADMINISTRATION_OPTION_PLAYER_PARTY_CONTROL = 27
 
const int NWNX_ADMINISTRATION_OPTION_SHOW_PLAYER_JOIN_MESSAGES = 28
 
Administration Debug Types

const int NWNX_ADMINISTRATION_DEBUG_COMBAT = 0
 
const int NWNX_ADMINISTRATION_DEBUG_SAVING_THROW = 1
 
const int NWNX_ADMINISTRATION_DEBUG_MOVEMENT_SPEED = 2
 
const int NWNX_ADMINISTRATION_DEBUG_HIT_DIE = 3