|
Johnathan Padar
Registered User
Join date: 27 Jul 2005
Posts: 23
|
04-08-2006 12:20
was wondering if there is any way to make a good pay to sit script, i tried to use a camping chair script, and reverse it, but i don't think it works right, anyone know a good way to do it like that, to where the person could pay so much to sit for 1 miniute?
|
|
Ordinal Malaprop
really very ordinary
Join date: 9 Sep 2005
Posts: 4,607
|
04-08-2006 12:40
The money event gets the key of the paying avatar, so you could have a script that, when receiving the right amount of money, adds their key to a list of allowed sitters. When someone sits (detected with the usual changed event, and llAvatarOnSitTarget to get the key) the script checks against that list - if someone's key is not on it, it unsits them. If it is, it allows them to sit but starts a timer which unsits them when it runs out.
If you wanted to get fancy you could have a list which recorded each avatar's key with the time that they were allowed to sit for, and count down every second that someone is sitting, so that they could sit, stand up, then sit again if their time wasn't up yet. I don't know quite what you want this for so I don't know if that would be useful.
|
|
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
|
odd idea
04-08-2006 13:09
You'll run into a problem with this if your wanting it to keep taking money while they sit. You can only get permissions to debit from the owner of the prim. This stops nasty people from draining your account having you sit on something.
|
|
Kairen Overdrive
Registered User
Join date: 12 Jul 2005
Posts: 38
|
04-08-2006 14:58
Then have them put money in or get llUnSit();ed. The more money is put in the more longer one can sit.
|