access != BANNED){ $to = $database->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){ ?> "; } ?>
Phalanx name="t1" value="" maxlength="6" type="text"> (".$enforce['u21'].")Theutates Thunder name="t4" value="" maxlength="6" type="text"> (".$enforce['u24'].")Ram name="t7" value="" maxlength="6" type="text"> (".$enforce['u27'].")Chieftain name="t9" value="" maxlength="6" type="text"> (".$enforce['u29'].")
Swordsman name="t2" value="" maxlength="6" type="text"> (".$enforce['u22'].")Druidrider name="t5" value="" maxlength="6" type="text"> (".$enforce['u25'].")Trebuchet name="t8" value="" maxlength="6" type="text"> (".$enforce['u28'].")Settler name="t10" value="" maxlength="6" type="text"> (".$enforce['u30'].")
Pathfinder name="t3" value="" maxlength="6" type="text"> (".$enforce['u23'].")Haeduan name="t6" value="" maxlength="6" type="text"> (".$enforce['u26'].")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']; } $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); ?>
Arrived:
in getTimeFormat($time); ?>
at hours