Difference between revisions of "LlOverMyLand"
Jump to navigation
Jump to search
Void Singer (talk | contribs) m (tweaked example, corrected script comment, removed my signature) |
m (We want to use llDetectedName because sensors work over sim borders but llKey2Name doesn't) |
||
Line 34: | Line 34: | ||
if (llOverMyLand( gKeyAv )){ //-- @@ | if (llOverMyLand( gKeyAv )){ //-- @@ | ||
//-- check if they are in the ignore list | //-- check if they are in the ignore list | ||
if (!~llListFindList( gLstIgnore, (list)llToLower( | if (!~llListFindList( gLstIgnore, (list)llToLower( llDetectedName( vIntFound ) ) )){ //-- @@ | ||
//-- pester everyone not in the ignore list !!! | //-- pester everyone not in the ignore list !!! | ||
llInstantMessage( gKeyAv, "You are on private land, please leave this parcel" ); | llInstantMessage( gKeyAv, "You are on private land, please leave this parcel" ); |
Revision as of 12:25, 12 April 2009
Deletion Requested |
---|
The deletion of this article was requested for the following reason: Template is no longer used and it's creator thinks it does not function properly. |
If there is a need to discuss the deletion of this article, please add your comment(s) here. |
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llOverMyLand( key id );215 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer boolean, TRUE if id is over land owned by the script owner, FALSE otherwise.
• key | id |
On group deeded land the object containing the script must be deeded to the same group. (It is not enough to set the script to the group.)
Caveats
Examples
<lsl> //--// private land message //--//
//-- @@ = Contains code optimizations, see the following page for details //-- https://wiki.secondlife.com/wiki/User:Void_Singer/Optimizations
//-- list of people not to pester, lower case only list gLstIgnore = ["void singer"]; key gKeyAv;
default{
state_entry(){ llOwnerSay( "I'll pester anyone on your land I can find," + " unless they're in your ignore list." ); llSensorRepeat( "", "", AGENT, 96, PI, 30 ); }
sensor( integer vIntFound ){ do{ gKeyAv = llDetectedKey( --vIntFound ); //--@@ //-- check if they are over our land if (llOverMyLand( gKeyAv )){ //-- @@ //-- check if they are in the ignore list if (!~llListFindList( gLstIgnore, (list)llToLower( llDetectedName( vIntFound ) ) )){ //-- @@ //-- pester everyone not in the ignore list !!! llInstantMessage( gKeyAv, "You are on private land, please leave this parcel" ); } } }while (vIntFound); }
}
</lsl>