Jump to content

group joiner that brings up menu with option to join, not a link in nearby chat


AzraelAzra Sands
 Share

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

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

Recommended Posts

As far as I'm aware, it is not possible for an LSL script to send group invitations such as the standard join popup directly to avatars. Rather, any time you do get that invitation, it's coming from another avatar. This includes automated scripted agents (avatars piloted by bots).

So if you want a mechanism for sending the viewer's join-group popup to an avatar, you'll need to use a bot.

Edited by Fenix Eldritch
Link to comment
Share on other sites

You can't send a direct group invitation, but the group links can be used in a dialog box just as well as chat; it won't present you a join button directly, but it's easier to notice than a chat link (and less spammy, in case of those Very Unthoughtful objects that use channel 0 to advertise their group joins).

For example:

default
{
    touch_start(integer _) {
        llDialog(llDetectedKey(0), "Click here to join the group:\nsecondlife:///app/group/19657888-576f-83e9-2580-7c3da7c0e4ca/inspect", ["Dismiss"], -99999);
    }
}

The "dismiss" button does nothing since there is no associated listener on channel -99999, it's only there because a dialog has to have at least 1 button.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

So, what happens under the hood when joining a group:

The endpoint that manages group membership receives a request, containing username, user UUID, and session token, and then proceeds to process that.

The URL of the endpoint is not retrievable by a script.

Furthermore, even if you can somehow find out the URL of the endpoint, the script cannot grab a vital ingredient: Session token.

Remember that scripts run server-side, not client-side. This means that lots of information you can see on your viewer, might not be visible by the script.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 189 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...