createFarmList($_POST['did'], $session->uid, $_POST['name']); } $sql = mysql_query("SELECT * FROM ".TB_PREFIX."farmlist WHERE owner = $session->uid ORDER BY wref = $village->wid DESC"); $query = mysql_num_rows($sql); while($row = mysql_fetch_array($sql)){ $lid = $row["id"]; $lname = $row["name"]; $lowner = $row["owner"]; $lwref = $row["wref"]; $lvname = $database->getVillageField($row["wref"], 'name'); if($lwref == $village->wid){ ?>
delete - Loading...
There is no any raid list.'; }else{ while($row = mysql_fetch_array($sql2)){ $id= $row['id'];$lid = $row['lid'];$towref = $row['towref'];$x = $row['x'];$y = $row['y']; if($village->wid == $towref){ $distance = '0'; }else{ $distance = $row['distance']; } $t1 = $row['t1'];$t2 = $row['t2'];$t3 = $row['t3'];$t4 = $row['t4'];$t5 = $row['t5'];$t6 = $row['t6'];$t7 = $row['t7']; $t8 = $row['t8'];$t9 = $row['t9'];$t10 = $row['t10']; $vdata = $database->getVillage($towref); ?>
Village Ew Distance Troops LastRaid
getMovement(3,$towref,1); $att = ''; if (count($incoming_attacks) > 0) { $inc_atts = count($incoming_attacks); if($incoming_attacks[$i]['attack_type'] == 2) { $inc_atts -= 1; } if($inc_atts > 0) { echo ''; } } ?> tribe == 1){ if($t1 != 0){ echo '
'.$t1.'
'; } if($t2 != 0){ echo '
'.$t2.'
'; } if($t3 != 0){ echo '
'.$t3.'
'; } if($t4 != 0){ echo '
'.$t4.'
'; } if($t5 != 0){ echo '
'.$t5.'
'; } if($t6 != 0){ echo '
'.$t6.'
'; } if($t7 != 0){ echo '
'.$t7.'
'; } if($t8 != 0){ echo '
'.$t8.'
'; } if($t9 != 0){ echo '
'.$t9.'
'; } if($t10 != 0){ echo '
'.$t10.'
'; } }elseif($session->tribe == 2){ if($t1 != 0){ echo '
'.$t1.'
'; } if($t2 != 0){ echo '
'.$t2.'
'; } if($t3 != 0){ echo '
'.$t3.'
'; } if($t4 != 0){ echo '
'.$t4.'
'; } if($t5 != 0){ echo '
'.$t5.'
'; } if($t6 != 0){ echo '
'.$t6.'
'; } if($t7 != 0){ echo '
'.$t7.'
'; } if($t8 != 0){ echo '
'.$t8.'
'; } if($t9 != 0){ echo '
'.$t9.'
'; } if($t10 != 0){ echo '
'.$t10.'
'; } }elseif($session->tribe == 3){ if($t1 != 0){ echo '
'.$t1.'
'; } if($t2 != 0){ echo '
'.$t2.'
'; } if($t3 != 0){ echo '
'.$t3.'
'; } if($t4 != 0){ echo '
'.$t4.'
'; } if($t5 != 0){ echo '
'.$t5.'
'; } if($t6 != 0){ echo '
'.$t6.'
'; } if($t7 != 0){ echo '
'.$t7.'
'; } if($t8 != 0){ echo '
'.$t8.'
'; } if($t9 != 0){ echo '
'.$t9.'
'; } if($t10 != 0){ echo '
'.$t10.'
'; } } ?>
"; $allres = ($dataarray[25]+$dataarray[26]+$dataarray[27]+$dataarray[28]); $carry = $dataarray[29]; if ($dataarray[25]+$dataarray[26]+$dataarray[27]+$dataarray[28] == 0) { echo ""; } elseif ($dataarray[25]+$dataarray[26]+$dataarray[27]+$dataarray[28] != $dataarray[29]) { echo ""; } else { echo ""; } $date = $generator->procMtime($row2['time']); echo "".$date[0]." ".date('H:i',$row2['time'])." "; } ?>
edit
tribe-1)*10+1; $end = ($session->tribe*10); $un = 1; for($i=$start;$i<=$end;$i++){ echo ' 0 '; } ?>
delete - Loading...
Details
Create a new list
getUnit($village->wid); if($session->tribe==1){ $unit1 = $getUnit['u1'];$unit2 = $getUnit['u2'];$unit3 = $getUnit['u3'];$unit4 = $getUnit['u4'];$unit5 = $getUnit['u5']; $unit6 = $getUnit['u6'];$unit7 = $getUnit['u7'];$unit8 = $getUnit['u8'];$unit9 = $getUnit['u9'];$unit10 = $getUnit['u10']; }elseif($session->tribe==2){ $unit1 = $getUnit['u11'];$unit2 = $getUnit['u12'];$unit3 = $getUnit['u13'];$unit4 = $getUnit['u14'];$unit5 = $getUnit['u15']; $unit6 = $getUnit['u16'];$unit7 = $getUnit['u17'];$unit8 = $getUnit['u18'];$unit9 = $getUnit['u19'];$unit10 = $getUnit['u20']; }elseif($session->tribe==3){ $unit1 = $getUnit['u21'];$unit2 = $getUnit['u22'];$unit3 = $getUnit['u23'];$unit4 = $getUnit['u24'];$unit5 = $getUnit['u25']; $unit6 = $getUnit['u26'];$unit7 = $getUnit['u27'];$unit8 = $getUnit['u28'];$unit9 = $getUnit['u29'];$unit10 = $getUnit['u30']; } ?> getVilFarmlist($village->wid)){ ?> getVilWref($_POST['y'], $_POST['x']); $type = $database->getVillageType2($Wref); $oasistype = $type['oasistype']; $vdata = $database->getVillage($Wref); } if(!$_POST['x'] && !$_POST['y']){ $errormsg .= "Enter coordinates."; }elseif(!$_POST['x'] || !$_POST['y']){ $errormsg .= "Enter the correct coordinates."; }elseif($oasistype == 0 && $vdata == 0){ $errormsg .= "In this village there are no coordinates."; }elseif($troops == 0){ $errormsg .= "No troops has been selected."; }else{ $Wref = $database->getVilWref($_POST['y'], $_POST['x']); $coor = $database->getCoor($village->wid); function getDistance($coorx1, $coory1, $coorx2, $coory2) { $max = 2 * WORLD_MAX + 1; $x1 = intval($coorx1); $y1 = intval($coory1); $x2 = intval($coorx2); $y2 = intval($coory2); $distanceX = min(abs($x2 - $x1), abs($max - abs($x2 - $x1))); $distanceY = min(abs($y2 - $y1), abs($max - abs($y2 - $y1))); $dist = sqrt(pow($distanceX, 2) + pow($distanceY, 2)); return round($dist, 1); } $distance = getDistance($coor['x'], $coor['y'], $_POST['y'], $_POST['x']); $database->addSlotFarm($_POST['lid'], $Wref, $_POST['x'], $_POST['y'], $distance, $_POST['t1'], $_POST['t2'], $_POST['t3'], $_POST['t4'], $_POST['t5'], $_POST['t6'], $_POST['t7'], $_POST['t8'], $_POST['t9'], $_POST['t10']); header("Location: build.php?id=39&t=99"); } } ?> 1){ ?>

Add Raid

From List
Coordinates: