getMovement("34",$village->wid,1); $total_for = count($units); for($y=0;$y < $total_for;$y++){ $timer = $y+1; if ($units[$y]['sort_type']==3){ if ($units[$y]['attack_type']==3){ $actionType = "Attack on "; } else if ($units[$y]['attack_type']==4){ $actionType = "Raid on "; } if($units[$y]['attack_type'] != 1){ echo ""; $tribe = $database->getUserField($database->getVillageField($units[$y]['from'],"owner"),"tribe",0); $start = ($tribe-1)*10+1; $end = ($tribe*10); echo ""; for($i=$start;$i<=($end);$i++) { echo ""; } echo ""; for($i=$start;$i<=($end);$i++) { $tribe1 = $tribe-1; $totalunits = $units[$y]['t'.$tribe1*10+1]+$units[$y]['t'.$tribe1*10+2]+$units[$y]['t'.$tribe1*10+3]+$units[$y]['t'.$tribe1*10+4]+$units[$y]['t'.$tribe1*10+5]+$units[$y]['t'.$tribe1*10+6]+$units[$y]['t'.$tribe1*10+7]+$units[$y]['t'.$tribe1*10+8]+$units[$y]['t'.$tribe1*10+9]+$units[$y]['t'.$tribe1*10+10]; if($totalunits > $building->getTypeLevel(16)){ echo ""; }else{ if($units[$y]['t'.$i] == 0) { echo ""; }else{ echo ""; } } } echo ""; echo ' "; echo "
getMapCheck($units[$y]['from'])."\">".$database->getVillageField($units[$y]['from'],"name")." "; echo "getVillageField($units[$y]['from'],"owner")."\">".$database->getUserField($database->getVillageField($units[$y]['from'],"owner"),"username",0)."'s troops"; echo "
 getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
Troops?0?
Arrival
'.$generator->getTimeFormat($units[$y]['endtime']-time()).' h
'; $datetime = $generator->procMtime($units[$y]['endtime']); echo "
"; if($datetime[0] != "today") { echo "on ".$datetime[0]." "; } echo "at ".$datetime[1]."
"; } }else if ($units[$y]['sort_type']==4){ if ($units[$y]['attack_type']==1){ $actionType = "Return from "; } else if ($units[$y]['attack_type']==2){ $actionType = "Reinforment for "; } else if ($units[$y]['attack_type']==3){ $actionType = "Return from "; } else if ($units[$y]['attack_type']==4){ $actionType = "Return from "; } $to = $database->getMInfo($units[$y]['vref']); ?> tribe; $start = ($tribe-1)*10+1; $end = ($tribe*10); echo ""; for($i=$start;$i<=($end);$i++) { echo ""; } if($units[$y]['t11'] != 0) { echo ""; } ?> ?"; } else { echo ""; } ?>
vname; ?> ">
 getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
Troops "; } echo $units[$y]['t'.$i]."
Arrival "> ".$generator->getTimeFormat($units[$y]['endtime']-time())." h"; $datetime = $generator->procMtime($units[$y]['endtime']); echo "
"; if($datetime[0] != "today") { echo "on ".$datetime[0]." "; } echo "at ".$datetime[1]."
"; ?>