getMovement(34, $village->wid, 1); $total_for = count($units); $send = $database->getMovement(1, $village->wid, 1); $total_for2 = count($send); $artifactsSum = $database->getArtifactsSumByKind($session->uid, $village->wid, 3); for($y = 0; $y < $total_for; $y++){ $session->timer++; if($units[$y]['sort_type'] == 3){ if($units[$y]['attack_type'] == 2) $actionType = REINFORCEMENTFOR; elseif($units[$y]['attack_type'] == 3) $actionType = ATTACK_ON; elseif($units[$y]['attack_type'] == 4) $actionType = RAID_ON; $reinfowner = $database->getVillageField($units[$y]['from'], "owner"); if($units[$y]['attack_type'] != 1){ if($units[$y]['from'] != 0){ if($units[$y]['t11'] > 0 && $reinfowner == $session->uid) $colspan = 11; else $colspan = 10; 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 ""; } if($units[$y]['t11'] != 0 && $reinfowner == $session->uid){ echo ""; } echo ""; for($i = 1; $i <= $colspan; $i++){ $totalunits = $units[$y]['t1'] + $units[$y]['t2'] + $units[$y]['t3'] + $units[$y]['t4'] + $units[$y]['t5'] + $units[$y]['t6'] + $units[$y]['t7'] + $units[$y]['t8'] + $units[$y]['t9'] + $units[$y]['t10'] + $units[$y]['t11']; if($units[$y]['attack_type'] == 2){ if($reinfowner != $session->uid) echo ""; else { if($units[$y]['t'.$i] == 0) echo ""; else { echo ""; } } }else{ if($artifactsSum['totals'] == 0) 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 "getMapCheck($units[$y]['to'])."\">".$actionType." ".$database->getVillageField($units[$y]['to'], "name").""; echo "
 getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
".TROOPS."?0"; echo $units[$y]['t'.$i]."?0?
'.ARRIVAL.'
timer.'>'.$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]." ".HRS."
"; }else{ echo ""; $tribe = 4; $start = ($tribe - 1) * 10 + 1; $end = ($tribe * 10); echo ""; for($i = $start; $i <= ($end); $i++){ echo ""; } echo ""; for($i = 1; $i <= 10; $i++){ echo ""; } echo ""; echo ' "; echo "
village of the elders "; echo "".VILLAGE_OF_THE_ELDERS_TROOPS.""; echo "
 getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
".TROOPS."?
'.ARRIVAL.'
timer.'>'.$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){ $actionType = RETURNFROM; $isoasis = $database->isVillageOases($units[$y]['from']); if($isoasis == 0) $from = $database->getMInfo($units[$y]['from']); else $from = $database->getOMInfo($units[$y]['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 ""; } ?> 0"; else { echo ""; } } ?> 0){ ?>
vname; ?>
 getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
"; echo $units[$y]['t'.$i]."
\"Lumber\"".$units[$y]['wood']." | \"Clay\"".$units[$y]['clay']." | \"Iron\"".$units[$y]['iron']." | \"Crop\"".$units[$y]['crop'].""; echo "
\"carry\"".$totalres."/".$totalcarry."
"; ?>
timer.">".$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]."
"; ?>
getOasis($village->wid); foreach($array as $conqured){ $oasis = $database->getMovement("6", $conqured['wref'], 0); $total_for = count($oasis); for($y = 0; $y < $total_for; $y++){ $session->timer++; $to = $database->getOMInfo($oasis[$y]['to']); if($oasis[$y]['attack_type'] == 2) $actionType = REINFORCEMENTFOR; else if($oasis[$y]['attack_type'] == 3) $actionType = ATTACK_ON; else if($oasis[$y]['attack_type'] == 4) $actionType = RAID_ON; $reinfowner = $database->getVillageField($oasis[$y]['from'], "owner"); if($oasis[$y]['t11'] != 0 && $reinfowner == $session->uid) $colspan = 11; else $colspan = 10; echo ""; $tribe = $database->getUserField($reinfowner, "tribe", 0); $start = ($tribe - 1) * 10 + 1; $end = ($tribe * 10); echo ""; for($i = $start; $i <= ($end); $i++){ echo ""; } if($oasis[$y]['t11'] != 0 && $reinfowner == $session->uid){ echo ""; } echo ""; for($i = 1; $i <= $colspan; $i++){ $totalunits = $oasis[$y]['t1'] + $oasis[$y]['t2'] + $oasis[$y]['t3'] + $oasis[$y]['t4'] + $oasis[$y]['t5'] + $oasis[$y]['t6'] + $oasis[$y]['t7'] + $oasis[$y]['t8'] + $oasis[$y]['t9'] + $oasis[$y]['t10'] + $oasis[$y]['t11']; if($oasis[$y]['attack_type'] == 2){ if($reinfowner != $session->uid) echo ""; else { if($oasis[$y]['t'.$i] == 0) echo ""; else { echo ""; } } }else{ if($artifactsSum['totals'] == 0) echo ""; else { if($oasis[$y]['t'.$i] == 0) echo ""; else echo ""; } } } echo ""; echo ' "; echo "
getMapCheck($oasis[$y]['from'])."\">".$database->getVillageField($oasis[$y]['from'], "name")." "; echo "getMapCheck($oasis[$y]['to'])."\">".$actionType." ".$to['name'].""; echo "
 getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
".TROOPS."?0"; echo $oasis[$y]['t'.$i]."?0?
'.ARRIVAL.'
timer.'>'.$generator->getTimeFormat($oasis[$y]['endtime'] - time()).' h
'; $datetime = $generator->procMtime($oasis[$y]['endtime']); echo "
"; if($datetime[0] != "today") echo "".ON." ".$datetime[0]." "; echo "".AT." ".$datetime[1]." ".HRS."
"; } } $settlers = $database->getMovement(7, $village->wid, 1); $total_for3 = count($settlers); for($x = 0; $x < $total_for3; $x++){ $session->timer++; $to = $database->getMInfo($settlers[$x]['to']); ?> tribe; $start = ($tribe - 1) * 10 + 1; $end = ($tribe * 10); echo ""; for($i = $start; $i <= ($end); $i++){ echo ""; } ?> 0"; else { echo ""; } } ?>
vname; ?>
 getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
"; echo $settlers[$x]['t'.$i]."
timer.">".$generator->getTimeFormat($settlers[$x]['endtime'] - time())." h"; $datetime = $generator->procMtime($settlers[$x]['endtime']); echo "
"; if($datetime[0] != "today") echo "".ON." ".$datetime[0]." "; echo "".AT." ".$datetime[1]."
"; ?>