pageLoadTimeStart(); $battle->procSim($_POST); ?> <?php echo SERVER_NAME ?> 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 "

"; if (isset($_POST['result'][3])&&isset($_POST['result'][4])){ if ($_POST['result'][4]>$_POST['result'][3]){ echo "

Building destroyed

"; }elseif ($_POST['result'][4]==0){ echo "

The building isn't destroyed

"; }else{ $demolish=$_POST['result'][4]/$_POST['result'][3]; //$Katalife=round($_POST['result'][4]-($_POST['result'][4]*$_POST['result'][1])); //$totallvl = round($form->getValue('kata')-($form->getValue('kata') * $demolish)); $totallvl = round(sqrt(pow(($form->getValue('kata')+0.5),2)-($_POST['result'][4]*8))); echo "

Damage done by catapult: from level ".$form->getValue('kata')." to level ".$totallvl."

"; } } } $target = isset($_POST['target'])? $_POST['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)*1000); ?> ms
Server time: