pageLoadTimeStart(); ################################################################################# ## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## ## --------------------------------------------------------------------------- ## ## Filename warsim.php ## ## Developed by: Dzoki ## ## License: TravianX Project ## ## Copyright: TravianX (c) 2010-2011. All rights reserved. ## ## ## ################################################################################# use App\Utils\AccessLogger; include_once("GameEngine/Village.php"); AccessLogger::logRequest(); $battle->procSim($_POST); ?> <?php echo SERVER_NAME ?> - Combat Simulator gpack == null || GP_ENABLE == false) { echo " "; } else { echo " "; } ?>

Combat simulator

tribe; include("Templates/Simulator/res_a".$tribe.".tpl"); foreach($target as $tar) { include("Templates/Simulator/res_d".$tar.".tpl"); } echo "

Type of attack: "; echo $form->getValue('ktyp') == 0? "Normal" : "Raid"; echo "

"; echo "

"; if (isset($_POST['result'][7]) && isset($_POST['result'][8])){ if ($form->getValue('ktyp') == 1) { echo "Hint: The ram does not work during a raid.
"; }elseif ($_POST['result'][7] == 0){ echo "Damage done by ram: from level ".$form->getValue('walllevel')." to level 0

"; }elseif ($_POST['result'][7] == $_POST['result'][8]){ echo "Damage done by ram: from level ".$form->getValue('walllevel')." to level ".$form->getValue('walllevel')."

"; }else{ echo "Damage done by ram: from level ".$form->getValue('walllevel')." to level ".$_POST['result'][7]."

"; } } if (isset($_POST['result'][3]) && isset($_POST['result'][4])){ if ($form->getValue('ktyp') == 1) { echo "Hint: The catapult does not shoot during a raid.

"; }elseif ($_POST['result'][3] == 0){ echo "Damage done by catapult: from level ".$form->getValue('kata')." to level 0

"; }elseif ($_POST['result'][3] == $_POST['result'][4]){ echo "Damage done by catapult: from level ".$form->getValue('kata')." to level ".$form->getValue('kata')."

"; }else{ echo "Damage done by catapult: from level ".$form->getValue('kata')." to level ".$_POST['result'][3]."

"; } } } if (!empty($_GET['target'])) { // this only works for Nature, as GET links like this one will come from an oasis if (!$_GET['target'] != 4) { $_GET['target'] = 4; } // fill-in session value-array data foreach ($_GET as $key => $value) { if ($key[0] === 'u' && is_numeric($value)) { $form->setValue('a2_' . substr($key, 1), $value); } } } $target = isset($_POST['target'])? $_POST['target'] : (!empty($_GET['target']) ? array((int) $_GET['target']) : array()); $tribe = isset($_POST['mytribe'])? $_POST['mytribe'] : $session->tribe; if(count($target) > 0) { include("Templates/Simulator/att_".preg_replace("/[^a-zA-Z0-9_-]/","",$tribe).".tpl"); echo ""; foreach($target as $tar) { include("Templates/Simulator/def_".$tar.".tpl"); } include("Templates/Simulator/def_end.tpl"); echo "
"; } ?>
Defender
Attacker Defender Type of attack











Calculated in pageLoadTimeEnd()-$start_timer)*1000); ?> ms
Server time: