Jump to content

Group Invitation by clicking on Object


woroschilow
 Share

You are about to reply to a thread that has been inactive for 1861 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

The easy way:

llSay( 0, "Click this link: secondlife:///app/group/GROUP_KEY/about \n");

Where you find the key value of GROUP_KEY by view info on a given group.

More advanced example can be studied on the wiki // group join inviter

Documentation on API can be found here: World API

The above example looks like based on experience, hence to popup box seen.

Edited by Rachel1206
Link to comment
Share on other sites

No, basically. You can create a dialog drop down box but the invite itself will still be presented in the chat field. It may be different with 'experience'. You have to set the object to group share.


integer menu_chan =  -4567;
integer menu_chan_handle;
key agent;


default
{
	state_entry()
	{
		llSetObjectName("Meine Gruppe");
	}
	touch_start(integer total_number)
	{
		agent = llDetectedKey(0);
		if(total_number > 1 )
		{
			return;//just in case others click it will the timer is running
		}
		else
		{
			//agent = llDetectedKey(0);
			menu_chan_handle = llListen(menu_chan, "", agent, "");
			llDialog(agent, "\nSie sind eingeladen, der Gruppe beizutreten."
				+ "\nBitte klicken Sie auf Ja, um zu akzeptieren,"
				+ "\noder Nein, um dies abzulehnen.", ["Ja", "Nein" ], menu_chan);
			llSetTimerEvent(10.0);
		}
	}
	listen(integer chan, string name, key id, string msg)
	{
		if (msg == "Nein")
		{
			llListenRemove(menu_chan_handle);
			llSetTimerEvent(0.0);
		}
		else if(msg == "Ja")
		{
			list temp = llGetObjectDetails(llGetKey(), [OBJECT_GROUP]);
			key groupKey = llList2Key(temp, 0);
			llRegionSayTo(agent,0,"secondlife:///app/group/" + (string) groupKey + "/about");
			llListenRemove(menu_chan_handle);
			llSetTimerEvent(0.0);
		}
	}
	timer()
	{
		llListenRemove(menu_chan_handle);
		llSetTimerEvent(0.0);
	}
}

Edited due to an unsupport error.

Edited by steph Arnott
  • Like 1
Link to comment
Share on other sites

5 hours ago, Rachel1206 said:

The above example looks like based on experience, hence to popup box seen.

It's a teleport offer from an avatar, not a group invite. Similarly, the real group invite dialog can only be created by an avatar sending a direct group invite. You would need a bot for this, otherwise you're stuck with chat links even with an Experience. 

  • Like 1
Link to comment
Share on other sites

8 minutes ago, Wulfie Reanimator said:

It's a teleport offer from an avatar, not a group invite. Similarly, the real group invite dialog can only be created by an avatar sending a direct group invite. You would need a bot for this, otherwise you're stuck with chat links even with an Experience. 

Do you actually read what is written? quote ' is it possible to get a group invitation looking like in the screenshot by clicking on an object? ' notice this part 'looking like in the screenshot'.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1861 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...