Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Find owner of hidden object talking on channel 0?

Neal Stewart
Registered User
Join date: 28 Dec 2004
Posts: 48
05-03-2005 09:32
Hi :) Sorry if this is answered in a Wiki somewhere.

Say that there's a packed club. Someone in the club is apparently wearing a hidden object that talks in the public channel (0). For example, the talking object is a particular chunk of hair in a hoochie-hair attachment or a pearl in a scripted bling-bling necklace :)

Is there any way that other people at the club can determine exactly where this talking object is and/or who owns it?

I know about:
View / Beacons / Scripted
But don't think that would be much help in a room packed with scripts. Maybe there is a command or Debug option?

-- Neal Stewart
Grim Hathor
Registered User
Join date: 26 Jun 2004
Posts: 36
05-03-2005 10:10
CODE
default
{
state_entry()
{
llListen(0, "", "", "");
}
listen(integer channel, string name, key id, string message)
{
llWhisper(0, llKey2Name(llGetOwnerKey(id))+"'s object: "+name+" said '"+message+"' on channel 0");
}
}




havent tested it but I think that will work
Chandra Page
Build! Code. Sleep?
Join date: 7 Oct 2004
Posts: 360
05-03-2005 12:52
From: Grim Hathor
CODE
llWhisper(0, llKey2Name(llGetOwnerKey(id))+"'s object: "+name+" said '"+message+"' on channel 0");


Just a note, given that you're attempting to find the source of a chatty object. The llWhisper call here will add yet more chat to channel zero, so it won't be much less annoying than the object you're attempting to find. To get feedback from your the tracking script that's visible only to you, try changing that line to the following:

CODE
llOwnerSay(llKey2Name(llGetOwnerKey(id)) + "'s object: " + name + " said '" + message + "' on channel 0");
_____________________
Come visit the In Effect main store and café
Drawbridge (160, 81)
Particle effects, fashion, accessories, and coffee!
On the Web at SL Exchange and SL Boutique
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
05-03-2005 13:43
I've been playing around with this, and I can't get a sensor to detect an individual attachment. Anyone else?
_____________________
Neal Stewart
Registered User
Join date: 28 Dec 2004
Posts: 48
05-03-2005 20:37
Thanks for the help Grim and Chandra. Much appreciated.
Your code works as far as I can tell.

Jillian, I put a talking script in a box and Grim and Chandra's code was able to identify me as the owner. The same when I attached the box to my leg. And when I linked other prims to the box and attached it to my leg too.

-- Neal Stewart
Chandra Page
Build! Code. Sleep?
Join date: 7 Oct 2004
Posts: 360
05-04-2005 10:48
From: Jillian Callahan
I've been playing around with this, and I can't get a sensor to detect an individual attachment. Anyone else?


The code in this thread has so far been about detecting chat from an attachment that's speaking on channel 0. Using an actual sensor to detect individual attachments is, as far as I know, impossible. Objects attached to an avatar, as far as a sensor is concerned, are part of the avatar, so they're pretty much undetectable.
_____________________
Come visit the In Effect main store and café
Drawbridge (160, 81)
Particle effects, fashion, accessories, and coffee!
On the Web at SL Exchange and SL Boutique