Nicholas Posted August 5, 2009 Posted August 5, 2009 hi, im just wondering where and how do u change the vaules of energy refil. as i want it so: if non-donator, you get = 10% energy every 5 mins if donator, you get = 20% energy every 5 mins. can anyone help me on where i can find it? what file? also what do i have to type? Quote
saad Posted August 5, 2009 Posted August 5, 2009 Re: where and how do u change the vaules? Are you on mccodes v2? Quote
POG1 Posted August 5, 2009 Posted August 5, 2009 Re: where and how do u change the vaules? find these lines in cron_fivemins.php $query="UPDATE users SET energy=energy+(maxenergy/(12.5)) WHERE energy<maxenergy AND donatordays=0"; $query5="UPDATE users SET energy=energy+(maxenergy/(6)) WHERE energy<maxenergy AND donatordays>0"; and replace with this.. mysql_query("UPDATE users SET energy = energy + IF(donatordays = 0,(maxenergy/10),(maxenergy/20));"); mysql_query("UPDATE users SET energy = maxenergy WHERE energy > maxenergy"); Quote
Nicholas Posted August 5, 2009 Author Posted August 5, 2009 Re: where and how do u change the vaules? ahh right yes why didnt i think it be in cron_fivemins lol. thx for the help :) 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.