prototype Posted July 3, 2011 Posted July 3, 2011 hi guys actually i m a newbie so i want to ask u guys in gamess like torn if we donate our energy goes upto to 150 and in 10 minutes 5 energy will cm bt in my mccodes game i dnt know how to do tht so i want help frm u guys and help will be apreciated Quote
xFusion Posted July 3, 2011 Posted July 3, 2011 easy as simple cron and Database fiddle just put in the Cron five mins Updating users and setting the Will to w.e number you want not too famillar with Mccodes but im guessing it would be like that Quote
chicka Posted July 4, 2011 Posted July 4, 2011 hi guys actually i m a newbie so i want to ask u guys in gamess like torn if we donate our energy goes upto to 150 and in 10 minutes 5 energy will cm bt in my mccodes game i dnt know how to do tht so i want help frm u guys and help will be apreciated in your header.php you'll probably wanna put something like this $db->query("UPDATE users SET maxenergy=100 WHERE donatordays='0'"); $db->query("UPDATE users SET maxenergy=150 WHERE donatordays>='1'"); Then you'll wanna make a new cron to run every 5 min to update the user thats a donator Quote
lucky3809 Posted July 4, 2011 Posted July 4, 2011 $db->query('UPDATE users SET maxenergy= 150 WHERE donatordays > 0')or die(mysql_error()); $db->query('UPDATE users SET maxenergy= 100 WHERE donatordays = 0')or die(mysql_error()); Quote
lucky3809 Posted July 4, 2011 Posted July 4, 2011 If he's wanting a set energy bar 100/100 for non donators and 150/150 for donators then no you dont want to update the +(level*2) unless you are wanting more energy on the top of the 100 and 150. which i dont think thats what he wanting. I use the method that I provided didnt see chickas reply but her/his solution would work also . Quote
chicka Posted July 4, 2011 Posted July 4, 2011 Wouldent it be 100+(level*2) and 150+(level*2) Dayo I tried that theory just for fun and it would work, if you wanted your energy to go up with your level. At level 200 I had 500 energy by default Quote
Dominion Posted July 4, 2011 Posted July 4, 2011 Does mccodes not have faster energy gain for users who have donated built in? Unless you're using lite? Quote
Dominion Posted July 4, 2011 Posted July 4, 2011 i m using mccodes v2 Then check your cron_fivemins something along the lines of what you're asking for should already come with mccodes. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.