start to fix natar WW buildingplan village (still need to make the plan and to disable WW for player without plan)

This commit is contained in:
unknown
2012-04-12 17:42:19 +03:00
parent 9353623f12
commit da595c40a5
11 changed files with 125 additions and 6 deletions
+4
View File
@@ -1705,6 +1705,7 @@ private function loyaltyRegeneration() {
$varray = $database->getProfileVillages($to['owner']);
//kijken of laatste dorp is, of hoofddorp
if(count($varray)!='1' AND $to['capital']!='1'){
if($to['owenr']!=3 AND $to['name']!='WW Buildingplan'){
//if there is no Palace/Residence
for ($i=18; $i<39; $i++){
if ($database->getFieldLevel($data['to'],"".$i."t")==25 or $database->getFieldLevel($data['to'],"".$i."t")==26){
@@ -1762,6 +1763,9 @@ private function loyaltyRegeneration() {
} else {
$info_chief = "".$chief_pic.",You cant take over this village.";
}
} else {
$info_chief = "".$chief_pic.",You cant take over this village.";
}
}
if($data['t11'] > 0){