//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! */ //////////////////////////////////////// //WARNING: DON'T TOUCH THE STRINGS BELOW!!!!!!//// const string COLORTOKEN = " ##################$%&'()*+,-./0123456789:;;==?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[[]^_`abcdefghijklmnopqrstuvwxyz{|}~~"; // returns a properly color-coded string based on specified RGB values string ColorString(int nRed=255, int nGreen=255, int nBlue=255) { return ""; } //Main Script// void main() { //Define Major Variables object oPC = GetPCSpeaker() ; object oItem; string sColor; int a; int b; int c; oItem = GetFirstItemInInventory(oPC); //Loop through all the items in the PC's inventory.. while(GetIsObjectValid(oItem)==TRUE) { //Be careful with items with a color string already on them!!! if(GetSubString(GetName(oItem), 0, 2)=="