Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

New Titler

Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
11-03-2006 08:56
Feel free to use and abuse....
CODE

// title maker - v1.5
// Newgate Ludd
//
// syntax /channel [Colour Name] title my new title
// syntax /channel colour red green blue (0-100)
// syntax /channel alpha value
// syntax /channel channel channelnumber
//
// or any combination of the above /channel colour red green blue alpha 0.5 title Hello
//
key owner;

vector vcolour = <1.0,1.0,1.0>;
float alpha =1.0;
string title = "";

list lNames;
list lColours;
integer counter = 0;
integer max = 0;
integer seconds = 10;
integer chan = 123;

InitColours()
{
lNames = ["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige",
"Bisque","Black","BlanchedAlmond","Blue","BlueViolet",
"Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate",
"Coral","CornflowerBlue","Cornsilk","Crimson","Cyan",
"DarkBlue","DarkCyan","DarkGoldenRod","DarkGray","DarkGreen",
"DarkKhaki","DarkMagenta","DarkOliveGreen","DarkOrange","DarkOrchid",
"DarkRed","DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray",
"DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue","DimGray",
"DodgerBlue","Feldspar","FireBrick","FloralWhite","ForestGreen",
"Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod",
"Gray","Green","GreenYellow","HoneyDew","HotPink",
"IndianRed","Indigo","Ivory","Khaki","Lavender",
"LavenderBlush","LawnGreen","LemonChiffon","LightBlue","LightCoral"]+
["LightCyan","LightGoldenRodYellow","LightGrey","LightGreen","LightPink",
"LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateBlue","LightSlateGray",
"LightSteelBlue","LightYellow","Lime","LimeGreen","Linen",
"Magenta","Maroon","MediumAquaMarine","MediumBlue","MediumOrchid",
"MediumPurple","MediumSeaGreen","MediumSlateBlue","MediumSpringGreen","MediumTurquoise",
"MediumVioletRed","MidnightBlue","MintCream","MistyRose","Moccasin",
"NavajoWhite","Navy","OldLace","Olive","OliveDrab",
"Orange","OrangeRed","Orchid","PaleGoldenRod","PaleGreen",
"PaleTurquoise","PaleVioletRed","PapayaWhip","PeachPuff","Peru",
"Pink","Plum","PowderBlue","Purple","Red",
"RosyBrown","RoyalBlue","SaddleBrown","Salmon","SandyBrown",
"SeaGreen","SeaShell","Sienna","Silver","SkyBlue"]+
["SlateBlue","SlateGray","Snow","SpringGreen","SteelBlue",
"Tan","Teal","Thistle","Tomato","Turquoise",
"Violet","VioletRed","Wheat","White","WhiteSmoke",
"Yellow","YellowGreen" ];

lColours = [ <0.941176,0.972549,1.000000>, // Alice Blue
<0.980392,0.921569,0.843137>, // Antique White
<0.000000,1.000000,1.000000>, // Aqua
<0.498039,1.000000,0.831373>, // Aquamarine
<0.941176,1.000000,1.000000>, // Azure
<0.960784,0.960784,0.862745>, // Beige
<1.000000,0.894118,0.768627>, // Bisque
<0.000000,0.000000,0.000000>, // Black
<1.000000,0.921569,0.803922>, // Blanched Almond
<0.000000,0.000000,1.000000>, // Blue
<0.541176,0.168627,0.886275>, // Blue Violet
<0.647059,0.164706,0.164706>, // Brown
<0.870588,0.721569,0.529412>, // Burly Wood
<0.372549,0.619608,0.627451>, // Cadet Blue
<0.498039,1.000000,0.000000>, // Chartreuse
<0.823529,0.411765,0.117647>, // Chocolate
<1.000000,0.498039,0.313725>, // Coral
<0.392157,0.584314,0.929412>, // Cornflower Blue
<1.000000,0.972549,0.862745>, // Cornsilk
<0.862745,0.078431,0.235294>, // Crimson
<0.000000,1.000000,1.000000>, // Cyan
<0.000000,0.000000,0.545098>, // Dark Blue
<0.000000,0.545098,0.545098>, // Dark Cyan
<0.721569,0.525490,0.043137>, // Dark Golden Rod
<0.662745,0.662745,0.662745>, // Dark Gray
<0.000000,0.392157,0.000000>, // Dark Green
<0.741176,0.717647,0.419608>, // Dark Khaki
<0.545098,0.000000,0.545098>, // Dark Magenta
<0.333333,0.419608,0.184314>, // Dark Olive Green
<1.000000,0.549020,0.000000>, // Dark Orange
<0.600000,0.196078,0.800000>, // Dark Orchid
<0.545098,0.000000,0.000000>, // Dark Red
<0.913725,0.588235,0.478431>, // Dark Salmon
<0.560784,0.737255,0.560784>, // Dark Sea Green
<0.282353,0.239216,0.545098>, // Dark Slate Blue
<0.184314,0.309804,0.309804>, // Dark Slate Gray
<0.000000,0.807843,0.819608>, // Dark Turquoise
<0.580392,0.000000,0.827451>, // Dark Violet
<1.000000,0.078431,0.576471>, // Deep Pink
<0.000000,0.749020,1.000000>, // Deep Sky Blue
<0.411765,0.411765,0.411765>, // Dim Gray
<0.117647,0.564706,1.000000>, // Dodger Blue
<0.819608,0.572549,0.458824>, // Feldspar
<0.698039,0.133333,0.133333>, // Fire Brick
<1.000000,0.980392,0.941176>, // Floral White
<0.133333,0.545098,0.133333>, // Forest Green
<1.000000,0.000000,1.000000>, // Fuchsia
<0.862745,0.862745,0.862745>, // Gainsboro
<0.972549,0.972549,1.000000>, // Ghost White
<1.000000,0.843137,0.000000>, // Gold
<0.854902,0.647059,0.125490>, // Golden Rod
<0.501961,0.501961,0.501961>, // Gray
<0.000000,0.501961,0.000000>, // Green
<0.678431,1.000000,0.184314>, // Green Yellow
<0.941176,1.000000,0.941176>, // Honey Dew
<1.000000,0.411765,0.705882>, // Hot Pink
<0.803922,0.360784,0.360784>, // Indian Red
<0.294118,0.000000,0.509804>, // Indigo
<1.000000,1.000000,0.941176>] + // Ivory
[<0.941176,0.901961,0.549020>, // Khaki
<0.901961,0.901961,0.980392>, // Lavender
<1.000000,0.941176,0.960784>, // Lavender Blush
<0.486275,0.988235,0.000000>, // Lawn Green
<1.000000,0.980392,0.803922>, // Lemon Chiffon
<0.678431,0.847059,0.901961>, // Light Blue
<0.941176,0.501961,0.501961>, // Light Coral
<0.878431,1.000000,1.000000>,// Light Cyan
<0.980392,0.980392,0.823529>, // Light Golden Rod Yellow
<0.827451,0.827451,0.827451>, // Light Grey
<0.564706,0.933333,0.564706>, // Light Green
<1.000000,0.713725,0.756863>, // Light Pink
<1.000000,0.627451,0.478431>, // Light Salmon
<0.125490,0.698039,0.666667>, // Light Sea Green
<0.529412,0.807843,0.980392>, // Light Sky Blue
<0.517647,0.439216,1.000000>, // Light Slate Blue
<0.466667,0.533333,0.600000>, // Light Slate Gray
<0.690196,0.768627,0.870588>, // Light Steel Blue
<1.000000,1.000000,0.878431>, // Light Yellow
<0.000000,1.000000,0.000000>, // Lime
<0.196078,0.803922,0.196078>, // Lime Green
<0.980392,0.941176,0.901961>, // Linen
<1.000000,0.000000,1.000000>, // Magenta
<0.501961,0.000000,0.000000>, // Maroon
<0.400000,0.803922,0.666667>, // Medium Aqua Marine
<0.000000,0.000000,0.803922>, // Medium Blue
<0.729412,0.333333,0.827451>, // Medium Orchid
<0.576471,0.439216,0.847059>, // Medium Purple
<0.235294,0.701961,0.443137>, // Medium Sea Green
<0.482353,0.407843,0.933333>, // Medium Slate Blue
<0.000000,0.980392,0.603922>, // Medium Spring Green
<0.282353,0.819608,0.800000>, // Medium Turquoise
<0.780392,0.082353,0.521569>, // Medium Violet Red
<0.098039,0.098039,0.439216>, // Midnight Blue
<0.960784,1.000000,0.980392>, // Mint Cream
<1.000000,0.894118,0.882353>, // Misty Rose
<1.000000,0.894118,0.709804>, // Moccasin
<1.000000,0.870588,0.678431>, // Navajo White
<0.000000,0.000000,0.501961>, // Navy
<0.992157,0.960784,0.901961>, // Old Lace
<0.501961,0.501961,0.000000>, // Olive
<0.419608,0.556863,0.137255>, // Olive Drab
<1.000000,0.647059,0.000000>, // Orange
<1.000000,0.270588,0.000000>, // Orange Red
<0.854902,0.439216,0.839216>, // Orchid
<0.933333,0.909804,0.666667>, // Pale Golden Rod
<0.596078,0.984314,0.596078>, // Pale Green
<0.686275,0.933333,0.933333>, // Pale Turquoise
<0.847059,0.439216,0.576471>, // Pale Violet Red
<1.000000,0.937255,0.835294>, // Papaya Whip
<1.000000,0.854902,0.725490>, // Peach Puff
<0.803922,0.521569,0.247059>, // Peru
<1.000000,0.752941,0.796078>, // Pink
<0.866667,0.627451,0.866667>, // Plum
<0.690196,0.878431,0.901961>, // Powder Blue
<0.501961,0.000000,0.501961>, // Purple
<1.000000,0.000000,0.000000>, // Red
<0.737255,0.560784,0.560784>, // Rosy Brown
<0.254902,0.411765,0.882353>, // Royal Blue
<0.545098,0.270588,0.074510>]+ // Saddle Brown
[<0.980392,0.501961,0.447059>, // Salmon
<0.956863,0.643137,0.376471>, // Sandy Brown
<0.180392,0.545098,0.341176>, // Sea Green
<1.000000,0.960784,0.933333>, // Sea Shell
<0.627451,0.321569,0.176471>, // Sienna
<0.752941,0.752941,0.752941>, // Silver
<0.529412,0.807843,0.921569>, // Sky Blue
<0.415686,0.352941,0.803922>, // Slate Blue
<0.439216,0.501961,0.564706>, // Slate Gray
<1.000000,0.980392,0.980392>, // Snow
<0.000000,1.000000,0.498039>, // Spring Green
<0.274510,0.509804,0.705882>, // Steel Blue
<0.823529,0.705882,0.549020>, // Tan
<0.000000,0.501961,0.501961>, // Teal
<0.847059,0.749020,0.847059>, // Thistle
<1.000000,0.388235,0.278431>, // Tomato
<0.250980,0.878431,0.815686>, // Turquoise
<0.933333,0.509804,0.933333>, // Violet
<0.815686,0.125490,0.564706>, // Violet Red
<0.960784,0.870588,0.701961>, // Wheat
<1.000000,1.000000,1.000000>, // White
<0.960784,0.960784,0.960784>, // White Smoke
<1.000000,1.000000,0.000000>, // Yellow
<0.603922,0.803922,0.196078>]; // Yellow Green

max = llGetListLength(lColours);
}

integer Colours(string item)
{
integer iFound = llListFindList(lNames, [item]);
if(iFound >= 0)
{
vcolour = llList2Vector(lColours,iFound);
iFound = 1;
}
else
{
iFound = 0;
}
return iFound;
}

Init()
{
if(max == 0)
{
InitColours();
}
owner = llGetOwner();
llOwnerSay("Initialised - on channel " + (string)chan);
llListen(chan, "", owner, "");
}

default
{
state_entry() { Init(); }

on_rez(integer number) { Init();}

timer()
{
vcolour = llList2Vector(lColours,counter);
llSetText(title, vcolour, alpha);
counter++;
if(counter > max)
{
counter = 0;
}
}


listen(integer channel, string name, key id, string message)
{
if(id == owner)
{
list lData = llParseString2List(message, [","," "], [""]);
integer size = llGetListLength(lData);
string item = llList2String(lData, 1);
if( message == "hide" )
{
llSetStatus(STATUS_PHANTOM, TRUE);
llSetAlpha(0,ALL_SIDES);
}
else if( message == "show" )
{
llSetStatus(STATUS_PHANTOM, FALSE);
llSetAlpha(1,ALL_SIDES);
}
else if( message == "cycleon" )
{
llSetTimerEvent(seconds);
counter = 0;
}
else if( message == "cycleoff" )
{
llSetTimerEvent(0);
counter = 0;
}
else if("set" == item)
{
item = llList2String(lData, 2);
if("timer" == item)
{
seconds = llList2Integer(lData, 3);
}
else if("channel" == item)
{
chan = llList2Integer(lData, 3);
llListen(chan, "", owner, "");
}
}
else
{
//ownerName = llGetSubString(strMsg,4,90);
integer i;
//llOwnerSay("Size= [" + (string)size + "]");
for(i = 0; i< size; i++)
{
item = llList2String(lData, i);
//llOwnerSay("Size= [" + (string)item + "]");
if("alpha" == item)
{
i++;
alpha = llList2Float(lData, i);
}
else if(Colours(item))
{
// Stop the colour cycler
llSetTimerEvent(0);
counter = 0;
}
else if(("colour" == item)||("color" == item))
{
float red;
float green;
float blue;
red = llList2Float(lData,(i+1))/100;
green = llList2Float(lData,(i+2))/100;
blue = llList2Float(lData,(i+3))/100;
vcolour = <red,green,blue>;
i = i + 3;
}
else if("title" == item)
{
//loop until another command is recognised
title = "";
i++;
integer j;
for(j = i; j< size; j++)
{
item = llList2String(lData, j);
if("alpha" == item)
{
i = j;
j = size;
}
else if(Colours(item))
{
}
else if("colour" == item)
{
i = j;
j= size;
}
else if("//" == item)
{
title += "\n";
}
else
{
if(j > i)
{
title += " ";
}
title += item;
}
}

}
}
llSetText(title, vcolour, alpha);
//llOwnerSay("Text = [" + title + "] colour = " + (string)vcolour + " alpha = " + (string)alpha);
}
}
}
}
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
11-04-2006 04:18
Wow.. Newgate.. that was free?

Where did you get it?
Anyplace I could pick up a working example of that in world?

CODE
integer newgateLudd = 0;
integer cheese = 1;

default
{
state_entry()
{
llSay(0, "Newgate Ludd has " + (string)newgateLudd + " cheese.");
}

touch_start(integer total_number)
{
newgateLudd += cheese;
llSay(0, "Newgate Ludd now has " + (string)newgateLudd + " cheese!");
}
}
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
11-04-2006 05:37
From: Winter Ventura
Wow.. Newgate.. that was free?

Where did you get it?
Anyplace I could pick up a working example of that in world?


Thats the source code to my free titler thats available @ .... no lets not go there again.... :)

From: Winter Ventura
CODE
integer newgateLudd = 0;
integer cheese = 1;

default
{
state_entry()
{
llSay(0, "Newgate Ludd has " + (string)newgateLudd + " cheese.");
}

touch_start(integer total_number)
{
newgateLudd += cheese;
llSetTimerEvent((integer)llFrand(30) + 20);
llSay(0, "Newgate Ludd now has " + (string)newgateLudd + " cheese!");
}
}


Lol.

CODE

integer newgateLudd = 0;


SayCheese()
{
if(0 == newgateLudd)
{
llSay(0, "Oh No Newgate Ludd *out of Cheese Error *");
llSetTimerEvent(0);
}
else if(1 == newgateLudd)
llSay(0, "Newgate Ludd has 1 cheese.");
else
llSay(0, "Newgate Ludd has " + (string)newgateLudd + " cheeses.");
}

default
{
state_entry()
{
SayCheese();
}

touch_start(integer total_number)
{
++newgateLudd;
SayChesse();
}

timer()
{
--newgateLudd;
SayChesse();
}
}



Did I mention my Free targettting poofie????? You can pick it up in Hibdon......
llllMOOSEllll Mostel
Registered User
Join date: 12 Feb 2006
Posts: 14
11-04-2006 10:56
No You didnt mention the poofie... what does it poof and where is it in Hibdon?
I didnt come across it when I was there.. to busy playing Mastermind I guess :P
_____________________
~¹'°°'¹i|¡ïvïð𧀡|i¹'°°'¹~™
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
11-04-2006 12:22
From: llllMOOSEllll Mostel
No You didnt mention the poofie... what does it poof and where is it in Hibdon?
I didnt come across it when I was there.. to busy playing Mastermind I guess :P


Its a tweetie heart balloon poofie. would have been behind you. Unless V has been shuffling stuff around.
1 2