<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
	<id>http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlOverMyLand</id>
	<title>LlOverMyLand - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="http://i.bnu.edu.cn/wiki/index.php?action=history&amp;feed=atom&amp;title=LlOverMyLand"/>
	<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlOverMyLand&amp;action=history"/>
	<updated>2026-06-01T06:21:49Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://i.bnu.edu.cn/wiki/index.php?title=LlOverMyLand&amp;diff=796&amp;oldid=prev</id>
		<title>Ty：创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: integer llOverMyLand( key id ); |参数= 参数：  • ke…”</title>
		<link rel="alternate" type="text/html" href="http://i.bnu.edu.cn/wiki/index.php?title=LlOverMyLand&amp;diff=796&amp;oldid=prev"/>
		<updated>2020-08-23T03:35:25Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}   {{函数详情 |函数名 = Function: integer llOverMyLand( key id ); |参数= 参数：  • ke…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LSL Header|ml=*}}{{LSLC|Keywords}}{{LSLC|Flow Control}}{{LSLC|}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{函数详情&lt;br /&gt;
|函数名 = Function: integer llOverMyLand( key id );&lt;br /&gt;
|参数= 参数：&lt;br /&gt;
&lt;br /&gt;
• key	id	–	group, avatar or object UUID that is in the same region&lt;br /&gt;
|返回值= 返回值：&lt;br /&gt;
返回一个整数布尔值，如果 id 在脚本所有者拥有的土地上，返回 true，否则为 false。&lt;br /&gt;
|注意事项=&lt;br /&gt;
&lt;br /&gt;
|示例=&lt;br /&gt;
示例一&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
//--// private land message //--//&lt;br /&gt;
 &lt;br /&gt;
//-- list of people not to pester, lower case only&lt;br /&gt;
list gLstIgnore = [&amp;quot;void singer&amp;quot;];&lt;br /&gt;
key  gKeyAv;&lt;br /&gt;
 &lt;br /&gt;
default{&lt;br /&gt;
    state_entry(){&lt;br /&gt;
        llOwnerSay( &amp;quot;I'll pester anyone on your land I can find,&amp;quot;&lt;br /&gt;
                    + &amp;quot; unless they're in your ignore list.&amp;quot; );&lt;br /&gt;
        llSensorRepeat( &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, AGENT, 96, PI, 30 );&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    sensor( integer vIntFound ){&lt;br /&gt;
        do{&lt;br /&gt;
            gKeyAv = llDetectedKey( --vIntFound );  //-- Decrement sensor variable to walk backwards through all detections&lt;br /&gt;
             //-- check if they are over our land&lt;br /&gt;
            if (llOverMyLand( gKeyAv )){ //-- the return value is automatically tested by the if statemnt&lt;br /&gt;
                 //-- check if they are in the ignore list&lt;br /&gt;
                if (!~llListFindList( gLstIgnore, (list)llToLower( llDetectedName( vIntFound ) ) )){ //-- '!~llListFindList' == 'not found in the list'&lt;br /&gt;
                     //-- pester everyone not in the ignore list !!!&lt;br /&gt;
                    llInstantMessage( gKeyAv, &amp;quot;You are on private land, please leave this parcel&amp;quot; );&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }while (vIntFound);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
下面这个例子是前一个例子的变体。它会把每天的访客记录发给你。这对于确定你的包裹每天吸引多少流量，以及谁定期来访是很有用的。Llovermyland 函数用于防止脚本计算其他地块上的人数。&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// This script will email you a daily count of new visitors and repeat visitors.&lt;br /&gt;
// Visitors are counted once per email update cycle.&lt;br /&gt;
 &lt;br /&gt;
// -----------------------------------&lt;br /&gt;
// Configuration: customize this script here.&lt;br /&gt;
// Change this to your email address.&lt;br /&gt;
string MyEmail = &amp;quot;you@example.com&amp;quot;;&lt;br /&gt;
// This is a number 0 to 96 meters, anything farther away than that will not be noticed.  &lt;br /&gt;
float SensorRange = 96.0;&lt;br /&gt;
// How often to send email updates.&lt;br /&gt;
integer UpdateFrequency = 86400; // Number of seconds in 1 day.&lt;br /&gt;
// -----------------------------------&lt;br /&gt;
 &lt;br /&gt;
// Internal Variables -- Do not change.&lt;br /&gt;
list todayVisitors = [];&lt;br /&gt;
list allVisitors = [];&lt;br /&gt;
list repeatVisitors = [];&lt;br /&gt;
list firstTimers = [];&lt;br /&gt;
integer newVisitors = 0;&lt;br /&gt;
integer returnVisitors = 0;&lt;br /&gt;
string ParcelName;&lt;br /&gt;
 &lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    state_entry()&lt;br /&gt;
    {&lt;br /&gt;
        list parcelDetails = llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_NAME]);&lt;br /&gt;
        ParcelName = llList2String(parcelDetails, 0);&lt;br /&gt;
        llSensorRepeat( &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, AGENT, SensorRange, PI, 20);&lt;br /&gt;
        llSetTimerEvent(UpdateFrequency); // Email me a regular report.&lt;br /&gt;
        llOwnerSay(&amp;quot;Visitor Log Started.&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    sensor(integer avsFound)&lt;br /&gt;
    {&lt;br /&gt;
        key  avKey;&lt;br /&gt;
        integer avNum;&lt;br /&gt;
        for(avNum=0; avNum&amp;lt;avsFound; avNum++)&lt;br /&gt;
        {&lt;br /&gt;
            avKey = llDetectedKey(avNum);&lt;br /&gt;
            if (llOverMyLand(avKey))&lt;br /&gt;
            {&lt;br /&gt;
                string whom = llDetectedName(avNum);&lt;br /&gt;
                if (!~llListFindList(todayVisitors, [whom]))&lt;br /&gt;
                {&lt;br /&gt;
                    // This person hasn't been seen yet today.&lt;br /&gt;
                    todayVisitors += [whom];&lt;br /&gt;
                    if (~llListFindList(allVisitors, [whom]))&lt;br /&gt;
                    {&lt;br /&gt;
                        // This is a returning visitor.&lt;br /&gt;
                        returnVisitors++;&lt;br /&gt;
                        repeatVisitors += [whom];&lt;br /&gt;
                    }&lt;br /&gt;
                    else&lt;br /&gt;
                    {&lt;br /&gt;
                        // This is a first-time visitor.&lt;br /&gt;
                        newVisitors++;&lt;br /&gt;
                        allVisitors = [whom] + allVisitors;&lt;br /&gt;
                        firstTimers += [whom];&lt;br /&gt;
                    }&lt;br /&gt;
                }&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
 &lt;br /&gt;
    timer() &lt;br /&gt;
    {&lt;br /&gt;
        list parcelDetails = llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_NAME]);&lt;br /&gt;
        ParcelName = llList2String(parcelDetails, 0);&lt;br /&gt;
        string subj = &amp;quot;Visitor Log for &amp;quot; + ParcelName;&lt;br /&gt;
        string body = &amp;quot;Number of Visitors Total: &amp;quot; + (string)(newVisitors + returnVisitors)&lt;br /&gt;
            + &amp;quot;\nReturning Visitors: &amp;quot; + (string)returnVisitors&lt;br /&gt;
            + &amp;quot;\nNew Visitors: &amp;quot; + (string)newVisitors &lt;br /&gt;
            + &amp;quot;\n\nList of New Visitors:\n\t&amp;quot; + llDumpList2String(firstTimers, &amp;quot;\n\t&amp;quot;)&lt;br /&gt;
            + &amp;quot;\n\nList of Returning Visitors:\n\t&amp;quot; + llDumpList2String(repeatVisitors, &amp;quot;\n\t&amp;quot;);&lt;br /&gt;
        newVisitors = 0;&lt;br /&gt;
        returnVisitors = 0;&lt;br /&gt;
        todayVisitors = [];&lt;br /&gt;
        repeatVisitors = [];&lt;br /&gt;
        firstTimers = [];&lt;br /&gt;
        if (llGetListLength(allVisitors)&amp;gt;500)&lt;br /&gt;
        {&lt;br /&gt;
            allVisitors = llList2List(allVisitors, 0, 499);&lt;br /&gt;
        }&lt;br /&gt;
        llEmail(MyEmail, subj, body);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|相关函数=&lt;br /&gt;
[[llReturnObjectsByID]]&lt;br /&gt;
|相关事件=&lt;br /&gt;
&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Ty</name></author>
		
	</entry>
</feed>