Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Help With Script For Typing /google and getting Blue Popup

Kevin Paisley
Registered User
Join date: 26 Oct 2006
Posts: 32
10-22-2007 06:34
Hi I was trying to write a script that would allow a public chat command to display a blue popup to access a website. Im using google just for an example. I use a touch script currently on the prim and when you touch it you get a blue popup but want to add public chat command where you type /google it will show a blue popup to access the site.

CODE

default
{
state_entry()
{
llListen(0,"","","/google");
}

listen(integer channel, string name, key id, string message)
{
llLoadURL("http://www.google.com/");
}
}


That code doesnt seem to be working and it appears it should. How can i tweak that to get it to do that?

Thanks in advance,
Kevin Paisley
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
10-22-2007 06:47
CODE

default
{
state_entry()
{
llListen(0,"","","/google");
}

listen(integer channel, string name, key id, string message)
{
llLoadURL(id, "", "http://www.google.com/");
}
}

If you install LSLEditor & the plugin lslint, you could have done what i just did. Running lslint showed that there were too few arguments in llLoadUrl. Mouseover llLoadUrl showed what I need to add to it. Once lslint said it was good I was actually able to run it in LSLEditor and when I said /google, a webpage popped up with Google loaded. All of this without ever logging into SL.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
10-22-2007 06:50
Once you are past the testing phase then please choose a channel different then 0.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Kevin Paisley
Registered User
Join date: 26 Oct 2006
Posts: 32
10-22-2007 07:12
Hi,

I download both of those items for future use. When i try your code it gives me the following script error.

Object: llLoadURL - can't find avatar

:(

I know it has to be possible to type something in public chat and get a webpage redirect blue popup because I have seen it before. Any additional help would be appreciated.

Kevin Paisley
Kevin Paisley
Registered User
Join date: 26 Oct 2006
Posts: 32
10-22-2007 07:24
It works now since you edited your post :)

Thanks alot!

Kevin Paisley
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
10-22-2007 07:55
heehee Yep I had pasted the wrong one at 1st.

NP!!!! Glad to see new people learning.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
10-22-2007 10:07
anybody know if they implemented a way to block these dialogs yet, or are they still the spam-of-the-month tool?
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
10-22-2007 13:03
From: Shadow Subagja
anybody know if they implemented a way to block these dialogs yet, or are they still the spam-of-the-month tool?

Actually it does have a legitimate use, such as having it in your store so that a customer can touch a prim to visit your website.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum