Skip to content

Instantly share code, notes, and snippets.

//////////////////////////////////////////////////////////////////////
// Simple owner-only RLV attachment locker.
// By Antony Fairport
//
// Simple script to lock an attachment on an avatar, using RLV. This
// is owner-only touch to lock/unlock. The idea being that it's
// helpful to stop something being knocked off during outfit changes.
//////////////////////////////////////////////////////////////////////
// Allow the object we're in to be removed.
@antonyfairport
antonyfairport / Z&A Texture Hollow.lsl
Last active August 29, 2015 13:56
Very simple script to help texture the inside of a hollowed cube. Saves a little on the eyeballing.
//////////////////////////////////////////////////////////////////////
// Simple tool to help texture the inside of a hollowed cube.
// By Antony Fairport.
//
// Based on a comment in
// https://jira.secondlife.com/browse/VWR-2397?
// found via
// http://monaeberhardt.wordpress.com/2013/12/03/how-to-get-texture-repeats-on-the-inside-of-a-hollow-prim-right/
//
// Notes:
@antonyfairport
antonyfairport / Show Hide Leash.lsl
Created December 20, 2013 22:37
Show/hide an object when "lshow" or "lhide" is said on a given channel (1 by default). Designed as a quick and dirty show/hide script for a leash holder
integer HOLDER_CHANNEL = 1;
default
{
state_entry()
{
llListen( HOLDER_CHANNEL, "", llGetOwner(), "" );
}
listen( integer channel, string name, key id, string message )
@antonyfairport
antonyfairport / Z&A Region Status Checker.lsl
Created June 5, 2013 20:44
Simple script for remotely monitoring the state of a region. Handy if you're waiting for a region to come back form a restart.
//////////////////////////////////////////////////////////////////////
// Region Status Checker -- By Antony Fairport
//
// Lets you remotely keep an eye on a region's status. Handy to see
// what's happening with your region while it's restarting and you're
// elsewhere.
//
// Revision history:
// ------------------------------------------------------------
//
@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
@antonyfairport
antonyfairport / ExampleLargeScript.lsl
Created May 26, 2013 12:06
Script that does nothing other than be large. Put together to help track down an issue with loading scripts into the SL viewer script editor on LeTigre regions (possibly other RC regions although I've not tested those yet).
/*
* Here is some text that is designed to make this script really big. It seems it's not about the code.
* Here is some text that is designed to make this script really big. It seems it's not about the code.
* Here is some text that is designed to make this script really big. It seems it's not about the code.
* Here is some text that is designed to make this script really big. It seems it's not about the code.
* Here is some text that is designed to make this script really big. It seems it's not about the code.
* Here is some text that is designed to make this script really big. It seems it's not about the code.
* Here is some text that is designed to make this script really big. It seems it's not about the code.
* Here is some text that is designed to make this script really big. It seems it's not about the code.
* Here is some text that is designed to make this script really big. It seems it's not about the code.
@antonyfairport
antonyfairport / RR HUD Locker.lsl
Created December 30, 2012 20:38
Simple script to drive a small HUD that tries to ensure that the RealRestraint HUD never gets knocked off when doing an outfit change in the likes of Firestorm.
//////////////////////////////////////////////////////////////////////
// RR HUD Locker
// By Antony Fairport.
//
// I wear the Real Restraint Elegance Cuffs pretty much all the time.
// They're locked on and they stay locked on. The probem, I've found
// is that the HUD they rez and attach doesn't lock itself in place.
// This means that every time I change my outfit, with the outfit
// manager in Firestorm, if the HUD isn't in the outfit (which it
// generally isn't because many of these outfits were created before
//////////////////////////////////////////////////////////////////////
// Shakespeare Insult. Written by Antony Fairport after seeing
// http://www.pangloss.com/seidel/shake_rule.html and feeling that it
// needed to be made into a script, fast.
//////////////////////////////////////////////////////////////////////
// The three columns of parts of the insults.
list COLUMN1 = [
"artless",
"bawdy",
@antonyfairport
antonyfairport / ClockTest.lsl
Created June 15, 2012 09:01
Script to test the llGetWallclock() problem with LeTigre RC servers
// llGetWallclock() borkage tester.
string g_sChannel;
default
{
state_entry()
{
g_sChannel = llGetEnv( "sim_channel" );
llSetTimerEvent( 0.5 );
@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:
// ------------------------------------------------------------
//