getVillage($enforce['from']); $fromcoor = $database->getCoor($enforce['from']); $tocoor = $database->getCoor($enforce['vref']); $fromCor = array('x'=>$tocoor['x'], 'y'=>$tocoor['y']); $toCor = array('x'=>$fromcoor['x'], 'y'=>$fromcoor['y']); ?>

Send units back

Destination: (|)
Owner: getUserField($to['owner'],'username',0); ?>
Send units back to
"; ?> "; ?> "; ?> "; ?> "; ?> "; ?> "; ?> "; ?> "; ?> "; if($enforce['hero']>0){ ?> "; } ?>
Clubswinger name="t1" value="" maxlength="6" type="text"> (".$enforce['u11'].")Scout name="t4" value="" maxlength="6" type="text"> (".$enforce['u14'].")Ram name="t7" value="" maxlength="6" type="text"> (".$enforce['u17'].")Chief name="t9" value="" maxlength="6" type="text"> (".$enforce['u19'].")
Spearman name="t2" value="" maxlength="6" type="text"> (".$enforce['u12'].")Paladin name="t5" value="" maxlength="6" type="text"> (".$enforce['u15'].")Catapult name="t8" value="" maxlength="6" type="text"> (".$enforce['u18'].")Settler name="t10" value="" maxlength="6" type="text"> (".$enforce['u20'].")
Axeman name="t3" value="" maxlength="6" type="text"> (".$enforce['u13'].")Teutonic Knight name="t6" value="" maxlength="6" type="text"> (".$enforce['u16'].")Hero (".$enforce['hero'].")
getUserField($to['owner'],'tribe',0); $start = ($att_tribe-1)*10+1; $end = ($att_tribe*10); $speeds = array(); //find slowest unit. for($i=$start;$i<=$end;$i++) { if (isset($enforce['u'.$i])) { if($enforce['u'.$i]!='' && $enforce['u'.$i]>0) { //$speeds[] = $unitspeeds[$i-2]; $speeds[] = ${'u'.$i}['speed']; } } } if ($enforce['hero']>0){ $qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$to['owner'].""; $resulth = mysql_query($qh); $hero_f=mysql_fetch_array($resulth); $hero_unit=$hero_f['unit']; $speeds[] = $GLOBALS['u'.$hero_unit]['speed']; } $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); if($artefact > 0){ $fastertroops = 3; }else if($artefact1 > 0){ $fastertroops = 2; }else if($artefact2 > 0){ $fastertroops = 1.5; }else{ $fastertroops = 1; } $time = round($generator->procDistanceTime($fromCor,$toCor,min($speeds),1)/$fastertroops); $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$session->uid); if(count($foolartefact) > 0){ foreach($foolartefact as $arte){ if($arte['bad_effect'] == 1){ $time *= $arte['effect2']; }else{ $time /= $arte['effect2']; $time = round($time); } } } ?>
Arrived:
in getTimeFormat($time); ?>
at hours