Jump to content
MakeWebGames

IS THERE ANY WAY I CAN MAKE THE BRAVE GO UP 1/15 A MINUTE?


-CrAzY-

Recommended Posts

currently it goes up 1/15 per five mins i want it to goe up 1/15 per minute,

i was thinking making a file called cron_onemin then putting only the line in cron_fivemins that says about the brave then setting the cron up and instead of:

*/5 * * * * curl http://ma game name/cron_fivemins.php?code=87df313a5958a1f9bcef0f5197f95a02

it would be:

*/1 * * * * curl http://ma game name/cron_onemin.php?code=and a code here

so could someone please tell me what i have ot take out of cron_fivemins to put into cron_onemin

wot to put the cron for ( */1 * * * *??)

and what code to put on end , wich is highlighted in red above

Thanks!

Link to comment
Share on other sites

Guest Anonymous

Re: IS THERE ANY WAY I CAN MAKE THE BRAVE GO UP 1/15 A MINUTE?

What about

 

<?php

include "config.php";

global $_CONFIG;

if($_GET['code'] != $_CONFIG['code']) { die(""); }

define("MONO_ON", 1);

require "class/class_db_{$_CONFIG['driver']}.php";

$db=new database;

$db->configure($_CONFIG['hostname'],

$_CONFIG['username'],

$_CONFIG['password'],

$_CONFIG['database'],

$_CONFIG['persistent']);

$db->connect();

$c=$db->connection_id;

$set=array();

$settq=$db->query("SELECT * FROM settings");

while($r=$db->fetch_row($settq))

{

$set[$r['conf_name']]=$r['conf_value'];

}

$query="UPDATE users SET brave=brave+((maxbrave/10)+0.5) WHERE brave<maxbrave ";

$query2="UPDATE users SET brave=maxbrave WHERE brave>maxbrave";

}

?>

Link to comment
Share on other sites

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...