Changed folder name.
Changed folder name.
This commit is contained in:
54
_module/nss/dm_chat_inc.nss
Normal file
54
_module/nss/dm_chat_inc.nss
Normal file
@@ -0,0 +1,54 @@
|
||||
///////////OPTIONAL SETTING(s)/////////////////////////////////
|
||||
|
||||
//Set this to 1 if you want to use the Bioware Standard
|
||||
//Persistent Database, otherwise Local Variables
|
||||
//will be used instead.. (Database is Permanent till lifted!)
|
||||
|
||||
const int nDatabase = 0; //(1 = ON / All Other #s = OFF)
|
||||
|
||||
//Set this to 1 if you wish to allow a PC to be able to use
|
||||
//the DM Chat Control Item (This is useful if you play on as a DM)
|
||||
//NOTE: a DM must STILL give the PC the item! The PC Can only control
|
||||
//the chat channels, nothing else!
|
||||
|
||||
const int nDMorPC = 1; //Default = 1 (A PC Can use Channel Control)
|
||||
|
||||
//Set this to 0 if you do NOT want PC's to use color text.
|
||||
//This allows the players to speak in colors
|
||||
//NOTE This can be turned on with the DM Chat Control Item.
|
||||
|
||||
const int nPCColorText = 1; //Default = 1 (Allowed)
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
/////////WARNING: DON'T TOUCH THE FUNCTIONS BELOW!////////////
|
||||
|
||||
|
||||
//PROTOTYPE DEFINED
|
||||
|
||||
void GetChatConfigurations()
|
||||
{
|
||||
|
||||
//Tell the module banning is persistent!
|
||||
if(nDatabase==1)
|
||||
{
|
||||
//Tell other scripts how to use Variables (Database or Local)
|
||||
SetLocalInt(GetModule(), "PERSISTENT_CHAT", 1);
|
||||
}
|
||||
|
||||
//Tell the module anyone can control chat (with the DM Item)
|
||||
if(nDMorPC==1)
|
||||
{
|
||||
SetLocalInt(GetModule(), "PC_CHAT_CONTROL", 1);
|
||||
}
|
||||
|
||||
//If the user has set to allow PC Color Chat...
|
||||
if(nPCColorText==1)
|
||||
{
|
||||
//Tell the module the PC's can use color..
|
||||
SetLocalInt(GetModule(), "COLORS_OK", 1);
|
||||
}
|
||||
//Your OnModuleLoad Event Code goes here...
|
||||
|
||||
}
|
Reference in New Issue
Block a user