script join group automatique quand on arrive

Répondre
Partager Rechercher
hello
possible d avoir ce script qui donne le groupe automatiquement a l arrivé avec une fenêtre bleue ? et qui ne donne plus une fois que l on a le groupe
merky
string groupkey;

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

default
{
state_entry()
{
//llSetText("", <1,1,1>, 1.0); //Floating Text, edit or remove
findgroupkey(NULL_KEY);
}

collision_start(integer total_number)
{
findgroupkey(llDetectedKey(0));
}
}
Code PHP:

string groupkey;
string  groupkeyTested =  "057642bd-c175-9a31-99a5-f8611f8747e2" 
integer channelDialog ;

findgroupkey(key user)
{
    list 
llGetObjectDetails(llGetKey(), [OBJECT_GROUP]);
    
groupkey llList2String(a,0);
    if (
groupkey == groupkeyTested )
   {
        
llDialog(user"Set the Group for this object in EDIT under the GENERAL tab and be sure your Group is Open Enrollment.", [], channelDialog = (integer)llFrand(10000));
    }
    else
    {
        if (
user == NULL_KEY)
        {
            
llWhisper(0"BOOOO Click the link secondlife:///app/group/" groupkeyTested "/about and then click on JOIN button! ");
        }
        else
        {
           
llDialog(user,  "Click the link secondlife:///app/group/" groupkeyTested "/about and then click on JOIN button! ", [] , channelDialog = (integer)llFrand(10000));
        }
   }
}

default
{
    
state_entry()
    {
    
//llSetText("", <1,1,1>, 1.0); //Floating Text, edit or remove
    
findgroupkey(NULL_KEY);
    } 

    
collision_start(integer total_number)
   {
        
findgroupkey(llDetectedKey(0));
   }

Il semble que le scriot original comportait une erreur , celle de reproposer de rejoindre le groupe porté par l utilisateur et non pas le groupe du club
Répondre

Connectés sur ce fil

 
1 connecté (0 membre et 1 invité) Afficher la liste détaillée des connectés