Difference between revisions of "Listener Script"

From Second Life Wiki
Jump to navigation Jump to search
(New page: == Listener Script == 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 peopl...)
 
m (<lsl> tag to <source>)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Listener Script ==
== Listener Script ==


Put this in an object to listen to what people near the box are saying (like spying!)
{{KBwarning|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.}}
I am not responsible for people cheating on their partners, plots to kill people, etc.


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
<source lang="lsl2">
//21 September, 16:30
default
{
string message;
    state_entry()
integer channel = 0;
    {
        llListen(0, "", NULL_KEY, "");
default
    }
{
 
    state_entry()
     listen(integer channel, string name, key id, string message)
    {
    {
       
        llInstantMessage(llGetOwner(), name + " said: '" + message + "'");
       
    }
          llInstantMessage(llGetOwner(), ""); //Sends messages to owner
}
            llListen(0, "","",""); //Listens on channel 0, nearby people to the box
</source>
           
           
    }
   
       
      
    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>

Latest revision as of 23:32, 24 January 2015

Listener Script

KBwarning.png Warning: 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.

default
{
    state_entry()
    {
        llListen(0, "", NULL_KEY, "");
    }

    listen(integer channel, string name, key id, string message)
    {
        llInstantMessage(llGetOwner(), name + " said: '" + message + "'");
    }
}