EpicFuse Posted June 20, 2009 Share Posted June 20, 2009 none of these are refilling could someone please help? Quote Link to comment Share on other sites More sharing options...
EpicFuse Posted June 20, 2009 Author Share Posted June 20, 2009 Re: Will,Brave and energy still looking for help! Quote Link to comment Share on other sites More sharing options...
Pieces Posted June 20, 2009 Share Posted June 20, 2009 Re: Will,Brave and energy Your crons aren't working. Quote Link to comment Share on other sites More sharing options...
SouIAssassin Posted June 20, 2009 Share Posted June 20, 2009 Re: Will,Brave and energy some cron have to be set up to wget and it might work Quote Link to comment Share on other sites More sharing options...
EpicFuse Posted June 20, 2009 Author Share Posted June 20, 2009 Re: Will,Brave and energy this is my cron_fivemins.php if yopu see anything that needs fix just please fix it lol im a noob at coding <?php include "config.php"; $db->query("UPDATE users SET break=1"); $stocks = mysql_query("SELECT stockID FROM `stock_stocks`"); while($soc = mysql_fetch_assoc($stocks)) { $rand = mt_rand(1,2); if($rand == 2) { $mr = mt_rand(10,250); mysql_query("UPDATE `stock_stocks` SET `stockUD` = 2, `stockCHANGE` = ".$mr.", `stockNPRICE` = (`stockNPRICE` - ".$mr.") WHERE `stockID` = ".$soc['stockID']); } else { $mr = mt_rand(10,250); mysql_query("UPDATE `stock_stocks` SET `stockUD` = 1, `stockCHANGE` = ".$mr.", `stockNPRICE` = (`stockNPRICE` + ".$mr.") WHERE `stockID` = ".$soc['stockID']); } } include_once('global_func.php'); $sel = mysql_query("SELECT stockID,stockNAME FROM `stock_stocks` WHERE `stockNPRICE` < 0"); while($soc = mysql_fetch_assoc($sel)) { if(mysql_num_rows(mysql_query("SELECT holdingID FROM `stock_holdings` WHERE `holdingSTOCK` = ".$soc['stockID']))) { $user = mysql_query("SELECT holdingUSER FROM `stock_holdings` WHERE `holdingSTOCK` = ".$soc['stockID']); $user = mysql_fetch_assoc($user); event_add($user['holdingUSER'], 'Stock '.$soc['stockNAME'].' crashed, you lost all your shares.'); } mysql_query("DELETE FROM `stock_holdings` WHERE `holdingSTOCK` = ".$soc['stockID']); mysql_query("UPDATE `stock_stocks` SET `stockUD` = 1,`stockCHANGE` = 0,`stockNPRICE` = `stockOPRICE` WHERE `stockID` = ".$soc['stockID']); } 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']; } //brave update $query="UPDATE users SET brave=brave+((maxbrave/10)+0.5) WHERE brave<maxbrave "; $query2="UPDATE users SET brave=maxbrave WHERE brave>maxbrave"; $query3="UPDATE users SET hp=hp+(maxhp/3) WHERE hp<maxhp"; $query4="UPDATE users SET hp=maxhp WHERE hp>maxhp"; $db->query($query); $db->query($query2); $db->query($query3); $db->query($query4); //enerwill update $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"; $query2="UPDATE users SET energy=maxenergy WHERE energy>maxenergy"; $query3="UPDATE users SET will=will+10 WHERE will<maxwill"; $query4="UPDATE users SET will=maxwill WHERE will>maxwill"; $db->query($query); $db->query($query5); $db->query($query2); $db->query($query3); $db->query($query4); 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"); } ?> Quote Link to comment Share on other sites More sharing options...
Pieces Posted June 20, 2009 Share Posted June 20, 2009 Re: Will,Brave and energy When you ran the installer php you were giving some codes, these were your crons, they look somethinf like this curl http//www.yourgamename.co.uk-somelongasscode Quote Link to comment Share on other sites More sharing options...
Danny696 Posted June 20, 2009 Share Posted June 20, 2009 Re: Will,Brave and energy its not the file and your obvs a newbie at this so what you needa do is set up your crons to work you do that via cpanel..>cronjobs...> then you needa set it up from there Quote Link to comment Share on other sites More sharing options...
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.