Skip to content

Instantly share code, notes, and snippets.

@antonyfairport
antonyfairport / Z&A Region Map Display.lsl
Created Jun 15, 2011
Simple Second Life region map grab/update script. Uses the gridsurvey.com API
View Z&A Region Map Display.lsl
//////////////////////////////////////////////////////////////////////
// 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 Aug 31, 2011
Simple script that notifies you when (via IM) a region has restarted/
View Sim Restart Notifier.lsl
//////////////////////////////////////////////////////////////////////
// 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:
// ------------------------------------------------------------
//
View Last Login Tracker.lsl
//////////////////////////////////////////////////////////////////////
// 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 Oct 16, 2011
Z&A As the Crow Flies (Measure points on a sim)
View Z&A As the Crow Flies.lsl
//////////////////////////////////////////////////////////////////////
// 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.
//
View Grid Status Notifier.lsl
//////////////////////////////////////////////////////////////////////
// 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 Feb 7, 2012
Script to give random objects from the content of a prim, with emphasis on the objects being no-copy
View Z&A Give Random Object.lsl
//////////////////////////////////////////////////////////////////////
// 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 Apr 10, 2012
Play a sound when an avatar walks (good for footsteps)
View ZA Simple Walking Sound.lsl
//////////////////////////////////////////////////////////////////////
// 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 Apr 10, 2012
Simple Second Life security system.
View Z&A Security.lsl
//////////////////////////////////////////////////////////////////////
// Simple security system.
// By Antony Fairport.
//
// Revision history.
// =================
//
// 2011-06-27
// Initial version.
View llGetAgentListTest.lsl
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 Oct 5, 2015
Simple script that notifies you via IM, or email, when your sim has restarted
View Sim Restart Notifier.lsl
//////////////////////////////////////////////////////////////////////
// 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:
// ------------------------------------------------------------
//