Jump to content
MakeWebGames

Recommended Posts

Posted

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?

Posted

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");

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...