Author Topic:  [Blueprint] Entry Fee / Pay per use  (Read 300 times)

0 Members and 1 Guest are viewing this topic.

muD

  • Legendary Member
  • *****
  • Posts: 1177
  • Awards Members who have unlocked the robotic avatar Awarded to exemplary forum members Day 1 w/25+ posts (4/12/13) 2 years on site Former MotM winners 1 year on site
    • View Profile
    • Awards
[Blueprint] Entry Fee / Pay per use
« on: December 31, 2014, 09:03:50 AM »
Entry Fee / Pay per use


This script can be used to set an entry fee.



This example is set to charge players a fee each time they use it, but with minor modifications it can be set to a one-off fee, so players pay once then can access it however many times they want thereafter.
Or set any fee for however many times they can use it.. It's up to you, of course.
It is easily customisable, allowing any script to be run any amount of times for any set fee.





Buying a Key:

Spoiler for Hidden Content:
Stock & sell keys from an economised shop.

This the easiest method to set up but is far more difficult to manage overall. Not my recommended method.
Players can drop or swap keys & only 16 variations of key can be used in a world -which means only 16 unique locks.



Buy a Button:

Spoiler for Hidden Content:
Players could buy a button or switch from an economised shop.

This is not my recommended method but just showing it is an example.
It requires making edit zones, edit permissions & economised shops.
This is probably the most difficult method to initially set up but works effectively & requires no maintenance once done.



-Make a small edit-zone so players with edit perms can put their button in place.
-The button will be used to power a script to set the power on & off, allowing access for adjustable lengths of time.
-Make the script also remove the button so players have to buy a button each use.

Example:


1: Will clear the button away
2: Will set the power on for the safe to open
3: Optional/adjustable delay.
4: Turns power to the safe off. An optional & adjustable time limit can be put in place
-A 5th command line could be added to restock the safe after each use.