Boats for rent, reset if not returned

Forum Archive - from http://theuniversal.net
Locked
User avatar
Jemrada
World Owner
World Owner
Posts: 632
Joined: Tue Aug 10, 2004 3:47 pm
Location: uhhh!
Contact:

Boats for rent, reset if not returned

Post by Jemrada »

HI,

I remember at one time this was tried. Allowing people to use a boat to cross water but people was leaving it in the middle of the water.

Is it possible to allow people to rent or use a boat, but if it is left in the middle of the water or somewhere that it can't be reached. Can it reset after a certain amount of time inactivity?
markxxx420
Posts: 67
Joined: Tue Jul 11, 2006 1:49 am

Post by markxxx420 »

i have a script for this. just make a building that sells a usable item, rename it to something like renta-boat. then in servergamescript.txt in your programfiles/theuniversal/data folder add this;


Event( "UseItem", "Renta-boat" )
{
*command=setvehicle %player% 4
}

you will have to change the name renta-boat to whatever your usable item was renamed to.
User avatar
Jemrada
World Owner
World Owner
Posts: 632
Joined: Tue Aug 10, 2004 3:47 pm
Location: uhhh!
Contact:

Post by Jemrada »

Thanks, What about how long they can use it?

I would like to make it where it can't be taken with them. I want it to only be used for that time they need to go on the water or maybe a certain amount of time.
User avatar
zaroba
World Owner
World Owner
Posts: 7257
Joined: Fri Oct 10, 2003 11:06 pm
Location: Hereford, PA
Contact:

Post by zaroba »

once usable items are used they vanish from your inventory.

so a player could buy a boat from a boat rental shop, use the item when they cross the water, and then they would have to buy another for the next crossing.
User avatar
Jemrada
World Owner
World Owner
Posts: 632
Joined: Tue Aug 10, 2004 3:47 pm
Location: uhhh!
Contact:

Post by Jemrada »

OK, sounds good.

That will work. So they can use it until they select to a new vehicle and then it gone. Excellent


Would this work for maybe a house/tent? I am looking for a way to use a tent as a beginner or low level building with no storage.
Locked