Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

how to make an object llsay on your behalf

Serenity Galli
Registered User
Join date: 25 Dec 2007
Posts: 15
12-29-2007 15:58
I have made a bracelet that when worn will watch for people coming into a 15meter radius and will add their name to a list. If it is a new name on the list then the script performs an llsay (0, "Hello " + name_of_avatar + " - Welcome to...";)

The problem is the message comes up as if it came from the bracelet and not the wearer of the bracelet.

Any ideas how I might get the bracelet script to send a message as if it came from the wearer of the bracelet?

Thanks
Cristalle Karami
Lady of the House
Join date: 4 Dec 2006
Posts: 6,222
12-29-2007 16:13
The bracelet needs to be renamed to the wearer's name.
_____________________
Affordable & beautiful apartments & homes starting at 150L/wk! Waterfront homes, 575L/wk & 300 prims!

House of Cristalle low prim prefabs: secondlife://Cristalle/111/60

http://cristalleproperties.info
http://careeningcristalle.blogspot.com - Careening, A SL Sailing Blog
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
12-29-2007 16:15
It can't be done.

Well, I suppose it could be done with a custom client. You could code a client to listen for IM's from your bracelet, and then echo that in the public chat channel.

But standard SL won't do that for you. Only the AV can have SAY's come from them.

- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
ArchTx Edo
Mystic/Artist/Architect
Join date: 13 Feb 2005
Posts: 1,993
12-29-2007 16:41
From: Cristalle Karami
The bracelet needs to be renamed to the wearer's name.


and then it will "say" it in a green chat text.
_____________________

VRchitecture Model Homes at http://slurl.com/secondlife/Shona/60/220/30
http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=2240
http://shop.onrez.com/Archtx_Edo
Boss Spectre
Registered User
Join date: 5 Sep 2005
Posts: 229
12-29-2007 18:29
Here's a function that would do as you asked:

greet(string avatarname)
{
string savedname = llGetName ();
llSetIObjectName (llKey2Name (llGetOwner ());
llSay (0, "Hello, " + avatarname + " welcome to this place.";);
llSetObjectName (savedname);
}

Yes it would be apparent from the coloring that it was coming from an object but I don't get the impression that it would be a problem.
Domchi Underwood
Registered User
Join date: 4 Aug 2007
Posts: 44
12-29-2007 22:22
If you're color-aware, and really want it look like it came out of your mouth, and don't mind giving your script a click when it needs it, you could use llDialog:

llDialog(llGetOwner(), "Click to greet the new guy.", ["Hiya"], 0);
Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
12-31-2007 08:03
hmm...

there used to be spoofing scripts that could output stuff in white text. those are kept secret, though.

considering the evil uses they were put to, that's probably best. actually, an update might have made that trick obsolete; i dont even know.
Kaylan Draken
Registered User
Join date: 2 Dec 2006
Posts: 127
01-01-2008 14:35
I don't know how they have done it but Huddles Headquaters (animation Island)
has a free macro recorder (HUD) that can record a chat message and say it for you
(in the correct color) and as you.

Looks like it can be done but don't understand it how they have done it.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-02-2008 00:31
From: Kaylan Draken
I don't know how they have done it but Huddles Headquaters (animation Island)
has a free macro recorder (HUD) that can record a chat message and say it for you
(in the correct color) and as you.

Looks like it can be done but don't understand it how they have done it.

It uses the above mentioned use of llDialog to store text up to 24 characters and replay it using the dialog
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
01-02-2008 06:52
hmm...

but, void... when you 'speak' button text, doesn't it come out with your name on it as the speaker? mine did when i had a little programming logic in one of my scripts and the dialog thought it should use channel 0 for buttons.

the spoof things would make it appear as if someone else were speaking.

i always wanted to do that for my rp tool, which is why it interests me. ::shrug::
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
01-02-2008 10:56
that's correct, it'll show as the user that pressed the dialog button, several different "collar" makers user a similar system, which allows the 'master' to pass a message on an off channel, which the collar then inserts into a dialog which is then popped up of the colar wearer.... but they still have to press a button, so are completely complicit in what's being said (assuming they know what's past those first few characters, otherwise it's trust)

there just isn't a way to fake someone elses chat in the proper color, and I'll happily give 2k $L to the first person that can show otherwise by getting chat to my window with my name on it, in the proper color, without me having to do anything. (for you smart-asses this does NOT mean saying my name, it must look exactly like I had sent it).
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -