Difference between revisions of "User talk:Mariasana Melodie"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
A brief bit of code I'd like comment about: | A brief bit of code I'd like comment about: | ||
<lsl> | |||
//Copyright Mariasana Melodie 02-08-2011 | //Copyright Mariasana Melodie 02-08-2011 | ||
//Simple script to prevent attachment/rezing of adult items in PG sims. | //Simple script to prevent attachment/rezing of adult items in PG sims. | ||
Line 6: | Line 7: | ||
//Free to use, but give credit. (And for sanity sake, make the version IN the item no mod!) | //Free to use, but give credit. (And for sanity sake, make the version IN the item no mod!) | ||
default | default | ||
{ | { | ||
Line 28: | Line 28: | ||
} | } | ||
} | } | ||
</ | </lsl> | ||
--[[User:Mariasana Melodie|Mariasana Melodie]] 15:19, 8 February 2011 (PST)Mariasana Melodie | --[[User:Mariasana Melodie|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. --[[User:Cerise Sorbet|Cerise Sorbet]] 17:10, 8 February 2011 (PST) |
Revision as of 18:10, 8 February 2011
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)