Top Free Scripts
Script ID : 29
Audience : Default
Version 1.00
Published Date: 2009/5/28 4:33:44
Reads : 4558
Primitive/Object

Returns exact SLurl link for object.

Can be very useful for an object to tell owner where it is by IM. Then you could click the SLurl link from local chat history to go to object.

string escape(string msg)
{
    return 
llDumpList2String(llParseString2List(msg, [" "], []), "%20");
}

default
{
    
state_entry()
    {
        
llSetText("Touch for a SLurl", <1.000.250.74>, 1);
        
vector pos llGetPos();
        
llWhisper(0"http://slurl.com/secondlife/" escape(llGetRegionName()) + "/" + (string)llRound(pos.x) + "/" + (string)llRound(pos.y) + "/" + (string)llRound(pos.z) + "/");
    }

    
touch_start(integer total_number)
    {
        
vector pos llGetPos();
        
llWhisper(0"http://slurl.com/secondlife/" escape(llGetRegionName()) + "/" + (string)llRound(pos.x) + "/" + (string)llRound(pos.y) + "/" + (string)llRound(pos.z) + "/");
    }
}

0
|  Links 
Printer Friendly Page Send this Script to a Friend
Search for Help
New Product
Free Item
Sponsor

Site Info
Total Hits