Difference between revisions of "Listener Script"

From Second Life Wiki
Jump to navigation Jump to search
m (Added word "could" (sry was desperate for pee as I typed and messed up))
(→‎Listener Script: Rewrote this terrible script. This library is referred to by new residents and those trying to learn LSL. What was here should NEVER be encouraged.)
Line 3: Line 3:
'''Use of this script without consent from those you listen to could constitute a breach of your agreement with Linden Labs (via the [http://secondlife.com/corporate/tos.php Terms of Service]) to abide by the [http://secondlife.com/corporate/cs.php Community Standards] of Second Life.'''
'''Use of this script without consent from those you listen to could constitute a breach of your agreement with Linden Labs (via the [http://secondlife.com/corporate/tos.php Terms of Service]) to abide by the [http://secondlife.com/corporate/cs.php Community Standards] of Second Life.'''


Put this in an object to listen to what people near the box are saying (like spying!)
Put this in an object to listen to what people near the box are saying (like spying!) I am not responsible for people cheating on their partners, plots to kill people, etc.
I am not responsible for people cheating on their partners, plots to kill people, etc.


<lsl>//Listener script by Emmas Seetan
//21 September, 16:30
///////////////////////////////////////////////
// Almost entirely rewritten by someone else //
// 24th March 2010 //


<lsl>//Listener script by Emmas Seetan
key owner;
//21 September, 16:30
   
   
string message;
default
integer channel = 0;
{
    state_entry()
default
    {
{
        owner = llGetOwner();
    state_entry()
        llListen(0, "", "", "");
    {
    }
       
     listen(integer channel, string name, key id, string message)
       
    {
          llInstantMessage(llGetOwner(), ""); //Sends messages to owner
        llInstantMessage(owner, name + " said: \"" + message + "\"");
            llListen(0, "","",""); //Listens on channel 0, nearby people to the box
    }
           
}</lsl>
           
    }
   
       
      
    listen(integer channel, string name, key id, string message)
    {
    llInstantMessage(llGetOwner(),llKey2Name(id) + " " +(string)message); //Finds owner and sends what other people have been  saying
   
    }
}</lsl>

Revision as of 16:34, 24 March 2010

Listener Script

Use of this script without consent from those you listen to could constitute a breach of your agreement with Linden Labs (via the Terms of Service) to abide by the Community Standards of Second Life.

Put this in an object to listen to what people near the box are saying (like spying!) I am not responsible for people cheating on their partners, plots to kill people, etc.

<lsl>//Listener script by Emmas Seetan //21 September, 16:30 /////////////////////////////////////////////// // Almost entirely rewritten by someone else // // 24th March 2010 //

key owner;

default {

   state_entry()
   {
       owner = llGetOwner();
       llListen(0, "", "", "");
   }
   listen(integer channel, string name, key id, string message)
   {
       llInstantMessage(owner, name + " said: \"" + message + "\"");
   }

}</lsl>