Listener Script

From Second Life Wiki
Revision as of 08:50, 21 September 2008 by Emmas Seetan (talk | contribs) (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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 people, etc.


<lsl>//Listener script by Emmas Seetan
//21 September, 16:30

string message;
integer channel = 0;

default
{
    state_entry()
    {
        
        
         llInstantMessage(llGetOwner(), ""); //Sends messages to owner
            llListen(0, "","",""); //Listens on channel 0, nearby people to the box
            
            
    }
    
       
   
    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>