Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Rental Bot Help - Min/Max Weeks - Refunds / Rewards

Ody Naglo
Registered User
Join date: 1 Apr 2008
Posts: 31
01-10-2009 12:30
Im Looking to get some help with a Rental Bot Script that I been working to improve myself. Right now im trying to add minimum and Maximum Weeks. I have no clue where to start.

I need for the Rental to refund the givers L if he/she dosent buy enuff weeks or goes over the maximum weeks.

Also If they already have weeks and there adding onto thos weeks and they go over to only refund the ammount that is over the maximum rental period.


Anyone who helps me solve this problem will be able to choose 2 items from my Xstreet Store free of change.


- Store:
http://www.xstreetsl.com/modules.php?name=Marketplace&MerchantID=146245


- Pastebin:
http://pastebin.com/m3dda537e


Had to use pastebin it wouldnt let me load my code onto the fourms =/
Ody Naglo
Registered User
Join date: 1 Apr 2008
Posts: 31
01-12-2009 15:07
I guess this one was to hard =P
Escort DeFarge
Together
Join date: 18 Nov 2004
Posts: 681
01-12-2009 15:20
...or presented in a form that's too inconvenient.
_____________________
http://slurl.com/secondlife/Together
Winter Seale
Registered User
Join date: 27 Dec 2006
Posts: 30
01-12-2009 16:26
All of this seems pretty easy Ody, really, basically trivial, but my, and probably other's, interest in doing free scripting for someone we don't know, especially with an unindented script are pretty low, sorry. =p

I'm happy to tell you generally what you need to do though. In your script's money event you need to check the amount argument. If you want to give a refund you use llGiveMoney* to pay the person. The example on the wiki for the money event already refunds the buyer if they give the wrong amount.

http://wiki.secondlife.com/wiki/Money

* And of course you'll need to get the PERMISSION_DEBIT permission at some point before doing that.