mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-24 13:36:32 +00:00
fix destroy village bug + more some updates
This commit is contained in:
@@ -256,7 +256,7 @@ if($id != 39 && $id != 40) {
|
||||
<div id="build_list_soon" class="hide">
|
||||
<?php
|
||||
if($rallypoint == 0 && $session->tribe == 3 && $trapper == 0 ) {
|
||||
//include("soon/trapper.tpl");
|
||||
include("soon/trapper.tpl");
|
||||
}
|
||||
if($mainbuilding < 10 && $warehouse < 10 && $village->capital == 0 && $largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid ) {
|
||||
include("soon/greatwarehouse.tpl");
|
||||
@@ -286,7 +286,27 @@ if($academy == 0 && ($mainbuilding <= 2 || $barrack <= 2)) {
|
||||
include("soon/academy.tpl");
|
||||
}
|
||||
if($embassy == 0 || $mainbuilding >= 2 && $mainbuilding <= 4) {
|
||||
include("soon/palace.tpl");
|
||||
//loop search village user
|
||||
$query = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE owner = ".$user."");
|
||||
while($villaggi_array = mysql_fetch_array($query)){
|
||||
|
||||
//loop structure village
|
||||
$query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref']."");
|
||||
$strutture= mysql_fetch_array($query1);
|
||||
|
||||
//search Castle in array structure village
|
||||
$test = in_array(26,$strutture);
|
||||
if ($test){
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
//if Castle no ready include palace.tpl
|
||||
if (!$test){
|
||||
include("soon/palace.tpl");
|
||||
}
|
||||
}
|
||||
if($blacksmith == 0 && ($academy <= 2 || $mainbuilding <= 2)) {
|
||||
include("soon/blacksmith.tpl");
|
||||
|
||||
Reference in New Issue
Block a user