Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Library: Simple Group Inviter

Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
04-01-2008 15:19
I have been meaning to add this for ages so here it is.

NO NEED TO ADD OR FIND GROUP UUID's

Just copy the script add it to a prim and set the prim to the group you want people to join.

When touched a message will appear and in chat history it will show a link to the group, clicking this link will automatically open the group. Note: Group must be set to Open enrollment.
Does not work on some older 1.18 client versions as the blue link in chat history fails to display as a link.

I will drop a copy in SLexchange in the next 24 hours as well for zero lindens.

******************************************
//This script is not for resale but is available to distribute freely.

default
{
touch_start(integer t)
{
string groupID =llList2String(llGetObjectDetails(llGetKey(), [OBJECT_GROUP]), 0);
integer i;
for(i = 0; i < t; i++)
{
llInstantMessage(llDetectedKey(i), "add your message here for you new group members, Please Click this link! secondlife:///app/group/" + groupID + "/about";);
}
}
}

******************************************

This script if my memory serves me rightly may be in the Library already but I could not find it in a search prior to posting.
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Library bump
04-03-2008 07:46
:)
_____________________
i've got nothing. ;)
Espresso Saarinen
old geek
Join date: 22 Jan 2006
Posts: 93
04-20-2008 01:52
but, given the group key, you can not get the textual name of the group to put in hovertext or in the chat message. real nice.
Lucy Zelmanov
Registered User
Join date: 19 Feb 2007
Posts: 178
06-22-2008 14:09
I'm looking for something like this but that pops up a blue dialog box with goto or cancel buttons, rather than dumping the info into chat. Any help greatly apreciated.
Roofus Kit
Registered User
Join date: 12 Dec 2006
Posts: 10
09-24-2008 21:37
From: Lucy Zelmanov
I'm looking for something like this but that pops up a blue dialog box with goto or cancel buttons, rather than dumping the info into chat. Any help greatly apreciated.


LlLoadUrl instead of instant message would probably do that.

http://rpgstats.com/wiki/index.php?title=LlLoadUrl
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
09-24-2008 22:52
From: Espresso Saarinen
but, given the group key, you can not get the textual name of the group to put in hovertext or in the chat message. real nice.


actually you can by parsing the search page for that group key, preferably storing it during a setup state and then using it later... but why bother since if you are setting the objects group you can just type the name into the text string...
_____________________
|
| . "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...
| -
jase Wickentower
Registered User
Join date: 12 Sep 2009
Posts: 10
For Dummies please,
10-20-2009 19:42
If I might ask. I am not a scripter so most of this is Gibberish. Can someone explain in a bit less technical terms please?
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
10-20-2009 21:14
Which part of it? The basic script grabs the group's key from an API and launches the Group page in SL so you can join. They rest of the discussion is about getting the group's name. As Void says, though, that's silly. You already know the group's name.
_____________________
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