Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Plug and Play Vehicle Rental System

Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
02-10-2004 06:01
Well... almost. :-)

Many of you are aware of the hang glider rental sign at Zoe Airfield. I often receive inquiries about how it works, whether the rental system is for sale, etc.

Well... it is now available as an almost completely plug & play system! You can find it for sale at Zoe Airfield Zoe(200,150) in the office by the cash register. Before you buy, you can touch the box to get the entire Readme file which includes the license agreement (it's painless, I promise), overview, features, complete documentation, and even some sample code.

Features include:
  1. Time-based rental for use with any vehicle type.
  2. Collision-based rental for flying craft. This mode has the option to specify minimum and maximum time limits so it can adapt to just about anyone's needs.
  3. Easily configurable announcements and informative llSay()'s.
  4. Configurable rental price with error-correction. IE, if someone pays too little or too much, the vendor will take the appropriate action.
  5. Rental system notifications to the main vehicle script if you want to take advantage of them. This allows for events to be triggered. For example, my hang gliders shoot up into the sky as soon as the renter enters the vehicle. This customization self-contained in a section of script separate from the main vehicle code! An example of how to use this is given in the documentation.


A small amount of scripting is necessary to get the rental system working with any particular vehicle, but if you are a vehicle creator chances are you already have the scripting knowledge to handle what is required. It's *really* simple, I promise! If you read all the documentation and still can't figure it out, just IM me in-world, and I'll help you get your vendor up and running at no extra cost.

In addition to the rental scripts, the package also includes a sample vendor for the Zoe Airfield buggy so you can even have a working example for reference. FYI, this example only took me about 10 minutes to create, and 5 minutes of that involved making the silly sign image in photoshop! Estimated time involved in getting your first vehicle rental vendor up and running is 15-20 minutes.

The location if you missed it is Zoe Airfield Zoe(200,150) in the office by the cash register.


I have been playing around with the idea of making a multi-vehicle, multi-user vendor as well. If you would be interested in this expansion to the rental system, give me a shout. The more interest I see expressed in something, the more likely it'll get done.

See you on the inside! :D
_____________________
Apotheus Silverman
Shop SL on the web - SLExchange.com

Visit Abbotts Aerodrome for gobs of flying fun.
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
02-10-2004 06:35
I also have been playing with a rental script - basically its:

in pseudocode:

string getLastPayDate
integer payPerDay

if currentDay is greater than Paydate
Request Debit Permissions
Pay Designer Key payperDay*(getlastpaydate-currentday)
end if


Pretty simple & easy to implement, just throw it on a 300ms timer.

-Adam