Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Global Chat room..?

Ruboneout Shoreman
Registered User
Join date: 29 Jul 2009
Posts: 38
09-02-2009 20:31
I was thinking and I got an idea for something that I want to script but im unsure how to do it exactly. I want to have this object and when people wear it they are allowed to send a message and everyone wearing the object can hear that message. I was thinking about adding different channels like a general channel where people talk and an advertisement channel. I was wondering how I would go about doing this. Any tips, suggestions or scripts? It could be an easy way for mass communication and a way to just meet a lot of people.Thanks in advance.
Nuclear Foton
Reductio ad absurdum
Join date: 4 Nov 2006
Posts: 63
09-02-2009 20:52
Create a group...no scripting necessary.
Ruboneout Shoreman
Registered User
Join date: 29 Jul 2009
Posts: 38
09-02-2009 20:59
That is true, but I want to learn how to script as much things as possible for my own benefit.
basically what I want to know is, what is a function I could use to make 2 objects owned by different people communicate, no matter where they are. I thought about Email, but I what if I don't know that objects key?
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
09-02-2009 21:27
Objects can listen to each other just as avatars can, except that they can speak and listen on a wider range of channels, so you can use llSay, llWhisper, llShout, and you can also use llRegionSay, which isn't available to avatars. Object can send but not receive IMs, and they can both send and receive e-mail. They can also communicate using HTTP protocols. Your choice of methods depends on what you want to do. Try just reading about the relevant functions on the LSL Portal to decide.

Nuclear's right, though, there's little point in scripting a complicated system to duplicate a basic SL function that everyone has already. Create a group and you can do what you describe without scripting at all.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Kaluura Boa
Polygon Project
Join date: 27 Mar 2007
Posts: 194
09-03-2009 03:55
Sure, you can use Group IM but having the IM window open all the time is a little nuisance...

My friends and I belong to eachother's land group but we only use such a "group chatroom" to talk to eachother when we're out of chat range, from anywhere on the grid. (Next step will be to be able to talk from Main to Beta grid but that's the future...)

For a single gridwide system, here is the simple principle our system uses:

A central server (a simple cube that must stay in-world) so that you can hardcode its key in the "ear-plug" the avies are carrying. On rez, the ear-plug sends an email to the server saying "I'm here, talk to me" and that's it. When an AV talks on the special channel of his/her ear-plug, this one sends an email to central server which sends back to all ear-plugs it knows and each ear-plug talks to its owner with llOwnerSay().

I don't remember how the server knows that an ear-plug is unrezzed --Our system has been working for over a year now with the same unchanged server script-- but I know it does.

You add a few sub-script to bring the email delay down to 1 or 2 seconds and it's fast enough to have even lengthy conversations.

Our system has resisted to uncountable region restarts, so I can say it's possible. It works.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
09-03-2009 08:06
You'll probably want to use HTTP for this if it is going to be grid-wide. Otherwise, llRegionSay().