Slurl scripting for Kitely

Creating scripts
Post Reply
Cabo Gregoire
Posts: 1
Joined: Tue Oct 22, 2013 11:48 pm
Has thanked: 0
Been thanked: 0

Slurl scripting for Kitely

Post by Cabo Gregoire »

I am trying to adapt a script I use in Second life for use in Kitely. The script returns a slurl in im so the user can return to the location. How do I edit this so it will work for a Kitely location?

Code: Select all

string build_slurl()
{
        string region=llEscapeURL(llGetRegionName());
        vector where = llGetPos();
        integer X = (integer)where.x;
        integer Y = (integer)where.y;
        integer Z = (integer)where.z;
        return "http://slurl.com/secondlife/" + region + "/" + (string)X + "/" + (string)Y + "/" + (string)Z + "/?title=" + region;

}
User avatar
Ilan Tochner
Posts: 6546
Joined: Sun Dec 23, 2012 8:44 am
Has thanked: 5014 times
Been thanked: 4487 times
Contact:

Re: Slurl scripting for Kitely

Post by Ilan Tochner »

Hi Cabo,

Try this (should work in Firestorm and several other OpenSim-compatible TPVs):

Code: Select all

return "hop://osgrid.kitely.com:8002/" + region + "/" + (string)X + "/" + (string)Y + "/" + (string)Z;
Post Reply