Marketplace level resarray['f'.$id]; ?>

At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.

getVilWref($_POST['x'],$_POST['y']); $checkexist = $database->checkVilExist($getwref); } else if($_POST['dname']!=""){ $getwref = $database->getVillageByName($_POST['dname']); $checkexist = $database->checkVilExist($getwref); } if($checkexist){ $villageOwner = $database->getVillageField($getwref,'owner'); $userAccess = $database->getUserField($villageOwner,'access',0); } $maxcarry = $market->maxcarry; $maxcarry *= $market->merchantAvail(); if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist && $userAccess == 2){ ?>
Lumber Wood / maxcarry; ?>
Clay Clay / maxcarry; ?>
Iron Iron / maxcarry; ?>
Crop Wheat / maxcarry; ?>
getVilWref($_POST['x'],$_POST['y']); $getvilname = $database->getVillageField($getwref, "name"); $getvilowner = $database->getVillageField($getwref, "owner"); $getvilcoor['y'] = $_POST['y']; $getvilcoor['x'] = $_POST['x']; $time = $generator->procDistanceTime($getvilcoor,$village->coor,$session->tribe,0); } else if($_POST['dname']!=""){ $getwref = $database->getVillageByName($_POST['dname']); $getvilcoor = $database->getCoor($getwref); $getvilname = $database->getVillageField($getwref, "name"); $getvilowner = $database->getVillageField($getwref, "owner"); $time = $generator->procDistanceTime($getvilcoor,$village->coor,$session->tribe,0); } ?>
Coordinates: (|)
Player: getUserField($getvilowner,username,0); ?>
duration: getTimeFormat($time); ?>
Merchants: maxcarry); ?>

merchantAvail()) { echo "DISABLED"; }?>/>

Lumber Lumber: (maxcarry; ?>)
Clay Clay: (maxcarry; ?>)
Iron Iron: (maxcarry; ?>)
Crop Crop: (maxcarry; ?>)
getCoor($_GET['z']); } else{ $coor['x'] = ""; $coor['y'] = ""; } ?>
Merchants merchantAvail(); ?>/merchant; ?>
Villages:
or
X: Y:
goldclub == 1){?>

go

merchantAvail()) { echo "DISABLED"; }?>/>

No Coordinates selected'; }elseif($getwref == $village->wid){ $error = 'You cannot send resources to the same village'; }elseif($userAccess == '0' or $userAccess == '8' or $userAccess == '9'){ $error = 'Player is Banned. You cannot send resources to him.'; }elseif($_POST['r1']==0 && $_POST['r2']==0 && $_POST['r3']==0 && $_POST['r4']==0){ $error = 'Resources not selected.'; }elseif(!$_POST['x'] && !$_POST['y'] && !$_POST['dname']){ $error = 'Enter coordinates or village name.'; }elseif($allres > $maxcarry){ $error = 'Too few merchants.'; } echo $error; } ?>

Each merchant can carry maxcarry; ?> units of resource

recieving) > 0) { echo "

Merchants coming:

"; foreach($market->recieving as $recieve) { echo ""; $villageowner = $database->getVillageField($recieve['from'],"owner"); echo ""; echo ""; echo ""; echo "
".$database->getUserField($villageowner,"username",0)."getMapCheck($recieve['from'])."\">Transport from ".$database->getVillageField($recieve['from'],"name")."
Arrival in"; echo "
".$generator->getTimeFormat($recieve['endtime']-time())." h
"; $datetime = $generator->procMtime($recieve['endtime']); echo "
"; if($datetime[0] != "today") { echo "on ".$datetime[0]." "; } echo "at ".$datetime[1]."
"; echo "
Resource "; echo "\"Lumber\"".$recieve['wood']." | \"Clay\"".$recieve['clay']." | \"Iron\"".$recieve['iron']." | \"Crop\"".$recieve['crop']."
"; $timer +=1; } } if(count($market->sending) > 0) { echo "

Own merchants on the way:

"; foreach($market->sending as $send) { $villageowner = $database->getVillageField($send['to'],"owner"); $ownername = $database->getUserField($villageowner,"username",0); echo ""; echo ""; echo ""; echo ""; echo "
$ownernamegetMapCheck($send['to'])."\">Transport to ".$database->getVillageField($send['to'],"name")."
Arrival in "; echo "
".$generator->getTimeFormat($send['endtime']-time())." h
"; $datetime = $generator->procMtime($send['endtime']); echo "
"; if($datetime[0] != "today") { echo "on ".$datetime[0]." "; } echo "at ".$datetime[1]."
"; echo "
Resource"; echo "\"Lumber\"".$send['wood']." | \"Clay\"".$send['clay']." | \"Iron\"".$send['iron']." | \"Crop\"".$send['crop']."
"; $timer += 1; } } if(count($market->return) > 0) { echo "

Merchants returning:

"; foreach($market->return as $return) { $villageowner = $database->getVillageField($return['from'],"owner"); $ownername = $database->getUserField($villageowner,"username",0); echo ""; echo ""; echo ""; echo ""; echo "
$ownernamegetMapCheck($return['from'])."\">Return from ".$database->getVillageField($return['from'],"name")."
Arrival in "; echo "
".$generator->getTimeFormat($return['endtime']-time())." h
"; $datetime = $generator->procMtime($return['endtime']); echo "
"; if($datetime[0] != "today") { echo "on ".$datetime[0]." "; } echo "at ".$datetime[1]."
"; echo "
"; $timer += 1; } } include("upgrade.tpl"); ?>