Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

A little teleport challenge....

Slayd Lemieux
Registered User
Join date: 9 Jul 2005
Posts: 29
07-29-2005 19:57
So I've done my research, found ways to make the teleporter I need, but now I'm stuck on the security end of it.

What I need is a few lines of code I can add in my script that will make it dissapear for 30 minutes or so. Point is to make a private room, that once people teleported inside of, no one else could teleport into for that amount of time.

I don't want to use an admit list, because we want these rooms to be available to anyone wether we are online or not. And I don't think an object you'd pay to rez a teleporter would work, because then it could just be paid and rez'd again right?

Will keep working on it, but any ideas you all have would be greatly appreciated!

Thanks!
Slayd Lemieux
Burke Prefect
Cafe Owner, Superhero
Join date: 29 Oct 2004
Posts: 2,785
07-29-2005 20:19
Okay. I have what I call an AV Mover, you sit on it, it takes you do the destination. The magic is all in the controlling rezzer script that sets coords. It does have a built in rez-lockout on a timer (to prevent click-spam) You could just mod the script.
As for setting security on the skybox, that's something else.
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
07-30-2005 03:43
Several ways.

Once it's teleported it sleeps for 30 minutes (well 1800 seconds) so it won't work again. This could be combined with a 'sorry tp is currently blocked' message on hover text if you wanted.

Once it's teleported you move it (llSetPos()) to somewhere it can't be seen and use a timer to bring it back.

They're probably the simplest two ways.

You could rez a blocker 'cube' around the tp box too - again maybe with the tp is blocked the room is in use message, and a timer to kill it.

I'm sure there are other ways too, but they're the first three that spring to mind.
Slayd Lemieux
Registered User
Join date: 9 Jul 2005
Posts: 29
Good but...
07-30-2005 07:49
From: Burke Prefect
Okay. I have what I call an AV Mover, you sit on it, it takes you do the destination. The magic is all in the controlling rezzer script that sets coords. It does have a built in rez-lockout on a timer (to prevent click-spam) You could just mod the script.
As for setting security on the skybox, that's something else.



I might have a use for a teleport like that some other time, (in fact I've seen one used quite well before at a texture lot,) but I see a problem. Wouldn't this only allow one person entrance? Looking to allow a several people in on one teleport.

For some reason this does give me a good idea for some sort of spooky maze to run people through
Slayd Lemieux
Registered User
Join date: 9 Jul 2005
Posts: 29
Very nice!
07-30-2005 07:56
From: Eloise Pasteur
Several ways.

Once it's teleported it sleeps for 30 minutes (well 1800 seconds) so it won't work again. This could be combined with a 'sorry tp is currently blocked' message on hover text if you wanted.

Once it's teleported you move it (llSetPos()) to somewhere it can't be seen and use a timer to bring it back.



Actually, I thought of having it move underground last night right before I went to work. Think this would be a simple solution. But I like the idea of having it sleep with a floating text a lot better.

This really is my first go at scripting here, and I only have VERY basic programming skills. So I would love some help getting this going. Think I can probably get the jist of it, might need some help with some of the more detailed work, lol.

So here's what I'm assuming I'll have to add...

A second state, which hovers text, and puts the item to sleep. Followed by a timer to return it to the default state.

Wow, actually that sounds a lot easier then I thought. Alright, going to go give it a go!
Slayd Lemieux
Registered User
Join date: 9 Jul 2005
Posts: 29
*Cheers!*
07-30-2005 08:41
Alright! Not quite as "clean" as I'd like it, so have a few changes to do to it.. but I got it working just right *golf claps for self*!

Gotta give my props where they're due though! Thank you Jefferey Gomez! Found the base for this script off a reply he posted. Appreciate the help everyone! If anyone is interested, drop me a line.
Blain Candour
Registered User
Join date: 17 Jun 2005
Posts: 83
08-01-2005 15:53
Keep in mind that getting into any area in SL is as simple as alt camming into the area and sitting on a prim. As a matter of fact in a roundabout way that is exactly what the teleporter you use does. If you want an actual secure room you need on that records who click the teleporter and relays it to a security prim that is inside of the room. Then anyone in the room that doesn't match the teleporter clicked key list is unsat and ejected.

Also you can add a volume detect to that same prim so that when someone leaves the room it relays to the teleporter to reenable as the room has an opening. I would use states to do the teleporter disable/enable. default state it is a teleporter. When used it switches to a listener/timer state. If the security prim relays to the teleporter that it has a vacancy or if the timer ends then it switches states back to teleporter again. The best way to relay would be remoteloadscriptpin but you can use shouts and listeners as well if you aren't that far into LSL.

That sounds a lot more complicated than it is really.