Wordfromthe Wise @ OPENSIM
Just another Opensim Metaverse Blog

OSGRID GROUP INVITOR

Hello,

somebody asked me how to find out a GROUP UUID to create a group invitor.
He wanted a script for his CLUB on the OSGRID.

Just thought for a minute (or two) scratched my head and came up with this:

Use the LSL Function llGetOwner ..  ( http://wiki.secondlife.com/wiki/LlGetOwner )
but use it – not on a prim of yours . DEED the prim to your group and use llGetOwner

</code>

default
{
state_entry()
{
llSay( 0, "OWNER / GROUP UUID :" +(string)llGetOwner());
// says in chat channel the "key" (UUID code) of the avatar or
// if Deeded to a group the group id
//llOwnerSay( llKey2Name(llGetOwner()));
// speaks in chat the name of the owner if in the sim.
}

touch_start(integer total_number)
{
llSay( 0,(string)llGetOwner());
}
}

<code>

Next, DEED this object to the group you need the UUID of

Click on the Prim and it says the UUID in the Chat Channel. Copy and paste the UUID and use it in the your scripts ..

Additional he asked for a little script that announces randomly a Link to join his group.
So i came up with this lowlag Announcer Script .. I am open for feedback or enhancements :

</code>

// Wordfromthe Wise  VERSION 1.0   INVITE SCRIPT
// OSGRID Version 1.0
// if you need to find out your Groups UUID do following:
// rez a prim
// create a new script
// use llSay( 0,(string)llGetOwner());
// speaks in chat the "key" (UUID code) of the avatar or
// if Deeded to a group the group id
//
// deed the prim to the group you want to have an invitator
// touch the prim
// use the uuid in this script !
// change the text to your needs !

default
{
state_entry()
{
llSetText("JOIN the XXXX - GROUP", <1,1,1>, 1.0);

llSetTimerEvent(300); // Message to the chat line -
//Announce every 3 minutes into Pulic Chat
}

timer()
{

llSay (0,  "");
llSay (0,  "");
llSay (0,  "*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~**~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*");
llSay (0, "Hier ist der Link auf den Du klicken musst um der Blue Wave Club Gruppe beizutreten.");
llSay (0, "Wir informieren Dich wenn bei uns wieder jede Menge los ist.");
llSay (0, "*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~**~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*");
llSay (0, "");
llSay (0, "secondlife:///app/group/group-uuid8/about");
llSay (0, "");
llSay (0, "*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~**~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*");
llSay (0, "");
llSay (0,  "");

}

touch_start(integer total_number)

{
// llSay(0, "Hello"  +llDetectedName(0) + ": " + (string)llDetectedKey(0));
llInstantMessage((string)llDetectedKey(0), "");
llInstantMessage((string)llDetectedKey(0), "");
llInstantMessage((string)llDetectedKey(0), "Hello"  +llDetectedName(0));
llInstantMessage((string)llDetectedKey(0), "");
llInstantMessage((string)llDetectedKey(0), "*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~**~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*");
llInstantMessage((string)llDetectedKey(0),"Hier ist der Link auf den Du klicken musst um der Blue Wave Club Gruppe beizutreten.");
llInstantMessage((string)llDetectedKey(0),"Wir informieren Dich wenn bei uns wieder jede Menge los ist.");
llInstantMessage((string)llDetectedKey(0),"*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~**~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*");
llInstantMessage((string)llDetectedKey(0),"");
llInstantMessage((string)llDetectedKey(0),"secondlife:///app/group/group-uuid8/about");
llInstantMessage((string)llDetectedKey(0),"");
llInstantMessage((string)llDetectedKey(0),"*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~**~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*");
llInstantMessage((string)llDetectedKey(0), "");
}
}

<code>
Advertisements

One Response to “OSGRID GROUP INVITOR”

  1. hey word, ich find deine hilfen nach wie vor klasse.

    Aber man sieht dich leider kaum mehr in Osgrid und das find ich schade
    liebe Grüße
    Witchie


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: