canBuild($id,$bid); $loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0; $doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0; $uprequire = $building->resourceRequired($id, $bid); ?> Lumber | Clay | Iron | Crop | Crop consumption | durationgetTimeFormat($uprequire['time']); //-- If available resources combined are not enough, remove NPC button $total_required = (int)($uprequire['wood'] + $uprequire['clay'] + $uprequire['iron'] + $uprequire['crop']); if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1 && $village->atotal >= $total_required) { echo "|\"NPC"; } ?> " . WORKERS_ALREADY_WORK_WAITING . ""; if($session->goldclub == 1){ ?>
gold >= 1 && $village->master == 0){ echo "checker\">" . CONSTRUCTING_MASTER_BUILDER . ""; echo '(costs: Gold1)'; }else{ echo "" . CONSTRUCTING_MASTER_BUILDER . ""; echo '(costs: Gold1)'; } } } else if($bindicator == 3) { echo "The workers are already at work. (waiting loop)"; if($session->goldclub == 1){ ?>
gold >= 1 && $village->master == 0){ echo "checker\">" . CONSTRUCTING_MASTER_BUILDER . ""; echo '(costs: Gold1)'; }else{ echo "" . CONSTRUCTING_MASTER_BUILDER . ""; echo '(costs: Gold1)'; } } } else if($bindicator == 4) { echo "Not enough food. Expand cropland."; } else if($bindicator == 5) { echo "Upgrade Warehouse."; } else if($bindicator == 6) { echo "Upgrade Granary."; } else if($bindicator == 7) { $neededtime = $building->calculateAvaliable($id,$bid); echo "" .ENOUGH_RESOURCES . " " .$neededtime[0]." at ".$neededtime[1].""; if($session->goldclub == 1){ ?>
gold >= 1 && $village->master == 0){ echo "checker\">" . CONSTRUCTING_MASTER_BUILDER . ""; echo '(costs: Gold1)'; }else{ echo "" . CONSTRUCTING_MASTER_BUILDER . ""; echo '(costs: Gold1)'; } } } else if($bindicator == 8) { if($session->access!=BANNED){ echo "checker."\">". CONSTRUCT_BUILD.""; }else{ echo "". CONSTRUCT_BUILD.""; } } else if($bindicator == 9) { if($session->access!=BANNED){ echo "checker."\">Construct building. (waiting loop)"; }else{ echo "checker."\">Construct building. (waiting loop)"; } } ?>