Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

linking to websites

Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
02-21-2008 06:07
I'm trying to link to an external website

I've used this code but it doesn't work

any help?

default
{

touch_start(integer total_number)
{
llLoadURL("please follow this url", "http://www.ads.ahds.ac.uk";)

}
}
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
02-21-2008 07:45
You forgot to tell llLoadUrl to whom it should present the URL :)

llLoadURL(llDetectedKey(0), "Flame on!", "http://forums.secondlife.com";);
Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
02-21-2008 08:12
Ive got this but it still doesn't work!



default
{
touch_start(integer total_number)
{
llLoadURL(llDetectedKey(0), "Flame on!", "http://forums.secondlife.com";);
}
}


Any ideas???
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
02-21-2008 08:31
Do you mean to say that when you touch it, you do get the dialog, but clicking the button on the dialog doesn't fire up your web browser?

If so, does clicking a link in the chat history also fail?
_____________________
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
02-21-2008 08:37
The wiki says...
From: Teh Wiki
The url is truncated to 255 characters and message is truncated to 254 characters. Introduced in version 1.6, this function was disabled for group deeded items. As of version ~1.9, the function was enabled for group deeded items. In the server upgrade released on 2007-03-14, it appears that the function is again disabled for group deeded items (please change it back!).

Is this a group-deeded object?

http://wiki.secondlife.com/wiki/LlLoadURL
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
02-21-2008 09:07
I get no response whatsoever!

Ive also tried this:

default
{


touch_start(integer total_number)
{
rotation rot = llSetLocalRot();

string z = (string)rot.z;
string s = (string)rot.s;

llSay(0, "z = " + z + ", s = " + s)
}
}



but it doesn't like the 2nd to last }

this is from a door opening tutorial
Wildefire Walcott
Heartbreaking
Join date: 8 Nov 2005
Posts: 2,156
02-21-2008 09:12
From: Boris Eebus
I get no response whatsoever!

Ive also tried this:

default
{


touch_start(integer total_number)
{
rotation rot = llSetLocalRot();

string z = (string)rot.z;
string s = (string)rot.s;

llSay(0, "z = " + z + ", s = " + s)
}
}



but it doesn't like the 2nd to last }

this is from a door opening tutorial

You didn't end the llSay line with a semicolon.
_____________________
Desperation Isle Estates: Great prices, great neighbors, great service!
http://desperationisle.blogspot.com/

New Desperation Isle: The prettiest BDSM Playground and Fetish Mall in SL!
http://desperationisle.com/

Desperation Isle Productions: Skyboxes for lots (and budgets) of all sizes!
Boris Eebus
Registered User
Join date: 8 Feb 2008
Posts: 45
02-21-2008 09:18
it doesn't need a semi colon - the code should be right
I cant even get the default code to work!
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
02-21-2008 09:21
From: Boris Eebus
it doesn't need a semi colon - the code should be right
I cant even get the default code to work!

Er.. Yeah, it kinda does need a semicolon if you want it to compile.
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
02-21-2008 09:24
When you click Save, does it say "Compile successful, saving..."

If so... are you on a parcel with scripts disabled?
_____________________
Wildefire Walcott
Heartbreaking
Join date: 8 Nov 2005
Posts: 2,156
02-21-2008 09:36
From: Boris Eebus
it doesn't need a semi colon - the code should be right
I cant even get the default code to work!

Er, the reason you were getting an error on the } is that you didn't terminate the previous line of code with a semi-colon.
_____________________
Desperation Isle Estates: Great prices, great neighbors, great service!
http://desperationisle.blogspot.com/

New Desperation Isle: The prettiest BDSM Playground and Fetish Mall in SL!
http://desperationisle.com/

Desperation Isle Productions: Skyboxes for lots (and budgets) of all sizes!
Wildefire Walcott
Heartbreaking
Join date: 8 Nov 2005
Posts: 2,156
02-21-2008 09:50
Of course, once you get past that error you'll discover that you're not passing any parameters into llSetRot. I'm betting what you meant to call was llGetRot. Here's real, working code that does both the things you asked. If it's not working for you, make sure you're someplace where scripts are enabled and that the Running box is checked in your script window:

default
{

touch_start(integer total_number)
{
rotation rot = llGetRot();

string z = (string)rot.z;
string s = (string)rot.s;

llSay(0, "z = " + z + ", s = " + s);

llLoadURL(llDetectedKey(0), "Flame on!", "http://forums.secondlife.com";);
}

}
_____________________
Desperation Isle Estates: Great prices, great neighbors, great service!
http://desperationisle.blogspot.com/

New Desperation Isle: The prettiest BDSM Playground and Fetish Mall in SL!
http://desperationisle.com/

Desperation Isle Productions: Skyboxes for lots (and budgets) of all sizes!
Leila Noel
Registered User
Join date: 11 Jun 2007
Posts: 7
Same Question
02-22-2008 08:34
I have the same Question. I want to link an object with a website. Do you have the whoule Script now? I dont understand all the answers.
Best regards and thanks
Leila





From: Boris Eebus
I'm trying to link to an external website

I've used this code but it doesn't work

any help?

default
{

touch_start(integer total_number)
{
llLoadURL("please follow this url", "http://www.ads.ahds.ac.uk";)

}
}
Leila Noel
Registered User
Join date: 11 Jun 2007
Posts: 7
linking
02-27-2008 05:07
this actually worked with two object, but not with the third one :-)


default
{
touch_start(integer total_number)
{
llLoadURL(llDetectedKey(0), "Flame on!", "http://www.readme.cc";);
}
}