Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

teleporter

Liz Millions
Business Woman
Join date: 9 Jan 2005
Posts: 24
03-06-2006 07:54
I need a pay per teleport script. if somebody can tell me how to do it I will appreciated!
Lee Ludd
Scripted doors & windows
Join date: 16 May 2005
Posts: 243
03-06-2006 16:38
The only practical way I can think of is to put the teleporter in a locked box and make people pay to open the box.
Bertha Horton
Fat w/ Ice Cream
Join date: 19 Sep 2005
Posts: 835
03-06-2006 20:49
I can do an llDialog with a destination list, then a Listen which will make llSitTarget change when activated, and I would have to dip into my vendor script to figure out the pay stuff, but it could theoretically be done.

Not on my to-do list though. Also not going to be put into my teleport device which should come out when llTeleport Agent is working. But who knows? It's an interesting suggestion.
_____________________

Trapped in a world she never made!
Ben Bacon
Registered User
Join date: 14 Jul 2005
Posts: 809
03-07-2006 01:30
Could you put the teleporter on a restricted parcel, and use something like llAddToLandPassList to allow paying resis access to it?

If not, I would consider:
  1. Normally, the sit target of your teleporter would be set to drop avs in front of a poster showing the price of the teleport.
  2. UsellSetPayPrice to set the teleport price in the teleporter, and the money event to detect payment.
  3. When an av pays, add his key to a list, and set llSitTarget to the correct location.
  4. Use the changed event to detect avis sitting on the teleporter.
    1. If no-one has payed yet (the list is empty, the sit target is the price poster), just unsit them as usual.
    2. If the sitting av is in the list, the sit target will already be the destination - unsit and remove their key from the list. If the list is now empty, change the sit target back to the "neutral" spot
    3. If the av is not in the list, use llEjectFromLand or something similar to bump them out.

  5. Consider timeouts and refunds as neccessary.
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
03-07-2006 08:43
Don't use a sit teleport, use an llSetPos teleport. You can modify Cubey Terra's Mark III Terraporter to do this pretty easily.