[Epoch] Donation Manager (php)


What's This Thing Do?
This tool is designed to allow players to donate to help offset the cost of running a game server
Players pay for "packages", such as $5 for 10 tokens, or $10 for 25 tokens, and use the tokens when
they want, to revive a dead character, get a goody bag of items, or even fix the never ending hourglass timer bug.

Example: Player was killed just prior to restart and knows he/she
is going to not reach their body before restart. The player can log in to the website, use a token
and revive their character so they can rejoin without having to lose keys and such.



This tool also aids in the management of your server by assisting with some simple every day tasks such as trader stock levels and adding new items to traders.

Things to know: Your Character MUST be dead to use the revive part. Having a character alive and hoping to bring back the
previous one does not work. This can only bring back a recently killed character, and you must not
have a character alive. Character must not be logged into the game to use the rest of the features.



What's required?

Web server with php support and e-mail capability. General Database knowledge and access.

Use your game servers already set up database to run this if you like !



How do I get this running?



1) Crate a database, run the included SQL file to make the tables needed.

2) Edit TWO config,php files, first one located in main folder, second in the INC folder

3) Register and Log in with an account, inside the MEMBERS table, locate and edit your account to is_admin = 1 and status = 3

4) Edit gettokens.php with your own code from Paypal (donate button)



This was a project built upon another project (with full permissions) so as I get more time, I will combine the two configs and eliminate the need for redundancy that exists at the moment...



Use at your own risk - see it in operation at http://devistationinc.com/donators/login.php







Image2.jpg


Image4.jpg
Image6.jpg
Image8.jpg


Image5.jpg


Image9.jpg


Image10.jpg




as of 02/28/14

A ton of custom options where moved to config.php (main folder) so please review this carefully...

now supports up to 10 servers with no additional editing needed

now supports case sensitive databases

now supports up to 9 custom loadouts in three weapons categories

now supports up to 3 custom building loot loadouts



as of 03/20/14

Supports Multi-character mod

Now allows admins to edit trader stock

Now allows players to view their player stats

Now Allows admins to clear useless vehicles from the database and let new vehicles spawn

08/12/14

tokenmath.png




Update applied to the token system math

Humanity is now used as currency for the bank, you will lose it to do business with the bank.

Headshots are now bonus currency.

(you will notice my headshots don't match my kills, was just for testing)

buddy.png




A few fixes for the kill/token system were applied - issue with not removing kills from the player was resolved.



The Buddy system was added in -



You set a 6 digit pin number , give this pin number to your friends, and they can now use a token to move their character to your character's location. Remember to eat or drink before your buddy uses the buddy system to move to you, this will allow the world location to be updated to your precise location and not a location from a few minutes earlier.


-----------HELP THREAD-----------
----------DOWNLOAD--------- (old system)
---------PERKS SYSTEM-----(new system)
-----FOLLOW ON GITHUB----
 
Last edited:
Update 04/30/14



logging1.png




Logging added to the admin tools



A potential exploit was identified and corrected by Johnofwax







If you are upgrading from a previous version -



inside the main folder config.php add

logging = 1; // allows logging

Import the donatorslog.sql file to add the logging table





Files that have been updated



logging2.png
 
Due to concerns from the Epoch Developers about real world money and in game item purchasing , a forked version was created -


Player Reward System:



I completely re-hauled the way tokens are given to players. Players can use their in game Zombie kills, Bandit Kills and Player Kills to gain tokens in this system. You will only be able to bank tokens that are in your current ALIVE character, meaning once your character is dead - you will not be able to bank the zombie kills.

Tokens can be used on player rewards such as a backpack with building loot, a base item (like a well with water, a guard tower ), a vehicle (not keyed), a vault code change and more.



How it works:

After playing the game, I rack up 34 zombie kills, 14 bandit kills and 1 human kill.



Depending on the server operator, he may chose to use that 1 human kills against me when calculating the banking.



For the sake of this example, lets say the rewards are as follows:

(Server operators can set values )

.03 for zombie kills

.04 for bandits

.05 for humans



34 x .03 = 1.02

14 x .04 = .56

1 x .5 = .05

----------------------

Total Banked Tokens 1.53



My Zombie kills would be re-set to zero, along with my bandit kills. Human kills would remain as 1 to be used against me again next bank.


-------------------------------- DOWNLOAD HERE -----------------------------------


Banking is done manually - introducing a Risk / Reward system - meaning if I kill 150 zombies, but die before I can get into the system and "bank them" - I lose my zombie kills and will not be able to bank them.
 
Back
Top