Jump to content
woroschilow

Group Invitation by clicking on Object

Recommended Posts

Hello,

is it possible to get a group invitation looking like in the screenshot by clicking on an object?
How to achieve that?

Regards

InkedAnmerkung 2019-03-16 005109_LI.jpg

Share this post


Link to post
Share on other sites
Posted (edited)

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

Share this post


Link to post
Share on other sites
Posted (edited)

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

Share this post


Link to post
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. 

Share this post


Link to post
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'.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...