Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem mit dem Unit-Config
#1
Hab bei SK:heavy: etwas verändert, haut aber nicht hin ...

<?php

$cl_units = new units();



//////////// Zeitfaktor vom Bau der Einehiten ////////////



$cl_units->set_unitfactor("0.665","0.94355");



///////////////////// Alle EINHEITEN /////////////////////



$cl_units->add_unit("Speerträger","unit_spear");

$cl_units->set_woodprice("50");

$cl_units->set_stoneprice("30");

$cl_units->set_ironprice("10");

$cl_units->set_bhprice("1");

$cl_units->set_time("1000");

$cl_units->set_att("10","1.045");

$cl_units->set_def("15","1.045");

$cl_units->set_defcav("45","1.045");

$cl_units->set_defarcher("20","1.045");

$cl_units->set_speed("720");

$cl_units->set_booty("25");

$cl_units->set_needed(array());

$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("def");

$cl_units->set_description("Der Speerträger ist die einfachste Einheit. Er ist besonders effektiv in der Verteidigung gegen Reiter.");



$cl_units->add_unit("Schwertkämpfer","unit_sword");

$cl_units->set_woodprice("30");

$cl_units->set_stoneprice("30");

$cl_units->set_ironprice("70");

$cl_units->set_bhprice("1");

$cl_units->set_time("1500");

$cl_units->set_att("25","1.045");

$cl_units->set_def("50","1.045");

$cl_units->set_defcav("25","1.045");

$cl_units->set_defarcher("40","1.045");

$cl_units->set_speed("900");

$cl_units->set_booty("15");

$cl_units->set_needed(array("smith"=>"1"));

$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("def");

$cl_units->set_description("Der Schwertkämpfer ist vor allem zur Verteidigung gegen Infanterie geeignet. Er ist allerdings relativ langsam.");



$cl_units->add_unit("Axtkämpfer","unit_axe");

$cl_units->set_woodprice("60");

$cl_units->set_stoneprice("30");

$cl_units->set_ironprice("40");

$cl_units->set_bhprice("1");

$cl_units->set_time("1250");

$cl_units->set_att("40","1.0455");

$cl_units->set_def("10","1.045");

$cl_units->set_defcav("5","1.045");

$cl_units->set_defarcher("10","1.045");

$cl_units->set_speed("720");

$cl_units->set_booty("10");

$cl_units->set_needed(array("smith"=>"2"));

$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("Der Axtkämpfer ist eine starke Offensiveinheit. Mit Sturmgebrüll rasen diese wilden Krieger auf die feindlichen Truppen zu.");



$cl_units->add_unit("Späher","unit_spy");

$cl_units->set_woodprice("50");

$cl_units->set_stoneprice("50");

$cl_units->set_ironprice("20");

$cl_units->set_bhprice("2");

$cl_units->set_time("1250");

$cl_units->set_att("0","1.045");

$cl_units->set_def("2","1.045");

$cl_units->set_defcav("1","1.045");

$cl_units->set_defarcher("2","1.045");

$cl_units->set_speed("360");

$cl_units->set_booty("0");

$cl_units->set_needed(array("stable"=>1));

$cl_units->set_recruit_in("stable");

$cl_units->set_specials(array());

$cl_units->set_group("cav");

$cl_units->set_col("B");

$cl_units->set_attType("spy");

$cl_units->set_description("Der Späher schleicht sich in feindliche Dörfer ein, um Informationen zu erlangen.");



$cl_units->add_unit("Leichte Kavallerie","unit_light");

$cl_units->set_woodprice("125");

$cl_units->set_stoneprice("100");

$cl_units->set_ironprice("250");

$cl_units->set_bhprice("4");

$cl_units->set_time("2400");

$cl_units->set_att("130","1.045");

$cl_units->set_def("30","1.045");

$cl_units->set_defcav("40","1.045");

$cl_units->set_defarcher("30","1.045");

$cl_units->set_speed("390");

$cl_units->set_booty("80");

$cl_units->set_needed(array("stable"=>3));

$cl_units->set_recruit_in("stable");

$cl_units->set_specials(array());

$cl_units->set_group("cav");

$cl_units->set_col("B");

$cl_units->set_attType("off");

$cl_units->set_description("Die leichte Kavallerie ist vor allem geeignet, um Überraschungsangriffe auf gegnerische Dörfer durchzuführen.");



$cl_units->add_unit("Schwere Kavallerie","unit_heavy");

$cl_units->set_woodprice("1");

$cl_units->set_stoneprice("1");

$cl_units->set_ironprice("1");

$cl_units->set_bhprice("1");

$cl_units->set_time("1");

$cl_units->set_att("15000","1.045");

$cl_units->set_def("20000","1.045");

$cl_units->set_defcav("8000","1.045");

$cl_units->set_defarcher("18000","1.045");

$cl_units->set_speed("45000");

$cl_units->set_booty("500");

$cl_units->set_needed(array("stable"=>"10","smith"=>"15"));

$cl_units->set_recruit_in("stable");

$cl_units->set_specials(array());

$cl_units->set_group("cav");

$cl_units->set_col("B");

$cl_units->set_attType("def");

$cl_units->set_description("Die Schwere Kavallerie sind die Elite deiner Truppen. Die meist adligen Reiter verfügen über gehärtete Waffen und starke Panzerung.");



$cl_units->add_unit("Ramme","unit_ram");

$cl_units->set_woodprice("300");

$cl_units->set_stoneprice("200");

$cl_units->set_ironprice("200");

$cl_units->set_bhprice("5");

$cl_units->set_time("1250");

$cl_units->set_att("2","1.045");

$cl_units->set_def("20","1.045");

$cl_units->set_defcav("50","1.045");

$cl_units->set_defarcher("20","1.045");

$cl_units->set_speed("1200");

$cl_units->set_booty("0");

$cl_units->set_needed(array("garage"=>"1"));

$cl_units->set_recruit_in("garage");

$cl_units->set_specials(array());

$cl_units->set_group("foot");

$cl_units->set_col("C");

$cl_units->set_attType("off");

$cl_units->set_description("Der Rammbock unterstützt dich bei Angriffen, da er den gegnerischen Wall beschädigt.");



$cl_units->add_unit("Katapult","unit_catapult");

$cl_units->set_woodprice("320");

$cl_units->set_stoneprice("400");

$cl_units->set_ironprice("100");

$cl_units->set_bhprice("8");

$cl_units->set_time("1250");

$cl_units->set_att("100","1.045");

$cl_units->set_def("100","1.045");

$cl_units->set_defcav("50","1.045");

$cl_units->set_defarcher("100","1.045");

$cl_units->set_speed("1440");

$cl_units->set_booty("0");

$cl_units->set_needed(array("garage"=>"2","smith"=>"12"));

$cl_units->set_recruit_in("garage");

$cl_units->set_specials(array());

$cl_units->set_group("foot");

$cl_units->set_col("C");

$cl_units->set_attType("undefined");

$cl_units->set_description("Das Katapult ist besonders geeignet, um gegnerische Gebäude zu zerstören.");



$cl_units->add_unit("Adelsgeschlecht","unit_snob");

$cl_units->set_woodprice("28000");

$cl_units->set_stoneprice("30000");

$cl_units->set_ironprice("25000");

$cl_units->set_bhprice("100");

$cl_units->set_time("12500");

$cl_units->set_att("30","1.045");

$cl_units->set_def("100","1.045");

$cl_units->set_defcav("50","1.045");

$cl_units->set_defarcher("100","1.045");

$cl_units->set_speed("1800");

$cl_units->set_booty("0");

$cl_units->set_needed(array("main"=>20,"smith"=>20,"market"=>10));

$cl_units->set_recruit_in("snob");

$cl_units->set_specials(array("no_investigate"));

$cl_units->set_group("foot");

$cl_units->set_col("D");

$cl_units->set_attType("undefined");

$cl_units->set_description("Das Adelsgeschlecht kann durch Angriffe die Zustimmung des gegnerischen Dorfes verringern. Anschließend kann das Dorf erobert werden. Die Kosten für Adelsgeschlechter wachsen mit jedem eroberten Dorf und jedem vorhandenen oder in Produktion befindlichen Adelsgeschlecht.");

?>
Reply
#2
WAS hast du denn verändert?

MfG Manuel
Reply
#3
bitte den code nächstesmal in einen spoiler!
Helf ich dir? Dann Bewerte mich!

[Image: create.php?uid=7072]
Reply
#4
Bei der Schweren Kavallerie, hab ich BH verbraucht, Rohstoffkosten, Angriff und Verteidigung verändert
Reply
#5
$cl_units->add_unit("Schwere Kavallerie","unit_heavy");

$cl_units->set_woodprice("1");

$cl_units->set_stoneprice("1");

$cl_units->set_ironprice("1");

$cl_units->set_bhprice("1");

$cl_units->set_time("1");

$cl_units->set_att("15000","1.045");

$cl_units->set_def("20000","1.045");

$cl_units->set_defcav("8000","1.045");

$cl_units->set_defarcher("18000","1.045");

$cl_units->set_speed("45000");

$cl_units->set_booty("500");

$cl_units->set_needed(array("stable"=>"10","smith"=>"15"));

$cl_units->set_recruit_in("stable");

$cl_units->set_specials(array());

$cl_units->set_group("cav");

$cl_units->set_col("B");

$cl_units->set_attType("def");

$cl_units->set_description("Die Schwere Kavallerie sind die Elite deiner Truppen. Die meist adligen Reiter verfügen über gehärtete Waffen und starke Panzerung.");


Nur da hab ich was verändert
Reply
#6
was haut denn nicht hin werden sie nich angezeidgt die werte bitte genaue information
Wink
Reply
#7
Warning: main(include/configs/units.php) [function.main]: failed to open stream: No such file or directory in C:\Users\Gregor\Desktop\dslan_v1.21\htdocs\include.inc.php on line 138

Fatal error: main() [function.require]: Failed opening required 'include/configs/units.php' (include_path='.;C:\Users\Gregor\Desktop\dslan_v1.21\php\pear\') in C:\Users\Gregor\Desktop\dslan_v1.21\htdocs\include.inc.php on line 138
Reply
#8
hab auch keine idee mehr

sry
Wink
Reply




Users browsing this thread: 1 Guest(s)