View Single Post
  #1  
Old 10-17-2011, 03:54 PM
LordAdakos
Sarnak
 
Join Date: Dec 2007
Posts: 60
Default Credit Management

I was looking for a platinum sink, and figured that the translocator was much too free. So like the good capitalist I am, I decided to make people PAY to use him!

I want to charge 100pp per port, but I want the NPC to be able to take money in advance and hold it for the player, and keep a running total. I've seen this on other servers, but I cannot for the life of my figure out how to implement it.

I'm guessing I assign a global variable with the characters name and the amount they deposited - and then check that, subtract as necessary ....


But does anyone have an example of a credit system/ using global variables I could look at as an example? Even something simple?
Reply With Quote