getCoor($village['wref']); $varray = $database->getProfileVillages($village['owner']); $type = $database->getVillageType($village['wref']); $fdata = $database->getResourceLevel($village['wref']); $units = $database->getUnit($village['wref']); $abtech = $database->getABTech($id); // Armory/blacksmith level 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); } $ocounter = array(); $wood = $clay = $iron =$crop = 0; $q = "SELECT o.*, w.x, w.y FROM ".TB_PREFIX."odata AS o LEFT JOIN ".TB_PREFIX."wdata AS w ON o.wref=w.id WHERE conqured = ".(int) $village['wref']; $result = $database->query_return($q); if(count($result) >0) { foreach($result as $row) { $type = $row['type']; if($type==1) { $type = ' + 25%'; $wood+=1;} elseif($type==2) { $type = ' + 25%'; $wood+=1;} elseif($type==3) { $type = ' + 25%
+ 25%'; $wood+=1; $crop+=1;} elseif($type==4) { $type = ' + 25%'; $clay+=1;} elseif($type==5) { $type = ' + 25%'; $clay+=1;} elseif($type==6) { $type = ' + 25%
+ 25%'; $clay+=1;$crop+=1;} elseif($type==7) { $type = ' + 25%'; $iron+=1;} elseif($type==8) { $type = ' + 25%'; $iron+=1;} elseif($type==9) { $type = ' + 25%
+ 25%'; $iron+=1; $crop+=1;} elseif($type==10){ $type = ' + 25%'; $crop+=1;} elseif($type==11){ $type = ' + 25%'; $crop+=1;} elseif($type==12){ $type = ' + 50%'; $crop+=2;} } } $ocounter = array($wood,$clay,$iron,$crop); $production=$admin->calculateProduction($id,$user['id'],$user['b1'],$user['b2'],$user['b3'],$user['b4'],$fdata, $ocounter, $village['pop']); $refreshiconfrm = "../img/admin/refresh.png"; $refreshicon = ""; class MyGenerator { public function getMapCheck($wref) { return substr(md5($wref),5,2); } }; $generator = new MyGenerator; 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'].'
0) { foreach($result as $row) { echo " "; } } elseif($result ==0) { echo ''; } ?>
Oasis
Name Coordinates Loyalty Resources
".$row['name']." getMapCheck($row['wref'])."\" target=\"blank\">(".$row['x']."|".$row['y'].") ".round($row['loyalty'])."% $type
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