Updating a MySQL table every X minutes
$10-30 USD
Betalades vid leverans
I am currently toying around with a little RPG sort of game.
I am wanting to update a users energy every X minutes.
I know this is possible with a cron, however i am wanting this to work in real time (aswell as for offline).
Basically I am wanting a little timer under the energy stat point counting down, as it reaches 0 the energy is updated via 1, and the timer goes back to X minutes and counts down again, repeating the process.
I need this to work if the user is online, and if the user is offline.
I need checks in place so the user cannot spoof the timer in anyway by changing the time on their device?
This will need to be tested prior to releasing funds.
Thanks
Projekt-id: #11649804
About the project
7 frilansare har lagt bud på i genomsnitt $29 för det här jobbet
9 years experience / web development 7 years experience / mobile app development 2 years experience / graphic design I have mastered the process of developing marketplace based platforms for rides, delivery. Mer
I'll write a Javascript function with the setInterval method, that updates lives everyyime at a specified interval.