Change font size
It is currently Fri Aug 17, 2018 7:44 am

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: Open Group Join Script.
PostPosted: Sat May 23, 2009 5:11 am 
User avatar

Joined: Sat Nov 22, 2008 6:21 pm
Posts: 31
While testing the new group thingy in OSG, I search for some group related scripts.
This script seems to work. It opens, after a touch, the groups windows so people can join your group.

{L_CODE}:

string groupkey;

findgroupkey()
{
    list a = llGetObjectDetails(llGetKey(), [OBJECT_GROUP]);
    groupkey = llList2String(a,0);
    if (groupkey == "00000000-0000-0000-0000-000000000000")
    {
        llWhisper(0, "Set the Group for this object in EDIT under the GENERAL tab and be sure your Group is Open Enrollment.");
    }
    else
    {
        llWhisper(0, "Click the link from Chat History (Ctrl+H) and then click on JOIN button! secondlife:///app/group/" + groupkey + "/about");
    }
}

default
{
    state_entry()
    {
        llSetText("Touch to Join\nour Group", <1,1,1>, 1.0); //Floating Text, edit or remove
        findgroupkey();
    }

    touch_start(integer total_number)
    {
        findgroupkey();
    }
}

_________________
El presidente of the Republic of Hannaghbha.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net