Updates
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
</Script>
|
||||
<Script name="NPC Recorder Script V5.0.lsl" guid="c9cfffea-e324-48c4-8711-997f5eb0610a">
|
||||
</Script>
|
||||
<Script name="NPC Recorder Script V5.1.lsl" guid="37e2d56e-8580-4c9f-872c-fdd77588f651">
|
||||
</Script>
|
||||
</Object>
|
||||
<Object name="Test Object" guid="add040bc-55a8-42bb-a41a-d7cde2b0ae86">
|
||||
<Script name="Chat commands.lsl" guid="7b7ecdbf-dd55-4e2c-be27-e7047ed30aee">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,14 +1,16 @@
|
||||
// :SHOW:
|
||||
// :CATEGORY:CLock
|
||||
// :NAME:Day-Of-Week
|
||||
// :AUTHOR:Anonymous
|
||||
// :AUTHOR:DoteDote Edison
|
||||
// :KEYWORDS:
|
||||
// :CREATED:2013-09-06
|
||||
// :EDITED:2013-09-18 15:38:51
|
||||
// :EDITED:2016-11-09 08:46:32
|
||||
// :ID:222
|
||||
// :NUM:308
|
||||
// :REV:1
|
||||
// :REV:1.1
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Day-of-the-week.lsl
|
||||
// Day-of-the-week Function
|
||||
// :CODE:
|
||||
|
||||
string getDay(integer offset)
|
||||
@@ -28,5 +30,5 @@ default
|
||||
llSay(0, "Today is " + getDay(offset) + ".");
|
||||
}
|
||||
} // end
|
||||
// CREATOR:
|
||||
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
</Script>
|
||||
<Notecard name="ReadMe.txt" guid="3c69d0ee-e12f-4df2-b23f-304b689060ed">
|
||||
</Notecard>
|
||||
<Notecard name="Route" guid="87ac3acd-2d6f-4aa4-ad84-c9ba7d113bba">
|
||||
</Notecard>
|
||||
<Script name="recorder.lsl" guid="c8892685-1da9-411e-bb6e-4a02a8afc430">
|
||||
</Script>
|
||||
<Notecard name="Route" guid="87ac3acd-2d6f-4aa4-ad84-c9ba7d113bba">
|
||||
</Notecard>
|
||||
<Script name="walker.lsl" guid="0ba1bd86-3e77-428e-96f4-4b2d84d3a855">
|
||||
</Script>
|
||||
</Object>
|
||||
|
||||
@@ -4,10 +4,9 @@
|
||||
// :AUTHOR:Ferd Frederix
|
||||
// :KEYWORDS:
|
||||
// :CREATED:2015-08-05 09:54:56
|
||||
// :EDITED:2015-08-05 10:12:51
|
||||
// :ID:1084
|
||||
// :NUM:1816
|
||||
// :REV:1
|
||||
// :REV:2
|
||||
// :WORLD:OpenSim
|
||||
// :DESCRIPTION:
|
||||
// Sit on this prim, it will move you to a destination and unseat you, optionally repeat forever.
|
||||
@@ -17,9 +16,11 @@
|
||||
|
||||
|
||||
integer _debug = FALSE; // print in chats what i s happening.
|
||||
float RANGE = 96; // range it looks for people - if detected, will allow it to move
|
||||
float TINTERVAL = 10; // how often it looks - keep this large and the RANGE small
|
||||
integer Endless = TRUE;
|
||||
vector OFFSET = <0,0,0>; // if you want the tour to ride hiogher or lower or to one side...
|
||||
|
||||
vector OFFSET = <0,0,0>; // if you want the tour to ride higher or lower or to one side...
|
||||
integer running = FALSE;
|
||||
float SPEED = 1.0; // speed of vehicle in meters per second
|
||||
|
||||
// Sit for the NPC
|
||||
@@ -198,6 +199,19 @@ state moving
|
||||
|
||||
Goto(SPEED);
|
||||
llSetTimerEvent(INTERVAL);
|
||||
llSensorRepeat("","",AGENT,RANGE,PI,TINTERVAL);
|
||||
}
|
||||
|
||||
sensor(integer n)
|
||||
{
|
||||
if (! running++)
|
||||
llSetTimerEvent(INTERVAL);
|
||||
}
|
||||
|
||||
no_sensor()
|
||||
{
|
||||
llSetTimerEvent(0);
|
||||
running = FALSE;
|
||||
}
|
||||
|
||||
changed(integer change)
|
||||
|
||||
@@ -11,15 +11,13 @@
|
||||
// Method to get the day of the week from a unix timestamp - llGetUnixTime. The timestamp returns the number of seconds elapsed beginning Thursday, January 1, 1970 UTC. This script first converts the seconds to hours, then adds the GMT offset (if desired), then converts the hours to days, and finally grabs the day of the week from a list.
|
||||
// :CODE:
|
||||
// Gives day of the week
|
||||
// Copyright © 2016 Linden Research, Inc. Licensed under Creative Commons Attribution-Share Alike 3.0
|
||||
// DoteDote Edison
|
||||
|
||||
list weekdays = ["Thursday", "Friday", "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday"];
|
||||
integer offset = -4; // offset from UTC
|
||||
|
||||
default {
|
||||
|
||||
integer offset = -4; // offset from UTC
|
||||
|
||||
touch_start(integer total_number) {
|
||||
integer hours = llGetUnixTime()/3600;
|
||||
integer days = (hours + offset)/24;
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
// :DESCRIPTION:
|
||||
// And a function version:
|
||||
// :CODE:
|
||||
|
||||
// Copyright © 2016 Linden Research, Inc. Licensed under Creative Commons Attribution-Share Alike 3.0
|
||||
|
||||
string getDay(integer offset) {
|
||||
list weekdays = ["Thursday", "Friday", "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday"];
|
||||
integer hours = llGetUnixTime()/3600;
|
||||
|
||||
Reference in New Issue
Block a user