Initial upload
Initial upload.
This commit is contained in:
33
_module/nss/pgs_mssngr_cmmnd.nss
Normal file
33
_module/nss/pgs_mssngr_cmmnd.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name: pgs_mssngr_cmmnd
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
This script will set several custom tokens
|
||||
displaying the status for several PGS
|
||||
messenger commands.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Samius Maximus
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
int StartingConditional()
|
||||
{
|
||||
//--------------------------------------------
|
||||
//Display current follow command status.
|
||||
//--------------------------------------------
|
||||
if (GetLocalInt (OBJECT_SELF, "Messenger_Following"))
|
||||
SetCustomToken (2001, "Stop");
|
||||
else
|
||||
SetCustomToken (2001, "Start");
|
||||
|
||||
//--------------------------------------------
|
||||
//Display current listen command status.
|
||||
//--------------------------------------------
|
||||
if (GetIsListening (OBJECT_SELF))
|
||||
SetCustomToken (2002, "Stop");
|
||||
else
|
||||
SetCustomToken (2002, "Start");
|
||||
|
||||
return TRUE; /*Conditional.*/
|
||||
}
|
||||
Reference in New Issue
Block a user