Jump to content
MakeWebGames

Recommended Posts

Posted

For some reason when people buy or sell a house it refills in mins

can some show me an example of hot to change so maybe it refills 10% every 5 mins

Also for some reason I do not have a job cron lol, It seems to have gone :?

Can some tell me the basic job cron?

For daycron.php

Posted

Re: Will Refills To Quickly/ Job Cron

I think we tried that last time and the crons stopped running lol

My 5 Min Crons :

 

<?php

include_once (DIRNAME(__FILE__) . '/config.php');
global $_CONFIG;

if($_GET['code'] != $_CONFIG['code']) {
 echo 'No Access';
 exit;
}

define("MONO_ON", 1);
include_once (DIRNAME(__FILE__) . '/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();
$SelectSettings = $db->query("SELECT `conf_name`, `conf_value` FROM `settings`");
while($r = $db->fetch_row($SelectSettings))
{
 $Set[$r['conf_name']] = $r['conf_value'];
}
$db->query("UPDATE `users` SET `brave`=LEAST(`brave`+((`maxbrave`/'10')+'0.5'), `maxbrave`), `hp`=LEAST(`hp`+(`maxhp`/'3'), `maxhp`), `will`=LEAST((`will`+'10'), `maxwill`), `energy`=IF(`donatordays`<>'0', LEAST(`energy`+(`maxenergy`/'6'), `maxenergy`), LEAST(`energy`+(`maxenergy`/'12.5'), `maxenergy`))");

if($Set['validate_period'] == '5' && $Set['validate_on']) {
 $db->query("UPDATE `users` SET `verified`='0'");
}

if($Set['validate_period'] == '15' && $Set['validate_on'] && in_array(date('i'), array('00', '15', '30', '45'))) {
 $db->query("UPDATE `users` SET `verified`='0'");
}

?>

 

Will I use UPDATE users SET will = will + (maxwill/10) WHERE will < maxwill

Instead of `will`=LEAST((`will`+'10'), `maxwill`)

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