Skip to content

Instantly share code, notes, and snippets.

@antonyfairport
antonyfairport / Z&A Region Map Display.lsl
Created June 15, 2011 09:13
Simple Second Life region map grab/update script. Uses the gridsurvey.com API
//////////////////////////////////////////////////////////////////////
// Holds the key of the last request.
key g_keyRequest;
//////////////////////////////////////////////////////////////////////
// Force a refresh of the region map.
RefreshMap()
{
g_keyRequest = llHTTPRequest( "http://api.gridsurvey.com/simquery.php?" +
"region=" + llEscapeURL( llGetRegionName() ) + "&item=objects_uuid",
@antonyfairport
antonyfairport / Sim Restart Notifier.lsl
Created August 31, 2011 11:51
Simple script that notifies you when (via IM) a region has restarted/
//////////////////////////////////////////////////////////////////////
// Sim Restart Notifier -- By Antony Fairport
//
// IMs you when the sim it is located on restarts. Handy during
// rolling restarts when you've had to run away and want to be told
// as soon as it's back up.
//
// Revision history:
// ------------------------------------------------------------
//
@antonyfairport
antonyfairport / Last Login Tracker.lsl
Created October 10, 2011 20:59
Last login tracker
//////////////////////////////////////////////////////////////////////
// Last online scanner -- see when given avatars were last online
// By Antony Fairport.
//
// Revision history.
// =================
//
// 2011-05-07
// Initial version.
@antonyfairport
antonyfairport / Z&A As the Crow Flies.lsl
Created October 16, 2011 15:44
Z&A As the Crow Flies (Measure points on a sim)
//////////////////////////////////////////////////////////////////////
// Z&A As the Crow Flies -- Find the distance between two points.
// By Antony Fairport
//
// Rez one or more prims around a place where you want to know how
// far away they are. Name each prim to something that will mean
// something to you. Now drop this script in each of them. Finally,
// touch the prim that you consider to be the point from which you
// want to measure.
//
@antonyfairport
antonyfairport / Grid Status Notifier.lsl
Last active October 27, 2019 14:50
Grid Status Notifier
//////////////////////////////////////////////////////////////////////
// Grid status notifier, by Antony Fairport
//
// Inspired by a similar script by Dermot Core / DigitaL Scribe.
// The original script didn't quite work as I'd like, so I took the
// core idea and made it work as I do like.
//
// To use simply create a prim and drop this inside it. Every 5mins
// the grid status is checked and, if it changes, an IM is sent to you
// Also, if anyone touches the prim the latest status (no matter if
@antonyfairport
antonyfairport / Z&A Give Random Object.lsl
Created February 7, 2012 10:27
Script to give random objects from the content of a prim, with emphasis on the objects being no-copy
//////////////////////////////////////////////////////////////////////
// Z&A Give Random Object
// By Antony Fairport
//
// Simple example of how you could create a script that will give a
// random object from inventory, on touch, and also allow for the
// fact that some or all of the objects might be no-copy.
//
// Note that this approach probably won't scale so well if the object
// is filled with many items. In that case, rather that reloading
@antonyfairport
antonyfairport / ZA Simple Walking Sound.lsl
Created April 10, 2012 11:57
Play a sound when an avatar walks (good for footsteps)
//////////////////////////////////////////////////////////////////////
// Z&A Simple Walking Sound -- Play a sound when an avatar walks
// By Antony Fairport.
//
// Written as an experiment in reacting to llGetAnimation() return
// values (and to give me a barefoot padding sound when I'm not wearing
// any boots or shoes).
//
// I don't claim this is the best way, most efficient way, or most elegent
// way of doing this. But it's a way of doing it.
@antonyfairport
antonyfairport / Z&A Security.lsl
Created April 10, 2012 23:41
Simple Second Life security system.
//////////////////////////////////////////////////////////////////////
// Simple security system.
// By Antony Fairport.
//
// Revision history.
// =================
//
// 2011-06-27
// Initial version.
default
{
touch_start(integer total_number)
{
list l = llGetAgentList( AGENT_LIST_REGION, [] );
integer iMax = llGetListLength( l );
integer i;
for ( i = 0; i < iMax; i++ )
{
@antonyfairport
antonyfairport / Sim Restart Notifier.lsl
Last active October 5, 2015 18:37
Simple script that notifies you via IM, or email, when your sim has restarted
//////////////////////////////////////////////////////////////////////
// Sim Restart Notifier -- By Antony Fairport
//
// Informs you when the sim it is located on restarts. Handy during
// rolling restarts when you've had to run away and want to be told
// as soon as it's back up.
//
// Revision history:
// ------------------------------------------------------------
//