Jump to content

Proper Vending Machine script


Trolo8 Hax
 Share

You are about to reply to a thread that has been inactive for 4436 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

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

You are about to reply to a thread that has been inactive for 4436 days.

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
 Share

×
×
  • Create New...