mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-13 16:16:07 +00:00
very big update
This commit is contained in:
@@ -26,7 +26,7 @@ for($i=1;$i<=$amt;$i++) {
|
||||
$time = time();
|
||||
$q = "insert into `s1_vdata`(`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`) values ('$wid','3','WW Buildingplan',0,233,232,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,1314968914)";
|
||||
mysql_query($q) or die(mysql_error());
|
||||
$q = "insert into ".TB_PREFIX."fdata (`vref`,`f1`,`f1t`,`f2`,`f2t`,`f3`,`f3t`,`f4`,`f4t`,`f5`,`f5t`,`f6`,`f6t`,`f7`,`f7t`,`f8`,`f8t`,`f9`,`f9t`,`f10`,`f10t`,`f11`,`f11t`,`f12`,`f12t`,`f13`,`f13t`,`f14`,`f14t`,`f15`,`f15t`,`f16`,`f16t`,`f17`,`f17t`,`f18`,`f18t`,`f19`,`f19t`,`f20`,`f20t`,`f21`,`f21t`,`f22`,`f22t`,`f23`,`f23t`,`f24`,`f24t`,`f25`,`f25t`,`f26`,`f26t`,`f27`,`f27t`,`f28`,`f28t`,`f29`,`f29t`,`f30`,`f30t`,`f31`,`f31t`,`f32`,`f32t`,`f33`,`f33t`,`f34`,`f34t`,`f35`,`f35t`,`f36`,`f36t`,`f37`,`f37t`,`f38`,`f38t`,`f39`,`f39t`,`f40`,`f40t`,`f99`,`f99t`,`wwname`) values ($wid,0,1,0,4,0,1,0,3,0,2,0,2,0,3,0,4,0,4,0,3,0,3,0,4,0,4,0,1,0,4,0,2,0,1,0,2,20,17,20,11,20,15,20,10,10,22,10,25,0,0,0,0,10,19,0,0,0,0,0,0,10,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,16,0,0,0,0,'World Wonder')";
|
||||
$q = "insert into ".TB_PREFIX."fdata (`vref`,`f1`,`f1t`,`f2`,`f2t`,`f3`,`f3t`,`f4`,`f4t`,`f5`,`f5t`,`f6`,`f6t`,`f7`,`f7t`,`f8`,`f8t`,`f9`,`f9t`,`f10`,`f10t`,`f11`,`f11t`,`f12`,`f12t`,`f13`,`f13t`,`f14`,`f14t`,`f15`,`f15t`,`f16`,`f16t`,`f17`,`f17t`,`f18`,`f18t`,`f19`,`f19t`,`f20`,`f20t`,`f21`,`f21t`,`f22`,`f22t`,`f23`,`f23t`,`f24`,`f24t`,`f25`,`f25t`,`f26`,`f26t`,`f27`,`f27t`,`f28`,`f28t`,`f29`,`f29t`,`f30`,`f30t`,`f31`,`f31t`,`f32`,`f32t`,`f33`,`f33t`,`f34`,`f34t`,`f35`,`f35t`,`f36`,`f36t`,`f37`,`f37t`,`f38`,`f38t`,`f39`,`f39t`,`f40`,`f40t`,`f99`,`f99t`,`wwname`) values ($wid,0,1,0,4,0,1,0,3,0,2,0,2,0,3,0,4,0,4,0,3,0,3,0,4,0,4,0,1,0,4,0,2,0,1,0,2,20,17,20,11,0,0,20,10,10,22,10,25,0,0,20,15,10,19,0,0,0,0,0,0,10,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,16,0,0,0,0,'World Wonder')";
|
||||
mysql_query($q);
|
||||
$database->addUnits($wid);
|
||||
$database->addTech($wid);
|
||||
|
||||
+141
-51
@@ -155,9 +155,6 @@ class Automation {
|
||||
if(!file_exists("GameEngine/Prevention/settlers.txt") or time()-filemtime("GameEngine/Prevention/settlers.txt")>10) {
|
||||
$this->sendSettlersComplete();
|
||||
}
|
||||
if(!file_exists("GameEngine/Prevention/starvation.txt") or time()-filemtime("GameEngine/Prevention/starvation.txt")>50) {
|
||||
$this->starvation();
|
||||
}
|
||||
if(!file_exists("GameEngine/Prevention/celebration.txt") or time()-filemtime("GameEngine/Prevention/celebration.txt")>10) {
|
||||
$this->celebrationComplete();
|
||||
}
|
||||
@@ -167,7 +164,117 @@ class Automation {
|
||||
}
|
||||
$this->updateStore();
|
||||
}
|
||||
function activeCropDead(){
|
||||
global $session,$village,$database,$_SESSION, $allcrop;
|
||||
// var_dump($session);
|
||||
// var_dump($village);
|
||||
// echo"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";'
|
||||
|
||||
//echo $session->villages;
|
||||
$this->updateRes($_SESSION['wid'],$session->uid);
|
||||
$allcrop=$this->bountyproduction['crop'];
|
||||
$allUnitInTown=$database->getUnit($_SESSION['wid']);
|
||||
$allEnforceInTown=$database->getEnforceVillage($_SESSION['wid'],0);
|
||||
$checkcrop=$database->getVillageField($_SESSION['wid'],'crop');
|
||||
$cropProd=$this->bountyGetCropProd();
|
||||
|
||||
// $time = time();
|
||||
// var_dump($session);
|
||||
// echo $checkcrop;
|
||||
// echo $allcrop;
|
||||
|
||||
if ($allcrop<0&&$checkcrop<0){
|
||||
$loops=0;
|
||||
while ($loops<1){
|
||||
if ($checkcrop < 0){
|
||||
|
||||
// array_shift($allUnitInTown);
|
||||
// rsort($allUnitInTown);
|
||||
//rsort($allEnforceIntown);
|
||||
// echo $numEnforce=count($allEnforceInTown);
|
||||
|
||||
if (!empty($allEnforceInTown)){
|
||||
arsort($allEnforceInTown);
|
||||
$unitarr=array();
|
||||
foreach ($allEnforceInTown as $enforceInTown){
|
||||
//var_dump($enforceInTown);
|
||||
// array_shift($enforceInTown);array_pop($enforceInTown);array_pop($enforceInTown);
|
||||
// array_splice($enforceInTown,count($enforceInTown)+1,2);
|
||||
// $enforceInTown=rsort($enforceInTown);
|
||||
for ($i=1;$i<51;$i++){
|
||||
$unitarr['u'.$i]=$enforceInTown['u'.$i];
|
||||
}
|
||||
$unitarr['hero']=$enforceInTown['hero'];
|
||||
|
||||
//var_dump($enforceInTown);
|
||||
if (array_sum($unitarr)>0){
|
||||
arsort($unitarr);
|
||||
$keydel=key($unitarr);
|
||||
$keydel2=substr($keydel,1);
|
||||
// echo $keydel."|||".$keydel2."|||";
|
||||
global ${$keydel};
|
||||
// echo ${$keydel}['crop'];
|
||||
// $newtroop=$unitarr[$keydel]-1;
|
||||
|
||||
$database->modifyEnforce($enforceInTown['id'],$keydel2,1,0);
|
||||
// $cropupdate=$checkcrop+${$keydel}['crop'];
|
||||
$q = "UPDATE ".TB_PREFIX."vdata set `crop` = `crop` +".${$keydel}['crop']." WHERE wref =".$_SESSION['wid'];
|
||||
$database->query($q);
|
||||
// echo$q;
|
||||
}else{
|
||||
$database->deleteReinf($enforceInTown["id"]);
|
||||
}
|
||||
// var_dump($enforceInTown);
|
||||
// var_dump($unitarr);
|
||||
|
||||
/* $allkey=array_keys($enforceInTown));
|
||||
$checkar=array();
|
||||
foreach ($allkey as $value){
|
||||
if ($enforceInTown[$value]>0){
|
||||
$checkar[]=$value;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}else{
|
||||
$unitarr=array();
|
||||
for ($i=1;$i<51;$i++){
|
||||
$unitarr['u'.$i]=$allUnitInTown['u'.$i];
|
||||
}
|
||||
$unitarr['hero']=$allUnitInTown['hero'];
|
||||
arsort($unitarr);
|
||||
if (array_sum($unitarr)>0){
|
||||
$keydel=key($unitarr);
|
||||
$keydel2=substr($keydel,1);
|
||||
global ${$keydel};
|
||||
$database->modifyUnit($allUnitInTown['vref'],$keydel2,1,0);
|
||||
|
||||
$q = "UPDATE ".TB_PREFIX."vdata set `crop` = `crop`+".${$keydel}['crop']." WHERE wref =".$_SESSION['wid'];
|
||||
$database->query($q);
|
||||
// echo$q;
|
||||
}
|
||||
}
|
||||
$this->updateRes($_SESSION['wid'],$session->uid);
|
||||
$allcrop=$this->bountyproduction['crop'];
|
||||
$allUnitInTown=$database->getUnit($_SESSION['wid']);
|
||||
$allEnforceInTown=$database->getEnforceVillage($_SESSION['wid'],0);
|
||||
$checkcrop=$database->getVillageField($_SESSION['wid'],'crop');
|
||||
//echo $allcrop."|||".$checkcrop;
|
||||
if ($allcrop>=0){
|
||||
$q = "UPDATE ".TB_PREFIX."vdata set `crop` = 0 WHERE wref =".$_SESSION['wid'];
|
||||
$database->query($q);
|
||||
$loops++;
|
||||
}elseif ($checkcrop>0){
|
||||
$loops++;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
// var_dump($allUnitInTown);
|
||||
//var_dump($allEnforceIntown);
|
||||
// echo $allcrop;
|
||||
}
|
||||
|
||||
}
|
||||
private function loyaltyRegeneration() {
|
||||
global $database;
|
||||
$array = array();
|
||||
@@ -904,7 +1011,12 @@ private function loyaltyRegeneration() {
|
||||
|
||||
//units attack string for battleraport
|
||||
$unitssend_att = ''.$data['t1'].','.$data['t2'].','.$data['t3'].','.$data['t4'].','.$data['t5'].','.$data['t6'].','.$data['t7'].','.$data['t8'].','.$data['t9'].','.$data['t10'].'';
|
||||
|
||||
$herosend_att = $data['t11'];
|
||||
if ($herosend_att>0){
|
||||
$unitssend_att_check=$unitssend_att.','.$data['t11'];
|
||||
}else{
|
||||
$unitssend_att_check=$unitssend_att;
|
||||
}
|
||||
//units defence string for battleraport
|
||||
$unitssend_def[1] = ''.$Defender['u1'].','.$Defender['u2'].','.$Defender['u3'].','.$Defender['u4'].','.$Defender['u5'].','.$Defender['u6'].','.$Defender['u7'].','.$Defender['u8'].','.$Defender['u9'].','.$Defender['u10'].'';
|
||||
$unitssend_def[2] = ''.$Defender['u11'].','.$Defender['u12'].','.$Defender['u13'].','.$Defender['u14'].','.$Defender['u15'].','.$Defender['u16'].','.$Defender['u17'].','.$Defender['u18'].','.$Defender['u19'].','.$Defender['u20'].'';
|
||||
@@ -925,19 +1037,13 @@ private function loyaltyRegeneration() {
|
||||
$unitssend_deff[3] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
$unitssend_deff[4] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
$unitssend_deff[5] = '?,?,?,?,?,?,?,?,?,?,';
|
||||
//how many troops died? for battleraport
|
||||
if($battlepart['casualties_attacker'][1] == 0) { $dead1 = 0; } else { $dead1 = $battlepart['casualties_attacker'][1]; }
|
||||
if($battlepart['casualties_attacker'][2] == 0) { $dead2 = 0; } else { $dead2 = $battlepart['casualties_attacker'][2]; }
|
||||
if($battlepart['casualties_attacker'][3] == 0) { $dead3 = 0; } else { $dead3 = $battlepart['casualties_attacker'][3]; }
|
||||
if($battlepart['casualties_attacker'][4] == 0) { $dead4 = 0; } else { $dead4 = $battlepart['casualties_attacker'][4]; }
|
||||
if($battlepart['casualties_attacker'][5] == 0) { $dead5 = 0; } else { $dead5 = $battlepart['casualties_attacker'][5]; }
|
||||
if($battlepart['casualties_attacker'][6] == 0) { $dead6 = 0; } else { $dead6 = $battlepart['casualties_attacker'][6]; }
|
||||
if($battlepart['casualties_attacker'][7] == 0) { $dead7 = 0; } else { $dead7 = $battlepart['casualties_attacker'][7]; }
|
||||
if($battlepart['casualties_attacker'][8] == 0) { $dead8 = 0; } else { $dead8 = $battlepart['casualties_attacker'][8]; }
|
||||
if($battlepart['casualties_attacker'][9] == 0) { $dead9 = 0; } else { $dead9 = $battlepart['casualties_attacker'][9]; }
|
||||
if($battlepart['casualties_attacker'][10] == 0) { $dead10 = 0; } else { $dead10 = $battlepart['casualties_attacker'][10]; }
|
||||
|
||||
|
||||
//how many troops died? for battleraport
|
||||
for($i=1;$i<=11;$i++){
|
||||
if($battlepart['casualties_attacker'][$i] <= 0) { ${dead.$i} = 0; }elseif($battlepart['casualties_attacker'][$i] > $data['t'.$i]){
|
||||
${dead.$i}=$data['t'.$i];
|
||||
}else { ${dead.$i} = $battlepart['casualties_attacker'][$i]; }
|
||||
}
|
||||
$heroAttackDead=$dead11;
|
||||
//kill own defence
|
||||
$q = "SELECT * FROM ".TB_PREFIX."units WHERE vref='".$data['to']."'";
|
||||
$unitlist = $database->query_return($q);
|
||||
@@ -1029,9 +1135,14 @@ private function loyaltyRegeneration() {
|
||||
$database->modifyAttack($data['ref'],8,$dead8);
|
||||
$database->modifyAttack($data['ref'],9,$dead9);
|
||||
$database->modifyAttack($data['ref'],10,$dead10);
|
||||
|
||||
$database->modifyAttack($data['ref'],11,$dead11);
|
||||
|
||||
$unitsdead_att = ''.$dead1.','.$dead2.','.$dead3.','.$dead4.','.$dead5.','.$dead6.','.$dead7.','.$dead8.','.$dead9.','.$dead10.'';
|
||||
if ($herosend_att>0){
|
||||
$unitsdead_att_check = $unitsdead_att.','.$dead11;
|
||||
}else{
|
||||
$unitsdead_att_check = $unitsdead_att;
|
||||
}
|
||||
//$unitsdead_def = ''.$dead11.','.$dead12.','.$dead13.','.$dead14.','.$dead15.','.$dead16.','.$dead17.','.$dead18.','.$dead19.','.$dead20.'';
|
||||
|
||||
|
||||
@@ -1187,7 +1298,14 @@ private function loyaltyRegeneration() {
|
||||
$speeds[] = $unitarray['speed'];
|
||||
}
|
||||
}
|
||||
|
||||
if ($herosend_att>0){
|
||||
$qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$from['owner']."";
|
||||
$resulth = mysql_query($qh);
|
||||
$hero_f=mysql_fetch_array($resulth);
|
||||
$hero_unit=$hero_f['unit'];
|
||||
//echo "///".$GLOBALS['u'.$hero_unit]['speed']."///";
|
||||
$speeds[] = $GLOBALS['u'.$hero_unit]['speed'];
|
||||
}
|
||||
|
||||
// Data for when troops return.
|
||||
|
||||
@@ -1855,10 +1973,10 @@ $crannyimg = "<img src=\"gpack/travian_default/img/g/g23.gif\" height=\"30\" wid
|
||||
|
||||
}
|
||||
|
||||
$data2 = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.',0,0,0,0,0,'.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_def[1].','.$unitsdead_def[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_def[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_def[5].','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy.'';
|
||||
$data2 = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.',0,0,0,0,0,'.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_def[1].','.$unitsdead_def[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_def[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_def[5].','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy.',,'.$data['t11'].','.$dead11.',,';
|
||||
}
|
||||
else{
|
||||
$data2 = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.','.$steal[0].','.$steal[1].','.$steal[2].','.$steal[3].','.$battlepart['bounty'].','.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_def[1].','.$unitsdead_def[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_def[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_def[5].','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy.'';
|
||||
$data2 = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.','.$steal[0].','.$steal[1].','.$steal[2].','.$steal[3].','.$battlepart['bounty'].','.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_def[1].','.$unitsdead_def[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_def[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_def[5].','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy.',,'.$data['t11'].','.$dead11.',,';
|
||||
}
|
||||
|
||||
|
||||
@@ -1866,7 +1984,7 @@ $crannyimg = "<img src=\"gpack/travian_default/img/g/g23.gif\" height=\"30\" wid
|
||||
|
||||
|
||||
// When all troops die, sends no info.
|
||||
$data_fail = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.','.$steal[0].','.$steal[1].','.$steal[2].','.$steal[3].','.$battlepart['bounty'].','.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_deff[1].','.$unitsdead_deff[1].','.$ger.','.$unitssend_deff[2].','.$unitsdead_deff[2].','.$gal.','.$unitssend_deff[3].','.$unitsdead_deff[3].','.$nat.','.$unitssend_deff[4].','.$unitsdead_deff[4].','.$natar.','.$unitssend_deff[5].','.$unitsdead_deff[5].',,,';
|
||||
$data_fail = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.','.$steal[0].','.$steal[1].','.$steal[2].','.$steal[3].','.$battlepart['bounty'].','.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_deff[1].','.$unitsdead_deff[1].','.$ger.','.$unitssend_deff[2].','.$unitsdead_deff[2].','.$gal.','.$unitssend_deff[3].','.$unitsdead_deff[3].','.$nat.','.$unitssend_deff[4].','.$unitsdead_deff[4].','.$natar.','.$unitssend_deff[5].','.$unitsdead_deff[5].',,,'.$data['t11'].','.$dead11.',,';
|
||||
|
||||
//Undetected and detected in here.
|
||||
if($scout){
|
||||
@@ -1900,7 +2018,7 @@ $crannyimg = "<img src=\"gpack/travian_default/img/g/g23.gif\" height=\"30\" wid
|
||||
//to here
|
||||
|
||||
// If the dead units not equal the ammount sent they will return and report
|
||||
if($unitsdead_att != $unitssend_att)
|
||||
if($unitsdead_att != $unitssend_att or $dead11 != $herosend_att)
|
||||
{
|
||||
$endtime = $this->procDistanceTime($from,$to,min($speeds),1) + $AttackArrivalTime;
|
||||
//$endtime = $this->procDistanceTime($from,$to,min($speeds),1) + time();
|
||||
@@ -2628,34 +2746,6 @@ private function demolitionComplete() {
|
||||
}
|
||||
}
|
||||
|
||||
private function starvation() {
|
||||
global $database,$technology;
|
||||
$TroopStarvesEvery = 100;
|
||||
$q = "SELECT * FROM ".TB_PREFIX."vdata WHERE crop<0";
|
||||
$array = $database->query_return($q);
|
||||
if(!empty($array)) {
|
||||
foreach($array as $village) {
|
||||
$TroopsStarved = floor($village['crop'] / $TroopStarvesEvery) + 1;
|
||||
$ownunit = $database->getUnit($base);
|
||||
$TopUnit = $TopUnitCount = 0;
|
||||
for($i=1;$i<=50;$i++) {
|
||||
if($ownunit['u'.$i] > $TopUnitCount) { $TopUnit = $i; $TopUnitCount = $ownunit['u'.$i]; }
|
||||
}
|
||||
if($TopUnitCount > 0) {
|
||||
// Remove TroopsStarved from TopUnit
|
||||
} else {
|
||||
// Repeat check for reinforcements
|
||||
}
|
||||
$q = "UPDATE ".TB_PREFIX."vdata set `crop` = 100 WHERE wref=".$village['wref'];
|
||||
$database->query($q);
|
||||
}
|
||||
}
|
||||
|
||||
if(file_exists("GameEngine/Prevention/starvation.txt")) {
|
||||
@unlink("GameEngine/Prevention/starvation.txt");
|
||||
}
|
||||
}
|
||||
|
||||
private function updateHero() {
|
||||
global $database,$hero_levels;
|
||||
$harray = $database->getHero();
|
||||
|
||||
+45
-45
@@ -9,7 +9,7 @@
|
||||
## Copyright: TravianX (c) 2010-2011. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
include ("./GameEngine/Lang/".LANG.".php");
|
||||
|
||||
|
||||
class Building {
|
||||
|
||||
@@ -178,51 +178,51 @@ class Building {
|
||||
}
|
||||
|
||||
public function procResType($ref) {
|
||||
global $session, $lang;
|
||||
global $session;
|
||||
switch($ref) {
|
||||
case 1: $build = $lang['buildings'][1]; break;
|
||||
case 2: $build = $lang['buildings'][2]; break;
|
||||
case 3: $build = $lang['buildings'][3]; break;
|
||||
case 4: $build = $lang['buildings'][4]; break;
|
||||
case 5: $build = $lang['buildings'][5]; break;
|
||||
case 6: $build = $lang['buildings'][6]; break;
|
||||
case 7: $build = $lang['buildings'][7]; break;
|
||||
case 8: $build = $lang['buildings'][8]; break;
|
||||
case 9: $build = $lang['buildings'][9]; break;
|
||||
case 10: $build = $lang['buildings'][10]; break;
|
||||
case 11: $build = $lang['buildings'][11]; break;
|
||||
case 12: $build = $lang['buildings'][12]; break;
|
||||
case 13: $build = $lang['buildings'][13]; break;
|
||||
case 14: $build = $lang['buildings'][14]; break;
|
||||
case 15: $build = $lang['buildings'][15]; break;
|
||||
case 16: $build = $lang['buildings'][16]; break;
|
||||
case 17: $build = $lang['buildings'][17]; break;
|
||||
case 18: $build = $lang['buildings'][18]; break;
|
||||
case 19: $build = $lang['buildings'][19]; break;
|
||||
case 20: $build = $lang['buildings'][20]; break;
|
||||
case 21: $build = $lang['buildings'][21]; break;
|
||||
case 22: $build = $lang['buildings'][22]; break;
|
||||
case 23: $build = $lang['buildings'][23]; break;
|
||||
case 24: $build = $lang['buildings'][24]; break;
|
||||
case 25: $build = $lang['buildings'][25]; break;
|
||||
case 26: $build = $lang['buildings'][26]; break;
|
||||
case 27: $build = $lang['buildings'][27]; break;
|
||||
case 28: $build = $lang['buildings'][28]; break;
|
||||
case 29: $build = $lang['buildings'][29]; break;
|
||||
case 30: $build = $lang['buildings'][30]; break;
|
||||
case 31: $build = $lang['buildings'][31]; break;
|
||||
case 32: $build = $lang['buildings'][32]; break;
|
||||
case 33: $build = $lang['buildings'][33]; break;
|
||||
case 34: $build = $lang['buildings'][34]; break;
|
||||
case 35: $build = $lang['buildings'][35]; break;
|
||||
case 36: $build = $lang['buildings'][36]; break;
|
||||
case 37: $build = $lang['buildings'][37]; break;
|
||||
case 38: $build = $lang['buildings'][38]; break;
|
||||
case 39: $build = $lang['buildings'][39]; break;
|
||||
case 40: $build = $lang['buildings'][40]; break;
|
||||
case 41: $build = $lang['buildings'][41]; break;
|
||||
case 42: $build = $lang['buildings'][42]; break;
|
||||
default: $build = $lang['buildings'][43]; break;
|
||||
case 1: $build = "Woodcutter"; break;
|
||||
case 2: $build = "Clay Pit"; break;
|
||||
case 3: $build = "Iron Mine"; break;
|
||||
case 4: $build = "Cropland"; break;
|
||||
case 5: $build = "Sawmill"; break;
|
||||
case 6: $build = "Brickyard"; break;
|
||||
case 7: $build = "Iron Foundry"; break;
|
||||
case 8: $build = "Grain Mill"; break;
|
||||
case 9: $build = "Bakery"; break;
|
||||
case 10: $build = "Warehouse"; break;
|
||||
case 11: $build = "Granary"; break;
|
||||
case 12: $build = "Blacksmith"; break;
|
||||
case 13: $build = "Armoury"; break;
|
||||
case 14: $build = "Tournament Square"; break;
|
||||
case 15: $build = "Main Building"; break;
|
||||
case 16: $build = "Rally Point"; break;
|
||||
case 17: $build = "Marketplace"; break;
|
||||
case 18: $build = "Embassy"; break;
|
||||
case 19: $build = "Barracks"; break;
|
||||
case 20: $build = "Stable"; break;
|
||||
case 21: $build = "Workshop"; break;
|
||||
case 22: $build = "Academy"; break;
|
||||
case 23: $build = "Cranny"; break;
|
||||
case 24: $build = "Town Hall"; break;
|
||||
case 25: $build = "Residence"; break;
|
||||
case 26: $build = "Palace"; break;
|
||||
case 27: $build = "Treasury"; break;
|
||||
case 28: $build = "Trade Office"; break;
|
||||
case 29: $build = "Great Barracks"; break;
|
||||
case 30: $build = "Great Stable"; break;
|
||||
case 31: $build = "City Wall"; break;
|
||||
case 32: $build = "Earth Wall"; break;
|
||||
case 33: $build = "Palisade"; break;
|
||||
case 34: $build = "Stonemason's Lodge"; break;
|
||||
case 35: $build = "Brewery"; break;
|
||||
case 36: $build = "Trapper"; break;
|
||||
case 37: $build = "Hero's Mansion"; break;
|
||||
case 38: $build = "Great Warehouse"; break;
|
||||
case 39: $build = "Great Granary"; break;
|
||||
case 40: $build = "Wonder of the World"; break;
|
||||
case 41: $build = "Horse Drinking Trough"; break;
|
||||
case 42: $build = "Great Workshop"; break;
|
||||
default: $build = "Error"; break;
|
||||
}
|
||||
return $build;
|
||||
}
|
||||
|
||||
@@ -14,9 +14,9 @@ $unitsbytype=array('infantry'=>array(1,2,3,11,12,13,14,21,22,31,32,33,34,41,42,4
|
||||
$u1=array('atk'=>40,'di'=>35,'dc'=>50,'wood'=>120,'clay'=>100,'iron'=>150,'crop'=>30,'pop'=>1,'speed'=>6,'time'=>1600,'cap'=>50);
|
||||
$u2=array('atk'=>30,'di'=>65,'dc'=>35,'wood'=>100,'clay'=>130,'iron'=>160,'crop'=>70,'pop'=>1,'speed'=>5,'time'=>1760,'cap'=>20);
|
||||
$u3=array('atk'=>70,'di'=>40,'dc'=>25,'wood'=>150,'clay'=>160,'iron'=>210,'crop'=>80,'pop'=>1,'speed'=>7,'time'=>1920,'cap'=>50);
|
||||
$u4=array('atk'=>0,'di'=>20,'dc'=>10,'wood'=>140,'clay'=>160,'iron'=>20,'crop'=>40,'pop'=>2,'speed'=>16,'time'=>1360,'cap'=>0,'drinking'=>10);
|
||||
$u5=array('atk'=>120,'di'=>65,'dc'=>50,'wood'=>550,'clay'=>440,'iron'=>320,'crop'=>100,'pop'=>3,'speed'=>14,'time'=>2640,'cap'=>100,'drinking'=>15);
|
||||
$u6=array('atk'=>180,'di'=>80,'dc'=>105,'wood'=>550,'clay'=>640,'iron'=>800,'crop'=>180,'pop'=>4,'speed'=>10,'time'=>3520,'cap'=>70,'drinking'=>20);
|
||||
$u4=array('atk'=>0,'di'=>20,'dc'=>10,'wood'=>140,'clay'=>160,'iron'=>20,'crop'=>40,'pop'=>2,'speed'=>16,'time'=>1360,'cap'=>0);
|
||||
$u5=array('atk'=>120,'di'=>65,'dc'=>50,'wood'=>550,'clay'=>440,'iron'=>320,'crop'=>100,'pop'=>3,'speed'=>14,'time'=>2640,'cap'=>100);
|
||||
$u6=array('atk'=>180,'di'=>80,'dc'=>105,'wood'=>550,'clay'=>640,'iron'=>800,'crop'=>180,'pop'=>4,'speed'=>10,'time'=>3520,'cap'=>70);
|
||||
$u7=array('atk'=>60,'di'=>30,'dc'=>75,'wood'=>900,'clay'=>360,'iron'=>500,'crop'=>70,'pop'=>3,'speed'=>4,'time'=>4600,'cap'=>0);
|
||||
$u8=array('atk'=>75,'di'=>60,'dc'=>10,'wood'=>950,'clay'=>1350,'iron'=>600,'crop'=>90,'pop'=>6,'speed'=>3,'time'=>9000,'cap'=>0);
|
||||
$u9=array('atk'=>50,'di'=>40,'dc'=>30,'wood'=>30750,'clay'=>27200,'iron'=>45000,'crop'=>37500,'pop'=>5,'speed'=>5,'time'=>90700,'cap'=>0);
|
||||
@@ -51,16 +51,16 @@ $u37=array('atk'=>250,'di'=>140,'dc'=>200,'wood'=>250,'clay'=>220,'iron'=>135,'c
|
||||
$u38=array('atk'=>450,'di'=>380,'dc'=>240,'wood'=>125,'clay'=>250,'iron'=>300,'crop'=>65,'speed'=>3,'pop'=>3,'time'=>2000,'cap'=>0);
|
||||
$u39=array('atk'=>200,'di'=>170,'dc'=>250,'wood'=>350,'clay'=>350,'iron'=>125,'crop'=>80,'speed'=>5,'pop'=>3,'time'=>70500,'cap'=>0);
|
||||
$u40=array('atk'=>600,'di'=>440,'dc'=>520,'wood'=>350,'clay'=>250,'iron'=>135,'crop'=>100,'speed'=>5,'pop'=>5,'time'=>31000,'cap'=>3000);
|
||||
$u41=array('atk'=>20,'di'=>35,'dc'=>50,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u42=array('atk'=>65,'di'=>30,'dc'=>10,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u43=array('atk'=>100,'di'=>90,'dc'=>75,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u44=array('atk'=>0,'di'=>10,'dc'=>0,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u45=array('atk'=>155,'di'=>80,'dc'=>50,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u46=array('atk'=>170,'di'=>140,'dc'=>80,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u47=array('atk'=>250,'di'=>120,'dc'=>150,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u48=array('atk'=>60,'di'=>45,'dc'=>10,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u49=array('atk'=>80,'di'=>50,'dc'=>50,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u50=array('atk'=>30,'di'=>40,'dc'=>40,'wood'=>0,'clay'=>0,'iron'=>0,'crop'=>0,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u41=array('atk'=>20,'di'=>35,'dc'=>50,'wood'=>105,'clay'=>110,'iron'=>85,'crop'=>50,'pop'=>1,'speed'=>10,'time'=>1100,'cap'=>25);
|
||||
$u42=array('atk'=>65,'di'=>30,'dc'=>10,'wood'=>95,'clay'=>145,'iron'=>100,'crop'=>55,'pop'=>1,'speed'=>9,'time'=>1300,'cap'=>55);
|
||||
$u43=array('atk'=>100,'di'=>90,'dc'=>75,'wood'=>125,'clay'=>165,'iron'=>130,'crop'=>75,'pop'=>1,'speed'=>15,'time'=>1500,'cap'=>60);
|
||||
$u44=array('atk'=>0,'di'=>10,'dc'=>0,'wood'=>50,'clay'=>25,'iron'=>20,'crop'=>5,'pop'=>2,'speed'=>20,'time'=>2200,'cap'=>0);
|
||||
$u45=array('atk'=>155,'di'=>80,'dc'=>50,'wood'=>150,'clay'=>205,'iron'=>135,'crop'=>85,'pop'=>2,'speed'=>22,'time'=>3000,'cap'=>80);
|
||||
$u46=array('atk'=>170,'di'=>140,'dc'=>80,'wood'=>175,'clay'=>230,'iron'=>200,'crop'=>100,'pop'=>2,'speed'=>20,'time'=>3450,'cap'=>45);
|
||||
$u47=array('atk'=>250,'di'=>120,'dc'=>150,'wood'=>225,'clay'=>255,'iron'=>230,'crop'=>125,'pop'=>3,'speed'=>17,'time'=>4000,'cap'=>55);
|
||||
$u48=array('atk'=>60,'di'=>45,'dc'=>10,'wood'=>1500,'clay'=>760,'iron'=>890,'crop'=>390,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u49=array('atk'=>80,'di'=>50,'dc'=>50,'wood'=>37000,'clay'=>30000,'iron'=>32000,'crop'=>33500,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u50=array('atk'=>30,'di'=>40,'dc'=>40,'wood'=>8000,'clay'=>8250,'iron'=>8500,'crop'=>5505,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0);
|
||||
$u51=array('atk'=>10,'di'=>25,'dc'=>20,'wood'=>85,'clay'=>75,'iron'=>120,'crop'=>25,'speed'=>7,'pop'=>1,'time'=>1600,'cap'=>45);
|
||||
$u52=array('atk'=>20,'di'=>35,'dc'=>40,'wood'=>125,'clay'=>130,'iron'=>60,'crop'=>40,'speed'=>7,'pop'=>1,'time'=>1800,'cap'=>65);
|
||||
$u53=array('atk'=>60,'di'=>40,'dc'=>60,'wood'=>140,'clay'=>150,'iron'=>40,'crop'=>60,'speed'=>6,'pop'=>1,'time'=>1900,'cap'=>80);
|
||||
@@ -87,5 +87,4 @@ $h22=array('atk'=>80,'atkp'=>71,'di'=>60,'dip'=>54,'dc'=>35,'dcp'=>38);
|
||||
$h24=array('atk'=>115,'atkp'=>87.5,'di'=>40,'dip'=>42,'dc'=>65,'dcp'=>57);
|
||||
$h25=array('atk'=>55,'atkp'=>57.5,'di'=>190,'dip'=>108.5,'dc'=>90,'dcp'=>60.5);
|
||||
$h26=array('atk'=>175,'atkp'=>121,'di'=>85,'dip'=>55,'dc'=>275,'dcp'=>145);
|
||||
|
||||
?>
|
||||
|
||||
@@ -466,10 +466,10 @@
|
||||
}
|
||||
|
||||
function populateOasisUnitsLow() {
|
||||
$q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0";
|
||||
$q2 = "SELECT * FROM " . TB_PREFIX . "odata where conqured == 0";
|
||||
$result2 = mysql_query($q2, $this->connection);
|
||||
while($row = mysql_fetch_array($result2)) {
|
||||
$wid = $row['id'];
|
||||
$wid = $row['wref'];
|
||||
$basearray = $this->getMInfo($wid);
|
||||
//each Troop is a Set for oasis type like mountains have rats spiders and snakes fields tigers elphants clay wolves so on stonger one more not so less
|
||||
switch($basearray['oasistype']) {
|
||||
@@ -522,10 +522,10 @@
|
||||
}
|
||||
|
||||
function populateOasisUnitsHigh() {
|
||||
$q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0";
|
||||
$q2 = "SELECT * FROM " . TB_PREFIX . "odata where conqured == 0";
|
||||
$result2 = mysql_query($q2, $this->connection);
|
||||
while($row = mysql_fetch_array($result2)) {
|
||||
$wid = $row['id'];
|
||||
$wid = $row['wref'];
|
||||
$basearray = $this->getMInfo($wid);
|
||||
//each Troop is a Set for oasis type like mountains have rats spiders and snakes fields tigers elphants clay wolves so on stonger one more not so less
|
||||
switch($basearray['oasistype']) {
|
||||
@@ -1202,7 +1202,42 @@
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
||||
function getAllianceWar($aid){
|
||||
$q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli1 = '$aid' AND type = '3'";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
if(mysql_num_rows($result) == 0){
|
||||
$q2 = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli2 = '$aid' AND type = '3' AND accepted = '1'";
|
||||
$result2 = mysql_query($q2, $this->connection);
|
||||
while($row = mysql_fetch_array($result2)){
|
||||
$alliance = $this->getAlliance($row['alli1']);
|
||||
$text = "";
|
||||
$text .= "<a href=allianz.php?aid=".$alliance['id'].">".$alliance['tag']."</a><br> ";
|
||||
}
|
||||
}else{
|
||||
while($row = mysql_fetch_array($result)){
|
||||
$alliance = $this->getAlliance($row['alli2']);
|
||||
$text = "";
|
||||
$text .= "<a href=allianz.php?aid=".$alliance['id'].">".$alliance['tag']."</a><br> ";
|
||||
}
|
||||
}
|
||||
if(strlen($text) == 0){
|
||||
$text = "-<br>";
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
||||
function getAllianceAlly($aid, $type){
|
||||
$q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE (alli1 = '$aid' or alli2 = '$aid') AND (type = '$type' AND accepted = '1')";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
|
||||
function getAllianceWar2($aid){
|
||||
$q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli2 = '$aid' or alli1 = '$aid' AND accepted = '1'";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
return $this->mysql_fetch_all($result);
|
||||
}
|
||||
function diplomacyExistingRelationships($session_alliance) {
|
||||
$q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli2 = $session_alliance AND accepted = 1";
|
||||
$result = mysql_query($q, $this->connection);
|
||||
@@ -1280,10 +1315,13 @@
|
||||
}
|
||||
|
||||
|
||||
function setVillageName($vid, $name) {
|
||||
$q = "UPDATE " . TB_PREFIX . "vdata set name = '$name' where wref = $vid";
|
||||
return mysql_query($q, $this->connection);
|
||||
}
|
||||
function setVillageName($vid, $name) {
|
||||
if(!empty($name))
|
||||
{
|
||||
$q = "UPDATE " . TB_PREFIX . "vdata set name = '$name' where wref = $vid";
|
||||
return mysql_query($q, $this->connection);
|
||||
}
|
||||
}
|
||||
|
||||
function modifyPop($vid, $pop, $mode) {
|
||||
if(!$mode) {
|
||||
|
||||
@@ -98,7 +98,6 @@ class Generator {
|
||||
}
|
||||
|
||||
public function procMtime($time, $pref = 3) {
|
||||
global $lang;
|
||||
/*
|
||||
$timezone = 7;
|
||||
switch($timezone) {
|
||||
@@ -112,9 +111,9 @@ public function procMtime($time, $pref = 3) {
|
||||
|
||||
$today = date('d',time())-1;
|
||||
if (date('Ymd',time()) == date('Ymd',$time)) {
|
||||
$day = $lang['upgrade'][11]; //today
|
||||
$day = "today";
|
||||
}elseif($today == date('d',$time)){
|
||||
$day = $lang['upgrade'][12]; //yesterday
|
||||
$day = "yesterday";
|
||||
}
|
||||
else {
|
||||
switch($pref) {
|
||||
|
||||
+2
-100
@@ -23,8 +23,6 @@ define("TRIBE6","Monsters");
|
||||
define("HOME","Homepage");
|
||||
define("INSTRUCT","Instructions");
|
||||
define("ADMIN_PANEL","Admin Panel");
|
||||
define("MULTIHUNTER_PAN","Multihunter Panel");
|
||||
define("CREATE_NAT","Create Natars");
|
||||
define("MASS_MESSAGE","Mass Message");
|
||||
define("LOGOUT","Logout");
|
||||
define("PROFILE","Profile");
|
||||
@@ -33,7 +31,6 @@ define("UPDATE_T_10","Update Top 10");
|
||||
define("SYSTEM_MESSAGE","System message");
|
||||
define("TRAVIAN_PLUS","Travian <b><span class=\"plus_g\">P</span><span class=\"plus_o\">l</span><span class=\"plus_g\">u</span><span class=\"plus_o\">s</span></span></span></b>");
|
||||
define("CONTACT","Contact us!");
|
||||
define("GAME_RULES","Game Rules");
|
||||
|
||||
//MENU
|
||||
define("REG","Register");
|
||||
@@ -96,7 +93,6 @@ define("IRON","Iron");
|
||||
define("CROP","Crop");
|
||||
define("LEVEL","Level");
|
||||
define("CROP_COM",CROP." consumption");
|
||||
define("DURATION","duration");
|
||||
define("PER_HR","per hour");
|
||||
define("PROD_HEADER","Production");
|
||||
define("MULTI_V_HEADER","Villages");
|
||||
@@ -105,13 +101,12 @@ define("GO2MY_VILLAGE","Go to my village");
|
||||
define("VILLAGE_CENTER","Village centre");
|
||||
define("FINISH_GOLD","Finish all construction and research orders in this village immediately for 2 Gold?");
|
||||
define("WAITING_LOOP","(waiting loop)");
|
||||
define("HRS","hrs.");
|
||||
define("HRS","(hrs.)");
|
||||
define("DONE_AT","done at");
|
||||
define("CANCEL","cancel");
|
||||
define("LOYALTY","Loyalty:");
|
||||
define("CALCULATED_IN","Calculated in");
|
||||
define("SEVER_TIME","Server time:");
|
||||
define("MILISECS","ms");
|
||||
|
||||
//QUEST
|
||||
define("Q_CONTINUE","Continue with the next task.");
|
||||
@@ -357,98 +352,5 @@ define("MASS_SENT","Mass IGM was sent");
|
||||
$lang['register'] = "Register";
|
||||
$lang['login'] = "Login";
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| top_menu
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
$lang['header'] = array (
|
||||
0 => 'Village overview',
|
||||
1 => 'Vilage centre',
|
||||
2 => 'Map',
|
||||
3 => 'Statistics',
|
||||
4 => 'Reports',
|
||||
5 => 'Messages',
|
||||
6 => 'Plus menu');
|
||||
|
||||
$lang['buildings'] = array (
|
||||
1 => "Woodcutter",
|
||||
2 => "Clay Pit",
|
||||
3 => "Iron Mine",
|
||||
4 => "Cropland",
|
||||
5 => "Sawmill",
|
||||
6 => "Brickyard",
|
||||
7 => "Iron Foundry",
|
||||
8 => "Grain Mill",
|
||||
9 => "Bakery",
|
||||
10 => "Warehouse",
|
||||
11 => "Granary",
|
||||
12 => "Blacksmith",
|
||||
13 => "Armoury",
|
||||
14 => "Tournament Square",
|
||||
15 => "Main Building",
|
||||
16 => "Rally Point",
|
||||
17 => "Marketplace",
|
||||
18 => "Embassy",
|
||||
19 => "Barracks",
|
||||
20 => "Stable",
|
||||
21 => "Workshop",
|
||||
22 => "Academy",
|
||||
23 => "Cranny",
|
||||
24 => "Town Hall",
|
||||
25 => "Residence",
|
||||
26 => "Palace",
|
||||
27 => "Treasury",
|
||||
28 => "Trade Office",
|
||||
29 => "Great Barracks",
|
||||
30 => "Great Stable",
|
||||
31 => "City Wall",
|
||||
32 => "Earth Wall",
|
||||
33 => "Palisade",
|
||||
34 => "Stonemason's Lodge",
|
||||
35 => "Brewery",
|
||||
36 => "Trapper",
|
||||
37 => "Hero's Mansion",
|
||||
38 => "Great Warehouse",
|
||||
39 => "Great Granary",
|
||||
40 => "Wonder of the World",
|
||||
41 => "Horse Drinking Trough",
|
||||
42 => "Great Workshop",
|
||||
43 => "Error",
|
||||
44 => " (Level ");
|
||||
|
||||
$lang['fields'] = array (
|
||||
0 => ' Level',
|
||||
1 => 'Woodcutter Level',
|
||||
2 => 'Clay Pit Level',
|
||||
3 => 'Iron Mine Level',
|
||||
4 => 'Cropland Level',
|
||||
5 => 'Outer building site',
|
||||
6 => 'Building site',
|
||||
7 => 'Rally Point building site');
|
||||
|
||||
$lang['npc'] = array (
|
||||
0 => 'NPC trade');
|
||||
|
||||
$lang['upgrade'] = array (
|
||||
0 => 'Building already at max level',
|
||||
1 => 'Building max level under construction',
|
||||
2 => 'Building presently being demolished',
|
||||
3 => '<b>Costs</b> for upgrading to level ',
|
||||
4 => 'The workers are already at work.',
|
||||
5 => 'Not enough food. Expand cropland.',
|
||||
6 => 'Upgrade Warehouse.',
|
||||
7 => 'Upgrade Granary.',
|
||||
8 => 'Enough resources ',
|
||||
9 => ' at ',
|
||||
10 => 'Upgrade to level ',
|
||||
11 => 'today',
|
||||
12 => 'yesterday');
|
||||
|
||||
$lang['movement'] = array (
|
||||
0 => 'in ');
|
||||
|
||||
$lang['troops'] = array (
|
||||
0 => 'none',
|
||||
1 => 'Hero');
|
||||
|
||||
?>
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
global $session, $database;
|
||||
if(isset($get['t'])) {
|
||||
if($get['t'] == 1) {
|
||||
$type = array(8, 15);
|
||||
$type = array(8, 15, 16, 17);
|
||||
}
|
||||
if($get['t'] == 2) {
|
||||
$type = array(10, 11, 12, 13);
|
||||
@@ -100,6 +100,9 @@
|
||||
if($get['t'] == 3) {
|
||||
$type = array(1, 2, 3, 4, 5, 6, 7);
|
||||
}
|
||||
if($get['t'] == 4) {
|
||||
$type = array(0, 18, 19, 20, 21);
|
||||
}
|
||||
if($get['t'] == 5) {
|
||||
if(!$session->plus){
|
||||
header("Location: berichte.php");
|
||||
|
||||
Reference in New Issue
Block a user