Shows dialog to avatar offering to load web page at url with message.
If user clicks yes, launches the page in their web browser, starting the browser if required.
void llLoadURL( key avatar, string message, string url );
Forced delay: 0.1 seconds. Energy: 10.0.
The url is truncated to 255 characters and message is truncated to 254 characters.
The protocol for the url must be specified, currently only "https://" and "http://" are supported.
The URL should be RFC 1738 compliant with proper escapes.
default
{
touch_start(integer num_detected)
{
key id = llDetectedKey(0);
string info = "Visit the Second Life website!";
// must start with either "http://..." or "https://..."
string url = "http://www.secondlife.com/";
integer avatarInSameRegion = (llGetAgentSize(id) != ZERO_VECTOR); // TRUE or FALSE
if (avatarInSameRegion)
{
llLoadURL(id, info, url);
}
else
{
// if the agent is not in the same region, send a message instead
// the viewer will turn the URL clickable
llInstantMessage(id, info + " " + url);
}
}
}