User talk:Mariasana Melodie

From Second Life Wiki
Revision as of 18:10, 8 February 2011 by Cerise Sorbet (talk | contribs)
Jump to navigation Jump to search

A brief bit of code I'd like comment about:

<lsl> //Copyright Mariasana Melodie 02-08-2011 //Simple script to prevent attachment/rezing of adult items in PG sims. //Put a copy in a no-mod poseball that is required for it to work, or root prim if entire item is no-mod. //Free to use, but give credit. (And for sanity sake, make the version IN the item no mod!)

default {

   on_rez(integer start_param)
   {
       string maturity = llRequestSimulatorData (llGetRegionName(), 7);
       if (maturity = "PG")
       {
           llOwnerSay("not here you don't.");
           llDie();
       }
   }
   attach(key id)
   {
       string maturity = llRequestSimulatorData (llGetRegionName(), 7);
       if (maturity = "PG")
       {
           llOwnerSay("Try again in a Mature or Adult Region");
           llDetachFromAvatar();
       }
   }

} </lsl>

--Mariasana Melodie 15:19, 8 February 2011 (PST)Mariasana Melodie

Hi, you will need a dataserver event to capture and use the llRequestSimulatorData return values. --Cerise Sorbet 17:10, 8 February 2011 (PST)