Simple Channel or Chat Relay

This is a very simple script – it listens on one channel and relays anything it hears to another.

You can set the two channels using variables at the top.  This might be useful if, for example, you have a script that uses negative channels (as is often usual for script-to-script communications or for dialogs) but you’d like to send it some messages for testing.  Just use this script to listen on an easy channel and relay messages onto the other channel.

Note of course, that if your test script using filtering for its llListen() call on avatar key (as you might if you are using a dialog) then you can’t relay via a prim.

There are options to use whisper, say, shout or regionsay – just uncomment which you’d like to use in the relayMessage() function.

Kimm

Advertisements

~ by kimmpaulino on November 5, 2012.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: