|
sounds Turner
Registered User
Join date: 13 Sep 2005
Posts: 160
|
12-13-2006 07:18
Hi,
I don't know how they do what soo many stores are doing and it's clear to me now that none of them are ever going to help me find out other than passing off a quick link to the LSL Wiki, i don't know much about scripting either. But i'd like to know if and how would you rent objects, One guy told me his system actually handles everything even through to his web server So all a customer would have to do is buy an item and the service would end after rental
How is this done or is there anything easier i could pick up on?
I understand asking business owners isin't allways the best approach, understandably. As i've found out, to get the cold shoulder or like i said; a link to something i can't use. I just want to learn same as the rest of you.
Thanks in advance
|
|
Learjeff Innis
musician & coder
Join date: 27 Nov 2006
Posts: 817
|
12-13-2006 07:49
Tip: next time, just ask the question. Folks have different reasons for not sharing info, from protecting their investments (of time and/or money), to just not wanting to bother to take the time, but in any case it's immaterial.
I haven't done this, but one option is that the object has a script that simply starts a timer on init (when the script starts). While rezzed, each time the timer goes off a counter is incremented. When the counter reaches a limit, the object deletes itself. If the object is polite, it would warn the user some time before it does this. As I understand it, worn objects can't delete themselves but they can do other things to render themselves useless (see another thread today on this subject).
If you just want the capability and don't want to write the script, try posting your request on the "Products Wanted" list. There may be off-the-shelf products to do this, or you may have to hire a scripter (and note that custom scripts rarely come cheap).
If you don't get any responses, I may consider writing one (a simple one, without web interaction). In that case, you'd get benefits and disadvantages from being first customer: the ability to request features and the need to test and help me solve problems.
|
|
Nosmo Snickerdoodle
Registered User
Join date: 10 Feb 2006
Posts: 7
|
12-23-2006 12:25
I would be interested in being a guineapig for your script learjeff
I am after something like this and would love to help develop it
|
|
Shippou Oud
The Fox Within
Join date: 11 Jul 2005
Posts: 141
|
12-23-2006 18:50
i've seen firework pannels that you bought by time. lets say, an hours usage cost $L200 or so. So much easier to make a timer and llDie than using servers , unless it's for spam-vertisment.
|
|
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
|
12-24-2006 02:03
Learjeff's counter suggestion is how I would implment the idea. As he also states llDie will not work with attachments. Instead make teh object inoperative by deleting its script : llRemoveInventory(llGetScriptName()); // delete this script
|
|
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
|
12-24-2006 04:10
I have a pretty simple script I use for creating "limited time demos". I ususally hardcode the expiration date into the script. (the other options aren't pretty, and is kind of unreliable).
Once the expiration date has passed, the next rez will cause the item to delete. if it's a wearable, add an iunwear command... so they can't wear it, and will be forced to rez it on the ground to see if they can fix it.. and then.. poof!
We did this with Go-carts for the Motorlympics event. Gave all the racers a special, self limiting cart.. and stripped a few features out to protect our IP in the event someone did crack the casing.
But at our track, we actually do have a "rental system" in it's infancy. IT consists of a few small functions:
1. a rezzer. This rezzer generates a new go cart. 2. a countdown timer. if the cart remains unsatupon for 60 seconds, it deletes itself
Now here's the trick to making this a rental system. Take the rezzer and make it rez only in the "money" event. so now it's a "pay to rez" system. The user then has X seconds to get on and play.. or else their rental cart goes poof. The renter can get on the cart, and drive it for as long as they like, but as soon as they get up, that countdown starts again. Get up and go check on some land someplace? by the time you get back you'll need to rent again.
I won't lie to you, there's a lot of pitfalls and gotchas hidden in the rezzer idea... we're STILL bugstomping ours.
It would be a simple upgrade to add a "if it's been 2 hours since rez, delete"... but we decided against it. The only issue with pay-to-rez is that the carts don't "belong" to the renter... so they can't pocket it, and take it to another sim. (of course, that gives them incentives to buy the sale-versions of the carts, with the go-faster stripes.)
One of these two basic concepts can work for most simple things. for renewable rentals or leases.... Then you get into the realm of php and sql, and running offworld databases to manage the "does this grandfather clock rez today? or die?" issues... And frankly if you're getting into longterm rentals.. you really should consider just buying the things.
_____________________
 ● Inworld Store: http://slurl.eclectic-randomness.com ● Website: http://www.eclectic-randomness.com ● Twitter: @WinterVentura
|