getMInfo($_GET['d']); $uinfo = $database->getVillage($basearray['id']); $oasis1 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'odata` WHERE `wref` = ' . mysql_real_escape_string($_GET['d'])); $oasis = mysql_fetch_assoc($oasis1); ?>

(capital)
"; } if($uinfo['owner']==3 && $uinfo['name']=='WW Buildingplan'){ ?> WW buildingplan <?php 
switch($basearray['fieldtype']) {
case 1:
$tt =  25% ".LUMBER.""; break; case 3: $tt = "+25% lumber and +25% crop per hour\" title=\"+25% lumber and +25% crop per hour"; $ttt = " 25% ".LUMBER." 25% ".CROP.""; break; case 4: case 5: $tt = "+25% clay per hour\" title=\"+25% clay per hour"; $ttt = " 25% ".CLAY.""; break; case 6: $tt = "+25% clay and +25% crop per hour\" title=\"+25% clay and +25% crop per hour"; $ttt = " 25% ".CLAY." 25% ".CROP.""; break; case 7: case 8: $tt = "+25% iron per hour\" title=\"+25% iron per hour"; $ttt = " 25% ".IRON.""; break; case 9: $tt = "+25% iron and +25% crop per hour\" title=\"+25% iron and +25% crop per hour"; $ttt = " 25% ".IRON." 25% ".CROP.""; break; case 10: case 11: $tt = "+25% crop per hour\" title=\"+25% crop per hour"; $ttt = " 25% ".CROP.""; break; case 12: $tt = "+50% crop per hour\" title=\"+50% crop per hour"; $ttt = " 50% ".CROP.""; break; } break; } echo $tt."\""; $landd = explode("-",$tt);?> />
Bonus:
getUnit($_GET['d']); $unarray = array(31=>"Rat","Spider","Snake","Bat","Wild Boar","Wolf","Bear","Crocodile","Tiger","Elephant"); $a = 0; for ($i = 31; $i <= 40; $i++) { if($unit['u'.$i]){ echo ''; echo ''; echo ''; echo ''; echo ''; }else{ $a = $a+1; } } if($a == 10){ echo ''; } ?>
Troops:
'.$unarray[$i].''.$unit['u'.$i].''.$unarray[$i].'
no troops
uid == $database->getVillage($_GET['d'])){ $limit = "ntype=0 and ntype=4 and ntype=5 and ntype=6 and ntype=7"; }else{ $limit = "ntype!=8 and ntype!=9 and ntype!=10 and ntype!=11 and ntype!=12 and ntype!=13 and ntype!=14 AND ntype!=15 AND ntype!=16 AND ntype!=17"; } $toWref = $_GET['d']; if($session->alliance!=0){ $result = mysql_query("SELECT * FROM ".TB_PREFIX."ndata WHERE $limit AND ally = ".$session->alliance." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysql_num_rows($result); if($query != 0){ while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; $topic=$row['topic']; echo ""; } }else{ ?> uid." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysql_num_rows($result); if($query != 0){ while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; echo ""; } }else{ ?>
Reports:
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
There is no
information available.
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
There is no
information available.
getUserArray($oasis['owner'],1); ?> -'; } else echo ' '; ?>
Tribe
Alliance '.$database->getUserAlliance($oasis['owner']).'
Owner getUserField($oasis['owner'],'username',0); ?>
Village getVillageField($oasis['conqured'], "name");?>
Bonus:
uid == $database->getVillage($_GET['d'])){ $limit = "ntype=0 and ntype=4 and ntype=5 and ntype=6 and ntype=7 and ntype=20 and ntype=21"; }else{ $limit = "ntype!=8 and ntype!=9 and ntype!=10 and ntype!=11 and ntype!=12 and ntype!=13 and ntype!=14 and ntype!=15 and ntype!=16 and ntype!=17"; } $toWref = $_GET['d']; if($session->alliance!=0){ $result = mysql_query("SELECT * FROM ".TB_PREFIX."ndata WHERE $limit AND ally = ".$session->alliance." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysql_num_rows($result); if($query != 0){ while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; echo ""; } }else{ ?> uid." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysql_num_rows($result); if($query != 0){ while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; echo ""; } }else{ ?>
Reports:
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
There is no
information available.
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
There is no
information available.
Land distribution
Lumber Woodcutters
Clay Clay Pits
Iron Iron Mines
Crop Croplands
getUserArray($basearray['owner'],1); ?> -'; } else echo ' '; ?>
 (|)
Tribe
Alliance '.$database->getUserAlliance($basearray['owner']).'
Owner getUserField($basearray['owner'],'username',0); ?>
Population
uid == $database->getVillage($_GET['d'])){ $limit = "ntype=0 and ntype=4 and ntype=5 and ntype=6 and ntype=7"; }else{ $limit = "ntype!=8 and ntype!=9 and ntype!=10 and ntype!=11 and ntype!=12 and ntype!=13 and ntype!=14 AND ntype!=15 AND ntype!=16 AND ntype!=17"; } $toWref = $_GET['d']; if($session->alliance!=0){ $result = mysql_query("SELECT * FROM ".TB_PREFIX."ndata WHERE $limit AND ally = ".$session->alliance." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysql_num_rows($result); if($query != 0){ while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; echo ""; } while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; echo ""; } }else{ ?> uid." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysql_num_rows($result); if($query != 0){ while($row = mysql_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; echo ""; } }else{ ?>
Reports:
"; if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
"; if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
There is no
information available.
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
There is no
information available.
Options
» Centre map.
getProfileVillages($session->uid)); $need_cps = ${'cp'.$mode}[$total+1]; $cps = floor($database->getUserField($session->uid, 'cp',0)); if($cps >= $need_cps) { $enough_cp = true; } else { $enough_cp = false; } $otext = ($oasis['name']); if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) { $test = "» Found new village."; } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { $test = "» Found new village. ($cps/$need_cps culture points)"; } elseif(!$village->resarray['f39']) { $test = "» Found new village. (build a rally point)"; } else { $test = "» Found new village. (".$village->unitarray['u'.$session->tribe.'0']."/3 settlers available)"; } echo ($basearray['fieldtype']==0)? ($village->resarray['f39']==0)? ($basearray['owner'] == $session->uid)? "» Raid $otext oasis. (build a rally point)" : "» Raid $otext oasis. (build a rally point)" : "» Raid $otext." : "$test" ?>
resarray['f39']? "» Send troops." : "» Send troops. (build a rally point)"; } else { echo "» Send troops. (beginners protection)"; } ?>
getTypeLevel(17)? "getTypeField(17) . "\">» Send merchant(s)." : "» Send merchant(s). (build marketplace)"; } ?>