removed useless _ folders

This commit is contained in:
Fred Beckhusen
2015-08-09 16:54:31 -05:00
parent fde850293c
commit 948a44dfba
5204 changed files with 2425579 additions and 0 deletions

3
clock/clock.sol Normal file
View File

@@ -0,0 +1,3 @@
<Solution name="Clock">
<Project name="Clock" path="Clock\Clock.prj" active="true"/>
</Solution>

View File

@@ -0,0 +1,60 @@
// :CATEGORY:CLock
// :NAME:clock
// :AUTHOR:Beverly Larkin
// :CREATED:2010-01-10 05:20:56.000
// :EDITED:2013-09-18 15:38:50
// :ID:180
// :NUM:251
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// Clock.lsl
// :CODE:
//Simple clock by Beverly Larkin to show example of how to use llGetWallClock()
integer H; //Hours
integer M; //Minutes
string AP; //AM or PM
default
{
state_entry()
{
integer T = (integer)llGetWallclock(); // Get time PST
if (T > 43200) //If it's after noon
{
T = T - 43200; //Subtract 12 hours
AP = "PM"; //set to PM
H = T / 3600; //get hours
M = (T - (H * 3600)) / 60; //get minutes
if(H == 0) //if the hour is 0
{
H = 12; // make the hour 12
}
}
else
{
AP = "AM"; //set to AM
H = T / 3600; //get the hour
M = (T - (H * 3600)) / 60; //get minutes
if(H == 0) //if the hour is 0
{
H = 12; // make the hour 12
}
}
if(M < 10)
{
llOwnerSay((string)H + ":" + "0" + (string)M + AP); //if the mintues is less than 10 add the extra 0 (so it doesn't say 1:3PM) for example
}
else
{
llOwnerSay((string)H + ":" + (string)M + AP); // otherwise just say the time
}
}
} // end

6
clock/clock/clock.prj Normal file
View File

@@ -0,0 +1,6 @@
<Project name="Clock" guid="D7DD77CC-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D7DD78A2-6C00-1014-B904-200204C60A89">
<Script name="Clock_1.lsl" guid="D7DD964F-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>