User:Gordon Wendt/scripts

From Second Life Wiki
Jump to navigation Jump to search

Quick and Dirty chat repeater

Repeats whatever you say on a user definable channel on channel 0 (public chat), also added commented out info on how to make it shout or whisper as well as say


// Coded by Gordon Wendt, free to reuse, snip, recode, give away, or use in derivative works for all perpetuity, all I ask is that you leave this notice intact, add your name below mine if you add something to the code, and leave this and any other creator's notice intact

// ----- // GORDON WENDT


// Change the object name to whatever you want the message to be prefixed by, replace with a single space to make object name appear blank, though message will still have a semicolon (:) before it

integer chan = 5; // replace with whatever channel number you want the object to listen on

default {

       llListen(chan,"","",""); // sets the listen so that object listens to says on that channel
   listen(integer channel,string name,key id,string message)
       llSay(0,message); // says whatever it heard on channel 5 in channel 0 which is the standard general chat
     // to use these instead of llSay put two forward slashes (//) before llSay and remove the two slashes from oen of the lines below, to reverse just re-add the slashes to that line and remove the ones from the llSay line
     //  llShout(0,message); // if you'd prefer it to shout
     //  llWhisper(0,message); // if you'd prefer it to whisper