Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

"Pay and enter" doors - canit and how to make the script?

Jerry Oranos
Registered User
Join date: 1 Oct 2006
Posts: 8
06-05-2007 03:01
Hi everyone.

I am developing a maze, which holds gifts for those with patiance to look for them inside. However, liek to earn somehting out of the maze, I would like to cahrge entrance fee from those willing to get those gifts (poseballs/cloths/jewlery) hiden in the maze.

Does anyone have an idea of how can I script a door to open only when it get payed? I know there are available door scripts on the forum, can I simply add "llpay" to them in order to get the door to open and automatically pay at the same time? Of course I will also give a note to the person that opening the door (and entering hte maze) coast about the price I will decide.. and then one can go and explore (and take as many free items inside as one like).

Any ideas, would be welcomed with great appreciation.

Jerry Oranos
Qie Niangao
Coin-operated
Join date: 24 May 2006
Posts: 7,138
06-05-2007 04:44
You don't just want to use a parcel's ability to sell a land pass?
Samantha Gustafson
Registered User
Join date: 9 Feb 2007
Posts: 23
06-05-2007 05:01
A closed door rarely stops me from entering a room in SL ;)

When I was very noob I was stupid enough to get into a cage I could not open from the inside. It was then when I learned to sit on the cage to escape :)

In escort clubs I have seen teleporters that only work after being paid. I think that method may work better for you.
Simnelia Petrichor
Registered User
Join date: 10 Feb 2006
Posts: 35
06-05-2007 06:18
But the locked door concept should still work ok as long as you don't have items inside the maze that people can sit down on!

Basically, you need a money event in your door script. That allows people to pay money to the door, and you can check how much they've paid using the event's "amount" parameter.

And to fix the price, put a call to llSetPayPrice in your state_entry event. Something like:

llSetPayPrice(PAY_HIDE, [50, PAY_HIDE, PAY_HIDE, PAY_HIDE]);
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
06-05-2007 07:17
A teleport system would be better for your purpose than an opening door I would think, since once the door is open any number of people can cram through it before it closes again. And the teleport system should be able to ensure that the person who pays the fee actually does go to the maze, rather than them opening the door and not walking in.
NimNim Singh
Registered User
Join date: 15 May 2007
Posts: 2
06-05-2007 14:27
If Jerry was really set on using a door as opposed to a teleport system, you could just use a simple money event as Simnelia suggests, and then also add the payer's key (also taken from the money event) into a list of people who are allowed to be in the maze. You would also have to write an llSensor command that would scan the area inside the maze. If it found anyone inside the maze whose key wasn't on the allowed list, it would feed that key to llEjectFromLand and you could have it IM them with some message like, "No freeloaders!" which they would receive while flying violently out of your maze.

Of course it would be important to make sure that the scanner was only scanning the inside of the maze, otherwise people would be being ejected all over the place.
Jerry Oranos
Registered User
Join date: 1 Oct 2006
Posts: 8
Pay the Maze question
06-12-2007 03:03
Hi everyone,

Thanks for your ideas, it seems that there are many anweres for the same question, I will need to find someone to make that script. The concept is that there will be "sit" objects in the maze and also "touch" objects so people can take them. Now I need to fins someone to make that script, any suggestions?

Jerry