Einrichten des Superbots von -Superking- - lachi458 - 30.12.2008
so
der bot weiß ja nicht, welchen acc er steuern soll
also
bei dem dslan hauptordner gehe auf
htdocs ? bot ? config.php
da drinne steht
Code: <?php
$config_bot['builds'][] = 'main';
$config_bot['builds'][] = 'barracks';
$config_bot['builds'][] = 'stable';
$config_bot['builds'][] = 'garage';
$config_bot['builds'][] = 'snob';
$config_bot['builds'][] = 'smith';
$config_bot['builds'][] = 'place';
$config_bot['builds'][] = 'market';
$config_bot['builds'][] = 'wood';
$config_bot['builds'][] = 'iron';
$config_bot['builds'][] = 'stone';
$config_bot['builds'][] = 'farm';
$config_bot['builds'][] = 'storage';
$config_bot['builds'][] = 'hide';
$config_bot['builds'][] = 'wall';
$bot->add_bot('-superking-');
$bot->add_config('off_unit','axe');
$bot->add_config('off_axe',6/7);
$bot->add_config('off_unit','light');
$bot->add_config('off_light',1/7);
$bot->add_config('deff_unit','spear');
$bot->add_config('deff_spear',1/2);
$bot->add_config('deff_unit','sword');
$bot->add_config('deff_spear',1/2);
$bot->add_config('offdeff_unit','spear');
$bot->add_config('offdeff_spear',3/10);
$bot->add_config('offdeff_unit','sword');
$bot->add_config('offdeff_sword',3/10);
$bot->add_config('offdeff_unit','axe');
$bot->add_config('offdeff_axe',3/10);
$bot->add_config('offdeff_unit','light');
$bot->add_config('offdeff_light',1/10);
$config_bot['log'] = false;
//die versionsnummer nicht ändern!!!!
$config_bot['version'] = 0.95;
?>
nach den ganzen baubefehlen
Code: $config_bot['builds'][] =...
steht
Code: $bot->add_bot('-superking-');
da wo -superking- steht, muss dein name rein
ich nehme jetzt mal, als beisiel,
beispiel_bot_1
beispiel_bot_2
da wo diese namen stehtn, in den codes, kommen eure namen rein
code für beispiel_bot_1 <?php
$config_bot['builds'][] = 'main';
$config_bot['builds'][] = 'barracks';
$config_bot['builds'][] = 'stable';
$config_bot['builds'][] = 'garage';
$config_bot['builds'][] = 'snob';
$config_bot['builds'][] = 'smith';
$config_bot['builds'][] = 'place';
$config_bot['builds'][] = 'market';
$config_bot['builds'][] = 'wood';
$config_bot['builds'][] = 'iron';
$config_bot['builds'][] = 'stone';
$config_bot['builds'][] = 'farm';
$config_bot['builds'][] = 'storage';
$config_bot['builds'][] = 'hide';
$config_bot['builds'][] = 'wall';
$bot->add_bot('beispiel_bot_1');
$bot->add_config('off_unit','axe');
$bot->add_config('off_axe',6/7);
$bot->add_config('off_unit','light');
$bot->add_config('off_light',1/7);
$bot->add_config('deff_unit','spear');
$bot->add_config('deff_spear',1/2);
$bot->add_config('deff_unit','sword');
$bot->add_config('deff_spear',1/2);
$bot->add_config('offdeff_unit','spear');
$bot->add_config('offdeff_spear',3/10);
$bot->add_config('offdeff_unit','sword');
$bot->add_config('offdeff_sword',3/10);
$bot->add_config('offdeff_unit','axe');
$bot->add_config('offdeff_axe',3/10);
$bot->add_config('offdeff_unit','light');
$bot->add_config('offdeff_light',1/10);
$config_bot['log'] = false;
//die versionsnummer nicht ändern!!!!
$config_bot['version'] = 0.95;
?>
code für beispiel_bot_2 <?php
$config_bot['builds'][] = 'main';
$config_bot['builds'][] = 'barracks';
$config_bot['builds'][] = 'stable';
$config_bot['builds'][] = 'garage';
$config_bot['builds'][] = 'snob';
$config_bot['builds'][] = 'smith';
$config_bot['builds'][] = 'place';
$config_bot['builds'][] = 'market';
$config_bot['builds'][] = 'wood';
$config_bot['builds'][] = 'iron';
$config_bot['builds'][] = 'stone';
$config_bot['builds'][] = 'farm';
$config_bot['builds'][] = 'storage';
$config_bot['builds'][] = 'hide';
$config_bot['builds'][] = 'wall';
$bot->add_bot('beispiel_bot_2');
$bot->add_config('off_unit','axe');
$bot->add_config('off_axe',6/7);
$bot->add_config('off_unit','light');
$bot->add_config('off_light',1/7);
$bot->add_config('deff_unit','spear');
$bot->add_config('deff_spear',1/2);
$bot->add_config('deff_unit','sword');
$bot->add_config('deff_spear',1/2);
$bot->add_config('offdeff_unit','spear');
$bot->add_config('offdeff_spear',3/10);
$bot->add_config('offdeff_unit','sword');
$bot->add_config('offdeff_sword',3/10);
$bot->add_config('offdeff_unit','axe');
$bot->add_config('offdeff_axe',3/10);
$bot->add_config('offdeff_unit','light');
$bot->add_config('offdeff_light',1/10);
$config_bot['log'] = false;
//die versionsnummer nicht ändern!!!!
$config_bot['version'] = 0.95;
?>
ich weiß nicht, ob man das beides zusammen laufen lassen kann, und/oder ob beide namen in einen code können, oder nicht
so, nach einem kleinen test ging es bei mir^^
hier jetzt der codemit beidem drinne
code für beide beispiel_bots <?php
$config_bot['builds'][] = 'main';
$config_bot['builds'][] = 'barracks';
$config_bot['builds'][] = 'stable';
$config_bot['builds'][] = 'garage';
$config_bot['builds'][] = 'snob';
$config_bot['builds'][] = 'smith';
$config_bot['builds'][] = 'place';
$config_bot['builds'][] = 'market';
$config_bot['builds'][] = 'wood';
$config_bot['builds'][] = 'iron';
$config_bot['builds'][] = 'stone';
$config_bot['builds'][] = 'farm';
$config_bot['builds'][] = 'storage';
$config_bot['builds'][] = 'hide';
$config_bot['builds'][] = 'wall';
$bot->add_bot('beispiel_bot_1');
$bot->add_bot('beispiel_bot_2');
$bot->add_config('off_unit','axe');
$bot->add_config('off_axe',6/7);
$bot->add_config('off_unit','light');
$bot->add_config('off_light',1/7);
$bot->add_config('deff_unit','spear');
$bot->add_config('deff_spear',1/2);
$bot->add_config('deff_unit','sword');
$bot->add_config('deff_spear',1/2);
$bot->add_config('offdeff_unit','spear');
$bot->add_config('offdeff_spear',3/10);
$bot->add_config('offdeff_unit','sword');
$bot->add_config('offdeff_sword',3/10);
$bot->add_config('offdeff_unit','axe');
$bot->add_config('offdeff_axe',3/10);
$bot->add_config('offdeff_unit','light');
$bot->add_config('offdeff_light',1/10);
$config_bot['log'] = false;
//die versionsnummer nicht ändern!!!!
$config_bot['version'] = 0.95;
?>
jetzt musst nur noch in der adress zeile
eingeben
aso^^
den inhalt des spoilers mustte in config-php einfügen
|