For Opensim Only. This script allows group invites without a bot or without touching a link in chat.
//FREE SCRIPTS - TESTED AND WORKING ON KITELY
// If you paid for this script, you were ripped off.
// You may use in your creations.
// You may not sell it as a script or in a script collection.
// INSTRUCTIONS: Set the object the script is in to the group you want the user to join.
string groupkey;
findgroupkey()
{
list a = llGetObjectDetails(llGetKey(), [OBJECT_GROUP]);
groupkey = llList2String(a,0);
if (groupkey == "00000000-0000-0000-0000-000000000000")
{
llWhisper(0, "Set the Group for this object in EDIT under the GENERAL tab and be sure your Group is Open Enrollment.");
}
else
{
osInviteToGroup(groupkey);
// Customize the message inside the quotes to your needs.
llWhisper(0, "Group Invite has been sent if you are not already a member.");
}
}
default
{
state_entry()
{
if (llGetObjectDesc() == "<disable>") return;
findgroupkey();
}
touch_start(integer total_number)
{
findgroupkey();
}
}