some farmlist updates and fix quest skip waiting time

This commit is contained in:
unknown
2012-08-06 04:29:41 +03:00
parent db92b5ca5d
commit ea22e3e5ab
5 changed files with 33 additions and 39 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ $vdata = $database->getVillage($towref);
<label for="slot<?php echo $id; ?>">
<?php
$type = $database->getVillageType2($towref);
$type = $oasistype['oasistype'];
$oasistype = $type['oasistype'];
if($oasistype != 0){
?>
<span class="coordinates coordinatesWithText">
@@ -104,7 +104,7 @@ $vdata = $database->getVillage($towref);
<span class="coordinateY">(<?php echo $x; ?></span>
<span class="coordinatePipe">|</span>
<span class="coordinateX"><?php echo $y; ?>)</span>
</span></span><?php}else{?>
</span></span><?php;}else{?>
<span class="coordinates coordinatesWithText">
<span class="coordText"><?php echo $vdata['name']; ?></span>
</span>
+3 -3
View File
@@ -11,14 +11,14 @@ $WrefCoor = $database->getCoor($Wref);
$WrefX = $WrefCoor['x'];
$WrefY = $WrefCoor['y'];
$type = $database->getVillageType2($Wref);
$oasistype = $to['oasistype'];
$oasistype = $type['oasistype'];
$vdata = $database->getVillage($Wref);
}elseif($_POST['x']!="" && $_POST['y']!="" && is_numeric($_POST['x']) && is_numeric($_POST['y'])){
$Wref = $database->getVilWref($_POST['x'], $_POST['y']);
$WrefX = $_POST['x'];
$WrefY = $_POST['y'];
$type = $database->getVillageType2($Wref);
$oasistype = $to['oasistype'];
$oasistype = $type['oasistype'];
$vdata = $database->getVillage($Wref);
}
if($_POST['x']=="" && $_POST['y']=="" && $_POST['target_id'] == ""){
@@ -126,7 +126,7 @@ foreach($arraywref as $row){
$towref = $row["towref"];
$tocoor = $database->getCoor($towref);
$totype = $database->getVillageType2($towref);
$tooasistype = $to['oasistype'];
$tooasistype = $type['oasistype'];
if($tooasistype == 0){
$tovname = $database->getVillageField($towref, 'name');
}else{
+3 -3
View File
@@ -14,14 +14,14 @@ $WrefCoor = $database->getCoor($Wref);
$WrefX = $WrefCoor['x'];
$WrefY = $WrefCoor['y'];
$type = $database->getVillageType2($Wref);
$oasistype = $to['oasistype'];
$oasistype = $type['oasistype'];
$vdata = $database->getVillage($Wref);
}elseif($_POST['x']!="" && $_POST['y']!="" && is_numeric($_POST['x']) && is_numeric($_POST['y'])){
$Wref = $database->getVilWref($_POST['x'], $_POST['y']);
$WrefX = $_POST['x'];
$WrefY = $_POST['y'];
$type = $database->getVillageType2($Wref);
$oasistype = $to['oasistype'];
$oasistype = $type['oasistype'];
$vdata = $database->getVillage($Wref);
}
$troops = "".$_POST['t1']."+".$_POST['t2']."+".$_POST['t3']."+".$_POST['t4']."+".$_POST['t5']."+".$_POST['t6']."+".$_POST['t7']."+".$_POST['t8']."+".$_POST['t9']."+".$_POST['t10']."";
@@ -134,7 +134,7 @@ foreach($arraywref as $row){
$towref = $row["towref"];
$tocoor = $database->getCoor($towref);
$totype = $database->getVillageType2($towref);
$tooasistype = $to['oasistype'];
$tooasistype = $type['oasistype'];
if($tooasistype == 0){
$tovname = $database->getVillageField($towref, 'name');
}else{