getVillage($id); $user = $database->getUserArray($village['owner'],1); $coor = $database->getCoor($village['wref']); $varray = $database->getProfileVillages($village['owner']); $type = $database->getVillageType($village['wref']); $fdata = $database->getResourceLevel($village['wref']); $units = $database->getUnit($village['wref']); if($type == 1){ $typ = array(3,3,3,9); } elseif($type == 2){ $typ = array(3,4,5,6); } elseif($type == 3){ $typ = array(4,4,4,6); } elseif($type == 4){ $typ = array(4,5,3,6); } elseif($type == 5){ $typ = array(5,3,4,6); } elseif($type == 6){ $typ = array(1,1,1,15); } elseif($type == 7){ $typ = array(4,4,3,7); } elseif($type == 8){ $typ = array(3,4,4,7); } elseif($type == 9){ $typ = array(4,3,4,7); } elseif($type == 10){ $typ = array(3,5,4,6); } elseif($type == 11){ $typ = array(4,5,3,6); } elseif($type == 12){ $typ = array(5,4,3,6); } $refreshicon = ""; $refreshiconfrm = "data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAIAAADpZ+PpAAAAAXNSR0IArs4c6QAAAARnQU1BAACx jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEQSURBVChTY/gPBkevHfRrtjMsU9bJ05+5eylE kAGI117fKFsqYzhTNeSQY8xhP8vJJmVrK3eeP8Bw58kt03rTkHnRxdvrnKd4m83SCTtsaLZI1K7H mGH2xpnHLh+GGPL7/7/S1dVKU2Usd6roTZBh+Pj3M0QCCL78+Fw6v1ooR1myWU2zzpjBb2Ko8xwf 91l+gRNDLzw6f+nepcsPrl14cPXW8wcMWqVaEYdtPdZYubUHww0AMs5cusygU68UtVUr87CPWbdd 9Ly83TcO7Lq2I7ozoXfZTAalCjWZemnlaYo2u0wVFkoJdwoyZDOZNDi//vqRwbkjac+dC827p2h3 Gyh3S6m0a0Qszrnz6RnQWAAxV5tT/VAiNQAAAABJRU5ErkJggg=="; class Generator { public function getMapCheck($wref) { return substr(md5($wref),5,2); } }; $generator = new Generator; if($village and $user) { include("search2.tpl"); ?>
Village Information
Village owner:
Owner(uid):
Village name:
Population
Coordinates: (|)
Village ID
Field type | '; } else { echo $typ[$i].'x '; } } ?>
Resources
Resource
Warehouse Production
Lumber
???
Clay
???
Iron
???
Crop
???
'; } else { $vill = $database->getVillage($exp); $link = ''.$vill['name'].''; echo ' '; } } ?>
Village Expansion
Village Inhabitants CP Production
-
-
-
'.$link.'
'.$vill['pop'].'
'.$vill['cp'].'
getOasis($id); $oases = count($oasisarray); for($o=0; $o<$oases; $o++) { $oasiscoor = $database->getCoor($oasisarray['$o']['wref']); $type = $oasisarray['type']; if($type==1) { $type = ' + 25%'; } elseif($type==2) { $type = ' + 25%'; } elseif($type==3) { $type = ' + 25%
+ 25%'; } elseif($type==4) { $type = ' + 25%'; } elseif($type==5) { $type = ' + 25%'; } elseif($type==6) { $type = ' + 25%
+ 25%'; } elseif($type==7) { $type = ' + 25%'; } elseif($type==8) { $type = ' + 25%'; } elseif($type==9) { $type = ' + 25%
+ 25%'; } elseif($type==10){ $type = ' + 25%'; } elseif($type==11){ $type = ' + 25%'; } elseif($type==12){ $type = ' + 50%'; } echo ' '; } */ ?> getOasis($village['wref']); $isthere = count($oasisarray); if($isthere >0) { $query = "SELECT * FROM ".TB_PREFIX."odata WHERE conqured = ".$village['wref'].""; $result = mysql_query($query); while($row = mysql_fetch_assoc($result)) { $oasiswref = $row['wref']; $oasisx = mysql_result(mysql_query("SELECT x FROM ".TB_PREFIX."wdata WHERE id = ".$oasiswref.""), 0); $oasisy = mysql_result(mysql_query("SELECT y FROM ".TB_PREFIX."wdata WHERE id = ".$oasiswref.""), 0); $type = $row['type']; if($type==1) { $type = ' + 25%'; } elseif($type==2) { $type = ' + 25%'; } elseif($type==3) { $type = ' + 25%
+ 25%'; } elseif($type==4) { $type = ' + 25%'; } elseif($type==5) { $type = ' + 25%'; } elseif($type==6) { $type = ' + 25%
+ 25%'; } elseif($type==7) { $type = ' + 25%'; } elseif($type==8) { $type = ' + 25%'; } elseif($type==9) { $type = ' + 25%
+ 25%'; } elseif($type==10){ $type = ' + 25%'; } elseif($type==11){ $type = ' + 25%'; } elseif($type==12){ $type = ' + 50%'; } echo " "; } ## } elseif($isthere ==0) { echo ''; } ?>
Oases
Name Coordinates Loyalty Resources
'.$oasisarray['name'].' ('.$oasiscoor['x'].'|'.$oasiscoor['y'].') '.$oasisarray['loyalty'].' '.$type.'
".$row['name']." getMapCheck($row['wref'])."\" target=\"blank\">(".$oasisx."|".$oasisy.") ".$row['loyalty']."% $type
".$row['wood']."
".$row['clay']."
".$row['iron']."
".$row['crop']."
This village has no oases
"; } ?>

0) { echo ""; } elseif($gid ==0) { echo ""; } } $rp=16; $rplevel = $fdata['f'.$rp]; if($rplevel > 0) { echo ""; } elseif($rplevel ==0) { echo ""; } ?>
0) { echo "
$level
"; } } if($rplevel >0) { echo "
".$fdata['f'.($b + 18)]."
"; } ?>
procResType($fdata['f'.$i.'t']); } echo ' '; } ?>
Buildings
ID GID Name Level Edit
'.$i.' '.$fdata['f'.$i.'t'].' '.$bu.' '.$fdata['f'.$i].'


Village Build Log