24.07.2011, 12:53
Also das problem ist das wenn ich mit den neuen Einheiten angreiffen möchte das sie sterben und auf dem Bericht keine anzahl steht.
(Siehe Bilder)
Hier noch die Conf von Units.php und tech.php
------------------------------------------------------------------------
Das Sqy auf PhpMyAdmin muss so aussehen für Bogen und Paladin?
Wer helfen kann pls Help
LG Robin
(Siehe Bilder)
Hier noch die Conf von Units.php und tech.php
PHP Code:
$cl_units->add_unit("Paladin","unit_Pala");
$cl_units->set_woodprice("2000");
$cl_units->set_stoneprice("2500");
$cl_units->set_ironprice("2500");
$cl_units->set_bhprice("1");
$cl_units->set_time("1250");
$cl_units->set_att("100","1.045");
$cl_units->set_def("20","1.045");
$cl_units->set_defcav("20","1.045");
$cl_units->set_defarcher("100","1.045");
$cl_units->set_speed("720");
$cl_units->set_booty("100");
$cl_units->set_needed(array("main"=>"20","barracks"=>"20","smith"=>"20" ));
$cl_units->set_recruit_in("barracks");
$cl_units->set_specials(array());
$cl_units->set_group("foot");
$cl_units->set_col("A");
$cl_units->set_attType("off");
$cl_units->set_description("Paladin sind die Anführer der Einheiten.");
------------------------------------------------------------------------
PHP Code:
$cl_techs->add_tech("Paladin","Pala");
$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("main"=>"20","barracks"=>"20","smith"=>"20" ));
$cl_techs->set_attType(array('off'));
$cl_techs->set_description("");
Das Sqy auf PhpMyAdmin muss so aussehen für Bogen und Paladin?
PHP Code:
ALTER TABLE `villages` ADD `unit_bog_tec_level` INT( 11 ) NULL DEFAULT '0' AFTER `unit_axe_tec_level` ;
ALTER TABLE `villages` ADD `unit_pala_tec_level` INT( 11 ) NULL DEFAULT '0' AFTER `unit_light_tec_level` ;
ALTER TABLE `villages` ADD `all_unit_bog` INT( 6 ) NULL DEFAULT '0' AFTER `all_unit_axe` ;
ALTER TABLE `villages` ADD `all_unit_pala` INT( 6 ) NULL DEFAULT '0' AFTER `all_unit_light` ;
ALTER TABLE `unit_place` ADD `unit_bog` INT( 11 ) NULL DEFAULT '0' AFTER `unit_axe` ;
ALTER TABLE `unit_place` ADD `unit_pala` INT( 11 ) NULL DEFAULT '0' AFTER `unit_light` ;
Wer helfen kann pls Help
LG Robin