Push All Scripts

This commit is contained in:
Fred Beckhusen
2015-08-07 10:38:47 -05:00
parent 2ad9795428
commit ce47ec2f3e
8079 changed files with 2442776 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<Project name="Mapmaker" guid="D8709B91-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D8709C8D-6C00-1014-B904-200204C60A89">
<Script name="Mapmaker_1.lsl" guid="D870BFE5-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>

View File

@@ -0,0 +1,146 @@
// :CATEGORY:Map
// :NAME:Mapmaker
// :AUTHOR:Runay Roussel
// :CREATED:2010-11-03 14:41:30.913
// :EDITED:2013-09-18 15:38:57
// :ID:507
// :NUM:678
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// How to use:
//
// - create a cube (change texture if desired)
// - drop the script in it
// - resize as needed
// :CODE:
// Mapmaker
//
// History:
//
// - a PHP script was created by Lex Mars (founder of Subnova); it accesses the map tiles and returns a texture UUID
// - a small example script (including the URL) was published in the LSL Wiki Script Library
// - the script uses a HTTP request (I used that as a starting point) to retrieve the texture UUID of the map
//
// Added stuff:
//
// - error checking
// - 24 hour timer
// - change map on touch
// - set object name to "Map of ..." (hover mouse over map to see it)
//
// How to use:
//
// - create a cube (change texture if desired)
// - drop the script in it
// - resize as needed
//
// Author: Runay Roussel
// Released to the public domain on September 14th, 2009
float TIME = 86400.0; // timer interval = 24 hours
integer lsn = 0; // handle for listener
key request; // handle for HTTP request
key user; // key of user touching the prim
string sim; // sim
string sim_old; // previous sim
string URL = "http://www.subnova.com/secondlife/api/map.php"; // URL of PHP script
string full_URL; // full URL including sim name
string capitalize (string text)
{
return llToUpper(llGetSubString(text, 0, 0)) + llGetSubString(text, 1, -1);
}
getMap(string sim_name)
{
full_URL = URL + "?sim=" + llEscapeURL(sim_name);
request = llHTTPRequest(full_URL, [], "");
llSetTimerEvent(0);
llSetTimerEvent(TIME);
}
default
{
state_entry()
{
llSetObjectDesc("Touch to change");
llSetPrimitiveParams([PRIM_FULLBRIGHT, ALL_SIDES, TRUE]);
user = llGetOwner();
sim = capitalize(llGetRegionName()); // default sim = current
sim_old = sim;
getMap(sim); // initial map display
}
on_rez(integer start_param)
{
llResetScript();
}
http_response(key request_id, integer status, list metadata, string body)
{

View File

@@ -0,0 +1,7 @@
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|08 Sep 2013 03:49:03 -0000
vti_extenderversion:SR|12.0.0.6211
vti_backlinkinfo:VX|
vti_author:SR|alien\\fred
vti_modifiedby:SR|alien\\fred
vti_timecreated:TR|18 Sep 2013 20:38:57 -0000

View File

@@ -0,0 +1,6 @@
vti_encoding:SR|utf8-nl
vti_timelastmodified:TR|17 Aug 2013 23:32:38 -0000
vti_extenderversion:SR|12.0.0.0
vti_cacheddtm:TX|17 Aug 2013 23:32:38 -0000
vti_filesize:IR|255
vti_backlinkinfo:VX|