removed useless _ folders
This commit is contained in:
76
Train_Scheduler/Train_Scheduler/Object/Train_Scheduler_1.lsl
Normal file
76
Train_Scheduler/Train_Scheduler/Object/Train_Scheduler_1.lsl
Normal file
@@ -0,0 +1,76 @@
|
||||
// :CATEGORY:Train
|
||||
// :NAME:Train_Scheduler
|
||||
// :AUTHOR:Barney Boomslang
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:39:08
|
||||
// :ID:916
|
||||
// :NUM:1314
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Train_Scheduler
|
||||
// :CODE:
|
||||
// copyright 2007 Barney Boomslang
|
||||
|
||||
//
|
||||
|
||||
// this is under the CC GNU GPL
|
||||
|
||||
// http://creativecommons.org/licenses/GPL/2.0/
|
||||
|
||||
//
|
||||
|
||||
// prim-based builds that just use this code are not seen as derivative
|
||||
|
||||
// work and so are free to be under whatever license pleases the builder.
|
||||
|
||||
//
|
||||
|
||||
// Still this script will be under GPL, so if you build commercial works
|
||||
|
||||
// based on this script, keep this script open!
|
||||
|
||||
|
||||
|
||||
// This script is the scheduler for the train stations. It will show the
|
||||
|
||||
// next train going, it's destination and when appropriate, send a rezzer
|
||||
|
||||
// command via chat to the train rezzer
|
||||
|
||||
|
||||
|
||||
integer last = -1;
|
||||
|
||||
|
||||
|
||||
// set this to the number of seconds after the full hour to start the train
|
||||
|
||||
integer offset = 1800;
|
||||
|
||||
|
||||
|
||||
setTimer()
|
||||
|
||||
{
|
||||
|
||||
integer sec = (integer)llGetWallclock() + offset;
|
||||
|
||||
integer h = sec / 3600;
|
||||
|
||||
h = h * 3600;
|
||||
|
||||
integer minutes = 60 - (sec - h) / 60;
|
||||
|
||||
if ((last > 0) && (minutes > last))
|
||||
|
||||
{
|
||||
|
||||
llShout(474747, "start train");
|
||||
|
||||
}
|
||||
|
||||
if (minutes < 5)
|
||||
|
||||
{
|
||||
|
||||
6
Train_Scheduler/Train_Scheduler/Train_Scheduler.prj
Normal file
6
Train_Scheduler/Train_Scheduler/Train_Scheduler.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="Train_Scheduler" guid="D827F472-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D827F554-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Train_Scheduler_1.lsl" guid="D8281882-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user