The integer constant PARCEL_DETAILS_ID has the value 5
This is a flag used with llGetParcelDetails to get the parcel UUID.
integer PARCEL_DETAILS_ID = 5;
Two ways to create a chatted active link in-world to bring up a destination landmark window.
default
{
touch_start(integer nd) // Nice simple code but a long "anonymous" link...
{ // ...and no dest position choice (returns the center of the parcel at zero Z).
llOwnerSay("secondlife:///app/parcel/" +
llList2String(llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_ID]), 0) +
"/about");
}
touch_end(integer nd) // Slightly more complex code but a short "decriptive" link...
{ // ...as well as dest position fine tuning.
vector my_pos = llGetPos();
llOwnerSay("http://slurl.com/secondlife/" +
llEscapeURL(llGetRegionName()) +
"/" +
((string)llRound(my_pos.x)) +
"/" +
((string)llRound(my_pos.y)) +
"/" +
((string)llRound(my_pos.z)));
}
}
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||