Skip to content

Instantly share code, notes, and snippets.

@antonyfairport
antonyfairport / Z&A Auto Group Changer.lsl
Created May 27, 2013 21:26
Simple script that uses the RLV set group command to auto-set a group as your active group depending on which region you've just entered.
//////////////////////////////////////////////////////////////////////
// Simple RLV-based group auto-changer.
// By Antony Fairport.
// Inspired by a question by Sally Lithanos in Builder's Brewery.
//
// Usage.
// ======
//
// This script needs RLV active in your viewer to work. You don't need
// a relay, but you do need RLV turned on. RLV support must me 2.5 or
default
{
state_entry()
{
llOwnerSay( "Ready to test; touch me to redirect chat and emotes" );
}
touch_end( integer _ )
{
state Redirect;
@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
//////////////////////////////////////////////////////////////////////
// Set your app and user token here. Note that you can, on the
// PushOver site, create delivery groups so you can deliver a single
// notice to multiple users. The delivery group key is then used as
// the user key.
string APP_TOKEN = "<paste your app token here>";
string APP_USER = "<paste your user token here>";
//////////////////////////////////////////////////////////////////////
// Constants for the PushOver parameters.
@antonyfairport
antonyfairport / Z&A Flex Linkset.lsl
Last active November 6, 2017 10:04
Simple tool for experimenting with flexible path values on a whole linkset
//////////////////////////////////////////////////////////////////////
// Z&A Flex Linkset
// By Antony Fairport
//
// Z&A Flex Linkset - Apply flexible path params to a whole linkset.
//
// Revision history:
// ------------------------------------------------------------
//
// 2017-11-05
//////////////////////////////////////////////////////////////////////
// Z&A Quick Steps Maker
// By Antony Fairport
//
// Z&A Quick Steps Maker - Quickly make steps from a linkset of prims.
//
// While a more sophisticated stair maker can be made that would rez objects
// as it goes, sometimes you just want to create a linkset and have it all
// size and position correctly. This script does that. Here's how it works:
//
@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",
default
{
state_entry()
{
llAllowInventoryDrop( TRUE );
}
changed( integer change )
{
if ( ( change & CHANGED_INVENTORY ) || ( change & CHANGED_ALLOWED_DROP ) )
//////////////////////////////////////////////////////////////////////
// Z&A Parcel Checker
// By Antony Fairport
//
// Z&A Checker - Check that parcels are always using the right
// settings.
//
// Revision history:
// ------------------------------------------------------------
//
//////////////////////////////////////////////////////////////////////
// Z&A Light Ribbon
// By Antony Fairport
//
// Z&A Light Ribbon - Quick and simple glowstick/ribbon
//
// Revision history:
// ------------------------------------------------------------
//
// 2016-06-25