Initial upload
Initial upload
This commit is contained in:
36
_module/nss/fky_chat_clenter.nss
Normal file
36
_module/nss/fky_chat_clenter.nss
Normal file
@@ -0,0 +1,36 @@
|
||||
//::////////////////////////////////////////////////////////////////////////:://
|
||||
//:: SIMTools V2.1 Speech Integration & Management Tools Version 2.1 :://
|
||||
//:: Created By: FunkySwerve :://
|
||||
//:: Created On: April 4 2006 :://
|
||||
//:: Last Updated: September 29 2006 :://
|
||||
//:: With Thanks To: :://
|
||||
//:: Dumbo - for his amazing plugin :://
|
||||
//:: Virusman - for Linux versions, and for the reset plugin :://
|
||||
//:: Dazzle - for his script samples :://
|
||||
//:: Butch - for the emote wand scripts :://
|
||||
//:: The DMFI project - for the languages conversions and many of the emotes:://
|
||||
//:: Lanessar and the players of the Myth Drannor PW - for the new languages:://
|
||||
//::////////////////////////////////////////////////////////////////////////:://
|
||||
#include "fky_chat_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetEnteringObject();
|
||||
string sCDKey = GetPCPublicCDKey(oPC);
|
||||
Speech_OnClientEnter(oPC);
|
||||
int nPerm, nPerm2;
|
||||
if (USING_NWNX_DB)
|
||||
{
|
||||
nPerm = GetPersistentInt(GetModule(), "FKY_CHT_BANSHOUT" + sCDKey);
|
||||
nPerm2 = GetPersistentInt(GetModule(), "FKY_CHT_BANPLAYER" + sCDKey);;
|
||||
if (ENABLE_LANGUAGES) DoLanguageSetupNWNX(oPC);
|
||||
}
|
||||
else //using Bioware db
|
||||
{
|
||||
nPerm = GetCampaignInt("FKY_CHT", "FKY_CHT_BANSHOUT" + sCDKey);
|
||||
nPerm2 = GetCampaignInt("FKY_CHT", "FKY_CHT_BANPLAYER" + sCDKey);
|
||||
if (ENABLE_LANGUAGES) DoLanguageSetupBio(oPC);
|
||||
}
|
||||
if (nPerm) SetLocalInt(oPC, "FKY_CHT_BANSHOUT", TRUE);
|
||||
if (nPerm2 || GetLocalInt(oPC, "FKY_CHT_BANPLAYER")) DoBoot(oPC);//Boot them if Valid Object
|
||||
}
|
Reference in New Issue
Block a user