Posts: 16
Threads: 4
Joined: Jul 2011
Reputation:
0
hallo, habe die 1.4 ohne aio
ich hab mir bogenschütze und berittene hinzugefügt als truppen.
in der schmiede gibt es aber 2x berittene :/
wie kann ich das ändern?
Posts: 2'492
Threads: 43
Joined: Mar 2010
Reputation:
87
Kannst du mir mal den Inhalt von dslan/htdocs/include/configs/techs.php in einem code-Tag posten?
LG
Molt
Posts: 16
Threads: 4
Joined: Jul 2011
Reputation:
0
Code: <?php
$cl_techs = new techs();
//////////// Zeitfaktor zum forschen in der Schmiede ////////////
$cl_techs->set_smithfactor("0.997","0.9096");
///////////////////// Alle Technologien /////////////////////
$cl_techs->add_tech("Speer","spear");
$cl_techs->set_group("Infanterie");
$cl_techs->set_woodprice("256","1.6");
$cl_techs->set_stoneprice("244","1.6");
$cl_techs->set_ironprice("296","1.6");
$cl_techs->set_time("2900","1.75");
$cl_techs->set_maxStage("3");
$cl_techs->set_needed(array());
$cl_techs->set_attType(array('def','off','spy'));
$cl_techs->set_description("");
$cl_techs->add_tech("Schwert","sword");
$cl_techs->set_group("Infanterie");
$cl_techs->set_woodprice("360","1.6");
$cl_techs->set_stoneprice("320","1.6");
$cl_techs->set_ironprice("312","1.6");
$cl_techs->set_time("3085","1.75");
$cl_techs->set_maxStage("3");
$cl_techs->set_needed(array("smith"=>"1"));
$cl_techs->set_attType(array('def','off','spy'));
$cl_techs->set_description("");
$cl_techs->add_tech("Axt","axe");
$cl_techs->set_group("Infanterie");
$cl_techs->set_woodprice("280","1.6");
$cl_techs->set_stoneprice("336","1.6");
$cl_techs->set_ironprice("228","1.6");
$cl_techs->set_time("3085","1.75");
$cl_techs->set_maxStage("3");
$cl_techs->set_needed(array("smith"=>"2"));
$cl_techs->set_attType(array('off'));
$cl_techs->set_description("");
$cl_techs->add_tech("Leichte Kavallerie","light");
$cl_techs->set_group("Kavallerie");
$cl_techs->set_woodprice("440","1.6");
$cl_techs->set_stoneprice("496","1.6");
$cl_techs->set_ironprice("416","1.6");
$cl_techs->set_time("5040","1.75");
$cl_techs->set_maxStage("3");
$cl_techs->set_needed(array("stable"=>"3"));
$cl_techs->set_attType(array('off'));
$cl_techs->set_description("");
$cl_techs->add_tech("Schwere Kavallerie","heavy");
$cl_techs->set_group("Kavallerie");
$cl_techs->set_woodprice("600","1.6");
$cl_techs->set_stoneprice("496","1.6");
$cl_techs->set_ironprice("416","1.6");
$cl_techs->set_time("5040","1.75");
$cl_techs->set_maxStage("3");
$cl_techs->set_needed(array("stable"=>"10","smith"=>"15"));
$cl_techs->set_attType(array('def','off','spy'));
$cl_techs->set_description("");
$cl_techs->add_tech("Ramme","ram");
$cl_techs->set_group("Belagerungswaffen");
$cl_techs->set_woodprice("560","1.6");
$cl_techs->set_stoneprice("800","1.6");
$cl_techs->set_ironprice("192","1.6");
$cl_techs->set_time("4480","1.75");
$cl_techs->set_maxStage("3");
$cl_techs->set_needed(array("garage"=>"1"));
$cl_techs->set_attType(array('off'));
$cl_techs->set_description("");
$cl_techs->add_tech("Katapult","catapult");
$cl_techs->set_group("Belagerungswaffen");
$cl_techs->set_woodprice("640","1.6");
$cl_techs->set_stoneprice("960","1.6");
$cl_techs->set_ironprice("560","1.6");
$cl_techs->set_time("5600","1.75");
$cl_techs->set_maxStage("3");
$cl_techs->set_needed(array("garage"=>"2","smith"=>"12"));
$cl_techs->set_attType(array('def','off'));
$cl_techs->set_description("");
$cl_techs->add_tech("Bogen","archer");
$cl_techs->set_group("Infanterie");
$cl_techs->set_woodprice("640","1.6");
$cl_techs->set_stoneprice("560","1.6");
$cl_techs->set_ironprice("740","1.6");
$cl_techs->set_time("3085","1.75");
$cl_techs->set_maxStage("1");
$cl_techs->set_needed(array("main"=>"1","barracks"=>"5","smith"=>"5" ));
$cl_techs->set_description("");
$cl_techs->add_tech("Berittener Bogenschütze ","marcher");
$cl_techs->set_group("Kavallerie");
$cl_techs->set_woodprice("3000","1.6");
$cl_techs->set_stoneprice("2400","1.6");
$cl_techs->set_ironprice("2000","1.6");
$cl_techs->set_time("3085","1.75");
$cl_techs->set_maxStage("1");
$cl_techs->set_needed(array("main"=>"1","stable"=>"5" ));
$cl_techs->set_description("");
$cl_techs->add_tech("Berittener Bogenschütze ","marcher");
$cl_techs->set_group("Kavallerie");
$cl_techs->set_woodprice("3000","1.6");
$cl_techs->set_stoneprice("2400","1.6");
$cl_techs->set_ironprice("2000","1.6");
$cl_techs->set_time("3085","1.75");
$cl_techs->set_maxStage("1");
$cl_techs->set_needed(array("main"=>"1","stable"=>"5" ));
$cl_techs->set_description("");
$cl_techs->add_tech("Berittener Bogenschütze ","marcher");
$cl_techs->set_group("Kavallerie");
$cl_techs->set_woodprice("3000","1.6");
$cl_techs->set_stoneprice("2400","1.6");
$cl_techs->set_ironprice("2000","1.6");
$cl_techs->set_time("3085","1.75");
$cl_techs->set_maxStage("1");
$cl_techs->set_needed(array("main"=>"1","stable"=>"5" ));
$cl_techs->set_description("");
?>
bitte sehr
Posts: 2'492
Threads: 43
Joined: Mar 2010
Reputation:
87
Muss so aussehen:
PHP Code: <?php $cl_techs = new techs();
//////////// Zeitfaktor zum forschen in der Schmiede ////////////
$cl_techs->set_smithfactor("0.997","0.9096");
///////////////////// Alle Technologien /////////////////////
$cl_techs->add_tech("Speer","spear"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("256","1.6"); $cl_techs->set_stoneprice("244","1.6"); $cl_techs->set_ironprice("296","1.6"); $cl_techs->set_time("2900","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array()); $cl_techs->set_attType(array('def','off','spy')); $cl_techs->set_description("");
$cl_techs->add_tech("Schwert","sword"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("360","1.6"); $cl_techs->set_stoneprice("320","1.6"); $cl_techs->set_ironprice("312","1.6"); $cl_techs->set_time("3085","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("smith"=>"1")); $cl_techs->set_attType(array('def','off','spy')); $cl_techs->set_description("");
$cl_techs->add_tech("Axt","axe"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("280","1.6"); $cl_techs->set_stoneprice("336","1.6"); $cl_techs->set_ironprice("228","1.6"); $cl_techs->set_time("3085","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("smith"=>"2")); $cl_techs->set_attType(array('off')); $cl_techs->set_description("");
$cl_techs->add_tech("Bogen","archer"); $cl_techs->set_group("Infanterie"); $cl_techs->set_woodprice("640","1.6"); $cl_techs->set_stoneprice("560","1.6"); $cl_techs->set_ironprice("740","1.6"); $cl_techs->set_time("3085","1.75"); $cl_techs->set_maxStage("1"); $cl_techs->set_needed(array("main"=>"1","barracks"=>"5","smith"=>"5" )); $cl_techs->set_description("");
$cl_techs->add_tech("Leichte Kavallerie","light"); $cl_techs->set_group("Kavallerie"); $cl_techs->set_woodprice("440","1.6"); $cl_techs->set_stoneprice("496","1.6"); $cl_techs->set_ironprice("416","1.6"); $cl_techs->set_time("5040","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("stable"=>"3")); $cl_techs->set_attType(array('off')); $cl_techs->set_description("");
$cl_techs->add_tech("Berittener Bogenschütze ","marcher"); $cl_techs->set_group("Kavallerie"); $cl_techs->set_woodprice("3000","1.6"); $cl_techs->set_stoneprice("2400","1.6"); $cl_techs->set_ironprice("2000","1.6"); $cl_techs->set_time("3085","1.75"); $cl_techs->set_maxStage("1"); $cl_techs->set_needed(array("main"=>"1","stable"=>"5" )); $cl_techs->set_description("");
$cl_techs->add_tech("Schwere Kavallerie","heavy"); $cl_techs->set_group("Kavallerie"); $cl_techs->set_woodprice("600","1.6"); $cl_techs->set_stoneprice("496","1.6"); $cl_techs->set_ironprice("416","1.6"); $cl_techs->set_time("5040","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("stable"=>"10","smith"=>"15")); $cl_techs->set_attType(array('def','off','spy')); $cl_techs->set_description("");
$cl_techs->add_tech("Ramme","ram"); $cl_techs->set_group("Belagerungswaffen"); $cl_techs->set_woodprice("560","1.6"); $cl_techs->set_stoneprice("800","1.6"); $cl_techs->set_ironprice("192","1.6"); $cl_techs->set_time("4480","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("garage"=>"1")); $cl_techs->set_attType(array('off')); $cl_techs->set_description("");
$cl_techs->add_tech("Katapult","catapult"); $cl_techs->set_group("Belagerungswaffen"); $cl_techs->set_woodprice("640","1.6"); $cl_techs->set_stoneprice("960","1.6"); $cl_techs->set_ironprice("560","1.6"); $cl_techs->set_time("5600","1.75"); $cl_techs->set_maxStage("3"); $cl_techs->set_needed(array("garage"=>"2","smith"=>"12")); $cl_techs->set_attType(array('def','off')); $cl_techs->set_description("");
?>
Posts: 16
Threads: 4
Joined: Jul 2011
Reputation:
0
vielen dank, jez klappts
und wo ich schon bei der schmiede bin, beim alles erforschen -tool.... das gilt ja leider nicht für bogen und berittenen, könnte man das dann umändern
Posts: 976
Threads: 18
Joined: Jul 2008
Reputation:
34
Füg das doch einfach selbst hinzu..
PHP Code: $aendern = "UPDATE villages Set unit_spear_tec_level='3' WHERE id LIKE $village_id"; $update = mysql_query($aendern);
So nen Eintrag in der "alles_erforschen.php, wo die anderen stehen..!
Eben mit dem entsprechendem Einheitentyp.
Du suchst ein Tool? Dann sieh doch mal in meine Toolsammlung!
Posts: 2'492
Threads: 43
Joined: Mar 2010
Reputation:
87
PHP Code: $aendern = "UPDATE `villages` SET `unit_archer_tec_level`='3', `unit_marcher_tec_level`='3' WHERE `id` = '".$village_id."'"; $update = mysql_query($aendern);
Posts: 16
Threads: 4
Joined: Jul 2011
Reputation:
0
|