Trolo8 Hax Posted February 26, 2012 Share Posted February 26, 2012 Hey there :matte-motes-smile:Does anyone happen to know where i can find a vending machine script ? For example- there is a vendor type prim with a lot of items and i just pay the prim and click on the item i want.NOT A VENDOR SCRIPT where you just right click on the object you want and pay, this is a bit different. Sort of like in RL where you pay a vending machine then pick what you want out of it. Thanks in advance!:matte-motes-big-grin: Link to comment Share on other sites More sharing options...
Lucinda Bulloch Posted February 26, 2012 Share Posted February 26, 2012 What you seem to be asking for is a script that you pay first then get a menu, that is poss, but most do a menu first then pay as many things are diff prices, put a pay first then menu is poss. Link to comment Share on other sites More sharing options...
Rolig Loon Posted February 26, 2012 Share Posted February 26, 2012 When you write your script, just use condition tests in its money event to present a different menu of possible items depending on the amount the user has paid. The real challenge, and the reason I would probably avoid writing a script like this myself, is that you will need to make some provision for making change. That requires you, the owner of the vendor object, to give PERMISSION_DEBIT and it opens up the possibility of abuse unless you are very careful in writing the script. I'd also be cautious about using such a vendor "off the shelf" for the same reason, unless I could examine its script carefully to be sure that it didn't include some trap door that could be used to drain my account. Link to comment Share on other sites More sharing options...
Ela Talaj Posted February 26, 2012 Share Posted February 26, 2012 Should be pretty easy to write as it is the same price for all. Not gonna do it for free though. If have L$, contact me in world, otherwise write yourself. Link to comment Share on other sites More sharing options...
Luca Coeur Posted February 26, 2012 Share Posted February 26, 2012 Hi there, you could also visit a class at the NCI: "Scripting a low lag vendor" on monday 10:00am. Seems the right thing for your purpose - or search the LSL-library for a free LSL vendor script. Google comes up with: http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryVendor Have fun Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now