some improves by nextrack and fix carry of merchants

This commit is contained in:
unknown
2012-05-25 14:39:44 +03:00
parent 158d902dd5
commit 6fcc3e6803
3 changed files with 182 additions and 180 deletions
+4 -2
View File
@@ -23,7 +23,9 @@ else if($_POST['dname']!=""){
$getwref = $database->getVillageByName($_POST['dname']);
$checkexist = $database->checkVilExist($getwref);
}
if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $market->maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist){
$maxcarry = $market->maxcarry;
$maxcarry *= $market->merchantAvail();
if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist){
?>
<form method="POST" name="snd" action="build.php">
<input type="hidden" name="ft" value="mk1">
@@ -200,7 +202,7 @@ if(isset($_POST['ft'])=='check'){
$error = '<span class="error"><b>Resources not selected.</b></span>';
}elseif(!$_POST['x'] && !$_POST['y'] && !$_POST['dname']){
$error = '<span class="error"><b>Enter coordinates or village name.</b></span>';
}elseif($allres > $market->maxcarry){
}elseif($allres > $maxcarry){
$error = '<span class="error"><b>Too few merchants.</b></span>';
}
echo $error;