function TB_run() { global $TB_settings; global $AM_settings; global $TB_settings_place; TB_loadAnimalMoverSettings(); TB_loadSettings(); TB_loadSections(); $TB_settings['TB_needReload'] = false; $farm = null; $farm = TB_run_animalmanager_farmGold($farm); $farm = TB_run_animalmanager($farm); $farm = TB_run_mysterygift($farm); $farm = TB_run_flowermanager($farm); $farm = TB_run_storagemanager($farm); // reloding farm if ($TB_settings['TB_needReload']) { DoInit(); $TB_settings['TB_needReload'] = false; } save_array($TB_settings, ToolBox_settings); }
define('ToolBox_settings', 'TB_settings.txt'); define('ToolBox_temp_stats', 'AM_stats_temp.txt'); define('ToolBox_sections', 'TB_sections.txt'); define('AnimalMover_settings', 'AnimalMover_info.txt'); define('AnimalMover_farmGold_IDs', 'AnimalMover_farmGold_IDs.txt'); define('Section_path', $_SESSION['base_path'] . 'plugins/Sections/'); define('GiftBox_path', $_SESSION['base_path'] . 'plugins/GiftBox/'); include 'functions.php'; include 'functions_AM.php'; global $TB_settings; global $AM_settings; global $TB_settings_place; global $TB_update_tempStats; fBAcctHeader(); // preparing data TB_loadAnimalMoverSettings(); if (count($AM_settings) < 2) { echo '<h1>ToolBox by Hypothalamus</h1>'; echo 'animal mover data is not set<br>'; echo 'let the bot run one cycle!'; #return; } TB_loadSettings(); TB_loadSections(); $flowers = array(); $flowers = FM_prepareFormData(); $tempStats = array(); $tempStats = TB_loadTempStats(); $update_tempStats = false; $show = ''; //changed setting?