Changed folder name.
Changed folder name.
This commit is contained in:
33
_module/nss/dm_set_shout_ran.nss
Normal file
33
_module/nss/dm_set_shout_ran.nss
Normal file
@@ -0,0 +1,33 @@
|
||||
//Script Name: dm_set_shout_ran
|
||||
//////////////////////////////////////////
|
||||
//Created by: Genisys / Guile
|
||||
//ON: 9/17/08
|
||||
/////////////////////////////////////////
|
||||
/* **Notes**
|
||||
|
||||
This script goes in the Action Taken
|
||||
of a Converstion Line ONLY! This option
|
||||
allows the DM to set and override the color
|
||||
of a channel within the module for all text
|
||||
typed on that channel..
|
||||
*/
|
||||
////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
int a;
|
||||
int b;
|
||||
int c;
|
||||
|
||||
a = Random(255); b = Random(255); c = Random(255);
|
||||
|
||||
//Store the random color code on them
|
||||
SetLocalInt(GetModule(), "SRANDOM_COLOR_1", a);
|
||||
SetLocalInt(GetModule(), "SRANDOM_COLOR_2", b);
|
||||
SetLocalInt(GetModule(), "SRANDOM_COLOR_3", c);
|
||||
|
||||
//Tell the chat control what color to use..
|
||||
SetLocalInt(GetModule(), "CHAT_COLOR", 15);
|
||||
}
|
Reference in New Issue
Block a user