Hey everyone, just setting up a display for one of my shops, and I have the home address set with MOAP script, but after someone surfs around the site I need an easy way to return the display to the first page again.
I would like to have a single prim "button" that sends the display back to page 1 web address when touched.
I've been away from scripting for years, and know this is possible, I just cannot for the life of me remember how.
Thanks
Script clickable button to send a differet MOAP to a web address?
- Lunk Portal
- Posts: 165
- Joined: Wed Jan 26, 2022 10:03 am
- Location: Northern Michigan
- Has thanked: 103 times
- Been thanked: 167 times
- Contact:
Script clickable button to send a differet MOAP to a web address?
B. A. Shields (Lunk Portal)
New Mos Eisley: grid.kitely.com:8002:New Mos Eisley
Outer Rim Travel Agency on Tatooine
Kitely Market - Lunk's Loot
SecondLife Market - Lunk's Loot
My Novels and other Projects - https://linktr.ee/bashields
New Mos Eisley: grid.kitely.com:8002:New Mos Eisley
Outer Rim Travel Agency on Tatooine
Kitely Market - Lunk's Loot
SecondLife Market - Lunk's Loot
My Novels and other Projects - https://linktr.ee/bashields
- Gusher Castaignede
- Posts: 275
- Joined: Tue Mar 17, 2015 10:03 pm
- Has thanked: 316 times
- Been thanked: 266 times
Re: Script clickable button to send a differet MOAP to a web address?
You might want to ask at SL scripting forums, you'll get better response, but don't
mention opensim, some of those people down there are biased over opensim,
though mostly all script examples are compatible...
mention opensim, some of those people down there are biased over opensim,
though mostly all script examples are compatible...
-
Graham Mills
- Posts: 1314
- Joined: Sun Dec 23, 2012 2:26 pm
- Has thanked: 1134 times
- Been thanked: 1143 times
Re: Script clickable button to send a differet MOAP to a web address?
Assumes two prim linkset with MOAP on face 1 of root. Insert code in linked button prim. Change URL to suit.Lunk Portal wrote: Sat Feb 19, 2022 3:44 pm Hey everyone, just setting up a display for one of my shops, and I have the home address set with MOAP script, but after someone surfs around the site I need an easy way to return the display to the first page again.
I would like to have a single prim "button" that sends the display back to page 1 web address when touched.
I've been away from scripting for years, and know this is possible, I just cannot for the life of me remember how.
Thanks
Code: Select all
integer FACE = 1;
string URL = "https://www.bbc.co.uk/news" ;
default
{
touch_start(integer n)
{
llSetLinkMedia(LINK_ROOT, FACE, [PRIM_MEDIA_CURRENT_URL, URL]);
}
}
- Lunk Portal
- Posts: 165
- Joined: Wed Jan 26, 2022 10:03 am
- Location: Northern Michigan
- Has thanked: 103 times
- Been thanked: 167 times
- Contact:
Re: Script clickable button to send a differet MOAP to a web address?
Thank you! I'll have to try this after church today! I appreciate it.
B. A. Shields (Lunk Portal)
New Mos Eisley: grid.kitely.com:8002:New Mos Eisley
Outer Rim Travel Agency on Tatooine
Kitely Market - Lunk's Loot
SecondLife Market - Lunk's Loot
My Novels and other Projects - https://linktr.ee/bashields
New Mos Eisley: grid.kitely.com:8002:New Mos Eisley
Outer Rim Travel Agency on Tatooine
Kitely Market - Lunk's Loot
SecondLife Market - Lunk's Loot
My Novels and other Projects - https://linktr.ee/bashields
-
Graham Mills
- Posts: 1314
- Joined: Sun Dec 23, 2012 2:26 pm
- Has thanked: 1134 times
- Been thanked: 1143 times
Re: Script clickable button to send a differet MOAP to a web address?
Very basic, no error handling but it will get you started.Lunk Portal wrote: Sun Feb 20, 2022 11:58 am Thank you! I'll have to try this after church today! I appreciate it.
- Selby Evans
- Posts: 620
- Joined: Wed Sep 04, 2013 6:00 pm
- Has thanked: 1840 times
- Been thanked: 822 times
Re: Script clickable button to send a differet MOAP to a web address?
On my place, Creative Collaborators, you can pick up a MOAP panel that is scripted to reset itself to a specified url every 15 minutes or so. It should be free to copy



