Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Listen/Repeat Script Help Needed!

Vixen Babii
Registered User
Join date: 3 Feb 2007
Posts: 3
09-27-2008 22:23
I am looking for a script to place into an object that will listen on a channel and then the object repeat it outloud in chat using the object's name. Best described as something like a parrot repeat. i.e. /33 blahblahblah and then the object repeats it in green text saying 'Rover barks "blahblahblah"'. Most commonly used with/for shoulder pets etc.

I hear this is a simple script yet I've searched for hours for this script, I've joined script groups and have asked there. Nobody seems to know what this script is called or how to get it. Please Help! Can somebody please direct me to where to find this or even get the name of it?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
09-27-2008 22:32
From: Vixen Babii
I am looking for a script to place into an object that will listen on a channel and then the object repeat it outloud in chat using the object's name. Best described as something like a parrot repeat. i.e. /33 blahblahblah and then the object repeats it in green text saying 'Rover barks "blahblahblah"'. Most commonly used with/for shoulder pets etc.

I hear this is a simple script yet I've searched for hours for this script, I've joined script groups and have asked there. Nobody seems to know what this script is called or how to get it. Please Help! Can somebody please direct me to where to find this or even get the name of it?

Script isn't a problem. I am going to bed now (1:31 AM), but if no one helps you before hand, i'll post something when I get up in the morning.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
09-27-2008 23:44
default
{
state_entry()
{
llListen(33, "", llGetOwner(), "";);
}

listen(integer channel, string name, key id, string msg)
{
llSay(0, "/me barks \"" + msg + "\"";);
}
}

Note that there must be a whitespace after /me. Of course, if you don't use a verb, remove the /me and you'll get the regular colon (":";).
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
09-27-2008 23:52
Any time I see llGetOwner() in an llListen() I feel compelled to add this bit..

on_changed (integer mask)
{
if (mask & CHANGED_OWNER) llResetScript();
}