|
MortVent Charron
Can haz cuddles now?
Join date: 21 Sep 2007
Posts: 1,942
|
02-09-2008 10:12
I am trying to get a script to work that will listen on a specified channel and then repeat what is said on that channel.
All the samples and such I've been looking at seem to be only able to do the owner's messages
I would like to do it with either a open relay or preferably a locked access command (so you can prevent some abusing it)
|
|
Krista Chaffe
Registered User
Join date: 16 Jun 2007
Posts: 96
|
02-09-2008 10:20
If you listen on a channel and don't filter it you will hear everything.
The example you looked at probably the Owners keys in the initial listen to filter. If you replace that with "", you will get everything on that channel.
Then you can apply security to that if you wish by checking who sent it and if you want to listen to them
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
02-09-2008 12:18
Sounds dangerous though. Do NOT put two of those things where they can hear each other!
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-09-2008 13:26
not so much dangerous, assuming they listen on different channels then they speak on. otherwise they'll just repeat each other untill the sim clamps their chat output (likely), which may need a reset to clear, or they'll continue flooding chat, which will require seperation, taking one, or deleting one, to stop (resetting may or may not work, as they'll start the cycle again on the next thing heard) simple example, repeats anything on channel 1 into channel 0(public) default{ state_entry(){ llListen( 1, "", "", "" ); }
listen( integer vIntChannel, string vStringName, key vKeySpeaker, string vStrHeard ){ llSay( 0, vStrName + " said: " + vStrHeard ); } }
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
02-09-2008 14:34
heh, I've had "microphone feedback" before.. kinda cool watching the particle swirls go crazy. I actually use something like this as a diagnosis tool. It has an open listen on a given channel, and it just shoots all that data to llOwnerSay. Wearing it as an attachment, allows me to "listen in" on the chatter between my creations. Just make sure your listen looks like this: llListen(channel, "", NULL_KEY, ""  ; if you put "llGetOwner()" in the listen, then you will ONLY hear things said by the owner of the listener.
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|
|
MortVent Charron
Can haz cuddles now?
Join date: 21 Sep 2007
Posts: 1,942
|
02-09-2008 15:49
well the item in question is to be one of a kind, a shoulder buddy that can be sent messages that will be whispered to the one wearing it
|