getVillage($enforce['from']); $fromcoor = $database->getCoor($enforce['from']); $tocoor = $database->getCoor($enforce['vref']); $fromCor = ['x'=>$tocoor['x'], 'y'=>$tocoor['y']]; $toCor = ['x'=>$fromcoor['x'], 'y'=>$fromcoor['y']]; $att_tribe = $database->getUserField($to['owner'],'tribe',0); $start = ($att_tribe - 1) * 10 + 1; $end = $att_tribe * 10; ?>

Send units back

Destination: (|)
Owner: getUserField($to['owner'],'username',0); ?>
Send units back to
"; ?> "; ?> "; ?> "; ?> "; ?> "; ?> "; ?> "; ?> "; ?> "; if($enforce['hero']>0){ ?> "; } ?>
<?php echo $technology->getUnitName($start); ?> name="t1" value="" maxlength="6" type="text"> (".$enforce['u'.$start].")<?php echo $technology->getUnitName($start + 3); ?> name="t4" value="" maxlength="6" type="text"> (".$enforce['u'.($start + 3)].")<?php echo $technology->getUnitName($start + 6); ?> name="t7" value="" maxlength="6" type="text"> (".$enforce['u'.($start + 6)].")<?php echo $technology->getUnitName($start + 8); ?> name="t9" value="" maxlength="6" type="text"> (".$enforce['u'.($start + 8)].")
<?php echo $technology->getUnitName($start + 1); ?> name="t2" value="" maxlength="6" type="text"> (".$enforce['u'.($start + 1)].")<?php echo $technology->getUnitName($start + 4); ?> name="t5" value="" maxlength="6" type="text"> (".$enforce['u'.($start + 4)].")<?php echo $technology->getUnitName($start + 7); ?> name="t8" value="" maxlength="6" type="text"> (".$enforce['u'.($start + 7)].")<?php echo $technology->getUnitName($start + 9); ?> name="t10" value="" maxlength="6" type="text"> (".$enforce['u'.($start + 9)].")
<?php echo $technology->getUnitName($start + 2); ?> name="t3" value="" maxlength="6" type="text"> (".$enforce['u'.($start + 2)].")<?php echo $technology->getUnitName($start + 5); ?> name="t6" value="" maxlength="6" type="text"> (".$enforce['u'.($start + 5)].")Hero (".$enforce['hero'].")
0) { $speeds[] = ${'u'.$i}['speed']; } } } if ($enforce['hero']>0){ $qh = "SELECT unit FROM ".TB_PREFIX."hero WHERE uid = ".(int) $to['owner']." AND dead = 0"; $resulth = mysqli_query($database->dblink,$qh); $hero_f=mysqli_fetch_array($resulth); $hero_unit=$hero_f['unit']; $speeds[] = $GLOBALS['u'.$hero_unit]['speed']; } $troopsTime = $generator->procDistanceTime($fromCor, $toCor, min($speeds), 1); $time = $database->getTroopsWalkingTime($session->uid, $village->wid, 2, $troopsTime); ?>
Arrived:
in getTimeFormat($time); ?>
at hours