34 lines
787 B
Plaintext
34 lines
787 B
Plaintext
|
//Script Name: setrandomcolor
|
||
|
//////////////////////////////////////////
|
||
|
//Created by: Genisys / Guile
|
||
|
//ON: 6/17/08
|
||
|
/////////////////////////////////////////
|
||
|
/* **Notes**
|
||
|
|
||
|
This script goes in the Action Taken
|
||
|
of a Converstion Line ONLY! It will
|
||
|
colorize ALL Of the items in a PCs
|
||
|
inventory a random color, each item a
|
||
|
different color!
|
||
|
*/
|
||
|
////////////////////////////////////////
|
||
|
|
||
|
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(oPC, "RANDOM_COLOR_1", a);
|
||
|
SetLocalInt(oPC, "RANDOM_COLOR_2", b);
|
||
|
SetLocalInt(oPC, "RANDOM_COLOR_3", c);
|
||
|
|
||
|
//Tell the chat control what color to use..
|
||
|
SetLocalInt(oPC, "CHAT_COLOR", 15);
|
||
|
}
|