Scripts Library

Creating scripts
User avatar
Selby Evans
Posts: 620
Joined: Wed Sep 04, 2013 6:00 pm
Has thanked: 1840 times
Been thanked: 822 times

Re: Scripts Library

Post by Selby Evans »

I have tried to use hypergates in the past. Some did work in Kitely, but were unreliable. Maria Korolov may have more information--she has had a number of hypergates on her place and has tried to get them to work. I have not checked the current status.
Check here:
http://www.hyperica.com/2014/07/hyperica/
Graham Mills
Posts: 1314
Joined: Sun Dec 23, 2012 2:26 pm
Has thanked: 1134 times
Been thanked: 1141 times

Re: Scripts Library

Post by Graham Mills »

Worked OK for me in all three modes with Firestorm 4.7.7 (48706). As Dot said elsewhere, the hypergrid teleport may require a couple of touches (I got a "destination no longer exists"-type error first time). I haven't checked it with any other viewers. The script can be converted to a gate by changing touch_start to collision_start but, of course, it's very basic in many ways compared to other teleport devices out there.
Graham Mills wrote:Last time I checked there were some differences between viewers. There's a touch-activated script here
viewtopic.php?f=26&t=759&start=60#p18850
User avatar
Freda Frostbite
Posts: 742
Joined: Sat Mar 29, 2014 2:10 am
Location: Florida, space coast.
Has thanked: 608 times
Been thanked: 769 times

Re: Scripts Library

Post by Freda Frostbite »

I actually tried going to Hyperica last night for this very purpose and could not get there. I could get to Hyperica north or central, but then could not get from there to Hyperica, so I suspect something is up with that region. For now, I am giving up on Hypergates and using the opensimworld beacon instead. MUCH more reliable. I have noted that gates do not work consistently in any of the places that have them installed. A few even have signs to that affect.
CaitanyaRupa Navarathna
Posts: 5
Joined: Thu Apr 18, 2013 6:31 am
Has thanked: 0
Been thanked: 6 times

MP3 playlist jukebox using osSetParcelMediaURL with timer

Post by CaitanyaRupa Navarathna »

Okay adding an MP3 Jukebox - plays a playlist of MP3 hosted on the internet

Code: Select all

// this script will let you play a list of MP3s that are hosted on the web

// it was created by mutual work with others on opensim - not sure who started it but it has evolved and so is full perm - please share it and don't hoard - it's BAD KARMA!

// first you copy and paste the names of the files into the list songs (make sure you have quotes surrounding each filename for example "file.mp3"

list songs = ["file1.mp3","file2.mp3","file3.mp3","file4.mp3","file5.mp3","file6.mp3","file7.mp3"];
list songlengths = [123,234,150,245,332,332,281];

// time needs to be in seconds - so if song is 2 minutes 30 seconds then that is 2 (minutes) X 60 (seconds per minute) + 30 (seconds) = 150 
// times should match sequence of filenames they match

string path = "http://myurlhere/folder/folder/etc/";
// add your URL to the string path = "http://myurlhere/folder/folder/etc/"

integer currentsong = 0;


default
{
     on_rez(integer start_param)
    {
        // Restarts the script every time the object is rezzed
        llResetScript(); 
    }
     state_entry()
     {
          integer currentsong = 0;
          llSetTimerEvent(0.01);
     }

     timer()
     {
          osSetParcelMediaURL(path + llList2String(songs, currentsong));

          llSetTimerEvent(llList2Float(songlengths, currentsong));
          currentsong = currentsong + 1;
          if (currentsong > 6)
//count the number of files and subtract 1 - counting starts at 0 - so 0,1,2,etc - add this to the currrentsong > #of songs minus 1
          {
              currentsong = 0;
          }
     }

}



These users thanked the author CaitanyaRupa Navarathna for the post (total 3):
Dot MatrixConstance PeregrineShandon Loring
Post Reply