Group invitation

From Second Life Wiki
Revision as of 23:27, 16 April 2009 by BETLOG Hax (talk | contribs) (New page: VolumeDetect prim that whispers a group invitation hyperlink that can be clicked in history to bring up the group profile. <lsl> // // BETLOG Hax // AEST: 20080613 0704 [SLT: 20080612 14...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

VolumeDetect prim that whispers a group invitation hyperlink that can be clicked in history to bring up the group profile.

<lsl> // // BETLOG Hax // AEST: 20080613 0704 [SLT: 20080612 1404] // For Harleywood Guru request in SecondLife Hobos group chat // UTC10: 20090417 1557 [SLT: 20090416 2257] // Rewrote for volumedetect collision detection // // Thanks to Punkaroo Snoring, and Pavig Lok for inadvertently pointing out something i read in a RC release notes and totally didnt pay attention to. But which is really useful. // // Set the group active on your avatar before rezzing this box. // If you forget just reset the script after you set the box to the right group. // Volumedetect is activated in script, so dont link this prim. // This solution can be a bit spammy, so its certainly not ideal. //========================================================================= // LICENCE: // Creative Commons Attribution-Share Alike 3.0 license // http://creativecommons.org/licenses/by-sa/3.0/ // You can modify this script, but you must prominently state that you // used this script, credit it's original author(s), and supply this // unaltered script with your modification. //========================================================================= // SHARED CONFIGURATION //---------------------------------- // CONFIGURATION //---------------------------------- // CORE CODE string gUUID; //========================================================================= default { on_rez(integer start_param)

   {   llResetScript();
   }
   state_entry()
   {   gUUID = llList2String(llGetObjectDetails(llGetKey(), ([OBJECT_GROUP])), 0);    
       llVolumeDetect(TRUE);
   }
   collision_start(integer num)
   {   if(llGetAndResetTime() < 10.0) return;
       if (~llDetectedType(0) & AGENT) return;
       llWhisper(0, "\nJoin the group! Please click the link in your history window (ctrl-H)"
               +"\n secondlife:///app/group/"+gUUID+"/about"); 
   }

} //========================================================================= </lsl>