TWLan Forum

Full Version: Schmiede
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Kannst du mir mal den Inhalt von dslan/htdocs/include/configs/techs.php in einem code-Tag posten?

LG
Molt
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 Big Grin
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("");

?>
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
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.
PHP Code:
$aendern "UPDATE `villages` SET `unit_archer_tec_level`='3', `unit_marcher_tec_level`='3' WHERE `id` = '".$village_id."'";
$update mysql_query($aendern); 
ja thx