Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

slurl maker

Dyne Talamasca
Noneuclidean Love Polygon
Join date: 9 Oct 2005
Posts: 436
04-02-2006 22:40
This is a simple script to generate a basic SLURL from your present location (so you can copy it and paste it somewhere outside of SL).

Put it in a HUD attachment or something, then just touch the HUD to make the slurl. Open your chat history and copy from there.

I don't know of a way to retrieve the parcel name or description, so this just uses the sim name as the SLURL title. It doesn't convert spaces in the names.


CODE
// SLURL Maker 0.4
// by Dyne Talamasca

vector Where;
string Name;
string SLURL;
integer X;
integer Y;
integer Z;

default
{
touch_start(integer numtouching)
{
llOwnerSay("One moment, retrieving data...");
Name = llGetRegionName();
Where = llGetPos();

X = (integer)Where.x;
Y = (integer)Where.y;
Z = (integer)Where.z;


// I don't replace any spaces in Name with %20 and so forth.

SLURL = "http://slurl.com/secondlife/" + Name + "/" + (string)X + "/" + (string)Y + "/" + (string)Z + "/?title=" + Name;

llOwnerSay(SLURL);
}

}
_____________________
Dyne Talamasca - I hate the word "bling".

Miscellany on MySLShop.com, SLB, and SLEx

Plonk
Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
04-03-2006 08:37
/54/ef/98068/1.html
_____________________
i've got nothing. ;)