Anyone with experience in RPG's here? I have this Mafia Wars-like game. Almost everything is working well except for the part where you can distribute skill points every level up. I've solved the energy and health upgrade by doing a cron job, but this one stumps me. Anyone got an idea? Or can you point to a tutorial? Thanks in advance.
you dont need a cron job for energy upgrades You can figure out how many "ticks" have past based on the last update time,current update time and the time each tick takes. A bit more involved than that, but don't rely on a cron job to do something that needs to be checked on in real time. Plus most people will have a different update time(offset) based on when they created their account. as for skill points, just check for when a player has hit the exp threshold and credit the player with "ZEN" (mafia live reference) points. Then create a form where a player picks an attribute to add to, continue until there are now more "ZEN" points.