commit 6928cbcd1dbc112c2eb67b04b70c1e86e02ecffb Author: unknown Date: Thu Mar 29 13:00:34 2012 +0200 first commit diff --git a/AC_OETags.js b/AC_OETags.js new file mode 100644 index 00000000..8329e72e --- /dev/null +++ b/AC_OETags.js @@ -0,0 +1,141 @@ +// Flash Player Version Detection - Rev 1.6 +// Detect Client Browser type +// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved. +var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false; +var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false; +var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false; + +function ControlVersion() +{ + var version; + var axo; + var e; + + // NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn't in the registry + + try { + // version will be set for 7.X or greater players + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"); + version = axo.GetVariable("$version"); + } catch (e) { + } + + if (!version) + { + try { + // version will be set for 6.X players only + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); + + // installed player is some revision of 6.0 + // GetVariable("$version") crashes for versions 6.0.22 through 6.0.29, + // so we have to be careful. + + // default to the first public version + version = "WIN 6,0,21,0"; + + // throws if AllowScripAccess does not exist (introduced in 6.0r47) + axo.AllowScriptAccess = "always"; + + // safe to call for 6.0r47 or greater + version = axo.GetVariable("$version"); + + } catch (e) { + } + } + + if (!version) + { + try { + // version will be set for 4.X or 5.X player + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); + version = axo.GetVariable("$version"); + } catch (e) { + } + } + + if (!version) + { + try { + // version will be set for 3.X player + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3"); + version = "WIN 3,0,18,0"; + } catch (e) { + } + } + + if (!version) + { + try { + // version will be set for 2.X player + axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); + version = "WIN 2,0,0,11"; + } catch (e) { + version = -1; + } + } + + return version; +} + +// JavaScript helper required to detect Flash Player PlugIn version information +function GetSwfVer(id){ + // NS/Opera version >= 3 check for Flash plugin in plugin array + var flashVer = -1; + + if (navigator.plugins != null && navigator.plugins.length > 0) { + if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { + var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; + var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; + var descArray = flashDescription.split(" "); + var tempArrayMajor = descArray[2].split("."); + var versionMajor = tempArrayMajor[0]; + var versionMinor = tempArrayMajor[1]; + var versionRevision = descArray[3]; + if (versionRevision == "") { + versionRevision = descArray[4]; + } + if (versionRevision[0] == "d") { + versionRevision = versionRevision.substring(1); + } else if (versionRevision[0] == "r") { + versionRevision = versionRevision.substring(1); + if (versionRevision.indexOf("d") > 0) { + versionRevision = versionRevision.substring(0, versionRevision.indexOf("d")); + } + } + var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; + } + } + // MSN/WebTV 2.6 supports Flash 4 + else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; + // WebTV 2.5 supports Flash 3 + else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; + // older WebTV supports Flash 2 + else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; + else if ( isIE && isWin && !isOpera ) { + flashVer = ControlVersion(); + } + + if(flashVer != -1) { + writeFlashTags(id); + } + + return flashVer; +} + + +function writeFlashTags(id) +{ + var swfFilename = "stats.swf"; + var swfUrlWithGetParameters = swfFilename + "?id=" + id; + + document.writeln("
"); + document.writeln(""); + document.writeln(""); + document.writeln(""); + document.writeln(""); + document.writeln(" "); + document.writeln("
"); +} diff --git a/Admin/admin.php b/Admin/admin.php new file mode 100644 index 00000000..d83c013c --- /dev/null +++ b/Admin/admin.php @@ -0,0 +1,142 @@ + + + + + +<?php if($_SESSION['access'] == ADMIN){ echo 'Admin Control Panel - TravianX'; } else if($_SESSION['access'] == MULTIHUNTER){ echo 'Multihunter Control Panel - TravianX'; } ?> + + + + + + + + + + + + + +
+
+ +
+
+ +
+
+ +
+
+ +CheckLogin()){ + if($_POST or $_GET){ + if($_GET['p'] and $_GET['p']!="search"){ + $filename = '../Templates/Admin/'.$_GET['p'].'.tpl'; + if(file_exists($filename)){ + include($filename); + }else{ + include('../Templates/Admin/404.tpl'); + } + }else{ + include('../Templates/Admin/search.tpl'); + } + if($_POST['p'] and $_POST['s']){ + $filename = '../Templates/Admin/results_'.$_POST['p'].'.tpl'; + if(file_exists($filename)){ + include($filename); + }else{ + include('../Templates/Admin/404.tpl'); + } + } + }else{ + include('../Templates/Admin/home.tpl'); + } + }else{ + include('../Templates/Admin/login.tpl'); + } +?> + +
+
+ +
+
+ +
+ + + + + \ No newline at end of file diff --git a/Admin/ajax.js b/Admin/ajax.js new file mode 100644 index 00000000..18f0b07e --- /dev/null +++ b/Admin/ajax.js @@ -0,0 +1,70 @@ +var http_request = false; + +function macheRequest(url, id) +{ + + http_request = false; + + if (window.XMLHttpRequest) + { // Mozilla, Safari,... + http_request = new XMLHttpRequest(); + if (http_request.overrideMimeType) + { + http_request.overrideMimeType('text/xml'); + // zu dieser Zeile siehe weiter unten + } + } + else if (window.ActiveXObject) + { // IE + try + { + http_request = new ActiveXObject("Msxml2.XMLHTTP"); + } + catch (e) + { + try + { + http_request = new ActiveXObject("Microsoft.XMLHTTP"); + } + catch (e) + { + } + } + } + + if (!http_request) + { + alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen'); + return false; + } + http_request.onreadystatechange = function() + { + alertInhalt2(id); + }; + http_request.open('GET', url, true); + http_request.send(null); + +} + +function alertInhalt2(id) +{ + + if (http_request.readyState == 4) + { + if (http_request.status == 200) + { + // alert(http_request.responseText); + myElement = document.getElementById(id); + if (myElement != null) + { + myElement.innerHTML = http_request.responseText; + } + + } + else + { + alert('Bei dem Request ist ein Problem aufgetreten.'); + } + } + +} \ No newline at end of file diff --git a/GameEngine/Account.php b/GameEngine/Account.php new file mode 100644 index 00000000..12649f16 --- /dev/null +++ b/GameEngine/Account.php @@ -0,0 +1,226 @@ +Signup(); + break; + case "a2": + $this->Activate(); + break; + case "a3": + $this->Unreg(); + break; + case "a4": + $this->Login(); + break; + } + } if(isset($_GET['code'])) { + $_POST['id'] = $_GET['code']; $this->Activate(); + } + else { + if($session->logged_in && in_array("logout.php",explode("/",$_SERVER['PHP_SELF']))) { + $this->Logout(); + } + } + } + + private function Signup() { + global $database,$form,$mailer,$generator,$session; + if(!isset($_POST['name']) || $_POST['name'] == "") { + $form->addError("name",USRNM_EMPTY); + } + else { + if(strlen($_POST['name']) < USRNM_MIN_LENGTH) { + $form->addError("name",USRNM_SHORT); + } + else if(!USRNM_SPECIAL && preg_match('/[^0-9A-Za-z]/',$_POST['name'])) { + $form->addError("name",USRNM_CHAR); + } + else if($database->checkExist($_POST['name'],0)) { + $form->addError("name",USRNM_TAKEN); + } + else if($database->checkExist_activate($_POST['name'],0)) { + $form->addError("name",USRNM_TAKEN); + } + + } + if(!isset($_POST['pw']) || $_POST['pw'] == "") { + $form->addError("pw",PW_EMPTY); + } + else { + if(strlen($_POST['pw']) < PW_MIN_LENGTH) { + $form->addError("pw",PW_SHORT); + } + else if($_POST['pw'] == $_POST['name']) { + $form->addError("pw",PW_INSECURE); + } + } + if(!isset($_POST['email'])) { + $form->addError("email",EMAIL_EMPTY); + } + else { + if(!$this->validEmail($_POST['email'])) { + $form->addError("email",EMAIL_INVALID); + } + else if($database->checkExist($_POST['email'],1)) { + $form->addError("email",EMAIL_TAKEN); + } + else if($database->checkExist_activate($_POST['email'],1)) { + $form->addError("email",EMAIL_TAKEN); + } + } + if(!isset($_POST['vid'])) { + $form->addError("tribe",TRIBE_EMPTY); + } + if(!isset($_POST['agb'])) { + $form->addError("agree",AGREE_ERROR); + } + if($form->returnErrors() > 0) { + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $_POST; + + header("Location: anmelden.php"); + } + else { + if(AUTH_EMAIL){ + $act = $generator->generateRandStr(10); + $act2 = $generator->generateRandStr(5); + $uid = $database->activate($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act,$act2); + if($uid) { + + $mailer->sendActivate($_POST['email'],$_POST['name'],$_POST['pw'],$act); + header("Location: activate.php?id=$uid&q=$act2"); + } + } + else { + $uid = $database->register($_POST['name'],md5($_POST['pw']),$_POST['email'],$_POST['vid'],$_POST['kid'],$act); + if($uid) { + setcookie("COOKUSR",$_POST['name'],time()+COOKIE_EXPIRE,COOKIE_PATH); + setcookie("COOKEMAIL",$_POST['email'],time()+COOKIE_EXPIRE,COOKIE_PATH); + + $database->updateUserField($uid,"act","",1); + $this->generateBase($_POST['kid'],$uid,$_POST['name']); + header("Location: login.php"); + } + } + } + } + + private function Activate() { + global $database; + $q = "SELECT * FROM ".TB_PREFIX."activate where act = '".$_POST['id']."'"; + $result = mysql_query($q, $database->connection); + $dbarray = mysql_fetch_array($result); + if($dbarray['act'] == $_POST['id']) { + $uid = $database->register($dbarray['username'],$dbarray['password'],$dbarray['email'],$dbarray['tribe'],$dbarray['location'],""); + if($uid) { + $database->unreg($dbarray['username']); + $this->generateBase($dbarray['kid'],$uid,$dbarray['username']); + header("Location: activate.php?e=2"); + } + } + else { + header("Location: activate.php?e=3"); + } + } + + private function Unreg() { + global $database; + $q = "SELECT * FROM ".TB_PREFIX."activate where id = '".$_POST['id']."'"; + $result = mysql_query($q, $database->connection); + $dbarray = mysql_fetch_array($result); + if(md5($_POST['pw']) == $dbarray['password']) { + $database->unreg($dbarray['username']); + header("Location: anmelden.php"); + } + else { + header("Location: activate.php?e=3"); + } + } + + private function Login() { + global $database,$session,$form; + if(!isset($_POST['user']) || $_POST['user'] == "") { + $form->addError("user",LOGIN_USR_EMPTY); + } + else if(!$database->checkExist($_POST['user'],0)) { + $form->addError("user",USR_NT_FOUND); + } + if(!isset($_POST['pw']) || $_POST['pw'] == "") { + $form->addError("pw",LOGIN_PASS_EMPTY); + } + else if(!$database->login($_POST['user'],$_POST['pw']) && !$database->sitterLogin($_POST['user'],$_POST['pw'])) { + $form->addError("pw",LOGIN_PW_ERROR); + } + if($database->getUserField($_POST['user'],"act",1) != "") { + $form->addError("activate",$_POST['user']); + } + if($form->returnErrors() > 0) { + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $_POST; + + header("Location: login.php"); + } + else { + setcookie("COOKUSR",$_POST['user'],time()+COOKIE_EXPIRE,COOKIE_PATH); + $database->UpdateOnline("login" ,$_POST['user'],time()); + $session->login($_POST['user']); + } + } + + private function Logout() { + global $session,$database; + unset($_SESSION['wid']); + $database->activeModify($session->username,1); + $database->UpdateOnline("logout") or die(mysql_error()); + $session->Logout(); + } + + private function validEmail($email) { + $regexp="/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/i"; + if ( !preg_match($regexp, $email) ) { + return false; + } + return true; + } + + function generateBase($kid,$uid,$username) { + global $database,$message; + $database->updateUserField($uid,"location","",1); + if($kid == 0) { + $kid = rand(1,4); + } + else{ + $kid = $_POST['kid']; + } + + $wid = $database->generateBase($kid); + $database->setFieldTaken($wid); + $database->addVillage($wid,$uid,$username,1); + $database->addResourceFields($wid,$database->getVillageType($wid)); + $database->addUnits($wid); + $database->addTech($wid); + $database->addABTech($wid); + $database->updateUserField($uid,"access",USER,1); + $message->sendWelcome($uid,$username); + } + +}; +$account = new Account; +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/addTroops.php b/GameEngine/Admin/Mods/addTroops.php new file mode 100644 index 00000000..bf9f4f43 --- /dev/null +++ b/GameEngine/Admin/Mods/addTroops.php @@ -0,0 +1,106 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$id = $_POST['id']; +$village = $database->getVillage($id); +$user = $database->getUserArray($village['owner'],1); +$coor = $database->getCoor($village['wref']); +$varray = $database->getProfileVillages($village['owner']); +$type = $database->getVillageType($village['wref']); +$fdata = $database->getResourceLevel($village['wref']); +$units = $database->getUnit($village['wref']); + +$u1 = $_POST['u1']; +$u2 = $_POST['u2']; +$u3 = $_POST['u3']; +$u4 = $_POST['u4']; +$u5 = $_POST['u5']; +$u6 = $_POST['u6']; +$u7 = $_POST['u7']; +$u8 = $_POST['u8']; +$u9 = $_POST['u9']; +$u10 = $_POST['u10']; +//////////////////// +$u11 = $_POST['u11']; +$u12 = $_POST['u12']; +$u13 = $_POST['u13']; +$u14 = $_POST['u14']; +$u15 = $_POST['u15']; +$u16 = $_POST['u16']; +$u17 = $_POST['u17']; +$u18 = $_POST['u18']; +$u19 = $_POST['u19']; +$u20 = $_POST['u20']; +//////////////////// +$u21 = $_POST['u21']; +$u22 = $_POST['u22']; +$u23 = $_POST['u23']; +$u24 = $_POST['u24']; +$u25 = $_POST['u25']; +$u26 = $_POST['u26']; +$u27 = $_POST['u27']; +$u28 = $_POST['u28']; +$u29 = $_POST['u29']; +$u30 = $_POST['u30']; +//////////////////// +$u31 = $_POST['u31']; +$u32 = $_POST['u32']; +$u33 = $_POST['u33']; +$u34 = $_POST['u34']; +$u35 = $_POST['u35']; +$u36 = $_POST['u36']; +$u37 = $_POST['u37']; +$u38 = $_POST['u38']; +$u39 = $_POST['u39']; +$u40 = $_POST['u40']; +//////////////////// +$u41 = $_POST['u41']; +$u42 = $_POST['u42']; +$u43 = $_POST['u43']; +$u44 = $_POST['u44']; +$u45 = $_POST['u45']; +$u46 = $_POST['u46']; +$u47 = $_POST['u47']; +$u48 = $_POST['u48']; +$u49 = $_POST['u49']; +$u50 = $_POST['u50']; + +if($user['tribe'] == 1){ +$q = "UPDATE ".TB_PREFIX."units SET u1 = $u1, u2 = $u2, u3 = $u3, u4 = $u4, u5 = $u5, u6 = $u6, u7 = $u7, u8 = $u8, u9 = $u9, u10 = $u10 WHERE vref = $id"; +mysql_query($q); +} else if($user['tribe'] == 2){ +$q = "UPDATE ".TB_PREFIX."units SET u11 = '$u11', u12 = '$u12', u13 = '$u13', u14 = '$u14', u15 = '$u15', u16 = '$u16', u17 = '$u17', u18 = '$u18', u19 = '$u19', u20 = '$u20' WHERE vref = $id"; +mysql_query($q); +} else if($user['tribe'] == 3){ +$q = "UPDATE ".TB_PREFIX."units SET u21 = '$u21', u22 = '$u22', u23 = '$u23', u24 = '$u24', u25 = '$u25', u26 = '$u26', u27 = '$u27', u28 = '$u28', u29 = '$u29', u30 = '$u30' WHERE vref = $id"; +mysql_query($q); +} else if($user['tribe'] == 4){ +$q = "UPDATE ".TB_PREFIX."units SET u31 = '$u31', u32 = '$u32', u33 = '$u33', u34 = '$u34', u35 = '$u35', u36 = '$u36', u37 = '$u37', u38 = '$u38', u39 = '$u39', u40 = '$u40' WHERE vref = $id"; +mysql_query($q); +} else if($user['tribe'] == 5){ +$q = "UPDATE ".TB_PREFIX."units SET u41 = '$u41', u42 = '$u42', u43 = '$u43', u44 = '$u44', u45 = '$u45', u46 = '$u46', u47 = '$u47', u48 = '$u48', u49 = '$u49', u50 = '$u50' WHERE vref = $id"; +mysql_query($q); +} + +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Changed troop anmount in village $id ',".time().")"); + +header("Location: ../../../Admin/admin.php?p=addTroops&did=".$id."&d"); + +?> diff --git a/GameEngine/Admin/Mods/cp.php b/GameEngine/Admin/Mods/cp.php new file mode 100644 index 00000000..54c77539 --- /dev/null +++ b/GameEngine/Admin/Mods/cp.php @@ -0,0 +1,25 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$id = $_POST['id']; +$admid = $_POST['admid']; +mysql_query("UPDATE ".TB_PREFIX."users SET cp = cp + ".$_POST['cp']." WHERE id = ".$id.""); + +$name = $database->getUserField($id,"username",0); +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added ".$_POST['cp']." Cultural Points to user $name ',".time().")"); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id."&cp=ok"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editUser.php b/GameEngine/Admin/Mods/editUser.php new file mode 100644 index 00000000..a0187c64 --- /dev/null +++ b/GameEngine/Admin/Mods/editUser.php @@ -0,0 +1,24 @@ +getUserArray($id,1); +mysql_query("UPDATE ".TB_PREFIX."users SET email = '".$_POST['email']."', tribe = ".$_POST['tribe'].", location = '".$_POST['location']."', desc1 = '".$_POST['desc1']."', `desc2` = '".$_POST['desc2']."' WHERE id = ".$_POST['id'].""); +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Changed ".$user['username']."\'s profile',".time().")"); + + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/gold.php b/GameEngine/Admin/Mods/gold.php new file mode 100644 index 00000000..a2656428 --- /dev/null +++ b/GameEngine/Admin/Mods/gold.php @@ -0,0 +1,26 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$id = $_POST['id']; +$gold = $_POST['gold']; + + $q = "UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id != '0'"; + mysql_query($q); + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$id,'Added $gold gold to all users',".time().")"); + + +header("Location: ../../../Admin/admin.php?p=gold&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/gold_1.php b/GameEngine/Admin/Mods/gold_1.php new file mode 100644 index 00000000..0f71d61a --- /dev/null +++ b/GameEngine/Admin/Mods/gold_1.php @@ -0,0 +1,25 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$id = $_POST['id']; +$admid = $_POST['admid']; +mysql_query("UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id = ".$id.""); + +$name = $database->getUserField($id,"username",0); +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Added ".$_POST['gold']." gold to user $name ',".time().")"); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id."&g=ok"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/natarend.php b/GameEngine/Admin/Mods/natarend.php new file mode 100644 index 00000000..0bc0327d --- /dev/null +++ b/GameEngine/Admin/Mods/natarend.php @@ -0,0 +1,43 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$id = $_POST['id']; +$amt = $_POST['vill_amount']; + +for($i=1;$i<=$amt;$i++) { + + $kid = rand(1,4); + + $wid = $database->generateBase($kid); + $database->setFieldTaken($wid); + $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','World Wonder',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,1,40,'World Wonder')"; + mysql_query($q); + $database->addUnits($wid); + $database->addTech($wid); + $database->addABTech($wid); + $q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + '150000', u42 = u42 + '150000', u43 = u43 + '150000', u44 = u44 + '150000', u45 = u45 + '150000', u46 = u46 + '150000', u47 = u47 + '150000', u48 = u48 + '150000' , u49 = u49 + '150000', u50 = u50 + '150000' WHERE vref = '".$wid."'"; + mysql_query($q); +} + + + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$id,'Added $amt WW Villages',".time().")"); + + +header("Location: ../../../Admin/admin.php?p=natarend&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/_notes/dwsync.xml b/GameEngine/Admin/_notes/dwsync.xml new file mode 100644 index 00000000..3e3fb3c1 --- /dev/null +++ b/GameEngine/Admin/_notes/dwsync.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/GameEngine/Admin/admin.php b/GameEngine/Admin/admin.php new file mode 100644 index 00000000..0f9844cf --- /dev/null +++ b/GameEngine/Admin/admin.php @@ -0,0 +1,108 @@ + + + + + + Admin Control Panel - TravianX + + + + + + + + + + + + + +
+
+ +
+
+ +
+
+
+ + + + + + +
+
+
+ +CheckLogin()){ + if($_POST or $_GET){ + if($_GET['p'] and $_GET['p']!="search"){ + $filename = '../Templates/Admin/'.$_GET['p'].'.tpl'; + if(file_exists($filename)){ + include($filename); + }else{ + include('../Templates/Admin/404.tpl'); + } + }else{ + include('../Templates/Admin/search.tpl'); + } + if($_POST['p'] and $_POST['s']){ + $filename = '../Templates/Admin/results_'.$_POST['p'].'.tpl'; + if(file_exists($filename)){ + include($filename); + }else{ + include('../Templates/Admin/404.tpl'); + } + } + }else{ + include('../Templates/Admin/home.tpl'); + } + }else{ + include('../Templates/Admin/login.tpl'); + } +?> + +
+
+ +
+
+ +
+ + + + + + diff --git a/GameEngine/Admin/ajax.js b/GameEngine/Admin/ajax.js new file mode 100644 index 00000000..18f0b07e --- /dev/null +++ b/GameEngine/Admin/ajax.js @@ -0,0 +1,70 @@ +var http_request = false; + +function macheRequest(url, id) +{ + + http_request = false; + + if (window.XMLHttpRequest) + { // Mozilla, Safari,... + http_request = new XMLHttpRequest(); + if (http_request.overrideMimeType) + { + http_request.overrideMimeType('text/xml'); + // zu dieser Zeile siehe weiter unten + } + } + else if (window.ActiveXObject) + { // IE + try + { + http_request = new ActiveXObject("Msxml2.XMLHTTP"); + } + catch (e) + { + try + { + http_request = new ActiveXObject("Microsoft.XMLHTTP"); + } + catch (e) + { + } + } + } + + if (!http_request) + { + alert('Ende :( Kann keine XMLHTTP-Instanz erzeugen'); + return false; + } + http_request.onreadystatechange = function() + { + alertInhalt2(id); + }; + http_request.open('GET', url, true); + http_request.send(null); + +} + +function alertInhalt2(id) +{ + + if (http_request.readyState == 4) + { + if (http_request.status == 200) + { + // alert(http_request.responseText); + myElement = document.getElementById(id); + if (myElement != null) + { + myElement.innerHTML = http_request.responseText; + } + + } + else + { + alert('Bei dem Request ist ein Problem aufgetreten.'); + } + } + +} \ No newline at end of file diff --git a/GameEngine/Admin/database.php b/GameEngine/Admin/database.php new file mode 100644 index 00000000..5c5fe2ae --- /dev/null +++ b/GameEngine/Admin/database.php @@ -0,0 +1,309 @@ +connection = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error()); + mysql_select_db(SQL_DB, $this->connection) or die(mysql_error()); + } + + function Login($username,$password) { + $q = "SELECT password FROM ".TB_PREFIX."users where username = '$username' and access >= ".MULTIHUNTER; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + if($dbarray['password'] == md5($password)) { + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,'X','$username logged in (IP: ".$_SERVER['REMOTE_ADDR'].")',".time().")"); + return true; + } + else { + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,'X','IP: ".$_SERVER['REMOTE_ADDR']." tried to log in with username $username but access was denied!',".time().")"); + return false; + } + } + + function recountPopUser($uid){ + global $database; + $villages = $database->getProfileVillages($uid); + for ($i = 0; $i <= count($villages)-1; $i++) { + $vid = $villages[$i]['wref']; + $this->recountPop($vid); + } + } + + function recountPop($vid){ + global $database; + $fdata = $database->getResourceLevel($vid); + $popTot = 0; + for ($i = 1; $i <= 40; $i++) { + $lvl = $fdata["f".$i]; + $building = $fdata["f".$i."t"]; + if($building){ + $popTot += $this->buildingPOP($building,$lvl); + } + } + $q = "UPDATE ".TB_PREFIX."vdata set pop = $popTot where wref = $vid"; + mysql_query($q, $this->connection); + } + + function buildingPOP($f,$lvl){ + $name = "bid".$f; + global $$name; + $popT = 0; + $dataarray = $$name; + for ($i = 0; $i <= $lvl; $i++) { + $popT += $dataarray[$i]['pop']; + } + return $popT; + } + + function getWref($x,$y) { + $q = "SELECT id FROM ".TB_PREFIX."wdata where x = $x and y = $y"; + $result = mysql_query($q, $this->connection); + $r = mysql_fetch_array($result); + return $r['id']; + } + + function AddVillage($post){ + global $database; + $wid = $this->getWref($post['x'],$post['y']); + $uid = $post['uid']; + $status = $database->getVillageState($wid); + $status = 0; + if($status == 0){ + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Added new village $wid to user $uid',".time().")"); + $database->setFieldTaken($wid); + $database->addVillage($wid,$uid,'new village','0'); + $database->addResourceFields($wid,$database->getVillageType($wid)); + $database->addUnits($wid); + $database->addTech($wid); + $database->addABTech($wid); + } + } + + function Punish($post){ + global $database; + $villages = $database->getProfileVillages($post['uid']); + $admid = $post['admid']; + $user = $database->getUserArray($post['uid'],1); + for ($i = 0; $i <= count($villages)-1; $i++) { + $vid = $villages[$i]['wref']; + if($post['punish']){ + $popOld = $villages[$i]['pop']; + $proc = 100-$post['punish']; + $pop = floor(($popOld/100)*($proc)); + if($pop <= 1 ){$pop = 2;} + $this->PunishBuilding($vid,$proc,$pop); + + } + if($post['del_troop']){ + if($user['tribe'] == 1) { + $unit = 1; + }else if($user['tribe'] == 2) { + $unit = 11; + }else if($user['tribe'] == 3) { + $unit = 21; + } + $this->DelUnits($villages[$i]['wref'],$unit); + } + if($post['clean_ware']){ + $time = time(); + $q = "UPDATE ".TB_PREFIX."vdata SET `wood` = '0', `clay` = '0', `iron` = '0', `crop` = '0', `lastupdate` = '$time' WHERE wref = $vid;"; + mysql_query($q, $this->connection); + } + } + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Punished user: ".$post['uid']." with -".$post['punish']."% population',".time().")"); + } + + function PunishBuilding($vid,$proc,$pop){ + global $database; + $q = "UPDATE ".TB_PREFIX."vdata set pop = $pop where wref = $vid;"; + mysql_query($q, $this->connection); + $fdata = $database->getResourceLevel($vid); + for ($i = 1; $i <= 40; $i++) { + if($fdata['f'.$i]>1){ + $zm = ($fdata['f'.$i]/100)*$proc; + if($zm < 1){$zm = 1;}else{$zm = floor($zm);} + $q = "UPDATE ".TB_PREFIX."fdata SET `f$i` = '$zm' WHERE `vref` = $vid;"; + mysql_query($q, $this->connection); + } + } + } + + function DelUnits($vid,$unit){ + for ($i = $unit; $i <= 9+$unit; $i++) { + $this->DelUnits2($vid,$unit); + } + } + + function DelUnits2($vid,$unit){ + $q = "UPDATE ".TB_PREFIX."units SET `u$unit` = '0' WHERE `vref` = $vid;"; + mysql_query($q, $this->connection); + } + + function DelPlayer($uid,$pass){ + global $database; + $ID = $_SESSION['id'];//$database->getUserField($_SESSION['username'],'id',1); + if($this->CheckPass($pass,$ID)){ + $villages = $database->getProfileVillages($uid); + for ($i = 0; $i <= count($villages)-1; $i++) { + $this->DelVillage($villages[$i]['wref']); + } + $name = $database->getUserField($uid,"username",0); + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$ID,'Deleted user $name',".time().")"); + $q = "DELETE FROM ".TB_PREFIX."users WHERE `id` = $uid;"; + mysql_query($q, $this->connection); + } + } + + function getUserActive() { + $time = time() - (60*5); + $q = "SELECT * FROM ".TB_PREFIX."users where timestamp > $time and username != 'support'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function CheckPass($password,$uid){ + $q = "SELECT password FROM ".TB_PREFIX."users where id = '$uid' and access = ".ADMIN; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + if($dbarray['password'] == md5($password)) { + return true; + }else{ + return false; + } + } + + function DelVillage($wref){ + $q = "SELECT * FROM ".TB_PREFIX."vdata WHERE `wref` = $wref and capital = 1;"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result) > 0){ + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Deleted village $wref',".time().")"); + $q = "DELETE FROM ".TB_PREFIX."vdata WHERE `wref` = $wref and capital = 1;"; + mysql_query($q, $this->connection); + $q = "DELETE FROM ".TB_PREFIX."units WHERE `vref` = $wref;"; + mysql_query($q, $this->connection); + $q = "DELETE FROM ".TB_PREFIX."bdata WHERE `wid` = $wref;"; + mysql_query($q, $this->connection); + $q = "DELETE FROM ".TB_PREFIX."abdata WHERE `wid` = $wref;"; + mysql_query($q, $this->connection); + $q = "DELETE FROM ".TB_PREFIX."fdata WHERE `vref` = $wref;"; + mysql_query($q, $this->connection); + $q = "DELETE FROM ".TB_PREFIX."training WHERE `vref` = $wref;"; + mysql_query($q, $this->connection); + $q = "DELETE FROM ".TB_PREFIX."movement WHERE `from` = $wref;"; + mysql_query($q, $this->connection); + $q = "UPDATE ".TB_PREFIX."wdata SET `occupied` = '0' WHERE `id` = $wref;"; + mysql_query($q, $this->connection); + } + } + + function DelBan($uid,$id){ + global $database; + $name = $database->getUserField($uid,"username",0); + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Unbanned user $name',".time().")"); + $q = "UPDATE ".TB_PREFIX."users SET `access` = '".USER."' WHERE `id` = $uid;"; + mysql_query($q, $this->connection); + $q = "UPDATE ".TB_PREFIX."banlist SET `active` = '0' WHERE `id` = $id;"; + mysql_query($q, $this->connection); + } + + function AddBan($uid,$end,$reason){ + global $database; + $name = $database->getUserField($uid,"username",0); + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,".$_SESSION['id'].",'Banned user $name',".time().")"); + $q = "UPDATE ".TB_PREFIX."users SET `access` = '0' WHERE `id` = $uid;"; + mysql_query($q, $this->connection); + $time = time(); + $admin = $_SESSION['id']; //$database->getUserField($_SESSION['username'],'id',1); + $name = $database->getUserField($uid,'username',0); + $q = "INSERT INTO ".TB_PREFIX."banlist (`uid`, `name`, `reason`, `time`, `end`, `admin`, `active`) VALUES ($uid, '$name' , '$reason', '$time', '$end', '$admin', '1');"; + mysql_query($q, $this->connection); + } + + function search_player($player){ + $q = "SELECT id,username FROM ".TB_PREFIX."users WHERE `username` LIKE '%$player%' and username != 'support'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function search_email($email){ + $q = "SELECT id,email FROM ".TB_PREFIX."users WHERE `email` LIKE '%$email%' and username != 'support'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function search_village($village){ + $q = "SELECT * FROM ".TB_PREFIX."vdata WHERE `name` LIKE '%$village%' or `wref` LIKE '%$village%'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function search_alliance($alliance){ + $q = "SELECT * FROM ".TB_PREFIX."alidata WHERE `name` LIKE '%$alliance%' or `tag` LIKE '%$alliance%' or `id` LIKE '%$alliance%'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function search_ip($ip){ + $q = "SELECT * FROM ".TB_PREFIX."login_log WHERE `ip` LIKE '%$ip%'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function search_banned(){ + $q = "SELECT * FROM ".TB_PREFIX."banlist where active = '1'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function Del_banned(){ + //$q = "SELECT * FROM ".TB_PREFIX."banlist"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + /*************************** + Function to process MYSQLi->fetch_all (Only exist in MYSQL) + References: Result + ***************************/ + function mysql_fetch_all($result) { + $all = array(); + if($result) { + while ($row = mysql_fetch_assoc($result)){ $all[] = $row; } + return $all; + } + } + + function query_return($q) { + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + /*************************** + Function to do free query + References: Query + ***************************/ + function query($query) { + return mysql_query($query, $this->connection); + } + + +}; + +$admin = new adm_DB; +include("function.php"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/function.php b/GameEngine/Admin/function.php new file mode 100644 index 00000000..d8cda2ff --- /dev/null +++ b/GameEngine/Admin/function.php @@ -0,0 +1,168 @@ += MULTIHUNTER && isset($_SESSION['id'])){ + return true; + }else{ + return false; + } + } + + function Act($get){ + global $admin,$database; + + switch($get['action']){ + case recountPop: + $admin->recountPop($get['did']); + break; + case recountPopUsr: + $admin->recountPopUser($get['uid']); + break; + case StopDel: + //stop deleting + break; + case delVil: + $admin->DelVillage($get['did']); + break; + case delBan: + $admin->DelBan($get['uid'],$get['id']); + //remove ban + break; + case addBan: + if($get['time']){$end = time()+$get['time']; }else{$end = '';} + + if(preg_match("/^[0-9]+$/",$get['uid'])){ + //if(eregi("^[0-9]*+$",$get['uid'])){ + $get['uid'] = $get['uid']; + }else{ + $get['uid'] = $database->getUserField($get['uid'],'id',1); + } + + $admin->AddBan($get['uid'],$end,$get['reason']); + //add ban + break; + case delOas: + //oaza + break; + case logout: + $this->LogOut(); + break; + } + if($get['action'] == 'logout'){ + header("Location: admin.php"); + }else{ + header("Location: ".$_SERVER['HTTP_REFERER']); + } + } + + function Act2($post){ + global $admin,$database; + switch($post['action']){ + case DelPlayer: + $admin->DelPlayer($post['uid'],$post['pass']); + header("Location: ?p=search&msg=ursdel"); + break; + case punish: + $admin->Punish($post); + header("Location: ".$_SERVER['HTTP_REFERER']); + break; + case addVillage: + $admin->AddVillage($post); + header("Location: ".$_SERVER['HTTP_REFERER']); + break; + } + } + + function LogIN($username,$password){ + global $admin,$database; + if($admin->Login($username,$password)){ + //$_SESSION['username'] = $username; + $_SESSION['access'] = $database->getUserField($username,'access',1); + $_SESSION['id'] = $database->getUserField($username,'id',1); + header("Location: ".$_SERVER['HTTP_REFERER']); + //header("Location: admin.php"); + }else{ + echo "Error"; + } + } + + function LogOut(){ + $_SESSION['access'] = ''; + $_SESSION['id'] = ''; + } + + public function procResType($ref) { + global $session; + switch($ref) { + 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; + default: $build = "Error"; break; + } + return $build; + } + +}; + +$funct = new funct; +if($funct->CheckLogin()){ + if($_GET['action']){ + $funct->Act($_GET); + } + if($_POST['action']){ + $funct->Act2($_POST); + } +} +if($_POST['action']=='login'){ + $funct->LogIN($_POST['name'],$_POST['pw']); +} +?> \ No newline at end of file diff --git a/GameEngine/Admin/welcome.tpl b/GameEngine/Admin/welcome.tpl new file mode 100644 index 00000000..10fe562c --- /dev/null +++ b/GameEngine/Admin/welcome.tpl @@ -0,0 +1,6 @@ +Hello %USER%, + +Thank you for registering on our server. +Since the %START% at %TIME% Romans, Gauls and Teutons attack each other on this game world. Right now, %PLAYERS% players in %ALLI% Alliances are fighting for supremacy. + +TravianX Team \ No newline at end of file diff --git a/GameEngine/Alliance.php b/GameEngine/Alliance.php new file mode 100644 index 00000000..f70fd0d6 --- /dev/null +++ b/GameEngine/Alliance.php @@ -0,0 +1,370 @@ + +| +| This script is property of TravianX Project. You are allowed to change +| its source and release it under own name, not under name `TravianX`. +| You have no rights to remove copyright notices. +| +| TravianX All rights reserved +| +*/ + + class Alliance { + + public $gotInvite = false; + public $inviteArray = array(); + public $allianceArray = array(); + public $userPermArray = array(); + + public function procAlliance($get) { + global $session, $database; + + if($session->alliance != 0) { + $this->allianceArray = $database->getAlliance($session->alliance); + // Permissions Array + // [id] => id [uid] => uid [alliance] => alliance [opt1] => X [opt2] => X [opt3] => X [opt4] => X [opt5] => X [opt6] => X [opt7] => X [opt8] => X + $this->userPermArray = $database->getAlliPermissions($session->uid, $session->alliance); + } else { + $this->inviteArray = $database->getInvitation($session->uid); + $this->gotInvite = count($this->inviteArray) == 0 ? false : true; + } + if(isset($get['a'])) { + switch($get['a']) { + case 2: + $this->rejectInvite($get); + break; + case 3: + $this->acceptInvite($get); + break; + default: + break; + } + } + if(isset($get['o'])) { + switch($get['o']) { + case 4: + $this->delInvite($get); + break; + default: + break; + } + } + } + + public function procAlliForm($post) { + if(isset($post['ft'])) { + switch($post['ft']) { + case "ali1": + $this->createAlliance($post); + break; + } + + } + if(isset($_POST['dipl']) and isset($_POST['a_name'])) { + $this->changediplomacy($post); + } + + if(isset($post['s'])) { + if(isset($post['o'])) { + switch($post['o']) { + case 1: + if(isset($_POST['a'])) { + $this->changeUserPermissions($post); + } + break; + case 2: + if(isset($_POST['a_user'])) { + $this->kickAlliUser($post); + } + break; + case 4: + if(isset($_POST['a']) && $_POST['a'] == 4) { + $this->sendInvite($post); + } + break; + case 3: + $this->updateAlliProfile($post); + break; + case 11: + $this->quitally($post); + break; + case 100: + $this->changeAliName($post); + break; + } + } + } + } + + /***************************************** + Function to process of sending invitations + *****************************************/ + public function sendInvite($post) { + global $form, $database, $session; + // ¿El campo posee informacion? + if(!isset($post['a_name']) || $post['a_name'] == "") { + $form->addError("name1", NAME_EMPTY); + } + // ¿Existe el usuario? + if(!$database->checkExist($post['a_name'], 0)) { + $form->addError("name2", NAME_NO_EXIST); + } + // ¿La invitacion es a si mismo? + if($post['a_name'] == ($session->username)) { + $form->addError("name3", SAME_NAME); + } + // ¿Esta ya invitado a la alianza? + $UserData = $database->getUserArray($post['a_name'], 0); + if($database->getInvitation($UserData['id'])) { + $form->addError("name4", OLRADY_INVITED); + } + // ¿Esta ya en la alianza? + $UserData = $database->getUserArray($post['a_name'], 0); + if($UserData['alliance'] == $session->alliance) { + $form->addError("name5", OLRADY_IN_ALLY); + } + // ¿La invitación la envia un autorizado? + if($this->userPermArray['opt4'] == 0) { + $form->addError("perm", NO_PERMISSION); + } + if($form->returnErrors() != 0) { + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $post; + print_r($form->getErrors()); + } else { + // Obtenemos la informacion necesaria + $aid = $session->alliance; + // Insertamos invitacion + $database->sendInvitation($UserData['id'], $aid, $session->uid); + // Log the notice + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has invited ' . $UserData['username'] . ' into the alliance.'); + } + } + + /***************************************** + Function to reject an invitation + *****************************************/ + private function rejectInvite($get) { + global $database, $session; + foreach($this->inviteArray as $invite) { + if($invite['id'] == $get['d']) { + $database->removeInvitation($get['d']); + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has deleted an invitation.'); + } + } + //header("Location: build.php?id=".$get['id']); + } + + /***************************************** + Function to del an invitation + *****************************************/ + private function delInvite($get) { + global $database, $session; + $inviteArray = $database->getAliInvitations($session->alliance); + foreach($inviteArray as $invite) { + if($invite['id'] == $get['d']) { + $database->removeInvitation($get['d']); + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has deleted an invitation.'); + } + } + //header("Location: build.php?id=".$get['id']); + } + + /***************************************** + Function to accept an invitation + *****************************************/ + private function acceptInvite($get) { + global $database, $session; + foreach($this->inviteArray as $invite) { + if($invite['id'] == $get['d']) { + $database->removeInvitation($database->RemoveXSS($get['d'])); + $database->updateUserField($database->RemoveXSS($invite['uid']), "alliance", $database->RemoveXSS($invite['alliance']), 1); + $database->createAlliPermissions($database->RemoveXSS($invite['uid']), $database->RemoveXSS($invite['alliance']), '', '0', '0', '0', '0', '0', '0', '0', '0'); + // Log the notice + $database->insertAlliNotice($invite['alliance'], '' . $session->username . ' has joined the alliance.'); + } + } + header("Location: build.php?id=" . $get['id']); + } + + /***************************************** + Function to create an alliance + *****************************************/ + private function createAlliance($post) { + global $form, $database, $session, $bid18, $village; + if(!isset($post['ally1']) || $post['ally1'] == "") { + $form->addError("ally1", ATAG_EMPTY); + } + if(!isset($post['ally2']) || $post['ally2'] == "") { + $form->addError("ally2", ANAME_EMPTY); + } + if($database->aExist($post['ally1'], "tag")) { + $form->addError("ally1", ATAG_EXIST); + } + if($database->aExist($post['ally2'], "name")) { + $form->addError("ally2", ANAME_EXIST); + } + if($form->returnErrors() != 0) { + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $post; + + header("Location: build.php?id=" . $post['id']); + } else { + $max = $bid18[$village->resarray['f' . $post['id']]]['attri']; + $aid = $database->createAlliance($database->RemoveXSS($post['ally1']), $database->RemoveXSS($post['ally2']), $session->uid, $max); + $database->updateUserField($database->RemoveXSS($session->uid), "alliance", $database->RemoveXSS($aid), 1); + // Asign Permissions + $database->createAlliPermissions($database->RemoveXSS($session->uid), $database->RemoveXSS($aid), 'Alliance founder', '1', '1', '1', '1', '1', '1', '1', '1'); + // log the notice + $database->insertAlliNotice($session->alliance, 'The alliance has been founded by ' . $session->username . ''); + header("Location: build.php?id=" . $post['id']); + } + } + + /***************************************** + Function to change the alliance name + *****************************************/ + private function changeAliName($get) { + global $form, $database, $session; + + if(!isset($get['ally1']) || $get['ally1'] == "") { + $form->addError("ally1", ATAG_EMPTY); + } + if(!isset($get['ally2']) || $get['ally2'] == "") { + $form->addError("ally2", ANAME_EMPTY); + } + if($database->aExist($get['ally1'], "tag")) { + $form->addError("tag", ATAG_EXIST); + } + if($database->aExist($get['ally2'], "name")) { + $form->addError("name", ANAME_EXIST); + } + if($this->userPermArray['opt3'] == 0) { + $form->addError("perm", NO_PERMISSION); + } + if($form->returnErrors() != 0) { + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $post; + //header("Location: build.php?id=".$post['id']); + } else { + $database->setAlliName($database->RemoveXSS($session->alliance), $database->RemoveXSS($get['ally2']), $database->RemoveXSS($get['ally1'])); + // log the notice + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has changed the alliance name.'); + } + } + + /***************************************** + Function to create/change the alliance description + *****************************************/ + private function updateAlliProfile($post) { + global $database, $session, $form; + if($this->userPermArray['opt3'] == 0) { + $form->addError("perm", NO_PERMISSION); + } + if($form->returnErrors() != 0) { + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $post; + //header("Location: build.php?id=".$post['id']); + } else { + $database->submitAlliProfile($database->RemoveXSS($session->alliance), $database->RemoveXSS($post['be2']), $database->RemoveXSS($post['be1'])); + // log the notice + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has changed the alliance description'); + } + } + + /***************************************** + Function to change the user permissions + *****************************************/ + private function changeUserPermissions($post) { + global $database, $session, $form; + if($this->userPermArray['opt1'] == 0) { + $form->addError("perm", NO_PERMISSION); + } + if($form->returnErrors() != 0) { + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $post; + //header("Location: build.php?id=".$post['id']); + } else { + $database->updateAlliPermissions($post['a_user'], $session->alliance, $post['a_titel'], $post['e1'], $post['e2'], $post['e3'], $post['e4'], $post['e5'], $post['e6'], $post['e7']); + // log the notice + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has changed permissions.'); + } + + } + /***************************************** + Function to kick a user from alliance + *****************************************/ + private function kickAlliUser($post) { + global $database, $session, $form; + + if($this->userPermArray['opt2'] == 0) { + $form->addError("perm", NO_PERMISSION); + } + if($form->returnErrors() != 0) { + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $post; + //header("Location: build.php?id=".$post['id']); + } else { + $database->updateUserField($post['a_user'], 'alliance', 0, 1); + $database->deleteAlliPermissions($post['a_user']); + $database->deleteAlliance($session->alliance); + // log the notice + $database->insertAlliNotice($session->alliance, '' . $session->username . ' kicked ' . $UserData['username'] . '.'); + //header("Location: build.php?id=".$post['id']); + } + } + /***************************************** + Function to quit from alliance + *****************************************/ + private function quitally($post) { + global $database, $session, $form; + if(!isset($post['pw']) || $post['pw'] == "") { + $form->addError("pw1", PW_EMPTY); + } elseif(md5($post['pw']) !== $session->userinfo['password']) { + $form->addError("pw2", PW_ERR); + } else { + $database->updateUserField($session->uid, 'alliance', 0, 1); + $database->deleteAlliPermissions($session->uid); + // log the notice + $database->deleteAlliance($session->alliance); + $database->insertAlliNotice($session->alliance, '' . $session->username . ' has quit the alliance'); + header("Location: dorf1.php"); + } + } + + private function changediplomacy($post) { + global $database, $session, $form; + + $aName = $database->RemoveXSS($_POST['a_name']); + $aType = (int)intval($_POST['dipl']); + if($database->aExist($aName, "tag")) { + if($database->getAllianceID($aName) != $session->alliance) { + if($aType >= 1 and $aType <= 3) { + if(!$database->diplomacyInviteCheck($database->getAllianceID($aName), $session->alliance)) { + $database->diplomacyInviteAdd($session->alliance, $database->getAllianceID($aName), $aType); + $form->addError("name", "Invite sended"); + } else { + $form->addError("name", "You have already sended them a invite"); + } + + } else { + $form->addError("name", "wrong choice made"); + } + } else { + $form->addError("name", "You can not invite your own alliance"); + } + } else { + $form->addError("name", "Alliance does not exist"); + } + } + } + + $alliance = new Alliance; + +?> diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php new file mode 100644 index 00000000..eb0f1da3 --- /dev/null +++ b/GameEngine/Automation.php @@ -0,0 +1,2617 @@ +getResourceLevel($vid); + $popTot = 0; + + for ($i = 1; $i <= 40; $i++) { + $lvl = $fdata["f".$i]; + $building = $fdata["f".$i."t"]; + if($building){ + $popTot += $this->buildingPOP($building,$lvl); + } + } + + $q = "UPDATE ".TB_PREFIX."vdata set pop = $popTot where wref = $vid"; + mysql_query($q); + + return $popTot; + + } + + function buildingPOP($f,$lvl){ + $name = "bid".$f; + global $$name; + $popT = 0; + $dataarray = $$name; + + for ($i = 0; $i <= $lvl; $i++) { + $popT += $dataarray[$i]['pop']; + } + return $popT; + } + + public function Automation() { + + $this->ClearUser(); + $this->ClearInactive(); + $this->pruneResource(); + if(!file_exists("GameEngine/Prevention/culturepoints.txt") or time()-filemtime("GameEngine/Prevention/culturepoints.txt")>10) { + $this->culturePoints(); + } + if(!file_exists("GameEngine/Prevention/updatehero.txt") or time()-filemtime("GameEngine/Prevention/updatehero.txt")>50) { + $this->updateHero(); + } + if(!file_exists("GameEngine/Prevention/research.txt") or time()-filemtime("GameEngine/Prevention/research.txt")>10) { + $this->researchComplete(); + } + if(!file_exists("GameEngine/Prevention/cleardeleting.txt") or time()-filemtime("GameEngine/Prevention/cleardeleting.txt")>10) { + $this->clearDeleting(); + } + if(!file_exists("GameEngine/Prevention/build.txt") or time()-filemtime("GameEngine/Prevention/build.txt")>10) { + $this->buildComplete(); + } + if(!file_exists("GameEngine/Prevention/market.txt") or time()-filemtime("GameEngine/Prevention/market.txt")>10) { + $this->marketComplete(); + } + if(!file_exists("GameEngine/Prevention/training.txt") or time()-filemtime("GameEngine/Prevention/training.txt")>10) { + $this->trainingComplete(); + } + if(!file_exists("GameEngine/Prevention/sendunits.txt") or time()-filemtime("GameEngine/Prevention/sendunits.txt")>10) { + $this->sendunitsComplete(); + } + if(!file_exists("GameEngine/Prevention/loyalty.txt") or time()-filemtime("GameEngine/Prevention/loyalty.txt")>50) { + $this->loyaltyRegeneration(); + } + if(!file_exists("GameEngine/Prevention/sendreinfunits.txt") or time()-filemtime("GameEngine/Prevention/sendreinfunits.txt")>10) { + $this->sendreinfunitsComplete(); + } + if(!file_exists("GameEngine/Prevention/returnunits.txt") or time()-filemtime("GameEngine/Prevention/returnunits.txt")>51) { + $this->returnunitsComplete(); + } + 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(); + } + if(!file_exists("GameEngine/Prevention/demolition.txt") or time()-filemtime("GameEngine/Prevention/demolition.txt")>10) { + $this->demolitionComplete(); + } + } + +private function loyaltyRegeneration() { + global $database; + $array = array(); + $q = "SELECT * FROM ".TB_PREFIX."vdata WHERE loyalty<>100"; + $array = $database->query_return($q); + if(!empty($array)) { + foreach($array as $loyalty) { + if($this->getTypeLevel(25,$loyalty['wref']) >= 1){ + $value = $this->getTypeLevel(25,$loyalty['wref']); + }elseif($this->getTypeLevel(26,$loyalty['wref']) >= 1){ + $value = $this->getTypeLevel(26,$loyalty['wref']); + } else { + $value = 0; + } + $newloyalty = min(100,$loyalty['loyalty']+$value*(time()-$loyalty['lastupdate'])*SPEED/(60*60)); + $q = "UPDATE ".TB_PREFIX."vdata SET loyalty = $newloyalty WHERE wref = '".$loyalty['wref']."'"; + $database->query($q); + } + } + $array = array(); + $q = "SELECT * FROM ".TB_PREFIX."odata WHERE loyalty<>100"; + $array = $database->query_return($q); + if(!empty($array)) { + foreach($array as $loyalty) { + if($this->getTypeLevel(25,$loyalty['conqured']) >= 1){ + $value = $this->getTypeLevel(25,$loyalty['conqured']); + }elseif($this->getTypeLevel(26,$loyalty['conqured']) >= 1){ + $value = $this->getTypeLevel(26,$loyalty['conqured']); + } else { + $value = 0; + } + $newloyalty = min(100,$loyalty['loyalty']+$value*(time()-$loyalty['lastupdate'])*SPEED/(60*60)); + $q = "UPDATE ".TB_PREFIX."odata SET loyalty = $newloyalty WHERE wref = '".$loyalty['wref']."'"; + $database->query($q); + } + } + if(file_exists("GameEngine/Prevention/loyalty.txt")) { + @unlink("GameEngine/Prevention/loyalty.txt"); + } + } + + private function getfieldDistance($coorx1, $coory1, $coorx2, $coory2) { + $max = 2 * WORLD_MAX + 1; + $x1 = intval($coorx1); + $y1 = intval($coory1); + $x2 = intval($coorx2); + $y2 = intval($coory2); + $distanceX = min(abs($x2 - $x1), abs($max - abs($x2 - $x1))); + $distanceY = min(abs($y2 - $y1), abs($max - abs($y2 - $y1))); + $dist = sqrt(pow($distanceX, 2) + pow($distanceY, 2)); + return round($dist, 1); + } + + public function getTypeLevel($tid,$vid) { + global $village,$database; + $keyholder = array(); + + $resourcearray = $database->getResourceLevel($vid); + + foreach(array_keys($resourcearray,$tid) as $key) { + if(strpos($key,'t')) { + $key = preg_replace("/[^0-9]/", '', $key); + array_push($keyholder, $key); + } + } + $element = count($keyholder); + if($element >= 2) { + if($tid <= 4) { + $temparray = array(); + for($i=0;$i<=$element-1;$i++) { + array_push($temparray,$resourcearray['f'.$keyholder[$i]]); + } + foreach ($temparray as $key => $val) { + if ($val == max($temparray)) + $target = $key; + } + } + else { + $target = 0; + for($i=1;$i<=$element-1;$i++) { + if($resourcearray['f'.$keyholder[$i]] > $resourcearray['f'.$keyholder[$target]]) { + $target = $i; + } + } + } + } + else if($element == 1) { + $target = 0; + } + else { + return 0; + } + if($keyholder[$target] != "") { + return $resourcearray['f'.$keyholder[$target]]; + } + else { + return 0; + } + } + + private function clearDeleting() { + global $database; + $ourFileHandle = @fopen("GameEngine/Prevention/cleardeleting.txt", 'w'); + @fclose($ourFileHandle); + $needDelete = $database->getNeedDelete(); + if(count($needDelete) > 0) { + foreach($needDelete as $need) { + $needVillage = $database->getVillagesID($need['uid']); //wref + foreach($needVillage as $village) { + $q = "DELETE FROM ".TB_PREFIX."abdata where wref = ".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."bdata where wid = ".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."enforcement where vref = ".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."fdata where vref = ".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."market where vref = ".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."movement where to = ".$village['wref']." or from = ".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."odata where wref = ".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."research where vref = ".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."tdata where vref = ".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."training where vref =".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."units where vref =".$village['wref']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."vdata where wref = ".$village['wref']; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$village['wref']; + $database->query($q); + } + $q = "DELETE FROM ".TB_PREFIX."mdata where target = ".$need['uid']." or owner = ".$need['uid']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."ndata where uid = ".$need['uid']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."users where id = ".$need['uid']; + $database->query($q); + } + } + if(file_exists("GameEngine/Prevention/cleardeleting.txt")) { + @unlink("GameEngine/Prevention/cleardeleting.txt"); + } + } + + private function ClearUser() { + global $database; + if(AUTO_DEL_INACTIVE) { + $time = time()+UN_ACT_TIME; + $q = "DELETE from ".TB_PREFIX."users where timestamp >= $time and act != ''"; + $database->query($q); + } + } + + private function ClearInactive() { + global $database; + if(TRACK_USR) { + $timeout = time()-USER_TIMEOUT*60; + $q = "DELETE FROM ".TB_PREFIX."active WHERE timestamp < $timeout"; + $database->query($q); + } + } + private function pruneOResource() { + global $database; + if(!ALLOW_BURST) { + $q = "UPDATE ".TB_PREFIX."odata set `wood` = `maxstore` WHERE `wood` > `maxstore`"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."odata set `clay` = `maxstore` WHERE `clay` > `maxstore`"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."odata set `iron` = `maxstore` WHERE `iron` > `maxstore`"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."odata set `crop` = `maxcrop` WHERE `crop` > `maxcrop`"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."odata set `crop` = 100 WHERE `crop` < 0"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."odata set `wood` = 0 WHERE `wood` < 0"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."odata set `clay` = 0 WHERE `clay` < 0"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."odata set `iron` = 0 WHERE `iron` < 0"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."odata set `maxstore` = 800 WHERE `maxstore` <= 800"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."odata set `maxcrop` = 800 WHERE `maxcrop` <= 800"; + $database->query($q); + } + } + private function pruneResource() { + global $database; + if(!ALLOW_BURST) { + $q = "UPDATE ".TB_PREFIX."vdata set `wood` = `maxstore` WHERE `wood` > `maxstore`"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata set `clay` = `maxstore` WHERE `clay` > `maxstore`"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata set `iron` = `maxstore` WHERE `iron` > `maxstore`"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata set `crop` = `maxcrop` WHERE `crop` > `maxcrop`"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata set `crop` = 100 WHERE `crop` < 0"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata set `wood` = 0 WHERE `wood` < 0"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata set `clay` = 0 WHERE `clay` < 0"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata set `iron` = 0 WHERE `iron` < 0"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata set `maxstore` = 800 WHERE `maxstore` <= 800"; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata set `maxcrop` = 800 WHERE `maxcrop` <= 800"; + $database->query($q); + } + } + + + + + private function culturePoints() { + global $database,$session; + $time = time()-600; + $array = array(); + $q = "SELECT id, lastupdate FROM ".TB_PREFIX."users WHERE lastupdate < $time"; + $array = $database->query_return($q); + + foreach($array as $indi) { + if($indi['lastupdate'] <= $time){ + $cp = $database->getVSumField($indi['id'], 'cp') * (time()-$indi['lastupdate'])/86400; + + $newupdate = time(); + $q = "UPDATE ".TB_PREFIX."users set cp = cp + $cp, lastupdate = $newupdate where id = '".$indi['id']."'"; + $database->query($q); + } + } + if(file_exists("GameEngine/Prevention/culturepoints.txt")) { + @unlink("GameEngine/Prevention/culturepoints.txt"); + } +} + + # private function culturePoints() { + # global $database; + # $ourFileHandle = @fopen("GameEngine/Prevention/culturepoints.txt", 'w'); + # @fclose($ourFileHandle); + # $time = time()-84600; + # $array = array(); + # $q = "SELECT id, lastupdate FROM ".TB_PREFIX."users where lastupdate < $time"; + # $array = $database->query_return($q); +# + # foreach($array as $indi) { + # if($indi['lastupdate'] < $time){ + # $cp = $database->getVSumField($indi['id'], 'cp'); + # $newupdate = time(); + # $q = "UPDATE ".TB_PREFIX."users set cp = cp + 2000, lastupdate = $newupdate where id = '".$indi['id']."'"; + # $database->query($q); + #} + #} + #if(file_exists("GameEngine/Prevention/culturepoints.txt")) { + # @unlink("GameEngine/Prevention/culturepoints.txt"); + #} + #} + + private function buildComplete() { + global $database,$bid18,$bid10,$bid11,$bid38,$bid39; + $time = time(); + $array = array(); + $q = "SELECT * FROM ".TB_PREFIX."bdata where timestamp < $time"; + $array = $database->query_return($q); + foreach($array as $indi) { + $q = "UPDATE ".TB_PREFIX."fdata set f".$indi['field']." = f".$indi['field']." + 1, f".$indi['field']."t = ".$indi['type']." where vref = ".$indi['wid']; + if($database->query($q)) { + $level = $database->getFieldLevel($indi['wid'],$indi['field']); + $pop = $this->getPop($indi['type'],($level-1)); + $database->modifyPop($indi['wid'],$pop[0],0); + $database->addCP($indi['wid'],$pop[1]); + if($indi['type'] == 18) { + $owner = $database->getVillageField($indi['wid'],"owner"); + $max = $bid18[$level]['attri']; + $q = "UPDATE ".TB_PREFIX."alidata set max = $max where leader = $owner"; + $database->query($q); + } + + if($indi['type'] == 10) { + $max=$database->getVillageField($indi['wid'],"maxstore"); + if($level=='1' && $max==STORAGE_BASE){ $max=STORAGE_BASE; } + $max-=$bid10[$level-1]['attri']*STORAGE_MULTIPLIER; + $max+=$bid10[$level]['attri']*STORAGE_MULTIPLIER; + $database->setVillageField($indi['wid'],"maxstore",$max); + } + + if($indi['type'] == 11) { + $max=$database->getVillageField($indi['wid'],"maxcrop"); + if($level=='1' && $max==STORAGE_BASE){ $max=STORAGE_BASE; } + $max-=$bid11[$level-1]['attri']*STORAGE_MULTIPLIER; + $max+=$bid11[$level]['attri']*STORAGE_MULTIPLIER; + $database->setVillageField($indi['wid'],"maxcrop",$max); + } + if($indi['type'] == 38) { + $max=$database->getVillageField($indi['wid'],"maxstore"); + if($level=='1' && $max==STORAGE_BASE){ $max=STORAGE_BASE; } + $max-=$bid38[$level-1]['attri']*STORAGE_MULTIPLIER; + $max+=$bid38[$level]['attri']*STORAGE_MULTIPLIER; + $database->setVillageField($indi['wid'],"maxstore",$max); + } + + if($indi['type'] == 39) { + $max=$database->getVillageField($indi['wid'],"maxcrop"); + if($level=='1' && $max==STORAGE_BASE){ $max=STORAGE_BASE; } + $max-=$bid39[$level-1]['attri']*STORAGE_MULTIPLIER; + $max+=$bid39[$level]['attri']*STORAGE_MULTIPLIER; + $database->setVillageField($indi['wid'],"maxcrop",$max); + } + + $q4 = "UPDATE ".TB_PREFIX."bdata set loopcon = 0 where loopcon = 1 and wid = ".$indi['wid']; + $database->query($q4); + $q = "DELETE FROM ".TB_PREFIX."bdata where id = ".$indi['id']; + $database->query($q); + } + } + if(file_exists("GameEngine/Prevention/build.txt")) { + @unlink("GameEngine/Prevention/build.txt"); + } + } + + + private function getPop($tid,$level) { + $name = "bid".$tid; + global $$name,$village; + $dataarray = $$name; + $pop = $dataarray[($level+1)]['pop']; + $cp = $dataarray[($level+1)]['cp']; + return array($pop,$cp); + } + + private function marketComplete() { + global $database,$generator; + $ourFileHandle = @fopen("GameEngine/Prevention/market.txt", 'w'); + @fclose($ourFileHandle); + $time = time(); + $q = "SELECT * FROM ".TB_PREFIX."movement, ".TB_PREFIX."send where ".TB_PREFIX."movement.ref = ".TB_PREFIX."send.id and ".TB_PREFIX."movement.proc = 0 and sort_type = 0 and endtime < $time"; + $dataarray = $database->query_return($q); + foreach($dataarray as $data) { + + if($data['wood'] >= $data['clay'] && $data['wood'] >= $data['iron'] && $data['wood'] >= $data['crop']){ $sort_type = "10"; } + elseif($data['clay'] >= $data['wood'] && $data['clay'] >= $data['iron'] && $data['clay'] >= $data['crop']){ $sort_type = "11"; } + elseif($data['iron'] >= $data['wood'] && $data['iron'] >= $data['clay'] && $data['iron'] >= $data['crop']){ $sort_type = "12"; } + elseif($data['crop'] >= $data['wood'] && $data['crop'] >= $data['clay'] && $data['crop'] >= $data['iron']){ $sort_type = "13"; } + + $to = $database->getMInfo($data['to']); + $from = $database->getMInfo($data['from']); + $database->addNotice($to['owner'],$to['wref'],$tragetally,$sort_type,''.addslashes($from['name']).' send resources to '.addslashes($to['name']).'',''.$from['owner'].','.$from['wref'].','.$data['wood'].','.$data['clay'].','.$data['iron'].','.$data['crop'].'',$data['endtime']); + if($from['owner'] != $to['owner']) { + $database->addNotice($from['owner'],$to['wref'],$ownally,$sort_type,''.addslashes($from['name']).' send resources to '.addslashes($to['name']).'',''.$from['owner'].','.$from['wref'].','.$data['wood'].','.$data['clay'].','.$data['iron'].','.$data['crop'].'',$data['endtime']); + } + $database->modifyResource($data['to'],$data['wood'],$data['clay'],$data['iron'],$data['crop'],1); + $tocoor = $database->getCoor($data['from']); + $fromcoor = $database->getCoor($data['to']); + $targettribe = $database->getUserField($database->getVillageField($data['from'],"owner"),"tribe",0); + $endtime = $this->procDistanceTime($tocoor,$fromcoor,$targettribe,0) + $data['endtime']; + $database->addMovement(2,$data['to'],$data['from'],$data['merchant'],$endtime); + $database->setMovementProc($data['moveid']); + } + $q = "UPDATE ".TB_PREFIX."movement set proc = 1 where endtime < $time and sort_type = 2"; + $database->query($q); + if(file_exists("GameEngine/Prevention/market.txt")) { + @unlink("GameEngine/Prevention/market.txt"); + } + } + + private function sendunitsComplete() { + global $bid23,$database,$battle,$village,$technology,$logging; + $ourFileHandle = @fopen("GameEngine/Prevention/sendunits.txt", 'w'); + @fclose($ourFileHandle); + $time = time(); + $q = "SELECT * FROM ".TB_PREFIX."movement, ".TB_PREFIX."attacks where ".TB_PREFIX."movement.ref = ".TB_PREFIX."attacks.id and ".TB_PREFIX."movement.proc = '0' and ".TB_PREFIX."movement.sort_type = '3' and ".TB_PREFIX."attacks.attack_type != '2' and endtime < $time ORDER BY endtime ASC"; + $dataarray = $database->query_return($q); + + foreach($dataarray as $data) { + //set base things + //$battle->resolveConflict($data); + $tocoor = $database->getCoor($data['from']); + $fromcoor = $database->getCoor($data['to']); + $isoasis = $database->isVillageOases($data['to']); + $AttackArrivalTime = $data['endtime']; + if ($isoasis == 0){ + $Attacker['id'] = $database->getUserField($database->getVillageField($data['from'],"owner"),"id",0); + $Defender['id'] = $database->getUserField($database->getVillageField($data['to'],"owner"),"id",0); + + $owntribe = $database->getUserField($database->getVillageField($data['from'],"owner"),"tribe",0); + $targettribe = $database->getUserField($database->getVillageField($data['to'],"owner"),"tribe",0); + $ownally = $database->getUserField($database->getVillageField($data['from'],"owner"),"alliance",0); + $targetally = $database->getUserField($database->getVillageField($data['to'],"owner"),"alliance",0); + $to = $database->getMInfo($data['to']); + $from = $database->getMInfo($data['from']); + $toF = $database->getVillage($data['to']); + $fromF = $database->getVillage($data['from']); + + + /*-------------------------------- + // Battle part + --------------------------------*/ + + //get defence units + /* $q = "SELECT * FROM ".TB_PREFIX."units WHERE vref='".$data['to']."'"; + $unitlist = $database->query_return($q); + + $Defender = array(); + $start = ($targettribe == 1)? 1 : (($targettribe == 2)? 11: 21); + $end = ($targettribe == 1)? 10 : (($targettribe == 2)? 20: 30); + for($i=$start;$i<=$end;$i++) { + if($unitlist) + $Defender['u'.$i] = $unitlist[0]['u'.$i]; + else + $Defender['u'.$i] = ''; + }*/ + //get defence units + $Defender = array(); $rom = $ger = $gal = $nat = $natar = 0; + $Defender = $database->getUnit($data['to']); + $enforcementarray = $database->getEnforceVillage($data['to'],0); + if(count($enforcementarray) > 0) { + foreach($enforcementarray as $enforce) { + for($i=1;$i<=50;$i++) { + $Defender['u'.$i] += $enforce['u'.$i]; + } + } + } + for($i=1;$i<=50;$i++){ + if(!isset($Defender['u'.$i])){ + $Defender['u'.$i] = '0'; + } else { + if($Defender['u'.$i]=='' or $Defender['u'.$i]<='0'){ + $Defender['u'.$i] = '0'; + } else { + if($i<=10){ $rom='1'; } + else if($i<=20){ $ger='1'; } + else if($i<=30){ $gal='1'; } + else if($i<=40){ $nat='1'; } + else if($i<=50){ $natar='1'; } + } + } + } + //get attack units + $Attacker = array(); + $start = ($owntribe-1)*10+1; + $end = ($owntribe*10); + $u = (($owntribe-1)*10); + $catp = 0; + $catapult = array(8,18,28,38,48); + $ram = array(7,17,27,37,47); + $chief = array(9,19,29,39,49); + $spys = array(4,14,23,34,44); + for($i=$start;$i<=$end;$i++) { + $y = $i-$u; + $Attacker['u'.$i] = $dataarray[0]['t'.$y]; + //there are catas + if(in_array($i,$catapult)) { + $catp += $Attacker['u'.$i]; + $catp_pic = $i; + } + if(in_array($i,$ram)) { + $rams += $Attacker['u'.$i]; + $ram_pic = $i; + } + if(in_array($i,$chief)) { + $chiefs += $Attacker['u'.$i]; + $chief_pic = $i; + } + if(in_array($i,$spys)) { + $chiefs += $Attacker['u'.$i]; + $spy_pic = $i; + } + } + $Attacker['uhero'] = $dataarray[0]['t11']; + $hero_pic = "hero"; + //need to set these variables. + $def_wall = $database->getFieldLevel($data['to'],40); + $att_tribe = $owntribe; + $def_tribe = $targettribe; + $residence = "0"; + $attpop = $fromF['pop']; + $defpop = $toF['pop']; + for ($i=19; $i<40; $i++){ + if ($database->getFieldLevel($data['to'],"".$i."t")=='25' OR $database->getFieldLevel($data['to'],"".$i."t")=='26'){ + $residence = $database->getFieldLevel($data['to'],$i); + $i=40; + } + } + + //type of attack + if($dataarray[0]['attack_type'] == 1){ + $type = 1; + $scout = 1; + } + if($dataarray[0]['attack_type'] == 2){ + $type = 2; + } + if($dataarray[0]['attack_type'] == 3){ + $type = 3; + } + if($dataarray[0]['attack_type'] == 4){ + $type = 4; + } + + $def_ab = Array ( + "b1" => 0, // Blacksmith level + "b2" => 0, // Blacksmith level + "b3" => 0, // Blacksmith level + "b4" => 0, // Blacksmith level + "b5" => 0, // Blacksmith level + "b6" => 0, // Blacksmith level + "b7" => 0, // Blacksmith level + "b8" => 0); // Blacksmith level + + $att_ab = Array ( + "a1" => 0, // armoury level + "a2" => 0, // armoury level + "a3" => 0, // armoury level + "a4" => 0, // armoury level + "a5" => 0, // armoury level + "a6" => 0, // armoury level + "a7" => 0, // armoury level + "a8" => 0); // armoury level + + //rams attack + if($rams > 0 and $type=='3'){ + $basearraywall = $database->getMInfo($data['to']); + if($database->getFieldLevel($basearraywall['wref'],40)>'0'){ + for ($w=1; $w<2; $w++){ + if ($database->getFieldLevel($basearraywall['wref'],40)!='0'){ + + $walllevel = $database->getFieldLevel($basearraywall['wref'],40); + $wallgid = $database->getFieldLevel($basearraywall['wref'],"40t"); + $wallid = 40; + $w='4'; + } else {$w = $w--; } + } + }else{ + $empty = 1; + } + } + + + //choose a building to attack + /* if($catp > 0 and $type=='3'){ + if($toF['pop']>'1'){ + for ($i=1; $i<2; $i++){ + //$rand=rand(1,39); + $basearray = $database->getMInfo($data['to']); + $resarray = $database->getResourceLevel($basearray['wref']); + if($data['ctar1'] == 0){ + $rand = 0; + for($j=19;$j<=40;$j++) { + if($resarray['f'.$j.'t'] != 0 ) { + $rand = $j; + } + } + }else{ + //$resarray = $database->getResourceLevel($data['to']); + $rand = 0; + for($j=19;$j<=40;$j++) { + if($resarray['f'.$j.'t'] == $data['ctar1']) { + + $rand = $j; + } + } + } + if ($rand == 0){ + for($j=19;$j<=40;$j++) { + if($resarray['f'.$j.'t'] != 0 ) { + $rand = $j; + } + } + } + //$rand=$data['ctar1']; + if ($database->getFieldLevel($basearray['wref'],$rand)!='0'){ + $tblevel = $database->getFieldLevel($basearray['wref'],$rand); + $tbgid = $database->getFieldLevel($basearray['wref'],"".$rand."t"); + $tbid = $rand; + $i="4"; + } else { $i--; } + } + } else { $empty='1'; } + } else { $tblevel = '0'; } + $stonemason = "1"; */ + + $tblevel = '1'; + $stonemason = "1"; + + + /*-------------------------------- + // End Battle part + --------------------------------*/ + }else{ + $Attacker['id'] = $database->getUserField($database->getVillageField($data['from'],"owner"),"id",0); + $Defender['id'] = 3; + + $owntribe = $database->getUserField($database->getVillageField($data['from'],"owner"),"tribe",0); + $targettribe = 4; + $ownally = $database->getUserField($database->getVillageField($data['from'],"owner"),"alliance",0); + $targetally = 0; + $to = $database->getOMInfo($data['to']); + $from = $database->getMInfo($data['from']); + $toF = $database->getOasisV($data['to']); + $fromF = $database->getVillage($data['from']); + + + //get defence units + $Defender = array(); $rom = $ger = $gal = $nat = $natar = 0; + $Defender = $database->getUnit($data['to']); + $enforcementarray = $database->getEnforceVillage($data['to'],0); + if(count($enforcementarray) > 0) { + foreach($enforcementarray as $enforce) { + for($i=1;$i<=50;$i++) { + $Defender['u'.$i] += $enforce['u'.$i]; + } + } + } + for($i=1;$i<=50;$i++){ + if(!isset($Defender['u'.$i])){ + $Defender['u'.$i] = '0'; + } else { + if($Defender['u'.$i]=='' or $Defender['u'.$i]<='0'){ + $Defender['u'.$i] = '0'; + } else { + if($i<=10){ $rom='1'; } + else if($i<=20){ $ger='1'; } + else if($i<=30){ $gal='1'; } + else if($i<=40){ $nat='1'; } + else if($i<=50){ $natar='1'; } + } + } + } + //get attack units + $Attacker = array(); + $start = ($owntribe-1)*10+1; + $end = ($owntribe*10); + $u = (($owntribe-1)*10); + $catp = 0; + $catapult = array(8,18,28,38,48); + $ram = array(7,17,27,37,47); + $chief = array(9,19,29,39,49); + $spys = array(4,14,23,34,44); + for($i=$start;$i<=$end;$i++) { + $y = $i-$u; + $Attacker['u'.$i] = $dataarray[0]['t'.$y]; + //there are catas + if(in_array($i,$catapult)) { + $catp += $Attacker['u'.$i]; + $catp_pic = $i; + } + if(in_array($i,$ram)) { + $rams += $Attacker['u'.$i]; + $ram_pic = $i; + } + if(in_array($i,$chief)) { + $chiefs += $Attacker['u'.$i]; + $chief_pic = $i; + } + if(in_array($i,$spys)) { + $chiefs += $Attacker['u'.$i]; + $spy_pic = $i; + } + } + $Attacker['uhero'] = $dataarray[0]['t11']; + $hero_pic = "hero"; + //need to set these variables. + $def_wall = 1; + $att_tribe = $owntribe; + $def_tribe = $targettribe; + $residence = "0"; + $attpop = $fromF['pop']; + $defpop = 100; + + + //type of attack + if($dataarray[0]['attack_type'] == 1){ + $type = 1; + $scout = 1; + } + if($dataarray[0]['attack_type'] == 2){ + $type = 2; + } + if($dataarray[0]['attack_type'] == 3){ + $type = 3; + } + if($dataarray[0]['attack_type'] == 4){ + $type = 4; + } + + $def_ab = Array ( + "b1" => 0, // Blacksmith level + "b2" => 0, // Blacksmith level + "b3" => 0, // Blacksmith level + "b4" => 0, // Blacksmith level + "b5" => 0, // Blacksmith level + "b6" => 0, // Blacksmith level + "b7" => 0, // Blacksmith level + "b8" => 0); // Blacksmith level + + $att_ab = Array ( + "a1" => 0, // armoury level + "a2" => 0, // armoury level + "a3" => 0, // armoury level + "a4" => 0, // armoury level + "a5" => 0, // armoury level + "a6" => 0, // armoury level + "a7" => 0, // armoury level + "a8" => 0); // armoury level + + $empty='1'; + $tblevel = '0'; + $stonemason = "1"; + + } + $battlepart = $battle->calculateBattle($Attacker,$Defender,$def_wall,$att_tribe,$def_tribe,$residence,$attpop,$defpop,$type,$def_ab,$att_ab,$tblevel,$stonemason,$walllevel); + $ownally = $database->getUserField($database->getVillageField($data['from'],"owner"),"alliance",0); + //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'].''; + + //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'].''; + $unitssend_def[3] = ''.$Defender['u21'].','.$Defender['u22'].','.$Defender['u23'].','.$Defender['u24'].','.$Defender['u25'].','.$Defender['u26'].','.$Defender['u27'].','.$Defender['u28'].','.$Defender['u29'].','.$Defender['u30'].''; + $unitssend_def[4] = ''.$Defender['u31'].','.$Defender['u32'].','.$Defender['u33'].','.$Defender['u34'].','.$Defender['u35'].','.$Defender['u56'].','.$Defender['u37'].','.$Defender['u38'].','.$Defender['u39'].','.$Defender['u40'].''; + $unitssend_def[5] = ''.$Defender['u41'].','.$Defender['u42'].','.$Defender['u43'].','.$Defender['u44'].','.$Defender['u45'].','.$Defender['u46'].','.$Defender['u47'].','.$Defender['u48'].','.$Defender['u49'].','.$Defender['u50'].''; + $unitssend_deff[1] = '?,?,?,?,?,?,?,?,?,?,'; + $unitssend_deff[2] = '?,?,?,?,?,?,?,?,?,?,'; + $unitssend_deff[3] = '?,?,?,?,?,?,?,?,?,?,'; + $unitssend_deff[4] = '?,?,?,?,?,?,?,?,?,?,'; + $unitssend_deff[5] = '?,?,?,?,?,?,?,?,?,?,'; + //how many troops died? for battleraport +for($i=1;$i<=10;$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]; } +} + + + //kill own defence + $q = "SELECT * FROM ".TB_PREFIX."units WHERE vref='".$data['to']."'"; + $unitlist = $database->query_return($q); + $start = ($targettribe-1)*10+1; + $end = ($targettribe*10); + + if($targettribe == 1){ $u = ""; $rom='1'; } else if($targettribe == 2){ $u = "1"; $ger='1'; } else if($targettribe == 3){$u = "2"; $gal='1'; }else if($targettribe == 4){ $u = "3"; $nat='1'; } else { $u = "4"; $natar='1'; } //FIX + for($i=$start;$i<=$end;$i++) { if($i==$end){ $u=$targettribe; } + if($unitlist){ + $dead[$i]+=round($battlepart[2]*$unitlist[0]['u'.$i]); + $database->modifyUnit($data['to'],array($i),array(round($battlepart[2]*$unitlist[0]['u'.$i])),array(0)); + if($dead[$i] > $Defender[$i]){ + $dead[$i] = $Defender[$i]; + } + } + } + //kill other defence in village + if(count($database->getEnforceVillage($data['to'],0)) > 0) { + foreach($database->getEnforceVillage($data['to'],0) as $enforce) { + $life=''; $notlife=''; $wrong='0'; + $tribe = $database->getUserField($database->getVillageField($enforce['from'],"owner"),"tribe",0); + $start = ($tribe-1)*10+1; + + if($tribe == 1){ $rom='1'; } else if($tribe == 2){ $ger='1'; }else if($tribe == 3){ $gal='1'; }else if($tribe == 4){ $nat='1'; } else { $natar='1'; } + for($i=$start;$i<=($start+9);$i++) { + if($enforce['u'.$i]>'0'){ + $database->modifyEnforce($enforce['id'],$i,round($battlepart[2]*$enforce['u'.$i]),0); + $dead[$i]+=round($battlepart[2]*$enforce['u'.$i]); + if($dead[$i]!=$enforce['u'.$i]){ + $wrong='1'; + } + } else { + $dead[$i]='0'; + } + $notlife="".$notlife.",".$dead[$i].""; + $life="".$life.",".$enforce['u'.$i.''].""; + } + //NEED TO SEND A RAPPORTAGE!!! + $data2 = ''.$database->getVillageField($enforce['from'],"owner").','.$to['wref'].','.addslashes($to['name']).','.$tribe.''.$life.''.$notlife.''; + $database->addNotice($database->getVillageField($enforce['from'],"owner"),$from['wref'],$ownally,15,'Reinforcement in '.addslashes($to['name']).' was attacked',$data2,$AttackArrivalTime); + //delete reinf sting when its killed all. + if($wrong=='0'){ $database->deleteReinf($enforce['id']); } + } + } + $unitsdead_def[1] = ''.$dead['1'].','.$dead['2'].','.$dead['3'].','.$dead['4'].','.$dead['5'].','.$dead['6'].','.$dead['7'].','.$dead['8'].','.$dead['9'].','.$dead['10'].''; + $unitsdead_def[2] = ''.$dead['11'].','.$dead['12'].','.$dead['13'].','.$dead['14'].','.$dead['15'].','.$dead['16'].','.$dead['17'].','.$dead['18'].','.$dead['19'].','.$dead['20'].''; + $unitsdead_def[3] = ''.$dead['21'].','.$dead['22'].','.$dead['23'].','.$dead['24'].','.$dead['25'].','.$dead['26'].','.$dead['27'].','.$dead['28'].','.$dead['29'].','.$dead['30'].''; + $unitsdead_def[4] = ''.$dead['31'].','.$dead['32'].','.$dead['33'].','.$dead['34'].','.$dead['35'].','.$dead['36'].','.$dead['37'].','.$dead['38'].','.$dead['39'].','.$dead['40'].''; + $unitsdead_def[5] = ''.$dead['41'].','.$dead['42'].','.$dead['43'].','.$dead['44'].','.$dead['45'].','.$dead['46'].','.$dead['47'].','.$dead['48'].','.$dead['49'].','.$dead['50'].''; + $unitsdead_deff[1] = '?,?,?,?,?,?,?,?,?,?,'; + $unitsdead_deff[2] = '?,?,?,?,?,?,?,?,?,?,'; + $unitsdead_deff[3] = '?,?,?,?,?,?,?,?,?,?,'; + $unitsdead_deff[4] = '?,?,?,?,?,?,?,?,?,?,'; + $unitsdead_deff[5] = '?,?,?,?,?,?,?,?,?,?,'; + /* + if($battlepart['casualties_defender'][1] == 0) { $dead11 = 0; } else { $dead11 = $battlepart['casualties_defender'][1]; } + if($battlepart['casualties_defender'][2] == 0) { $dead12 = 0; } else { $dead12 = $battlepart['casualties_defender'][2]; } + if($battlepart['casualties_defender'][3] == 0) { $dead13 = 0; } else { $dead13 = $battlepart['casualties_defender'][3]; } + if($battlepart['casualties_defender'][4] == 0) { $dead14 = 0; } else { $dead14 = $battlepart['casualties_defender'][4]; } + if($battlepart['casualties_defender'][5] == 0) { $dead15 = 0; } else { $dead15 = $battlepart['casualties_defender'][5]; } + if($battlepart['casualties_defender'][6] == 0) { $dead16 = 0; } else { $dead16 = $battlepart['casualties_defender'][6]; } + if($battlepart['casualties_defender'][7] == 0) { $dead17 = 0; } else { $dead17 = $battlepart['casualties_defender'][7]; } + if($battlepart['casualties_defender'][8] == 0) { $dead18 = 0; } else { $dead18 = $battlepart['casualties_defender'][8]; } + if($battlepart['casualties_defender'][9] == 0) { $dead19 = 0; } else { $dead19 = $battlepart['casualties_defender'][9]; } + if($battlepart['casualties_defender'][10] == 0) { $dead20 = 0; } else { $dead20 = $battlepart['casualties_defender'][10]; } +*/ + + // Set units returning from attack + $database->modifyAttack($data['ref'],1,$dead1); + $database->modifyAttack($data['ref'],2,$dead2); + $database->modifyAttack($data['ref'],3,$dead3); + $database->modifyAttack($data['ref'],4,$dead4); + $database->modifyAttack($data['ref'],5,$dead5); + $database->modifyAttack($data['ref'],6,$dead6); + $database->modifyAttack($data['ref'],7,$dead7); + $database->modifyAttack($data['ref'],8,$dead8); + $database->modifyAttack($data['ref'],9,$dead9); + $database->modifyAttack($data['ref'],10,$dead10); + + + $unitsdead_att = ''.$dead1.','.$dead2.','.$dead3.','.$dead4.','.$dead5.','.$dead6.','.$dead7.','.$dead8.','.$dead9.','.$dead10.''; + //$unitsdead_def = ''.$dead11.','.$dead12.','.$dead13.','.$dead14.','.$dead15.','.$dead16.','.$dead17.','.$dead18.','.$dead19.','.$dead20.''; + + + //top 10 attack and defence update + $totaldead_att = $dead1+$dead2+$dead3+$dead4+$dead5+$dead6+$dead7+$dead8+$dead9+$dead10; + for($i=1;$i<=50;$i++) { + $totaldead_def += $dead[''.$i.'']; + } + if ($Attacker['uhero'] != 0){ + $heroxp = $totaldead_def; + $database->modifyHeroXp("experience",$heroxp,$from['owner']); + } + $database->modifyPoints($toF['owner'],'dpall',$totaldead_att ); + $database->modifyPoints($from['owner'],'apall',$totaldead_def); + $database->modifyPoints($toF['owner'],'dp',$totaldead_att ); + $database->modifyPoints($from['owner'],'ap',$totaldead_def); + $database->modifyPointsAlly($targetally,'Adp',$totaldead_att ); + $database->modifyPointsAlly($ownally,'Aap',$totaldead_def); + $database->modifyPointsAlly($targetally,'dp',$totaldead_att ); + $database->modifyPointsAlly($ownally,'ap',$totaldead_def); + + + + if ($isoasis == 0){ + // get toatal cranny value: + $buildarray = $database->getResourceLevel($data['to']); + $cranny = 0; + for($i=19;$i<39;$i++){ + if($buildarray['f'.$i.'t']==23){ + $cranny += $bid23[$buildarray['f'.$i.'']]['attri']; + } + } + + //cranny efficiency + $atk_bonus = ($owntribe == 2)? (4/5) : 1; + $def_bonus = ($targettribe == 3)? 2 : 1; + + $cranny_eff = ($cranny * $atk_bonus)*$def_bonus; + + // work out available resources. + $this->updateRes($data['to'],$to['owner']); + $this->pruneResource(); + + $totclay = $database->getVillageField($data['to'],'clay'); + $totiron = $database->getVillageField($data['to'],'iron'); + $totwood = $database->getVillageField($data['to'],'wood'); + $totcrop = $database->getVillageField($data['to'],'crop'); + }else{ + $cranny_eff = 0; + + // work out available resources. + $this->updateORes($data['to']); + $this->pruneOResource(); + + $totclay = $database->getOasisField($data['to'],'clay'); + $totiron = $database->getOasisField($data['to'],'iron'); + $totwood = $database->getOasisField($data['to'],'wood'); + $totcrop = $database->getOasisField($data['to'],'crop'); + } + $avclay = floor($totclay - $cranny_eff); + $aviron = floor($totiron - $cranny_eff); + $avwood = floor($totwood - $cranny_eff); + $avcrop = floor($totcrop - $cranny_eff); + + $avclay = ($avclay < 0)? 0 : $avclay; + $aviron = ($aviron < 0)? 0 : $aviron; + $avwood = ($avwood < 0)? 0 : $avwood; + $avcrop = ($avcrop < 0)? 0 : $avcrop; + + + $avtotal = array($avwood, $avclay, $aviron, $avcrop); + + $av = $avtotal; + + // resources (wood,clay,iron,crop) + $steal = array(0,0,0,0); + + //bounty variables + $btotal = $battlepart['bounty']; + $bmod = 0; + + + for($i = 0; $i<5; $i++) + { + for($j=0;$j<4;$j++) + { + if(isset($avtotal[$j])) + { + if($avtotal[$j]<1) + unset($avtotal[$j]); + } + } + if(!$avtotal) + { + // echo 'array empty'; *no resources left to take. + break; + } + if($btotal <1 && $bmod <1) + break; + if($btotal<1) + { + while($bmod) + { + //random select + $rs = array_rand($avtotal); + if(isset($avtotal[$rs])) + { + $avtotal[$rs] -= 1; + $steal[$rs] += 1; + $bmod -= 1; + } + } + } + + // handle unballanced amounts. + $btotal +=$bmod; + $bmod = $btotal%count($avtotal); + $btotal -=$bmod; + $bsplit = $btotal/count($avtotal); + + $max_steal = (min($avtotal) < $bsplit)? min($avtotal): $bsplit; + + for($j=0;$j<4;$j++) + { + if(isset($avtotal[$j])) + { + $avtotal[$j] -= $max_steal; + $steal[$j] += $max_steal; + $btotal -= $max_steal; + } + } + } + + + //work out time of return + $start = ($owntribe-1)*10+1; + $end = ($owntribe*10); + + $unitspeeds = array(6,5,7,16,14,10,4,3,4,5, + 7,7,6,9,10,9,4,3,4,5, + 7,6,17,19,16,13,4,3,4,5, + 7,7,6,9,10,9,4,3,4,5, + 7,7,6,9,10,9,4,3,4,5); + + $speeds = array(); + + //find slowest unit. + for($i=1;$i<=10;$i++) + { + if ($data['t'.$i] > $battlepart['casualties_attacker'][$i]) { + if($unitarray) { reset($unitarray); } + $unitarray = $GLOBALS["u".(($owntribe-1)*10+$i)]; + $speeds[] = $unitarray['speed']; + } + } + + +// Data for when troops return. + + //catapulten kijken :D + $info_cat = $info_chief = $info_ram = ","; + + if ($type=='3'){ + if ($rams!='0'){ + if (isset($empty)){ + $info_ram = "".$ram_pic.",There is no wall to destroy."; + } else + + if ($battlepart[8]>$battlepart[7]){ + $info_ram = "".$ram_pic.",Wall destroyed."; + $database->setVillageLevel($data['to'],"f".$wallid."",'0'); + $database->setVillageLevel($data['to'],"f".$wallid."t",'0'); + $pop=$this->recountPop($data['to']); + + }elseif ($battlepart[8]==0){ + + $info_ram = "".$ram_pic.",Wall was not damaged."; + }else{ + + $demolish=$battlepart[8]/$battlepart[7]; + $totallvl = round(sqrt(pow(($walllevel+0.5),2)-($battlepart[8]*8))); + $info_ram = "".$ram_pic.",Wall damaged from level ".$walllevel." to level ".$totallvl."."; + $database->setVillageLevel($data['to'],"f".$wallid."",$totallvl); + + } + } + } + if ($type=='3') +{ + if ($catp!='0') + { + + if($toF['pop']<=0) + { + $info_cat = ",".$catp_pic.", Village already destroyed."; + } + else + { + $basearray = $data['to']; + + if ($data['ctar2']==0) + { + $bdo2=mysql_query("select * from " . TB_PREFIX . "fdata where vref = $basearray"); + $bdo=mysql_fetch_array($bdo2); + + $rand=$data['ctar1']; + + if ($rand != 0) + { + $_rand=array(); + $__rand=array(); + $j=0; + for ($i=1;$i<=41;$i++) + { + if ($i==41) $i=99; + if ($bdo['f'.$i.'t']==$rand && $bdo['f'.$i]>0) + { + $j++; + $_rand[$j]=$bdo['f'.$i]; + $__rand[$j]=$i; + } + } + if (count($_rand)>0) + { + if (max($_rand)<=0) $rand=0; + else + { + $rand=rand(1, $j); + $rand=$__rand[$rand]; + } + } + else + { + $rand=0; + } + } + + if ($rand == 0) + { + $list=array(); + $j=1; + for ($i=1;$i<=41;$i++) + { + if ($i==41) $i=99; + if ($bdo['f'.$i] > 0) + { + $list[$j]=$i; + $j++; + } + } + $rand=rand(1, $j); + $rand=$list[$rand]; + } + + $tblevel = $bdo['f'.$rand]; + $tbgid = $bdo['f'.$rand.'t']; + $tbid = $rand; + if($bid34[$stonemason] != 0){ + $needed_cata = round((($battlepart[5] * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$battlepart[6]))/200))) + 0.5); + }else{ + $needed_cata = round((($battlepart[5] * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$battlepart[6]))/200) / (1 * $bid34[$stonemason]['attri']/100))) + 0.5); + } + if ($battlepart[4]>$needed_cata) + { + $info_cat = "".$catp_pic.", ".$this->procResType($tbgid)." destroyed."; + $database->setVillageLevel($data['to'],"f".$tbid."",'0'); + if($tbid>=19) { $database->setVillageLevel($data['to'],"f".$tbid."t",'0'); } + $buildarray = $GLOBALS["bid".$tbgid]; + if ($tbgid==10 || $tbgid==38) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxstore=$t_sql['maxstore']-$buildarray[$tblevel]['attri']; + if ($tmaxstore<800) $tmaxstore=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxstore`='".$tmaxstore."'*32 WHERE wref=".$data['to']; + $database->query($q); + } + if ($tbgid==11 || $tbgid==39) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxcrop=$t_sql['maxcrop']-$buildarray[$tblevel]['attri']; + if ($tmaxcrop<800) $tmaxcrop=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxcrop`='".$tmaxcrop."'*32 WHERE wref=".$data['to']; + $database->query($q); + } + $pop=$this->recountPop($data['to']); + if($pop=='0') + { + $varray = $database->getProfileVillages($to['owner']); + if(count($varray)!='1' AND $to['capital']!='1'){ + $q = "DELETE FROM ".TB_PREFIX."abdata where wref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."bdata where wid = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."enforcement where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."fdata where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."market where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."movement where to = ".$data['to']." or from = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."odata where wref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."research where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."tdata where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."training where vref =".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."units where vref =".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."vdata where wref = ".$data['to']; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$data['to']; + $database->query($q); + $logging->VillageDestroyCatalog($data['to']); + } + } + } + elseif ($battlepart[4]==0) + { + $info_cat = "".$catp_pic.",".$this->procResType($tbgid)." was not damaged."; + } + else + { + $demolish=$battlepart[4]/$needed_cata; + $totallvl = round(sqrt(pow(($tblevel+0.5),2)-($battlepart[4]*8))); + if ($tblevel==$totallvl) + $info_cata=" was not damaged."; + else + { + $info_cata=" damaged from level ".$tblevel." to level ".$totallvl."."; + $buildarray = $GLOBALS["bid".$tbgid]; + if ($tbgid==10 || $tbgid==38) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxstore=$t_sql['maxstore']+$buildarray[$totallvl]['attri']-$buildarray[$tblevel]['attri']; + if ($tmaxstore<800) $tmaxstore=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxstore`='".$tmaxstore."' WHERE wref=".$data['to']; + $database->query($q); + } + if ($tbgid==11 || $tbgid==39) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxcrop=$t_sql['maxcrop']+$buildarray[$totallvl]['attri']-$buildarray[$tblevel]['attri']; + if ($tmaxcrop<800) $tmaxcrop=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxcrop`='".$tmaxcrop."' WHERE wref=".$data['to']; + $database->query($q); + } + $pop=$this->recountPop($data['to']); + } + $info_cat = "".$catp_pic.",".$this->procResType($tbgid).$info_cata; + $database->setVillageLevel($data['to'],"f".$tbid."",$totallvl); + } + } + else + { + $bdo2=mysql_query("select * from " . TB_PREFIX . "fdata where vref = $basearray"); + $bdo=mysql_fetch_array($bdo2); + $rand=$data['ctar1']; + if ($rand != 0) + { + $_rand=array(); + $__rand=array(); + $j=0; + for ($i=1;$i<=41;$i++) + { + if ($i==41) $i=99; + if ($bdo['f'.$i.'t']==$rand && $bdo['f'.$i]>0) + { + $j++; + $_rand[$j]=$bdo['f'.$i]; + $__rand[$j]=$i; + } + } + if (count($_rand)>0) + { + if (max($_rand)<=0) $rand=0; + else + { + $rand=rand(1, $j); + $rand=$__rand[$rand]; + } + } + else + { + $rand=0; + } + } + + if ($rand == 0) + { + $list=array(); + $j=0; + for ($i=1;$i<=41;$i++) + { + if ($i==41) $i=99; + if ($bdo['f'.$i] > 0) + { + $j++; + $list[$j]=$i; + } + } + $rand=rand(1, $j); + $rand=$list[$rand]; + } + + $tblevel = $bdo['f'.$rand]; + $tbgid = $bdo['f'.$rand.'t']; + $tbid = $rand; + if($bid34[$stonemason] != 0){ + $needed_cata = round((($battlepart[5] * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$battlepart[6]))/200))) + 0.5); + }else{ + $needed_cata = round((($battlepart[5] * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$battlepart[6]))/200) / (1 * $bid34[$stonemason]['attri']/100))) + 0.5); + } + if (($battlepart[4]/2)>$needed_cata) + { + $info_cat = "".$catp_pic.", ".$this->procResType($tbgid)." destroyed."; + $database->setVillageLevel($data['to'],"f".$tbid."",'0'); + if($tbid>=19) { $database->setVillageLevel($data['to'],"f".$tbid."t",'0'); } + $buildarray = $GLOBALS["bid".$tbgid]; + if ($tbgid==10 || $tbgid==38) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxstore=$t_sql['maxstore']-$buildarray[$tblevel]['attri']; + if ($tmaxstore<800) $tmaxstore=800*32; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxstore`='".$tmaxstore."' WHERE wref=".$data['to']; + $database->query($q); + } + if ($tbgid==11 || $tbgid==39) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxcrop=$t_sql['maxcrop']-$buildarray[$tblevel]['attri']; + if ($tmaxcrop<800) $tmaxcrop=800*32; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxcrop`='".$tmaxcrop."' WHERE wref=".$data['to']; + $database->query($q); + } + $pop=$this->recountPop($data['to']); + if($pop=='0') + { + $varray = $database->getProfileVillages($to['owner']); + if(count($varray)!='1' AND $to['capital']!='1'){ + $q = "DELETE FROM ".TB_PREFIX."abdata where wref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."bdata where wid = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."enforcement where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."fdata where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."market where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."movement where to = ".$data['to']." or from = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."odata where wref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."research where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."tdata where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."training where vref =".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."units where vref =".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."vdata where wref = ".$data['to']; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$data['to']; + $database->query($q); + $logging->VillageDestroyCatalog($data['to']); + } + } + } + elseif ($battlepart[4]==0) + { + $info_cat = "".$catp_pic.",".$this->procResType($tbgid)." was not damaged."; + } + else + { + $demolish=($battlepart[4]/2)/$needed_cata; + $totallvl = round(sqrt(pow(($tblevel+0.5),2)-(($battlepart[4]/2)*8))); + if ($tblevel==$totallvl) + $info_cata=" was not damaged."; + else + { + $info_cata=" damaged from level ".$tblevel." to level ".$totallvl."."; + $buildarray = $GLOBALS["bid".$tbgid]; + if ($tbgid==10 || $tbgid==38) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxstore=$t_sql['maxstore']+$buildarray[$totallvl]['attri']-$buildarray[$tblevel]['attri']; + if ($tmaxstore<800) $tmaxstore=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxstore`='".$tmaxstore."' WHERE wref=".$data['to']; + $database->query($q); + } + if ($tbgid==11 || $tbgid==39) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxcrop=$t_sql['maxcrop']+$buildarray[$totallvl]['attri']-$buildarray[$tblevel]['attri']; + if ($tmaxcrop<800) $tmaxcrop=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxcrop`='".$tmaxcrop."' WHERE wref=".$data['to']; + $database->query($q); + } + $pop=$this->recountPop($data['to']); + } + $info_cat = "".$catp_pic.",".$this->procResType($tbgid).$info_cata; + $database->setVillageLevel($data['to'],"f".$tbid."",$totallvl); + } + $bdo2=mysql_query("select * from " . TB_PREFIX . "fdata where vref = $basearray"); + $bdo=mysql_fetch_array($bdo2); + $rand=$data['ctar2']; + if ($rand != 99) + { + $_rand=array(); + $__rand=array(); + $j=0; + for ($i=1;$i<=41;$i++) + { + if ($i==41) $i=99; + if ($bdo['f'.$i.'t']==$rand && $bdo['f'.$i]>0) + { + $j++; + $_rand[$j]=$bdo['f'.$i]; + $__rand[$j]=$i; + } + } + if (count($_rand)>0) + { + if (max($_rand)<=0) $rand=99; + else + { + $rand=rand(1, $j); + $rand=$__rand[$rand]; + } + } + else + { + $rand=99; + } + } + + if ($rand == 99) + { + $list=array(); + $j=0; + for ($i=1;$i<=41;$i++) + { + if ($i==41) $i=99; + if ($bdo['f'.$i] > 0) + { + $j++; + $list[$j]=$i; + } + } + $rand=rand(1, $j); + $rand=$list[$rand]; + } + + $tblevel = $bdo['f'.$rand]; + $tbgid = $bdo['f'.$rand.'t']; + $tbid = $rand; + if($bid34[$stonemason] != 0){ + $needed_cata = round((($battlepart[5] * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$battlepart[6]))/200))) + 0.5); + }else{ + $needed_cata = round((($battlepart[5] * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$battlepart[6]))/200) / (1 * $bid34[$stonemason]['attri']/100))) + 0.5); + } + if (($battlepart[4]/2)>$needed_cata) + { + $info_cat .= "
Information + \"Catapult\" ".$this->procResType($tbgid)." destroyed."; + $database->setVillageLevel($data['to'],"f".$tbid."",'0'); + if($tbid>=19) { $database->setVillageLevel($data['to'],"f".$tbid."t",'0'); } + $buildarray = $GLOBALS["bid".$tbgid]; + if ($tbgid==10 || $tbgid==38) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxstore=$t_sql['maxstore']-$buildarray[$tblevel]['attri']; + if ($tmaxstore<800) $tmaxstore=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxstore`='".$tmaxstore."' WHERE wref=".$data['to']; + $database->query($q); + } + if ($tbgid==11 || $tbgid==39) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxcrop=$t_sql['maxcrop']-$buildarray[$tblevel]['attri']; + if ($tmaxcrop<800) $tmaxcrop=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxcrop`='".$tmaxcrop."' WHERE wref=".$data['to']; + $database->query($q); + } + $pop=$this->recountPop($data['to']); + if($pop=='0') + { + $varray = $database->getProfileVillages($to['owner']); + if(count($varray)!='1' AND $to['capital']!='1'){ + $q = "DELETE FROM ".TB_PREFIX."abdata where wref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."bdata where wid = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."enforcement where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."fdata where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."market where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."movement where to = ".$data['to']." or from = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."odata where wref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."research where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."tdata where vref = ".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."training where vref =".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."units where vref =".$data['to']; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."vdata where wref = ".$data['to']; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$data['to']; + $database->query($q); + $logging->VillageDestroyCatalog($data['to']); + } + } + } + elseif ($battlepart[4]==0) + { + $info_cat .= "
Information + \"Catapult\" ".$this->procResType($tbgid)." was not damaged."; + } + else + { + $demolish=($battlepart[4]/2)/$needed_cata; + $totallvl = round(sqrt(pow(($tblevel+0.5),2)-(($battlepart[4]/2)*8))); + if ($tblevel==$totallvl) + $info_cata=" was not damaged."; + else + { + $info_cata=" damaged from level ".$tblevel." to level ".$totallvl."."; + $buildarray = $GLOBALS["bid".$tbgid]; + if ($tbgid==10 || $tbgid==38) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxstore=$t_sql['maxstore']+$buildarray[$totallvl]['attri']-$buildarray[$tblevel]['attri']; + if ($tmaxstore<800) $tmaxstore=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxstore`='".$tmaxstore."' WHERE wref=".$data['to']; + $database->query($q); + } + if ($tbgid==11 || $tbgid==39) { + $tsql=mysql_query("select `maxstore`,`maxcrop` from ".TB_PREFIX."vdata where wref=".$data['to'].""); + $t_sql=mysql_fetch_array($tsql); + $tmaxcrop=$t_sql['maxcrop']+$buildarray[$totallvl]['attri']-$buildarray[$tblevel]['attri']; + if ($tmaxcrop<800) $tmaxcrop=800; + $q = "UPDATE ".TB_PREFIX."vdata SET `maxcrop`='".$tmaxcrop."' WHERE wref=".$data['to']; + $database->query($q); + } + $pop=$this->recountPop($data['to']); + } + + $info_cat .= "
Information + \"Catapult\" ".$this->procResType($tbgid).$info_cata.""; + $database->setVillageLevel($data['to'],"f".$tbid."",$totallvl); + + } + } + } + } +} + + //chiefing village + //there are senators + if(($data['t9']-$dead9)>0){ + $varray = $database->getProfileVillages($to['owner']); + //kijken of laatste dorp is, of hoofddorp + if(count($varray)!='1' AND $to['capital']!='1'){ + //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){ + $nochiefing='1'; + $info_chief = "".$chief_pic.",The Palace/Residence isn\'t destroyed!"; + } + } + if(!isset($nochiefing)){ + //$info_chief = "".$chief_pic.",You don't have enought CP to chief a village."; + for ($i=0; $i<($data['t9']-$dead9); $i++){ + $rand+=rand(15,25); + } + //loyalty is more than 0 + if(($toF['loyalty']-$rand)>0){ + $info_chief = "".$chief_pic.",The loyalty was lowered from ".$toF['loyalty']." to ".($toF['loyalty']-$rand)."."; + $database->setVillageField($data['to'],loyalty,($toF['loyalty']-$rand)); + } else { + //you took over the village + $artifact = $database->getOwnArtefactInfo($data['to']); + $info_chief = "".$chief_pic.",Inhabitants decided to join your empire."; + if ($artifact['vref'] == $data['to']){ + $database->claimArtefact($data['to'],$data['to'],$database->getVillageField($data['from'],"owner")); + } + $database->setVillageField($data['to'],loyalty,33); + $database->setVillageField($data['to'],owner,$database->getVillageField($data['from'],"owner")); + //destroy wall + $database->setVillageLevel($data['to'],"f40",0); + $database->setVillageLevel($data['to'],"f40t",0); + $database->clearExpansionSlot($data['to']); + //kill a chief + $database->modifyAttack($data['ref'],9,1); + + + $exp1 = $database->getVillageField($data['from'],'exp1'); + $exp2 = $database->getVillageField($data['from'],'exp2'); + $exp3 = $database->getVillageField($data['from'],'exp3'); + + if($exp1 == 0){ + $exp = 'exp1'; + $value = $data['to']; + } + elseif($exp2 == 0){ + $exp = 'exp2'; + $value = $data['to']; + } + else{ + $exp = 'exp3'; + $value = $data['to']; + } + $database->setVillageField($data['from'],$exp,$value); + + + } + } + } else { + $info_chief = "".$chief_pic.",You cant take over this village."; + } + } + +####Hero claim artifact fixed by advocaite + if($data['t11'] > 0){ + if ($isoasis != 0) { + if ($database->canConquerOasis($data['from'],$data['to'])) { + $database->conquerOasis($data['from'],$data['to']); + $info_chief = $hero_pic." Your hero has conquered this oasis and gained ".$heroxp." XP"; + } else { + $OasisInfo = $database->getOasisInfo($data['to']); + if ($OasisInfo['conqured'] != 0) { + $Oloyaltybefore = $OasisInfo['loyalty']; + $database->modifyOasisLoyalty($data['to']); + $OasisInfo = $database->getOasisInfo($data['to']); + $Oloyaltynow = $OasisInfo['loyalty']; + $info_chief = $hero_pic." Your hero has reduced oasis loyalty to ".$Oloyaltynow." from ".$Oloyaltybefore." and gained ".$heroxp." XP"; + } else { + if ($heroxp == 0) { + $info_chief = $hero_pic." Your hero had nothing to kill therfore gains no XP at all"; + } else { + $info_chief = $hero_pic." Your hero gained ".$heroxp." XP"; + } + } + } + } else { + $artifact = $database->getOwnArtefactInfo($data['to']); + if ($artifact['vref'] == $data['to']){ + if($database->canClaimArtifact($artifact['vref'],$artifact['size'])) { + $database->claimArtefact($data['to'],$data['to'],$database->getVillageField($data['from'],"owner")); + $info_chief = $hero_pic." Your hero is carrying home a artifact, and gained ".$heroxp." XP from the battle"; + }else{ + $info_chief = $hero_pic." Your hero could not claim the artifact, and gained ".$heroxp." XP from the battle"; + + } + } + } + } + + if($scout){ + if ($data['spy'] == 1){ + $info_spy = "".$spy_pic.",
\"Lumber\"".round($totwood)." | + \"Clay\"".round($totclay)." | + \"Iron\"".round($totiron)." | + \"Crop\"".round($totcrop)."
+
\"carry\"Total Resources : ".round($totwood+$totclay+$totiron+$totcrop)."
+ "; + }else if($data['spy'] == 2){ + if ($isoasis == 0){ + $basearray = $database->getMInfo($data['to']); + $resarray = $database->getResourceLevel($basearray['wref']); + + + $crannylevel =0; + $rplevel = 0; + $walllevel = 0; + for($j=19;$j<=40;$j++) { + if($resarray['f'.$j.'t'] == 25 || $resarray['f'.$j.'t'] == 26 ) { + + $rplevel = $database->getFieldLevel($basearray['wref'],$j); + + } + } + for($j=19;$j<=40;$j++) { + if($resarray['f'.$j.'t'] == 40) { + + $walllevel = $database->getFieldLevel($basearray['wref'],$j); + + } + } + for($j=19;$j<=40;$j++) { + if($resarray['f'.$j.'t'] == 23) { + + $crannylevel = $database->getFieldLevel($basearray['wref'],$j); + + } + } + }else { + $crannylevel =0; + $walllevel =0; + $rplevel =0; + } + + + + $info_spy = "".$spy_pic.",Residance/Palace Level : ".$rplevel.". +
Wall Level : ".$walllevel.".
Cranny Level : ".$crannylevel."."; + + } + + $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.''; + } + 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.''; + } + + + + + + // 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_def[1].','.$unitsdead_deff[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_deff[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_deff[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_deff[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_deff[5].',,,'; + + //Undetected and detected in here. + if($scout){ + for($i=1;$i<=10;$i++) + { + if($battlepart['casualties_attacker'][$i]){ + $database->addNotice($to['owner'],$to['wref'],$targetally,0,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + break; + } + } + } + else { + if ($totaldead_def == 0){ + $database->addNotice($to['owner'],$to['wref'],$targetally,4,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + }else { + $database->addNotice($to['owner'],$to['wref'],$targetally,5,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + } + } + //to here + + // If the dead units not equal the ammount sent they will return and report + if($unitsdead_att != $unitssend_att) + { + $endtime = $this->procDistanceTime($from,$to,min($speeds),1) + $AttackArrivalTime; + //$endtime = $this->procDistanceTime($from,$to,min($speeds),1) + time(); + if($type == 1) { + $database->addNotice($from['owner'],$to['wref'],$ownally,0,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + }else { + if ($totaldead_att == 0){ + $database->addNotice($from['owner'],$to['wref'],$ownally,1,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + }else{ + $database->addNotice($from['owner'],$to['wref'],$ownally,2,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + } + } + + $database->setMovementProc($data['moveid']); + $database->addMovement(4,$to['wref'],$from['wref'],$data['ref'],$endtime); + + // send the bounty on type 6. + if($type !== 1) + { + $reference = $database->sendResource($steal[0],$steal[1],$steal[2],$steal[3],0,0); + $database->modifyResource($to['wref'],$steal[0],$steal[1],$steal[2],$steal[3],0); + $database->addMovement(6,$to['wref'],$from['wref'],$reference,$endtime); + //$database->updateVillage($to['wref']); + $totalstolengain=$steal[0]+$steal[1]+$steal[2]+$steal[3]; + $totalstolentaken=($totalstolentaken-($steal[0]+$steal[1]+$steal[2]+$steal[3])); + $database->modifyPoints($from['owner'],'RR',$totalstolengain); + $database->modifyPoints($to['owner'],'RR',$totalstolentaken); + $database->modifyPointsAlly($targetally,'RR',$totalstolentaken ); + $database->modifyPointsAlly($ownally,'RR',$totalstolengain); + } + } + else //else they die and don't return or report. + { + $database->setMovementProc($data['moveid']); + if($type == 1){ + $database->addNotice($from['owner'],$to['wref'],$ownally,0,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data_fail,$AttackArrivalTime); + }else{ + $database->addNotice($from['owner'],$to['wref'],$ownally,3,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data_fail,$AttackArrivalTime); + } + } + + } + if(file_exists("GameEngine/Prevention/sendunits.txt")) { + @unlink("GameEngine/Prevention/sendunits.txt"); + } + } + + private function sendreinfunitsComplete() { + global $bid23,$database,$battle; + $time = time(); + $ourFileHandle = @fopen("GameEngine/Prevention/sendreinfunits.txt", 'w'); + @fclose($ourFileHandle); + $q = "SELECT * FROM ".TB_PREFIX."movement, ".TB_PREFIX."attacks where ".TB_PREFIX."movement.ref = ".TB_PREFIX."attacks.id and ".TB_PREFIX."movement.proc = '0' and ".TB_PREFIX."movement.sort_type = '3' and ".TB_PREFIX."attacks.attack_type = '2' and endtime < $time"; + $dataarray = $database->query_return($q); + + foreach($dataarray as $data) { + //set base things + $owntribe = $database->getUserField($database->getVillageField($data['from'],"owner"),"tribe",0); + $targettribe = $database->getUserField($database->getVillageField($data['to'],"owner"),"tribe",0); + $to = $database->getMInfo($data['to']); + $from = $database->getMInfo($data['from']); + $toF = $database->getVillage($data['to']); + $fromF = $database->getVillage($data['from']); + + //check to see if we're only sending a hero between own villages and there's a Mansion at target village + if($data['t11'] != 0) { + if($database->getVillageField($data['from'],"owner") == $database->getVillageField($data['to'],"owner")) { + for($i=1;$i<=10;$i++) { if($data['t'.$i]>0) { $NonHeroPresent = 1; break; } } + if($NonHeroPresent == 0 && $this->getTypeLevel(37,$data['to']) > 0) { + //don't reinforce, addunit instead + $database->modifyUnit($data['to'],array("hero"),array(1),array(1)); + $HeroTransfer = 1; + } + } + } if(!$HeroTransfer) + { + //check if there is defence from town in to town + $check=$database->getEnforce($data['to'],$data['from']); + if (!isset($check['id'])){ + //no: + $database->addEnforce($data); + } else{ + //yes + $start = ($owntribe-1)*10+1; + $end = ($owntribe*10); + //add unit. + $j='1'; + for($i=$start;$i<=$end;$i++){ + $database->modifyEnforce($check['id'],$i,$data['t'.$j.''],1); $j++; + } + } + } + //send rapport + $unitssend_att = ''.$data['t1'].','.$data['t2'].','.$data['t3'].','.$data['t4'].','.$data['t5'].','.$data['t6'].','.$data['t7'].','.$data['t8'].','.$data['t9'].','.$data['t10'].','.$data['t11'].''; + $data_fail = ''.$from['wref'].','.$from['owner'].','.$owntribe.','.$unitssend_att.''; + $database->addNotice($from['owner'],$from['wref'],$ownally,8,''.addslashes($from['name']).' reinforcement '.addslashes($to['name']).'',$data_fail,$AttackArrivalTime); + if($from['owner'] != $to['owner']) { + $database->addNotice($to['owner'],$to['wref'],$targetally,8,''.addslashes($from['name']).' reinforcement '.addslashes($to['name']).'',$data_fail,$AttackArrivalTime); + } + //update status + $database->setMovementProc($data['moveid']); + + } + if(file_exists("GameEngine/Prevention/sendreinfunits.txt")) { + @unlink("GameEngine/Prevention/sendreinfunits.txt"); + } + } + + private function returnunitsComplete() { + global $database; + $ourFileHandle = @fopen("GameEngine/Prevention/returnunits.txt", 'w'); + @fclose($ourFileHandle); + $time = time(); + $q = "SELECT * FROM ".TB_PREFIX."movement, ".TB_PREFIX."attacks where ".TB_PREFIX."movement.ref = ".TB_PREFIX."attacks.id and ".TB_PREFIX."movement.proc = '0' and ".TB_PREFIX."movement.sort_type = '4' and endtime < $time"; + $dataarray = $database->query_return($q); + + foreach($dataarray as $data) { + + $tribe = $database->getUserField($database->getVillageField($data['to'],"owner"),"tribe",0); + + if($tribe == 1){ $u = ""; } elseif($tribe == 2){ $u = "1"; } elseif($tribe == 3){ $u = "2"; } elseif($tribe == 4){ $u = "3"; } else{ $u = "4"; } + $database->modifyUnit( + $data['to'], + array($u."1",$u."2",$u."3",$u."4",$u."5",$u."6",$u."7",$u."8",$u."9",$tribe."0","hero"), + array($data['t1'],$data['t2'],$data['t3'],$data['t4'],$data['t5'],$data['t6'],$data['t7'],$data['t8'],$data['t9'],$data['t10'],$data['t11']), + array(1,1,1,1,1,1,1,1,1,1,1) + ); + $database->setMovementProc($data['moveid']); + } + + // Recieve the bounty on type 6. + + $q = "SELECT * FROM ".TB_PREFIX."movement, ".TB_PREFIX."send where ".TB_PREFIX."movement.ref = ".TB_PREFIX."send.id and ".TB_PREFIX."movement.proc = 0 and sort_type = 6 and endtime < $time"; + $dataarray = $database->query_return($q); + foreach($dataarray as $data) { + + if($data['wood'] >= $data['clay'] && $data['wood'] >= $data['iron'] && $data['wood'] >= $data['crop']){ $sort_type = "10"; } + elseif($data['clay'] >= $data['wood'] && $data['clay'] >= $data['iron'] && $data['clay'] >= $data['crop']){ $sort_type = "11"; } + elseif($data['iron'] >= $data['wood'] && $data['iron'] >= $data['clay'] && $data['iron'] >= $data['crop']){ $sort_type = "12"; } + elseif($data['crop'] >= $data['wood'] && $data['crop'] >= $data['clay'] && $data['crop'] >= $data['iron']){ $sort_type = "13"; } + + $to = $database->getMInfo($data['to']); + $from = $database->getMInfo($data['from']); + $database->modifyResource($data['to'],$data['wood'],$data['clay'],$data['iron'],$data['crop'],1); + //$database->updateVillage($data['to']); + $database->setMovementProc($data['moveid']); + } + $this->pruneResource(); + + + if(file_exists("GameEngine/Prevention/returnunits.txt")) { + @unlink("GameEngine/Prevention/returnunits.txt"); + } + } + + private function sendSettlersComplete() { + global $database, $building; + $ourFileHandle = @fopen("GameEngine/Prevention/settlers.txt", 'w'); + @fclose($ourFileHandle); + $time = time(); + $q = "SELECT * FROM ".TB_PREFIX."movement where proc = 0 and sort_type = 5 and endtime < $time"; + $dataarray = $database->query_return($q); + foreach($dataarray as $data) { + $to = $database->getMInfo($data['from']); + $user = $database->getUserField($to['owner'],'username',0); + $taken = $database->getVillageState($data['to']); + if($taken['occupied'] == 0){ + $database->setFieldTaken($data['to']); + $database->addVillage($data['to'],$to['owner'],$user,'0'); + $database->addResourceFields($data['to'],$database->getVillageType($data['to'])); + $database->addUnits($data['to']); + $database->addTech($data['to']); + $database->addABTech($data['to']); + $database->setMovementProc($data['moveid']); + + $exp1 = $database->getVillageField($data['from'],'exp1'); + $exp2 = $database->getVillageField($data['from'],'exp2'); + $exp3 = $database->getVillageField($data['from'],'exp3'); + + if($exp1 == 0){ + $exp = 'exp1'; + $value = $data['to']; + } + elseif($exp2 == 0){ + $exp = 'exp2'; + $value = $data['to']; + } + else{ + $exp = 'exp3'; + $value = $data['to']; + } + $database->setVillageField($data['from'],$exp,$value); + } + else{ + // here must come movement from returning settlers + $database->setMovementProc($data['moveid']); + } + } + if(file_exists("GameEngine/Prevention/settlers.txt")) { + @unlink("GameEngine/Prevention/settlers.txt"); + } + } + + private function researchComplete() { + global $database; + $ourFileHandle = @fopen("GameEngine/Prevention/research.txt", 'w'); + @fclose($ourFileHandle); + $time = time(); + $q = "SELECT * FROM ".TB_PREFIX."research where timestamp < $time"; + $dataarray = $database->query_return($q); + foreach($dataarray as $data) { + $sort_type = substr($data['tech'],0,1); + switch($sort_type) { + case "t": + $q = "UPDATE ".TB_PREFIX."tdata set ".$data['tech']." = 1 where vref = ".$data['vref']; + break; + case "a": + case "b": + $q = "UPDATE ".TB_PREFIX."abdata set ".$data['tech']." = ".$data['tech']." + 1 where vref = ".$data['vref']; + break; + } + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."research where id = ".$data['id']; + $database->query($q); + } + if(file_exists("GameEngine/Prevention/research.txt")) { + @unlink("GameEngine/Prevention/research.txt"); + } + } + + private function updateRes($bountywid,$uid) { + global $session; + + + $this->bountyLoadTown($bountywid); + $this->bountycalculateProduction($bountywid,$uid); + $this->bountyprocessProduction($bountywid); + } + + private function updateORes($bountywid) { + global $session; + $this->bountyLoadOTown($bountywid); + $this->bountycalculateOProduction($bountywid); + $this->bountyprocessOProduction($bountywid); + } + private function bountyLoadOTown($bountywid) { + global $database,$session,$logging,$technology; + $this->bountyinfoarray = $database->getOasisV($bountywid); + $this->bountyresarray = $database->getResourceLevel($bountywid); + $this->bountypop = 2; + + } + private function bountyLoadTown($bountywid) { + global $database,$session,$logging,$technology; + $this->bountyinfoarray = $database->getVillage($bountywid); + $this->bountyresarray = $database->getResourceLevel($bountywid); + $this->bountyoasisowned = $database->getOasis($bountywid); + $this->bountyocounter = $this->bountysortOasis(); + $this->bountypop = $this->bountyinfoarray['pop']; + + //$unitarray = $database->getUnit($bountywid); + //if(count($unitarray) > 0) { + // for($i=1;$i<=50;$i++) { + // $this->bountyunitall['u'.$i] = $unitarray['u'.$i]; + // } + //} + //$enforcearray = $database->getEnforceVillage($bountywid,0); + //if(count($enforcearray) > 0) { + // foreach($enforcearray as $enforce) { + // for($i=1;$i<=50;$i++) { + // $this->bountyunitall['u'.$i] += $enforce['u'.$i]; + // } + // } + //} + } + + private function bountysortOasis() { + $crop = $clay = $wood = $iron = 0; + foreach ($this->bountyoasisowned as $oasis) { + switch($oasis['type']) { + case 1: + case 2: + $wood += 1; + break; + case 3: + $wood += 1; + $crop += 1; + break; + case 4: + case 5: + $clay += 1; + break; + case 6: + $clay += 1; + $crop += 1; + break; + case 7: + case 8: + $iron += 1; + break; + case 9: + $iron += 1; + $crop += 1; + break; + case 10: + case 11: + $crop += 1; + break; + case 12: + $crop += 2; + break; + } + } + return array($wood,$clay,$iron,$crop); + } + + function getAllUnits($base) { + global $database; + $ownunit = $database->getUnit($base); + $enforcementarray = $database->getEnforceVillage($base,0); + if(count($enforcementarray) > 0) { + foreach($enforcementarray as $enforce) { + for($i=1;$i<=50;$i++) { + $ownunit['u'.$i] += $enforce['u'.$i]; + } + } + } + $movement = $database->getVillageMovement($base); + if(!empty($movement)) { + for($i=1;$i<=50;$i++) { + $ownunit['u'.$i] += $movement['u'.$i]; + } + } + return $ownunit; + } + + public function getUpkeep($array,$type) { + $upkeep = 0; + switch($type) { + case 0: + $start = 1; + $end = 50; + break; + case 1: + $start = 1; + $end = 10; + break; + case 2: + $start = 11; + $end = 20; + break; + case 3: + $start = 21; + $end = 30; + break; + case 4: + $start = 31; + $end = 40; + break; + case 5: + $start = 41; + $end = 50; + break; + } + for($i=$start;$i<=$end;$i++) { + $unit = "u".$i; + global $$unit; + $dataarray = $$unit; + $upkeep += $dataarray['pop'] * $array[$unit]; + } + return $upkeep; + } + private function bountycalculateOProduction($bountywid) { + global $technology,$database; + $this->bountyOproduction['wood'] = $this->bountyGetOWoodProd(); + $this->bountyOproduction['clay'] = $this->bountyGetOClayProd(); + $this->bountyOproduction['iron'] = $this->bountyGetOIronProd(); + $this->bountyOproduction['crop'] = $this->bountyGetOCropProd(); + } + private function bountycalculateProduction($bountywid,$uid) { + global $technology,$database; + $normalA = $database->getOwnArtefactInfoByType($bountywid,4); + $largeA = $database->getOwnUniqueArtefactInfo($uid,4,2); + $uniqueA = $database->getOwnUniqueArtefactInfo($uid,4,3); + $upkeep = $this->getUpkeep($this->getAllUnits($bountywid),0); + $this->bountyproduction['wood'] = $this->bountyGetWoodProd(); + $this->bountyproduction['clay'] = $this->bountyGetClayProd(); + $this->bountyproduction['iron'] = $this->bountyGetIronProd(); + if ($uniqueA['size']==3 && $uniqueA['owner']==$uid){ + $this->bountyproduction['crop'] = $this->bountyGetCropProd()-$this->bountypop-(($upkeep)-round($upkeep*0.50)); + + }else if ($normalA['type']==4 && $normalA['size']==1 && $normalA['owner']==$uid){ + $this->bountyproduction['crop'] = $this->bountyGetCropProd()-$this->bountypop-(($upkeep)-round($upkeep*0.25)); + + }else if ($largeA['size']==2 && $largeA['owner']==$uid){ + $this->bountyproduction['crop'] = $this->bountyGetCropProd()-$this->bountypop-(($upkeep)-round($upkeep*0.25)); + + }else{ + $this->bountyproduction['crop'] = $this->bountyGetCropProd()-$this->bountypop-$upkeep; + } + } + + private function bountyprocessProduction($bountywid) { + global $database; + $timepast = time() - $this->bountyinfoarray['lastupdate']; + $nwood = ($this->bountyproduction['wood'] / 3600) * $timepast; + $nclay = ($this->bountyproduction['clay'] / 3600) * $timepast; + $niron = ($this->bountyproduction['iron'] / 3600) * $timepast; + $ncrop = ($this->bountyproduction['crop'] / 3600) * $timepast; + $database->modifyResource($bountywid,$nwood,$nclay,$niron,$ncrop,1); + $database->updateVillage($bountywid); + } + private function bountyprocessOProduction($bountywid) { + global $database; + $timepast = time() - $this->bountyinfoarray['lastupdated']; + $nwood = ($this->bountyproduction['wood'] / 3600) * $timepast; + $nclay = ($this->bountyproduction['clay'] / 3600) * $timepast; + $niron = ($this->bountyproduction['iron'] / 3600) * $timepast; + $ncrop = ($this->bountyproduction['crop'] / 3600) * $timepast; + $database->modifyOasisResource($bountywid,$nwood,$nclay,$niron,$ncrop,1); + $database->updateOasis($bountywid); + } + + private function bountyGetWoodProd() { + global $bid1,$bid5,$session; + $wood = $sawmill = 0; + $woodholder = array(); + for($i=1;$i<=38;$i++) { + if($this->bountyresarray['f'.$i.'t'] == 1) { + array_push($woodholder,'f'.$i); + } + if($this->bountyresarray['f'.$i.'t'] == 5) { + $sawmill = $this->bountyresarray['f'.$i]; + } + } + for($i=0;$i<=count($woodholder)-1;$i++) { $wood+= $bid1[$this->bountyresarray[$woodholder[$i]]]['prod']; } + if($sawmill >= 1) { + $wood += $wood /100 * $bid5[$sawmill]['attri']; + } + if($this->bountyocounter[0] != 0) { + $wood += $wood*0.25*$this->bountyocounter[0]; + } +// $wood += $wood*$this->bountyocounter[0]*0.25; + $wood *= SPEED; + return round($wood); + } + private function bountyGetOWoodProd() { + global $session; + $wood = 0; + $wood += 40; + $wood *= SPEED; + return round($wood); + } + private function bountyGetOClayProd() { + global $session; + $clay = 0; + $clay += 40; + $clay *= SPEED; + return round($clay); + }private function bountyGetOIronProd() { + global $session; + $iron = 0; + $iron += 40; + $iron *= SPEED; + return round($iron); + } + + private function bountyGetOCropProd() { + global $session; + $crop = 0; + $clay += 40; + $crop *= SPEED; + return round($crop); + } + private function bountyGetClayProd() { + global $bid2,$bid6,$session; + $clay = $brick = 0; + $clayholder = array(); + for($i=1;$i<=38;$i++) { + if($this->bountyresarray['f'.$i.'t'] == 2) { + array_push($clayholder,'f'.$i); + } + if($this->bountyresarray['f'.$i.'t'] == 6) { + $brick = $this->bountyresarray['f'.$i]; + } + } + for($i=0;$i<=count($clayholder)-1;$i++) { $clay+= $bid2[$this->bountyresarray[$clayholder[$i]]]['prod']; } + if($brick >= 1) { + $clay += $clay /100 * $bid6[$brick]['attri']; + } + if($this->bountyocounter[1] != 0) { + $clay += $clay*0.25*$this->bountyocounter[1]; + } +// $clay += $clay*$this->bountyocounter[1]*0.25; + $clay *= SPEED; + return round($clay); + } + + private function bountyGetIronProd() { + global $bid3,$bid7,$session; + $iron = $foundry = 0; + $ironholder = array(); + for($i=1;$i<=38;$i++) { + if($this->bountyresarray['f'.$i.'t'] == 3) { + array_push($ironholder,'f'.$i); + } + if($this->bountyresarray['f'.$i.'t'] == 7) { + $foundry = $this->bountyresarray['f'.$i]; + } + } + for($i=0;$i<=count($ironholder)-1;$i++) { $iron+= $bid3[$this->bountyresarray[$ironholder[$i]]]['prod']; } + if($foundry >= 1) { + $iron += $iron /100 * $bid7[$foundry]['attri']; + } + if($this->bountyocounter[2] != 0) { + $iron += $iron*0.25*$this->bountyocounter[2]; + } +// $iron += $iron*$this->bountyocounter[2]*0.25; + $iron *= SPEED; + return round($iron); + } + + private function bountyGetCropProd() { + global $bid4,$bid8,$bid9,$session; + $crop = $grainmill = $bakery = 0; + $cropholder = array(); + for($i=1;$i<=38;$i++) { + if($this->bountyresarray['f'.$i.'t'] == 4) { + array_push($cropholder,'f'.$i); + } + if($this->bountyresarray['f'.$i.'t'] == 8) { + $grainmill = $this->bountyresarray['f'.$i]; + } + if($this->bountyresarray['f'.$i.'t'] == 9) { + $bakery = $this->bountyresarray['f'.$i]; + } + } + for($i=0;$i<=count($cropholder)-1;$i++) { $crop+= $bid4[$this->bountyresarray[$cropholder[$i]]]['prod']; } + if($grainmill >= 1) { + $crop += $crop /100 * $bid8[$grainmill]['attri']; + } + if($bakery >= 1) { + $crop += $crop /100 * $bid9[$bakery]['attri']; + } + if($this->bountyocounter[3] != 0) { + $crop += $crop*0.25*$this->bountyocounter[3]; + } + +// $crop += $crop*$this->bountyocounter[3]*0.25; + $crop *= SPEED; + return round($crop); + } + + private function trainingComplete() { + global $database; + $ourFileHandle = @fopen("GameEngine/Prevention/training.txt", 'w'); + @fclose($ourFileHandle); + $trainlist = $database->getTrainingList(); + if(count($trainlist) > 0) { + foreach($trainlist as $train) { + $database->updateTraining($train['id'],0); + $trained = 0; + if($train['eachtime'] == 0) { $train['eachtime'] = 1; } + $timepast = $train['timestamp'] - $train['commence']; + if ($timepast >= 0) { + $trained = floor($timepast/$train['eachtime']); + $pop = $train['pop'] * $trained; + if($trained >= $train['amt']) { + $trained = $train['amt']; + } + $database->modifyUnit($train['vref'],array(($train['unit']>60?$train['unit']-60:$train['unit'])),array($trained),array(1)); + if($train['amt']-$trained <= 0) { + $database->trainUnit($train['id'],0,0,0,0,1,1); + } + if($trained > 0) { + $database->modifyCommence($train['id']); + } + $database->updateTraining($train['id'],$trained); + } + } + } + if(file_exists("GameEngine/Prevention/training.txt")) { + @unlink("GameEngine/Prevention/training.txt"); + } + } + + private function procDistanceTime($coor,$thiscoor,$ref,$mode) { + global $bid14,$database,$generator; + $resarray = $database->getResourceLevel($generator->getBaseID($coor['x'],$coor['y'])); + $xdistance = ABS($thiscoor['x'] - $coor['x']); + if($xdistance > WORLD_MAX) { + $xdistance = (2*WORLD_MAX+1) - $xdistance; + } + $ydistance = ABS($thiscoor['y'] - $coor['y']); + if($ydistance > WORLD_MAX) { + $ydistance = (2*WORLD_MAX+1) - $ydistance; + } + $distance = SQRT(POW($xdistance,2)+POW($ydistance,2)); + if(!$mode) { + if($ref == 1) { + $speed = 16; + } + else if($ref == 2) { + $speed = 12; + } + else if($ref == 3) { + $speed = 24; + } + else if($ref == 300) { + $speed = 5; + } + else { + $speed = 1; + } + } + else { + $speed = $ref; + if($this->getsort_typeLevel(14,$resarray) != 0) { + $speed = $distance <= TS_THRESHOLD ? $speed : $speed * ( ( TS_THRESHOLD + ( $distance - TS_THRESHOLD ) * $bid14[$this->getsort_typeLevel(14,$resarray)]['attri'] / 100 ) / $distance ) ; + } + } + + + return round(($distance/$speed) * 3600 / INCREASE_SPEED); + + } + + private function getsort_typeLevel($tid,$resarray) { + + + global $village; + $keyholder = array(); + foreach(array_keys($resarray,$tid) as $key) { + if(strpos($key,'t')) { + $key = preg_replace("/[^0-9]/", '', $key); + array_push($keyholder, $key); + } + } + $element = count($keyholder); + if($element >= 2) { + if($tid <= 4) { + $temparray = array(); + for($i=0;$i<=$element-1;$i++) { + array_push($temparray,$resarray['f'.$keyholder[$i]]); + } + foreach ($temparray as $key => $val) { + if ($val == max($temparray)) + $target = $key; + } + } + else { + for($i=0;$i<=$element-1;$i++) { + //if($resarray['f'.$keyholder[$i]] != $this->getsort_typeMaxLevel($tid)) { + // $target = $i; + //} + } + } + } + else if($element == 1) { + $target = 0; + } + else { + return 0; + } + if($keyholder[$target] != "") { + return $resarray['f'.$keyholder[$target]]; + } + else { + return 0; + } + } + + private function celebrationComplete() { + global $database; + $ourFileHandle = @fopen("GameEngine/Prevention/celebration.txt", 'w'); + @fclose($ourFileHandle); + + $varray = $database->getCel(); + foreach($varray as $vil){ + $id = $vil['wref']; + $type = $vil['type']; + $user = $vil['owner']; + if($type == 1){$cp = 500;}else if($type == 2){$cp = 2000;} + $database->clearCel($id); + $database->setCelCp($user,$cp); + } + if(file_exists("GameEngine/Prevention/celebration.txt")) { + @unlink("GameEngine/Prevention/celebration.txt"); + } + } + +private function demolitionComplete() { + global $building,$database; + $ourFileHandle = @fopen("GameEngine/Prevention/demolition.txt", 'w'); + @fclose($ourFileHandle); + + $varray = $database->getDemolition(); + foreach($varray as $vil) { + if ($vil['timetofinish'] <= time()) { + $type = $database->getFieldType($vil['vref'],$vil['buildnumber']); + $level = $database->getFieldLevel($vil['vref'],$vil['buildnumber']); + $buildarray = $GLOBALS["bid".$type]; + if ($type==10 || $type==38) { + $q = "UPDATE ".TB_PREFIX."vdata SET `maxstore`=`maxstore`-".$buildarray[$level]['attri']." WHERE wref=".$vil['vref']; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata SET `maxstore`=800 WHERE `maxstore`<= 800 AND wref=".$vil['vref']; + $database->query($q); + } + if ($type==11 || $type==39) { + $q = "UPDATE ".TB_PREFIX."vdata SET `maxcrop`=`maxcrop`-".$buildarray[$level]['attri']." WHERE wref=".$vil['vref']; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."vdata SET `maxcrop`=800 WHERE `maxcrop`<=800 AND wref=".$vil['vref']; + $database->query($q); + } + if ($level==1) { $clear=",f".$vil['buildnumber']."t=0"; } else { $clear=""; } + $q = "UPDATE ".TB_PREFIX."fdata SET f".$vil['buildnumber']."=".($level-1).$clear." WHERE vref=".$vil['vref']; + $database->query($q); + $pop=$this->getPop($type,$level-1); + $database->modifyPop($vil['vref'],$pop[0],1); + $database->delDemolition($vil['vref']); + } + } + if(file_exists("GameEngine/Prevention/demolition.txt")) { + @unlink("GameEngine/Prevention/demolition.txt"); + } + } + +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(); + if(!empty($harray)) { + foreach($harray as $hdata) { + if((time()-$hdata['lastupdate'])>=1) { + if($hdata['health']<100 and $hdata['health']>0) { + $reg = $hdata['health']+$hdata['regeneration']*5*SPEED/86400*(time()-$hdata['lastupdate']); + if($reg <= 100) { + $database->modifyHero("health",$reg,$hdata['heroid']); + }else{ + $database->modifyHero("health",100,$hdata['heroid']); + } + } + $database->modifyHero("lastupdate",time(),$hdata['heroid']); + } + if ($hdata['experience'] > $hero_levels[$hdata['level']+1]) { + mysql_query("UPDATE " . TB_PREFIX ."hero SET level = level + 1 WHERE heroid = '".$hdata['heroid']."'"); + mysql_query("UPDATE " . TB_PREFIX ."hero SET points = points + 5 WHERE heroid = '".$hdata['heroid']."'"); + } + if($hdata['health']==0) { + mysql_query("UPDATE " . TB_PREFIX ."hero SET dead = '1' WHERE heroid = '".$hdata['heroid']."'"); + mysql_query("UPDATE " . TB_PREFIX ."units SET hero = '0' WHERE vref = '".$hdata['wref']."'"); + } + } + } + if(file_exists("GameEngine/Prevention/updatehero.txt")) { + @unlink("GameEngine/Prevention/updatehero.txt"); + } + + +} +} +$automation = new Automation; +?> diff --git a/GameEngine/BBCode.php b/GameEngine/BBCode.php new file mode 100644 index 00000000..15334b59 --- /dev/null +++ b/GameEngine/BBCode.php @@ -0,0 +1,183 @@ +$1"; +$replace[1] = "$1"; +$replace[2] = "$1"; +$replace[3] = "Legionnaire"; +$replace[4] = "Praetorian"; +$replace[5] = "Imperian"; +$replace[6] = "Equites Legati"; +$replace[7] = "Equites Imperatoris"; +$replace[8] = "Equites Caesaris"; +$replace[9] = "Battering Ram"; +$replace[10] = "Fire Catapult"; +$replace[11] = "Senator"; +$replace[12] = "Settler"; +$replace[13] = "Clubswinger"; +$replace[14] = "Spearman"; +$replace[15] = "Axeman"; +$replace[16] = "Scout"; +$replace[17] = "Paladin"; +$replace[18] = "Teutonic Knight"; +$replace[19] = "Ram"; +$replace[20] = "Catapult"; +$replace[21] = "Chief"; +$replace[22] = "Settler"; +$replace[23] = "Phalanx"; +$replace[24] = "Swordsman"; +$replace[25] = "Pathfinder"; +$replace[26] = "Theutates Thunder"; +$replace[27] = "Druidrider"; +$replace[28] = "Haeduan"; +$replace[29] = "Ram"; +$replace[30] = "Trebuchet"; +$replace[31] = "Chieftain"; +$replace[32] = "Settler"; +$replace[33] = "Rat"; +$replace[34] = "Spider"; +$replace[35] = "Snake"; +$replace[36] = "Bat"; +$replace[37] = "Wild Boar"; +$replace[38] = "Wolf"; +$replace[39] = "Bear"; +$replace[40] = "Crocodile"; +$replace[41] = "Tiger"; +$replace[42] = "Elephant"; +$replace[43] = "Pikeman"; +$replace[44] = "Thorned Warrior"; +$replace[45] = "Guardsman"; +$replace[46] = "Birds Of Prey"; +$replace[47] = "Axerider"; +$replace[48] = "Natarian Knight"; +$replace[49] = "War Elephant"; +$replace[50] = "Ballista"; +$replace[51] = "Natarian Emperor"; +$replace[52] = "Settler"; +$replace[53] = "Hero"; +$replace[54] = "Lumber"; +$replace[55] = "Clay"; +$replace[56] = "Iron"; +$replace[57] = "Crop"; +$replace[58] = "*aha*"; +$replace[59] = "*angry*"; +$replace[60] = "*cool*"; +$replace[61] = "*cry*"; +$replace[62] = "*cute*"; +$replace[63] = "*depressed*"; +$replace[64] = "*eek*"; +$replace[65] = "*ehem*"; +$replace[66] = "*emotional*"; +$replace[67] = ":D"; +$replace[68] = ":)"; +$replace[69] = "*hit*"; +$replace[70] = "*hmm*"; +$replace[71] = "*hmpf*"; +$replace[72] = "*hrhr*"; +$replace[73] = "*huh*"; +$replace[74] = "*lazy*"; +$replace[75] = "*love*"; +$replace[76] = "*nocomment*"; +$replace[77] = "*noemotion*"; +$replace[78] = "*notamused*"; +$replace[79] = "*pout*"; +$replace[80] = "*redface*"; +$replace[81] = "*rolleyes*"; +$replace[82] = ":("; +$replace[83] = "*shy*"; +$replace[84] = "*smile*"; +$replace[85] = "*tongue*"; +$replace[86] = "*veryangry*"; +$replace[87] = "*veryhappy*"; +$replace[88] = ";)"; +$bbcoded = preg_replace($pattern, $replace, $input); +?> \ No newline at end of file diff --git a/GameEngine/Battle.php b/GameEngine/Battle.php new file mode 100644 index 00000000..412fa092 --- /dev/null +++ b/GameEngine/Battle.php @@ -0,0 +1,850 @@ + 0) { + if($post['palast'] == "") { + $post['palast'] = 0; + } + if(isset($post['wall1']) && $post['wall1'] == "") { + $post['wall1'] = 0; + } + if(isset($post['wall2']) && $post['wall2'] == "") { + $post['wall2'] = 0; + } + if(isset($post['wall3']) && $post['wall3'] == "") { + $post['wall3'] = 0; + }if(isset($post['wall4']) && $post['wall4'] == "") { + $post['wall4'] = 0; + }if(isset($post['wall5']) && $post['wall5'] == "") { + $post['wall5'] = 0; + } + $post['tribe'] = $target[0]; + $_POST['result'] = $this->simulate($post); + $form->valuearray = $post; + } + } + } + } + private function getBattleHero($uid) { + global $database; + $heroarray = $database->getHero($uid); + $herodata = $GLOBALS["h".$heroarray[0]['unit']]; + + $h_atk = $herodata['atk'] + 5 * floor($heroarray[0]['attack'] * $herodata['atkp'] / 5); + $h_di = $herodata['di'] + 5 * floor($heroarray[0]['defence'] * $herodata['dip'] / 5); + $h_dc = $herodata['dc'] + 5 * floor($heroarray[0]['defence'] * $herodata['dcp'] / 5); + $h_ob = 1 + 0.002 * $heroarray[0]['attackbonus']; + $h_db = 1 + 0.002 * $heroarray[0]['defencebonus']; + + return array('heroid'=>$heroarray[0]['heroid'],'unit'=>$heroarray[0]['unit'],'atk'=>$h_atk,'di'=>$h_di,'dc'=>$h_dc,'ob'=>$h_ob,'db'=>$h_db,'health'=>$heroarray['health']); + } + private function simulate($post) { + // Establecemos los arrays con las unidades del atacante y defensor + $attacker = array('u1'=>0,'u2'=>0,'u3'=>0,'u4'=>0,'u5'=>0,'u6'=>0,'u7'=>0,'u8'=>0,'u9'=>0,'u10'=>0,'u11'=>0,'u12'=>0,'u13'=>0,'u14'=>0,'u15'=>0,'u16'=>0,'u17'=>0,'u18'=>0,'u19'=>0,'u20'=>0,'u21'=>0,'u22'=>0,'u23'=>0,'u24'=>0,'u25'=>0,'u26'=>0,'u27'=>0,'u28'=>0,'u29'=>0,'u30'=>0,'u31'=>0,'u32'=>0,'u33'=>0,'u34'=>0,'u35'=>0,'u36'=>0,'u37'=>0,'u38'=>0,'u39'=>0,'u40'=>0,'u41'=>0,'u42'=>0,'u43'=>0,'u44'=>0,'u45'=>0,'u46'=>0,'u47'=>0,'u48'=>0,'u49'=>0,'u50'=>0); + $start = ($post['a1_v']-1)*10+1; + $att_ab = array('a1'=>0,'a2'=>0,'a3'=>0,'a4'=>0,'a5'=>0,'a6'=>0,'a7'=>0,'a8'=>0); + $def_ab = array('b1'=>0,'b2'=>0,'b3'=>0,'b4'=>0,'b5'=>0,'b6'=>0,'b7'=>0,'b8'=>0); + $index = 1; + for($i=$start;$i<=($start+9);$i++) { + $attacker['u'.$i] = $post['a1_'.$index]; + if($index <=8) { + $att_ab['a'.$index] = $post['f1_'.$index]; + } + $index += 1; + } + $defender = array(); + for($i=1;$i<=50;$i++) { + if(isset($post['a2_'.$i]) && $post['a2_'.$i] != "") { + $defender['u'.$i] = $post['a2_'.$i]; + } + else { + $defender['u'.$i] = 0; + } + } + $deftribe = $post['tribe']; + $wall = 0; + switch($deftribe) { + case 1: + for($i=1;$i<=8;$i++) { + $def_ab['b'.$i] = $post['f2_'.$i]; + } + $wall = $post['wall1']; + break; + case 2: + for($i=11;$i<=18;$i++) { + $def_ab['b'.$i] = $post['f2_'.$i]; + } + $wall = $post['wall2']; + break; + case 3: + for($i=21;$i<=28;$i++) { + $def_ab['b'.$i] = $post['f2_'.$i]; + } + $wall = $post['wall3']; + break; + case 4: + for($i=31;$i<=38;$i++) { + $def_ab['b'.$i] = $post['f2_'.$i]; + } + $wall = $post['wall4']; + break; + case 5: + for($i=41;$i<=48;$i++) { + $def_ab['b'.$i] = $post['f2_'.$i]; + } + $wall = $post['wall5']; + break; + } + if($post['kata'] == "") { + $post['kata'] = 0; + } + + // check scout + + $scout = 1; + for($i=$start;$i<=($start+9);$i++) { + if($i == 4 || $i == 14 || $i == 23 || $i == 34 || $i == 44) + {} + else{ + if($attacker['u'.$i]>0) { + $scout = 0; + break; + } + } + } + + if(!$scout) + return $this->calculateBattle($attacker,$defender,$wall,$post['a1_v'],$deftribe,$post['palast'],$post['ew1'],$post['ew2'],$post['ktyp']+3,$def_ab,$att_ab,$post['kata'],1); + else + return $this->calculateBattle($attacker,$defender,$wall,$post['a1_v'],$deftribe,$post['palast'],$post['ew1'],$post['ew2'],1,$def_ab,$att_ab,$post['kata'],1); + } + + + //1 raid 0 normal + function calculateBattle($Attacker,$Defender,$def_wall,$att_tribe,$def_tribe,$residence,$attpop,$defpop,$type,$def_ab,$att_ab,$tblevel,$stonemason,$walllevel) { + global $bid34; + // Definieer de array met de eenheden + $calvary = array(4,5,6,15,16,23,24,25,26,35,36,45,46); + $catapult = array(8,18,28,38,48); + $rams = array(7,17,27,37,47); + $catp = $ram = 0; + // Array om terug te keren met het resultaat van de berekening + $result = array(); + $involve = 0; + $winner = false; + // bij 0 alle deelresultaten + $cap = $ap = $dp = $cdp = $rap = $rdp = 0; + + //exit($type); + + if ($Attacker['uhero'] != 0) + { + //exit($Attacker['id']); + $atkhero= $this->getBattleHero($Attacker['id']); + } + + if ($Defender['uhero'] != 0) + { + //exit($Defender['id']); + $defhero= $this->getBattleHero($Defender['id']); + } + // Berekenen het totaal aantal punten van Aanvaller + $start = ($att_tribe-1)*10+1; + $end = ($att_tribe*10); + + $abcount = 1; + + if($type == 1) + { + for($i=$start;$i<=$end;$i++) { + global ${'u'.$i}; + + if($abcount <= 8 && $att_ab['a'.$abcount] > 0) { + + $ap += (35 + ( 35 + 300 * ${'u'.$i}['pop'] / 7) * (pow(1.007, $att_ab['a'.$abcount]) - 1)) * $Attacker['u'.$i]; + + } + else { + $ap += $Attacker['u'.$i] * 35; + } + + $abcount +=1; + + $units['Att_unit'][$i] = $Attacker['u'.$i]; + } + if ($Attacker['uhero'] != 0){ + $ap += $atkhero['atk'] * 35; + $ap = $ap * $atkhero['ob']; + } + } + else + { + for($i=$start;$i<=$end;$i++) { + global ${'u'.$i}; + + if($abcount <= 8 && $att_ab['a'.$abcount] > 0) { + if(in_array($i,$calvary)) { + $cap += (${'u'.$i}['atk'] + (${'u'.$i}['atk'] + 300 * ${'u'.$i}['pop'] / 7) * (pow(1.007, $att_ab['a'.$abcount]) - 1)) * $Attacker['u'.$i]; + } + else { + $ap += (${'u'.$i}['atk'] + (${'u'.$i}['atk'] + 300 * ${'u'.$i}['pop'] / 7) * (pow(1.007, $att_ab['a'.$abcount]) - 1)) * $Attacker['u'.$i]; + } + } + else { + if(in_array($i,$calvary)) { + $cap += $Attacker['u'.$i]*${'u'.$i}['atk']; + } + else { + $ap += $Attacker['u'.$i]*${'u'.$i}['atk']; + } + } + + + $abcount +=1; + // Punten van de catavult van de aanvaller + if(in_array($i,$catapult)) { + $catp += $Attacker['u'.$i]; + } + // Punten van de Rammen van de aanvaller + if(in_array($i,$rams)) + { + $ram += $Attacker['u'.$i]; + } + $involve += $Attacker['u'.$i]; + $units['Att_unit'][$i] = $Attacker['u'.$i]; + } + + if ($Attacker['uhero'] != 0) + { + $units['Att_unit']['hero'] = $Attacker['uhero']; + $cap += $Attacker['uhero']*$atkhero['atk']; + $ap += $Attacker['uhero']*$atkhero['atk']; + $ap = $ap * $atkhero['ob']; + $cap = $cap * $atkhero['ob']; + } + + } + + // + // Berekent het totaal aantal punten van de Defender + // + $start = ($def_tribe-1)*10+1; + $end = ($def_tribe*10); + + $abcount = 1; + + if($type == 1) + { + for($y=4;$y<=44;$y++) { + if($y == 4 || $y == 14 || $y == 23 || $y == 34 || $y == 44) + { + global ${'u'.$y}; + if($y >= $start && $y <= ($end-2) && $def_ab['b'.$abcount] > 0) { + $dp += (20 + (20 + 300 * ${'u'.$y}['pop'] / 7) * (pow(1.007, $def_ab['b'.$y]) - 1)) * $Defender['u'.$y]; + $abcount +=1; + } + else { + $dp += $Defender['u'.$y]*20; + } + $units['Def_unit'][$y] = $Defender['u'.$y]; + } + if ($Defender['uhero'] != 0){ + $dp += $defhero['di'] * 35; + $dp = $dp * $defhero['db']; + } + } + } + + else + { + for($y=1;$y<=50;$y++) { + global ${'u'.$y}; + if($y >= $start && $y <= ($end-2) && $def_ab['b'.$abcount] > 0) { + $dp += (${'u'.$y}['di'] + (${'u'.$y}['di'] + 300 * ${'u'.$y}['pop'] / 7) * (pow(1.007, $def_ab['b'.$y]) - 1)) * $Defender['u'.$y]; + $cdp += (${'u'.$y}['dc'] + (${'u'.$y}['dc'] + 300 * ${'u'.$y}['pop'] / 7) * (pow(1.007, $def_ab['b'.$y]) - 1)) * $Defender['u'.$y]; + $abcount +=1; + } + else { + $dp += $Defender['u'.$y]*${'u'.$y}['di']; + $cdp += $Defender['u'.$y]*${'u'.$y}['dc']; + } + $involve += $Defender['u'.$y]; + $units['Def_unit'][$y] = $Defender['u'.$y]; + } + if ($Defender['uhero'] != 0) + { + $units['Def_unit']['hero'] = $Defender['uhero']; + $cdp += $Defender['uhero']*$defhero['dc']; + $dp += $Defender['uhero']*$defhero['di']; + $dp = $dp * $defhero['db']; + $cdp = $cdp * $defhero['db']; + } + } + + // + // Formule voor de berekening van de bonus verdedigingsmuur "en" Residence "; + // + if($def_wall > 0) { + // Stel de factor berekening voor de "Muur" als het type van de beschaving + // Factor = 1030 Romeinse muur + // Factor = 1020 Wall Germanen + // Factor = 1025 Wall Galliers + $factor = ($def_tribe == 1)? 1.030 : (($def_tribe == 2)? 1.020 : 1.025); + // Defense Infanterie = infanterie * Muur (%) + $dp *= pow($factor,$def_wall); + // Defensa Cavelerie = Cavelerie * Muur (%) + $cdp *= pow($factor,$def_wall); + + // Berekening van de Basic defence bonus "Residence" + $dp += ((2*(pow($residence,2)))*(pow($factor,$def_wall))); + $cdp += ((2*(pow($residence,2)))*(pow($factor,$def_wall))); + } + else + { + // Berekening van de Basic defence bonus "Residence" + $dp += (2*(pow($residence,2))); + $cdp += (2*(pow($residence,2))); + } + + // + // Formule voor het berekenen van punten aanvallers (Infanterie & Cavalry) + // + $rap = $ap+$cap; + // + // Formule voor de berekening van Defensive Punten + // + if ($rap==0) + $rdp = ($dp) + ($cdp) + 10; + else + $rdp = ($dp * ($ap/$rap)) + ($cdp * ($cap/$rap)) + 10; + // + // En de Winnaar is....: + // + $result['Attack_points'] = $rap; + $result['Defend_points'] = $rdp; + + $winner = ($rap > $rdp); + + $result['Winner'] = ($winner)? "attacker" : "defender"; + + // Formule voor de berekening van de Moraal + if($attpop > $defpop) { + if ($rap < $rdp) { + $moralbonus = min(1.5, pow($attpop / $defpop, (0.2*($rap/$rdp)))); + } + else { + $moralbonus = min(1.5, pow($attpop / $defpop, 0.2)); + } + } + else { + $moralbonus = 1.0; + } + + if($involve >= 1000) { + $Mfactor = round(2*(1.8592-pow($involve,0.015)),4); + } + else { + $Mfactor = 1.5; + } + // Formule voor het berekenen verloren drives + // $type = 1 Raid, 0 Normal + if($type == 1) + { + $holder = pow((($rdp*$moralbonus)/$rap),$Mfactor); + $holder = $holder / (1 + $holder); + // Attacker + $result[1] = $holder; + + // Defender + $result[2] = 0; + } + else if($type == 2) + { + + } + else if($type == 4) { + $holder = ($winner) ? pow((($rdp*$moralbonus)/$rap),$Mfactor) : pow(($rap/($rdp*$moralbonus)),$Mfactor); + $holder = $holder / (1 + $holder); + // Attacker + $result[1] = $winner ? $holder : 1 - $holder; + // Defender + $result[2] = $winner ? 1 - $holder : $holder; + $ram -= round($ram*$result[1]/100); + $catp -= round($catp*$result[1]/100); + } + else if($type == 3) + { + // Attacker + $result[1] = ($winner)? pow((($rdp*$moralbonus)/$rap),$Mfactor) : 1; + $result[1] = round($result[1],8); + + // Defender + $result[2] = (!$winner)? pow(($rap/($rdp*$moralbonus)),$Mfactor) : 1; + $result[2] = round($result[2],8); + // Als aangevallen met "Hero" + $ku = ($att_tribe-1)*10+9; + $kings = $Attacker['u'.$ku]; + + $aviables= $kings-round($kings*$result[1]); + if ($aviables>0){ + switch($aviables){ + case 1: + $fealthy = rand(20,30); + break; + case 2: + $fealthy = rand(40,60); + break; + case 3: + $fealthy = rand(60,80); + break; + case 4: + $fealthy = rand(80,100); + break; + default: + $fealthy = 100; + break; + } + $result['hero_fealthy'] = $fealthy; + } + $ram -= ($winner)? round($ram*$result[1]/100) : round($ram*$result[2]/100); + $catp -= ($winner)? round($catp*$result[1]/100) : round($catp*$result[2]/100); + + } + // Formule voor de berekening van katapulten nodig + if($catp > 0 && $tblevel != 0) { + $wctp = pow(($rap/$rdp),1.5); + $wctp = ($wctp >= 1)? 1-0.5/$wctp : 0.5*$wctp; + $wctp *= $catp; + + $need = round((($moralbonus * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$att_ab['a8']))/200) / (1 * $bid34[$stonemason]['attri']/100))) + 0.5); + // Aantal katapulten om het gebouw neer te halen + $result[3] = $need; + // Aantal Katapulten die handeling + $result[4] = $wctp; + $result[5] = $moralbonus; + $result[6] = $att_ab['a8']; + } + if($ram > 0 && $walllevel != 0) { + $wctp = pow(($rap/$rdp),1.5); + $wctp = ($wctp >= 1)? 1-0.5/$wctp : 0.5*$wctp; + $wctp *= $ram; + + $need = round((($moralbonus * (pow($walllevel,2) + $walllevel + 1)) / (8 * (round(200 * pow(1.0205,$att_ab['a7']))/200) / (1 * $bid34[$stonemason]['attri']/100))) + 0.5); + // Aantal katapulten om het gebouw neer te halen + $result[7] = $need; + + // Aantal Katapulten die handeling + $result[8] = $wctp; + } + + $result[6] = pow($rap/$rdp*$moralbonus,$Mfactor); + + $total_att_units = count($units['Att_unit']); + $start = intval(($att_tribe-1)*10+1); + $end = intval(($att_tribe*10)); + //exit($start."|".$end."|".$att_tribe); + //$y=1; + for($i=$start;$i <= $end;$i++) + { + $y = $i-(($att_tribe-1)*10); + //exit(intval("$y")); + $result['casualties_attacker'][$y] = round($result[1]*$units['Att_unit'][$i]); + //$y++; + //exit($result['casualties_attacker'][$y]); + + } + //$result['casualties_attacker']['11'] = 0; + //exit($result['casualties_attacker']['2']); + //$_hero=11; + if ($units['Att_unit']['hero']>0) + { + + $_result=mysql_query("select * from " . TB_PREFIX . "hero where `dead`='0' and `heroid`='".$atkhero['heroid']."'"); + $fdb = mysql_fetch_array($_result); + $hero_id=$fdb['heroid']; + $hero_health=$fdb['health']; + $damage_health=round(100*$result[1]); + //exit($damage_health."|".$hero_health."|".$atkhero['heroid']); + if ($hero_health<=$damage_health) + { + //hero die + $result['casualties_attacker']['11'] = 1; + mysql_query("update " . TB_PREFIX . "hero set `dead`='1' where `heroid`='".$hero_id."'"); + } + else + { + mysql_query("update " . TB_PREFIX . "hero set `health`=`health`-".$damage_health." where `heroid`='".$hero_id."'"); + } + } + + //exit($result['casualties_attacker']['11']); + //$result['casualties_attacker'][11] = round($result[1]*$units['Att_unit']['hero']); + + //$result['casualties_defender']['11'] = 0; + //exit($result['casualties_defender']['2']); + //$_hero=11; + if ($units['Def_unit']['hero']>0) + { + + $_result=mysql_query("select * from " . TB_PREFIX . "hero where `dead`='0' and `heroid`='".$defhero['heroid']."'"); + $fdb = mysql_fetch_array($_result); + $hero_id=$fdb['heroid']; + $hero_health=$fdb['health']; + $damage_health=round(100*$result[1]); + //exit($damage_health."|".$hero_health."|".$defhero['heroid']); + if ($hero_health<=$damage_health) + { + //hero die + $result['casualties_defender']['11'] = 1; + mysql_query("update " . TB_PREFIX . "hero set `dead`='1' where `heroid`='".$hero_id."'"); + mysql_query("update " . TB_PREFIX . "hero set `health`='0' where `heroid`='".$hero_id."'"); + } + else + { + mysql_query("update " . TB_PREFIX . "hero set `health`=`health`-".$damage_health." where `heroid`='".$hero_id."'"); + } + } + //exit($result['casualties_defender']['11']); + //$result['casualties_defender'][11] = round($result[1]*$units['Def_unit']['hero']); + + + // Work out bounty + $start = ($att_tribe-1)*10+1; + $end = ($att_tribe*10); + + $max_bounty = 0; + + for($i=$start;$i<=$end;$i++) { + $y = $i-(($att_tribe-1)*10); + + $max_bounty += ($Attacker['u'.$i]-$result['casualties_attacker'][$y])*${'u'.$i}['cap']; + + } + + $result['bounty'] = $max_bounty; + + + return $result; + } + + public function resolveConflict($data) { + global $database,$units,$unitsbytype; + $UnitChief = $UnitRam = $UnitCatapult = 0; + $attacker_count = $attack_infantry = $attack_cavalry = $attack_scout = $rams = $catapults = 0; + $defender_count = $defense_infantry = $defense_cavalry = $defense_scout = $defense_heros = 0; + $DefenderFieldsArray = $ResourceImprovementArray = $TrapperArray = array(); + $FieldPalRes = $BonusPalRes = $BonusStoneMason = $BonusArtefactDurability = 0; + $ExperienceAttacker = $ExperienceDefender = 0; + $RecountReqd = $AllDefendersDead = False; + + $AttackArrivalTime = $data['endtime']; + $AttackerData = $database->getVillageBattleData($data['from']); + $AttackerData['pop'] = $database->getPopulation($AttackerData['id']); + $Blacksmith = $database->getABTech($data['from']); + + for($i=1;$i<=11;$i++) { $attacker_count += $data['t'.$i]; } + if($data['type'] != 1) { + // Trap attacking troops if this is not a scouting mission + } + + for($i=1;$i<=10;$i++) { + if($data['t'.$i] > 0) { + $unit = ($AttackerData['tribe']-1)*10+$i; + $unitdata = $GLOBALS['u'.$unit]; + if(in_array($unit,$unitsbytype['cavalry'])) { + $attack_cavalry += $data['t'.$i] * ($unitdata['atk'] + ($unitdata['atk'] + 300 * $unitdata['pop'] / 7) * (pow(1.007,$Blacksmith['b'.$i]) - 1)); + } else { + $attack_infantry += $data['t'.$i] * ($unitdata['atk'] + ($unitdata['atk'] + 300 * $unitdata['pop'] / 7) * (pow(1.007,$Blacksmith['b'.$i]) - 1)); + } + if(in_array($unit,$unitsbytype['scout'])) { + $attack_scout = $data['t'.$i] * 35 * pow(1.021,$Blacksmith['b'.$i]); + } + if(in_array($unit,$unitsbytype['chief'])) { $UnitChief = $i; } + if(in_array($unit,$unitsbytype['ram'])) { $UnitRam = $i; } + if(in_array($unit,$unitsbytype['catapult'])) { $UnitCatapult = $i; } + } + } + if($data['t11'] == 1 && $data['type'] != 1) { + $heroarrayAttacker = $this->getBattleHero($AttackerData['id']); + if(in_array($heroarrayAttacker['unit'],$unitsbytype['cavalry'])) { + $attack_cavalry += $heroarrayAttacker['atk']; + } else { + $attack_infantry += $heroarrayAttacker['atk']; + } + $attack_infantry *= $heroarrayAttacker['ob']; + $attack_cavalry *= $heroarrayAttacker['ob']; + } + $attack_total = $attack_infantry + $attack_cavalry; + if($attacker_count == 1 && $attack_total < 83 && $data['type'] != 1) { + // kill the single non-scout low level attacker due to basic village defense + } + + if ($database->isVillageOases($id) == 0) { + $DefenderData = $database->getVillageBattleData($data['to']); + $DefenderData['pop'] = $database->getPopulation($DefenderData['id']); + $IsOasis = False; + } else { + $OasisData = $database->getOMInfo($data['to']); + $IsOasis = True; + if($OasisData['conqured'] == 0) { + $DefenderData['pop'] = 500; + } else { + $DefenderData['pop'] = $database->getPopulation($OasisData['conqured']); + } + $DefenderData['tribe'] = 4; + $DefenderData['wall'] = 0; + } + $DefenderUnits = $database->getUnit($data['to']); + $DefendersAll = $database->getEnforceVillage($data['to'],0); + array_unshift($DefendersAll,$DefenderUnits); + foreach($DefendersAll as $defenders) { + $definf = $defcav = 0; + if(!empty($Armoury)) { reset($Armoury); } + $Armoury = $defenders['from'] != $defenders['vref'] ? $database->getABTech($defenders['from']) : $database->getABTech($defenders['vref']); + for($i=1;$i<=50;$i++) { + if($defenders['u'.$i] > 0) { + if(!empty($unitdata)) { reset($unitdata); } + $unitdata = $GLOBALS['u'.$i]; + $definf += $defenders['u'.$i] * ($unitdata['di'] + ($unitdata['di'] + 300 * $unitdata['pop'] / 7) * (pow(1.007,$Armoury['a'.($i%10)]) - 1)); + $defcav += $defenders['u'.$i] * ($unitdata['dc'] + ($unitdata['dc'] + 300 * $unitdata['pop'] / 7) * (pow(1.007,$Armoury['a'.($i%10)]) - 1)); + if(in_array($i,$unitsbytype['scout'])) { + $defense_scout += $defenders['u'.$i] * 20 * pow(1.03,$Armoury['a'.($i%10)]); + } + $defender_count += $defenders['u'.$i]; + } + } + if($defenders['hero'] == 1 && $data['type'] != 1) { + if(!empty($heroarray)) { reset($heroarray); } + if($defender['vref'] == $data['to']) { + $heroarray = $this->getBattleHero($DefenderData['id']); + } else { + $ReinforcerData = $database->getVillageBattleData($defenders['from']); + $heroarray = $this->getBattleHero($ReinforcerData['id']); + } + $definf = ($definf + $heroarray['di']) * $heroarray['db']; + $defcav = ($defcav + $heroarray['dc']) * $heroarray['db']; + $defense_heros++; + } + $defense_infantry += $definf; + $defense_cavalry += $defcav; + } + + if($data['type'] == 1) { + if($attack_scout > $defense_scout) { + $attack_scout_casualties = pow(($defense_scout / $attack_scout),1.5); + // generate scout report and process casualties + } else { + $attack_scout_casualties = 1; + // kill all scouts + } + } else { + $defense_total = $attack_infantry * $defense_infantry / $attack_total + $attack_cavalry * $defense_cavalry / $attack_total; + + if($DefenderData['pop'] < $AttackerData['pop']) { + $defense_total *= min(1.5,pow($AttackerData['pop']/$DefenderData['pop'],0.2)); + } + + $DefenderFields = $database->getResourceLevel($data['to']); + for($i=1;$i<=38;$i++) { + if($DefenderFields['f'.$i] > 0) { $DefenderFieldsArray[] = $i; } + if($DefenderFields['f'.$i.'t'] == 25 || $DefenderFields['f'.$i.'t'] == 26) { + $BonusPalRes = 2 * pow($DefenderFields['f'.$i],2); + $FieldPalRes = $i; + } + if($DefenderFields['f'.$i.'t'] == 34) { + $BonusStoneMason = $DefenderFields['f'.$i] / 10 + 1; + } + if($DefenderFields['f'.$i.'t'] >= 5 && $DefenderFields['f'.$i.'t'] <= 9) { + $ResourceImprovementArray[] = $i; + } + if($DefenderFields['f'.$i.'t'] == 36) { + $TrapperArray[] = $i; + } + if($DefenderFields['f'.$i.'t'] == $data['ctar1'] && $data['ctar1'] != 0) { + $ctarf[1] = $i; + } + if($DefenderFields['f'.$i.'t'] == $data['ctar2'] && $data['ctar2'] != 0 && ($data['ctar1'] != $data['ctar2'] || $data['ctar2'] <= 18)) { + $ctarf[2]= $i; + } + } + $defense_total += $BonusPalRes; + + $BonusWall = $DefenderData['tribe'] == 1 ? 1.03 : ($DefenderData['tribe'] == 2 ? 1.02 : 1.025); + $defense_total *= pow($BonusWall,$DefenderData['wall']); + + if($attacker_count + $defender_count + $defense_heros > 1000) { + $DiffModifier = 2 * (1.8592 - pow(($attacker_count + $defender_count + $defense_heros),0.015)); + } else { + $DiffModifier = 1.5; + } + $attack_casualties = $defense_casualties = 1; + if($attack_total > $defense_total) { + $attack_casualties = pow(($defense_total / $attack_total),$DiffModifier); + if($data['type'] == 4) { + $attack_casualties = $attack_casualties / (1 + $attack_casualties); + $defense_casualties = 1 - $attack_casualties; + } + } else { + $defense_casualties = pow(($attack_total / $defense_total),$DiffModifier); + if($data['type'] == 4) { + $defense_casualties = $defense_casualties / (1 + $defense_casualties); + $attack_casualties = 1 - $defense_casualties; + } + } + + if($rams > 0 && $DefenderData['wall'] > 0) { + if($attack_casualties < 1) { + $database->setVillageLevel($data['to'],'f40t',0); + $database->setVillageLevel($data['to'],'f40',0); + } else { + $RequiredRams=array(1=>array(1,2,2,3,4,6,7,10,12,14,17,20,23,27,31,35,39,43,48,53),array(1,4,8,13,19,27,36,46,57,69,83,98,114,132,151,171,192,214,238,263),array(1,2,4,6,8,11,15,19,23,28,34,40,46,53,61,69,77,86,96,106)); + $DC = max(1,$BonusStoneMason) * max(1,$BonusPalRes) / (pow(1.015,$Blacksmith['b'.$UnitRam])) ; + $L = $DefenderData['wall']; + $L2 = round(($DefenderData['wall'] - 1) /2); + $DDR = $DC / ( $L*($L+1)/8 + 5 + (24.875 + 0.625*$L2)*$L2/2 ); + //calculate damage to wall based on surviving rams + } + $RecountReqd = True; + } + if($catapults > 0 && !$IsOasis) { + $BuildLevelStrength=array(1=>1,2,2,3,4,6,8,10,12,14,17,20,23,27,31,35,39,43,48,53); + $RequiredCatapults = $RequiredCatapultsMax = $BuildingLevelMax = array(); + if(!empty($RequiredCatapults)) { reset($RequiredCatapults); } + for($i=1;$i<=2;$i++) { + if($data['ctar'.$i] == 0 || $ctarf[$i] == 0) { + $data['ctar'.$i] = $DefenderFieldsArray[rand(0,count($DefenderFieldsArray)-1)]; + if($data['ctar2'] == 0 && $i == 1) { $data['ctar2'] = $data['ctar1']; } + } + $RequiredCatapults[$i] = round((($DefenderData['pop'] < $AttackerData['pop'] ? min(3,pow($AttackerData['pop'] / $DefenderData['pop'],0.3)) : 1) * (pow($DefenderField['f'.$ctarf[$i]],2) + $DefenderField['f'.$ctarf[$i]] + 1) / (8 * (round(200 * pow(1.0205,$Blacksmith['b'.$UnitCatapult])) / 200) / max(1,($data['ctar'.$i]>=18?max(1,$BonusStoneMason + $BonusArtefactDurability):1)))) + 0.5); + $BuildingLevelMax[$i] = 20; + if($DefenderData['capital'] != 1 && $data['ctar'.$i] <= 18 || in_array($data['ctar'.$i],$TrapperArray)) { $BuildingLevelMax[$i] = 10; } + if(in_array($data['ctar'.$i],$ResourceImprovementArray)) { $BuildingLevelMax[$i] = 5; } + $RequiredCatapultsMax[$i] = round((($DefenderData['pop'] < $AttackerData['pop'] ? min(3,pow($AttackerData['pop'] / $DefenderData['pop'],0.3)) : 1) * (pow($BuildingLevelMax[$i],2) + $BuildingLevelMax[$i] + 1) / (8 * (round(200 * pow(1.0205,$Blacksmith['b'.$UnitCatapult])) / 200) / max(1,($data['ctar'.$i]>=18?max(1,$BonusStoneMason + $BonusArtefactDurability):1)))) + 0.5); + } + $CatapultsFiring = pow($attack_total / $defense_total,1.5); + if($CatapultsFiring > 1) { + $CatapultsFiring = 1 - 0.5 / $CatapultsFiring; + } else { + $CatapultsFiring = 0.5 * $CatapultsFiring; + } + $CatapultsFiring *= $data['t'.$UnitCatapult]; + for($i=1;$i=($data['ctar1']==$data['ctar2']?1:2);$i++) { + $BuildingLevelOld[$i] = $DefenderField['f'.$data['ctar'.$i]]; + if($data['ctar1']!=$data['ctar2'] && $i==1) { $CatapultsFiring /= 2; } + if($CatapultsFiring >= $RequiredCatapults[$i]) { + if($DefenderField['f'.$data['ctar'.$i]] == $FieldPalRes) { $DestroyedPalRes = True; } + if($data['ctar'.$i] >= 19) { $database->setVillageLevel($data['to'],'f'.$data['ctar'.$i].'t',0); } + $database->setVillageLevel($data['to'],'f'.$data['ctar'.$i],0); + $BuildingLevelNow[$i] = 0; + $RecountReqd = True; + } else { + $BuildLevelCount = 0; + for($j=$DefenderField['f'.$data['ctar'.$i]];$j=1;$j--) { + $BuildLevelCount += ($BuildLevelStrength[$j] - $BuildLevelStrength[$j-1]) * $RequiredCatapultsMax[$i] / $BuildLevelStrength[$BuildingLevelMax[$i]]; + if($CatapultsFiring < $BuildLevelCount) { + $BuildingLevelNow[$i] = $j; + break; + } + $database->setVillageLevel($data['to'],'f'.$data['ctar'.$i],$BuildingLevelNow[$i]); + $RecountReqd = True; + } + } + } + } + + for($i=1;$i<=10;$i++) { + $attack_casualties_array[$i] = round($data['t'.$i] * $attack_casualties); + if(!empty($unitdata)) { reset($unitdata); } + $unitdata = $GLOBALS['u'.(($AttackerData['tribe']-1)*10+$i)]; + $ExperienceDefender += $attack_casualties_array[$i] * $unitdata['pop']; + } + if($data['t11'] == 1) { + if($attack_casualties < 0.9) { + if($heroarrayAttacker['health']-100*$attack_casualties > 0) { + $database->modifyHero('health',(100*$attack_casualties),$heroarrayAttacker['heroid'],2); + $database->modifyHero('lastupdate',time(),$heroarrayAttacker['heroid'],0); + } else { + $database->modifyHero('health',0,$heroarrayAttacker['heroid'],0); + $database->modifyHero('dead',1,$heroarrayAttacker['heroid'],0); + $database->modifyHero('lastupdate',time(),$heroarrayAttacker['heroid'],0); + } + } else { + $database->modifyHero('health',0,$heroarrayAttacker['heroid'],0); + $database->modifyHero('dead',1,$heroarrayAttacker['heroid'],0); + $database->modifyHero('lastupdate',time(),$heroarrayAttacker['heroid'],0); + } + if($defence_casualties < 0.9) { + if($heroarrayDefender['health']-100*$defence_casualties > 0) { + $database->modifyHero('health',(100*$defence_casualties),$heroarrayDefender['heroid'],2); + $database->modifyHero('lastupdate',time(),$heroarrayDefender['heroid'],0); + } else { + $database->modifyHero('health',0,$heroarrayDefender['heroid'],0); + $database->modifyHero('dead',1,$heroarrayDefender['heroid'],0); + $database->modifyHero('lastupdate',time(),$heroarrayDefender['heroid'],0); + } + } else { + $database->modifyHero('health',0,$heroarrayDefender['heroid'],0); + $database->modifyHero('dead',1,$heroarrayDefender['heroid'],0); + $database->modifyHero('lastupdate',time(),$heroarrayDefender['heroid'],0); + } + } + // send surviving attackers and hero home, report. + // calculate defensive casualties, hero damage and experience (all heroes), modify units and reinforcements, report. + // damage buildings report + + // Chiefing logic including wall and tribal specific building removal + + if($IsOasis && $data['t11'] == 1 && $AllDefendersDead) { + $database->modifyOasisLoyalty($data['to']); + if($database->canConquerOasis($data['from'],$data['to'])) { + $database->conquerOasis($data['to'],$data['from'],$AttackerData['id']); + } + } + + if($RecountReqd) { $automation->recountPop($data['to']); } + } + } + +}; + +$battle = new Battle; +?> diff --git a/GameEngine/Building.php b/GameEngine/Building.php new file mode 100644 index 00000000..f7effadb --- /dev/null +++ b/GameEngine/Building.php @@ -0,0 +1,741 @@ +maxConcurrent = BASIC_MAX; + if(ALLOW_ALL_TRIBE || $session->tribe == 1) { + $this->maxConcurrent += INNER_MAX; + } + if($session->plus) { + $this->maxConcurrent += PLUS_MAX; + } + $this->LoadBuilding(); + + } + + public function procBuild($get) { + global $session; + if(isset($get['a']) && $get['c'] == $session->checker && !isset($get['id'])) { + if($get['a'] == 0) { + $this->removeBuilding($get['d']); + } + else { + $session->changeChecker(); + $this->upgradeBuilding($get['a']); + } + } + if(isset($get['a']) && $get['c'] == $session->checker && isset($get['id'])) { + $session->changeChecker(); + $this->constructBuilding($get['id'],$get['a']); + } + if(isset($get['buildingFinish'])) { + if($session->gold >= 2) { + $this->finishAll(); + } + } + } + + public function canBuild($id,$tid) { + global $village,$session,$database; + $demolition = $database->getDemolition($village->wid); + if($demolition[0]['buildnumber']==$id) { return 11; } + if($this->isMax($tid,$id)) { + return 1; + } else if($this->isMax($tid,$id,1) && ($this->isLoop($id) || $this->isCurrent($id))) { + return 10; + } else if($this->isMax($tid,$id,2) && $this->isLoop($id) && $this->isCurrent($id)) { + return 10; + } + else { + if($this->allocated <= $this->maxConcurrent) { + $resRequired = $this->resourceRequired($id,$village->resarray['f'.$id.'t']); + $resRequiredPop = $resRequired['pop']; + if ($resRequiredPop == "") { + $buildarray = $GLOBALS["bid".$tid]; + $resRequiredPop = $buildarray[1]['pop']; + } + $jobs = $database->getJobs($village->wid); + if ($jobs > 0) { + $soonPop = 0; + foreach ($jobs as $j) { + $buildarray = $GLOBALS["bid".$j['type']]; + $soonPop += $buildarray[$database->getFieldLevel($village->wid,$j['field'])+1]['pop']; + } + } + if(($village->allcrop - $village->pop - $soonPop - $resRequiredPop) <= 1 && $village->resarray['f'.$id.'t'] <> 4) { + return 4; + } + else { + switch($this->checkResource($tid,$id)) { + case 1: + return 5; + break; + case 2: + return 6; + break; + case 3: + return 7; + break; + case 4: + if($id >= 19) { + if($session->tribe == 1 || ALLOW_ALL_TRIBE) { + if($this->inner == 0) { + return 8; + } + else { + if($session->plus) { + if($this->plus == 0) { + return 9; + } + else { + return 3; + } + } + else { + return 2; + } + } + } + else { + if($this->basic == 0) { + return 8; + } + else { + if($session->plus) { + if($this->plus == 0) { + return 9; + } + else { + return 3; + } + } + else { + return 2; + } + } + } + } + else { + if($this->basic == 1) { + if($session->plus && $this->plus == 0) { + return 9; + } + else { + return 3; + } + } + else { + return 8; + } + } + break; + } + } + } + else { + return 2; + } + } + } + + public function walling() { + global $session; + $wall = array(31,32,33); + foreach($this->buildArray as $job) { + if(in_array($job['type'],$wall)) { + return "3".$session->tribe; + } + } + return false; + } + + public function rallying() { + foreach($this->buildArray as $job) { + if($job['type'] == 16) { + return true; + } + } + return false; + } + + public function procResType($ref) { + global $session; + switch($ref) { + 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; + } + + private function loadBuilding() { + global $database,$village,$session; + $this->buildArray = $database->getJobs($village->wid); + $this->allocated = count($this->buildArray); + if($this->allocated > 0) { + foreach($this->buildArray as $build) { + if($build['loopcon'] == 1) { + $this->plus = 1; + } + else { + if($build['field'] <= 18) { + $this->basic += 1; + } + else { + if($session->tribe == 1 || ALLOW_ALL_TRIBE) { + $this->inner += 1; + } + else { + $this->basic += 1; + } + } + } + } + $this->NewBuilding = true; + } + } + + private function removeBuilding($d) { + global $database,$village; + foreach($this->buildArray as $jobs) { + if($jobs['id'] == $d) { + $uprequire = $this->resourceRequired($jobs['field'],$jobs['type']); + if($database->removeBuilding($d)) { + $database->modifyResource($village->wid,$uprequire['wood'],$uprequire['clay'],$uprequire['iron'],$uprequire['crop'],1); + if($jobs['field'] >= 19) { + header("Location: dorf2.php"); + } + else { + header("Location: dorf1.php"); + } + } + } + } + } + + private function upgradeBuilding($id) { + global $database,$village,$session,$logging; + if($this->allocated < $this->maxConcurrent) { + $uprequire = $this->resourceRequired($id,$village->resarray['f'.$id.'t']); + $time = time() + $uprequire['time']; + $bindicate = $this->canBuild($id,$village->resarray['f'.$id.'t']); + $loop = ($bindicate == 9 ? 1 : 0); + $loopsame = 0; + if($loop == 1) { + foreach($this->buildArray as $build) { + if($build['field']==$id) { + $loopsame += 1; + $uprequire = $this->resourceRequired($id,$village->resarray['f'.$id.'t'],($loopsame>0?2:1)); + } + } + if($session->tribe == 1 || ALLOW_ALL_TRIBE) { + if($id >= 19) { + foreach($this->buildArray as $build) { + if($build['field'] >= 19) { + $time = $build['timestamp'] + $uprequire['time']; + } + } + } + else { + foreach($this->buildArray as $build) { + if($build['field'] <= 18) { + $time = $build['timestamp'] + $uprequire['time']; + } + } + } + } + else { + $time = $this->buildArray[0]['timestamp'] + $uprequire['time']; + } + } + if($database->addBuilding($village->wid,$id,$village->resarray['f'.$id.'t'],$loop,$time+($loop==1?ceil(60/SPEED):0))) { + $database->modifyResource($village->wid,$uprequire['wood'],$uprequire['clay'],$uprequire['iron'],$uprequire['crop'],0); + $logging->addBuildLog($village->wid,$this->procResType($village->resarray['f'.$id.'t']),($village->resarray['f'.$id]+($loopsame>0?2:1)),0); + if($id >= 19) { + header("Location: dorf2.php"); + } + else { + header("Location: dorf1.php"); + } + } + } + } + + private function downgradeBuilding($id) { + global $database,$village,$session,$logging; + if($this->allocated < $this->maxConcurrent) { + $name = "bid".$village->resarray['f'.$id.'t']; + global $$name; + $dataarray = $$name; + $time = time() + round($dataarray[$village->resarray['f'.$id]-1]['time'] / 4); + $loop = 0; + if($this->inner == 1 || $this->basic == 1) { + if($session->plus && $this->plus == 0) { + $loop = 1; + } + } + if($loop == 1) { + if($session->tribe == 1 || ALLOW_ALL_TRIBE) { + if($id >= 19) { + foreach($this->buildArray as $build) { + if($build['field'] >= 19) { + $time = $build['timestamp'] + round($dataarray[$village->resarray['f'.$id]-1]['time'] / 4); + } + } + } + } + else { + $time = $this->buildArray[0]['timestamp'] + round($dataarray[$village->resarray['f'.$id]-1]['time'] / 4); + } + } + if($database->addBuilding($village->wid,$id,$village->resarray['f'.$id.'t'],$loop,$time,0)) { + $logging->addBuildLog($village->wid,$this->procResType($village->resarray['f'.$id.'t']),($village->resarray['f'.$id]-1),2); + header("Location: dorf2.php"); + } + } + } + + + + private function constructBuilding($id,$tid) { + global $database,$village,$session,$logging; + if($this->allocated < $this->maxConcurrent) { + if($tid == 16) { + $id = 39; + } + else if($tid == 31 || $tid == 32 || $tid == 33) { + $id = 40; + } + $uprequire = $this->resourceRequired($id,$tid); + $time = time() + $uprequire['time']; + $bindicate = $this->canBuild($id,$village->resarray['f'.$id.'t']); + $loop = ($bindicate == 9 ? 1 : 0); + if($loop == 1) { + foreach($this->buildArray as $build) { + if($build['field'] >= 19 || ($session->tribe <> 1 && !ALLOW_ALL_TRIBE)) { + $time = $build['timestamp'] + ceil(60/SPEED) + $uprequire['time']; + } + } + } + if($this->meetRequirement($tid)) { + if($database->addBuilding($village->wid,$id,$tid,$loop,$time)) { + $logging->addBuildLog($village->wid,$this->procResType($tid),($village->resarray['f'.$id]+1),1); + $database->modifyResource($village->wid,$uprequire['wood'],$uprequire['clay'],$uprequire['iron'],$uprequire['crop'],0); + header("Location: dorf2.php"); + } + } + } + } + + private function meetRequirement($id) { + global $village; + switch($id) { + case 1: + case 2: + case 3: + case 4: + case 11: + case 15: + case 16: + case 18: + case 23: + case 31: + case 32: + case 33: + return true; + break; + case 10: + case 20: + return ($this->getTypeLevel(15) >= 1)? true : false; + break; + case 5: + if($this->getTypeLevel(1) >= 10 && $this->getTypeLevel(15) >= 5) { return true; } else { return false; } + break; + case 6: + if($this->getTypeLevel(2) >= 10 && $this->getTypeLevel(15) >= 5) { return true; } else { return false; } + break; + case 7: + if($this->getTypeLevel(3) >= 10 && $this->getTypeLevel(15) >= 5) { return true; } else { return false; } + break; + case 8: + if($this->getTypeLevel(4) >= 5) { return true; } else { return false; } + break; + case 9: + if($this->getTypeLevel(15) >= 5 && $this->getTypeLevel(4) >= 10 && $this->getTypeLevel(8) >= 5) { return true; } else { return false; } + break; + case 12: + if($this->getTypeLevel(22) >= 3 && $this->getTypeLevel(15) >= 3) { return true; } else { return false; } + break; + case 13: + if($this->getTypeLevel(15) >= 3 && $this->getTypeLevel(22) >= 1) { return true; } else { return false; } + break; + case 14: + if($this->getTypeLevel(16) >= 15) { return true; } else { return false; } + break; + case 17: + if($this->getTypeLevel(15) >= 3 && $this->getTypeLevel(10) >= 1 && $this->getTypeLevel(11) >= 1) { return true; } else { return false; } + break; + case 19: + if($this->getTypeLevel(15) >= 3 && $this->getTypeLevel(16) >= 1) { return true; } else { return false; } + break; + case 20: + if($this->getTypeLevel(12) >= 3 && $this->getTypeLevel(22) >= 5) { return true; } else { return false; } + break; + case 21: + if($this->getTypeLevel(22) >= 10 && $this->getTypeLevel(15) >= 5) { return true; } else { return false; } + break; + case 22: + if($this->getTypeLevel(15) >= 3 && $this->getTypeLevel(16) >= 1) { return true; } else { return false; } + break; + case 24: + if($this->getTypeLevel(22) >= 10 && $this->getTypeLevel(15) >= 10) { return true; } else { return false; } + break; + case 25: + if($this->getTypeLevel(15) >= 5) { return true; } else { return false; } + break; + case 26: + if($this->getTypeLevel(18) >= 1 && $this->getTypeLevel(15) >= 5 && $this->getTypeLevel(25) == 0) { return true; } else { return false; } + break; + case 27: + if($this->getTypeLevel(15) >= 10) { return true; } else { return false; } + break; + case 28: + if($this->getTypeLevel(17) == 20 && $this->getTypeLevel(20) >= 10) { return true; } else { return false; } + break; + case 29: + if($this->getTypeLevel(19) == 20 && $village->capital == 0) { return true; } else { return false; } + break; + case 30: + if($this->getTypeLevel(20) == 20 && $village->capital == 0) { return true; } else { return false; } + break; + case 34: + if($this->getTypeLevel(26) >= 3 && $this->getTypeLevel(15) >= 5 && $this->getTypeLevel(25) == 0) { return true; } else { return false; } + break; + case 35: + if($this->getTypeLevel(16) >= 10 && $this->getTypeLevel(11) == 20) { return true; } else { return false; } + break; + case 36: + if($this->getTypeLevel(16) >= 1) { return true; } else { return false; } + break; + case 37: + if($this->getTypeLevel(15) >= 3 && $this->getTypeLevel(16) >= 1) { return true; } else { return false; } + break; + case 38: + if($this->getTypeLevel(15) >= 10 && $village->capital == 0) { return true; } else { return false; } + break; + case 39: + if($this->getTypeLevel(15) >= 10 && $village->capital == 0) { return true; } else { return false; } + break; + case 40: + return false; //not implemented + break; + case 41: + if($this->getTypeLevel(16) >= 10 && $this->getTypeLevel(20) == 20) { return true; } else { return false; } + break; + case 42: + if($this->getTypeLevel(21) == 20 && $village->capital == 0) { return true; } else { return false; } + break; + } + } + + private function checkResource($tid,$id) { + $name = "bid".$tid; + global $village,$$name,$database; + $plus = 1; + foreach($this->buildArray as $job) { + if($job['type'] == $tid && $job['field'] == $id) { + $plus = 2; + } + } + $dataarray = $$name; + $wood = $dataarray[$village->resarray['f'.$id]+$plus]['wood']; + $clay = $dataarray[$village->resarray['f'.$id]+$plus]['clay']; + $iron = $dataarray[$village->resarray['f'.$id]+$plus]['iron']; + $crop = $dataarray[$village->resarray['f'.$id]+$plus]['crop']; + if($wood > $village->maxstore || $clay > $village->maxstore || $iron > $village->maxstore) { + return 1; + } + else { + if($crop > $village->maxcrop) { + return 2; + } + else { + if($wood > $village->awood || $clay > $village->aclay || $iron > $village->airon || $crop > $village->acrop) { + return 3; + } + else { + if($village->awood-$wood > 0 && $village->aclay-$clay > 0 && $village->airon-$iron > 0 && $village->acrop-$crop >0){ + return 4; + } + else { + return 3; + } + } + } + } + } + + public function isMax($id,$field,$loop=0) { + $name = "bid".$id; + global $$name,$village; + $dataarray = $$name; + if($id <= 4) { + if($village->capital == 1) { + return ($village->resarray['f'.$field] == (count($dataarray) - 1 - $loop)); + } + else { + return ($village->resarray['f'.$field] == (count($dataarray) - 11 - $loop)); + } + } + else { + return ($village->resarray['f'.$field] == count($dataarray) - $loop); + } + } + + public function getTypeLevel($tid,$vid=0) { + global $village,$database; + $keyholder = array(); + if($vid == 0) { + $resourcearray = $village->resarray; + } else { + $resourcearray = $database->getResourceLevel($vid); + } + foreach(array_keys($resourcearray,$tid) as $key) { + if(strpos($key,'t')) { + $key = preg_replace("/[^0-9]/", '', $key); + array_push($keyholder, $key); + } + } + $element = count($keyholder); + if($element >= 2) { + if($tid <= 4) { + $temparray = array(); + for($i=0;$i<=$element-1;$i++) { + array_push($temparray,$resourcearray['f'.$keyholder[$i]]); + } + foreach ($temparray as $key => $val) { + if ($val == max($temparray)) + $target = $key; + } + } + else { + $target = 0; + for($i=1;$i<=$element-1;$i++) { + if($resourcearray['f'.$keyholder[$i]] > $resourcearray['f'.$keyholder[$target]]) { + $target = $i; + } + } + } + } + else if($element == 1) { + $target = 0; + } + else { + return 0; + } + if($keyholder[$target] != "") { + return $resourcearray['f'.$keyholder[$target]]; + } + else { + return 0; + } + } + + + public function isCurrent($id) { + foreach($this->buildArray as $build) { + if($build['field'] == $id && $build['loopcon'] <> 1) { + return true; + } + } + } + + public function isLoop($id=0) { + foreach($this->buildArray as $build) { + if(($build['field'] == $id && $build['loopcon']) || ($build['loopcon'] == 1 && $id == 0)) { + return true; + } + } + return false; + } + + private function finishAll() { + global $database,$session,$logging,$village,$bid18,$bid10,$bid11,$technology; + foreach($this->buildArray as $jobs) { + $level = $database->getFieldLevel($jobs['wid'],$jobs['field']); + $level = ($level == -1) ? 0 : $level; + if($jobs['type'] != 25 AND $jobs['type'] != 26 AND $jobs['type'] != 40) { + $resource = $this->resourceRequired($jobs['field'],$jobs['type']); + $q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = f".$jobs['field']." + 1, f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid']; + if($database->query($q)) { + $database->modifyPop($jobs['wid'],$resource['pop'],0); + $database->addCP($jobs['wid'],$resource['cp']); + $database->finishDemolition($village->wid); + $q = "DELETE FROM ".TB_PREFIX."bdata where id = ".$jobs['id']; + $database->query($q); + if($jobs['type'] == 18) { + $owner = $database->getVillageField($jobs['wid'],"owner"); + $max = $bid18[$level]['attri']; + $q = "UPDATE ".TB_PREFIX."alidata set max = $max where leader = $owner"; + $database->query($q); + } + if($jobs['type'] == 10) { + $max=$database->getVillageField($jobs['wid'],"maxstore"); + if($level=='0' && $this->getTypeLevel(10) != 20){ $max-=STORAGE_BASE; } + $max-=$bid10[$level]['attri']*STORAGE_MULTIPLIER; + $max+=$bid10[$level+1]['attri']*STORAGE_MULTIPLIER; + $database->setVillageField($jobs['wid'],"maxstore",$max); + } + if($jobs['type'] == 11) { + $max=$database->getVillageField($jobs['wid'],"maxcrop"); + if($level=='0' && $this->getTypeLevel(11) != 20){ $max-=STORAGE_BASE; } + $max-=$bid11[$level]['attri']*STORAGE_MULTIPLIER; + $max+=$bid11[$level+1]['attri']*STORAGE_MULTIPLIER; + $database->setVillageField($jobs['wid'],"maxcrop",$max); + } + if($jobs['type'] == 38) { + $max=$database->getVillageField($jobs['wid'],"maxstore"); + if($level=='0' && $this->getTypeLevel(38) != 20){ $max-=STORAGE_BASE; } + $max-=$bid38[$level]['attri']*STORAGE_MULTIPLIER; + $max+=$bid38[$level+1]['attri']*STORAGE_MULTIPLIER; + $database->setVillageField($jobs['wid'],"maxstore",$max); + } + if($jobs['type'] == 39) { + $max=$database->getVillageField($jobs['wid'],"maxcrop"); + if($level=='0' && $this->getTypeLevel(39) != 20){ $max-=STORAGE_BASE; } + $max-=$bid39[$level]['attri']*STORAGE_MULTIPLIER; + $max+=$bid39[$level+1]['attri']*STORAGE_MULTIPLIER; + $database->setVillageField($jobs['wid'],"maxcrop",$max); + } + } + if(($jobs['field'] >= 19 && ($session->tribe == 1 || ALLOW_ALL_TRIBE)) || (!ALLOW_ALL_TRIBE && $session->tribe != 1)) { $innertimestamp = $jobs['timestamp']; } + } + } + $technology->finishTech(); + $logging->goldFinLog($village->wid); + $database->modifyGold($session->uid,0,0); + $stillbuildingarray = $database->getJobs($village->wid); + if(count($stillbuildingarray) == 1) { + if($stillbuildingarray[0]['loopcon'] == 1) { + $q = "UPDATE ".TB_PREFIX."bdata SET loopcon=0,timestamp=".(time()+$stillbuildingarray[0]['timestamp']-$innertimestamp)." WHERE id=".$stillbuildingarray[0]['id']; + $database->query($q); + } + } + header("Location: ".$session->referrer); + } + + public function resourceRequired($id,$tid,$plus=1) { + $name = "bid".$tid; + global $$name,$village,$bid15; + $dataarray = $$name; + $wood = $dataarray[$village->resarray['f'.$id]+$plus]['wood']; + $clay = $dataarray[$village->resarray['f'.$id]+$plus]['clay']; + $iron = $dataarray[$village->resarray['f'.$id]+$plus]['iron']; + $crop = $dataarray[$village->resarray['f'.$id]+$plus]['crop']; + $pop = $dataarray[$village->resarray['f'.$id]+$plus]['pop']; + if ($tid == 15) { + if($this->getTypeLevel(15) == 0) { + $time = round($dataarray[$village->resarray['f'.$id]+$plus]['time']/ SPEED *5); + } + else { + $time = round($dataarray[$village->resarray['f'.$id]+$plus]['time'] / SPEED); + } + } + else { + if($this->getTypeLevel(15) != 0) { + $time = round($dataarray[$village->resarray['f'.$id]+$plus]['time'] * ($bid15[$this->getTypeLevel(15)]['attri']/100) / SPEED); + } + else { + $time = round($dataarray[$village->resarray['f'.$id]+$plus]['time']*5 / SPEED); + } + } + $cp = $dataarray[$village->resarray['f'.$id]+$plus]['cp']; + return array("wood"=>$wood,"clay"=>$clay,"iron"=>$iron,"crop"=>$crop,"pop"=>$pop,"time"=>$time,"cp"=>$cp); + } + + public function getTypeField($type) { + global $village; + for($i=19;$i<=40;$i++) { + if($village->resarray['f'.$i.'t'] == $type) { + return $i; + } + } + } + + public function calculateAvaliable($id,$tid,$plus=1) { + global $village,$generator; + $uprequire = $this->resourceRequired($id,$tid,$plus); + $rwood = $uprequire['wood']-$village->awood; + $rclay = $uprequire['clay']-$village->aclay; + $rcrop = $uprequire['crop']-$village->acrop; + $riron = $uprequire['iron']-$village->airon; + $rwtime = $rwood / $village->getProd("wood") * 3600; + $rcltime = $rclay / $village->getProd("clay")* 3600; + $rctime = $rcrop / $village->getProd("crop")* 3600; + $ritime = $riron / $village->getProd("iron")* 3600; + $reqtime = max($rwtime,$rctime,$rcltime,$ritime); + $reqtime += time(); + return $generator->procMtime($reqtime); + } +}; + +?> diff --git a/GameEngine/Chat.php b/GameEngine/Chat.php new file mode 100644 index 00000000..2aa6bd8a --- /dev/null +++ b/GameEngine/Chat.php @@ -0,0 +1,382 @@ +$v) { + $esc_key = sajax_esc($k); + if (is_numeric($k)) + $s .= "$k: " . sajax_get_js_repr($v) . ", "; + else + $s .= "\"$esc_key\": " . sajax_get_js_repr($v) . ", "; + } + if (count($value)) + $s = substr($s, 0, -2); + return $s . " }"; + } + else { + $esc_val = sajax_esc($value); + $s = "'$esc_val'"; + return $s; + } + } + + function sajax_handle_client_request() { + global $sajax_export_list; + + $mode = ""; + + if (! empty($_GET["rs"])) + $mode = "get"; + + if (!empty($_POST["rs"])) + $mode = "post"; + + if (empty($mode)) + return; + + $target = ""; + + if ($mode == "get") { + + header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); + header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); + + header ("Cache-Control: no-cache, must-revalidate"); + header ("Pragma: no-cache"); + $func_name = $_GET["rs"]; + if (! empty($_GET["rsargs"])) + $args = $_GET["rsargs"]; + else + $args = array(); + } + else { + $func_name = $_POST["rs"]; + if (! empty($_POST["rsargs"])) + $args = $_POST["rsargs"]; + else + $args = array(); + } + + if (! in_array($func_name, $sajax_export_list)) + echo "-:$func_name not callable"; + else { + echo "+:"; + $result = call_user_func_array($func_name, $args); + echo "var res = " . trim(sajax_get_js_repr($result)) . "; res;"; + } + exit; + } + + function sajax_get_common_js() { + global $sajax_debug_mode; + global $sajax_request_type; + global $sajax_remote_uri; + global $sajax_failure_redirect; + + $t = strtoupper($sajax_request_type); + if ($t != "" && $t != "GET" && $t != "POST") + return "// Invalid type: $t.. \n\n"; + + ob_start(); + ?> + + // remote scripting library + // (c) copyright 2005 modernmethod, inc + // edited by ttmtt + var sajax_debug_mode = ; + var sajax_request_type = ""; + var sajax_target_id = ""; + var sajax_failure_redirect = ""; + + function sajax_debug(text) { + if (sajax_debug_mode) + alert(text); + } + + function sajax_init_object() { + sajax_debug("sajax_init_object() called..") + + var A; + + var msxmlhttp = new Array( + 'Msxml2.XMLHTTP.5.0', + 'Msxml2.XMLHTTP.4.0', + 'Msxml2.XMLHTTP.3.0', + 'Msxml2.XMLHTTP', + 'Microsoft.XMLHTTP'); + for (var i = 0; i < msxmlhttp.length; i++) { + try { + A = new ActiveXObject(msxmlhttp[i]); + } catch (e) { + A = null; + } + } + + if(!A && typeof XMLHttpRequest != "undefined") + A = new XMLHttpRequest(); + if (!A) + sajax_debug("Could not create connection object."); + return A; + } + + var sajax_requests = new Array(); + + function sajax_cancel() { + for (var i = 0; i < sajax_requests.length; i++) + sajax_requests[i].abort(); + } + + function sajax_do_call(func_name, args) { + var i, x, n; + var uri; + var post_data; + var target_id; + + sajax_debug("in sajax_do_call().." + sajax_request_type + "/" + sajax_target_id); + target_id = sajax_target_id; + if (typeof(sajax_request_type) == "undefined" || sajax_request_type == "") + sajax_request_type = "GET"; + + uri = ""; + if (sajax_request_type == "GET") { + + if (uri.indexOf("?") == -1) + uri += "?rs=" + escape(func_name); + else + uri += "&rs=" + escape(func_name); + uri += "&rst=" + escape(sajax_target_id); + uri += "&rsrnd=" + new Date().getTime(); + + for (i = 0; i < args.length-1; i++) + uri += "&rsargs[]=" + escape(args[i]); + + post_data = null; + } + else if (sajax_request_type == "POST") { + post_data = "rs=" + escape(func_name); + post_data += "&rst=" + escape(sajax_target_id); + post_data += "&rsrnd=" + new Date().getTime(); + + for (i = 0; i < args.length-1; i++) + post_data = post_data + "&rsargs[]=" + escape(args[i]); + } + else { + alert("Illegal request type: " + sajax_request_type); + } + + x = sajax_init_object(); + if (x == null) { + if (sajax_failure_redirect != "") { + location.href = sajax_failure_redirect; + return false; + } else { + sajax_debug("NULL sajax object for user agent:\n" + navigator.userAgent); + return false; + } + } else { + x.open(sajax_request_type, uri, true); + // window.open(uri); + + sajax_requests[sajax_requests.length] = x; + + if (sajax_request_type == "POST") { + x.setRequestHeader("Method", "POST " + uri + " HTTP/1.1"); + x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); + } + + x.onreadystatechange = function() { + if (x.readyState != 4) + return; + + sajax_debug("received " + x.responseText); + + var status; + var data; + var txt = x.responseText.replace(/^\s*|\s*$/g,""); + status = txt.charAt(0); + data = txt.substring(2); + + if (status == "") { + // let's just assume this is a pre-response bailout and let it slide for now + } else if (status == "-") + alert("Error: " + data); + else { + if (target_id != "") + document.getElementById(target_id).innerHTML = eval(data); + else { + try { + var callback; + var extra_data = false; + if (typeof args[args.length-1] == "object") { + callback = args[args.length-1].callback; + extra_data = args[args.length-1].extra_data; + } else { + callback = args[args.length-1]; + } + callback(eval(data), extra_data); + } catch (e) { + sajax_debug("Caught error " + e + ": Could not eval " + data ); + } + } + } + } + } + + sajax_debug(func_name + " uri = " + uri + "/post = " + post_data); + x.send(post_data); + sajax_debug(func_name + " waiting.."); + delete x; + return true; + } + + + + // wrapper for + + function x_() { + sajax_do_call("", + x_.arguments); + } + + username; + $msg = htmlspecialchars($data[1]); + $id_user = $session->uid; + $alliance = $session->alliance; + $now = time(); + $q = "INSERT into ".TB_PREFIX."chat (id_user,name,alli,date,msg) values ('$id_user','$name','$alliance','$now','$msg')"; + mysql_query($q, $database->connection); + } + + function get_data() { + global $session,$database; + + $alliance = $session->alliance; + $query = mysql_query("select * from ".TB_PREFIX."chat where alli='$alliance' order by id desc limit 0,13"); + while ($r = mysql_fetch_array($query)) { + $dates = date("g:i",$r[date]); + $data .= "[{$dates}] {$r['name']}: {$r[msg]}
"; + } + return $data; + } + + $sajax_request_type = "GET"; + sajax_init(); + sajax_export("add_data","get_data"); + sajax_handle_client_request(); + +?> \ No newline at end of file diff --git a/GameEngine/Data/buidata.php b/GameEngine/Data/buidata.php new file mode 100644 index 00000000..da1b3984 --- /dev/null +++ b/GameEngine/Data/buidata.php @@ -0,0 +1,55 @@ +2),array('wood'=>40,'clay'=>100,'iron'=>50,'crop'=>60,'pop'=>2,'cp'=>1,'prod'=>5,'time'=>260),array('wood'=>65,'clay'=>165,'iron'=>85,'crop'=>100,'pop'=>1,'cp'=>1,'prod'=>9,'time'=>620),array('wood'=>110,'clay'=>280,'iron'=>140,'crop'=>165,'pop'=>1,'cp'=>2,'prod'=>15,'time'=>1190),array('wood'=>185,'clay'=>465,'iron'=>235,'crop'=>280,'pop'=>1,'cp'=>2,'prod'=>22,'time'=>2100),array('wood'=>310,'clay'=>780,'iron'=>390,'crop'=>465,'pop'=>1,'cp'=>2,'prod'=>33,'time'=>3560),array('wood'=>520,'clay'=>1300,'iron'=>650,'crop'=>780,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>3638),array('wood'=>870,'clay'=>2170,'iron'=>1085,'crop'=>1300,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>7220),array('wood'=>1450,'clay'=>3625,'iron'=>1810,'crop'=>2175,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>15590),array('wood'=>2420,'clay'=>6050,'iron'=>3025,'crop'=>3630,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>25150),array('wood'=>4040,'clay'=>10105,'iron'=>5050,'crop'=>6060,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>40440),array('wood'=>6750,'clay'=>16870,'iron'=>8435,'crop'=>10125,'pop'=>2,'cp'=>7,'prod'=>280,'time'=>64900),array('wood'=>11270,'clay'=>28175,'iron'=>14090,'crop'=>16905,'pop'=>2,'cp'=>9,'prod'=>375,'time'=>104050),array('wood'=>18820,'clay'=>47055,'iron'=>23525,'crop'=>28230,'pop'=>2,'cp'=>11,'prod'=>495,'time'=>166680),array('wood'=>31430,'clay'=>78580,'iron'=>39290,'crop'=>47150,'pop'=>2,'cp'=>13,'prod'=>635,'time'=>266880),array('wood'=>52490,'clay'=>131230,'iron'=>65615,'crop'=>78740,'pop'=>2,'cp'=>15,'prod'=>800,'time'=>427210),array('wood'=>87660,'clay'=>219155,'iron'=>109575,'crop'=>131490,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>683730),array('wood'=>146395,'clay'=>365985,'iron'=>182995,'crop'=>219590,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>1094170),array('wood'=>244480,'clay'=>611195,'iron'=>305600,'crop'=>366715,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>1750880),array('wood'=>408280,'clay'=>1020695,'iron'=>510350,'crop'=>612420,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>2801600),array('wood'=>681825,'clay'=>1704565,'iron'=>852280,'crop'=>1022740,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>4482770)); +$bid2=array(array('prod'=>2),array('wood'=>80,'clay'=>40,'iron'=>80,'crop'=>50,'pop'=>2,'cp'=>1,'prod'=>5,'time'=>220),array('wood'=>135,'clay'=>65,'iron'=>135,'crop'=>85,'pop'=>1,'cp'=>1,'prod'=>9,'time'=>550),array('wood'=>225,'clay'=>110,'iron'=>225,'crop'=>140,'pop'=>1,'cp'=>2,'prod'=>15,'time'=>1080),array('wood'=>375,'clay'=>185,'iron'=>375,'crop'=>235,'pop'=>1,'cp'=>2,'prod'=>22,'time'=>1930),array('wood'=>620,'clay'=>310,'iron'=>620,'crop'=>390,'pop'=>1,'cp'=>2,'prod'=>33,'time'=>3290),array('wood'=>1040,'clay'=>520,'iron'=>1040,'crop'=>650,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>5470),array('wood'=>1735,'clay'=>870,'iron'=>1735,'crop'=>1085,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>8950),array('wood'=>2900,'clay'=>1450,'iron'=>2900,'crop'=>1810,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>14520),array('wood'=>4840,'clay'=>2420,'iron'=>4840,'crop'=>3025,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>23430),array('wood'=>8080,'clay'=>4040,'iron'=>8080,'crop'=>5050,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>37690),array('wood'=>13500,'clay'=>6750,'iron'=>13500,'crop'=>8435,'pop'=>2,'cp'=>7,'prod'=>280,'time'=>60510),array('wood'=>22540,'clay'=>11270,'iron'=>22540,'crop'=>14090,'pop'=>2,'cp'=>9,'prod'=>375,'time'=>97010),array('wood'=>37645,'clay'=>18820,'iron'=>37645,'crop'=>23525,'pop'=>2,'cp'=>11,'prod'=>495,'time'=>155420),array('wood'=>62865,'clay'=>31430,'iron'=>62865,'crop'=>39290,'pop'=>2,'cp'=>13,'prod'=>635,'time'=>248870),array('wood'=>104985,'clay'=>52490,'iron'=>104985,'crop'=>65615,'pop'=>2,'cp'=>15,'prod'=>800,'time'=>398390),array('wood'=>175320,'clay'=>87660,'iron'=>175320,'crop'=>109575,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>637620),array('wood'=>292790,'clay'=>146395,'iron'=>292790,'crop'=>182995,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>1020390),array('wood'=>488955,'clay'=>244480,'iron'=>488955,'crop'=>305600,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>1632820),array('wood'=>816555,'clay'=>408280,'iron'=>816555,'crop'=>510350,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>2612710),array('wood'=>1363650,'clay'=>681825,'iron'=>1363650,'crop'=>852280,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>4180540)); +$bid3=array(array('prod'=>2),array('wood'=>100,'clay'=>80,'iron'=>30,'crop'=>60,'pop'=>3,'cp'=>1,'prod'=>5,'time'=>450),array('wood'=>165,'clay'=>135,'iron'=>50,'crop'=>100,'pop'=>2,'cp'=>1,'prod'=>9,'time'=>920),array('wood'=>280,'clay'=>225,'iron'=>85,'crop'=>165,'pop'=>2,'cp'=>2,'prod'=>15,'time'=>1670),array('wood'=>465,'clay'=>375,'iron'=>140,'crop'=>280,'pop'=>2,'cp'=>2,'prod'=>22,'time'=>2880),array('wood'=>780,'clay'=>620,'iron'=>235,'crop'=>465,'pop'=>2,'cp'=>2,'prod'=>33,'time'=>4800),array('wood'=>1300,'clay'=>1040,'iron'=>390,'crop'=>780,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>7880),array('wood'=>2170,'clay'=>1735,'iron'=>650,'crop'=>1300,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>12810),array('wood'=>3625,'clay'=>2900,'iron'=>1085,'crop'=>2175,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>20690),array('wood'=>6050,'clay'=>4840,'iron'=>1815,'crop'=>3630,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>33310),array('wood'=>10105,'clay'=>8080,'iron'=>3030,'crop'=>6060,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>53500),array('wood'=>16870,'clay'=>13500,'iron'=>5060,'crop'=>10125,'pop'=>3,'cp'=>7,'prod'=>280,'time'=>85800),array('wood'=>28175,'clay'=>22540,'iron'=>8455,'crop'=>16905,'pop'=>3,'cp'=>9,'prod'=>375,'time'=>137470),array('wood'=>47055,'clay'=>37645,'iron'=>14115,'crop'=>28230,'pop'=>3,'cp'=>11,'prod'=>495,'time'=>220160),array('wood'=>78580,'clay'=>62865,'iron'=>23575,'crop'=>47150,'pop'=>3,'cp'=>13,'prod'=>635,'time'=>352450),array('wood'=>131230,'clay'=>104985,'iron'=>39370,'crop'=>78740,'pop'=>3,'cp'=>15,'prod'=>800,'time'=>564120),array('wood'=>219155,'clay'=>175320,'iron'=>65745,'crop'=>131490,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>902760),array('wood'=>365985,'clay'=>292790,'iron'=>109795,'crop'=>219590,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>145546),array('wood'=>611195,'clay'=>488955,'iron'=>183360,'crop'=>366715,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>2311660),array('wood'=>1020695,'clay'=>816555,'iron'=>306210,'crop'=>612420,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>3698850),array('wood'=>1704565,'clay'=>1363650,'iron'=>511370,'crop'=>1022740,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>5918370)); +$bid4=array(array('prod'=>2),array('wood'=>70,'clay'=>90,'iron'=>70,'crop'=>20,'pop'=>0,'cp'=>1,'prod'=>5,'time'=>150),array('wood'=>115,'clay'=>150,'iron'=>115,'crop'=>35,'pop'=>0,'cp'=>1,'prod'=>9,'time'=>440),array('wood'=>195,'clay'=>250,'iron'=>195,'crop'=>55,'pop'=>0,'cp'=>2,'prod'=>15,'time'=>900),array('wood'=>325,'clay'=>420,'iron'=>325,'crop'=>95,'pop'=>0,'cp'=>2,'prod'=>22,'time'=>1650),array('wood'=>545,'clay'=>700,'iron'=>545,'crop'=>155,'pop'=>0,'cp'=>2,'prod'=>33,'time'=>2830),array('wood'=>910,'clay'=>1170,'iron'=>910,'crop'=>260,'pop'=>1,'cp'=>3,'prod'=>50,'time'=>4730),array('wood'=>1520,'clay'=>1950,'iron'=>1520,'crop'=>435,'pop'=>1,'cp'=>4,'prod'=>70,'time'=>7780),array('wood'=>2535,'clay'=>3260,'iron'=>2535,'crop'=>725,'pop'=>1,'cp'=>4,'prod'=>100,'time'=>12190),array('wood'=>4235,'clay'=>5445,'iron'=>4235,'crop'=>1210,'pop'=>1,'cp'=>5,'prod'=>145,'time'=>19690),array('wood'=>7070,'clay'=>9095,'iron'=>7070,'crop'=>2020,'pop'=>1,'cp'=>6,'prod'=>200,'time'=>31700),array('wood'=>11810,'clay'=>15185,'iron'=>11810,'crop'=>3375,'pop'=>1,'cp'=>7,'prod'=>280,'time'=>50910),array('wood'=>19725,'clay'=>25360,'iron'=>19725,'crop'=>5635,'pop'=>1,'cp'=>9,'prod'=>375,'time'=>84700),array('wood'=>32940,'clay'=>42350,'iron'=>32940,'crop'=>9410,'pop'=>1,'cp'=>11,'prod'=>495,'time'=>135710),array('wood'=>55005,'clay'=>70720,'iron'=>55005,'crop'=>15715,'pop'=>1,'cp'=>13,'prod'=>635,'time'=>217340),array('wood'=>91860,'clay'=>118105,'iron'=>91860,'crop'=>26245,'pop'=>1,'cp'=>15,'prod'=>800,'time'=>347950),array('wood'=>153405,'clay'=>197240,'iron'=>153405,'crop'=>43830,'pop'=>2,'cp'=>18,'prod'=>1000,'time'=>556910),array('wood'=>256190,'clay'=>329385,'iron'=>256190,'crop'=>73195,'pop'=>2,'cp'=>22,'prod'=>1300,'time'=>891260),array('wood'=>427835,'clay'=>550075,'iron'=>427835,'crop'=>122240,'pop'=>2,'cp'=>27,'prod'=>1600,'time'=>1426210),array('wood'=>714485,'clay'=>918625,'iron'=>714485,'crop'=>204140,'pop'=>2,'cp'=>32,'prod'=>2000,'time'=>2282140),array('wood'=>1193195,'clay'=>1534105,'iron'=>1193195,'crop'=>340915,'pop'=>2,'cp'=>38,'prod'=>2450,'time'=>3651630)); +$bid5=array(1=>array('wood'=>520,'clay'=>380,'iron'=>290,'crop'=>90,'pop'=>4,'cp'=>1,'attri'=>5,'time'=>3000),array('wood'=>935,'clay'=>685,'iron'=>520,'crop'=>160,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>5700),array('wood'=>1685,'clay'=>1230,'iron'=>940,'crop'=>290,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>9750),array('wood'=>3035,'clay'=>2215,'iron'=>1690,'crop'=>525,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>15830),array('wood'=>5460,'clay'=>3990,'iron'=>3045,'crop'=>945,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>24940)); +$bid6=array(1=>array('wood'=>440,'clay'=>480,'iron'=>320,'crop'=>50,'pop'=>3,'cp'=>1,'attri'=>5,'time'=>2240),array('wood'=>790,'clay'=>865,'iron'=>575,'crop'=>90,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>4560),array('wood'=>1425,'clay'=>1555,'iron'=>1035,'crop'=>160,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>8040),array('wood'=>2565,'clay'=>2800,'iron'=>1865,'crop'=>290,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>13260),array('wood'=>4620,'clay'=>5040,'iron'=>3360,'crop'=>525,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>21090)); +$bid7=array(1=>array('wood'=>200,'clay'=>450,'iron'=>510,'crop'=>120,'pop'=>6,'cp'=>1,'attri'=>5,'time'=>4080),array('wood'=>360,'clay'=>810,'iron'=>920,'crop'=>215,'pop'=>3,'cp'=>1,'attri'=>10,'time'=>7320),array('wood'=>650,'clay'=>1460,'iron'=>1650,'crop'=>390,'pop'=>3,'cp'=>2,'attri'=>15,'time'=>12180),array('wood'=>1165,'clay'=>2625,'iron'=>2975,'crop'=>700,'pop'=>3,'cp'=>2,'attri'=>20,'time'=>19470),array('wood'=>2100,'clay'=>4725,'iron'=>5355,'crop'=>1260,'pop'=>3,'cp'=>2,'attri'=>25,'time'=>30410)); +$bid8=array(1=>array('wood'=>500,'clay'=>440,'iron'=>380,'crop'=>1240,'pop'=>3,'cp'=>1,'attri'=>5,'time'=>1840),array('wood'=>900,'clay'=>790,'iron'=>685,'crop'=>2230,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>3960),array('wood'=>1620,'clay'=>1425,'iron'=>1230,'crop'=>4020,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>7140),array('wood'=>2915,'clay'=>2565,'iron'=>2215,'crop'=>7230,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>11910),array('wood'=>5250,'clay'=>4620,'iron'=>3990,'crop'=>13015,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>19070)); +$bid9=array(1=>array('wood'=>1200,'clay'=>1480,'iron'=>870,'crop'=>1600,'pop'=>4,'cp'=>1,'attri'=>5,'time'=>3680),array('wood'=>2160,'clay'=>2665,'iron'=>1565,'crop'=>2880,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>6720),array('wood'=>3890,'clay'=>4795,'iron'=>2820,'crop'=>5185,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>11280),array('wood'=>7000,'clay'=>8630,'iron'=>5075,'crop'=>9330,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>18120),array('wood'=>12595,'clay'=>15535,'iron'=>9135,'crop'=>16795,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>28380)); +$bid10=array(1=>array('wood'=>130,'clay'=>160,'iron'=>90,'crop'=>40,'pop'=>1,'cp'=>1,'attri'=>1200,'time'=>2000),array('wood'=>165,'clay'=>205,'iron'=>115,'crop'=>50,'pop'=>1,'cp'=>1,'attri'=>1700,'time'=>2620),array('wood'=>215,'clay'=>260,'iron'=>145,'crop'=>65,'pop'=>1,'cp'=>2,'attri'=>2300,'time'=>3340),array('wood'=>275,'clay'=>335,'iron'=>190,'crop'=>85,'pop'=>1,'cp'=>2,'attri'=>3100,'time'=>4170),array('wood'=>350,'clay'=>430,'iron'=>240,'crop'=>105,'pop'=>1,'cp'=>2,'attri'=>4000,'time'=>5140),array('wood'=>445,'clay'=>550,'iron'=>310,'crop'=>135,'pop'=>1,'cp'=>3,'attri'=>5000,'time'=>6260),array('wood'=>570,'clay'=>705,'iron'=>395,'crop'=>175,'pop'=>1,'cp'=>4,'attri'=>6300,'time'=>7570),array('wood'=>730,'clay'=>900,'iron'=>505,'crop'=>225,'pop'=>1,'cp'=>4,'attri'=>7800,'time'=>9080),array('wood'=>935,'clay'=>1115,'iron'=>650,'crop'=>290,'pop'=>1,'cp'=>5,'attri'=>9600,'time'=>10830),array('wood'=>1200,'clay'=>1475,'iron'=>830,'crop'=>370,'pop'=>1,'cp'=>6,'attri'=>11800,'time'=>12860),array('wood'=>1535,'clay'=>1890,'iron'=>1065,'crop'=>470,'pop'=>2,'cp'=>7,'attri'=>14400,'time'=>15220),array('wood'=>1965,'clay'=>2420,'iron'=>1360,'crop'=>605,'pop'=>2,'cp'=>9,'attri'=>17600,'time'=>17950),array('wood'=>2515,'clay'=>3095,'iron'=>1740,'crop'=>775,'pop'=>2,'cp'=>11,'attri'=>21400,'time'=>21130),array('wood'=>3220,'clay'=>3960,'iron'=>2230,'crop'=>990,'pop'=>2,'cp'=>13,'attri'=>25900,'time'=>24810),array('wood'=>4120,'clay'=>5070,'iron'=>2850,'crop'=>1270,'pop'=>2,'cp'=>15,'attri'=>31300,'time'=>29080),array('wood'=>5275,'clay'=>6490,'iron'=>3650,'crop'=>1625,'pop'=>2,'cp'=>18,'attri'=>37900,'time'=>34030),array('wood'=>6750,'clay'=>8310,'iron'=>4675,'crop'=>2075,'pop'=>2,'cp'=>22,'attri'=>45700,'time'=>39770),array('wood'=>8640,'clay'=>10635,'iron'=>5980,'crop'=>2660,'pop'=>2,'cp'=>27,'attri'=>55100,'time'=>46440),array('wood'=>11060,'clay'=>13610,'iron'=>7655,'crop'=>3405,'pop'=>2,'cp'=>32,'attri'=>66400,'time'=>54170),array('wood'=>14155,'clay'=>17420,'iron'=>9800,'crop'=>4355,'pop'=>2,'cp'=>38,'attri'=>80000,'time'=>63130)); +$bid11=array(1=>array('wood'=>80,'clay'=>100,'iron'=>70,'crop'=>20,'pop'=>1,'cp'=>1,'attri'=>1200,'time'=>1600),array('wood'=>100,'clay'=>130,'iron'=>90,'crop'=>25,'pop'=>1,'cp'=>1,'attri'=>1700,'time'=>2160),array('wood'=>130,'clay'=>165,'iron'=>115,'crop'=>35,'pop'=>1,'cp'=>2,'attri'=>2300,'time'=>2800),array('wood'=>170,'clay'=>210,'iron'=>145,'crop'=>40,'pop'=>1,'cp'=>2,'attri'=>3100,'time'=>3550),array('wood'=>215,'clay'=>270,'iron'=>190,'crop'=>55,'pop'=>1,'cp'=>2,'attri'=>4000,'time'=>4420),array('wood'=>275,'clay'=>345,'iron'=>240,'crop'=>70,'pop'=>1,'cp'=>3,'attri'=>5000,'time'=>5420),array('wood'=>350,'clay'=>440,'iron'=>310,'crop'=>90,'pop'=>1,'cp'=>4,'attri'=>6300,'time'=>6590),array('wood'=>450,'clay'=>565,'iron'=>395,'crop'=>115,'pop'=>1,'cp'=>4,'attri'=>7800,'time'=>7950),array('wood'=>575,'clay'=>720,'iron'=>505,'crop'=>145,'pop'=>1,'cp'=>5,'attri'=>9600,'time'=>9520),array('wood'=>740,'clay'=>920,'iron'=>645,'crop'=>185,'pop'=>1,'cp'=>6,'attri'=>11800,'time'=>11340),array('wood'=>945,'clay'=>1180,'iron'=>825,'crop'=>235,'pop'=>2,'cp'=>7,'attri'=>14400,'time'=>13450),array('wood'=>1210,'clay'=>1510,'iron'=>1060,'crop'=>300,'pop'=>2,'cp'=>9,'attri'=>17600,'time'=>15910),array('wood'=>1545,'clay'=>1935,'iron'=>1355,'crop'=>385,'pop'=>2,'cp'=>11,'attri'=>21400,'time'=>18750),array('wood'=>1980,'clay'=>2475,'iron'=>1735,'crop'=>495,'pop'=>2,'cp'=>13,'attri'=>25900,'time'=>22050),array('wood'=>2535,'clay'=>3170,'iron'=>2220,'crop'=>635,'pop'=>2,'cp'=>15,'attri'=>31300,'time'=>25880),array('wood'=>3245,'clay'=>4055,'iron'=>2840,'crop'=>810,'pop'=>2,'cp'=>18,'attri'=>37900,'time'=>30320),array('wood'=>4155,'clay'=>5190,'iron'=>3635,'crop'=>1040,'pop'=>2,'cp'=>22,'attri'=>45700,'time'=>35470),array('wood'=>5315,'clay'=>6645,'iron'=>4650,'crop'=>1330,'pop'=>2,'cp'=>27,'attri'=>55100,'time'=>41450),array('wood'=>6805,'clay'=>8505,'iron'=>5955,'crop'=>1700,'pop'=>2,'cp'=>32,'attri'=>66400,'time'=>48380),array('wood'=>8710,'clay'=>10890,'iron'=>7620,'crop'=>2180,'pop'=>2,'cp'=>38,'attri'=>80000,'time'=>56420)); +$bid12=array(1=>array('wood'=>170,'clay'=>200,'iron'=>380,'crop'=>130,'pop'=>4,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>220,'clay'=>255,'iron'=>485,'crop'=>165,'pop'=>2,'cp'=>3,'attri'=>96.4,'time'=>2620),array('wood'=>280,'clay'=>330,'iron'=>625,'crop'=>215,'pop'=>2,'cp'=>3,'attri'=>92.93,'time'=>3340),array('wood'=>355,'clay'=>420,'iron'=>795,'crop'=>275,'pop'=>2,'cp'=>4,'attri'=>89.58,'time'=>4170),array('wood'=>455,'clay'=>535,'iron'=>1020,'crop'=>350,'pop'=>2,'cp'=>5,'attri'=>86.36,'time'=>5140),array('wood'=>585,'clay'=>685,'iron'=>1305,'crop'=>445,'pop'=>3,'cp'=>6,'attri'=>83.25,'time'=>6260),array('wood'=>750,'clay'=>880,'iron'=>1670,'crop'=>570,'pop'=>3,'cp'=>7,'attri'=>80.25,'time'=>7570),array('wood'=>955,'clay'=>1125,'iron'=>2140,'crop'=>730,'pop'=>3,'cp'=>9,'attri'=>77.36,'time'=>9080),array('wood'=>1225,'clay'=>1440,'iron'=>2740,'crop'=>935,'pop'=>3,'cp'=>10,'attri'=>74.58,'time'=>10830),array('wood'=>1570,'clay'=>1845,'iron'=>3505,'crop'=>1200,'pop'=>3,'cp'=>12,'attri'=>71.89,'time'=>12860),array('wood'=>2005,'clay'=>2360,'iron'=>4485,'crop'=>1535,'pop'=>3,'cp'=>15,'attri'=>69.31,'time'=>15220),array('wood'=>2570,'clay'=>3020,'iron'=>5740,'crop'=>1965,'pop'=>3,'cp'=>18,'attri'=>66.81,'time'=>17950),array('wood'=>3290,'clay'=>3870,'iron'=>7350,'crop'=>2515,'pop'=>3,'cp'=>21,'attri'=>64.41,'time'=>21130),array('wood'=>4210,'clay'=>4950,'iron'=>9410,'crop'=>3220,'pop'=>3,'cp'=>26,'attri'=>62.09,'time'=>24810),array('wood'=>5390,'clay'=>6340,'iron'=>12045,'crop'=>4120,'pop'=>3,'cp'=>31,'attri'=>59.85,'time'=>29080),array('wood'=>6895,'clay'=>8115,'iron'=>15415,'crop'=>5275,'pop'=>4,'cp'=>37,'attri'=>57.70,'time'=>34030),array('wood'=>8825,'clay'=>10385,'iron'=>19730,'crop'=>6750,'pop'=>4,'cp'=>44,'attri'=>55.62,'time'=>39770),array('wood'=>11300,'clay'=>13290,'iron'=>25255,'crop'=>8640,'pop'=>4,'cp'=>53,'attri'=>53.62,'time'=>46440),array('wood'=>14460,'clay'=>17015,'iron'=>32325,'crop'=>11060,'pop'=>4,'cp'=>64,'attri'=>51.69,'time'=>54170),array('wood'=>18510,'clay'=>21780,'iron'=>41380,'crop'=>14155,'pop'=>4,'cp'=>77,'attri'=>49.83,'time'=>63130)); +$bid13=array(1=>array('wood'=>130,'clay'=>210,'iron'=>410,'crop'=>130,'pop'=>4,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>165,'clay'=>270,'iron'=>525,'crop'=>165,'pop'=>2,'cp'=>3,'attri'=>96.4,'time'=>2620),array('wood'=>215,'clay'=>345,'iron'=>670,'crop'=>215,'pop'=>2,'cp'=>3,'attri'=>92.93,'time'=>3340),array('wood'=>275,'clay'=>440,'iron'=>860,'crop'=>275,'pop'=>2,'cp'=>4,'attri'=>89.58,'time'=>4170),array('wood'=>350,'clay'=>565,'iron'=>1100,'crop'=>350,'pop'=>2,'cp'=>5,'attri'=>86.36,'time'=>5140),array('wood'=>445,'clay'=>720,'iron'=>1410,'crop'=>445,'pop'=>3,'cp'=>6,'attri'=>83.25,'time'=>6260),array('wood'=>570,'clay'=>925,'iron'=>1805,'crop'=>570,'pop'=>3,'cp'=>7,'attri'=>80.25,'time'=>7570),array('wood'=>730,'clay'=>1180,'iron'=>2310,'crop'=>730,'pop'=>3,'cp'=>9,'attri'=>77.36,'time'=>9080),array('wood'=>935,'clay'=>1515,'iron'=>2955,'crop'=>935,'pop'=>3,'cp'=>10,'attri'=>74.58,'time'=>10830),array('wood'=>1200,'clay'=>1935,'iron'=>3780,'crop'=>1200,'pop'=>3,'cp'=>12,'attri'=>71.89,'time'=>12860),array('wood'=>1535,'clay'=>2480,'iron'=>4840,'crop'=>1535,'pop'=>3,'cp'=>15,'attri'=>69.31,'time'=>15220),array('wood'=>1965,'clay'=>3175,'iron'=>6195,'crop'=>1965,'pop'=>3,'cp'=>18,'attri'=>66.81,'time'=>17950),array('wood'=>2515,'clay'=>4060,'iron'=>7930,'crop'=>2515,'pop'=>3,'cp'=>21,'attri'=>64.41,'time'=>21130),array('wood'=>3220,'clay'=>5200,'iron'=>10150,'crop'=>3220,'pop'=>3,'cp'=>26,'attri'=>62.09,'time'=>24810),array('wood'=>4120,'clay'=>6655,'iron'=>12995,'crop'=>4120,'pop'=>3,'cp'=>31,'attri'=>59.85,'time'=>29080),array('wood'=>5275,'clay'=>8520,'iron'=>16630,'crop'=>5275,'pop'=>4,'cp'=>37,'attri'=>57.70,'time'=>34030),array('wood'=>6750,'clay'=>10905,'iron'=>21290,'crop'=>6750,'pop'=>4,'cp'=>44,'attri'=>55.62,'time'=>39770),array('wood'=>8640,'clay'=>13955,'iron'=>27250,'crop'=>8640,'pop'=>4,'cp'=>53,'attri'=>53.62,'time'=>46440),array('wood'=>11060,'clay'=>17865,'iron'=>34880,'crop'=>11060,'pop'=>4,'cp'=>64,'attri'=>51.69,'time'=>54170),array('wood'=>14155,'clay'=>22865,'iron'=>44645,'crop'=>14155,'pop'=>4,'cp'=>77,'attri'=>49.83,'time'=>63130)); +$bid14=array(1=>array('wood'=>1750,'clay'=>2250,'iron'=>1530,'crop'=>240,'pop'=>1,'cp'=>1,'attri'=>110,'time'=>3500),array('wood'=>2240,'clay'=>2880,'iron'=>1960,'crop'=>305,'pop'=>1,'cp'=>1,'attri'=>120,'time'=>4360),array('wood'=>2865,'clay'=>3685,'iron'=>2505,'crop'=>395,'pop'=>1,'cp'=>2,'attri'=>130,'time'=>5360),array('wood'=>3670,'clay'=>4720,'iron'=>3210,'crop'=>505,'pop'=>1,'cp'=>2,'attri'=>140,'time'=>6510),array('wood'=>4700,'clay'=>6040,'iron'=>4105,'crop'=>645,'pop'=>1,'cp'=>2,'attri'=>150,'time'=>7860),array('wood'=>6015,'clay'=>7730,'iron'=>5255,'crop'=>825,'pop'=>1,'cp'=>3,'attri'=>160,'time'=>9410),array('wood'=>7695,'clay'=>9895,'iron'=>6730,'crop'=>1055,'pop'=>1,'cp'=>4,'attri'=>170,'time'=>11220),array('wood'=>9850,'clay'=>12665,'iron'=>8615,'crop'=>1350,'pop'=>1,'cp'=>4,'attri'=>180,'time'=>13320),array('wood'=>12610,'clay'=>16215,'iron'=>11025,'crop'=>1730,'pop'=>1,'cp'=>5,'attri'=>190,'time'=>15750),array('wood'=>16140,'clay'=>20755,'iron'=>14110,'crop'=>2215,'pop'=>1,'cp'=>6,'attri'=>200,'time'=>18570),array('wood'=>20660,'clay'=>26565,'iron'=>18065,'crop'=>2835,'pop'=>2,'cp'=>7,'attri'=>210,'time'=>21840),array('wood'=>26445,'clay'=>34000,'iron'=>23120,'crop'=>3625,'pop'=>2,'cp'=>9,'attri'=>220,'time'=>25630),array('wood'=>33850,'clay'=>43520,'iron'=>29595,'crop'=>4640,'pop'=>2,'cp'=>11,'attri'=>230,'time'=>30030),array('wood'=>43330,'clay'=>55705,'iron'=>37880,'crop'=>5940,'pop'=>2,'cp'=>13,'attri'=>240,'time'=>35140),array('wood'=>55460,'clay'=>71305,'iron'=>48490,'crop'=>7605,'pop'=>2,'cp'=>15,'attri'=>250,'time'=>41060),array('wood'=>70990,'clay'=>91270,'iron'=>62065,'crop'=>9735,'pop'=>2,'cp'=>18,'attri'=>260,'time'=>47930),array('wood'=>90865,'clay'=>116825,'iron'=>79440,'crop'=>12460,'pop'=>2,'cp'=>22,'attri'=>270,'time'=>55900),array('wood'=>116305,'clay'=>149540,'iron'=>101685,'crop'=>15950,'pop'=>2,'cp'=>27,'attri'=>280,'time'=>65140),array('wood'=>148875,'clay'=>191410,'iron'=>130160,'crop'=>20415,'pop'=>2,'cp'=>32,'attri'=>290,'time'=>75860),array('wood'=>190560,'clay'=>245005,'iron'=>166600,'crop'=>26135,'pop'=>2,'cp'=>38,'attri'=>300,'time'=>88300)); +$bid15=array(1=>array('wood'=>70,'clay'=>40,'iron'=>60,'crop'=>20,'pop'=>2,'cp'=>2,'attri'=>100,'time'=>2620),array('wood'=>90,'clay'=>50,'iron'=>75,'crop'=>25,'pop'=>1,'cp'=>3,'attri'=>96.4,'time'=>3220),array('wood'=>115,'clay'=>65,'iron'=>100,'crop'=>35,'pop'=>1,'cp'=>3,'attri'=>92.93,'time'=>3880),array('wood'=>145,'clay'=>85,'iron'=>125,'crop'=>40,'pop'=>1,'cp'=>4,'attri'=>89.58,'time'=>4610),array('wood'=>190,'clay'=>105,'iron'=>160,'crop'=>55,'pop'=>1,'cp'=>5,'attri'=>86.36,'time'=>5410),array('wood'=>240,'clay'=>135,'iron'=>205,'crop'=>70,'pop'=>2,'cp'=>6,'attri'=>83.25,'time'=>6300),array('wood'=>310,'clay'=>175,'iron'=>265,'crop'=>90,'pop'=>2,'cp'=>7,'attri'=>80.25,'time'=>7280),array('wood'=>395,'clay'=>225,'iron'=>340,'crop'=>115,'pop'=>2,'cp'=>9,'attri'=>77.36,'time'=>8380),array('wood'=>505,'clay'=>290,'iron'=>430,'crop'=>145,'pop'=>2,'cp'=>10,'attri'=>74.58,'time'=>9590),array('wood'=>645,'clay'=>370,'iron'=>555,'crop'=>185,'pop'=>2,'cp'=>12,'attri'=>71.89,'time'=>10940),array('wood'=>825,'clay'=>470,'iron'=>710,'crop'=>235,'pop'=>2,'cp'=>15,'attri'=>69.31,'time'=>12440),array('wood'=>1060,'clay'=>605,'iron'=>905,'crop'=>300,'pop'=>2,'cp'=>18,'attri'=>66.81,'time'=>14120),array('wood'=>1355,'clay'=>775,'iron'=>1160,'crop'=>385,'pop'=>2,'cp'=>21,'attri'=>64.41,'time'=>15980),array('wood'=>1735,'clay'=>990,'iron'=>1485,'crop'=>495,'pop'=>2,'cp'=>26,'attri'=>62.09,'time'=>18050),array('wood'=>2220,'clay'=>1270,'iron'=>1900,'crop'=>635,'pop'=>2,'cp'=>31,'attri'=>59.85,'time'=>20370),array('wood'=>2840,'clay'=>1625,'iron'=>2435,'crop'=>810,'pop'=>3,'cp'=>37,'attri'=>57.70,'time'=>22950),array('wood'=>3635,'clay'=>2075,'iron'=>3115,'crop'=>1040,'pop'=>3,'cp'=>44,'attri'=>55.62,'time'=>25830),array('wood'=>4650,'clay'=>2660,'iron'=>3990,'crop'=>1330,'pop'=>3,'cp'=>53,'attri'=>53.62,'time'=>29040),array('wood'=>5955,'clay'=>3405,'iron'=>5105,'crop'=>1700,'pop'=>3,'cp'=>64,'attri'=>51.69,'time'=>32630),array('wood'=>7620,'clay'=>4355,'iron'=>6535,'crop'=>2180,'pop'=>3,'cp'=>77,'attri'=>49.83,'time'=>32632)); +$bid16=array(1=>array('wood'=>110,'clay'=>160,'iron'=>90,'crop'=>70,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>670),array('wood'=>140,'clay'=>205,'iron'=>115,'crop'=>90,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>870),array('wood'=>180,'clay'=>260,'iron'=>145,'crop'=>115,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1110),array('wood'=>230,'clay'=>335,'iron'=>190,'crop'=>145,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1390),array('wood'=>295,'clay'=>430,'iron'=>240,'crop'=>190,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1710),array('wood'=>380,'clay'=>550,'iron'=>310,'crop'=>240,'pop'=>1,'cp'=>3,'attri'=>0,'time'=>2090),array('wood'=>485,'clay'=>705,'iron'=>395,'crop'=>310,'pop'=>1,'cp'=>4,'attri'=>0,'time'=>2520),array('wood'=>620,'clay'=>900,'iron'=>505,'crop'=>395,'pop'=>1,'cp'=>4,'attri'=>0,'time'=>3030),array('wood'=>795,'clay'=>1155,'iron'=>650,'crop'=>505,'pop'=>1,'cp'=>5,'attri'=>0,'time'=>3610),array('wood'=>1015,'clay'=>1475,'iron'=>830,'crop'=>645,'pop'=>1,'cp'=>6,'attri'=>0,'time'=>4290),array('wood'=>1300,'clay'=>1890,'iron'=>1065,'crop'=>825,'pop'=>2,'cp'=>7,'attri'=>0,'time'=>5070),array('wood'=>1660,'clay'=>2420,'iron'=>1360,'crop'=>1060,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>5980),array('wood'=>2130,'clay'=>3095,'iron'=>1740,'crop'=>1355,'pop'=>2,'cp'=>11,'attri'=>0,'time'=>7040),array('wood'=>2725,'clay'=>3960,'iron'=>2230,'crop'=>1735,'pop'=>2,'cp'=>13,'attri'=>0,'time'=>8270),array('wood'=>3485,'clay'=>5070,'iron'=>2850,'crop'=>2220,'pop'=>2,'cp'=>15,'attri'=>0,'time'=>9690),array('wood'=>4460,'clay'=>6490,'iron'=>3650,'crop'=>2840,'pop'=>2,'cp'=>18,'attri'=>0,'time'=>11340),array('wood'=>5710,'clay'=>8310,'iron'=>4675,'crop'=>3635,'pop'=>2,'cp'=>22,'attri'=>0,'time'=>13260),array('wood'=>7310,'clay'=>10635,'iron'=>5980,'crop'=>4650,'pop'=>2,'cp'=>27,'attri'=>0,'time'=>15480),array('wood'=>9360,'clay'=>13610,'iron'=>7655,'crop'=>5955,'pop'=>2,'cp'=>32,'attri'=>0,'time'=>18060),array('wood'=>11980,'clay'=>17420,'iron'=>9800,'crop'=>7620,'pop'=>2,'cp'=>38,'attri'=>0,'time'=>21040)); +$bid17=array(1=>array('wood'=>80,'clay'=>70,'iron'=>120,'crop'=>70,'pop'=>4,'cp'=>4,'attri'=>1,'time'=>1800),array('wood'=>100,'clay'=>90,'iron'=>155,'crop'=>90,'pop'=>2,'cp'=>4,'attri'=>2,'time'=>2390),array('wood'=>130,'clay'=>115,'iron'=>195,'crop'=>115,'pop'=>2,'cp'=>5,'attri'=>3,'time'=>3070),array('wood'=>170,'clay'=>145,'iron'=>250,'crop'=>145,'pop'=>2,'cp'=>6,'attri'=>4,'time'=>3860),array('wood'=>215,'clay'=>190,'iron'=>320,'crop'=>190,'pop'=>2,'cp'=>7,'attri'=>5,'time'=>4780),array('wood'=>275,'clay'=>240,'iron'=>410,'crop'=>240,'pop'=>3,'cp'=>9,'attri'=>6,'time'=>5840),array('wood'=>350,'clay'=>310,'iron'=>530,'crop'=>310,'pop'=>3,'cp'=>11,'attri'=>7,'time'=>7080),array('wood'=>450,'clay'=>395,'iron'=>675,'crop'=>395,'pop'=>3,'cp'=>13,'attri'=>8,'time'=>8510),array('wood'=>575,'clay'=>505,'iron'=>865,'crop'=>505,'pop'=>3,'cp'=>15,'attri'=>9,'time'=>10170),array('wood'=>740,'clay'=>645,'iron'=>1105,'crop'=>645,'pop'=>3,'cp'=>19,'attri'=>10,'time'=>12100),array('wood'=>945,'clay'=>825,'iron'=>1415,'crop'=>825,'pop'=>3,'cp'=>22,'attri'=>11,'time'=>14340),array('wood'=>1210,'clay'=>1060,'iron'=>1815,'crop'=>1060,'pop'=>3,'cp'=>27,'attri'=>12,'time'=>16930),array('wood'=>1545,'clay'=>1355,'iron'=>2320,'crop'=>1355,'pop'=>3,'cp'=>32,'attri'=>13,'time'=>19940),array('wood'=>1980,'clay'=>1735,'iron'=>2970,'crop'=>1735,'pop'=>3,'cp'=>39,'attri'=>14,'time'=>23430),array('wood'=>2535,'clay'=>2220,'iron'=>3805,'crop'=>2220,'pop'=>3,'cp'=>46,'attri'=>15,'time'=>27480),array('wood'=>3245,'clay'=>2840,'iron'=>4870,'crop'=>2840,'pop'=>4,'cp'=>55,'attri'=>16,'time'=>32180),array('wood'=>4155,'clay'=>3635,'iron'=>6230,'crop'=>3635,'pop'=>4,'cp'=>67,'attri'=>17,'time'=>37620),array('wood'=>5315,'clay'=>4650,'iron'=>7975,'crop'=>4650,'pop'=>4,'cp'=>80,'attri'=>18,'time'=>43940),array('wood'=>6805,'clay'=>5955,'iron'=>10210,'crop'=>5955,'pop'=>4,'cp'=>96,'attri'=>19,'time'=>51270),array('wood'=>8710,'clay'=>7620,'iron'=>13065,'crop'=>7620,'pop'=>4,'cp'=>115,'attri'=>20,'time'=>59780)); +$bid18=array(1=>array('wood'=>180,'clay'=>130,'iron'=>150,'crop'=>80,'pop'=>3,'cp'=>5,'attri'=>0,'time'=>2000),array('wood'=>230,'clay'=>165,'iron'=>190,'crop'=>100,'pop'=>2,'cp'=>6,'attri'=>0,'time'=>2620),array('wood'=>295,'clay'=>215,'iron'=>245,'crop'=>130,'pop'=>2,'cp'=>7,'attri'=>9,'time'=>3340),array('wood'=>375,'clay'=>275,'iron'=>315,'crop'=>170,'pop'=>2,'cp'=>8,'attri'=>12,'time'=>4170),array('wood'=>485,'clay'=>350,'iron'=>405,'crop'=>215,'pop'=>2,'cp'=>10,'attri'=>15,'time'=>5140),array('wood'=>620,'clay'=>445,'iron'=>515,'crop'=>275,'pop'=>2,'cp'=>12,'attri'=>18,'time'=>6260),array('wood'=>790,'clay'=>570,'iron'=>660,'crop'=>350,'pop'=>2,'cp'=>14,'attri'=>21,'time'=>7570),array('wood'=>1015,'clay'=>730,'iron'=>845,'crop'=>450,'pop'=>2,'cp'=>17,'attri'=>24,'time'=>9080),array('wood'=>1295,'clay'=>935,'iron'=>1080,'crop'=>575,'pop'=>2,'cp'=>21,'attri'=>27,'time'=>10830),array('wood'=>1660,'clay'=>1200,'iron'=>1385,'crop'=>740,'pop'=>2,'cp'=>25,'attri'=>30,'time'=>12860),array('wood'=>2125,'clay'=>1535,'iron'=>1770,'crop'=>945,'pop'=>3,'cp'=>30,'attri'=>33,'time'=>15220),array('wood'=>2720,'clay'=>1965,'iron'=>2265,'crop'=>1210,'pop'=>3,'cp'=>36,'attri'=>36,'time'=>17950),array('wood'=>3480,'clay'=>2515,'iron'=>2900,'crop'=>1545,'pop'=>3,'cp'=>43,'attri'=>39,'time'=>21130), array('wood'=>4455,'clay'=>3220,'iron'=>3715,'crop'=>1980,'pop'=>3,'cp'=>51,'attri'=>42,'time'=>24810),array('wood'=>5705,'clay'=>4120,'iron'=>4755,'crop'=>2535,'pop'=>3,'cp'=>62,'attri'=>45,'time'=>29080),array('wood'=>7300,'clay'=>5275,'iron'=>6085,'crop'=>3245,'pop'=>3,'cp'=>74,'attri'=>48,'time'=>34030),array('wood'=>9345,'clay'=>6750,'iron'=>7790,'crop'=>4155,'pop'=>3,'cp'=>89,'attri'=>51,'time'=>39770),array('wood'=>11965,'clay'=>8640,'iron'=>9970,'crop'=>5315,'pop'=>3,'cp'=>106,'attri'=>54,'time'=>46440),array('wood'=>15315,'clay'=>11060,'iron'=>12760,'crop'=>6805,'pop'=>3,'cp'=>128,'attri'=>57,'time'=>54170),array('wood'=>19600,'clay'=>14155,'iron'=>16335,'crop'=>8710,'pop'=>3,'cp'=>153,'attri'=>60,'time'=>63130)); +$bid19=array(1=>array('wood'=>210,'clay'=>140,'iron'=>260,'crop'=>120,'pop'=>4,'cp'=>1,'attri'=>100,'time'=>2000),array('wood'=>270,'clay'=>180,'iron'=>335,'crop'=>155,'pop'=>2,'cp'=>1,'attri'=>90,'time'=>2620),array('wood'=>345,'clay'=>230,'iron'=>425,'crop'=>195,'pop'=>2,'cp'=>2,'attri'=>81,'time'=>3340),array('wood'=>440,'clay'=>295,'iron'=>545,'crop'=>250,'pop'=>2,'cp'=>2,'attri'=>72.9,'time'=>4170),array('wood'=>565,'clay'=>375,'iron'=>700,'crop'=>320,'pop'=>2,'cp'=>2,'attri'=>65.61,'time'=>5140),array('wood'=>720,'clay'=>480,'iron'=>895,'crop'=>410,'pop'=>3,'cp'=>3,'attri'=>59.05,'time'=>6260),array('wood'=>925,'clay'=>615,'iron'=>1145,'crop'=>530,'pop'=>3,'cp'=>4,'attri'=>53.14,'time'=>7570),array('wood'=>1180,'clay'=>790,'iron'=>1465,'crop'=>675,'pop'=>3,'cp'=>4,'attri'=>47.83,'time'=>9080),array('wood'=>1515,'clay'=>1010,'iron'=>1875,'crop'=>865,'pop'=>3,'cp'=>5,'attri'=>43.05,'time'=>10830),array('wood'=>1935,'clay'=>1290,'iron'=>2400,'crop'=>1105,'pop'=>3,'cp'=>6,'attri'=>38.74,'time'=>12860),array('wood'=>2480,'clay'=>1655,'iron'=>3070,'crop'=>1415,'pop'=>3,'cp'=>7,'attri'=>34.87,'time'=>15220),array('wood'=>3175,'clay'=>2115,'iron'=>3930,'crop'=>1815,'pop'=>3,'cp'=>9,'attri'=>31.38,'time'=>17950),array('wood'=>4060,'clay'=>2710,'iron'=>5030,'crop'=>2320,'pop'=>3,'cp'=>11,'attri'=>28.24,'time'=>21130),array('wood'=>5200,'clay'=>3465,'iron'=>6435,'crop'=>2970,'pop'=>3,'cp'=>13,'attri'=>25.42,'time'=>24810),array('wood'=>6655,'clay'=>4435,'iron'=>8240,'crop'=>3805,'pop'=>3,'cp'=>15,'attri'=>22.88,'time'=>29080),array('wood'=>8520,'clay'=>5680,'iron'=>10545,'crop'=>4870,'pop'=>4,'cp'=>18,'attri'=>20.59,'time'=>34030),array('wood'=>10905,'clay'=>7270,'iron'=>13500,'crop'=>6230,'pop'=>4,'cp'=>22,'attri'=>18.53,'time'=>39770),array('wood'=>13955,'clay'=>9305,'iron'=>17280,'crop'=>7975,'pop'=>4,'cp'=>27,'attri'=>16.68,'time'=>46440),array('wood'=>17865,'clay'=>11910,'iron'=>22120,'crop'=>10210,'pop'=>4,'cp'=>32,'attri'=>15.01,'time'=>54170),array('wood'=>22865,'clay'=>15245,'iron'=>28310,'crop'=>13065,'pop'=>4,'cp'=>38,'attri'=>13.51,'time'=>63130)); +$bid20=array(1=>array('wood'=>260,'clay'=>140,'iron'=>220,'crop'=>100,'pop'=>5,'cp'=>2,'attri'=>100,'time'=>2200),array('wood'=>335,'clay'=>180,'iron'=>280,'crop'=>130,'pop'=>3,'cp'=>3,'attri'=>90,'time'=>2850),array('wood'=>425,'clay'=>230,'iron'=>360,'crop'=>165,'pop'=>3,'cp'=>3,'attri'=>81,'time'=>3610),array('wood'=>545,'clay'=>295,'iron'=>460,'crop'=>210,'pop'=>3,'cp'=>4,'attri'=>72.9,'time'=>4490),array('wood'=>700,'clay'=>375,'iron'=>590,'crop'=>270,'pop'=>3,'cp'=>5,'attri'=>65.61,'time'=>5500),array('wood'=>895,'clay'=>480,'iron'=>755,'crop'=>345,'pop'=>3,'cp'=>6,'attri'=>59.05,'time'=>6680),array('wood'=>1145,'clay'=>615,'iron'=>970,'crop'=>440,'pop'=>3,'cp'=>7,'attri'=>53.14,'time'=>8050),array('wood'=>1465,'clay'=>790,'iron'=>1240,'crop'=>565,'pop'=>3,'cp'=>9,'attri'=>47.83,'time'=>9640),array('wood'=>1875,'clay'=>1010,'iron'=>1585,'crop'=>720,'pop'=>3,'cp'=>10,'attri'=>43.05,'time'=>11480),array('wood'=>2400,'clay'=>1290,'iron'=>2030,'crop'=>920,'pop'=>3,'cp'=>12,'attri'=>38.74,'time'=>13620),array('wood'=>3070,'clay'=>1655,'iron'=>2595,'crop'=>1180,'pop'=>4,'cp'=>15,'attri'=>34.87,'time'=>16100),array('wood'=>3930,'clay'=>2115,'iron'=>3325,'crop'=>1510,'pop'=>4,'cp'=>18,'attri'=>31.38,'time'=>18980),array('wood'=>5030,'clay'=>2710,'iron'=>4255,'crop'=>1935,'pop'=>4,'cp'=>21,'attri'=>28.24,'time'=>22310),array('wood'=>6435,'clay'=>3465,'iron'=>5445,'crop'=>2475,'pop'=>4,'cp'=>26,'attri'=>25.42,'time'=>26180),array('wood'=>8240,'clay'=>4435,'iron'=>6970,'crop'=>3170,'pop'=>4,'cp'=>31,'attri'=>22.88,'time'=>30670),array('wood'=>10545,'clay'=>5680,'iron'=>8925,'crop'=>4055,'pop'=>4,'cp'=>37,'attri'=>20.59,'time'=>35880),array('wood'=>13500,'clay'=>7270,'iron'=>11425,'crop'=>5190,'pop'=>4,'cp'=>44,'attri'=>18.53,'time'=>41920),array('wood'=>17280,'clay'=>9305,'iron'=>14620,'crop'=>6645,'pop'=>4,'cp'=>53,'attri'=>16.68,'time'=>48930),array('wood'=>22120,'clay'=>11910,'iron'=>18715,'crop'=>8505,'pop'=>4,'cp'=>64,'attri'=>15.01,'time'=>57060),array('wood'=>28310,'clay'=>15245,'iron'=>23955,'crop'=>10890,'pop'=>4,'cp'=>77,'attri'=>13.51,'time'=>66490)); +$bid21=array(1=>array('wood'=>460,'clay'=>510,'iron'=>600,'crop'=>320,'pop'=>3,'cp'=>4,'attri'=>100,'time'=>3000),array('wood'=>590,'clay'=>655,'iron'=>770,'crop'=>410,'pop'=>2,'cp'=>4,'attri'=>90,'time'=>3780),array('wood'=>755,'clay'=>835,'iron'=>985,'crop'=>525,'pop'=>2,'cp'=>5,'attri'=>81,'time'=>4680),array('wood'=>965,'clay'=>1070,'iron'=>1260,'crop'=>670,'pop'=>2,'cp'=>6,'attri'=>72.9,'time'=>5730),array('wood'=>1235,'clay'=>1370,'iron'=>1610,'crop'=>860,'pop'=>2,'cp'=>7,'attri'=>65.61,'time'=>6950),array('wood'=>1580,'clay'=>1750,'iron'=>2060,'crop'=>1100,'pop'=>2,'cp'=>9,'attri'=>59.05,'time'=>8360),array('wood'=>2025,'clay'=>2245,'iron'=>2640,'crop'=>1405,'pop'=>2,'cp'=>11,'attri'=>53.14,'time'=>10000),array('wood'=>2590,'clay'=>2870,'iron'=>3380,'crop'=>1800,'pop'=>2,'cp'=>13,'attri'=>47.83,'time'=>11900),array('wood'=>3315,'clay'=>3675,'iron'=>4325,'crop'=>2305,'pop'=>2,'cp'=>15,'attri'=>43.05,'time'=>14110),array('wood'=>4245,'clay'=>4705,'iron'=>5535,'crop'=>2950,'pop'=>2,'cp'=>19,'attri'=>38.74,'time'=>16660),array('wood'=>5430,'clay'=>6020,'iron'=>7085,'crop'=>3780,'pop'=>3,'cp'=>22,'attri'=>34.87,'time'=>19630),array('wood'=>6950,'clay'=>7705,'iron'=>9065,'crop'=>4835,'pop'=>3,'cp'=>27,'attri'=>31.38,'time'=>23070),array('wood'=>8900,'clay'=>9865,'iron'=>11605,'crop'=>6190,'pop'=>3,'cp'=>32,'attri'=>28.24,'time'=>27060),array('wood'=>11390,'clay'=>12625,'iron'=>14855,'crop'=>7925,'pop'=>3,'cp'=>39,'attri'=>25.42,'time'=>31690),array('wood'=>14580,'clay'=>16165,'iron'=>19015,'crop'=>10140,'pop'=>3,'cp'=>46,'attri'=>22.88,'time'=>37060),array('wood'=>18660,'clay'=>20690,'iron'=>24340,'crop'=>12980,'pop'=>3,'cp'=>55,'attri'=>20.59,'time'=>43290),array('wood'=>23885,'clay'=>26480,'iron'=>31155,'crop'=>16615,'pop'=>3,'cp'=>67,'attri'=>18.53,'time'=>50520),array('wood'=>30570,'clay'=>33895,'iron'=>39875,'crop'=>21270,'pop'=>3,'cp'=>80,'attri'=>16.68,'time'=>58900),array('wood'=>39130,'clay'=>43385,'iron'=>51040,'crop'=>27225,'pop'=>3,'cp'=>96,'attri'=>15.01,'time'=>68630),array('wood'=>50090,'clay'=>55535,'iron'=>65335,'crop'=>34845,'pop'=>3,'cp'=>115,'attri'=>13.51,'time'=>79910)); +$bid22=array(1=>array('wood'=>220,'clay'=>160,'iron'=>90,'crop'=>40,'pop'=>4,'cp'=>5,'attri'=>100,'time'=>2000),array('wood'=>280,'clay'=>205,'iron'=>115,'crop'=>50,'pop'=>2,'cp'=>6,'attri'=>96.4,'time'=>2620),array('wood'=>360,'clay'=>260,'iron'=>145,'crop'=>65,'pop'=>2,'cp'=>7,'attri'=>92.93,'time'=>3340),array('wood'=>460,'clay'=>335,'iron'=>190,'crop'=>85,'pop'=>2,'cp'=>8,'attri'=>89.58,'time'=>4170),array('wood'=>590,'clay'=>430,'iron'=>240,'crop'=>105,'pop'=>2,'cp'=>10,'attri'=>86.36,'time'=>5140),array('wood'=>755,'clay'=>550,'iron'=>310,'crop'=>135,'pop'=>3,'cp'=>12,'attri'=>83.25,'time'=>6260),array('wood'=>970,'clay'=>705,'iron'=>395,'crop'=>175,'pop'=>3,'cp'=>14,'attri'=>80.25,'time'=>7570),array('wood'=>1240,'clay'=>900,'iron'=>505,'crop'=>225,'pop'=>3,'cp'=>17,'attri'=>77.36,'time'=>9080),array('wood'=>1585,'clay'=>1155,'iron'=>650,'crop'=>290,'pop'=>3,'cp'=>21,'attri'=>74.58,'time'=>10830),array('wood'=>2030,'clay'=>1475,'iron'=>830,'crop'=>370,'pop'=>3,'cp'=>25,'attri'=>71.89,'time'=>12860),array('wood'=>2595,'clay'=>1890,'iron'=>1065,'crop'=>470,'pop'=>3,'cp'=>30,'attri'=>69.31,'time'=>15220),array('wood'=>3325,'clay'=>2420,'iron'=>1360,'crop'=>605,'pop'=>3,'cp'=>36,'attri'=>66.81,'time'=>17950),array('wood'=>4255,'clay'=>3095,'iron'=>1740,'crop'=>775,'pop'=>3,'cp'=>43,'attri'=>64.41,'time'=>21130),array('wood'=>5445,'clay'=>3960,'iron'=>2230,'crop'=>990,'pop'=>3,'cp'=>51,'attri'=>62.09,'time'=>24810),array('wood'=>6970,'clay'=>5070,'iron'=>2850,'crop'=>1270,'pop'=>3,'cp'=>62,'attri'=>59.85,'time'=>29080),array('wood'=>8925,'clay'=>6490,'iron'=>3650,'crop'=>1625,'pop'=>4,'cp'=>74,'attri'=>57.70,'time'=>34030),array('wood'=>11425,'clay'=>8310,'iron'=>4675,'crop'=>2075,'pop'=>4,'cp'=>89,'attri'=>55.62,'time'=>39770),array('wood'=>14620,'clay'=>10635,'iron'=>5980,'crop'=>2660,'pop'=>4,'cp'=>106,'attri'=>53.62,'time'=>46440),array('wood'=>18715,'clay'=>13610,'iron'=>7655,'crop'=>3405,'pop'=>4,'cp'=>128,'attri'=>51.69,'time'=>54170),array('wood'=>23955,'clay'=>17420,'iron'=>9800,'crop'=>4355,'pop'=>4,'cp'=>153,'attri'=>49.83,'time'=>63134)); +$bid23=array(1=>array('wood'=>40,'clay'=>50,'iron'=>30,'crop'=>10,'pop'=>0,'cp'=>1,'attri'=>100,'time'=>750),array('wood'=>50,'clay'=>65,'iron'=>40,'crop'=>15,'pop'=>0,'cp'=>1,'attri'=>130,'time'=>1170),array('wood'=>65,'clay'=>80,'iron'=>50,'crop'=>15,'pop'=>0,'cp'=>2,'attri'=>170,'time'=>1660),array('wood'=>85,'clay'=>105,'iron'=>65,'crop'=>20,'pop'=>0,'cp'=>2,'attri'=>220,'time'=>2220),array('wood'=>105,'clay'=>135,'iron'=>80,'crop'=>25,'pop'=>0,'cp'=>2,'attri'=>280,'time'=>2880),array('wood'=>135,'clay'=>170,'iron'=>105,'crop'=>35,'pop'=>1,'cp'=>3,'attri'=>360,'time'=>3640),array('wood'=>175,'clay'=>220,'iron'=>130,'crop'=>45,'pop'=>1,'cp'=>4,'attri'=>460,'time'=>4520),array('wood'=>225,'clay'=>280,'iron'=>170,'crop'=>55,'pop'=>1,'cp'=>4,'attri'=>600,'time'=>5540),array('wood'=>290,'clay'=>360,'iron'=>215,'crop'=>70,'pop'=>1,'cp'=>5,'attri'=>770,'time'=>6730),array('wood'=>370,'clay'=>460,'iron'=>275,'crop'=>90,'pop'=>1,'cp'=>6,'attri'=>1000,'time'=>8110)); +$bid24=array(1=>array('wood'=>1250,'clay'=>1110,'iron'=>1260,'crop'=>600,'pop'=>4,'cp'=>6,'attri'=>100.00,'time'=>12500),array('wood'=>1600,'clay'=>1420,'iron'=>1615,'crop'=>770,'pop'=>2,'cp'=>7,'attri'=>96.40,'time'=>14800),array('wood'=>2050,'clay'=>1820,'iron'=>2065,'crop'=>985,'pop'=>2,'cp'=>9,'attri'=>92.93,'time'=>17468),array('wood'=>2620,'clay'=>2330,'iron'=>2640,'crop'=>1260,'pop'=>2,'cp'=>10,'attri'=>89.58,'time'=>20563),array('wood'=>3355,'clay'=>2980,'iron'=>3380,'crop'=>1610,'pop'=>2,'cp'=>12,'attri'=>86.36,'time'=>24153),array('wood'=>4295,'clay'=>3815,'iron'=>4330,'crop'=>2060,'pop'=>3,'cp'=>15,'attri'=>83.25,'time'=>28317),array('wood'=>5500,'clay'=>4880,'iron'=>5540,'crop'=>2640,'pop'=>3,'cp'=>18,'attri'=>80.25,'time'=>33148),array('wood'=>7035,'clay'=>6250,'iron'=>7095,'crop'=>3380,'pop'=>3,'cp'=>21,'attri'=>77.36,'time'=>38752),array('wood'=>9005,'clay'=>8000,'iron'=>9080,'crop'=>4325,'pop'=>3,'cp'=>26,'attri'=>74.58,'time'=>45252),array('wood'=>11530,'clay'=>10240,'iron'=>11620,'crop'=>5535,'pop'=>3,'cp'=>31,'attri'=>71.89,'time'=>52793),array('wood'=>14755,'clay'=>13105,'iron'=>14875,'crop'=>7085,'pop'=>3,'cp'=>37,'attri'=>69.31,'time'=>61539),array('wood'=>18890,'clay'=>16775,'iron'=>19040,'crop'=>9065,'pop'=>3,'cp'=>45,'attri'=>66.81,'time'=>71686),array('wood'=>24180,'clay'=>21470,'iron'=>24370,'crop'=>11605,'pop'=>3,'cp'=>53,'attri'=>64.41,'time'=>83455),array('wood'=>30950,'clay'=>27480,'iron'=>31195,'crop'=>14855,'pop'=>3,'cp'=>64,'attri'=>62.09,'time'=>97108),array('wood'=>39615,'clay'=>35175,'iron'=>39930,'crop'=>19015,'pop'=>3,'cp'=>77,'attri'=>59.85,'time'=>112946),array('wood'=>50705,'clay'=>45025,'iron'=>51110,'crop'=>24340,'pop'=>4,'cp'=>92,'attri'=>57.70,'time'=>131317),array('wood'=>64905,'clay'=>57635,'iron'=>65425,'crop'=>31155,'pop'=>4,'cp'=>111,'attri'=>55.62,'time'=>152628),array('wood'=>83075,'clay'=>73770,'iron'=>83740,'crop'=>39875,'pop'=>4,'cp'=>133,'attri'=>53.62,'time'=>177348),array('wood'=>106340,'clay'=>94430,'iron'=>107190,'crop'=>51040,'pop'=>4,'cp'=>160,'attri'=>51.69,'time'=>206024),array('wood'=>136115,'clay'=>120870,'iron'=>137200,'crop'=>65335,'pop'=>4,'cp'=>192,'attri'=>49.83,'time'=>239287)); +$bid25=array(1=>array('wood'=>580,'clay'=>460,'iron'=>350,'crop'=>180,'pop'=>1,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>740,'clay'=>590,'iron'=>450,'crop'=>230,'pop'=>1,'cp'=>3,'attri'=>90,'time'=>2620),array('wood'=>950,'clay'=>755,'iron'=>575,'crop'=>295,'pop'=>1,'cp'=>3,'attri'=>81,'time'=>3340),array('wood'=>1215,'clay'=>965,'iron'=>735,'crop'=>375,'pop'=>1,'cp'=>4,'attri'=>72.9,'time'=>4170),array('wood'=>1555,'clay'=>1235,'iron'=>940,'crop'=>485,'pop'=>1,'cp'=>5,'attri'=>65.61,'time'=>5140),array('wood'=>1995,'clay'=>1580,'iron'=>1205,'crop'=>620,'pop'=>1,'cp'=>6,'attri'=>59.05,'time'=>6260),array('wood'=>2550,'clay'=>2025,'iron'=>1540,'crop'=>790,'pop'=>1,'cp'=>7,'attri'=>53.14,'time'=>7570),array('wood'=>3265,'clay'=>2590,'iron'=>1970,'crop'=>1015,'pop'=>1,'cp'=>9,'attri'=>47.83,'time'=>9080),array('wood'=>4180,'clay'=>3315,'iron'=>2520,'crop'=>1295,'pop'=>1,'cp'=>10,'attri'=>43.05,'time'=>10830),array('wood'=>5350,'clay'=>4245,'iron'=>3230,'crop'=>1660,'pop'=>1,'cp'=>12,'attri'=>38.74,'time'=>12860),array('wood'=>6845,'clay'=>5430,'iron'=>4130,'crop'=>2125,'pop'=>2,'cp'=>15,'attri'=>34.87,'time'=>15220),array('wood'=>8765,'clay'=>6950,'iron'=>5290,'crop'=>2720,'pop'=>2,'cp'=>18,'attri'=>31.38,'time'=>17950),array('wood'=>11220,'clay'=>8900,'iron'=>6770,'crop'=>3480,'pop'=>2,'cp'=>21,'attri'=>28.24,'time'=>21130),array('wood'=>14360,'clay'=>11390,'iron'=>8665,'crop'=>4455,'pop'=>2,'cp'=>26,'attri'=>25.42,'time'=>24810),array('wood'=>18380,'clay'=>14580,'iron'=>11090,'crop'=>5705,'pop'=>2,'cp'=>31,'attri'=>22.88,'time'=>29080),array('wood'=>23530,'clay'=>18660,'iron'=>14200,'crop'=>7300,'pop'=>2,'cp'=>37,'attri'=>20.59,'time'=>34030),array('wood'=>30115,'clay'=>23885,'iron'=>18175,'crop'=>9345,'pop'=>2,'cp'=>44,'attri'=>18.53,'time'=>39770),array('wood'=>38550,'clay'=>30570,'iron'=>23260,'crop'=>11965,'pop'=>2,'cp'=>53,'attri'=>16.68,'time'=>46440),array('wood'=>49340,'clay'=>39130,'iron'=>29775,'crop'=>15315,'pop'=>2,'cp'=>64,'attri'=>15.01,'time'=>54170),array('wood'=>63155,'clay'=>50090,'iron'=>38110,'crop'=>19600,'pop'=>2,'cp'=>77,'attri'=>13.51,'time'=>63130)); +$bid26=array(1=>array('wood'=>550,'clay'=>800,'iron'=>750,'crop'=>250,'pop'=>1,'cp'=>6,'attri'=>100,'time'=>5000),array('wood'=>705,'clay'=>1025,'iron'=>960,'crop'=>320,'pop'=>1,'cp'=>7,'attri'=>90,'time'=>6100),array('wood'=>900,'clay'=>1310,'iron'=>1230,'crop'=>410,'pop'=>1,'cp'=>9,'attri'=>81,'time'=>7380),array('wood'=>1155,'clay'=>1680,'iron'=>1575,'crop'=>525,'pop'=>1,'cp'=>10,'attri'=>72.9,'time'=>8860),array('wood'=>1475,'clay'=>2145,'iron'=>2015,'crop'=>670,'pop'=>1,'cp'=>12,'attri'=>65.61,'time'=>10570),array('wood'=>1890,'clay'=>2750,'iron'=>2575,'crop'=>860,'pop'=>1,'cp'=>15,'attri'=>59.05,'time'=>12560),array('wood'=>2420,'clay'=>3520,'iron'=>3300,'crop'=>1100,'pop'=>1,'cp'=>18,'attri'=>53.14,'time'=>14880),array('wood'=>3095,'clay'=>4505,'iron'=>4220,'crop'=>1405,'pop'=>1,'cp'=>21,'attri'=>47.83,'time'=>17560),array('wood'=>3965,'clay'=>5765,'iron'=>5405,'crop'=>1800,'pop'=>1,'cp'=>26,'attri'=>43.05,'time'=>20660),array('wood'=>5075,'clay'=>7380,'iron'=>6920,'crop'=>2305,'pop'=>1,'cp'=>31,'attri'=>38.74,'time'=>24270),array('wood'=>6495,'clay'=>9445,'iron'=>8855,'crop'=>2950,'pop'=>2,'cp'=>37,'attri'=>34.87,'time'=>28450),array('wood'=>8310,'clay'=>12090,'iron'=>11335,'crop'=>3780,'pop'=>2,'cp'=>45,'attri'=>31.38,'time'=>33306),array('wood'=>10640,'clay'=>15475,'iron'=>14505,'crop'=>4835,'pop'=>2,'cp'=>53,'attri'=>28.24,'time'=>38935),array('wood'=>13615,'clay'=>19805,'iron'=>18570,'crop'=>6190,'pop'=>2,'cp'=>64,'attri'=>25.42,'time'=>45465),array('wood'=>17430,'clay'=>25355,'iron'=>23770,'crop'=>7925,'pop'=>2,'cp'=>77,'attri'=>22.88,'time'=>53039),array('wood'=>22310,'clay'=>32450,'iron'=>30425,'crop'=>10140,'pop'=>2,'cp'=>92,'attri'=>20.59,'time'=>61825),array('wood'=>28560,'clay'=>41540,'iron'=>38940,'crop'=>12980,'pop'=>2,'cp'=>111,'attri'=>18.53,'time'=>72018),array('wood'=>36555,'clay'=>53170,'iron'=>49845,'crop'=>16615,'pop'=>2,'cp'=>133,'attri'=>16.68,'time'=>83840),array('wood'=>46790,'clay'=>68055,'iron'=>63805,'crop'=>21270,'pop'=>2,'cp'=>160,'attri'=>15.01,'time'=>97555),array('wood'=>59890,'clay'=>87110,'iron'=>81675,'crop'=>27225,'pop'=>2,'cp'=>192,'attri'=>13.51,'time'=>113464)); +$bid27=array(1=>array('wood'=>2880,'clay'=>2740,'iron'=>2580,'crop'=>990,'pop'=>4,'cp'=>7,'attri'=>0,'time'=>8000),array('wood'=>3630,'clay'=>3450,'iron'=>3250,'crop'=>1245,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>9580),array('wood'=>4570,'clay'=>4350,'iron'=>4095,'crop'=>1570,'pop'=>2,'cp'=>10,'attri'=>0,'time'=>11410),array('wood'=>5760,'clay'=>5480,'iron'=>5160,'crop'=>1980,'pop'=>2,'cp'=>12,'attri'=>0,'time'=>13540),array('wood'=>7260,'clay'=>6905,'iron'=>6505,'crop'=>2495,'pop'=>2,'cp'=>15,'attri'=>0,'time'=>16010),array('wood'=>9145,'clay'=>8700,'iron'=>8195,'crop'=>3145,'pop'=>3,'cp'=>18,'attri'=>0,'time'=>18870),array('wood'=>11525,'clay'=>10965,'iron'=>10325,'crop'=>3960,'pop'=>3,'cp'=>21,'attri'=>0,'time'=>22180),array('wood'=>14520,'clay'=>13815,'iron'=>13010,'crop'=>4990,'pop'=>3,'cp'=>26,'attri'=>0,'time'=>26030),array('wood'=>18295,'clay'=>17405,'iron'=>16390,'crop'=>6290,'pop'=>3,'cp'=>31,'attri'=>0,'time'=>30500),array('wood'=>23055,'clay'=>21930,'iron'=>20650,'crop'=>7925,'pop'=>3,'cp'=>37,'attri'=>1,'time'=>35680),array('wood'=>9045,'clay'=>27635,'iron'=>26020,'crop'=>9985,'pop'=>3,'cp'=>45,'attri'=>1,'time'=>41690),array('wood'=>6600,'clay'=>34820,'iron'=>32785,'crop'=>12580,'pop'=>3,'cp'=>53,'attri'=>1,'time'=>48660),array('wood'=>46115,'clay'=>43875,'iron'=>41310,'crop'=>15850,'pop'=>3,'cp'=>64,'attri'=>1,'time'=>56740),array('wood'=>58105,'clay'=>55280,'iron'=>52050,'crop'=>19975,'pop'=>3,'cp'=>77,'attri'=>1,'time'=>66120),array('wood'=>73210,'clay'=>69655,'iron'=>65585,'crop'=>25165,'pop'=>3,'cp'=>92,'attri'=>1,'time'=>77000),array('wood'=>92245,'clay'=>87760,'iron'=>82640,'crop'=>31710,'pop'=>4,'cp'=>111,'attri'=>1,'time'=>89620),array('wood'=>116230,'clay'=>110580,'iron'=>104125,'crop'=>39955,'pop'=>4,'cp'=>133,'attri'=>1,'time'=>104260),array('wood'=>146450,'clay'=>139330,'iron'=>131195,'crop'=>50340,'pop'=>4,'cp'=>160,'attri'=>1,'time'=>121240),array('wood'=>184530,'clay'=>175560,'iron'=>165305,'crop'=>63430,'pop'=>4,'cp'=>192,'attri'=>1,'time'=>140940),array('wood'=>232505,'clay'=>221205,'iron'=>208285,'crop'=>79925,'pop'=>4,'cp'=>230,'attri'=>1,'time'=>163790)); +$bid28=array(1=>array('wood'=>1400,'clay'=>1330,'iron'=>1200,'crop'=>400,'pop'=>3,'cp'=>4,'attri'=>110,'time'=>3000),array('wood'=>1790,'clay'=>1700,'iron'=>1535,'crop'=>510,'pop'=>2,'cp'=>4,'attri'=>120,'time'=>3780),array('wood'=>2295,'clay'=>2180,'iron'=>1965,'crop'=>655,'pop'=>2,'cp'=>5,'attri'=>130,'time'=>4680),array('wood'=>2935,'clay'=>2790,'iron'=>2515,'crop'=>840,'pop'=>2,'cp'=>6,'attri'=>140,'time'=>5730),array('wood'=>3760,'clay'=>3570,'iron'=>3220,'crop'=>1075,'pop'=>2,'cp'=>7,'attri'=>150,'time'=>6950),array('wood'=>4810,'clay'=>4570,'iron'=>4125,'crop'=>1375,'pop'=>2,'cp'=>9,'attri'=>160,'time'=>8360),array('wood'=>6155,'clay'=>5850,'iron'=>5280,'crop'=>1760,'pop'=>2,'cp'=>11,'attri'=>170,'time'=>10000),array('wood'=>7880,'clay'=>7485,'iron'=>6755,'crop'=>2250,'pop'=>2,'cp'=>13,'attri'=>180,'time'=>11900),array('wood'=>10090,'clay'=>9585,'iron'=>8645,'crop'=>2880,'pop'=>2,'cp'=>15,'attri'=>190,'time'=>14110),array('wood'=>12915,'clay'=>12265,'iron'=>11070,'crop'=>3690,'pop'=>2,'cp'=>19,'attri'=>200,'time'=>16660),array('wood'=>16530,'clay'=>15700,'iron'=>14165,'crop'=>4720,'pop'=>3,'cp'=>22,'attri'=>210,'time'=>19630),array('wood'=>21155,'clay'=>20100,'iron'=>18135,'crop'=>6045,'pop'=>3,'cp'=>27,'attri'=>220,'time'=>23070),array('wood'=>27080,'clay'=>25725,'iron'=>23210,'crop'=>7735,'pop'=>3,'cp'=>32,'attri'=>230,'time'=>27060),array('wood'=>34660,'clay'=>32930,'iron'=>29710,'crop'=>9905,'pop'=>3,'cp'=>39,'attri'=>240,'time'=>31690),array('wood'=>44370,'clay'=>42150,'iron'=>38030,'crop'=>12675,'pop'=>3,'cp'=>46,'attri'=>250,'time'=>37060),array('wood'=>56790,'clay'=>53950,'iron'=>48680,'crop'=>16225,'pop'=>3,'cp'=>55,'attri'=>260,'time'=>43290),array('wood'=>72690,'clay'=>69060,'iron'=>62310,'crop'=>20770,'pop'=>3,'cp'=>67,'attri'=>270,'time'=>50520),array('wood'=>93045,'clay'=>88395,'iron'=>79755,'crop'=>26585,'pop'=>3,'cp'=>80,'attri'=>280,'time'=>58900),array('wood'=>119100,'clay'=>113145,'iron'=>102085,'crop'=>34030,'pop'=>3,'cp'=>96,'attri'=>290,'time'=>68630),array('wood'=>152445,'clay'=>144825,'iron'=>130670,'crop'=>43555,'pop'=>3,'cp'=>115,'attri'=>300,'time'=>79910)); +$bid29=array(1=>array('wood'=>630,'clay'=>420,'iron'=>780,'crop'=>360,'pop'=>4,'cp'=>1,'attri'=>100,'time'=>2000),array('wood'=>805,'clay'=>540,'iron'=>1000,'crop'=>460,'pop'=>2,'cp'=>1,'attri'=>90,'time'=>2620),array('wood'=>1035,'clay'=>690,'iron'=>1275,'crop'=>585,'pop'=>2,'cp'=>2,'attri'=>81,'time'=>3340),array('wood'=>1320,'clay'=>885,'iron'=>1635,'crop'=>750,'pop'=>2,'cp'=>2,'attri'=>72.9,'time'=>4170),array('wood'=>1695,'clay'=>1125,'iron'=>2100,'crop'=>960,'pop'=>2,'cp'=>2,'attri'=>65.61,'time'=>5140),array('wood'=>2160,'clay'=>1440,'iron'=>2685,'crop'=>1230,'pop'=>3,'cp'=>3,'attri'=>59.05,'time'=>6260),array('wood'=>2775,'clay'=>1845,'iron'=>3435,'crop'=>1590,'pop'=>3,'cp'=>4,'attri'=>53.14,'time'=>7570),array('wood'=>3540,'clay'=>2370,'iron'=>4395,'crop'=>2025,'pop'=>3,'cp'=>4,'attri'=>47.83,'time'=>9080),array('wood'=>4545,'clay'=>3030,'iron'=>5625,'crop'=>2595,'pop'=>3,'cp'=>5,'attri'=>43.05,'time'=>10830),array('wood'=>5805,'clay'=>3870,'iron'=>7200,'crop'=>3315,'pop'=>3,'cp'=>6,'attri'=>38.74,'time'=>12860),array('wood'=>7460,'clay'=>4965,'iron'=>9210,'crop'=>4245,'pop'=>3,'cp'=>7,'attri'=>34.87,'time'=>15220),array('wood'=>9525,'clay'=>6345,'iron'=>11790,'crop'=>5445,'pop'=>3,'cp'=>9,'attri'=>31.38,'time'=>17950),array('wood'=>12180,'clay'=>8130,'iron'=>15090,'crop'=>6960,'pop'=>3,'cp'=>11,'attri'=>28.24,'time'=>21130),array('wood'=>15600,'clay'=>10395,'iron'=>19305,'crop'=>8910,'pop'=>3,'cp'=>13,'attri'=>25.42,'time'=>24810),array('wood'=>19965,'clay'=>13305,'iron'=>24720,'crop'=>11415,'pop'=>3,'cp'=>15,'attri'=>22.88,'time'=>29080),array('wood'=>25560,'clay'=>17040,'iron'=>31635,'crop'=>14610,'pop'=>4,'cp'=>18,'attri'=>20.59,'time'=>34030),array('wood'=>32715,'clay'=>21810,'iron'=>40500,'crop'=>18690,'pop'=>4,'cp'=>22,'attri'=>18.53,'time'=>39770),array('wood'=>41870,'clay'=>27915,'iron'=>51840,'crop'=>23925,'pop'=>4,'cp'=>27,'attri'=>16.68,'time'=>46440),array('wood'=>53595,'clay'=>35730,'iron'=>66360,'crop'=>30630,'pop'=>4,'cp'=>32,'attri'=>15.01,'time'=>54170),array('wood'=>68595,'clay'=>45735,'iron'=>84930,'crop'=>39195,'pop'=>4,'cp'=>38,'attri'=>13.51,'time'=>63130)); +$bid30=array(1=>array('wood'=>780,'clay'=>420,'iron'=>660,'crop'=>300,'pop'=>5,'cp'=>2,'attri'=>100,'time'=>2200),array('wood'=>1000,'clay'=>540,'iron'=>845,'crop'=>385,'pop'=>3,'cp'=>3,'attri'=>90,'time'=>2850),array('wood'=>1280,'clay'=>690,'iron'=>1080,'crop'=>490,'pop'=>3,'cp'=>3,'attri'=>81,'time'=>3610),array('wood'=>1635,'clay'=>880,'iron'=>1385,'crop'=>630,'pop'=>3,'cp'=>4,'attri'=>72.9,'time'=>4490),array('wood'=>2095,'clay'=>1125,'iron'=>1770,'crop'=>805,'pop'=>3,'cp'=>5,'attri'=>65.61,'time'=>5500),array('wood'=>2680,'clay'=>1445,'iron'=>2270,'crop'=>1030,'pop'=>3,'cp'=>6,'attri'=>59.05,'time'=>6680),array('wood'=>3430,'clay'=>1845,'iron'=>2905,'crop'=>1320,'pop'=>3,'cp'=>7,'attri'=>53.14,'time'=>8050),array('wood'=>4390,'clay'=>2365,'iron'=>3715,'crop'=>1690,'pop'=>3,'cp'=>9,'attri'=>47.83,'time'=>9640),array('wood'=>5620,'clay'=>3025,'iron'=>4755,'crop'=>2160,'pop'=>3,'cp'=>10,'attri'=>43.05,'time'=>11480),array('wood'=>7195,'clay'=>3875,'iron'=>6085,'crop'=>2765,'pop'=>3,'cp'=>12,'attri'=>38.74,'time'=>13620),array('wood'=>9210,'clay'=>4960,'iron'=>7790,'crop'=>3540,'pop'=>4,'cp'=>15,'attri'=>34.87,'time'=>16100),array('wood'=>11785,'clay'=>6345,'iron'=>9975,'crop'=>4535,'pop'=>4,'cp'=>18,'attri'=>31.38,'time'=>18980),array('wood'=>15085,'clay'=>8125,'iron'=>12765,'crop'=>5805,'pop'=>4,'cp'=>21,'attri'=>28.24,'time'=>22310),array('wood'=>19310,'clay'=>10400,'iron'=>16340,'crop'=>7430,'pop'=>4,'cp'=>26,'attri'=>25.42,'time'=>26180),array('wood'=>24720,'clay'=>13310,'iron'=>20915,'crop'=>9505,'pop'=>4,'cp'=>31,'attri'=>22.88,'time'=>30670),array('wood'=>31640,'clay'=>17035,'iron'=>26775,'crop'=>12170,'pop'=>4,'cp'=>37,'attri'=>20.59,'time'=>35880),array('wood'=>40500,'clay'=>21810,'iron'=>34270,'crop'=>15575,'pop'=>4,'cp'=>44,'attri'=>18.53,'time'=>41920),array('wood'=>51840,'clay'=>27915,'iron'=>43865,'crop'=>19940,'pop'=>4,'cp'=>53,'attri'=>16.68,'time'=>48930),array('wood'=>66355,'clay'=>35730,'iron'=>56145,'crop'=>25520,'pop'=>4,'cp'=>64,'attri'=>15.01,'time'=>57060),array('wood'=>84935,'clay'=>45735,'iron'=>71870,'crop'=>32665,'pop'=>4,'cp'=>77,'attri'=>13.51,'time'=>66490)); +$bid31=array(1=>array('wood'=>70,'clay'=>90,'iron'=>170,'crop'=>70,'pop'=>0,'cp'=>1,'attri'=>3,'time'=>2000),array('wood'=>90,'clay'=>115,'iron'=>220,'crop'=>90,'pop'=>0,'cp'=>1,'attri'=>6,'time'=>2620),array('wood'=>115,'clay'=>145,'iron'=>280,'crop'=>115,'pop'=>0,'cp'=>2,'attri'=>9,'time'=>3340),array('wood'=>145,'clay'=>190,'iron'=>355,'crop'=>145,'pop'=>0,'cp'=>2,'attri'=>13,'time'=>4170),array('wood'=>190,'clay'=>240,'iron'=>455,'crop'=>190,'pop'=>0,'cp'=>2,'attri'=>16,'time'=>5140),array('wood'=>240,'clay'=>310,'iron'=>585,'crop'=>240,'pop'=>1,'cp'=>3,'attri'=>19,'time'=>6260),array('wood'=>310,'clay'=>395,'iron'=>750,'crop'=>310,'pop'=>1,'cp'=>4,'attri'=>23,'time'=>7570),array('wood'=>395,'clay'=>505,'iron'=>955,'crop'=>395,'pop'=>1,'cp'=>4,'attri'=>27,'time'=>9080),array('wood'=>505,'clay'=>650,'iron'=>1225,'crop'=>505,'pop'=>1,'cp'=>5,'attri'=>30,'time'=>10830),array('wood'=>645,'clay'=>830,'iron'=>1570,'crop'=>645,'pop'=>1,'cp'=>6,'attri'=>34,'time'=>12860),array('wood'=>825,'clay'=>1065,'iron'=>2005,'crop'=>825,'pop'=>1,'cp'=>7,'attri'=>38,'time'=>15220),array('wood'=>1060,'clay'=>1360,'iron'=>2570,'crop'=>1060,'pop'=>1,'cp'=>9,'attri'=>43,'time'=>17950),array('wood'=>1355,'clay'=>1740,'iron'=>3290,'crop'=>1355,'pop'=>1,'cp'=>11,'attri'=>47,'time'=>21130),array('wood'=>1735,'clay'=>2230,'iron'=>4210,'crop'=>1735,'pop'=>1,'cp'=>13,'attri'=>51,'time'=>24810),array('wood'=>2220,'clay'=>2850,'iron'=>5390,'crop'=>2220,'pop'=>1,'cp'=>15,'attri'=>56,'time'=>29080),array('wood'=>2840,'clay'=>3650,'iron'=>6895,'crop'=>2840,'pop'=>2,'cp'=>18,'attri'=>60,'time'=>34030),array('wood'=>3635,'clay'=>4675,'iron'=>8825,'crop'=>3635,'pop'=>2,'cp'=>22,'attri'=>65,'time'=>39770),array('wood'=>4650,'clay'=>5980,'iron'=>11300,'crop'=>4650,'pop'=>2,'cp'=>27,'attri'=>70,'time'=>46440),array('wood'=>5955,'clay'=>7655,'iron'=>14460,'crop'=>5955,'pop'=>2,'cp'=>32,'attri'=>75,'time'=>54170),array('wood'=>7620,'clay'=>9800,'iron'=>18510,'crop'=>7620,'pop'=>2,'cp'=>38,'attri'=>81,'time'=>63130)); +$bid32=array(1=>array('wood'=>120,'clay'=>200,'iron'=>0,'crop'=>80,'pop'=>0,'cp'=>1,'attri'=>2,'time'=>2000),array('wood'=>155,'clay'=>255,'iron'=>0,'crop'=>100,'pop'=>0,'cp'=>1,'attri'=>4,'time'=>2620),array('wood'=>195,'clay'=>330,'iron'=>0,'crop'=>130,'pop'=>0,'cp'=>2,'attri'=>6,'time'=>3340),array('wood'=>250,'clay'=>420,'iron'=>0,'crop'=>170,'pop'=>0,'cp'=>2,'attri'=>8,'time'=>4170),array('wood'=>320,'clay'=>535,'iron'=>0,'crop'=>215,'pop'=>0,'cp'=>2,'attri'=>10,'time'=>5140),array('wood'=>410,'clay'=>685,'iron'=>0,'crop'=>275,'pop'=>1,'cp'=>3,'attri'=>13,'time'=>6260),array('wood'=>530,'clay'=>880,'iron'=>0,'crop'=>350,'pop'=>1,'cp'=>4,'attri'=>15,'time'=>7570),array('wood'=>675,'clay'=>1125,'iron'=>0,'crop'=>450,'pop'=>1,'cp'=>4,'attri'=>17,'time'=>9080),array('wood'=>865,'clay'=>1440,'iron'=>0,'crop'=>575,'pop'=>1,'cp'=>5,'attri'=>20,'time'=>10830),array('wood'=>1105,'clay'=>1845,'iron'=>0,'crop'=>740,'pop'=>1,'cp'=>6,'attri'=>22,'time'=>12860),array('wood'=>1415,'clay'=>2360,'iron'=>0,'crop'=>945,'pop'=>1,'cp'=>7,'attri'=>24,'time'=>15220),array('wood'=>1815,'clay'=>3020,'iron'=>0,'crop'=>1210,'pop'=>1,'cp'=>9,'attri'=>27,'time'=>17950),array('wood'=>2320,'clay'=>3870,'iron'=>0,'crop'=>1545,'pop'=>1,'cp'=>11,'attri'=>29,'time'=>21130),array('wood'=>2970,'clay'=>4950,'iron'=>0,'crop'=>1980,'pop'=>1,'cp'=>13,'attri'=>32,'time'=>24810),array('wood'=>3805,'clay'=>6340,'iron'=>0,'crop'=>2535,'pop'=>1,'cp'=>15,'attri'=>35,'time'=>29080),array('wood'=>4870,'clay'=>8115,'iron'=>0,'crop'=>3245,'pop'=>2,'cp'=>18,'attri'=>37,'time'=>34030),array('wood'=>6230,'clay'=>10385,'iron'=>0,'crop'=>4155,'pop'=>2,'cp'=>22,'attri'=>40,'time'=>39770),array('wood'=>7975,'clay'=>13290,'iron'=>0,'crop'=>5315,'pop'=>2,'cp'=>27,'attri'=>43,'time'=>46440),array('wood'=>10210,'clay'=>17015,'iron'=>0,'crop'=>6805,'pop'=>2,'cp'=>32,'attri'=>46,'time'=>54170),array('wood'=>13065,'clay'=>21780,'iron'=>0,'crop'=>8710,'pop'=>2,'cp'=>38,'attri'=>49,'time'=>63130)); +$bid33=array(1=>array('wood'=>160,'clay'=>100,'iron'=>80,'crop'=>60,'pop'=>0,'cp'=>1,'attri'=>2,'time'=>2000),array('wood'=>205,'clay'=>130,'iron'=>100,'crop'=>75,'pop'=>0,'cp'=>1,'attri'=>5,'time'=>2620),array('wood'=>260,'clay'=>165,'iron'=>130,'crop'=>100,'pop'=>0,'cp'=>2,'attri'=>8,'time'=>3340),array('wood'=>335,'clay'=>210,'iron'=>170,'crop'=>125,'pop'=>0,'cp'=>2,'attri'=>10,'time'=>4170),array('wood'=>430,'clay'=>270,'iron'=>215,'crop'=>160,'pop'=>0,'cp'=>2,'attri'=>13,'time'=>5140),array('wood'=>550,'clay'=>345,'iron'=>275,'crop'=>205,'pop'=>1,'cp'=>3,'attri'=>16,'time'=>6260),array('wood'=>705,'clay'=>440,'iron'=>350,'crop'=>265,'pop'=>1,'cp'=>4,'attri'=>19,'time'=>7570),array('wood'=>900,'clay'=>565,'iron'=>450,'crop'=>340,'pop'=>1,'cp'=>4,'attri'=>22,'time'=>9080),array('wood'=>1155,'clay'=>720,'iron'=>575,'crop'=>430,'pop'=>1,'cp'=>5,'attri'=>25,'time'=>10830),array('wood'=>1475,'clay'=>920,'iron'=>740,'crop'=>555,'pop'=>1,'cp'=>6,'attri'=>28,'time'=>12860),array('wood'=>1890,'clay'=>1180,'iron'=>945,'crop'=>710,'pop'=>1,'cp'=>7,'attri'=>31,'time'=>15220),array('wood'=>2420,'clay'=>1510,'iron'=>1210,'crop'=>905,'pop'=>1,'cp'=>9,'attri'=>34,'time'=>17950),array('wood'=>3095,'clay'=>1935,'iron'=>1545,'crop'=>1160,'pop'=>1,'cp'=>11,'attri'=>38,'time'=>21130),array('wood'=>3960,'clay'=>2475,'iron'=>1980,'crop'=>1485,'pop'=>1,'cp'=>13,'attri'=>41,'time'=>24810),array('wood'=>5070,'clay'=>3170,'iron'=>2535,'crop'=>1900,'pop'=>1,'cp'=>15,'attri'=>45,'time'=>29080),array('wood'=>6490,'clay'=>4055,'iron'=>3245,'crop'=>2435,'pop'=>2,'cp'=>18,'attri'=>48,'time'=>34030),array('wood'=>8310,'clay'=>5190,'iron'=>4155,'crop'=>3115,'pop'=>2,'cp'=>22,'attri'=>52,'time'=>39770),array('wood'=>10635,'clay'=>6645,'iron'=>5315,'crop'=>3990,'pop'=>2,'cp'=>27,'attri'=>56,'time'=>46440),array('wood'=>13610,'clay'=>8505,'iron'=>6805,'crop'=>5105,'pop'=>2,'cp'=>32,'attri'=>60,'time'=>54170),array('wood'=>17420,'clay'=>10890,'iron'=>8710,'crop'=>6535,'pop'=>2,'cp'=>38,'attri'=>64,'time'=>63130)); +$bid34=array(1=>array('wood'=>155,'clay'=>130,'iron'=>125,'crop'=>70,'pop'=>2,'cp'=>1,'attri'=>110,'time'=>2200),array('wood'=>200,'clay'=>165,'iron'=>160,'crop'=>90,'pop'=>1,'cp'=>1,'attri'=>120,'time'=>3150),array('wood'=>255,'clay'=>215,'iron'=>205,'crop'=>115,'pop'=>1,'cp'=>2,'attri'=>130,'time'=>4260),array('wood'=>325,'clay'=>275,'iron'=>260,'crop'=>145,'pop'=>1,'cp'=>2,'attri'=>140,'time'=>5540),array('wood'=>415,'clay'=>350,'iron'=>335,'crop'=>190,'pop'=>1,'cp'=>2,'attri'=>150,'time'=>7020),array('wood'=>535,'clay'=>445,'iron'=>430,'crop'=>240,'pop'=>2,'cp'=>3,'attri'=>160,'time'=>8750),array('wood'=>680,'clay'=>570,'iron'=>550,'crop'=>310,'pop'=>2,'cp'=>4,'attri'=>170,'time'=>10750),array('wood'=>875,'clay'=>730,'iron'=>705,'crop'=>395,'pop'=>2,'cp'=>4,'attri'=>180,'time'=>13070),array('wood'=>1115,'clay'=>935,'iron'=>900,'crop'=>505,'pop'=>2,'cp'=>5,'attri'=>190,'time'=>15760),array('wood'=>1430,'clay'=>1200,'iron'=>1155,'crop'=>645,'pop'=>2,'cp'=>6,'attri'=>200,'time'=>18880),array('wood'=>1830,'clay'=>1535,'iron'=>1475,'crop'=>825,'pop'=>2,'cp'=>7,'attri'=>210,'time'=>22500),array('wood'=>2340,'clay'=>1965,'iron'=>1890,'crop'=>1060,'pop'=>2,'cp'=>9,'attri'=>220,'time'=>26700),array('wood'=>3000,'clay'=>2515,'iron'=>2420,'crop'=>1355,'pop'=>2,'cp'=>11,'attri'=>230,'time'=>31570),array('wood'=>3840,'clay'=>3220,'iron'=>3095,'crop'=>1735,'pop'=>2,'cp'=>13,'attri'=>240,'time'=>37220),array('wood'=>4910,'clay'=>4120,'iron'=>3960,'crop'=>2220,'pop'=>2,'cp'=>15,'attri'=>250,'time'=>43780),array('wood'=>6290,'clay'=>5275,'iron'=>5070,'crop'=>2840,'pop'=>3,'cp'=>18,'attri'=>260,'time'=>51380),array('wood'=>8050,'clay'=>6750,'iron'=>6490,'crop'=>3635,'pop'=>3,'cp'=>22,'attri'=>270,'time'=>60200),array('wood'=>10300,'clay'=>8640,'iron'=>8310,'crop'=>4650,'pop'=>3,'cp'=>27,'attri'=>280,'time'=>70430),array('wood'=>13185,'clay'=>11060,'iron'=>10635,'crop'=>5955,'pop'=>3,'cp'=>32,'attri'=>290,'time'=>82300),array('wood'=>16880,'clay'=>14155,'iron'=>13610,'crop'=>7620,'pop'=>3,'cp'=>38,'attri'=>300,'time'=>96070)); +$bid35=array(1=>array('wood'=>1460,'clay'=>930,'iron'=>1250,'crop'=>1740,'pop'=>6,'cp'=>5,'attri'=>0,'time'=>8000),array('wood'=>2045,'clay'=>1300,'iron'=>1750,'crop'=>2435,'pop'=>3,'cp'=>6,'attri'=>0,'time'=>9880),array('wood'=>2860,'clay'=>1825,'iron'=>2450,'crop'=>3410,'pop'=>3,'cp'=>7,'attri'=>0,'time'=>12060),array('wood'=>4005,'clay'=>2550,'iron'=>3430,'crop'=>4775,'pop'=>3,'cp'=>8,'attri'=>0,'time'=>14590),array('wood'=>5610,'clay'=>3575,'iron'=>4800,'crop'=>6685,'pop'=>3,'cp'=>10,'attri'=>0,'time'=>17530),array('wood'=>7850,'clay'=>5000,'iron'=>6725,'crop'=>9360,'pop'=>4,'cp'=>12,'attri'=>0,'time'=>20930),array('wood'=>10995,'clay'=>7000,'iron'=>9410,'crop'=>13100,'pop'=>4,'cp'=>14,'attri'=>0,'time'=>24880),array('wood'=>15390,'clay'=>9805,'iron'=>13175,'crop'=>18340,'pop'=>4,'cp'=>17,'attri'=>0,'time'=>29460),array('wood'=>21545,'clay'=>13725,'iron'=>18445,'crop'=>25680,'pop'=>4,'cp'=>21,'attri'=>0,'time'=>34770),array('wood'=>30165,'clay'=>19215,'iron'=>25825,'crop'=>35950,'pop'=>4,'cp'=>25,'attri'=>0,'time'=>40930)); +$bid36=array(1=>array('wood'=>100,'clay'=>100,'iron'=>100,'crop'=>100,'pop'=>4,'cp'=>1,'attri'=>10,'time'=>2000),array('wood'=>130,'clay'=>130,'iron'=>130,'crop'=>130,'pop'=>2,'cp'=>1,'attri'=>22,'time'=>2320),array('wood'=>165,'clay'=>165,'iron'=>165,'crop'=>165,'pop'=>2,'cp'=>2,'attri'=>35,'time'=>2690),array('wood'=>210,'clay'=>210,'iron'=>210,'crop'=>210,'pop'=>2,'cp'=>2,'attri'=>49,'time'=>3120),array('wood'=>270,'clay'=>270,'iron'=>270,'crop'=>270,'pop'=>2,'cp'=>2,'attri'=>64,'time'=>3620),array('wood'=>345,'clay'=>345,'iron'=>345,'crop'=>345,'pop'=>3,'cp'=>3,'attri'=>80,'time'=>4200),array('wood'=>440,'clay'=>440,'iron'=>440,'crop'=>440,'pop'=>3,'cp'=>4,'attri'=>97,'time'=>4870),array('wood'=>565,'clay'=>565,'iron'=>565,'crop'=>565,'pop'=>3,'cp'=>4,'attri'=>115,'time'=>5650),array('wood'=>720,'clay'=>720,'iron'=>720,'crop'=>720,'pop'=>3,'cp'=>5,'attri'=>134,'time'=>6560),array('wood'=>920,'clay'=>920,'iron'=>920,'crop'=>920,'pop'=>3,'cp'=>6,'attri'=>154,'time'=>7610),array('wood'=>1180,'clay'=>1180,'iron'=>1180,'crop'=>1180,'pop'=>3,'cp'=>7,'attri'=>175,'time'=>8820),array('wood'=>1510,'clay'=>1510,'iron'=>1510,'crop'=>1510,'pop'=>3,'cp'=>9,'attri'=>196,'time'=>10230),array('wood'=>1935,'clay'=>1935,'iron'=>1935,'crop'=>1935,'pop'=>3,'cp'=>11,'attri'=>218,'time'=>11870),array('wood'=>2475,'clay'=>2475,'iron'=>2475,'crop'=>2475,'pop'=>3,'cp'=>13,'attri'=>241,'time'=>13770),array('wood'=>3170,'clay'=>3170,'iron'=>3170,'crop'=>3170,'pop'=>3,'cp'=>15,'attri'=>265,'time'=>15980),array('wood'=>4055,'clay'=>4055,'iron'=>4055,'crop'=>4055,'pop'=>4,'cp'=>18,'attri'=>290,'time'=>18530),array('wood'=>5190,'clay'=>5190,'iron'=>5190,'crop'=>5190,'pop'=>4,'cp'=>22,'attri'=>316,'time'=>21500),array('wood'=>6645,'clay'=>6645,'iron'=>6645,'crop'=>6645,'pop'=>4,'cp'=>27,'attri'=>343,'time'=>24940),array('wood'=>8505,'clay'=>8505,'iron'=>8505,'crop'=>8505,'pop'=>4,'cp'=>32,'attri'=>371,'time'=>28930),array('wood'=>10890,'clay'=>10890,'iron'=>10890,'crop'=>10890,'pop'=>4,'cp'=>38,'attri'=>400,'time'=>33550)); +$bid37=array(1=>array('wood'=>700,'clay'=>670,'iron'=>700,'crop'=>240,'pop'=>2,'cp'=>1,'attri'=>0,'time'=>2300),array('wood'=>930,'clay'=>890,'iron'=>930,'crop'=>320,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>2670),array('wood'=>1240,'clay'=>1185,'iron'=>1240,'crop'=>425,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>3090),array('wood'=>1645,'clay'=>1575,'iron'=>1645,'crop'=>565,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>3590),array('wood'=>2190,'clay'=>2095,'iron'=>2190,'crop'=>750,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>4160),array('wood'=>2915,'clay'=>2790,'iron'=>2915,'crop'=>1000,'pop'=>2,'cp'=>3,'attri'=>0,'time'=>4830),array('wood'=>3875,'clay'=>3710,'iron'=>3875,'crop'=>1330,'pop'=>2,'cp'=>4,'attri'=>0,'time'=>5600),array('wood'=>5155,'clay'=>4930,'iron'=>5155,'crop'=>1765,'pop'=>2,'cp'=>4,'attri'=>0,'time'=>6500),array('wood'=>6855,'clay'=>6560,'iron'=>6855,'crop'=>2350,'pop'=>2,'cp'=>5,'attri'=>0,'time'=>7540),array('wood'=>9115,'clay'=>8725,'iron'=>9115,'crop'=>3125,'pop'=>2,'cp'=>6,'attri'=>1,'time'=>8750),array('wood'=>12125,'clay'=>11605,'iron'=>12125,'crop'=>4155,'pop'=>2,'cp'=>7,'attri'=>1,'time'=>10150),array('wood'=>16125,'clay'=>15435,'iron'=>16125,'crop'=>5530,'pop'=>2,'cp'=>9,'attri'=>1,'time'=>11770),array('wood'=>21445,'clay'=>20525,'iron'=>21445,'crop'=>7350,'pop'=>2,'cp'=>11,'attri'=>1,'time'=>13650),array('wood'=>28520,'clay'=>27300,'iron'=>28520,'crop'=>9780,'pop'=>2,'cp'=>13,'attri'=>1,'time'=>15840),array('wood'=>37935,'clay'=>36310,'iron'=>37935,'crop'=>13005,'pop'=>2,'cp'=>15,'attri'=>2,'time'=>18370),array('wood'=>50450,'clay'=>48290,'iron'=>50450,'crop'=>17300,'pop'=>3,'cp'=>18,'attri'=>2,'time'=>21310),array('wood'=>67100,'clay'=>64225,'iron'=>67100,'crop'=>23005,'pop'=>3,'cp'=>22,'attri'=>2,'time'=>24720),array('wood'=>89245,'clay'=>85420,'iron'=>89245,'crop'=>30600,'pop'=>3,'cp'=>27,'attri'=>2,'time'=>28680),array('wood'=>118695,'clay'=>113605,'iron'=>118695,'crop'=>40695,'pop'=>3,'cp'=>32,'attri'=>2,'time'=>33260),array('wood'=>157865,'clay'=>151095,'iron'=>157865,'crop'=>54125,'pop'=>3,'cp'=>38,'attri'=>3,'time'=>38590)); +$bid38=array(1=>array('wood'=>650,'clay'=>800,'iron'=>450,'crop'=>200,'pop'=>1,'cp'=>1,'attri'=>3600,'time'=>9000),array('wood'=>830,'clay'=>1025,'iron'=>575,'crop'=>255,'pop'=>1,'cp'=>1,'attri'=>5100,'time'=>10740),array('wood'=>1065,'clay'=>1310,'iron'=>735,'crop'=>330,'pop'=>1,'cp'=>2,'attri'=>6900,'time'=>12760),array('wood'=>1365,'clay'=>1680,'iron'=>945,'crop'=>420,'pop'=>1,'cp'=>2,'attri'=>9300,'time'=>15100),array('wood'=>1745,'clay'=>2145,'iron'=>1210,'crop'=>535,'pop'=>1,'cp'=>2,'attri'=>12000,'time'=>17820),array('wood'=>2235,'clay'=>2750,'iron'=>1545,'crop'=>685,'pop'=>1,'cp'=>3,'attri'=>15000,'time'=>20970),array('wood'=>2860,'clay'=>3520,'iron'=>1980,'crop'=>880,'pop'=>1,'cp'=>4,'attri'=>18900,'time'=>24620),array('wood'=>3660,'clay'=>4505,'iron'=>2535,'crop'=>1125,'pop'=>1,'cp'=>4,'attri'=>23400,'time'=>28860),array('wood'=>4685,'clay'=>5765,'iron'=>3245,'crop'=>1440,'pop'=>1,'cp'=>5,'attri'=>28800,'time'=>33780),array('wood'=>5995,'clay'=>7380,'iron'=>4150,'crop'=>1845,'pop'=>1,'cp'=>6,'attri'=>35400,'time'=>39480),array('wood'=>7675,'clay'=>9445,'iron'=>5315,'crop'=>2360,'pop'=>2,'cp'=>7,'attri'=>43200,'time'=>46100),array('wood'=>9825,'clay'=>12090,'iron'=>6800,'crop'=>3020,'pop'=>2,'cp'=>9,'attri'=>52800,'time'=>53780),array('wood'=>12575,'clay'=>15475,'iron'=>8705,'crop'=>3870,'pop'=>2,'cp'=>11,'attri'=>64200,'time'=>62680),array('wood'=>16095,'clay'=>19805,'iron'=>11140,'crop'=>4950,'pop'=>2,'cp'=>13,'attri'=>77700,'time'=>73010),array('wood'=>20600,'clay'=>25355,'iron'=>14260,'crop'=>6340,'pop'=>2,'cp'=>15,'attri'=>93900,'time'=>84990),array('wood'=>26365,'clay'=>32450,'iron'=>18255,'crop'=>8115,'pop'=>2,'cp'=>18,'attri'=>113700,'time'=>98890),array('wood'=>33750,'clay'=>41540,'iron'=>23365,'crop'=>10385,'pop'=>2,'cp'=>22,'attri'=>137100,'time'=>115010),array('wood'=>43200,'clay'=>53170,'iron'=>29910,'crop'=>13290,'pop'=>2,'cp'=>27,'attri'=>165300,'time'=>133710),array('wood'=>55295,'clay'=>68055,'iron'=>38280,'crop'=>17015,'pop'=>2,'cp'=>32,'attri'=>199200,'time'=>155400),array('wood'=>70780,'clay'=>87110,'iron'=>49000,'crop'=>21780,'pop'=>2,'cp'=>38,'attri'=>240000,'time'=>180570)); +$bid39=array(1=>array('wood'=>400,'clay'=>500,'iron'=>350,'crop'=>100,'pop'=>1,'cp'=>1,'attri'=>3600,'time'=>7000),array('wood'=>510,'clay'=>640,'iron'=>450,'crop'=>130,'pop'=>1,'cp'=>1,'attri'=>5100,'time'=>8420),array('wood'=>655,'clay'=>820,'iron'=>575,'crop'=>165,'pop'=>1,'cp'=>2,'attri'=>6900,'time'=>10070),array('wood'=>840,'clay'=>1050,'iron'=>735,'crop'=>210,'pop'=>1,'cp'=>2,'attri'=>9300,'time'=>11980),array('wood'=>1075,'clay'=>1340,'iron'=>940,'crop'=>270,'pop'=>1,'cp'=>2,'attri'=>12000,'time'=>14190),array('wood'=>1375,'clay'=>1720,'iron'=>1205,'crop'=>345,'pop'=>1,'cp'=>3,'attri'=>15000,'time'=>16770),array('wood'=>1760,'clay'=>2200,'iron'=>1540,'crop'=>440,'pop'=>1,'cp'=>4,'attri'=>18900,'time'=>19750),array('wood'=>2250,'clay'=>2815,'iron'=>1970,'crop'=>565,'pop'=>1,'cp'=>4,'attri'=>23400,'time'=>23210),array('wood'=>2880,'clay'=>3605,'iron'=>2520,'crop'=>720,'pop'=>1,'cp'=>5,'attri'=>28800,'time'=>27220),array('wood'=>3690,'clay'=>4610,'iron'=>3230,'crop'=>920,'pop'=>1,'cp'=>6,'attri'=>35400,'time'=>31880),array('wood'=>4720,'clay'=>5905,'iron'=>4130,'crop'=>1180,'pop'=>2,'cp'=>7,'attri'=>43200,'time'=>37280),array('wood'=>6045,'clay'=>7555,'iron'=>5290,'crop'=>1510,'pop'=>2,'cp'=>9,'attri'=>52800,'time'=>43540),array('wood'=>7735,'clay'=>9670,'iron'=>6770,'crop'=>1935,'pop'=>2,'cp'=>11,'attri'=>64200,'time'=>50810),array('wood'=>9905,'clay'=>12380,'iron'=>8665,'crop'=>2475,'pop'=>2,'cp'=>13,'attri'=>77700,'time'=>59240),array('wood'=>12675,'clay'=>15845,'iron'=>11090,'crop'=>3170,'pop'=>2,'cp'=>15,'attri'=>93900,'time'=>69010),array('wood'=>16225,'clay'=>20280,'iron'=>14200,'crop'=>4055,'pop'=>2,'cp'=>18,'attri'=>113700,'time'=>80360),array('wood'=>20770,'clay'=>25960,'iron'=>18175,'crop'=>5190,'pop'=>2,'cp'=>22,'attri'=>137100,'time'=>93510),array('wood'=>26585,'clay'=>33230,'iron'=>23260,'crop'=>6645,'pop'=>2,'cp'=>27,'attri'=>165300,'time'=>108780),array('wood'=>34030,'clay'=>42535,'iron'=>29775,'crop'=>8505,'pop'=>2,'cp'=>32,'attri'=>199200,'time'=>126480),array('wood'=>43555,'clay'=>54445,'iron'=>38110,'crop'=>10890,'pop'=>2,'cp'=>38,'attri'=>240000,'time'=>147020)); +$bid40=array(1=>array('wood'=>66700,'clay'=>69050,'iron'=>72200,'crop'=>13200,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>18000),array('wood'=>68535,'clay'=>70950,'iron'=>74185,'crop'=>13565,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>18850),array('wood'=>70420,'clay'=>72900,'iron'=>76225,'crop'=>13935,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>19720),array('wood'=>72355,'clay'=>74905,'iron'=>78320,'crop'=>14320,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>20590),array('wood'=>74345,'clay'=>76965,'iron'=>80475,'crop'=>14715,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>21480),array('wood'=>76390,'clay'=>79080,'iron'=>82690,'crop'=>15120,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>22380),array('wood'=>78490,'clay'=>81255,'iron'=>84965,'crop'=>15535,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>23290),array('wood'=>80650,'clay'=>83490,'iron'=>87300,'crop'=>15960,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>24220),array('wood'=>82865,'clay'=>85785,'iron'=>89700,'crop'=>16400,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>25160),array('wood'=>85145,'clay'=>88145,'iron'=>92165,'crop'=>16850,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>26110),array('wood'=>87485,'clay'=>90570,'iron'=>94700,'crop'=>17315,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>27080),array('wood'=>89895,'clay'=>93060,'iron'=>97305,'crop'=>17790,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>28060),array('wood'=>92365,'clay'=>95620,'iron'=>99980,'crop'=>18280,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>29050),array('wood'=>94905,'clay'=>98250,'iron'=>102730,'crop'=>18780,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>30060),array('wood'=>97515,'clay'=>100950,'iron'=>105555,'crop'=>19300,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>31080),array('wood'=>100195,'clay'=>103725,'iron'=>108460,'crop'=>19830,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>32110),array('wood'=>102950,'clay'=>106580,'iron'=>111440,'crop'=>20375,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>33160),array('wood'=>105785,'clay'=>109510,'iron'=>114505,'crop'=>20935,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>34230),array('wood'=>108690,'clay'=>112520,'iron'=>117655,'crop'=>21510,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>35300),array('wood'=>111680,'clay'=>115615,'iron'=>120890,'crop'=>22100,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>36400),array('wood'=>114755,'clay'=>118795,'iron'=>124215,'crop'=>22710,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>37510),array('wood'=>117910,'clay'=>122060,'iron'=>127630,'crop'=>23335,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>38630),array('wood'=>121150,'clay'=>125420,'iron'=>131140,'crop'=>23975,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>39770),array('wood'=>124480,'clay'=>128870,'iron'=>134745,'crop'=>24635,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>40930),array('wood'=>127905,'clay'=>132410,'iron'=>138455,'crop'=>25315,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>42100),array('wood'=>131425,'clay'=>136055,'iron'=>142260,'crop'=>26010,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>43290),array('wood'=>135035,'clay'=>139795,'iron'=>146170,'crop'=>26725,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>44500),array('wood'=>138750,'clay'=>143640,'iron'=>150190,'crop'=>27460,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>45720),array('wood'=>142565,'clay'=>147590,'iron'=>154320,'crop'=>28215,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>46960),array('wood'=>146485,'clay'=>151650,'iron'=>158565,'crop'=>28990,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>48220),array('wood'=>150515,'clay'=>155820,'iron'=>162925,'crop'=>29785,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>49500),array('wood'=>154655,'clay'=>160105,'iron'=>167405,'crop'=>30605,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>50790),array('wood'=>158910,'clay'=>164505,'iron'=>172010,'crop'=>31450,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>52100),array('wood'=>163275,'clay'=>169030,'iron'=>176740,'crop'=>32315,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>53430),array('wood'=>167770,'clay'=>173680,'iron'=>181600,'crop'=>33200,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>54780),array('wood'=>172380,'clay'=>178455,'iron'=>186595,'crop'=>34115,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>56140),array('wood'=>177120,'clay'=>183360,'iron'=>191725,'crop'=>35055,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>57530),array('wood'=>181995,'clay'=>188405,'iron'=>197000,'crop'=>36015,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>58940),array('wood'=>186995,'clay'=>193585,'iron'=>202415,'crop'=>37005,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>60360),array('wood'=>192140,'clay'=>198910,'iron'=>207985,'crop'=>38025,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>61810),array('wood'=>197425,'clay'=>204380,'iron'=>213705,'crop'=>39070,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>63270),array('wood'=>202855,'clay'=>210000,'iron'=>219580,'crop'=>40145,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>64760),array('wood'=>208430,'clay'=>215775,'iron'=>225620,'crop'=>41250,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>66260),array('wood'=>214165,'clay'=>221710,'iron'=>231825,'crop'=>42385,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>67790),array('wood'=>220055,'clay'=>227805,'iron'=>238200,'crop'=>43550,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>69340),array('wood'=>226105,'clay'=>234070,'iron'=>244750,'crop'=>44745,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>70910),array('wood'=>232320,'clay'=>240505,'iron'=>251480,'crop'=>45975,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>72500),array('wood'=>238710,'clay'=>247120,'iron'=>258395,'crop'=>47240,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>74120),array('wood'=>245275,'clay'=>253915,'iron'=>265500,'crop'=>48540,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>75760),array('wood'=>252020,'clay'=>260900,'iron'=>272800,'crop'=>49875,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>77420),array('wood'=>258950,'clay'=>268075,'iron'=>280305,'crop'=>51245,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>79100),array('wood'=>266070,'clay'=>275445,'iron'=>288010,'crop'=>52655,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>80810),array('wood'=>273390,'clay'=>283020,'iron'=>295930,'crop'=>54105,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>82540),array('wood'=>280905,'clay'=>290805,'iron'=>304070,'crop'=>55590,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>84290),array('wood'=>288630,'clay'=>298800,'iron'=>312430,'crop'=>57120,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>86070),array('wood'=>296570,'clay'=>307020,'iron'=>321025,'crop'=>58690,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>87880),array('wood'=>304725,'clay'=>315460,'iron'=>329850,'crop'=>60305,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>89710),array('wood'=>313105,'clay'=>324135,'iron'=>338925,'crop'=>61965,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>91570),array('wood'=>321715,'clay'=>333050,'iron'=>348245,'crop'=>63670,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>93450),array('wood'=>330565,'clay'=>342210,'iron'=>357820,'crop'=>65420,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>95360),array('wood'=>339655,'clay'=>351620,'iron'=>367660,'crop'=>67220,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>97290),array('wood'=>348995,'clay'=>361290,'iron'=>377770,'crop'=>69065,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>99250),array('wood'=>358590,'clay'=>371225,'iron'=>388160,'crop'=>70965,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>101240),array('wood'=>368450,'clay'=>381435,'iron'=>398835,'crop'=>72915,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>103260),array('wood'=>378585,'clay'=>391925,'iron'=>409800,'crop'=>74920,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>105310),array('wood'=>388995,'clay'=>402700,'iron'=>421070,'crop'=>76985,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>107380),array('wood'=>399695,'clay'=>413775,'iron'=>432650,'crop'=>79100,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>109480),array('wood'=>410685,'clay'=>425155,'iron'=>444550,'crop'=>81275,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>111620),array('wood'=>421980,'clay'=>436845,'iron'=>456775,'crop'=>83510,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>113780),array('wood'=>433585,'clay'=>448860,'iron'=>469335,'crop'=>85805,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>115970),array('wood'=>445505,'clay'=>461205,'iron'=>482240,'crop'=>88165,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>118200),array('wood'=>457760,'clay'=>473885,'iron'=>495505,'crop'=>90590,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>120450),array('wood'=>470345,'clay'=>486920,'iron'=>509130,'crop'=>93080,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>122740),array('wood'=>483280,'clay'=>500310,'iron'=>523130,'crop'=>95640,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>125060),array('wood'=>496570,'clay'=>514065,'iron'=>537520,'crop'=>98270,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>127410),array('wood'=>510225,'clay'=>528205,'iron'=>552300,'crop'=>100975,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>129790),array('wood'=>524260,'clay'=>542730,'iron'=>567490,'crop'=>103750,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>132210),array('wood'=>538675,'clay'=>557655,'iron'=>583095,'crop'=>106605,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>134660),array('wood'=>553490,'clay'=>572990,'iron'=>599130,'crop'=>109535,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>137140),array('wood'=>568710,'clay'=>588745,'iron'=>615605,'crop'=>112550,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>139660),array('wood'=>584350,'clay'=>604935,'iron'=>632535,'crop'=>115645,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>142220),array('wood'=>600420,'clay'=>621575,'iron'=>649930,'crop'=>118825,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>144810),array('wood'=>616930,'clay'=>638665,'iron'=>667800,'crop'=>122090,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>147440),array('wood'=>633895,'clay'=>656230,'iron'=>686165,'crop'=>125450,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>150100),array('wood'=>651330,'clay'=>674275,'iron'=>705035,'crop'=>128900,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>152800),array('wood'=>669240,'clay'=>692820,'iron'=>724425,'crop'=>132445,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>155540),array('wood'=>687645,'clay'=>711870,'iron'=>744345,'crop'=>136085,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>158320),array('wood'=>706555,'clay'=>731445,'iron'=>764815,'crop'=>139830,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>161140),array('wood'=>725985,'clay'=>751560,'iron'=>785850,'crop'=>143675,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>163990),array('wood'=>745950,'clay'=>772230,'iron'=>807460,'crop'=>147625,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>166890),array('wood'=>766460,'clay'=>793465,'iron'=>829665,'crop'=>151685,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>169820),array('wood'=>787540,'clay'=>815285,'iron'=>852480,'crop'=>155855,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>172800),array('wood'=>809195,'clay'=>837705,'iron'=>875920,'crop'=>160140,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>175820),array('wood'=>831450,'clay'=>860745,'iron'=>900010,'crop'=>164545,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>178880),array('wood'=>854315,'clay'=>884415,'iron'=>924760,'crop'=>169070,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>181990),array('wood'=>877810,'clay'=>908735,'iron'=>950190,'crop'=>173720,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>185130),array('wood'=>901950,'clay'=>933725,'iron'=>976320,'crop'=>178495,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>188330),array('wood'=>926750,'clay'=>959405,'iron'=>1000000,'crop'=>183405,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>191560),array('wood'=>952235,'clay'=>985785,'iron'=>1000000,'crop'=>188450,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>194840),array('wood'=>1000000,'clay'=>1000000,'iron'=>1000000,'crop'=>193630,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>198170)); +$bid41=array(1=>array('wood'=>780,'clay'=>420,'iron'=>660,'crop'=>540,'pop'=>5,'cp'=>2,'attri'=>1.01,'time'=>2200),array('wood'=>1000,'clay'=>540,'iron'=>845,'crop'=>690,'pop'=>3,'cp'=>3,'attri'=>1.02,'time'=>3152),array('wood'=>1280,'clay'=>690,'iron'=>1080,'crop'=>885,'pop'=>3,'cp'=>3,'attri'=>1.03,'time'=>4256),array('wood'=>1635,'clay'=>880,'iron'=>1385,'crop'=>1130,'pop'=>3,'cp'=>4,'attri'=>1.04,'time'=>5537),array('wood'=>2095,'clay'=>1125,'iron'=>1770,'crop'=>1450,'pop'=>3,'cp'=>5,'attri'=>1.05,'time'=>7023),array('wood'=>2680,'clay'=>1445,'iron'=>2270,'crop'=>1855,'pop'=>3,'cp'=>6,'attri'=>1.06,'time'=>8747),array('wood'=>3430,'clay'=>1845,'iron'=>2905,'crop'=>2375,'pop'=>3,'cp'=>7,'attri'=>1.08,'time'=>10747),array('wood'=>4390,'clay'=>2365,'iron'=>3715,'crop'=>3040,'pop'=>3,'cp'=>9,'attri'=>1.09,'time'=>13066),array('wood'=>5620,'clay'=>3025,'iron'=>4755,'crop'=>3890,'pop'=>3,'cp'=>10,'attri'=>1.10,'time'=>15757),array('wood'=>7195,'clay'=>3875,'iron'=>6085,'crop'=>4980,'pop'=>3,'cp'=>12,'attri'=>1.11,'time'=>18878),array('wood'=>9210,'clay'=>4960,'iron'=>7790,'crop'=>6375,'pop'=>4,'cp'=>15,'attri'=>1.12,'time'=>22498),array('wood'=>11785,'clay'=>6345,'iron'=>9975,'crop'=>8160,'pop'=>4,'cp'=>18,'attri'=>1.14,'time'=>26698),array('wood'=>15085,'clay'=>8125,'iron'=>12765,'crop'=>10445,'pop'=>4,'cp'=>21,'attri'=>1.15,'time'=>31569),array('wood'=>19310,'clay'=>10400,'iron'=>16340,'crop'=>13370,'pop'=>4,'cp'=>26,'attri'=>1.16,'time'=>37220),array('wood'=>24720,'clay'=>13310,'iron'=>20915,'crop'=>17115,'pop'=>4,'cp'=>31,'attri'=>1.18,'time'=>43776),array('wood'=>31640,'clay'=>17035,'iron'=>26775,'crop'=>21905,'pop'=>4,'cp'=>37,'attri'=>1.19,'time'=>51380),array('wood'=>40500,'clay'=>21810,'iron'=>34270,'crop'=>28040,'pop'=>4,'cp'=>44,'attri'=>1.2,'time'=>60201),array('wood'=>51840,'clay'=>27915,'iron'=>43865,'crop'=>35890,'pop'=>4,'cp'=>53,'attri'=>1.22,'time'=>70433),array('wood'=>66355,'clay'=>35730,'iron'=>56145,'crop'=>45940,'pop'=>4,'cp'=>64,'attri'=>1.23,'time'=>82302),array('wood'=>84935,'clay'=>45735,'iron'=>71870,'crop'=>58800,'pop'=>4,'cp'=>77,'attri'=>1.25,'time'=>96070)); +$bid42=array(1=>array('wood'=>1380,'clay'=>1530,'iron'=>1800,'crop'=>960,'pop'=>3,'cp'=>4,'attri'=>100,'time'=>3000),array('wood'=>1770,'clay'=>1915,'iron'=>2310,'crop'=>1230,'pop'=>2,'cp'=>4,'attri'=>90,'time'=>3780),array('wood'=>2215,'clay'=>2505,'iron'=>2955,'crop'=>1575,'pop'=>2,'cp'=>5,'attri'=>81,'time'=>4680),array('wood'=>2895,'clay'=>3210,'iron'=>3780,'crop'=>2010,'pop'=>2,'cp'=>6,'attri'=>72.9,'time'=>5730),array('wood'=>3705,'clay'=>4110,'iron'=>4830,'crop'=>2580,'pop'=>2,'cp'=>7,'attri'=>65.61,'time'=>6950),array('wood'=>4740,'clay'=>5250,'iron'=>6180,'crop'=>3300,'pop'=>2,'cp'=>9,'attri'=>59.05,'time'=>8360),array('wood'=>6075,'clay'=>6735,'iron'=>7920,'crop'=>4215,'pop'=>2,'cp'=>11,'attri'=>53.14,'time'=>10000),array('wood'=>7730,'clay'=>8610,'iron'=>10140,'crop'=>5600,'pop'=>2,'cp'=>13,'attri'=>47.83,'time'=>11900),array('wood'=>9945,'clay'=>11025,'iron'=>12975,'crop'=>4615,'pop'=>2,'cp'=>15,'attri'=>43.05,'time'=>14110),array('wood'=>12735,'clay'=>14115,'iron'=>16605,'crop'=>8850,'pop'=>2,'cp'=>19,'attri'=>38.74,'time'=>16660),array('wood'=>16290,'clay'=>18060,'iron'=>23415,'crop'=>11340,'pop'=>3,'cp'=>22,'attri'=>34.87,'time'=>19630),array('wood'=>20850,'clay'=>23115,'iron'=>27195,'crop'=>14505,'pop'=>3,'cp'=>27,'attri'=>31.38,'time'=>23070),array('wood'=>26700,'clay'=>29595,'iron'=>34815,'crop'=>18570,'pop'=>3,'cp'=>32,'attri'=>28.24,'time'=>27060),array('wood'=>34170,'clay'=>37875,'iron'=>44565,'crop'=>23775,'pop'=>3,'cp'=>39,'attri'=>25.42,'time'=>31690),array('wood'=>43740,'clay'=>48495,'iron'=>57045,'crop'=>30420,'pop'=>3,'cp'=>46,'attri'=>22.88,'time'=>37060),array('wood'=>55980,'clay'=>62070,'iron'=>73020,'crop'=>38940,'pop'=>3,'cp'=>55,'attri'=>20.59,'time'=>43290),array('wood'=>71655,'clay'=>79440,'iron'=>93465,'crop'=>49485,'pop'=>3,'cp'=>67,'attri'=>18.53,'time'=>50520),array('wood'=>91710,'clay'=>101685,'iron'=>119625,'crop'=>63810,'pop'=>3,'cp'=>80,'attri'=>16.68,'time'=>58900),array('wood'=>105650,'clay'=>117140,'iron'=>137810,'crop'=>73510,'pop'=>3,'cp'=>96,'attri'=>15.01,'time'=>68630),array('wood'=>125225,'clay'=>138840,'iron'=>159995,'crop'=>87090,'pop'=>3,'cp'=>115,'attri'=>13.51,'time'=>79910)); +?> diff --git a/GameEngine/Data/buidata.php_backup_postpercup b/GameEngine/Data/buidata.php_backup_postpercup new file mode 100644 index 00000000..06542e05 --- /dev/null +++ b/GameEngine/Data/buidata.php_backup_postpercup @@ -0,0 +1,54 @@ +2),array('wood'=>40,'clay'=>100,'iron'=>50,'crop'=>60,'pop'=>2,'cp'=>1,'prod'=>5,'time'=>260),array('wood'=>65,'clay'=>165,'iron'=>85,'crop'=>100,'pop'=>1,'cp'=>1,'prod'=>9,'time'=>620),array('wood'=>110,'clay'=>280,'iron'=>140,'crop'=>165,'pop'=>1,'cp'=>2,'prod'=>15,'time'=>1190),array('wood'=>185,'clay'=>465,'iron'=>235,'crop'=>280,'pop'=>1,'cp'=>2,'prod'=>22,'time'=>2100),array('wood'=>310,'clay'=>780,'iron'=>390,'crop'=>465,'pop'=>1,'cp'=>2,'prod'=>33,'time'=>3560),array('wood'=>520,'clay'=>1300,'iron'=>650,'crop'=>780,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>3638),array('wood'=>870,'clay'=>2170,'iron'=>1085,'crop'=>1300,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>7220),array('wood'=>1450,'clay'=>3625,'iron'=>1810,'crop'=>2175,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>15590),array('wood'=>2420,'clay'=>6050,'iron'=>3025,'crop'=>3630,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>25150),array('wood'=>4040,'clay'=>10105,'iron'=>5050,'crop'=>6060,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>40440),array('wood'=>6750,'clay'=>16870,'iron'=>8435,'crop'=>10125,'pop'=>2,'cp'=>7,'prod'=>280,'time'=>64900),array('wood'=>11270,'clay'=>28175,'iron'=>14090,'crop'=>16905,'pop'=>2,'cp'=>9,'prod'=>375,'time'=>104050),array('wood'=>18820,'clay'=>47055,'iron'=>23525,'crop'=>28230,'pop'=>2,'cp'=>11,'prod'=>495,'time'=>166680),array('wood'=>31430,'clay'=>78580,'iron'=>39290,'crop'=>47150,'pop'=>2,'cp'=>13,'prod'=>635,'time'=>266880),array('wood'=>52490,'clay'=>131230,'iron'=>65615,'crop'=>78740,'pop'=>2,'cp'=>15,'prod'=>800,'time'=>427210),array('wood'=>87660,'clay'=>219155,'iron'=>109575,'crop'=>131490,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>683730),array('wood'=>146395,'clay'=>365985,'iron'=>182995,'crop'=>219590,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>1094170),array('wood'=>244480,'clay'=>611195,'iron'=>305600,'crop'=>366715,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>1750880),array('wood'=>408280,'clay'=>1020695,'iron'=>510350,'crop'=>612420,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>2801600),array('wood'=>681825,'clay'=>1704565,'iron'=>852280,'crop'=>1022740,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>4482770)); +$bid2=array(array('prod'=>2),array('wood'=>80,'clay'=>40,'iron'=>80,'crop'=>50,'pop'=>2,'cp'=>1,'prod'=>5,'time'=>220),array('wood'=>135,'clay'=>65,'iron'=>135,'crop'=>85,'pop'=>1,'cp'=>1,'prod'=>9,'time'=>550),array('wood'=>225,'clay'=>110,'iron'=>225,'crop'=>140,'pop'=>1,'cp'=>2,'prod'=>15,'time'=>1080),array('wood'=>375,'clay'=>185,'iron'=>375,'crop'=>235,'pop'=>1,'cp'=>2,'prod'=>22,'time'=>1930),array('wood'=>620,'clay'=>310,'iron'=>620,'crop'=>390,'pop'=>1,'cp'=>2,'prod'=>33,'time'=>3290),array('wood'=>1040,'clay'=>520,'iron'=>1040,'crop'=>650,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>5470),array('wood'=>1735,'clay'=>870,'iron'=>1735,'crop'=>1085,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>8950),array('wood'=>2900,'clay'=>1450,'iron'=>2900,'crop'=>1810,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>14520),array('wood'=>4840,'clay'=>2420,'iron'=>4840,'crop'=>3025,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>23430),array('wood'=>8080,'clay'=>4040,'iron'=>8080,'crop'=>5050,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>37690),array('wood'=>13500,'clay'=>6750,'iron'=>13500,'crop'=>8435,'pop'=>2,'cp'=>7,'prod'=>280,'time'=>60510),array('wood'=>22540,'clay'=>11270,'iron'=>22540,'crop'=>14090,'pop'=>2,'cp'=>9,'prod'=>375,'time'=>97010),array('wood'=>37645,'clay'=>18820,'iron'=>37645,'crop'=>23525,'pop'=>2,'cp'=>11,'prod'=>495,'time'=>155420),array('wood'=>62865,'clay'=>31430,'iron'=>62865,'crop'=>39290,'pop'=>2,'cp'=>13,'prod'=>635,'time'=>248870),array('wood'=>104985,'clay'=>52490,'iron'=>104985,'crop'=>65615,'pop'=>2,'cp'=>15,'prod'=>800,'time'=>398390),array('wood'=>175320,'clay'=>87660,'iron'=>175320,'crop'=>109575,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>637620),array('wood'=>292790,'clay'=>146395,'iron'=>292790,'crop'=>182995,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>1020390),array('wood'=>488955,'clay'=>244480,'iron'=>488955,'crop'=>305600,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>1632820),array('wood'=>816555,'clay'=>408280,'iron'=>816555,'crop'=>510350,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>2612710),array('wood'=>1363650,'clay'=>681825,'iron'=>1363650,'crop'=>852280,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>4180540)); +$bid3=array(array('prod'=>2),array('wood'=>100,'clay'=>80,'iron'=>30,'crop'=>60,'pop'=>3,'cp'=>1,'prod'=>5,'time'=>450),array('wood'=>165,'clay'=>135,'iron'=>50,'crop'=>100,'pop'=>2,'cp'=>1,'prod'=>9,'time'=>920),array('wood'=>280,'clay'=>225,'iron'=>85,'crop'=>165,'pop'=>2,'cp'=>2,'prod'=>15,'time'=>1670),array('wood'=>465,'clay'=>375,'iron'=>140,'crop'=>280,'pop'=>2,'cp'=>2,'prod'=>22,'time'=>2880),array('wood'=>780,'clay'=>620,'iron'=>235,'crop'=>465,'pop'=>2,'cp'=>2,'prod'=>33,'time'=>4800),array('wood'=>1300,'clay'=>1040,'iron'=>390,'crop'=>780,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>7880),array('wood'=>2170,'clay'=>1735,'iron'=>650,'crop'=>1300,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>12810),array('wood'=>3625,'clay'=>2900,'iron'=>1085,'crop'=>2175,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>20690),array('wood'=>6050,'clay'=>4840,'iron'=>1815,'crop'=>3630,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>33310),array('wood'=>10105,'clay'=>8080,'iron'=>3030,'crop'=>6060,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>53500),array('wood'=>16870,'clay'=>13500,'iron'=>5060,'crop'=>10125,'pop'=>3,'cp'=>7,'prod'=>280,'time'=>85800),array('wood'=>28175,'clay'=>22540,'iron'=>8455,'crop'=>16905,'pop'=>3,'cp'=>9,'prod'=>375,'time'=>137470),array('wood'=>47055,'clay'=>37645,'iron'=>14115,'crop'=>28230,'pop'=>3,'cp'=>11,'prod'=>495,'time'=>220160),array('wood'=>78580,'clay'=>62865,'iron'=>23575,'crop'=>47150,'pop'=>3,'cp'=>13,'prod'=>635,'time'=>352450),array('wood'=>131230,'clay'=>104985,'iron'=>39370,'crop'=>78740,'pop'=>3,'cp'=>15,'prod'=>800,'time'=>564120),array('wood'=>219155,'clay'=>175320,'iron'=>65745,'crop'=>131490,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>902760),array('wood'=>365985,'clay'=>292790,'iron'=>109795,'crop'=>219590,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>145546),array('wood'=>611195,'clay'=>488955,'iron'=>183360,'crop'=>366715,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>2311660),array('wood'=>1020695,'clay'=>816555,'iron'=>306210,'crop'=>612420,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>3698850),array('wood'=>1704565,'clay'=>1363650,'iron'=>511370,'crop'=>1022740,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>5918370)); +$bid4=array(array('prod'=>2),array('wood'=>70,'clay'=>90,'iron'=>70,'crop'=>20,'pop'=>0,'cp'=>1,'prod'=>5,'time'=>150),array('wood'=>115,'clay'=>150,'iron'=>115,'crop'=>35,'pop'=>0,'cp'=>1,'prod'=>9,'time'=>440),array('wood'=>195,'clay'=>250,'iron'=>195,'crop'=>55,'pop'=>0,'cp'=>2,'prod'=>15,'time'=>900),array('wood'=>325,'clay'=>420,'iron'=>325,'crop'=>95,'pop'=>0,'cp'=>2,'prod'=>22,'time'=>1650),array('wood'=>545,'clay'=>700,'iron'=>545,'crop'=>155,'pop'=>0,'cp'=>2,'prod'=>33,'time'=>2830),array('wood'=>910,'clay'=>1170,'iron'=>910,'crop'=>260,'pop'=>1,'cp'=>3,'prod'=>50,'time'=>4730),array('wood'=>1520,'clay'=>1950,'iron'=>1520,'crop'=>435,'pop'=>1,'cp'=>4,'prod'=>70,'time'=>7780),array('wood'=>2535,'clay'=>3260,'iron'=>2535,'crop'=>725,'pop'=>1,'cp'=>4,'prod'=>100,'time'=>12190),array('wood'=>4235,'clay'=>5445,'iron'=>4235,'crop'=>1210,'pop'=>1,'cp'=>5,'prod'=>145,'time'=>19690),array('wood'=>7070,'clay'=>9095,'iron'=>7070,'crop'=>2020,'pop'=>1,'cp'=>6,'prod'=>200,'time'=>31700),array('wood'=>11810,'clay'=>15185,'iron'=>11810,'crop'=>3375,'pop'=>1,'cp'=>7,'prod'=>280,'time'=>50910),array('wood'=>19725,'clay'=>25360,'iron'=>19725,'crop'=>5635,'pop'=>1,'cp'=>9,'prod'=>375,'time'=>84700),array('wood'=>32940,'clay'=>42350,'iron'=>32940,'crop'=>9410,'pop'=>1,'cp'=>11,'prod'=>495,'time'=>135710),array('wood'=>55005,'clay'=>70720,'iron'=>55005,'crop'=>15715,'pop'=>1,'cp'=>13,'prod'=>635,'time'=>217340),array('wood'=>91860,'clay'=>118105,'iron'=>91860,'crop'=>26245,'pop'=>1,'cp'=>15,'prod'=>800,'time'=>347950),array('wood'=>153405,'clay'=>197240,'iron'=>153405,'crop'=>43830,'pop'=>2,'cp'=>18,'prod'=>1000,'time'=>556910),array('wood'=>256190,'clay'=>329385,'iron'=>256190,'crop'=>73195,'pop'=>2,'cp'=>22,'prod'=>1300,'time'=>891260),array('wood'=>427835,'clay'=>550075,'iron'=>427835,'crop'=>122240,'pop'=>2,'cp'=>27,'prod'=>1600,'time'=>1426210),array('wood'=>714485,'clay'=>918625,'iron'=>714485,'crop'=>204140,'pop'=>2,'cp'=>32,'prod'=>2000,'time'=>2282140),array('wood'=>1193195,'clay'=>1534105,'iron'=>1193195,'crop'=>340915,'pop'=>2,'cp'=>38,'prod'=>2450,'time'=>3651630)); +$bid5=array(1=>array('wood'=>520,'clay'=>380,'iron'=>290,'crop'=>90,'pop'=>4,'cp'=>1,'attri'=>5,'time'=>3000),array('wood'=>935,'clay'=>685,'iron'=>520,'crop'=>160,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>5700),array('wood'=>1685,'clay'=>1230,'iron'=>940,'crop'=>290,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>9750),array('wood'=>3035,'clay'=>2215,'iron'=>1690,'crop'=>525,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>15830),array('wood'=>5460,'clay'=>3990,'iron'=>3045,'crop'=>945,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>24940)); +$bid6=array(1=>array('wood'=>440,'clay'=>480,'iron'=>320,'crop'=>50,'pop'=>3,'cp'=>1,'attri'=>5,'time'=>2240),array('wood'=>790,'clay'=>865,'iron'=>575,'crop'=>90,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>4560),array('wood'=>1425,'clay'=>1555,'iron'=>1035,'crop'=>160,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>8040),array('wood'=>2565,'clay'=>2800,'iron'=>1865,'crop'=>290,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>13260),array('wood'=>4620,'clay'=>5040,'iron'=>3360,'crop'=>525,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>21090)); +$bid7=array(1=>array('wood'=>200,'clay'=>450,'iron'=>510,'crop'=>120,'pop'=>6,'cp'=>1,'attri'=>5,'time'=>4080),array('wood'=>360,'clay'=>810,'iron'=>920,'crop'=>215,'pop'=>3,'cp'=>1,'attri'=>10,'time'=>7320),array('wood'=>650,'clay'=>1460,'iron'=>1650,'crop'=>390,'pop'=>3,'cp'=>2,'attri'=>15,'time'=>12180),array('wood'=>1165,'clay'=>2625,'iron'=>2975,'crop'=>700,'pop'=>3,'cp'=>2,'attri'=>20,'time'=>19470),array('wood'=>2100,'clay'=>4725,'iron'=>5355,'crop'=>1260,'pop'=>3,'cp'=>2,'attri'=>25,'time'=>30410)); +$bid8=array(1=>array('wood'=>500,'clay'=>440,'iron'=>380,'crop'=>1240,'pop'=>3,'cp'=>1,'attri'=>5,'time'=>1840),array('wood'=>900,'clay'=>790,'iron'=>685,'crop'=>2230,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>3960),array('wood'=>1620,'clay'=>1425,'iron'=>1230,'crop'=>4020,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>7140),array('wood'=>2915,'clay'=>2565,'iron'=>2215,'crop'=>7230,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>11910),array('wood'=>5250,'clay'=>4620,'iron'=>3990,'crop'=>13015,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>19070)); +$bid9=array(1=>array('wood'=>1200,'clay'=>1480,'iron'=>870,'crop'=>1600,'pop'=>4,'cp'=>1,'attri'=>5,'time'=>3680),array('wood'=>2160,'clay'=>2665,'iron'=>1565,'crop'=>2880,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>6720),array('wood'=>3890,'clay'=>4795,'iron'=>2820,'crop'=>5185,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>11280),array('wood'=>7000,'clay'=>8630,'iron'=>5075,'crop'=>9330,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>18120),array('wood'=>12595,'clay'=>15535,'iron'=>9135,'crop'=>16795,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>28380)); +$bid10=array(1=>array('wood'=>130,'clay'=>160,'iron'=>90,'crop'=>40,'pop'=>1,'cp'=>1,'attri'=>1200,'time'=>2000),array('wood'=>165,'clay'=>205,'iron'=>115,'crop'=>50,'pop'=>1,'cp'=>1,'attri'=>1700,'time'=>2620),array('wood'=>215,'clay'=>260,'iron'=>145,'crop'=>65,'pop'=>1,'cp'=>2,'attri'=>2300,'time'=>3340),array('wood'=>275,'clay'=>335,'iron'=>190,'crop'=>85,'pop'=>1,'cp'=>2,'attri'=>3100,'time'=>4170),array('wood'=>350,'clay'=>430,'iron'=>240,'crop'=>105,'pop'=>1,'cp'=>2,'attri'=>4000,'time'=>5140),array('wood'=>445,'clay'=>550,'iron'=>310,'crop'=>135,'pop'=>1,'cp'=>3,'attri'=>5000,'time'=>6260),array('wood'=>570,'clay'=>705,'iron'=>395,'crop'=>175,'pop'=>1,'cp'=>4,'attri'=>6300,'time'=>7570),array('wood'=>730,'clay'=>900,'iron'=>505,'crop'=>225,'pop'=>1,'cp'=>4,'attri'=>7800,'time'=>9080),array('wood'=>935,'clay'=>1115,'iron'=>650,'crop'=>290,'pop'=>1,'cp'=>5,'attri'=>9600,'time'=>10830),array('wood'=>1200,'clay'=>1475,'iron'=>830,'crop'=>370,'pop'=>1,'cp'=>6,'attri'=>11800,'time'=>12860),array('wood'=>1535,'clay'=>1890,'iron'=>1065,'crop'=>470,'pop'=>2,'cp'=>7,'attri'=>14400,'time'=>15220),array('wood'=>1965,'clay'=>2420,'iron'=>1360,'crop'=>605,'pop'=>2,'cp'=>9,'attri'=>17600,'time'=>17950),array('wood'=>2515,'clay'=>3095,'iron'=>1740,'crop'=>775,'pop'=>2,'cp'=>11,'attri'=>21400,'time'=>21130),array('wood'=>3220,'clay'=>3960,'iron'=>2230,'crop'=>990,'pop'=>2,'cp'=>13,'attri'=>25900,'time'=>24810),array('wood'=>4120,'clay'=>5070,'iron'=>2850,'crop'=>1270,'pop'=>2,'cp'=>15,'attri'=>31300,'time'=>29080),array('wood'=>5275,'clay'=>6490,'iron'=>3650,'crop'=>1625,'pop'=>2,'cp'=>18,'attri'=>37900,'time'=>34030),array('wood'=>6750,'clay'=>8310,'iron'=>4675,'crop'=>2075,'pop'=>2,'cp'=>22,'attri'=>45700,'time'=>39770),array('wood'=>8640,'clay'=>10635,'iron'=>5980,'crop'=>2660,'pop'=>2,'cp'=>27,'attri'=>55100,'time'=>46440),array('wood'=>11060,'clay'=>13610,'iron'=>7655,'crop'=>3405,'pop'=>2,'cp'=>32,'attri'=>66400,'time'=>54170),array('wood'=>14155,'clay'=>17420,'iron'=>9800,'crop'=>4355,'pop'=>2,'cp'=>38,'attri'=>80000,'time'=>63130)); +$bid11=array(1=>array('wood'=>80,'clay'=>100,'iron'=>70,'crop'=>20,'pop'=>1,'cp'=>1,'attri'=>1200,'time'=>1600),array('wood'=>100,'clay'=>130,'iron'=>90,'crop'=>25,'pop'=>1,'cp'=>1,'attri'=>1700,'time'=>2160),array('wood'=>130,'clay'=>165,'iron'=>115,'crop'=>35,'pop'=>1,'cp'=>2,'attri'=>2300,'time'=>2800),array('wood'=>170,'clay'=>210,'iron'=>145,'crop'=>40,'pop'=>1,'cp'=>2,'attri'=>3100,'time'=>3550),array('wood'=>215,'clay'=>270,'iron'=>190,'crop'=>55,'pop'=>1,'cp'=>2,'attri'=>4000,'time'=>4420),array('wood'=>275,'clay'=>345,'iron'=>240,'crop'=>70,'pop'=>1,'cp'=>3,'attri'=>5000,'time'=>5420),array('wood'=>350,'clay'=>440,'iron'=>310,'crop'=>90,'pop'=>1,'cp'=>4,'attri'=>6300,'time'=>6590),array('wood'=>450,'clay'=>565,'iron'=>395,'crop'=>115,'pop'=>1,'cp'=>4,'attri'=>7800,'time'=>7950),array('wood'=>575,'clay'=>720,'iron'=>505,'crop'=>145,'pop'=>1,'cp'=>5,'attri'=>9600,'time'=>9520),array('wood'=>740,'clay'=>920,'iron'=>645,'crop'=>185,'pop'=>1,'cp'=>6,'attri'=>11800,'time'=>11340),array('wood'=>945,'clay'=>1180,'iron'=>825,'crop'=>235,'pop'=>2,'cp'=>7,'attri'=>14400,'time'=>13450),array('wood'=>1210,'clay'=>1510,'iron'=>1060,'crop'=>300,'pop'=>2,'cp'=>9,'attri'=>17600,'time'=>15910),array('wood'=>1545,'clay'=>1935,'iron'=>1355,'crop'=>385,'pop'=>2,'cp'=>11,'attri'=>21400,'time'=>18750),array('wood'=>1980,'clay'=>2475,'iron'=>1735,'crop'=>495,'pop'=>2,'cp'=>13,'attri'=>25900,'time'=>22050),array('wood'=>2535,'clay'=>3170,'iron'=>2220,'crop'=>635,'pop'=>2,'cp'=>15,'attri'=>31300,'time'=>25880),array('wood'=>3245,'clay'=>4055,'iron'=>2840,'crop'=>810,'pop'=>2,'cp'=>18,'attri'=>37900,'time'=>30320),array('wood'=>4155,'clay'=>5190,'iron'=>3635,'crop'=>1040,'pop'=>2,'cp'=>22,'attri'=>45700,'time'=>35470),array('wood'=>5315,'clay'=>6645,'iron'=>4650,'crop'=>1330,'pop'=>2,'cp'=>27,'attri'=>55100,'time'=>41450),array('wood'=>6805,'clay'=>8505,'iron'=>5955,'crop'=>1700,'pop'=>2,'cp'=>32,'attri'=>66400,'time'=>48380),array('wood'=>8710,'clay'=>10890,'iron'=>7620,'crop'=>2180,'pop'=>2,'cp'=>38,'attri'=>80000,'time'=>56420)); +$bid12=array(1=>array('wood'=>170,'clay'=>200,'iron'=>380,'crop'=>130,'pop'=>4,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>220,'clay'=>255,'iron'=>485,'crop'=>165,'pop'=>2,'cp'=>3,'attri'=>96,'time'=>2620),array('wood'=>280,'clay'=>330,'iron'=>625,'crop'=>215,'pop'=>2,'cp'=>3,'attri'=>93,'time'=>3340),array('wood'=>355,'clay'=>420,'iron'=>795,'crop'=>275,'pop'=>2,'cp'=>4,'attri'=>90,'time'=>4170),array('wood'=>455,'clay'=>535,'iron'=>1020,'crop'=>350,'pop'=>2,'cp'=>5,'attri'=>86,'time'=>5140),array('wood'=>585,'clay'=>685,'iron'=>1305,'crop'=>445,'pop'=>3,'cp'=>6,'attri'=>83,'time'=>6260),array('wood'=>750,'clay'=>880,'iron'=>1670,'crop'=>570,'pop'=>3,'cp'=>7,'attri'=>80,'time'=>7570),array('wood'=>955,'clay'=>1125,'iron'=>2140,'crop'=>730,'pop'=>3,'cp'=>9,'attri'=>77,'time'=>9080),array('wood'=>1225,'clay'=>1440,'iron'=>2740,'crop'=>935,'pop'=>3,'cp'=>10,'attri'=>75,'time'=>10830),array('wood'=>1570,'clay'=>1845,'iron'=>3505,'crop'=>1200,'pop'=>3,'cp'=>12,'attri'=>72,'time'=>12860),array('wood'=>2005,'clay'=>2360,'iron'=>4485,'crop'=>1535,'pop'=>3,'cp'=>15,'attri'=>69,'time'=>15220),array('wood'=>2570,'clay'=>3020,'iron'=>5740,'crop'=>1965,'pop'=>3,'cp'=>18,'attri'=>67,'time'=>17950),array('wood'=>3290,'clay'=>3870,'iron'=>7350,'crop'=>2515,'pop'=>3,'cp'=>21,'attri'=>64,'time'=>21130),array('wood'=>4210,'clay'=>4950,'iron'=>9410,'crop'=>3220,'pop'=>3,'cp'=>26,'attri'=>62,'time'=>24810),array('wood'=>5390,'clay'=>6340,'iron'=>12045,'crop'=>4120,'pop'=>3,'cp'=>31,'attri'=>60,'time'=>29080),array('wood'=>6895,'clay'=>8115,'iron'=>15415,'crop'=>5275,'pop'=>4,'cp'=>37,'attri'=>58,'time'=>34030),array('wood'=>8825,'clay'=>10385,'iron'=>19730,'crop'=>6750,'pop'=>4,'cp'=>44,'attri'=>56,'time'=>39770),array('wood'=>11300,'clay'=>13290,'iron'=>25255,'crop'=>8640,'pop'=>4,'cp'=>53,'attri'=>54,'time'=>46440),array('wood'=>14460,'clay'=>17015,'iron'=>32325,'crop'=>11060,'pop'=>4,'cp'=>64,'attri'=>52,'time'=>54170),array('wood'=>18510,'clay'=>21780,'iron'=>41380,'crop'=>14155,'pop'=>4,'cp'=>77,'attri'=>50,'time'=>63130)); +$bid13=array(1=>array('wood'=>130,'clay'=>210,'iron'=>410,'crop'=>130,'pop'=>4,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>165,'clay'=>270,'iron'=>525,'crop'=>165,'pop'=>2,'cp'=>3,'attri'=>96,'time'=>2620),array('wood'=>215,'clay'=>345,'iron'=>670,'crop'=>215,'pop'=>2,'cp'=>3,'attri'=>93,'time'=>3340),array('wood'=>275,'clay'=>440,'iron'=>860,'crop'=>275,'pop'=>2,'cp'=>4,'attri'=>90,'time'=>4170),array('wood'=>350,'clay'=>565,'iron'=>1100,'crop'=>350,'pop'=>2,'cp'=>5,'attri'=>86,'time'=>5140),array('wood'=>445,'clay'=>720,'iron'=>1410,'crop'=>445,'pop'=>3,'cp'=>6,'attri'=>83,'time'=>6260),array('wood'=>570,'clay'=>925,'iron'=>1805,'crop'=>570,'pop'=>3,'cp'=>7,'attri'=>80,'time'=>7570),array('wood'=>730,'clay'=>1180,'iron'=>2310,'crop'=>730,'pop'=>3,'cp'=>9,'attri'=>77,'time'=>9080),array('wood'=>935,'clay'=>1515,'iron'=>2955,'crop'=>935,'pop'=>3,'cp'=>10,'attri'=>75,'time'=>10830),array('wood'=>1200,'clay'=>1935,'iron'=>3780,'crop'=>1200,'pop'=>3,'cp'=>12,'attri'=>72,'time'=>12860),array('wood'=>1535,'clay'=>2480,'iron'=>4840,'crop'=>1535,'pop'=>3,'cp'=>15,'attri'=>69,'time'=>15220),array('wood'=>1965,'clay'=>3175,'iron'=>6195,'crop'=>1965,'pop'=>3,'cp'=>18,'attri'=>67,'time'=>17950),array('wood'=>2515,'clay'=>4060,'iron'=>7930,'crop'=>2515,'pop'=>3,'cp'=>21,'attri'=>64,'time'=>21130),array('wood'=>3220,'clay'=>5200,'iron'=>10150,'crop'=>3220,'pop'=>3,'cp'=>26,'attri'=>62,'time'=>24810),array('wood'=>4120,'clay'=>6655,'iron'=>12995,'crop'=>4120,'pop'=>3,'cp'=>31,'attri'=>60,'time'=>29080),array('wood'=>5275,'clay'=>8520,'iron'=>16630,'crop'=>5275,'pop'=>4,'cp'=>37,'attri'=>58,'time'=>34030),array('wood'=>6750,'clay'=>10905,'iron'=>21290,'crop'=>6750,'pop'=>4,'cp'=>44,'attri'=>56,'time'=>39770),array('wood'=>8640,'clay'=>13955,'iron'=>27250,'crop'=>8640,'pop'=>4,'cp'=>53,'attri'=>54,'time'=>46440),array('wood'=>11060,'clay'=>17865,'iron'=>34880,'crop'=>11060,'pop'=>4,'cp'=>64,'attri'=>52,'time'=>54170),array('wood'=>14155,'clay'=>22865,'iron'=>44645,'crop'=>14155,'pop'=>4,'cp'=>77,'attri'=>50,'time'=>63130)); +$bid14=array(1=>array('wood'=>1750,'clay'=>2250,'iron'=>1530,'crop'=>240,'pop'=>1,'cp'=>1,'attri'=>110,'time'=>3500),array('wood'=>2240,'clay'=>2880,'iron'=>1960,'crop'=>305,'pop'=>1,'cp'=>1,'attri'=>120,'time'=>4360),array('wood'=>2865,'clay'=>3685,'iron'=>2505,'crop'=>395,'pop'=>1,'cp'=>2,'attri'=>130,'time'=>5360),array('wood'=>3670,'clay'=>4720,'iron'=>3210,'crop'=>505,'pop'=>1,'cp'=>2,'attri'=>140,'time'=>6510),array('wood'=>4700,'clay'=>6040,'iron'=>4105,'crop'=>645,'pop'=>1,'cp'=>2,'attri'=>150,'time'=>7860),array('wood'=>6015,'clay'=>7730,'iron'=>5255,'crop'=>825,'pop'=>1,'cp'=>3,'attri'=>160,'time'=>9410),array('wood'=>7695,'clay'=>9895,'iron'=>6730,'crop'=>1055,'pop'=>1,'cp'=>4,'attri'=>170,'time'=>11220),array('wood'=>9850,'clay'=>12665,'iron'=>8615,'crop'=>1350,'pop'=>1,'cp'=>4,'attri'=>180,'time'=>13320),array('wood'=>12610,'clay'=>16215,'iron'=>11025,'crop'=>1730,'pop'=>1,'cp'=>5,'attri'=>190,'time'=>15750),array('wood'=>16140,'clay'=>20755,'iron'=>14110,'crop'=>2215,'pop'=>1,'cp'=>6,'attri'=>200,'time'=>18570),array('wood'=>20660,'clay'=>26565,'iron'=>18065,'crop'=>2835,'pop'=>2,'cp'=>7,'attri'=>210,'time'=>21840),array('wood'=>26445,'clay'=>34000,'iron'=>23120,'crop'=>3625,'pop'=>2,'cp'=>9,'attri'=>220,'time'=>25630),array('wood'=>33850,'clay'=>43520,'iron'=>29595,'crop'=>4640,'pop'=>2,'cp'=>11,'attri'=>230,'time'=>30030),array('wood'=>43330,'clay'=>55705,'iron'=>37880,'crop'=>5940,'pop'=>2,'cp'=>13,'attri'=>240,'time'=>35140),array('wood'=>55460,'clay'=>71305,'iron'=>48490,'crop'=>7605,'pop'=>2,'cp'=>15,'attri'=>250,'time'=>41060),array('wood'=>70990,'clay'=>91270,'iron'=>62065,'crop'=>9735,'pop'=>2,'cp'=>18,'attri'=>260,'time'=>47930),array('wood'=>90865,'clay'=>116825,'iron'=>79440,'crop'=>12460,'pop'=>2,'cp'=>22,'attri'=>270,'time'=>55900),array('wood'=>116305,'clay'=>149540,'iron'=>101685,'crop'=>15950,'pop'=>2,'cp'=>27,'attri'=>280,'time'=>65140),array('wood'=>148875,'clay'=>191410,'iron'=>130160,'crop'=>20415,'pop'=>2,'cp'=>32,'attri'=>290,'time'=>75860),array('wood'=>190560,'clay'=>245005,'iron'=>166600,'crop'=>26135,'pop'=>2,'cp'=>38,'attri'=>300,'time'=>88300)); +$bid15=array(1=>array('wood'=>70,'clay'=>40,'iron'=>60,'crop'=>20,'pop'=>2,'cp'=>2,'attri'=>100,'time'=>2620),array('wood'=>90,'clay'=>50,'iron'=>75,'crop'=>25,'pop'=>1,'cp'=>3,'attri'=>96,'time'=>3220),array('wood'=>115,'clay'=>65,'iron'=>100,'crop'=>35,'pop'=>1,'cp'=>3,'attri'=>93,'time'=>3880),array('wood'=>145,'clay'=>85,'iron'=>125,'crop'=>40,'pop'=>1,'cp'=>4,'attri'=>90,'time'=>4610),array('wood'=>190,'clay'=>105,'iron'=>160,'crop'=>55,'pop'=>1,'cp'=>5,'attri'=>86,'time'=>5410),array('wood'=>240,'clay'=>135,'iron'=>205,'crop'=>70,'pop'=>2,'cp'=>6,'attri'=>83,'time'=>6300),array('wood'=>310,'clay'=>175,'iron'=>265,'crop'=>90,'pop'=>2,'cp'=>7,'attri'=>80,'time'=>7280),array('wood'=>395,'clay'=>225,'iron'=>340,'crop'=>115,'pop'=>2,'cp'=>9,'attri'=>77,'time'=>8380),array('wood'=>505,'clay'=>290,'iron'=>430,'crop'=>145,'pop'=>2,'cp'=>10,'attri'=>75,'time'=>9590),array('wood'=>645,'clay'=>370,'iron'=>555,'crop'=>185,'pop'=>2,'cp'=>12,'attri'=>72,'time'=>10940),array('wood'=>825,'clay'=>470,'iron'=>710,'crop'=>235,'pop'=>2,'cp'=>15,'attri'=>69,'time'=>12440),array('wood'=>1060,'clay'=>605,'iron'=>905,'crop'=>300,'pop'=>2,'cp'=>18,'attri'=>67,'time'=>14120),array('wood'=>1355,'clay'=>775,'iron'=>1160,'crop'=>385,'pop'=>2,'cp'=>21,'attri'=>64,'time'=>15980),array('wood'=>1735,'clay'=>990,'iron'=>1485,'crop'=>495,'pop'=>2,'cp'=>26,'attri'=>62,'time'=>18050),array('wood'=>2220,'clay'=>1270,'iron'=>1900,'crop'=>635,'pop'=>2,'cp'=>31,'attri'=>60,'time'=>20370),array('wood'=>2840,'clay'=>1625,'iron'=>2435,'crop'=>810,'pop'=>3,'cp'=>37,'attri'=>58,'time'=>22950),array('wood'=>3635,'clay'=>2075,'iron'=>3115,'crop'=>1040,'pop'=>3,'cp'=>44,'attri'=>56,'time'=>25830),array('wood'=>4650,'clay'=>2660,'iron'=>3990,'crop'=>1330,'pop'=>3,'cp'=>53,'attri'=>54,'time'=>29040),array('wood'=>5955,'clay'=>3405,'iron'=>5105,'crop'=>1700,'pop'=>3,'cp'=>64,'attri'=>52,'time'=>32630),array('wood'=>7620,'clay'=>4355,'iron'=>6535,'crop'=>2180,'pop'=>3,'cp'=>77,'attri'=>50,'time'=>0)); +$bid16=array(1=>array('wood'=>110,'clay'=>160,'iron'=>90,'crop'=>70,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>670),array('wood'=>140,'clay'=>205,'iron'=>115,'crop'=>90,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>870),array('wood'=>180,'clay'=>260,'iron'=>145,'crop'=>115,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1110),array('wood'=>230,'clay'=>335,'iron'=>190,'crop'=>145,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1390),array('wood'=>295,'clay'=>430,'iron'=>240,'crop'=>190,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1710),array('wood'=>380,'clay'=>550,'iron'=>310,'crop'=>240,'pop'=>1,'cp'=>3,'attri'=>0,'time'=>2090),array('wood'=>485,'clay'=>705,'iron'=>395,'crop'=>310,'pop'=>1,'cp'=>4,'attri'=>0,'time'=>2520),array('wood'=>620,'clay'=>900,'iron'=>505,'crop'=>395,'pop'=>1,'cp'=>4,'attri'=>0,'time'=>3030),array('wood'=>795,'clay'=>1155,'iron'=>650,'crop'=>505,'pop'=>1,'cp'=>5,'attri'=>0,'time'=>3610),array('wood'=>1015,'clay'=>1475,'iron'=>830,'crop'=>645,'pop'=>1,'cp'=>6,'attri'=>0,'time'=>4290),array('wood'=>1300,'clay'=>1890,'iron'=>1065,'crop'=>825,'pop'=>2,'cp'=>7,'attri'=>0,'time'=>5070),array('wood'=>1660,'clay'=>2420,'iron'=>1360,'crop'=>1060,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>5980),array('wood'=>2130,'clay'=>3095,'iron'=>1740,'crop'=>1355,'pop'=>2,'cp'=>11,'attri'=>0,'time'=>7040),array('wood'=>2725,'clay'=>3960,'iron'=>2230,'crop'=>1735,'pop'=>2,'cp'=>13,'attri'=>0,'time'=>8270),array('wood'=>3485,'clay'=>5070,'iron'=>2850,'crop'=>2220,'pop'=>2,'cp'=>15,'attri'=>0,'time'=>9690),array('wood'=>4460,'clay'=>6490,'iron'=>3650,'crop'=>2840,'pop'=>2,'cp'=>18,'attri'=>0,'time'=>11340),array('wood'=>5710,'clay'=>8310,'iron'=>4675,'crop'=>3635,'pop'=>2,'cp'=>22,'attri'=>0,'time'=>13260),array('wood'=>7310,'clay'=>10635,'iron'=>5980,'crop'=>4650,'pop'=>2,'cp'=>27,'attri'=>0,'time'=>15480),array('wood'=>9360,'clay'=>13610,'iron'=>7655,'crop'=>5955,'pop'=>2,'cp'=>32,'attri'=>0,'time'=>18060),array('wood'=>11980,'clay'=>17420,'iron'=>9800,'crop'=>7620,'pop'=>2,'cp'=>38,'attri'=>0,'time'=>21040)); +$bid17=array(1=>array('wood'=>80,'clay'=>70,'iron'=>120,'crop'=>70,'pop'=>4,'cp'=>4,'attri'=>1,'time'=>1800),array('wood'=>100,'clay'=>90,'iron'=>155,'crop'=>90,'pop'=>2,'cp'=>4,'attri'=>2,'time'=>2390),array('wood'=>130,'clay'=>115,'iron'=>195,'crop'=>115,'pop'=>2,'cp'=>5,'attri'=>3,'time'=>3070),array('wood'=>170,'clay'=>145,'iron'=>250,'crop'=>145,'pop'=>2,'cp'=>6,'attri'=>4,'time'=>3860),array('wood'=>215,'clay'=>190,'iron'=>320,'crop'=>190,'pop'=>2,'cp'=>7,'attri'=>5,'time'=>4780),array('wood'=>275,'clay'=>240,'iron'=>410,'crop'=>240,'pop'=>3,'cp'=>9,'attri'=>6,'time'=>5840),array('wood'=>350,'clay'=>310,'iron'=>530,'crop'=>310,'pop'=>3,'cp'=>11,'attri'=>7,'time'=>7080),array('wood'=>450,'clay'=>395,'iron'=>675,'crop'=>395,'pop'=>3,'cp'=>13,'attri'=>8,'time'=>8510),array('wood'=>575,'clay'=>505,'iron'=>865,'crop'=>505,'pop'=>3,'cp'=>15,'attri'=>9,'time'=>10170),array('wood'=>740,'clay'=>645,'iron'=>1105,'crop'=>645,'pop'=>3,'cp'=>19,'attri'=>10,'time'=>12100),array('wood'=>945,'clay'=>825,'iron'=>1415,'crop'=>825,'pop'=>3,'cp'=>22,'attri'=>11,'time'=>14340),array('wood'=>1210,'clay'=>1060,'iron'=>1815,'crop'=>1060,'pop'=>3,'cp'=>27,'attri'=>12,'time'=>16930),array('wood'=>1545,'clay'=>1355,'iron'=>2320,'crop'=>1355,'pop'=>3,'cp'=>32,'attri'=>13,'time'=>19940),array('wood'=>1980,'clay'=>1735,'iron'=>2970,'crop'=>1735,'pop'=>3,'cp'=>39,'attri'=>14,'time'=>23430),array('wood'=>2535,'clay'=>2220,'iron'=>3805,'crop'=>2220,'pop'=>3,'cp'=>46,'attri'=>15,'time'=>27480),array('wood'=>3245,'clay'=>2840,'iron'=>4870,'crop'=>2840,'pop'=>4,'cp'=>55,'attri'=>16,'time'=>32180),array('wood'=>4155,'clay'=>3635,'iron'=>6230,'crop'=>3635,'pop'=>4,'cp'=>67,'attri'=>17,'time'=>37620),array('wood'=>5315,'clay'=>4650,'iron'=>7975,'crop'=>4650,'pop'=>4,'cp'=>80,'attri'=>18,'time'=>43940),array('wood'=>6805,'clay'=>5955,'iron'=>10210,'crop'=>5955,'pop'=>4,'cp'=>96,'attri'=>19,'time'=>51270),array('wood'=>8710,'clay'=>7620,'iron'=>13065,'crop'=>7620,'pop'=>4,'cp'=>115,'attri'=>20,'time'=>59780)); +$bid18=array(1=>array('wood'=>180,'clay'=>130,'iron'=>150,'crop'=>80,'pop'=>3,'cp'=>5,'attri'=>0,'time'=>2000),array('wood'=>230,'clay'=>165,'iron'=>190,'crop'=>100,'pop'=>2,'cp'=>6,'attri'=>0,'time'=>2620),array('wood'=>295,'clay'=>215,'iron'=>245,'crop'=>130,'pop'=>2,'cp'=>7,'attri'=>9,'time'=>3340),array('wood'=>375,'clay'=>275,'iron'=>315,'crop'=>170,'pop'=>2,'cp'=>8,'attri'=>12,'time'=>4170),array('wood'=>485,'clay'=>350,'iron'=>405,'crop'=>215,'pop'=>2,'cp'=>10,'attri'=>15,'time'=>5140),array('wood'=>620,'clay'=>445,'iron'=>515,'crop'=>275,'pop'=>2,'cp'=>12,'attri'=>18,'time'=>6260),array('wood'=>790,'clay'=>570,'iron'=>660,'crop'=>350,'pop'=>2,'cp'=>14,'attri'=>21,'time'=>7570),array('wood'=>1015,'clay'=>730,'iron'=>845,'crop'=>450,'pop'=>2,'cp'=>17,'attri'=>24,'time'=>9080),array('wood'=>1295,'clay'=>935,'iron'=>1080,'crop'=>575,'pop'=>2,'cp'=>21,'attri'=>27,'time'=>10830),array('wood'=>1660,'clay'=>1200,'iron'=>1385,'crop'=>740,'pop'=>2,'cp'=>25,'attri'=>30,'time'=>12860),array('wood'=>2125,'clay'=>1535,'iron'=>1770,'crop'=>945,'pop'=>3,'cp'=>30,'attri'=>33,'time'=>15220),array('wood'=>2720,'clay'=>1965,'iron'=>2265,'crop'=>1210,'pop'=>3,'cp'=>36,'attri'=>36,'time'=>17950),array('wood'=>3480,'clay'=>2515,'iron'=>2900,'crop'=>1545,'pop'=>3,'cp'=>43,'attri'=>39,'time'=>21130), array('wood'=>4455,'clay'=>3220,'iron'=>3715,'crop'=>1980,'pop'=>3,'cp'=>51,'attri'=>42,'time'=>24810),array('wood'=>5705,'clay'=>4120,'iron'=>4755,'crop'=>2535,'pop'=>3,'cp'=>62,'attri'=>45,'time'=>29080),array('wood'=>7300,'clay'=>5275,'iron'=>6085,'crop'=>3245,'pop'=>3,'cp'=>74,'attri'=>48,'time'=>34030),array('wood'=>9345,'clay'=>6750,'iron'=>7790,'crop'=>4155,'pop'=>3,'cp'=>89,'attri'=>51,'time'=>39770),array('wood'=>11965,'clay'=>8640,'iron'=>9970,'crop'=>5315,'pop'=>3,'cp'=>106,'attri'=>54,'time'=>46440),array('wood'=>15315,'clay'=>11060,'iron'=>12760,'crop'=>6805,'pop'=>3,'cp'=>128,'attri'=>57,'time'=>54170),array('wood'=>19600,'clay'=>14155,'iron'=>16335,'crop'=>8710,'pop'=>3,'cp'=>153,'attri'=>60,'time'=>63130)); +$bid19=array(1=>array('wood'=>210,'clay'=>140,'iron'=>260,'crop'=>120,'pop'=>4,'cp'=>1,'attri'=>100,'time'=>2000),array('wood'=>270,'clay'=>180,'iron'=>335,'crop'=>155,'pop'=>2,'cp'=>1,'attri'=>90,'time'=>2620),array('wood'=>345,'clay'=>230,'iron'=>425,'crop'=>195,'pop'=>2,'cp'=>2,'attri'=>81,'time'=>3340),array('wood'=>440,'clay'=>295,'iron'=>545,'crop'=>250,'pop'=>2,'cp'=>2,'attri'=>72.9,'time'=>4170),array('wood'=>565,'clay'=>375,'iron'=>700,'crop'=>320,'pop'=>2,'cp'=>2,'attri'=>65.61,'time'=>5140),array('wood'=>720,'clay'=>480,'iron'=>895,'crop'=>410,'pop'=>3,'cp'=>3,'attri'=>59.05,'time'=>6260),array('wood'=>925,'clay'=>615,'iron'=>1145,'crop'=>530,'pop'=>3,'cp'=>4,'attri'=>53.14,'time'=>7570),array('wood'=>1180,'clay'=>790,'iron'=>1465,'crop'=>675,'pop'=>3,'cp'=>4,'attri'=>47.83,'time'=>9080),array('wood'=>1515,'clay'=>1010,'iron'=>1875,'crop'=>865,'pop'=>3,'cp'=>5,'attri'=>43.05,'time'=>10830),array('wood'=>1935,'clay'=>1290,'iron'=>2400,'crop'=>1105,'pop'=>3,'cp'=>6,'attri'=>38.74,'time'=>12860),array('wood'=>2480,'clay'=>1655,'iron'=>3070,'crop'=>1415,'pop'=>3,'cp'=>7,'attri'=>34.87,'time'=>15220),array('wood'=>3175,'clay'=>2115,'iron'=>3930,'crop'=>1815,'pop'=>3,'cp'=>9,'attri'=>31.38,'time'=>17950),array('wood'=>4060,'clay'=>2710,'iron'=>5030,'crop'=>2320,'pop'=>3,'cp'=>11,'attri'=>28.24,'time'=>21130),array('wood'=>5200,'clay'=>3465,'iron'=>6435,'crop'=>2970,'pop'=>3,'cp'=>13,'attri'=>25.42,'time'=>24810),array('wood'=>6655,'clay'=>4435,'iron'=>8240,'crop'=>3805,'pop'=>3,'cp'=>15,'attri'=>22.88,'time'=>29080),array('wood'=>8520,'clay'=>5680,'iron'=>10545,'crop'=>4870,'pop'=>4,'cp'=>18,'attri'=>20.59,'time'=>34030),array('wood'=>10905,'clay'=>7270,'iron'=>13500,'crop'=>6230,'pop'=>4,'cp'=>22,'attri'=>18.53,'time'=>39770),array('wood'=>13955,'clay'=>9305,'iron'=>17280,'crop'=>7975,'pop'=>4,'cp'=>27,'attri'=>16.68,'time'=>46440),array('wood'=>17865,'clay'=>11910,'iron'=>22120,'crop'=>10210,'pop'=>4,'cp'=>32,'attri'=>15.01,'time'=>54170),array('wood'=>22865,'clay'=>15245,'iron'=>28310,'crop'=>13065,'pop'=>4,'cp'=>38,'attri'=>13.51,'time'=>63130)); +$bid20=array(1=>array('wood'=>260,'clay'=>140,'iron'=>220,'crop'=>100,'pop'=>5,'cp'=>2,'attri'=>100,'time'=>2200),array('wood'=>335,'clay'=>180,'iron'=>280,'crop'=>130,'pop'=>3,'cp'=>3,'attri'=>90,'time'=>2850),array('wood'=>425,'clay'=>230,'iron'=>360,'crop'=>165,'pop'=>3,'cp'=>3,'attri'=>81,'time'=>3610),array('wood'=>545,'clay'=>295,'iron'=>460,'crop'=>210,'pop'=>3,'cp'=>4,'attri'=>72.9,'time'=>4490),array('wood'=>700,'clay'=>375,'iron'=>590,'crop'=>270,'pop'=>3,'cp'=>5,'attri'=>65.61,'time'=>5500),array('wood'=>895,'clay'=>480,'iron'=>755,'crop'=>345,'pop'=>3,'cp'=>6,'attri'=>59.05,'time'=>6680),array('wood'=>1145,'clay'=>615,'iron'=>970,'crop'=>440,'pop'=>3,'cp'=>7,'attri'=>53.14,'time'=>8050),array('wood'=>1465,'clay'=>790,'iron'=>1240,'crop'=>565,'pop'=>3,'cp'=>9,'attri'=>47.83,'time'=>9640),array('wood'=>1875,'clay'=>1010,'iron'=>1585,'crop'=>720,'pop'=>3,'cp'=>10,'attri'=>43.05,'time'=>11480),array('wood'=>2400,'clay'=>1290,'iron'=>2030,'crop'=>920,'pop'=>3,'cp'=>12,'attri'=>38.74,'time'=>13620),array('wood'=>3070,'clay'=>1655,'iron'=>2595,'crop'=>1180,'pop'=>4,'cp'=>15,'attri'=>34.87,'time'=>16100),array('wood'=>3930,'clay'=>2115,'iron'=>3325,'crop'=>1510,'pop'=>4,'cp'=>18,'attri'=>31.38,'time'=>18980),array('wood'=>5030,'clay'=>2710,'iron'=>4255,'crop'=>1935,'pop'=>4,'cp'=>21,'attri'=>28.24,'time'=>22310),array('wood'=>6435,'clay'=>3465,'iron'=>5445,'crop'=>2475,'pop'=>4,'cp'=>26,'attri'=>25.42,'time'=>26180),array('wood'=>8240,'clay'=>4435,'iron'=>6970,'crop'=>3170,'pop'=>4,'cp'=>31,'attri'=>22.88,'time'=>30670),array('wood'=>10545,'clay'=>5680,'iron'=>8925,'crop'=>4055,'pop'=>4,'cp'=>37,'attri'=>20.59,'time'=>35880),array('wood'=>13500,'clay'=>7270,'iron'=>11425,'crop'=>5190,'pop'=>4,'cp'=>44,'attri'=>18.53,'time'=>41920),array('wood'=>17280,'clay'=>9305,'iron'=>14620,'crop'=>6645,'pop'=>4,'cp'=>53,'attri'=>16.68,'time'=>48930),array('wood'=>22120,'clay'=>11910,'iron'=>18715,'crop'=>8505,'pop'=>4,'cp'=>64,'attri'=>15.01,'time'=>57060),array('wood'=>28310,'clay'=>15245,'iron'=>23955,'crop'=>10890,'pop'=>4,'cp'=>77,'attri'=>13.51,'time'=>66490)); +$bid21=array(1=>array('wood'=>460,'clay'=>510,'iron'=>600,'crop'=>320,'pop'=>3,'cp'=>4,'attri'=>100,'time'=>3000),array('wood'=>590,'clay'=>655,'iron'=>770,'crop'=>410,'pop'=>2,'cp'=>4,'attri'=>90,'time'=>3780),array('wood'=>755,'clay'=>835,'iron'=>985,'crop'=>525,'pop'=>2,'cp'=>5,'attri'=>81,'time'=>4680),array('wood'=>965,'clay'=>1070,'iron'=>1260,'crop'=>670,'pop'=>2,'cp'=>6,'attri'=>72.9,'time'=>5730),array('wood'=>1235,'clay'=>1370,'iron'=>1610,'crop'=>860,'pop'=>2,'cp'=>7,'attri'=>65.61,'time'=>6950),array('wood'=>1580,'clay'=>1750,'iron'=>2060,'crop'=>1100,'pop'=>2,'cp'=>9,'attri'=>59.05,'time'=>8360),array('wood'=>2025,'clay'=>2245,'iron'=>2640,'crop'=>1405,'pop'=>2,'cp'=>11,'attri'=>53.14,'time'=>10000),array('wood'=>2590,'clay'=>2870,'iron'=>3380,'crop'=>1800,'pop'=>2,'cp'=>13,'attri'=>47.83,'time'=>11900),array('wood'=>3315,'clay'=>3675,'iron'=>4325,'crop'=>2305,'pop'=>2,'cp'=>15,'attri'=>43.05,'time'=>14110),array('wood'=>4245,'clay'=>4705,'iron'=>5535,'crop'=>2950,'pop'=>2,'cp'=>19,'attri'=>38.74,'time'=>16660),array('wood'=>5430,'clay'=>6020,'iron'=>7085,'crop'=>3780,'pop'=>3,'cp'=>22,'attri'=>34.87,'time'=>19630),array('wood'=>6950,'clay'=>7705,'iron'=>9065,'crop'=>4835,'pop'=>3,'cp'=>27,'attri'=>31.38,'time'=>23070),array('wood'=>8900,'clay'=>9865,'iron'=>11605,'crop'=>6190,'pop'=>3,'cp'=>32,'attri'=>28.24,'time'=>27060),array('wood'=>11390,'clay'=>12625,'iron'=>14855,'crop'=>7925,'pop'=>3,'cp'=>39,'attri'=>25.42,'time'=>31690),array('wood'=>14580,'clay'=>16165,'iron'=>19015,'crop'=>10140,'pop'=>3,'cp'=>46,'attri'=>22.88,'time'=>37060),array('wood'=>18660,'clay'=>20690,'iron'=>24340,'crop'=>12980,'pop'=>3,'cp'=>55,'attri'=>20.59,'time'=>43290),array('wood'=>23885,'clay'=>26480,'iron'=>31155,'crop'=>16615,'pop'=>3,'cp'=>67,'attri'=>18.53,'time'=>50520),array('wood'=>30570,'clay'=>33895,'iron'=>39875,'crop'=>21270,'pop'=>3,'cp'=>80,'attri'=>16.68,'time'=>58900),array('wood'=>39130,'clay'=>43385,'iron'=>51040,'crop'=>27225,'pop'=>3,'cp'=>96,'attri'=>15.01,'time'=>68630),array('wood'=>50090,'clay'=>55535,'iron'=>65335,'crop'=>34845,'pop'=>3,'cp'=>115,'attri'=>13.51,'time'=>79910)); +$bid22=array(1=>array('wood'=>220,'clay'=>160,'iron'=>90,'crop'=>40,'pop'=>4,'cp'=>5,'attri'=>0,'time'=>2000),array('wood'=>280,'clay'=>205,'iron'=>115,'crop'=>50,'pop'=>2,'cp'=>6,'attri'=>0,'time'=>2620),array('wood'=>360,'clay'=>260,'iron'=>145,'crop'=>65,'pop'=>2,'cp'=>7,'attri'=>0,'time'=>3340),array('wood'=>460,'clay'=>335,'iron'=>190,'crop'=>85,'pop'=>2,'cp'=>8,'attri'=>0,'time'=>4170),array('wood'=>590,'clay'=>430,'iron'=>240,'crop'=>105,'pop'=>2,'cp'=>10,'attri'=>0,'time'=>5140),array('wood'=>755,'clay'=>550,'iron'=>310,'crop'=>135,'pop'=>3,'cp'=>12,'attri'=>0,'time'=>6260),array('wood'=>970,'clay'=>705,'iron'=>395,'crop'=>175,'pop'=>3,'cp'=>14,'attri'=>0,'time'=>7570),array('wood'=>1240,'clay'=>900,'iron'=>505,'crop'=>225,'pop'=>3,'cp'=>17,'attri'=>0,'time'=>9080),array('wood'=>1585,'clay'=>1155,'iron'=>650,'crop'=>290,'pop'=>3,'cp'=>21,'attri'=>0,'time'=>10830),array('wood'=>2030,'clay'=>1475,'iron'=>830,'crop'=>370,'pop'=>3,'cp'=>25,'attri'=>0,'time'=>12860),array('wood'=>2595,'clay'=>1890,'iron'=>1065,'crop'=>470,'pop'=>3,'cp'=>30,'attri'=>0,'time'=>15220),array('wood'=>3325,'clay'=>2420,'iron'=>1360,'crop'=>605,'pop'=>3,'cp'=>36,'attri'=>0,'time'=>17950),array('wood'=>4255,'clay'=>3095,'iron'=>1740,'crop'=>775,'pop'=>3,'cp'=>43,'attri'=>0,'time'=>21130),array('wood'=>5445,'clay'=>3960,'iron'=>2230,'crop'=>990,'pop'=>3,'cp'=>51,'attri'=>0,'time'=>24810),array('wood'=>6970,'clay'=>5070,'iron'=>2850,'crop'=>1270,'pop'=>3,'cp'=>62,'attri'=>0,'time'=>29080),array('wood'=>8925,'clay'=>6490,'iron'=>3650,'crop'=>1625,'pop'=>4,'cp'=>74,'attri'=>0,'time'=>34030),array('wood'=>11425,'clay'=>8310,'iron'=>4675,'crop'=>2075,'pop'=>4,'cp'=>89,'attri'=>0,'time'=>39770),array('wood'=>14620,'clay'=>10635,'iron'=>5980,'crop'=>2660,'pop'=>4,'cp'=>106,'attri'=>0,'time'=>46440),array('wood'=>18715,'clay'=>13610,'iron'=>7655,'crop'=>3405,'pop'=>4,'cp'=>128,'attri'=>0,'time'=>54170),array('wood'=>23955,'clay'=>17420,'iron'=>9800,'crop'=>4355,'pop'=>4,'cp'=>153,'attri'=>0,'time'=>63130)); +$bid23=array(1=>array('wood'=>40,'clay'=>50,'iron'=>30,'crop'=>10,'pop'=>0,'cp'=>1,'attri'=>100,'time'=>750),array('wood'=>50,'clay'=>65,'iron'=>40,'crop'=>15,'pop'=>0,'cp'=>1,'attri'=>130,'time'=>1170),array('wood'=>65,'clay'=>80,'iron'=>50,'crop'=>15,'pop'=>0,'cp'=>2,'attri'=>170,'time'=>1660),array('wood'=>85,'clay'=>105,'iron'=>65,'crop'=>20,'pop'=>0,'cp'=>2,'attri'=>220,'time'=>2220),array('wood'=>105,'clay'=>135,'iron'=>80,'crop'=>25,'pop'=>0,'cp'=>2,'attri'=>280,'time'=>2880),array('wood'=>135,'clay'=>170,'iron'=>105,'crop'=>35,'pop'=>1,'cp'=>3,'attri'=>360,'time'=>3640),array('wood'=>175,'clay'=>220,'iron'=>130,'crop'=>45,'pop'=>1,'cp'=>4,'attri'=>460,'time'=>4520),array('wood'=>225,'clay'=>280,'iron'=>170,'crop'=>55,'pop'=>1,'cp'=>4,'attri'=>600,'time'=>5540),array('wood'=>290,'clay'=>360,'iron'=>215,'crop'=>70,'pop'=>1,'cp'=>5,'attri'=>770,'time'=>6730),array('wood'=>370,'clay'=>460,'iron'=>275,'crop'=>90,'pop'=>1,'cp'=>6,'attri'=>1000,'time'=>8110)); +$bid24=array(1=>array('wood'=>1250,'clay'=>1110,'iron'=>1260,'crop'=>600,'pop'=>4,'cp'=>6,'attri'=>0,'time'=>12500),array('wood'=>1600,'clay'=>1420,'iron'=>1615,'crop'=>770,'pop'=>2,'cp'=>7,'attri'=>0,'time'=>14800),array('wood'=>2050,'clay'=>1820,'iron'=>2065,'crop'=>985,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>17470),array('wood'=>2620,'clay'=>2330,'iron'=>2640,'crop'=>1260,'pop'=>2,'cp'=>10,'attri'=>0,'time'=>20560),array('wood'=>3355,'clay'=>2980,'iron'=>3380,'crop'=>1610,'pop'=>2,'cp'=>12,'attri'=>0,'time'=>24150),array('wood'=>4295,'clay'=>3815,'iron'=>4330,'crop'=>2060,'pop'=>3,'cp'=>15,'attri'=>0,'time'=>28320),array('wood'=>5500,'clay'=>4880,'iron'=>5540,'crop'=>2640,'pop'=>3,'cp'=>18,'attri'=>0,'time'=>33150),array('wood'=>7035,'clay'=>6250,'iron'=>7095,'crop'=>3380,'pop'=>3,'cp'=>21,'attri'=>0,'time'=>38750),array('wood'=>9005,'clay'=>8000,'iron'=>9080,'crop'=>4325,'pop'=>3,'cp'=>26,'attri'=>0,'time'=>45250),array('wood'=>11530,'clay'=>10240,'iron'=>11620,'crop'=>5535,'pop'=>3,'cp'=>31,'attri'=>0,'time'=>52790),array('wood'=>14755,'clay'=>13105,'iron'=>14875,'crop'=>7085,'pop'=>3,'cp'=>37,'attri'=>0,'time'=>61540),array('wood'=>18890,'clay'=>16775,'iron'=>19040,'crop'=>9065,'pop'=>3,'cp'=>45,'attri'=>0,'time'=>71690),array('wood'=>24180,'clay'=>21470,'iron'=>24370,'crop'=>11605,'pop'=>3,'cp'=>53,'attri'=>0,'time'=>83460),array('wood'=>30950,'clay'=>27480,'iron'=>31195,'crop'=>14855,'pop'=>3,'cp'=>64,'attri'=>0,'time'=>97110),array('wood'=>39615,'clay'=>35175,'iron'=>39930,'crop'=>19015,'pop'=>3,'cp'=>77,'attri'=>0,'time'=>112950),array('wood'=>50705,'clay'=>45025,'iron'=>51110,'crop'=>24340,'pop'=>4,'cp'=>92,'attri'=>0,'time'=>131320),array('wood'=>64905,'clay'=>57635,'iron'=>65425,'crop'=>31155,'pop'=>4,'cp'=>111,'attri'=>0,'time'=>152630),array('wood'=>83075,'clay'=>73770,'iron'=>83740,'crop'=>39875,'pop'=>4,'cp'=>133,'attri'=>0,'time'=>177350),array('wood'=>106340,'clay'=>94430,'iron'=>107190,'crop'=>51040,'pop'=>4,'cp'=>160,'attri'=>0,'time'=>206020),array('wood'=>136115,'clay'=>120870,'iron'=>137200,'crop'=>65335,'pop'=>4,'cp'=>192,'attri'=>0,'time'=>239290)); +$bid25=array(1=>array('wood'=>580,'clay'=>460,'iron'=>350,'crop'=>180,'pop'=>1,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>740,'clay'=>590,'iron'=>450,'crop'=>230,'pop'=>1,'cp'=>3,'attri'=>90,'time'=>2620),array('wood'=>950,'clay'=>755,'iron'=>575,'crop'=>295,'pop'=>1,'cp'=>3,'attri'=>81,'time'=>3340),array('wood'=>1215,'clay'=>965,'iron'=>735,'crop'=>375,'pop'=>1,'cp'=>4,'attri'=>72.9,'time'=>4170),array('wood'=>1555,'clay'=>1235,'iron'=>940,'crop'=>485,'pop'=>1,'cp'=>5,'attri'=>65.61,'time'=>5140),array('wood'=>1995,'clay'=>1580,'iron'=>1205,'crop'=>620,'pop'=>1,'cp'=>6,'attri'=>59.05,'time'=>6260),array('wood'=>2550,'clay'=>2025,'iron'=>1540,'crop'=>790,'pop'=>1,'cp'=>7,'attri'=>53.14,'time'=>7570),array('wood'=>3265,'clay'=>2590,'iron'=>1970,'crop'=>1015,'pop'=>1,'cp'=>9,'attri'=>47.83,'time'=>9080),array('wood'=>4180,'clay'=>3315,'iron'=>2520,'crop'=>1295,'pop'=>1,'cp'=>10,'attri'=>43.05,'time'=>10830),array('wood'=>5350,'clay'=>4245,'iron'=>3230,'crop'=>1660,'pop'=>1,'cp'=>12,'attri'=>38.74,'time'=>12860),array('wood'=>6845,'clay'=>5430,'iron'=>4130,'crop'=>2125,'pop'=>2,'cp'=>15,'attri'=>34.87,'time'=>15220),array('wood'=>8765,'clay'=>6950,'iron'=>5290,'crop'=>2720,'pop'=>2,'cp'=>18,'attri'=>31.38,'time'=>17950),array('wood'=>11220,'clay'=>8900,'iron'=>6770,'crop'=>3480,'pop'=>2,'cp'=>21,'attri'=>28.24,'time'=>21130),array('wood'=>14360,'clay'=>11390,'iron'=>8665,'crop'=>4455,'pop'=>2,'cp'=>26,'attri'=>25.42,'time'=>24810),array('wood'=>18380,'clay'=>14580,'iron'=>11090,'crop'=>5705,'pop'=>2,'cp'=>31,'attri'=>22.88,'time'=>29080),array('wood'=>23530,'clay'=>18660,'iron'=>14200,'crop'=>7300,'pop'=>2,'cp'=>37,'attri'=>20.59,'time'=>34030),array('wood'=>30115,'clay'=>23885,'iron'=>18175,'crop'=>9345,'pop'=>2,'cp'=>44,'attri'=>18.53,'time'=>39770),array('wood'=>38550,'clay'=>30570,'iron'=>23260,'crop'=>11965,'pop'=>2,'cp'=>53,'attri'=>16.68,'time'=>46440),array('wood'=>49340,'clay'=>39130,'iron'=>29775,'crop'=>15315,'pop'=>2,'cp'=>64,'attri'=>15.01,'time'=>54170),array('wood'=>63155,'clay'=>50090,'iron'=>38110,'crop'=>19600,'pop'=>2,'cp'=>77,'attri'=>13.51,'time'=>63130)); +$bid26=array(1=>array('wood'=>550,'clay'=>800,'iron'=>750,'crop'=>250,'pop'=>1,'cp'=>6,'attri'=>100,'time'=>5000),array('wood'=>705,'clay'=>1025,'iron'=>960,'crop'=>320,'pop'=>1,'cp'=>7,'attri'=>90,'time'=>6100),array('wood'=>900,'clay'=>1310,'iron'=>1230,'crop'=>410,'pop'=>1,'cp'=>9,'attri'=>81,'time'=>7380),array('wood'=>1155,'clay'=>1680,'iron'=>1575,'crop'=>525,'pop'=>1,'cp'=>10,'attri'=>72.9,'time'=>8860),array('wood'=>1475,'clay'=>2145,'iron'=>2015,'crop'=>670,'pop'=>1,'cp'=>12,'attri'=>65.61,'time'=>10570),array('wood'=>1890,'clay'=>2750,'iron'=>2575,'crop'=>860,'pop'=>1,'cp'=>15,'attri'=>59.05,'time'=>12560),array('wood'=>2420,'clay'=>3520,'iron'=>3300,'crop'=>1100,'pop'=>1,'cp'=>18,'attri'=>53.14,'time'=>14880),array('wood'=>3095,'clay'=>4505,'iron'=>4220,'crop'=>1405,'pop'=>1,'cp'=>21,'attri'=>47.83,'time'=>17560),array('wood'=>3965,'clay'=>5765,'iron'=>5405,'crop'=>1800,'pop'=>1,'cp'=>26,'attri'=>43.05,'time'=>20660),array('wood'=>5075,'clay'=>7380,'iron'=>6920,'crop'=>2305,'pop'=>1,'cp'=>31,'attri'=>38.74,'time'=>24270),array('wood'=>6495,'clay'=>9445,'iron'=>8855,'crop'=>2950,'pop'=>2,'cp'=>37,'attri'=>34.87,'time'=>28450),array('wood'=>8310,'clay'=>12090,'iron'=>11335,'crop'=>3780,'pop'=>2,'cp'=>45,'attri'=>31.38,'time'=>33310),array('wood'=>10640,'clay'=>15475,'iron'=>14505,'crop'=>4835,'pop'=>2,'cp'=>53,'attri'=>28.24,'time'=>38940),array('wood'=>13615,'clay'=>19805,'iron'=>18570,'crop'=>6190,'pop'=>2,'cp'=>64,'attri'=>25.42,'time'=>45460),array('wood'=>17430,'clay'=>25355,'iron'=>23770,'crop'=>7925,'pop'=>2,'cp'=>77,'attri'=>22.88,'time'=>53040),array('wood'=>22310,'clay'=>32450,'iron'=>30425,'crop'=>10140,'pop'=>2,'cp'=>92,'attri'=>20.59,'time'=>61830),array('wood'=>28560,'clay'=>41540,'iron'=>38940,'crop'=>12980,'pop'=>2,'cp'=>111,'attri'=>18.53,'time'=>72020),array('wood'=>36555,'clay'=>53170,'iron'=>49845,'crop'=>16615,'pop'=>2,'cp'=>133,'attri'=>16.68,'time'=>83840),array('wood'=>46790,'clay'=>68055,'iron'=>63805,'crop'=>21270,'pop'=>2,'cp'=>160,'attri'=>15.01,'time'=>97550),array('wood'=>59890,'clay'=>87110,'iron'=>81670,'crop'=>27225,'pop'=>2,'cp'=>192,'attri'=>13.51,'time'=>113460)); +$bid27=array(1=>array('wood'=>2880,'clay'=>2740,'iron'=>2580,'crop'=>990,'pop'=>4,'cp'=>7,'attri'=>0,'time'=>8000),array('wood'=>3630,'clay'=>3450,'iron'=>3250,'crop'=>1245,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>9580),array('wood'=>4570,'clay'=>4350,'iron'=>4095,'crop'=>1570,'pop'=>2,'cp'=>10,'attri'=>0,'time'=>11410),array('wood'=>5760,'clay'=>5480,'iron'=>5160,'crop'=>1980,'pop'=>2,'cp'=>12,'attri'=>0,'time'=>13540),array('wood'=>7260,'clay'=>6905,'iron'=>6505,'crop'=>2495,'pop'=>2,'cp'=>15,'attri'=>0,'time'=>16010),array('wood'=>9145,'clay'=>8700,'iron'=>8195,'crop'=>3145,'pop'=>3,'cp'=>18,'attri'=>0,'time'=>18870),array('wood'=>11525,'clay'=>10965,'iron'=>10325,'crop'=>3960,'pop'=>3,'cp'=>21,'attri'=>0,'time'=>22180),array('wood'=>14520,'clay'=>13815,'iron'=>13010,'crop'=>4990,'pop'=>3,'cp'=>26,'attri'=>0,'time'=>26030),array('wood'=>18295,'clay'=>17405,'iron'=>16390,'crop'=>6290,'pop'=>3,'cp'=>31,'attri'=>0,'time'=>30500),array('wood'=>23055,'clay'=>21930,'iron'=>20650,'crop'=>7925,'pop'=>3,'cp'=>37,'attri'=>1,'time'=>35680),array('wood'=>9045,'clay'=>27635,'iron'=>26020,'crop'=>9985,'pop'=>3,'cp'=>45,'attri'=>1,'time'=>41690),array('wood'=>6600,'clay'=>34820,'iron'=>32785,'crop'=>12580,'pop'=>3,'cp'=>53,'attri'=>1,'time'=>48660),array('wood'=>46115,'clay'=>43875,'iron'=>41310,'crop'=>15850,'pop'=>3,'cp'=>64,'attri'=>1,'time'=>56740),array('wood'=>58105,'clay'=>55280,'iron'=>52050,'crop'=>19975,'pop'=>3,'cp'=>77,'attri'=>1,'time'=>66120),array('wood'=>73210,'clay'=>69655,'iron'=>65585,'crop'=>25165,'pop'=>3,'cp'=>92,'attri'=>1,'time'=>77000),array('wood'=>92245,'clay'=>87760,'iron'=>82640,'crop'=>31710,'pop'=>4,'cp'=>111,'attri'=>1,'time'=>89620),array('wood'=>116230,'clay'=>110580,'iron'=>104125,'crop'=>39955,'pop'=>4,'cp'=>133,'attri'=>1,'time'=>104260),array('wood'=>146450,'clay'=>139330,'iron'=>131195,'crop'=>50340,'pop'=>4,'cp'=>160,'attri'=>1,'time'=>121240),array('wood'=>184530,'clay'=>175560,'iron'=>165305,'crop'=>63430,'pop'=>4,'cp'=>192,'attri'=>1,'time'=>140940),array('wood'=>232505,'clay'=>221205,'iron'=>208285,'crop'=>79925,'pop'=>4,'cp'=>230,'attri'=>1,'time'=>163790)); +$bid28=array(1=>array('wood'=>1400,'clay'=>1330,'iron'=>1200,'crop'=>400,'pop'=>3,'cp'=>4,'attri'=>110,'time'=>3000),array('wood'=>1790,'clay'=>1700,'iron'=>1535,'crop'=>510,'pop'=>2,'cp'=>4,'attri'=>120,'time'=>3780),array('wood'=>2295,'clay'=>2180,'iron'=>1965,'crop'=>655,'pop'=>2,'cp'=>5,'attri'=>130,'time'=>4680),array('wood'=>2935,'clay'=>2790,'iron'=>2515,'crop'=>840,'pop'=>2,'cp'=>6,'attri'=>140,'time'=>5730),array('wood'=>3760,'clay'=>3570,'iron'=>3220,'crop'=>1075,'pop'=>2,'cp'=>7,'attri'=>150,'time'=>6950),array('wood'=>4810,'clay'=>4570,'iron'=>4125,'crop'=>1375,'pop'=>2,'cp'=>9,'attri'=>160,'time'=>8360),array('wood'=>6155,'clay'=>5850,'iron'=>5280,'crop'=>1760,'pop'=>2,'cp'=>11,'attri'=>170,'time'=>10000),array('wood'=>7880,'clay'=>7485,'iron'=>6755,'crop'=>2250,'pop'=>2,'cp'=>13,'attri'=>180,'time'=>11900),array('wood'=>10090,'clay'=>9585,'iron'=>8645,'crop'=>2880,'pop'=>2,'cp'=>15,'attri'=>190,'time'=>14110),array('wood'=>12915,'clay'=>12265,'iron'=>11070,'crop'=>3690,'pop'=>2,'cp'=>19,'attri'=>200,'time'=>16660),array('wood'=>16530,'clay'=>15700,'iron'=>14165,'crop'=>4720,'pop'=>3,'cp'=>22,'attri'=>210,'time'=>19630),array('wood'=>21155,'clay'=>20100,'iron'=>18135,'crop'=>6045,'pop'=>3,'cp'=>27,'attri'=>220,'time'=>23070),array('wood'=>27080,'clay'=>25725,'iron'=>23210,'crop'=>7735,'pop'=>3,'cp'=>32,'attri'=>230,'time'=>27060),array('wood'=>4660,'clay'=>32930,'iron'=>29710,'crop'=>9905,'pop'=>3,'cp'=>39,'attri'=>240,'time'=>31690),array('wood'=>44370,'clay'=>42150,'iron'=>38030,'crop'=>12675,'pop'=>3,'cp'=>46,'attri'=>250,'time'=>37060),array('wood'=>56790,'clay'=>53950,'iron'=>48680,'crop'=>16225,'pop'=>3,'cp'=>55,'attri'=>260,'time'=>43290),array('wood'=>72690,'clay'=>69060,'iron'=>62310,'crop'=>20770,'pop'=>3,'cp'=>67,'attri'=>270,'time'=>50520),array('wood'=>93045,'clay'=>88395,'iron'=>79755,'crop'=>26585,'pop'=>3,'cp'=>80,'attri'=>280,'time'=>58900),array('wood'=>119100,'clay'=>113145,'iron'=>102085,'crop'=>34030,'pop'=>3,'cp'=>96,'attri'=>290,'time'=>68630),array('wood'=>152445,'clay'=>144825,'iron'=>130670,'crop'=>43555,'pop'=>3,'cp'=>115,'attri'=>300,'time'=>79910)); +$bid29=array(1=>array('wood'=>630,'clay'=>420,'iron'=>780,'crop'=>360,'pop'=>4,'cp'=>1,'attri'=>100,'time'=>2000),array('wood'=>805,'clay'=>540,'iron'=>1000,'crop'=>460,'pop'=>2,'cp'=>1,'attri'=>90,'time'=>2620),array('wood'=>1030,'clay'=>690,'iron'=>1280,'crop'=>590,'pop'=>2,'cp'=>2,'attri'=>81,'time'=>3340),array('wood'=>1320,'clay'=>880,'iron'=>1635,'crop'=>755,'pop'=>2,'cp'=>2,'attri'=>72.9,'time'=>4170),array('wood'=>1690,'clay'=>1125,'iron'=>2095,'crop'=>965,'pop'=>2,'cp'=>2,'attri'=>65.61,'time'=>5140),array('wood'=>2165,'clay'=>1445,'iron'=>2680,'crop'=>1235,'pop'=>3,'cp'=>3,'attri'=>59.05,'time'=>6260),array('wood'=>2770,'clay'=>1845,'iron'=>3430,'crop'=>1585,'pop'=>3,'cp'=>4,'attri'=>53.14,'time'=>7570),array('wood'=>3545,'clay'=>2365,'iron'=>4390,'crop'=>2025,'pop'=>3,'cp'=>4,'attri'=>47.83,'time'=>9080),array('wood'=>4540,'clay'=>3025,'iron'=>5620,'crop'=>2595,'pop'=>3,'cp'=>5,'attri'=>43.05,'time'=>10830),array('wood'=>5810,'clay'=>3875,'iron'=>7195,'crop'=>3320,'pop'=>3,'cp'=>6,'attri'=>38.74,'time'=>12860),array('wood'=>7440,'clay'=>4960,'iron'=>9210,'crop'=>4250,'pop'=>3,'cp'=>7,'attri'=>34.87,'time'=>15220),array('wood'=>9520,'clay'=>6345,'iron'=>11785,'crop'=>5440,'pop'=>3,'cp'=>9,'attri'=>31.38,'time'=>17950),array('wood'=>12185,'clay'=>8125,'iron'=>15085,'crop'=>6965,'pop'=>3,'cp'=>11,'attri'=>28.24,'time'=>21130),array('wood'=>15600,'clay'=>10400,'iron'=>19310,'crop'=>8915,'pop'=>3,'cp'=>13,'attri'=>25.42,'time'=>24810),array('wood'=>19965,'clay'=>13310,'iron'=>24720,'crop'=>11410,'pop'=>3,'cp'=>15,'attri'=>22.88,'time'=>29080),array('wood'=>25555,'clay'=>17035,'iron'=>31640,'crop'=>14605,'pop'=>4,'cp'=>18,'attri'=>20.59,'time'=>34030),array('wood'=>32710,'clay'=>21810,'iron'=>40500,'crop'=>18690,'pop'=>4,'cp'=>22,'attri'=>18.53,'time'=>39770),array('wood'=>41870,'clay'=>27915,'iron'=>51840,'crop'=>23925,'pop'=>4,'cp'=>27,'attri'=>16.68,'time'=>46440),array('wood'=>53595,'clay'=>35730,'iron'=>66355,'crop'=>30625,'pop'=>4,'cp'=>32,'attri'=>15.01,'time'=>54170),array('wood'=>68600,'clay'=>45735,'iron'=>84935,'crop'=>39200,'pop'=>4,'cp'=>38,'attri'=>13.51,'time'=>63130)); +$bid30=array(1=>array('wood'=>780,'clay'=>420,'iron'=>660,'crop'=>300,'pop'=>5,'cp'=>2,'attri'=>100,'time'=>2200),array('wood'=>1000,'clay'=>540,'iron'=>845,'crop'=>385,'pop'=>3,'cp'=>3,'attri'=>90,'time'=>2850),array('wood'=>1280,'clay'=>690,'iron'=>1080,'crop'=>490,'pop'=>3,'cp'=>3,'attri'=>81,'time'=>3610),array('wood'=>1635,'clay'=>880,'iron'=>1385,'crop'=>630,'pop'=>3,'cp'=>4,'attri'=>72.9,'time'=>4490),array('wood'=>2095,'clay'=>1125,'iron'=>1770,'crop'=>805,'pop'=>3,'cp'=>5,'attri'=>65.61,'time'=>5500),array('wood'=>2680,'clay'=>1445,'iron'=>2270,'crop'=>1030,'pop'=>3,'cp'=>6,'attri'=>59.05,'time'=>6680),array('wood'=>3430,'clay'=>1845,'iron'=>2905,'crop'=>1320,'pop'=>3,'cp'=>7,'attri'=>53.14,'time'=>8050),array('wood'=>4390,'clay'=>2365,'iron'=>3715,'crop'=>1690,'pop'=>3,'cp'=>9,'attri'=>47.83,'time'=>9640),array('wood'=>5620,'clay'=>3025,'iron'=>4755,'crop'=>2160,'pop'=>3,'cp'=>10,'attri'=>43.05,'time'=>11480),array('wood'=>7195,'clay'=>3875,'iron'=>6085,'crop'=>2765,'pop'=>3,'cp'=>12,'attri'=>38.74,'time'=>13620),array('wood'=>9210,'clay'=>4960,'iron'=>7790,'crop'=>3540,'pop'=>4,'cp'=>15,'attri'=>34.87,'time'=>16100),array('wood'=>11785,'clay'=>6345,'iron'=>9975,'crop'=>4535,'pop'=>4,'cp'=>18,'attri'=>31.38,'time'=>18980),array('wood'=>15085,'clay'=>8125,'iron'=>12765,'crop'=>5805,'pop'=>4,'cp'=>21,'attri'=>28.24,'time'=>22310),array('wood'=>19310,'clay'=>10400,'iron'=>16340,'crop'=>7430,'pop'=>4,'cp'=>26,'attri'=>25.42,'time'=>26180),array('wood'=>24720,'clay'=>13310,'iron'=>20915,'crop'=>9505,'pop'=>4,'cp'=>31,'attri'=>22.88,'time'=>30670),array('wood'=>31640,'clay'=>17035,'iron'=>26775,'crop'=>12170,'pop'=>4,'cp'=>37,'attri'=>20.59,'time'=>35880),array('wood'=>40500,'clay'=>21810,'iron'=>34270,'crop'=>15575,'pop'=>4,'cp'=>44,'attri'=>18.53,'time'=>41920),array('wood'=>51840,'clay'=>27915,'iron'=>43865,'crop'=>19940,'pop'=>4,'cp'=>53,'attri'=>16.68,'time'=>48930),array('wood'=>66355,'clay'=>35730,'iron'=>56145,'crop'=>25520,'pop'=>4,'cp'=>64,'attri'=>15.01,'time'=>57060),array('wood'=>84935,'clay'=>45735,'iron'=>71870,'crop'=>32665,'pop'=>4,'cp'=>77,'attri'=>13.51,'time'=>66490)); +$bid31=array(1=>array('wood'=>70,'clay'=>90,'iron'=>170,'crop'=>70,'pop'=>0,'cp'=>1,'attri'=>3,'time'=>2000),array('wood'=>90,'clay'=>115,'iron'=>220,'crop'=>90,'pop'=>0,'cp'=>1,'attri'=>6,'time'=>2620),array('wood'=>115,'clay'=>145,'iron'=>280,'crop'=>115,'pop'=>0,'cp'=>2,'attri'=>9,'time'=>3340),array('wood'=>145,'clay'=>190,'iron'=>355,'crop'=>145,'pop'=>0,'cp'=>2,'attri'=>13,'time'=>4170),array('wood'=>190,'clay'=>240,'iron'=>455,'crop'=>190,'pop'=>0,'cp'=>2,'attri'=>16,'time'=>5140),array('wood'=>240,'clay'=>310,'iron'=>585,'crop'=>240,'pop'=>1,'cp'=>3,'attri'=>19,'time'=>6260),array('wood'=>310,'clay'=>395,'iron'=>750,'crop'=>310,'pop'=>1,'cp'=>4,'attri'=>23,'time'=>7570),array('wood'=>395,'clay'=>505,'iron'=>955,'crop'=>395,'pop'=>1,'cp'=>4,'attri'=>27,'time'=>9080),array('wood'=>505,'clay'=>650,'iron'=>1225,'crop'=>505,'pop'=>1,'cp'=>5,'attri'=>30,'time'=>10830),array('wood'=>645,'clay'=>830,'iron'=>1570,'crop'=>645,'pop'=>1,'cp'=>6,'attri'=>34,'time'=>12860),array('wood'=>825,'clay'=>1065,'iron'=>2005,'crop'=>825,'pop'=>1,'cp'=>7,'attri'=>38,'time'=>15220),array('wood'=>1060,'clay'=>1360,'iron'=>2570,'crop'=>1060,'pop'=>1,'cp'=>9,'attri'=>43,'time'=>17950),array('wood'=>1355,'clay'=>1740,'iron'=>3290,'crop'=>1355,'pop'=>1,'cp'=>11,'attri'=>47,'time'=>21130),array('wood'=>1735,'clay'=>2230,'iron'=>4210,'crop'=>1735,'pop'=>1,'cp'=>13,'attri'=>51,'time'=>24810),array('wood'=>2220,'clay'=>2850,'iron'=>5390,'crop'=>2220,'pop'=>1,'cp'=>15,'attri'=>56,'time'=>29080),array('wood'=>2840,'clay'=>3650,'iron'=>6895,'crop'=>2840,'pop'=>2,'cp'=>18,'attri'=>60,'time'=>34030),array('wood'=>3635,'clay'=>4675,'iron'=>8825,'crop'=>3635,'pop'=>2,'cp'=>22,'attri'=>65,'time'=>39770),array('wood'=>4650,'clay'=>5980,'iron'=>11300,'crop'=>4650,'pop'=>2,'cp'=>27,'attri'=>70,'time'=>46440),array('wood'=>5955,'clay'=>7655,'iron'=>14460,'crop'=>5955,'pop'=>2,'cp'=>32,'attri'=>75,'time'=>54170),array('wood'=>7620,'clay'=>9800,'iron'=>18510,'crop'=>7620,'pop'=>2,'cp'=>38,'attri'=>81,'time'=>63130)); +$bid32=array(1=>array('wood'=>120,'clay'=>200,'iron'=>0,'crop'=>80,'pop'=>0,'cp'=>1,'attri'=>2,'time'=>2000),array('wood'=>155,'clay'=>255,'iron'=>0,'crop'=>100,'pop'=>0,'cp'=>1,'attri'=>4,'time'=>2620),array('wood'=>195,'clay'=>330,'iron'=>0,'crop'=>130,'pop'=>0,'cp'=>2,'attri'=>6,'time'=>3340),array('wood'=>250,'clay'=>420,'iron'=>0,'crop'=>170,'pop'=>0,'cp'=>2,'attri'=>8,'time'=>4170),array('wood'=>320,'clay'=>535,'iron'=>0,'crop'=>215,'pop'=>0,'cp'=>2,'attri'=>10,'time'=>5140),array('wood'=>410,'clay'=>685,'iron'=>0,'crop'=>275,'pop'=>1,'cp'=>3,'attri'=>13,'time'=>6260),array('wood'=>530,'clay'=>880,'iron'=>0,'crop'=>350,'pop'=>1,'cp'=>4,'attri'=>15,'time'=>7570),array('wood'=>675,'clay'=>1125,'iron'=>0,'crop'=>450,'pop'=>1,'cp'=>4,'attri'=>17,'time'=>9080),array('wood'=>865,'clay'=>1440,'iron'=>0,'crop'=>575,'pop'=>1,'cp'=>5,'attri'=>20,'time'=>10830),array('wood'=>1105,'clay'=>1845,'iron'=>0,'crop'=>740,'pop'=>1,'cp'=>6,'attri'=>22,'time'=>12860),array('wood'=>1415,'clay'=>2360,'iron'=>0,'crop'=>945,'pop'=>1,'cp'=>7,'attri'=>24,'time'=>15220),array('wood'=>1815,'clay'=>3020,'iron'=>0,'crop'=>1210,'pop'=>1,'cp'=>9,'attri'=>27,'time'=>17950),array('wood'=>2320,'clay'=>3870,'iron'=>0,'crop'=>1545,'pop'=>1,'cp'=>11,'attri'=>29,'time'=>21130),array('wood'=>2970,'clay'=>4950,'iron'=>0,'crop'=>1980,'pop'=>1,'cp'=>13,'attri'=>32,'time'=>24810),array('wood'=>3805,'clay'=>6340,'iron'=>0,'crop'=>2535,'pop'=>1,'cp'=>15,'attri'=>35,'time'=>29080),array('wood'=>4870,'clay'=>8115,'iron'=>0,'crop'=>3245,'pop'=>2,'cp'=>18,'attri'=>37,'time'=>34030),array('wood'=>6230,'clay'=>10385,'iron'=>0,'crop'=>4155,'pop'=>2,'cp'=>22,'attri'=>40,'time'=>39770),array('wood'=>7975,'clay'=>13290,'iron'=>0,'crop'=>5315,'pop'=>2,'cp'=>27,'attri'=>43,'time'=>46440),array('wood'=>10210,'clay'=>17015,'iron'=>0,'crop'=>6805,'pop'=>2,'cp'=>32,'attri'=>46,'time'=>54170),array('wood'=>13065,'clay'=>21780,'iron'=>0,'crop'=>8710,'pop'=>2,'cp'=>38,'attri'=>49,'time'=>63130)); +$bid33=array(1=>array('wood'=>160,'clay'=>100,'iron'=>80,'crop'=>60,'pop'=>0,'cp'=>1,'attri'=>2,'time'=>2000),array('wood'=>205,'clay'=>130,'iron'=>100,'crop'=>75,'pop'=>0,'cp'=>1,'attri'=>5,'time'=>2620),array('wood'=>260,'clay'=>165,'iron'=>130,'crop'=>100,'pop'=>0,'cp'=>2,'attri'=>8,'time'=>3340),array('wood'=>335,'clay'=>210,'iron'=>170,'crop'=>125,'pop'=>0,'cp'=>2,'attri'=>10,'time'=>4170),array('wood'=>430,'clay'=>270,'iron'=>215,'crop'=>160,'pop'=>0,'cp'=>2,'attri'=>13,'time'=>5140),array('wood'=>550,'clay'=>345,'iron'=>275,'crop'=>205,'pop'=>1,'cp'=>3,'attri'=>16,'time'=>6260),array('wood'=>705,'clay'=>440,'iron'=>350,'crop'=>265,'pop'=>1,'cp'=>4,'attri'=>19,'time'=>7570),array('wood'=>900,'clay'=>565,'iron'=>450,'crop'=>340,'pop'=>1,'cp'=>4,'attri'=>22,'time'=>9080),array('wood'=>1155,'clay'=>720,'iron'=>575,'crop'=>430,'pop'=>1,'cp'=>5,'attri'=>25,'time'=>10830),array('wood'=>1475,'clay'=>920,'iron'=>740,'crop'=>555,'pop'=>1,'cp'=>6,'attri'=>28,'time'=>12860),array('wood'=>1890,'clay'=>1180,'iron'=>945,'crop'=>710,'pop'=>1,'cp'=>7,'attri'=>31,'time'=>15220),array('wood'=>2420,'clay'=>1510,'iron'=>1210,'crop'=>905,'pop'=>1,'cp'=>9,'attri'=>34,'time'=>17950),array('wood'=>3095,'clay'=>1935,'iron'=>1545,'crop'=>1160,'pop'=>1,'cp'=>11,'attri'=>38,'time'=>21130),array('wood'=>3960,'clay'=>2475,'iron'=>1980,'crop'=>1485,'pop'=>1,'cp'=>13,'attri'=>41,'time'=>24810),array('wood'=>5070,'clay'=>3170,'iron'=>2535,'crop'=>1900,'pop'=>1,'cp'=>15,'attri'=>45,'time'=>29080),array('wood'=>6490,'clay'=>4055,'iron'=>3245,'crop'=>2435,'pop'=>2,'cp'=>18,'attri'=>48,'time'=>34030),array('wood'=>8310,'clay'=>5190,'iron'=>4155,'crop'=>3115,'pop'=>2,'cp'=>22,'attri'=>52,'time'=>39770),array('wood'=>10635,'clay'=>6645,'iron'=>5315,'crop'=>3990,'pop'=>2,'cp'=>27,'attri'=>56,'time'=>46440),array('wood'=>13610,'clay'=>8505,'iron'=>6805,'crop'=>5105,'pop'=>2,'cp'=>32,'attri'=>60,'time'=>54170),array('wood'=>17420,'clay'=>10890,'iron'=>8710,'crop'=>6535,'pop'=>2,'cp'=>38,'attri'=>64,'time'=>63130)); +$bid34=array(1=>array('wood'=>155,'clay'=>130,'iron'=>125,'crop'=>70,'pop'=>2,'cp'=>1,'attri'=>110,'time'=>2200),array('wood'=>200,'clay'=>165,'iron'=>160,'crop'=>90,'pop'=>1,'cp'=>1,'attri'=>120,'time'=>3150),array('wood'=>255,'clay'=>215,'iron'=>205,'crop'=>115,'pop'=>1,'cp'=>2,'attri'=>130,'time'=>4260),array('wood'=>325,'clay'=>275,'iron'=>260,'crop'=>145,'pop'=>1,'cp'=>2,'attri'=>140,'time'=>5540),array('wood'=>415,'clay'=>350,'iron'=>335,'crop'=>190,'pop'=>1,'cp'=>2,'attri'=>150,'time'=>7020),array('wood'=>535,'clay'=>445,'iron'=>430,'crop'=>240,'pop'=>2,'cp'=>3,'attri'=>160,'time'=>8750),array('wood'=>680,'clay'=>570,'iron'=>550,'crop'=>310,'pop'=>2,'cp'=>4,'attri'=>170,'time'=>10750),array('wood'=>875,'clay'=>730,'iron'=>705,'crop'=>395,'pop'=>2,'cp'=>4,'attri'=>180,'time'=>13070),array('wood'=>1115,'clay'=>935,'iron'=>900,'crop'=>505,'pop'=>2,'cp'=>5,'attri'=>190,'time'=>15760),array('wood'=>1430,'clay'=>1200,'iron'=>1155,'crop'=>645,'pop'=>2,'cp'=>6,'attri'=>200,'time'=>18880),array('wood'=>1830,'clay'=>1535,'iron'=>1475,'crop'=>825,'pop'=>2,'cp'=>7,'attri'=>210,'time'=>22500),array('wood'=>2340,'clay'=>1965,'iron'=>1890,'crop'=>1060,'pop'=>2,'cp'=>9,'attri'=>220,'time'=>26700),array('wood'=>3000,'clay'=>2515,'iron'=>2420,'crop'=>1355,'pop'=>2,'cp'=>11,'attri'=>230,'time'=>31570),array('wood'=>3840,'clay'=>3220,'iron'=>3095,'crop'=>1735,'pop'=>2,'cp'=>13,'attri'=>240,'time'=>37220),array('wood'=>4910,'clay'=>4120,'iron'=>3960,'crop'=>2220,'pop'=>2,'cp'=>15,'attri'=>250,'time'=>43780),array('wood'=>6290,'clay'=>5275,'iron'=>5070,'crop'=>2840,'pop'=>3,'cp'=>18,'attri'=>260,'time'=>51380),array('wood'=>8050,'clay'=>6750,'iron'=>6490,'crop'=>3635,'pop'=>3,'cp'=>22,'attri'=>270,'time'=>60200),array('wood'=>10300,'clay'=>8640,'iron'=>8310,'crop'=>4650,'pop'=>3,'cp'=>27,'attri'=>280,'time'=>70430),array('wood'=>13185,'clay'=>11060,'iron'=>10635,'crop'=>5955,'pop'=>3,'cp'=>32,'attri'=>290,'time'=>82300),array('wood'=>16880,'clay'=>14155,'iron'=>13610,'crop'=>7620,'pop'=>3,'cp'=>38,'attri'=>300,'time'=>96070)); +$bid35=array(1=>array('wood'=>1460,'clay'=>930,'iron'=>1250,'crop'=>1740,'pop'=>6,'cp'=>5,'attri'=>0,'time'=>8000),array('wood'=>2045,'clay'=>1300,'iron'=>1750,'crop'=>2435,'pop'=>3,'cp'=>6,'attri'=>0,'time'=>9880),array('wood'=>2860,'clay'=>1825,'iron'=>2450,'crop'=>3410,'pop'=>3,'cp'=>7,'attri'=>0,'time'=>12060),array('wood'=>4005,'clay'=>2550,'iron'=>3430,'crop'=>4775,'pop'=>3,'cp'=>8,'attri'=>0,'time'=>14590),array('wood'=>5610,'clay'=>3575,'iron'=>4800,'crop'=>6685,'pop'=>3,'cp'=>10,'attri'=>0,'time'=>17530),array('wood'=>7850,'clay'=>5000,'iron'=>6725,'crop'=>9360,'pop'=>4,'cp'=>12,'attri'=>0,'time'=>20930),array('wood'=>10995,'clay'=>7000,'iron'=>9410,'crop'=>13100,'pop'=>4,'cp'=>14,'attri'=>0,'time'=>24880),array('wood'=>15390,'clay'=>9805,'iron'=>13175,'crop'=>18340,'pop'=>4,'cp'=>17,'attri'=>0,'time'=>29460),array('wood'=>21545,'clay'=>13725,'iron'=>18445,'crop'=>25680,'pop'=>4,'cp'=>21,'attri'=>0,'time'=>34770),array('wood'=>30165,'clay'=>19215,'iron'=>25825,'crop'=>35950,'pop'=>4,'cp'=>25,'attri'=>0,'time'=>40930)); +$bid36=array(1=>array('wood'=>100,'clay'=>100,'iron'=>100,'crop'=>100,'pop'=>4,'cp'=>1,'attri'=>10,'time'=>2000),array('wood'=>130,'clay'=>130,'iron'=>130,'crop'=>130,'pop'=>2,'cp'=>1,'attri'=>22,'time'=>2320),array('wood'=>165,'clay'=>165,'iron'=>165,'crop'=>165,'pop'=>2,'cp'=>2,'attri'=>35,'time'=>2690),array('wood'=>210,'clay'=>210,'iron'=>210,'crop'=>210,'pop'=>2,'cp'=>2,'attri'=>49,'time'=>3120),array('wood'=>270,'clay'=>270,'iron'=>270,'crop'=>270,'pop'=>2,'cp'=>2,'attri'=>64,'time'=>3620),array('wood'=>345,'clay'=>345,'iron'=>345,'crop'=>345,'pop'=>3,'cp'=>3,'attri'=>80,'time'=>4200),array('wood'=>440,'clay'=>440,'iron'=>440,'crop'=>440,'pop'=>3,'cp'=>4,'attri'=>97,'time'=>4870),array('wood'=>565,'clay'=>565,'iron'=>565,'crop'=>565,'pop'=>3,'cp'=>4,'attri'=>115,'time'=>5650),array('wood'=>720,'clay'=>720,'iron'=>720,'crop'=>720,'pop'=>3,'cp'=>5,'attri'=>134,'time'=>6560),array('wood'=>920,'clay'=>920,'iron'=>920,'crop'=>920,'pop'=>3,'cp'=>6,'attri'=>154,'time'=>7610),array('wood'=>1180,'clay'=>1180,'iron'=>1180,'crop'=>1180,'pop'=>3,'cp'=>7,'attri'=>175,'time'=>8820),array('wood'=>1510,'clay'=>1510,'iron'=>1510,'crop'=>1510,'pop'=>3,'cp'=>9,'attri'=>196,'time'=>10230),array('wood'=>1935,'clay'=>1935,'iron'=>1935,'crop'=>1935,'pop'=>3,'cp'=>11,'attri'=>218,'time'=>11870),array('wood'=>2475,'clay'=>2475,'iron'=>2475,'crop'=>2475,'pop'=>3,'cp'=>13,'attri'=>241,'time'=>13770),array('wood'=>3170,'clay'=>3170,'iron'=>3170,'crop'=>3170,'pop'=>3,'cp'=>15,'attri'=>265,'time'=>15980),array('wood'=>4055,'clay'=>4055,'iron'=>4055,'crop'=>4055,'pop'=>4,'cp'=>18,'attri'=>290,'time'=>18530),array('wood'=>5190,'clay'=>5190,'iron'=>5190,'crop'=>5190,'pop'=>4,'cp'=>22,'attri'=>316,'time'=>21500),array('wood'=>6645,'clay'=>6645,'iron'=>6645,'crop'=>6645,'pop'=>4,'cp'=>27,'attri'=>343,'time'=>24940),array('wood'=>8505,'clay'=>8505,'iron'=>8505,'crop'=>8505,'pop'=>4,'cp'=>32,'attri'=>371,'time'=>28930),array('wood'=>10890,'clay'=>10890,'iron'=>10890,'crop'=>10890,'pop'=>4,'cp'=>38,'attri'=>400,'time'=>33550)); +$bid37=array(1=>array('wood'=>700,'clay'=>670,'iron'=>700,'crop'=>240,'pop'=>2,'cp'=>1,'attri'=>0,'time'=>2300),array('wood'=>930,'clay'=>890,'iron'=>930,'crop'=>320,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>2670),array('wood'=>1240,'clay'=>1185,'iron'=>1240,'crop'=>425,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>3090),array('wood'=>1645,'clay'=>1575,'iron'=>1645,'crop'=>565,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>3590),array('wood'=>2190,'clay'=>2095,'iron'=>2190,'crop'=>750,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>4160),array('wood'=>2915,'clay'=>2790,'iron'=>2915,'crop'=>1000,'pop'=>2,'cp'=>3,'attri'=>0,'time'=>4830),array('wood'=>3875,'clay'=>3710,'iron'=>3875,'crop'=>1330,'pop'=>2,'cp'=>4,'attri'=>0,'time'=>5600),array('wood'=>5155,'clay'=>4930,'iron'=>5155,'crop'=>1765,'pop'=>2,'cp'=>4,'attri'=>0,'time'=>6500),array('wood'=>6855,'clay'=>6560,'iron'=>6855,'crop'=>2350,'pop'=>2,'cp'=>5,'attri'=>0,'time'=>7540),array('wood'=>9115,'clay'=>8725,'iron'=>9115,'crop'=>3125,'pop'=>2,'cp'=>6,'attri'=>1,'time'=>8750),array('wood'=>12125,'clay'=>11605,'iron'=>12125,'crop'=>4155,'pop'=>2,'cp'=>7,'attri'=>1,'time'=>10150),array('wood'=>16125,'clay'=>15435,'iron'=>16125,'crop'=>5530,'pop'=>2,'cp'=>9,'attri'=>1,'time'=>11770),array('wood'=>21445,'clay'=>20525,'iron'=>21445,'crop'=>7350,'pop'=>2,'cp'=>11,'attri'=>1,'time'=>13650),array('wood'=>28520,'clay'=>27300,'iron'=>28520,'crop'=>9780,'pop'=>2,'cp'=>13,'attri'=>1,'time'=>15840),array('wood'=>37935,'clay'=>36310,'iron'=>37935,'crop'=>13005,'pop'=>2,'cp'=>15,'attri'=>2,'time'=>18370),array('wood'=>50450,'clay'=>48290,'iron'=>50450,'crop'=>17300,'pop'=>3,'cp'=>18,'attri'=>2,'time'=>21310),array('wood'=>67100,'clay'=>64225,'iron'=>67100,'crop'=>23005,'pop'=>3,'cp'=>22,'attri'=>2,'time'=>24720),array('wood'=>89245,'clay'=>85420,'iron'=>89245,'crop'=>30600,'pop'=>3,'cp'=>27,'attri'=>2,'time'=>28680),array('wood'=>118695,'clay'=>113605,'iron'=>118695,'crop'=>40695,'pop'=>3,'cp'=>32,'attri'=>2,'time'=>33260),array('wood'=>157865,'clay'=>151095,'iron'=>157865,'crop'=>54125,'pop'=>3,'cp'=>38,'attri'=>3,'time'=>38590)); +$bid38=array(1=>array('wood'=>650,'clay'=>800,'iron'=>450,'crop'=>200,'pop'=>1,'cp'=>1,'attri'=>3600,'time'=>9000),array('wood'=>830,'clay'=>1025,'iron'=>575,'crop'=>255,'pop'=>1,'cp'=>1,'attri'=>5100,'time'=>10740),array('wood'=>1065,'clay'=>1310,'iron'=>735,'crop'=>330,'pop'=>1,'cp'=>2,'attri'=>6900,'time'=>12760),array('wood'=>1365,'clay'=>1680,'iron'=>945,'crop'=>420,'pop'=>1,'cp'=>2,'attri'=>9300,'time'=>15100),array('wood'=>1745,'clay'=>2145,'iron'=>1210,'crop'=>535,'pop'=>1,'cp'=>2,'attri'=>12000,'time'=>17820),array('wood'=>2235,'clay'=>2750,'iron'=>1545,'crop'=>685,'pop'=>1,'cp'=>3,'attri'=>15000,'time'=>20970),array('wood'=>2860,'clay'=>3520,'iron'=>1980,'crop'=>880,'pop'=>1,'cp'=>4,'attri'=>18900,'time'=>24620),array('wood'=>3660,'clay'=>4505,'iron'=>2535,'crop'=>1125,'pop'=>1,'cp'=>4,'attri'=>23400,'time'=>28860),array('wood'=>4685,'clay'=>5765,'iron'=>3245,'crop'=>1440,'pop'=>1,'cp'=>5,'attri'=>28800,'time'=>33780),array('wood'=>5995,'clay'=>7380,'iron'=>4150,'crop'=>1845,'pop'=>1,'cp'=>6,'attri'=>35400,'time'=>39480),array('wood'=>7675,'clay'=>9445,'iron'=>5315,'crop'=>2360,'pop'=>2,'cp'=>7,'attri'=>43200,'time'=>46100),array('wood'=>9825,'clay'=>12090,'iron'=>6800,'crop'=>3020,'pop'=>2,'cp'=>9,'attri'=>52800,'time'=>53780),array('wood'=>12575,'clay'=>15475,'iron'=>8705,'crop'=>3870,'pop'=>2,'cp'=>11,'attri'=>64200,'time'=>62680),array('wood'=>16095,'clay'=>19805,'iron'=>11140,'crop'=>4950,'pop'=>2,'cp'=>13,'attri'=>77700,'time'=>73010),array('wood'=>20600,'clay'=>25355,'iron'=>14260,'crop'=>6340,'pop'=>2,'cp'=>15,'attri'=>93900,'time'=>84990),array('wood'=>26365,'clay'=>32450,'iron'=>18255,'crop'=>8115,'pop'=>2,'cp'=>18,'attri'=>113700,'time'=>98890),array('wood'=>33750,'clay'=>41540,'iron'=>23365,'crop'=>10385,'pop'=>2,'cp'=>22,'attri'=>137100,'time'=>115010),array('wood'=>43200,'clay'=>53170,'iron'=>29910,'crop'=>13290,'pop'=>2,'cp'=>27,'attri'=>165300,'time'=>133710),array('wood'=>55295,'clay'=>68055,'iron'=>38280,'crop'=>17015,'pop'=>2,'cp'=>32,'attri'=>199200,'time'=>155400),array('wood'=>70780,'clay'=>87110,'iron'=>49000,'crop'=>21780,'pop'=>2,'cp'=>38,'attri'=>240000,'time'=>180570)); +$bid39=array(1=>array('wood'=>400,'clay'=>500,'iron'=>350,'crop'=>100,'pop'=>1,'cp'=>1,'attri'=>3600,'time'=>7000),array('wood'=>510,'clay'=>640,'iron'=>450,'crop'=>130,'pop'=>1,'cp'=>1,'attri'=>5100,'time'=>8420),array('wood'=>655,'clay'=>820,'iron'=>575,'crop'=>165,'pop'=>1,'cp'=>2,'attri'=>6900,'time'=>10070),array('wood'=>840,'clay'=>1050,'iron'=>735,'crop'=>210,'pop'=>1,'cp'=>2,'attri'=>9300,'time'=>11980),array('wood'=>1075,'clay'=>1340,'iron'=>940,'crop'=>270,'pop'=>1,'cp'=>2,'attri'=>12000,'time'=>14190),array('wood'=>1375,'clay'=>1720,'iron'=>1205,'crop'=>345,'pop'=>1,'cp'=>3,'attri'=>15000,'time'=>16770),array('wood'=>1760,'clay'=>2200,'iron'=>1540,'crop'=>440,'pop'=>1,'cp'=>4,'attri'=>18900,'time'=>19750),array('wood'=>2250,'clay'=>2815,'iron'=>1970,'crop'=>565,'pop'=>1,'cp'=>4,'attri'=>23400,'time'=>23210),array('wood'=>2880,'clay'=>3605,'iron'=>2520,'crop'=>720,'pop'=>1,'cp'=>5,'attri'=>28800,'time'=>27220),array('wood'=>3690,'clay'=>4610,'iron'=>3230,'crop'=>920,'pop'=>1,'cp'=>6,'attri'=>35400,'time'=>31880),array('wood'=>4720,'clay'=>5905,'iron'=>4130,'crop'=>1180,'pop'=>2,'cp'=>7,'attri'=>43200,'time'=>37280),array('wood'=>6045,'clay'=>7555,'iron'=>5290,'crop'=>1510,'pop'=>2,'cp'=>9,'attri'=>52800,'time'=>43540),array('wood'=>7735,'clay'=>9670,'iron'=>6770,'crop'=>1935,'pop'=>2,'cp'=>11,'attri'=>64200,'time'=>50810),array('wood'=>9905,'clay'=>12380,'iron'=>8665,'crop'=>2475,'pop'=>2,'cp'=>13,'attri'=>77700,'time'=>59240),array('wood'=>12675,'clay'=>15845,'iron'=>11090,'crop'=>3170,'pop'=>2,'cp'=>15,'attri'=>93900,'time'=>69010),array('wood'=>16225,'clay'=>20280,'iron'=>14200,'crop'=>4055,'pop'=>2,'cp'=>18,'attri'=>113700,'time'=>80360),array('wood'=>20770,'clay'=>25960,'iron'=>18175,'crop'=>5190,'pop'=>2,'cp'=>22,'attri'=>137100,'time'=>93510),array('wood'=>26585,'clay'=>33230,'iron'=>23260,'crop'=>6645,'pop'=>2,'cp'=>27,'attri'=>165300,'time'=>108780),array('wood'=>34030,'clay'=>42535,'iron'=>29775,'crop'=>8505,'pop'=>2,'cp'=>32,'attri'=>199200,'time'=>126480),array('wood'=>43555,'clay'=>54445,'iron'=>38110,'crop'=>10890,'pop'=>2,'cp'=>38,'attri'=>240000,'time'=>147020)); +$bid40=array(1=>array('wood'=>66700,'clay'=>69050,'iron'=>72200,'crop'=>13200,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>18000),array('wood'=>68535,'clay'=>70950,'iron'=>74185,'crop'=>13565,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>18850),array('wood'=>70420,'clay'=>72900,'iron'=>76225,'crop'=>13935,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>19720),array('wood'=>72355,'clay'=>74905,'iron'=>78320,'crop'=>14320,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>20590),array('wood'=>74345,'clay'=>76965,'iron'=>80475,'crop'=>14715,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>21480),array('wood'=>76390,'clay'=>79080,'iron'=>82690,'crop'=>15120,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>22380),array('wood'=>78490,'clay'=>81255,'iron'=>84965,'crop'=>15535,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>23290),array('wood'=>80650,'clay'=>83490,'iron'=>87300,'crop'=>15960,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>24220),array('wood'=>82865,'clay'=>85785,'iron'=>89700,'crop'=>16400,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>25160),array('wood'=>85145,'clay'=>88145,'iron'=>92165,'crop'=>16850,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>26110),array('wood'=>87485,'clay'=>90570,'iron'=>94700,'crop'=>17315,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>27080),array('wood'=>89895,'clay'=>93060,'iron'=>97305,'crop'=>17790,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>28060),array('wood'=>92365,'clay'=>95620,'iron'=>99980,'crop'=>18280,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>29050),array('wood'=>94905,'clay'=>98250,'iron'=>102730,'crop'=>18780,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>30060),array('wood'=>97515,'clay'=>100950,'iron'=>105555,'crop'=>19300,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>31080),array('wood'=>100195,'clay'=>103725,'iron'=>108460,'crop'=>19830,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>32110),array('wood'=>102950,'clay'=>106580,'iron'=>111440,'crop'=>20375,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>33160),array('wood'=>105785,'clay'=>109510,'iron'=>114505,'crop'=>20935,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>34230),array('wood'=>108690,'clay'=>112520,'iron'=>117655,'crop'=>21510,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>35300),array('wood'=>111680,'clay'=>115615,'iron'=>120890,'crop'=>22100,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>36400),array('wood'=>114755,'clay'=>118795,'iron'=>124215,'crop'=>22710,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>37510),array('wood'=>117910,'clay'=>122060,'iron'=>127630,'crop'=>23335,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>38630),array('wood'=>121150,'clay'=>125420,'iron'=>131140,'crop'=>23975,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>39770),array('wood'=>124480,'clay'=>128870,'iron'=>134745,'crop'=>24635,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>40930),array('wood'=>127905,'clay'=>132410,'iron'=>138455,'crop'=>25315,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>42100),array('wood'=>131425,'clay'=>136055,'iron'=>142260,'crop'=>26010,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>43290),array('wood'=>135035,'clay'=>139795,'iron'=>146170,'crop'=>26725,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>44500),array('wood'=>138750,'clay'=>143640,'iron'=>150190,'crop'=>27460,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>45720),array('wood'=>142565,'clay'=>147590,'iron'=>154320,'crop'=>28215,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>46960),array('wood'=>146485,'clay'=>151650,'iron'=>158565,'crop'=>28990,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>48220),array('wood'=>150515,'clay'=>155820,'iron'=>162925,'crop'=>29785,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>49500),array('wood'=>154655,'clay'=>160105,'iron'=>167405,'crop'=>30605,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>50790),array('wood'=>158910,'clay'=>164505,'iron'=>172010,'crop'=>31450,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>52100),array('wood'=>163275,'clay'=>169030,'iron'=>176740,'crop'=>32315,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>53430),array('wood'=>167770,'clay'=>173680,'iron'=>181600,'crop'=>33200,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>54780),array('wood'=>172380,'clay'=>178455,'iron'=>186595,'crop'=>34115,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>56140),array('wood'=>177120,'clay'=>183360,'iron'=>191725,'crop'=>35055,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>57530),array('wood'=>181995,'clay'=>188405,'iron'=>197000,'crop'=>36015,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>58940),array('wood'=>186995,'clay'=>193585,'iron'=>202415,'crop'=>37005,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>60360),array('wood'=>192140,'clay'=>198910,'iron'=>207985,'crop'=>38025,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>61810),array('wood'=>197425,'clay'=>204380,'iron'=>213705,'crop'=>39070,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>63270),array('wood'=>202855,'clay'=>210000,'iron'=>219580,'crop'=>40145,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>64760),array('wood'=>208430,'clay'=>215775,'iron'=>225620,'crop'=>41250,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>66260),array('wood'=>214165,'clay'=>221710,'iron'=>231825,'crop'=>42385,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>67790),array('wood'=>220055,'clay'=>227805,'iron'=>238200,'crop'=>43550,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>69340),array('wood'=>226105,'clay'=>234070,'iron'=>244750,'crop'=>44745,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>70910),array('wood'=>232320,'clay'=>240505,'iron'=>251480,'crop'=>45975,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>72500),array('wood'=>238710,'clay'=>247120,'iron'=>258395,'crop'=>47240,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>74120),array('wood'=>245275,'clay'=>253915,'iron'=>265500,'crop'=>48540,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>75760),array('wood'=>252020,'clay'=>260900,'iron'=>272800,'crop'=>49875,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>77420),array('wood'=>258950,'clay'=>268075,'iron'=>280305,'crop'=>51245,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>79100),array('wood'=>266070,'clay'=>275445,'iron'=>288010,'crop'=>52655,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>80810),array('wood'=>273390,'clay'=>283020,'iron'=>295930,'crop'=>54105,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>82540),array('wood'=>280905,'clay'=>290805,'iron'=>304070,'crop'=>55590,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>84290),array('wood'=>288630,'clay'=>298800,'iron'=>312430,'crop'=>57120,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>86070),array('wood'=>296570,'clay'=>307020,'iron'=>321025,'crop'=>58690,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>87880),array('wood'=>304725,'clay'=>315460,'iron'=>329850,'crop'=>60305,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>89710),array('wood'=>313105,'clay'=>324135,'iron'=>338925,'crop'=>61965,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>91570),array('wood'=>321715,'clay'=>333050,'iron'=>348245,'crop'=>63670,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>93450),array('wood'=>330565,'clay'=>342210,'iron'=>357820,'crop'=>65420,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>95360),array('wood'=>339655,'clay'=>351620,'iron'=>367660,'crop'=>67220,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>97290),array('wood'=>348995,'clay'=>361290,'iron'=>377770,'crop'=>69065,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>99250),array('wood'=>358590,'clay'=>371225,'iron'=>388160,'crop'=>70965,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>101240),array('wood'=>368450,'clay'=>381435,'iron'=>398835,'crop'=>72915,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>103260),array('wood'=>378585,'clay'=>391925,'iron'=>409800,'crop'=>74920,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>105310),array('wood'=>388995,'clay'=>402700,'iron'=>421070,'crop'=>76985,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>107380),array('wood'=>399695,'clay'=>413775,'iron'=>432650,'crop'=>79100,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>109480),array('wood'=>410685,'clay'=>425155,'iron'=>444550,'crop'=>81275,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>111620),array('wood'=>421980,'clay'=>436845,'iron'=>456775,'crop'=>83510,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>113780),array('wood'=>433585,'clay'=>448860,'iron'=>469335,'crop'=>85805,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>115970),array('wood'=>445505,'clay'=>461205,'iron'=>482240,'crop'=>88165,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>118200),array('wood'=>457760,'clay'=>473885,'iron'=>495505,'crop'=>90590,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>120450),array('wood'=>470345,'clay'=>486920,'iron'=>509130,'crop'=>93080,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>122740),array('wood'=>483280,'clay'=>500310,'iron'=>523130,'crop'=>95640,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>125060),array('wood'=>496570,'clay'=>514065,'iron'=>537520,'crop'=>98270,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>127410),array('wood'=>510225,'clay'=>528205,'iron'=>552300,'crop'=>100975,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>129790),array('wood'=>524260,'clay'=>542730,'iron'=>567490,'crop'=>103750,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>132210),array('wood'=>538675,'clay'=>557655,'iron'=>583095,'crop'=>106605,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>134660),array('wood'=>553490,'clay'=>572990,'iron'=>599130,'crop'=>109535,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>137140),array('wood'=>568710,'clay'=>588745,'iron'=>615605,'crop'=>112550,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>139660),array('wood'=>584350,'clay'=>604935,'iron'=>632535,'crop'=>115645,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>142220),array('wood'=>600420,'clay'=>621575,'iron'=>649930,'crop'=>118825,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>144810),array('wood'=>616930,'clay'=>638665,'iron'=>667800,'crop'=>122090,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>147440),array('wood'=>633895,'clay'=>656230,'iron'=>686165,'crop'=>125450,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>150100),array('wood'=>651330,'clay'=>674275,'iron'=>705035,'crop'=>128900,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>152800),array('wood'=>669240,'clay'=>692820,'iron'=>724425,'crop'=>132445,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>155540),array('wood'=>687645,'clay'=>711870,'iron'=>744345,'crop'=>136085,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>158320),array('wood'=>706555,'clay'=>731445,'iron'=>764815,'crop'=>139830,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>161140),array('wood'=>725985,'clay'=>751560,'iron'=>785850,'crop'=>143675,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>163990),array('wood'=>745950,'clay'=>772230,'iron'=>807460,'crop'=>147625,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>166890),array('wood'=>766460,'clay'=>793465,'iron'=>829665,'crop'=>151685,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>169820),array('wood'=>787540,'clay'=>815285,'iron'=>852480,'crop'=>155855,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>172800),array('wood'=>809195,'clay'=>837705,'iron'=>875920,'crop'=>160140,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>175820),array('wood'=>831450,'clay'=>860745,'iron'=>900010,'crop'=>164545,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>178880),array('wood'=>854315,'clay'=>884415,'iron'=>924760,'crop'=>169070,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>181990),array('wood'=>877810,'clay'=>908735,'iron'=>950190,'crop'=>173720,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>185130),array('wood'=>901950,'clay'=>933725,'iron'=>976320,'crop'=>178495,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>188330),array('wood'=>926750,'clay'=>959405,'iron'=>1000000,'crop'=>183405,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>191560),array('wood'=>952235,'clay'=>985785,'iron'=>1000000,'crop'=>188450,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>194840),array('wood'=>1000000,'clay'=>1000000,'iron'=>1000000,'crop'=>193630,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>198170)); +$bid41=array(1=>array('wood'=>780,'clay'=>420,'iron'=>660,'crop'=>540,'pop'=>5,'cp'=>4,'attri'=>0,'time'=>2200),array('wood'=>1000,'clay'=>540,'iron'=>845,'crop'=>690,'pop'=>3,'cp'=>4,'attri'=>0,'time'=>3150),array('wood'=>1280,'clay'=>690,'iron'=>1080,'crop'=>885,'pop'=>3,'cp'=>5,'attri'=>0,'time'=>4260),array('wood'=>1635,'clay'=>880,'iron'=>1385,'crop'=>1130,'pop'=>3,'cp'=>6,'attri'=>0,'time'=>5540),array('wood'=>2095,'clay'=>1125,'iron'=>1770,'crop'=>1450,'pop'=>3,'cp'=>7,'attri'=>0,'time'=>7020),array('wood'=>2680,'clay'=>1445,'iron'=>2270,'crop'=>1855,'pop'=>3,'cp'=>9,'attri'=>0,'time'=>8750),array('wood'=>3430,'clay'=>1845,'iron'=>2905,'crop'=>2375,'pop'=>3,'cp'=>11,'attri'=>0,'time'=>10750),array('wood'=>4390,'clay'=>2365,'iron'=>3715,'crop'=>3040,'pop'=>3,'cp'=>13,'attri'=>0,'time'=>13070),array('wood'=>5620,'clay'=>3025,'iron'=>4755,'crop'=>3890,'pop'=>3,'cp'=>15,'attri'=>0,'time'=>15760),array('wood'=>7195,'clay'=>3875,'iron'=>6085,'crop'=>4980,'pop'=>3,'cp'=>19,'attri'=>0,'time'=>18880),array('wood'=>9210,'clay'=>4960,'iron'=>7790,'crop'=>6375,'pop'=>4,'cp'=>22,'attri'=>0,'time'=>22500),array('wood'=>11785,'clay'=>6345,'iron'=>9975,'crop'=>8160,'pop'=>4,'cp'=>27,'attri'=>0,'time'=>26700),array('wood'=>15085,'clay'=>8125,'iron'=>12765,'crop'=>10445,'pop'=>4,'cp'=>32,'attri'=>0,'time'=>31570),array('wood'=>19310,'clay'=>10400,'iron'=>16340,'crop'=>13370,'pop'=>4,'cp'=>39,'attri'=>0,'time'=>37220),array('wood'=>24720,'clay'=>13310,'iron'=>20915,'crop'=>17115,'pop'=>4,'cp'=>46,'attri'=>0,'time'=>43780),array('wood'=>31640,'clay'=>17035,'iron'=>26775,'crop'=>21905,'pop'=>4,'cp'=>55,'attri'=>0,'time'=>51380),array('wood'=>40500,'clay'=>21810,'iron'=>34270,'crop'=>28040,'pop'=>4,'cp'=>67,'attri'=>0,'time'=>60200),array('wood'=>51840,'clay'=>27915,'iron'=>43865,'crop'=>35890,'pop'=>4,'cp'=>80,'attri'=>0,'time'=>70430),array('wood'=>66355,'clay'=>35730,'iron'=>56145,'crop'=>45940,'pop'=>4,'cp'=>96,'attri'=>0,'time'=>82300),array('wood'=>84935,'clay'=>45735,'iron'=>71870,'crop'=>58800,'pop'=>4,'cp'=>115,'attri'=>0,'time'=>96070)); +?> diff --git a/GameEngine/Data/buidata.php_backup_postrespalfix b/GameEngine/Data/buidata.php_backup_postrespalfix new file mode 100644 index 00000000..e681a1a7 --- /dev/null +++ b/GameEngine/Data/buidata.php_backup_postrespalfix @@ -0,0 +1,54 @@ +2),array('wood'=>40,'clay'=>100,'iron'=>50,'crop'=>60,'pop'=>2,'cp'=>1,'prod'=>5,'time'=>260),array('wood'=>65,'clay'=>165,'iron'=>85,'crop'=>100,'pop'=>1,'cp'=>1,'prod'=>9,'time'=>620),array('wood'=>110,'clay'=>280,'iron'=>140,'crop'=>165,'pop'=>1,'cp'=>2,'prod'=>15,'time'=>1190),array('wood'=>185,'clay'=>465,'iron'=>235,'crop'=>280,'pop'=>1,'cp'=>2,'prod'=>22,'time'=>2100),array('wood'=>310,'clay'=>780,'iron'=>390,'crop'=>465,'pop'=>1,'cp'=>2,'prod'=>33,'time'=>3560),array('wood'=>520,'clay'=>1300,'iron'=>650,'crop'=>780,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>3638),array('wood'=>870,'clay'=>2170,'iron'=>1085,'crop'=>1300,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>7220),array('wood'=>1450,'clay'=>3625,'iron'=>1810,'crop'=>2175,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>15590),array('wood'=>2420,'clay'=>6050,'iron'=>3025,'crop'=>3630,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>25150),array('wood'=>4040,'clay'=>10105,'iron'=>5050,'crop'=>6060,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>40440),array('wood'=>6750,'clay'=>16870,'iron'=>8435,'crop'=>10125,'pop'=>2,'cp'=>7,'prod'=>280,'time'=>64900),array('wood'=>11270,'clay'=>28175,'iron'=>14090,'crop'=>16905,'pop'=>2,'cp'=>9,'prod'=>375,'time'=>104050),array('wood'=>18820,'clay'=>47055,'iron'=>23525,'crop'=>28230,'pop'=>2,'cp'=>11,'prod'=>495,'time'=>166680),array('wood'=>31430,'clay'=>78580,'iron'=>39290,'crop'=>47150,'pop'=>2,'cp'=>13,'prod'=>635,'time'=>266880),array('wood'=>52490,'clay'=>131230,'iron'=>65615,'crop'=>78740,'pop'=>2,'cp'=>15,'prod'=>800,'time'=>427210),array('wood'=>87660,'clay'=>219155,'iron'=>109575,'crop'=>131490,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>683730),array('wood'=>146395,'clay'=>365985,'iron'=>182995,'crop'=>219590,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>1094170),array('wood'=>244480,'clay'=>611195,'iron'=>305600,'crop'=>366715,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>1750880),array('wood'=>408280,'clay'=>1020695,'iron'=>510350,'crop'=>612420,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>2801600),array('wood'=>681825,'clay'=>1704565,'iron'=>852280,'crop'=>1022740,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>4482770)); +$bid2=array(array('prod'=>2),array('wood'=>80,'clay'=>40,'iron'=>80,'crop'=>50,'pop'=>2,'cp'=>1,'prod'=>5,'time'=>220),array('wood'=>135,'clay'=>65,'iron'=>135,'crop'=>85,'pop'=>1,'cp'=>1,'prod'=>9,'time'=>550),array('wood'=>225,'clay'=>110,'iron'=>225,'crop'=>140,'pop'=>1,'cp'=>2,'prod'=>15,'time'=>1080),array('wood'=>375,'clay'=>185,'iron'=>375,'crop'=>235,'pop'=>1,'cp'=>2,'prod'=>22,'time'=>1930),array('wood'=>620,'clay'=>310,'iron'=>620,'crop'=>390,'pop'=>1,'cp'=>2,'prod'=>33,'time'=>3290),array('wood'=>1040,'clay'=>520,'iron'=>1040,'crop'=>650,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>5470),array('wood'=>1735,'clay'=>870,'iron'=>1735,'crop'=>1085,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>8950),array('wood'=>2900,'clay'=>1450,'iron'=>2900,'crop'=>1810,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>14520),array('wood'=>4840,'clay'=>2420,'iron'=>4840,'crop'=>3025,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>23430),array('wood'=>8080,'clay'=>4040,'iron'=>8080,'crop'=>5050,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>37690),array('wood'=>13500,'clay'=>6750,'iron'=>13500,'crop'=>8435,'pop'=>2,'cp'=>7,'prod'=>280,'time'=>60510),array('wood'=>22540,'clay'=>11270,'iron'=>22540,'crop'=>14090,'pop'=>2,'cp'=>9,'prod'=>375,'time'=>97010),array('wood'=>37645,'clay'=>18820,'iron'=>37645,'crop'=>23525,'pop'=>2,'cp'=>11,'prod'=>495,'time'=>155420),array('wood'=>62865,'clay'=>31430,'iron'=>62865,'crop'=>39290,'pop'=>2,'cp'=>13,'prod'=>635,'time'=>248870),array('wood'=>104985,'clay'=>52490,'iron'=>104985,'crop'=>65615,'pop'=>2,'cp'=>15,'prod'=>800,'time'=>398390),array('wood'=>175320,'clay'=>87660,'iron'=>175320,'crop'=>109575,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>637620),array('wood'=>292790,'clay'=>146395,'iron'=>292790,'crop'=>182995,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>1020390),array('wood'=>488955,'clay'=>244480,'iron'=>488955,'crop'=>305600,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>1632820),array('wood'=>816555,'clay'=>408280,'iron'=>816555,'crop'=>510350,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>2612710),array('wood'=>1363650,'clay'=>681825,'iron'=>1363650,'crop'=>852280,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>4180540)); +$bid3=array(array('prod'=>2),array('wood'=>100,'clay'=>80,'iron'=>30,'crop'=>60,'pop'=>3,'cp'=>1,'prod'=>5,'time'=>450),array('wood'=>165,'clay'=>135,'iron'=>50,'crop'=>100,'pop'=>2,'cp'=>1,'prod'=>9,'time'=>920),array('wood'=>280,'clay'=>225,'iron'=>85,'crop'=>165,'pop'=>2,'cp'=>2,'prod'=>15,'time'=>1670),array('wood'=>465,'clay'=>375,'iron'=>140,'crop'=>280,'pop'=>2,'cp'=>2,'prod'=>22,'time'=>2880),array('wood'=>780,'clay'=>620,'iron'=>235,'crop'=>465,'pop'=>2,'cp'=>2,'prod'=>33,'time'=>4800),array('wood'=>1300,'clay'=>1040,'iron'=>390,'crop'=>780,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>7880),array('wood'=>2170,'clay'=>1735,'iron'=>650,'crop'=>1300,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>12810),array('wood'=>3625,'clay'=>2900,'iron'=>1085,'crop'=>2175,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>20690),array('wood'=>6050,'clay'=>4840,'iron'=>1815,'crop'=>3630,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>33310),array('wood'=>10105,'clay'=>8080,'iron'=>3030,'crop'=>6060,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>53500),array('wood'=>16870,'clay'=>13500,'iron'=>5060,'crop'=>10125,'pop'=>3,'cp'=>7,'prod'=>280,'time'=>85800),array('wood'=>28175,'clay'=>22540,'iron'=>8455,'crop'=>16905,'pop'=>3,'cp'=>9,'prod'=>375,'time'=>137470),array('wood'=>47055,'clay'=>37645,'iron'=>14115,'crop'=>28230,'pop'=>3,'cp'=>11,'prod'=>495,'time'=>220160),array('wood'=>78580,'clay'=>62865,'iron'=>23575,'crop'=>47150,'pop'=>3,'cp'=>13,'prod'=>635,'time'=>352450),array('wood'=>131230,'clay'=>104985,'iron'=>39370,'crop'=>78740,'pop'=>3,'cp'=>15,'prod'=>800,'time'=>564120),array('wood'=>219155,'clay'=>175320,'iron'=>65745,'crop'=>131490,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>902760),array('wood'=>365985,'clay'=>292790,'iron'=>109795,'crop'=>219590,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>145546),array('wood'=>611195,'clay'=>488955,'iron'=>183360,'crop'=>366715,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>2311660),array('wood'=>1020695,'clay'=>816555,'iron'=>306210,'crop'=>612420,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>3698850),array('wood'=>1704565,'clay'=>1363650,'iron'=>511370,'crop'=>1022740,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>5918370)); +$bid4=array(array('prod'=>2),array('wood'=>70,'clay'=>90,'iron'=>70,'crop'=>20,'pop'=>0,'cp'=>1,'prod'=>5,'time'=>150),array('wood'=>115,'clay'=>150,'iron'=>115,'crop'=>35,'pop'=>0,'cp'=>1,'prod'=>9,'time'=>440),array('wood'=>195,'clay'=>250,'iron'=>195,'crop'=>55,'pop'=>0,'cp'=>2,'prod'=>15,'time'=>900),array('wood'=>325,'clay'=>420,'iron'=>325,'crop'=>95,'pop'=>0,'cp'=>2,'prod'=>22,'time'=>1650),array('wood'=>545,'clay'=>700,'iron'=>545,'crop'=>155,'pop'=>0,'cp'=>2,'prod'=>33,'time'=>2830),array('wood'=>910,'clay'=>1170,'iron'=>910,'crop'=>260,'pop'=>1,'cp'=>3,'prod'=>50,'time'=>4730),array('wood'=>1520,'clay'=>1950,'iron'=>1520,'crop'=>435,'pop'=>1,'cp'=>4,'prod'=>70,'time'=>7780),array('wood'=>2535,'clay'=>3260,'iron'=>2535,'crop'=>725,'pop'=>1,'cp'=>4,'prod'=>100,'time'=>12190),array('wood'=>4235,'clay'=>5445,'iron'=>4235,'crop'=>1210,'pop'=>1,'cp'=>5,'prod'=>145,'time'=>19690),array('wood'=>7070,'clay'=>9095,'iron'=>7070,'crop'=>2020,'pop'=>1,'cp'=>6,'prod'=>200,'time'=>31700),array('wood'=>11810,'clay'=>15185,'iron'=>11810,'crop'=>3375,'pop'=>1,'cp'=>7,'prod'=>280,'time'=>50910),array('wood'=>19725,'clay'=>25360,'iron'=>19725,'crop'=>5635,'pop'=>1,'cp'=>9,'prod'=>375,'time'=>84700),array('wood'=>32940,'clay'=>42350,'iron'=>32940,'crop'=>9410,'pop'=>1,'cp'=>11,'prod'=>495,'time'=>135710),array('wood'=>55005,'clay'=>70720,'iron'=>55005,'crop'=>15715,'pop'=>1,'cp'=>13,'prod'=>635,'time'=>217340),array('wood'=>91860,'clay'=>118105,'iron'=>91860,'crop'=>26245,'pop'=>1,'cp'=>15,'prod'=>800,'time'=>347950),array('wood'=>153405,'clay'=>197240,'iron'=>153405,'crop'=>43830,'pop'=>2,'cp'=>18,'prod'=>1000,'time'=>556910),array('wood'=>256190,'clay'=>329385,'iron'=>256190,'crop'=>73195,'pop'=>2,'cp'=>22,'prod'=>1300,'time'=>891260),array('wood'=>427835,'clay'=>550075,'iron'=>427835,'crop'=>122240,'pop'=>2,'cp'=>27,'prod'=>1600,'time'=>1426210),array('wood'=>714485,'clay'=>918625,'iron'=>714485,'crop'=>204140,'pop'=>2,'cp'=>32,'prod'=>2000,'time'=>2282140),array('wood'=>1193195,'clay'=>1534105,'iron'=>1193195,'crop'=>340915,'pop'=>2,'cp'=>38,'prod'=>2450,'time'=>3651630)); +$bid5=array(1=>array('wood'=>520,'clay'=>380,'iron'=>290,'crop'=>90,'pop'=>4,'cp'=>1,'attri'=>5,'time'=>3000),array('wood'=>935,'clay'=>685,'iron'=>520,'crop'=>160,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>5700),array('wood'=>1685,'clay'=>1230,'iron'=>940,'crop'=>290,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>9750),array('wood'=>3035,'clay'=>2215,'iron'=>1690,'crop'=>525,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>15830),array('wood'=>5460,'clay'=>3990,'iron'=>3045,'crop'=>945,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>24940)); +$bid6=array(1=>array('wood'=>440,'clay'=>480,'iron'=>320,'crop'=>50,'pop'=>3,'cp'=>1,'attri'=>5,'time'=>2240),array('wood'=>790,'clay'=>865,'iron'=>575,'crop'=>90,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>4560),array('wood'=>1425,'clay'=>1555,'iron'=>1035,'crop'=>160,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>8040),array('wood'=>2565,'clay'=>2800,'iron'=>1865,'crop'=>290,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>13260),array('wood'=>4620,'clay'=>5040,'iron'=>3360,'crop'=>525,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>21090)); +$bid7=array(1=>array('wood'=>200,'clay'=>450,'iron'=>510,'crop'=>120,'pop'=>6,'cp'=>1,'attri'=>5,'time'=>4080),array('wood'=>360,'clay'=>810,'iron'=>920,'crop'=>215,'pop'=>3,'cp'=>1,'attri'=>10,'time'=>7320),array('wood'=>650,'clay'=>1460,'iron'=>1650,'crop'=>390,'pop'=>3,'cp'=>2,'attri'=>15,'time'=>12180),array('wood'=>1165,'clay'=>2625,'iron'=>2975,'crop'=>700,'pop'=>3,'cp'=>2,'attri'=>20,'time'=>19470),array('wood'=>2100,'clay'=>4725,'iron'=>5355,'crop'=>1260,'pop'=>3,'cp'=>2,'attri'=>25,'time'=>30410)); +$bid8=array(1=>array('wood'=>500,'clay'=>440,'iron'=>380,'crop'=>1240,'pop'=>3,'cp'=>1,'attri'=>5,'time'=>1840),array('wood'=>900,'clay'=>790,'iron'=>685,'crop'=>2230,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>3960),array('wood'=>1620,'clay'=>1425,'iron'=>1230,'crop'=>4020,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>7140),array('wood'=>2915,'clay'=>2565,'iron'=>2215,'crop'=>7230,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>11910),array('wood'=>5250,'clay'=>4620,'iron'=>3990,'crop'=>13015,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>19070)); +$bid9=array(1=>array('wood'=>1200,'clay'=>1480,'iron'=>870,'crop'=>1600,'pop'=>4,'cp'=>1,'attri'=>5,'time'=>3680),array('wood'=>2160,'clay'=>2665,'iron'=>1565,'crop'=>2880,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>6720),array('wood'=>3890,'clay'=>4795,'iron'=>2820,'crop'=>5185,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>11280),array('wood'=>7000,'clay'=>8630,'iron'=>5075,'crop'=>9330,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>18120),array('wood'=>12595,'clay'=>15535,'iron'=>9135,'crop'=>16795,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>28380)); +$bid10=array(1=>array('wood'=>130,'clay'=>160,'iron'=>90,'crop'=>40,'pop'=>1,'cp'=>1,'attri'=>1200,'time'=>2000),array('wood'=>165,'clay'=>205,'iron'=>115,'crop'=>50,'pop'=>1,'cp'=>1,'attri'=>1700,'time'=>2620),array('wood'=>215,'clay'=>260,'iron'=>145,'crop'=>65,'pop'=>1,'cp'=>2,'attri'=>2300,'time'=>3340),array('wood'=>275,'clay'=>335,'iron'=>190,'crop'=>85,'pop'=>1,'cp'=>2,'attri'=>3100,'time'=>4170),array('wood'=>350,'clay'=>430,'iron'=>240,'crop'=>105,'pop'=>1,'cp'=>2,'attri'=>4000,'time'=>5140),array('wood'=>445,'clay'=>550,'iron'=>310,'crop'=>135,'pop'=>1,'cp'=>3,'attri'=>5000,'time'=>6260),array('wood'=>570,'clay'=>705,'iron'=>395,'crop'=>175,'pop'=>1,'cp'=>4,'attri'=>6300,'time'=>7570),array('wood'=>730,'clay'=>900,'iron'=>505,'crop'=>225,'pop'=>1,'cp'=>4,'attri'=>7800,'time'=>9080),array('wood'=>935,'clay'=>1115,'iron'=>650,'crop'=>290,'pop'=>1,'cp'=>5,'attri'=>9600,'time'=>10830),array('wood'=>1200,'clay'=>1475,'iron'=>830,'crop'=>370,'pop'=>1,'cp'=>6,'attri'=>11800,'time'=>12860),array('wood'=>1535,'clay'=>1890,'iron'=>1065,'crop'=>470,'pop'=>2,'cp'=>7,'attri'=>14400,'time'=>15220),array('wood'=>1965,'clay'=>2420,'iron'=>1360,'crop'=>605,'pop'=>2,'cp'=>9,'attri'=>17600,'time'=>17950),array('wood'=>2515,'clay'=>3095,'iron'=>1740,'crop'=>775,'pop'=>2,'cp'=>11,'attri'=>21400,'time'=>21130),array('wood'=>3220,'clay'=>3960,'iron'=>2230,'crop'=>990,'pop'=>2,'cp'=>13,'attri'=>25900,'time'=>24810),array('wood'=>4120,'clay'=>5070,'iron'=>2850,'crop'=>1270,'pop'=>2,'cp'=>15,'attri'=>31300,'time'=>29080),array('wood'=>5275,'clay'=>6490,'iron'=>3650,'crop'=>1625,'pop'=>2,'cp'=>18,'attri'=>37900,'time'=>34030),array('wood'=>6750,'clay'=>8310,'iron'=>4675,'crop'=>2075,'pop'=>2,'cp'=>22,'attri'=>45700,'time'=>39770),array('wood'=>8640,'clay'=>10635,'iron'=>5980,'crop'=>2660,'pop'=>2,'cp'=>27,'attri'=>55100,'time'=>46440),array('wood'=>11060,'clay'=>13610,'iron'=>7655,'crop'=>3405,'pop'=>2,'cp'=>32,'attri'=>66400,'time'=>54170),array('wood'=>14155,'clay'=>17420,'iron'=>9800,'crop'=>4355,'pop'=>2,'cp'=>38,'attri'=>80000,'time'=>63130)); +$bid11=array(1=>array('wood'=>80,'clay'=>100,'iron'=>70,'crop'=>20,'pop'=>1,'cp'=>1,'attri'=>1200,'time'=>1600),array('wood'=>100,'clay'=>130,'iron'=>90,'crop'=>25,'pop'=>1,'cp'=>1,'attri'=>1700,'time'=>2160),array('wood'=>130,'clay'=>165,'iron'=>115,'crop'=>35,'pop'=>1,'cp'=>2,'attri'=>2300,'time'=>2800),array('wood'=>170,'clay'=>210,'iron'=>145,'crop'=>40,'pop'=>1,'cp'=>2,'attri'=>3100,'time'=>3550),array('wood'=>215,'clay'=>270,'iron'=>190,'crop'=>55,'pop'=>1,'cp'=>2,'attri'=>4000,'time'=>4420),array('wood'=>275,'clay'=>345,'iron'=>240,'crop'=>70,'pop'=>1,'cp'=>3,'attri'=>5000,'time'=>5420),array('wood'=>350,'clay'=>440,'iron'=>310,'crop'=>90,'pop'=>1,'cp'=>4,'attri'=>6300,'time'=>6590),array('wood'=>450,'clay'=>565,'iron'=>395,'crop'=>115,'pop'=>1,'cp'=>4,'attri'=>7800,'time'=>7950),array('wood'=>575,'clay'=>720,'iron'=>505,'crop'=>145,'pop'=>1,'cp'=>5,'attri'=>9600,'time'=>9520),array('wood'=>740,'clay'=>920,'iron'=>645,'crop'=>185,'pop'=>1,'cp'=>6,'attri'=>11800,'time'=>11340),array('wood'=>945,'clay'=>1180,'iron'=>825,'crop'=>235,'pop'=>2,'cp'=>7,'attri'=>14400,'time'=>13450),array('wood'=>1210,'clay'=>1510,'iron'=>1060,'crop'=>300,'pop'=>2,'cp'=>9,'attri'=>17600,'time'=>15910),array('wood'=>1545,'clay'=>1935,'iron'=>1355,'crop'=>385,'pop'=>2,'cp'=>11,'attri'=>21400,'time'=>18750),array('wood'=>1980,'clay'=>2475,'iron'=>1735,'crop'=>495,'pop'=>2,'cp'=>13,'attri'=>25900,'time'=>22050),array('wood'=>2535,'clay'=>3170,'iron'=>2220,'crop'=>635,'pop'=>2,'cp'=>15,'attri'=>31300,'time'=>25880),array('wood'=>3245,'clay'=>4055,'iron'=>2840,'crop'=>810,'pop'=>2,'cp'=>18,'attri'=>37900,'time'=>30320),array('wood'=>4155,'clay'=>5190,'iron'=>3635,'crop'=>1040,'pop'=>2,'cp'=>22,'attri'=>45700,'time'=>35470),array('wood'=>5315,'clay'=>6645,'iron'=>4650,'crop'=>1330,'pop'=>2,'cp'=>27,'attri'=>55100,'time'=>41450),array('wood'=>6805,'clay'=>8505,'iron'=>5955,'crop'=>1700,'pop'=>2,'cp'=>32,'attri'=>66400,'time'=>48380),array('wood'=>8710,'clay'=>10890,'iron'=>7620,'crop'=>2180,'pop'=>2,'cp'=>38,'attri'=>80000,'time'=>56420)); +$bid12=array(1=>array('wood'=>170,'clay'=>200,'iron'=>380,'crop'=>130,'pop'=>4,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>220,'clay'=>255,'iron'=>485,'crop'=>165,'pop'=>2,'cp'=>3,'attri'=>96,'time'=>2620),array('wood'=>280,'clay'=>330,'iron'=>625,'crop'=>215,'pop'=>2,'cp'=>3,'attri'=>93,'time'=>3340),array('wood'=>355,'clay'=>420,'iron'=>795,'crop'=>275,'pop'=>2,'cp'=>4,'attri'=>90,'time'=>4170),array('wood'=>455,'clay'=>535,'iron'=>1020,'crop'=>350,'pop'=>2,'cp'=>5,'attri'=>86,'time'=>5140),array('wood'=>585,'clay'=>685,'iron'=>1305,'crop'=>445,'pop'=>3,'cp'=>6,'attri'=>83,'time'=>6260),array('wood'=>750,'clay'=>880,'iron'=>1670,'crop'=>570,'pop'=>3,'cp'=>7,'attri'=>80,'time'=>7570),array('wood'=>955,'clay'=>1125,'iron'=>2140,'crop'=>730,'pop'=>3,'cp'=>9,'attri'=>77,'time'=>9080),array('wood'=>1225,'clay'=>1440,'iron'=>2740,'crop'=>935,'pop'=>3,'cp'=>10,'attri'=>75,'time'=>10830),array('wood'=>1570,'clay'=>1845,'iron'=>3505,'crop'=>1200,'pop'=>3,'cp'=>12,'attri'=>72,'time'=>12860),array('wood'=>2005,'clay'=>2360,'iron'=>4485,'crop'=>1535,'pop'=>3,'cp'=>15,'attri'=>69,'time'=>15220),array('wood'=>2570,'clay'=>3020,'iron'=>5740,'crop'=>1965,'pop'=>3,'cp'=>18,'attri'=>67,'time'=>17950),array('wood'=>3290,'clay'=>3870,'iron'=>7350,'crop'=>2515,'pop'=>3,'cp'=>21,'attri'=>64,'time'=>21130),array('wood'=>4210,'clay'=>4950,'iron'=>9410,'crop'=>3220,'pop'=>3,'cp'=>26,'attri'=>62,'time'=>24810),array('wood'=>5390,'clay'=>6340,'iron'=>12045,'crop'=>4120,'pop'=>3,'cp'=>31,'attri'=>60,'time'=>29080),array('wood'=>6895,'clay'=>8115,'iron'=>15415,'crop'=>5275,'pop'=>4,'cp'=>37,'attri'=>58,'time'=>34030),array('wood'=>8825,'clay'=>10385,'iron'=>19730,'crop'=>6750,'pop'=>4,'cp'=>44,'attri'=>56,'time'=>39770),array('wood'=>11300,'clay'=>13290,'iron'=>25255,'crop'=>8640,'pop'=>4,'cp'=>53,'attri'=>54,'time'=>46440),array('wood'=>14460,'clay'=>17015,'iron'=>32325,'crop'=>11060,'pop'=>4,'cp'=>64,'attri'=>52,'time'=>54170),array('wood'=>18510,'clay'=>21780,'iron'=>41380,'crop'=>14155,'pop'=>4,'cp'=>77,'attri'=>50,'time'=>63130)); +$bid13=array(1=>array('wood'=>130,'clay'=>210,'iron'=>410,'crop'=>130,'pop'=>4,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>165,'clay'=>270,'iron'=>525,'crop'=>165,'pop'=>2,'cp'=>3,'attri'=>96,'time'=>2620),array('wood'=>215,'clay'=>345,'iron'=>670,'crop'=>215,'pop'=>2,'cp'=>3,'attri'=>93,'time'=>3340),array('wood'=>275,'clay'=>440,'iron'=>860,'crop'=>275,'pop'=>2,'cp'=>4,'attri'=>90,'time'=>4170),array('wood'=>350,'clay'=>565,'iron'=>1100,'crop'=>350,'pop'=>2,'cp'=>5,'attri'=>86,'time'=>5140),array('wood'=>445,'clay'=>720,'iron'=>1410,'crop'=>445,'pop'=>3,'cp'=>6,'attri'=>83,'time'=>6260),array('wood'=>570,'clay'=>925,'iron'=>1805,'crop'=>570,'pop'=>3,'cp'=>7,'attri'=>80,'time'=>7570),array('wood'=>730,'clay'=>1180,'iron'=>2310,'crop'=>730,'pop'=>3,'cp'=>9,'attri'=>77,'time'=>9080),array('wood'=>935,'clay'=>1515,'iron'=>2955,'crop'=>935,'pop'=>3,'cp'=>10,'attri'=>75,'time'=>10830),array('wood'=>1200,'clay'=>1935,'iron'=>3780,'crop'=>1200,'pop'=>3,'cp'=>12,'attri'=>72,'time'=>12860),array('wood'=>1535,'clay'=>2480,'iron'=>4840,'crop'=>1535,'pop'=>3,'cp'=>15,'attri'=>69,'time'=>15220),array('wood'=>1965,'clay'=>3175,'iron'=>6195,'crop'=>1965,'pop'=>3,'cp'=>18,'attri'=>67,'time'=>17950),array('wood'=>2515,'clay'=>4060,'iron'=>7930,'crop'=>2515,'pop'=>3,'cp'=>21,'attri'=>64,'time'=>21130),array('wood'=>3220,'clay'=>5200,'iron'=>10150,'crop'=>3220,'pop'=>3,'cp'=>26,'attri'=>62,'time'=>24810),array('wood'=>4120,'clay'=>6655,'iron'=>12995,'crop'=>4120,'pop'=>3,'cp'=>31,'attri'=>60,'time'=>29080),array('wood'=>5275,'clay'=>8520,'iron'=>16630,'crop'=>5275,'pop'=>4,'cp'=>37,'attri'=>58,'time'=>34030),array('wood'=>6750,'clay'=>10905,'iron'=>21290,'crop'=>6750,'pop'=>4,'cp'=>44,'attri'=>56,'time'=>39770),array('wood'=>8640,'clay'=>13955,'iron'=>27250,'crop'=>8640,'pop'=>4,'cp'=>53,'attri'=>54,'time'=>46440),array('wood'=>11060,'clay'=>17865,'iron'=>34880,'crop'=>11060,'pop'=>4,'cp'=>64,'attri'=>52,'time'=>54170),array('wood'=>14155,'clay'=>22865,'iron'=>44645,'crop'=>14155,'pop'=>4,'cp'=>77,'attri'=>50,'time'=>63130)); +$bid14=array(1=>array('wood'=>1750,'clay'=>2250,'iron'=>1530,'crop'=>240,'pop'=>1,'cp'=>1,'attri'=>110,'time'=>3500),array('wood'=>2240,'clay'=>2880,'iron'=>1960,'crop'=>305,'pop'=>1,'cp'=>1,'attri'=>120,'time'=>4360),array('wood'=>2865,'clay'=>3685,'iron'=>2505,'crop'=>395,'pop'=>1,'cp'=>2,'attri'=>130,'time'=>5360),array('wood'=>3670,'clay'=>4720,'iron'=>3210,'crop'=>505,'pop'=>1,'cp'=>2,'attri'=>140,'time'=>6510),array('wood'=>4700,'clay'=>6040,'iron'=>4105,'crop'=>645,'pop'=>1,'cp'=>2,'attri'=>150,'time'=>7860),array('wood'=>6015,'clay'=>7730,'iron'=>5255,'crop'=>825,'pop'=>1,'cp'=>3,'attri'=>160,'time'=>9410),array('wood'=>7695,'clay'=>9895,'iron'=>6730,'crop'=>1055,'pop'=>1,'cp'=>4,'attri'=>170,'time'=>11220),array('wood'=>9850,'clay'=>12665,'iron'=>8615,'crop'=>1350,'pop'=>1,'cp'=>4,'attri'=>180,'time'=>13320),array('wood'=>12610,'clay'=>16215,'iron'=>11025,'crop'=>1730,'pop'=>1,'cp'=>5,'attri'=>190,'time'=>15750),array('wood'=>16140,'clay'=>20755,'iron'=>14110,'crop'=>2215,'pop'=>1,'cp'=>6,'attri'=>200,'time'=>18570),array('wood'=>20660,'clay'=>26565,'iron'=>18065,'crop'=>2835,'pop'=>2,'cp'=>7,'attri'=>210,'time'=>21840),array('wood'=>26445,'clay'=>34000,'iron'=>23120,'crop'=>3625,'pop'=>2,'cp'=>9,'attri'=>220,'time'=>25630),array('wood'=>33850,'clay'=>43520,'iron'=>29595,'crop'=>4640,'pop'=>2,'cp'=>11,'attri'=>230,'time'=>30030),array('wood'=>43330,'clay'=>55705,'iron'=>37880,'crop'=>5940,'pop'=>2,'cp'=>13,'attri'=>240,'time'=>35140),array('wood'=>55460,'clay'=>71305,'iron'=>48490,'crop'=>7605,'pop'=>2,'cp'=>15,'attri'=>250,'time'=>41060),array('wood'=>70990,'clay'=>91270,'iron'=>62065,'crop'=>9735,'pop'=>2,'cp'=>18,'attri'=>260,'time'=>47930),array('wood'=>90865,'clay'=>116825,'iron'=>79440,'crop'=>12460,'pop'=>2,'cp'=>22,'attri'=>270,'time'=>55900),array('wood'=>116305,'clay'=>149540,'iron'=>101685,'crop'=>15950,'pop'=>2,'cp'=>27,'attri'=>280,'time'=>65140),array('wood'=>148875,'clay'=>191410,'iron'=>130160,'crop'=>20415,'pop'=>2,'cp'=>32,'attri'=>290,'time'=>75860),array('wood'=>190560,'clay'=>245005,'iron'=>166600,'crop'=>26135,'pop'=>2,'cp'=>38,'attri'=>300,'time'=>88300)); +$bid15=array(1=>array('wood'=>70,'clay'=>40,'iron'=>60,'crop'=>20,'pop'=>2,'cp'=>2,'attri'=>100,'time'=>2620),array('wood'=>90,'clay'=>50,'iron'=>75,'crop'=>25,'pop'=>1,'cp'=>3,'attri'=>96,'time'=>3220),array('wood'=>115,'clay'=>65,'iron'=>100,'crop'=>35,'pop'=>1,'cp'=>3,'attri'=>93,'time'=>3880),array('wood'=>145,'clay'=>85,'iron'=>125,'crop'=>40,'pop'=>1,'cp'=>4,'attri'=>90,'time'=>4610),array('wood'=>190,'clay'=>105,'iron'=>160,'crop'=>55,'pop'=>1,'cp'=>5,'attri'=>86,'time'=>5410),array('wood'=>240,'clay'=>135,'iron'=>205,'crop'=>70,'pop'=>2,'cp'=>6,'attri'=>83,'time'=>6300),array('wood'=>310,'clay'=>175,'iron'=>265,'crop'=>90,'pop'=>2,'cp'=>7,'attri'=>80,'time'=>7280),array('wood'=>395,'clay'=>225,'iron'=>340,'crop'=>115,'pop'=>2,'cp'=>9,'attri'=>77,'time'=>8380),array('wood'=>505,'clay'=>290,'iron'=>430,'crop'=>145,'pop'=>2,'cp'=>10,'attri'=>75,'time'=>9590),array('wood'=>645,'clay'=>370,'iron'=>555,'crop'=>185,'pop'=>2,'cp'=>12,'attri'=>72,'time'=>10940),array('wood'=>825,'clay'=>470,'iron'=>710,'crop'=>235,'pop'=>2,'cp'=>15,'attri'=>69,'time'=>12440),array('wood'=>1060,'clay'=>605,'iron'=>905,'crop'=>300,'pop'=>2,'cp'=>18,'attri'=>67,'time'=>14120),array('wood'=>1355,'clay'=>775,'iron'=>1160,'crop'=>385,'pop'=>2,'cp'=>21,'attri'=>64,'time'=>15980),array('wood'=>1735,'clay'=>990,'iron'=>1485,'crop'=>495,'pop'=>2,'cp'=>26,'attri'=>62,'time'=>18050),array('wood'=>2220,'clay'=>1270,'iron'=>1900,'crop'=>635,'pop'=>2,'cp'=>31,'attri'=>60,'time'=>20370),array('wood'=>2840,'clay'=>1625,'iron'=>2435,'crop'=>810,'pop'=>3,'cp'=>37,'attri'=>58,'time'=>22950),array('wood'=>3635,'clay'=>2075,'iron'=>3115,'crop'=>1040,'pop'=>3,'cp'=>44,'attri'=>56,'time'=>25830),array('wood'=>4650,'clay'=>2660,'iron'=>3990,'crop'=>1330,'pop'=>3,'cp'=>53,'attri'=>54,'time'=>29040),array('wood'=>5955,'clay'=>3405,'iron'=>5105,'crop'=>1700,'pop'=>3,'cp'=>64,'attri'=>52,'time'=>32630),array('wood'=>7620,'clay'=>4355,'iron'=>6535,'crop'=>2180,'pop'=>3,'cp'=>77,'attri'=>50,'time'=>0)); +$bid16=array(1=>array('wood'=>110,'clay'=>160,'iron'=>90,'crop'=>70,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>670),array('wood'=>140,'clay'=>205,'iron'=>115,'crop'=>90,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>870),array('wood'=>180,'clay'=>260,'iron'=>145,'crop'=>115,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1110),array('wood'=>230,'clay'=>335,'iron'=>190,'crop'=>145,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1390),array('wood'=>295,'clay'=>430,'iron'=>240,'crop'=>190,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1710),array('wood'=>380,'clay'=>550,'iron'=>310,'crop'=>240,'pop'=>1,'cp'=>3,'attri'=>0,'time'=>2090),array('wood'=>485,'clay'=>705,'iron'=>395,'crop'=>310,'pop'=>1,'cp'=>4,'attri'=>0,'time'=>2520),array('wood'=>620,'clay'=>900,'iron'=>505,'crop'=>395,'pop'=>1,'cp'=>4,'attri'=>0,'time'=>3030),array('wood'=>795,'clay'=>1155,'iron'=>650,'crop'=>505,'pop'=>1,'cp'=>5,'attri'=>0,'time'=>3610),array('wood'=>1015,'clay'=>1475,'iron'=>830,'crop'=>645,'pop'=>1,'cp'=>6,'attri'=>0,'time'=>4290),array('wood'=>1300,'clay'=>1890,'iron'=>1065,'crop'=>825,'pop'=>2,'cp'=>7,'attri'=>0,'time'=>5070),array('wood'=>1660,'clay'=>2420,'iron'=>1360,'crop'=>1060,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>5980),array('wood'=>2130,'clay'=>3095,'iron'=>1740,'crop'=>1355,'pop'=>2,'cp'=>11,'attri'=>0,'time'=>7040),array('wood'=>2725,'clay'=>3960,'iron'=>2230,'crop'=>1735,'pop'=>2,'cp'=>13,'attri'=>0,'time'=>8270),array('wood'=>3485,'clay'=>5070,'iron'=>2850,'crop'=>2220,'pop'=>2,'cp'=>15,'attri'=>0,'time'=>9690),array('wood'=>4460,'clay'=>6490,'iron'=>3650,'crop'=>2840,'pop'=>2,'cp'=>18,'attri'=>0,'time'=>11340),array('wood'=>5710,'clay'=>8310,'iron'=>4675,'crop'=>3635,'pop'=>2,'cp'=>22,'attri'=>0,'time'=>13260),array('wood'=>7310,'clay'=>10635,'iron'=>5980,'crop'=>4650,'pop'=>2,'cp'=>27,'attri'=>0,'time'=>15480),array('wood'=>9360,'clay'=>13610,'iron'=>7655,'crop'=>5955,'pop'=>2,'cp'=>32,'attri'=>0,'time'=>18060),array('wood'=>11980,'clay'=>17420,'iron'=>9800,'crop'=>7620,'pop'=>2,'cp'=>38,'attri'=>0,'time'=>21040)); +$bid17=array(1=>array('wood'=>80,'clay'=>70,'iron'=>120,'crop'=>70,'pop'=>4,'cp'=>4,'attri'=>1,'time'=>1800),array('wood'=>100,'clay'=>90,'iron'=>155,'crop'=>90,'pop'=>2,'cp'=>4,'attri'=>2,'time'=>2390),array('wood'=>130,'clay'=>115,'iron'=>195,'crop'=>115,'pop'=>2,'cp'=>5,'attri'=>3,'time'=>3070),array('wood'=>170,'clay'=>145,'iron'=>250,'crop'=>145,'pop'=>2,'cp'=>6,'attri'=>4,'time'=>3860),array('wood'=>215,'clay'=>190,'iron'=>320,'crop'=>190,'pop'=>2,'cp'=>7,'attri'=>5,'time'=>4780),array('wood'=>275,'clay'=>240,'iron'=>410,'crop'=>240,'pop'=>3,'cp'=>9,'attri'=>6,'time'=>5840),array('wood'=>350,'clay'=>310,'iron'=>530,'crop'=>310,'pop'=>3,'cp'=>11,'attri'=>7,'time'=>7080),array('wood'=>450,'clay'=>395,'iron'=>675,'crop'=>395,'pop'=>3,'cp'=>13,'attri'=>8,'time'=>8510),array('wood'=>575,'clay'=>505,'iron'=>865,'crop'=>505,'pop'=>3,'cp'=>15,'attri'=>9,'time'=>10170),array('wood'=>740,'clay'=>645,'iron'=>1105,'crop'=>645,'pop'=>3,'cp'=>19,'attri'=>10,'time'=>12100),array('wood'=>945,'clay'=>825,'iron'=>1415,'crop'=>825,'pop'=>3,'cp'=>22,'attri'=>11,'time'=>14340),array('wood'=>1210,'clay'=>1060,'iron'=>1815,'crop'=>1060,'pop'=>3,'cp'=>27,'attri'=>12,'time'=>16930),array('wood'=>1545,'clay'=>1355,'iron'=>2320,'crop'=>1355,'pop'=>3,'cp'=>32,'attri'=>13,'time'=>19940),array('wood'=>1980,'clay'=>1735,'iron'=>2970,'crop'=>1735,'pop'=>3,'cp'=>39,'attri'=>14,'time'=>23430),array('wood'=>2535,'clay'=>2220,'iron'=>3805,'crop'=>2220,'pop'=>3,'cp'=>46,'attri'=>15,'time'=>27480),array('wood'=>3245,'clay'=>2840,'iron'=>4870,'crop'=>2840,'pop'=>4,'cp'=>55,'attri'=>16,'time'=>32180),array('wood'=>4155,'clay'=>3635,'iron'=>6230,'crop'=>3635,'pop'=>4,'cp'=>67,'attri'=>17,'time'=>37620),array('wood'=>5315,'clay'=>4650,'iron'=>7975,'crop'=>4650,'pop'=>4,'cp'=>80,'attri'=>18,'time'=>43940),array('wood'=>6805,'clay'=>5955,'iron'=>10210,'crop'=>5955,'pop'=>4,'cp'=>96,'attri'=>19,'time'=>51270),array('wood'=>8710,'clay'=>7620,'iron'=>13065,'crop'=>7620,'pop'=>4,'cp'=>115,'attri'=>20,'time'=>59780)); +$bid18=array(1=>array('wood'=>180,'clay'=>130,'iron'=>150,'crop'=>80,'pop'=>3,'cp'=>5,'attri'=>0,'time'=>2000),array('wood'=>230,'clay'=>165,'iron'=>190,'crop'=>100,'pop'=>2,'cp'=>6,'attri'=>0,'time'=>2620),array('wood'=>295,'clay'=>215,'iron'=>245,'crop'=>130,'pop'=>2,'cp'=>7,'attri'=>9,'time'=>3340),array('wood'=>375,'clay'=>275,'iron'=>315,'crop'=>170,'pop'=>2,'cp'=>8,'attri'=>12,'time'=>4170),array('wood'=>485,'clay'=>350,'iron'=>405,'crop'=>215,'pop'=>2,'cp'=>10,'attri'=>15,'time'=>5140),array('wood'=>620,'clay'=>445,'iron'=>515,'crop'=>275,'pop'=>2,'cp'=>12,'attri'=>18,'time'=>6260),array('wood'=>790,'clay'=>570,'iron'=>660,'crop'=>350,'pop'=>2,'cp'=>14,'attri'=>21,'time'=>7570),array('wood'=>1015,'clay'=>730,'iron'=>845,'crop'=>450,'pop'=>2,'cp'=>17,'attri'=>24,'time'=>9080),array('wood'=>1295,'clay'=>935,'iron'=>1080,'crop'=>575,'pop'=>2,'cp'=>21,'attri'=>27,'time'=>10830),array('wood'=>1660,'clay'=>1200,'iron'=>1385,'crop'=>740,'pop'=>2,'cp'=>25,'attri'=>30,'time'=>12860),array('wood'=>2125,'clay'=>1535,'iron'=>1770,'crop'=>945,'pop'=>3,'cp'=>30,'attri'=>33,'time'=>15220),array('wood'=>2720,'clay'=>1965,'iron'=>2265,'crop'=>1210,'pop'=>3,'cp'=>36,'attri'=>36,'time'=>17950),array('wood'=>3480,'clay'=>2515,'iron'=>2900,'crop'=>1545,'pop'=>3,'cp'=>43,'attri'=>39,'time'=>21130), array('wood'=>4455,'clay'=>3220,'iron'=>3715,'crop'=>1980,'pop'=>3,'cp'=>51,'attri'=>42,'time'=>24810),array('wood'=>5705,'clay'=>4120,'iron'=>4755,'crop'=>2535,'pop'=>3,'cp'=>62,'attri'=>45,'time'=>29080),array('wood'=>7300,'clay'=>5275,'iron'=>6085,'crop'=>3245,'pop'=>3,'cp'=>74,'attri'=>48,'time'=>34030),array('wood'=>9345,'clay'=>6750,'iron'=>7790,'crop'=>4155,'pop'=>3,'cp'=>89,'attri'=>51,'time'=>39770),array('wood'=>11965,'clay'=>8640,'iron'=>9970,'crop'=>5315,'pop'=>3,'cp'=>106,'attri'=>54,'time'=>46440),array('wood'=>15315,'clay'=>11060,'iron'=>12760,'crop'=>6805,'pop'=>3,'cp'=>128,'attri'=>57,'time'=>54170),array('wood'=>19600,'clay'=>14155,'iron'=>16335,'crop'=>8710,'pop'=>3,'cp'=>153,'attri'=>60,'time'=>63130)); +$bid19=array(1=>array('wood'=>210,'clay'=>140,'iron'=>260,'crop'=>120,'pop'=>4,'cp'=>1,'attri'=>100,'time'=>2000),array('wood'=>270,'clay'=>180,'iron'=>335,'crop'=>155,'pop'=>2,'cp'=>1,'attri'=>90,'time'=>2620),array('wood'=>345,'clay'=>230,'iron'=>425,'crop'=>195,'pop'=>2,'cp'=>2,'attri'=>81,'time'=>3340),array('wood'=>440,'clay'=>295,'iron'=>545,'crop'=>250,'pop'=>2,'cp'=>2,'attri'=>72.9,'time'=>4170),array('wood'=>565,'clay'=>375,'iron'=>700,'crop'=>320,'pop'=>2,'cp'=>2,'attri'=>66,'time'=>5140),array('wood'=>720,'clay'=>480,'iron'=>895,'crop'=>410,'pop'=>3,'cp'=>3,'attri'=>59,'time'=>6260),array('wood'=>925,'clay'=>615,'iron'=>1145,'crop'=>530,'pop'=>3,'cp'=>4,'attri'=>53,'time'=>7570),array('wood'=>1180,'clay'=>790,'iron'=>1465,'crop'=>675,'pop'=>3,'cp'=>4,'attri'=>48,'time'=>9080),array('wood'=>1515,'clay'=>1010,'iron'=>1875,'crop'=>865,'pop'=>3,'cp'=>5,'attri'=>43,'time'=>10830),array('wood'=>1935,'clay'=>1290,'iron'=>2400,'crop'=>1105,'pop'=>3,'cp'=>6,'attri'=>39,'time'=>12860),array('wood'=>2480,'clay'=>1655,'iron'=>3070,'crop'=>1415,'pop'=>3,'cp'=>7,'attri'=>35,'time'=>15220),array('wood'=>3175,'clay'=>2115,'iron'=>3930,'crop'=>1815,'pop'=>3,'cp'=>9,'attri'=>31,'time'=>17950),array('wood'=>4060,'clay'=>2710,'iron'=>5030,'crop'=>2320,'pop'=>3,'cp'=>11,'attri'=>28,'time'=>21130),array('wood'=>5200,'clay'=>3465,'iron'=>6435,'crop'=>2970,'pop'=>3,'cp'=>13,'attri'=>25,'time'=>24810),array('wood'=>6655,'clay'=>4435,'iron'=>8240,'crop'=>3805,'pop'=>3,'cp'=>15,'attri'=>23,'time'=>29080),array('wood'=>8520,'clay'=>5680,'iron'=>10545,'crop'=>4870,'pop'=>4,'cp'=>18,'attri'=>21,'time'=>34030),array('wood'=>10905,'clay'=>7270,'iron'=>13500,'crop'=>6230,'pop'=>4,'cp'=>22,'attri'=>19,'time'=>39770),array('wood'=>13955,'clay'=>9305,'iron'=>17280,'crop'=>7975,'pop'=>4,'cp'=>27,'attri'=>17,'time'=>46440),array('wood'=>17865,'clay'=>11910,'iron'=>22120,'crop'=>10210,'pop'=>4,'cp'=>32,'attri'=>15,'time'=>54170),array('wood'=>22865,'clay'=>15245,'iron'=>28310,'crop'=>13065,'pop'=>4,'cp'=>38,'attri'=>14,'time'=>63130)); +$bid20=array(1=>array('wood'=>260,'clay'=>140,'iron'=>220,'crop'=>100,'pop'=>5,'cp'=>2,'attri'=>100,'time'=>2200),array('wood'=>335,'clay'=>180,'iron'=>280,'crop'=>130,'pop'=>3,'cp'=>3,'attri'=>90,'time'=>2850),array('wood'=>425,'clay'=>230,'iron'=>360,'crop'=>165,'pop'=>3,'cp'=>3,'attri'=>81,'time'=>3610),array('wood'=>545,'clay'=>295,'iron'=>460,'crop'=>210,'pop'=>3,'cp'=>4,'attri'=>73,'time'=>4490),array('wood'=>700,'clay'=>375,'iron'=>590,'crop'=>270,'pop'=>3,'cp'=>5,'attri'=>66,'time'=>5500),array('wood'=>895,'clay'=>480,'iron'=>755,'crop'=>345,'pop'=>3,'cp'=>6,'attri'=>59,'time'=>6680),array('wood'=>1145,'clay'=>615,'iron'=>970,'crop'=>440,'pop'=>3,'cp'=>7,'attri'=>53,'time'=>8050),array('wood'=>1465,'clay'=>790,'iron'=>1240,'crop'=>565,'pop'=>3,'cp'=>9,'attri'=>48,'time'=>9640),array('wood'=>1875,'clay'=>1010,'iron'=>1585,'crop'=>720,'pop'=>3,'cp'=>10,'attri'=>43,'time'=>11480),array('wood'=>2400,'clay'=>1290,'iron'=>2030,'crop'=>920,'pop'=>3,'cp'=>12,'attri'=>39,'time'=>13620),array('wood'=>3070,'clay'=>1655,'iron'=>2595,'crop'=>1180,'pop'=>4,'cp'=>15,'attri'=>35,'time'=>16100),array('wood'=>3930,'clay'=>2115,'iron'=>3325,'crop'=>1510,'pop'=>4,'cp'=>18,'attri'=>31,'time'=>18980),array('wood'=>5030,'clay'=>2710,'iron'=>4255,'crop'=>1935,'pop'=>4,'cp'=>21,'attri'=>28,'time'=>22310),array('wood'=>6435,'clay'=>3465,'iron'=>5445,'crop'=>2475,'pop'=>4,'cp'=>26,'attri'=>25,'time'=>26180),array('wood'=>8240,'clay'=>4435,'iron'=>6970,'crop'=>3170,'pop'=>4,'cp'=>31,'attri'=>23,'time'=>30670),array('wood'=>10545,'clay'=>5680,'iron'=>8925,'crop'=>4055,'pop'=>4,'cp'=>37,'attri'=>21,'time'=>35880),array('wood'=>13500,'clay'=>7270,'iron'=>11425,'crop'=>5190,'pop'=>4,'cp'=>44,'attri'=>19,'time'=>41920),array('wood'=>17280,'clay'=>9305,'iron'=>14620,'crop'=>6645,'pop'=>4,'cp'=>53,'attri'=>17,'time'=>48930),array('wood'=>22120,'clay'=>11910,'iron'=>18715,'crop'=>8505,'pop'=>4,'cp'=>64,'attri'=>15,'time'=>57060),array('wood'=>28310,'clay'=>15245,'iron'=>23955,'crop'=>10890,'pop'=>4,'cp'=>77,'attri'=>14,'time'=>66490)); +$bid21=array(1=>array('wood'=>460,'clay'=>510,'iron'=>600,'crop'=>320,'pop'=>3,'cp'=>4,'attri'=>100,'time'=>3000),array('wood'=>590,'clay'=>655,'iron'=>770,'crop'=>410,'pop'=>2,'cp'=>4,'attri'=>90,'time'=>3780),array('wood'=>755,'clay'=>835,'iron'=>985,'crop'=>525,'pop'=>2,'cp'=>5,'attri'=>81,'time'=>4680),array('wood'=>965,'clay'=>1070,'iron'=>1260,'crop'=>670,'pop'=>2,'cp'=>6,'attri'=>73,'time'=>5730),array('wood'=>1235,'clay'=>1370,'iron'=>1610,'crop'=>860,'pop'=>2,'cp'=>7,'attri'=>66,'time'=>6950),array('wood'=>1580,'clay'=>1750,'iron'=>2060,'crop'=>1100,'pop'=>2,'cp'=>9,'attri'=>59,'time'=>8360),array('wood'=>2025,'clay'=>2245,'iron'=>2640,'crop'=>1405,'pop'=>2,'cp'=>11,'attri'=>53,'time'=>10000),array('wood'=>2590,'clay'=>2870,'iron'=>3380,'crop'=>1800,'pop'=>2,'cp'=>13,'attri'=>48,'time'=>11900),array('wood'=>3315,'clay'=>3675,'iron'=>4325,'crop'=>2305,'pop'=>2,'cp'=>15,'attri'=>43,'time'=>14110),array('wood'=>4245,'clay'=>4705,'iron'=>5535,'crop'=>2950,'pop'=>2,'cp'=>19,'attri'=>39,'time'=>16660),array('wood'=>5430,'clay'=>6020,'iron'=>7085,'crop'=>3780,'pop'=>3,'cp'=>22,'attri'=>35,'time'=>19630),array('wood'=>6950,'clay'=>7705,'iron'=>9065,'crop'=>4835,'pop'=>3,'cp'=>27,'attri'=>31,'time'=>23070),array('wood'=>8900,'clay'=>9865,'iron'=>11605,'crop'=>6190,'pop'=>3,'cp'=>32,'attri'=>28,'time'=>27060),array('wood'=>11390,'clay'=>12625,'iron'=>14855,'crop'=>7925,'pop'=>3,'cp'=>39,'attri'=>25,'time'=>31690),array('wood'=>14580,'clay'=>16165,'iron'=>19015,'crop'=>10140,'pop'=>3,'cp'=>46,'attri'=>23,'time'=>37060),array('wood'=>18660,'clay'=>20690,'iron'=>24340,'crop'=>12980,'pop'=>3,'cp'=>55,'attri'=>21,'time'=>43290),array('wood'=>23885,'clay'=>26480,'iron'=>31155,'crop'=>16615,'pop'=>3,'cp'=>67,'attri'=>19,'time'=>50520),array('wood'=>30570,'clay'=>33895,'iron'=>39875,'crop'=>21270,'pop'=>3,'cp'=>80,'attri'=>17,'time'=>58900),array('wood'=>39130,'clay'=>43385,'iron'=>51040,'crop'=>27225,'pop'=>3,'cp'=>96,'attri'=>15,'time'=>68630),array('wood'=>50090,'clay'=>55535,'iron'=>65335,'crop'=>34845,'pop'=>3,'cp'=>115,'attri'=>14,'time'=>79910)); +$bid22=array(1=>array('wood'=>220,'clay'=>160,'iron'=>90,'crop'=>40,'pop'=>4,'cp'=>5,'attri'=>0,'time'=>2000),array('wood'=>280,'clay'=>205,'iron'=>115,'crop'=>50,'pop'=>2,'cp'=>6,'attri'=>0,'time'=>2620),array('wood'=>360,'clay'=>260,'iron'=>145,'crop'=>65,'pop'=>2,'cp'=>7,'attri'=>0,'time'=>3340),array('wood'=>460,'clay'=>335,'iron'=>190,'crop'=>85,'pop'=>2,'cp'=>8,'attri'=>0,'time'=>4170),array('wood'=>590,'clay'=>430,'iron'=>240,'crop'=>105,'pop'=>2,'cp'=>10,'attri'=>0,'time'=>5140),array('wood'=>755,'clay'=>550,'iron'=>310,'crop'=>135,'pop'=>3,'cp'=>12,'attri'=>0,'time'=>6260),array('wood'=>970,'clay'=>705,'iron'=>395,'crop'=>175,'pop'=>3,'cp'=>14,'attri'=>0,'time'=>7570),array('wood'=>1240,'clay'=>900,'iron'=>505,'crop'=>225,'pop'=>3,'cp'=>17,'attri'=>0,'time'=>9080),array('wood'=>1585,'clay'=>1155,'iron'=>650,'crop'=>290,'pop'=>3,'cp'=>21,'attri'=>0,'time'=>10830),array('wood'=>2030,'clay'=>1475,'iron'=>830,'crop'=>370,'pop'=>3,'cp'=>25,'attri'=>0,'time'=>12860),array('wood'=>2595,'clay'=>1890,'iron'=>1065,'crop'=>470,'pop'=>3,'cp'=>30,'attri'=>0,'time'=>15220),array('wood'=>3325,'clay'=>2420,'iron'=>1360,'crop'=>605,'pop'=>3,'cp'=>36,'attri'=>0,'time'=>17950),array('wood'=>4255,'clay'=>3095,'iron'=>1740,'crop'=>775,'pop'=>3,'cp'=>43,'attri'=>0,'time'=>21130),array('wood'=>5445,'clay'=>3960,'iron'=>2230,'crop'=>990,'pop'=>3,'cp'=>51,'attri'=>0,'time'=>24810),array('wood'=>6970,'clay'=>5070,'iron'=>2850,'crop'=>1270,'pop'=>3,'cp'=>62,'attri'=>0,'time'=>29080),array('wood'=>8925,'clay'=>6490,'iron'=>3650,'crop'=>1625,'pop'=>4,'cp'=>74,'attri'=>0,'time'=>34030),array('wood'=>11425,'clay'=>8310,'iron'=>4675,'crop'=>2075,'pop'=>4,'cp'=>89,'attri'=>0,'time'=>39770),array('wood'=>14620,'clay'=>10635,'iron'=>5980,'crop'=>2660,'pop'=>4,'cp'=>106,'attri'=>0,'time'=>46440),array('wood'=>18715,'clay'=>13610,'iron'=>7655,'crop'=>3405,'pop'=>4,'cp'=>128,'attri'=>0,'time'=>54170),array('wood'=>23955,'clay'=>17420,'iron'=>9800,'crop'=>4355,'pop'=>4,'cp'=>153,'attri'=>0,'time'=>63130)); +$bid23=array(1=>array('wood'=>40,'clay'=>50,'iron'=>30,'crop'=>10,'pop'=>0,'cp'=>1,'attri'=>100,'time'=>750),array('wood'=>50,'clay'=>65,'iron'=>40,'crop'=>15,'pop'=>0,'cp'=>1,'attri'=>130,'time'=>1170),array('wood'=>65,'clay'=>80,'iron'=>50,'crop'=>15,'pop'=>0,'cp'=>2,'attri'=>170,'time'=>1660),array('wood'=>85,'clay'=>105,'iron'=>65,'crop'=>20,'pop'=>0,'cp'=>2,'attri'=>220,'time'=>2220),array('wood'=>105,'clay'=>135,'iron'=>80,'crop'=>25,'pop'=>0,'cp'=>2,'attri'=>280,'time'=>2880),array('wood'=>135,'clay'=>170,'iron'=>105,'crop'=>35,'pop'=>1,'cp'=>3,'attri'=>360,'time'=>3640),array('wood'=>175,'clay'=>220,'iron'=>130,'crop'=>45,'pop'=>1,'cp'=>4,'attri'=>460,'time'=>4520),array('wood'=>225,'clay'=>280,'iron'=>170,'crop'=>55,'pop'=>1,'cp'=>4,'attri'=>600,'time'=>5540),array('wood'=>290,'clay'=>360,'iron'=>215,'crop'=>70,'pop'=>1,'cp'=>5,'attri'=>770,'time'=>6730),array('wood'=>370,'clay'=>460,'iron'=>275,'crop'=>90,'pop'=>1,'cp'=>6,'attri'=>1000,'time'=>8110)); +$bid24=array(1=>array('wood'=>1250,'clay'=>1110,'iron'=>1260,'crop'=>600,'pop'=>4,'cp'=>6,'attri'=>0,'time'=>12500),array('wood'=>1600,'clay'=>1420,'iron'=>1615,'crop'=>770,'pop'=>2,'cp'=>7,'attri'=>0,'time'=>14800),array('wood'=>2050,'clay'=>1820,'iron'=>2065,'crop'=>985,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>17470),array('wood'=>2620,'clay'=>2330,'iron'=>2640,'crop'=>1260,'pop'=>2,'cp'=>10,'attri'=>0,'time'=>20560),array('wood'=>3355,'clay'=>2980,'iron'=>3380,'crop'=>1610,'pop'=>2,'cp'=>12,'attri'=>0,'time'=>24150),array('wood'=>4295,'clay'=>3815,'iron'=>4330,'crop'=>2060,'pop'=>3,'cp'=>15,'attri'=>0,'time'=>28320),array('wood'=>5500,'clay'=>4880,'iron'=>5540,'crop'=>2640,'pop'=>3,'cp'=>18,'attri'=>0,'time'=>33150),array('wood'=>7035,'clay'=>6250,'iron'=>7095,'crop'=>3380,'pop'=>3,'cp'=>21,'attri'=>0,'time'=>38750),array('wood'=>9005,'clay'=>8000,'iron'=>9080,'crop'=>4325,'pop'=>3,'cp'=>26,'attri'=>0,'time'=>45250),array('wood'=>11530,'clay'=>10240,'iron'=>11620,'crop'=>5535,'pop'=>3,'cp'=>31,'attri'=>0,'time'=>52790),array('wood'=>14755,'clay'=>13105,'iron'=>14875,'crop'=>7085,'pop'=>3,'cp'=>37,'attri'=>0,'time'=>61540),array('wood'=>18890,'clay'=>16775,'iron'=>19040,'crop'=>9065,'pop'=>3,'cp'=>45,'attri'=>0,'time'=>71690),array('wood'=>24180,'clay'=>21470,'iron'=>24370,'crop'=>11605,'pop'=>3,'cp'=>53,'attri'=>0,'time'=>83460),array('wood'=>30950,'clay'=>27480,'iron'=>31195,'crop'=>14855,'pop'=>3,'cp'=>64,'attri'=>0,'time'=>97110),array('wood'=>39615,'clay'=>35175,'iron'=>39930,'crop'=>19015,'pop'=>3,'cp'=>77,'attri'=>0,'time'=>112950),array('wood'=>50705,'clay'=>45025,'iron'=>51110,'crop'=>24340,'pop'=>4,'cp'=>92,'attri'=>0,'time'=>131320),array('wood'=>64905,'clay'=>57635,'iron'=>65425,'crop'=>31155,'pop'=>4,'cp'=>111,'attri'=>0,'time'=>152630),array('wood'=>83075,'clay'=>73770,'iron'=>83740,'crop'=>39875,'pop'=>4,'cp'=>133,'attri'=>0,'time'=>177350),array('wood'=>106340,'clay'=>94430,'iron'=>107190,'crop'=>51040,'pop'=>4,'cp'=>160,'attri'=>0,'time'=>206020),array('wood'=>136115,'clay'=>120870,'iron'=>137200,'crop'=>65335,'pop'=>4,'cp'=>192,'attri'=>0,'time'=>239290)); +$bid25=array(1=>array('wood'=>580,'clay'=>460,'iron'=>350,'crop'=>180,'pop'=>1,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>740,'clay'=>590,'iron'=>450,'crop'=>230,'pop'=>1,'cp'=>3,'attri'=>90,'time'=>2620),array('wood'=>950,'clay'=>755,'iron'=>575,'crop'=>295,'pop'=>1,'cp'=>3,'attri'=>81,'time'=>3340),array('wood'=>1215,'clay'=>965,'iron'=>735,'crop'=>375,'pop'=>1,'cp'=>4,'attri'=>73,'time'=>4170),array('wood'=>1555,'clay'=>1235,'iron'=>940,'crop'=>485,'pop'=>1,'cp'=>5,'attri'=>66,'time'=>5140),array('wood'=>1995,'clay'=>1580,'iron'=>1205,'crop'=>620,'pop'=>1,'cp'=>6,'attri'=>59,'time'=>6260),array('wood'=>2550,'clay'=>2025,'iron'=>1540,'crop'=>790,'pop'=>1,'cp'=>7,'attri'=>53,'time'=>7570),array('wood'=>3265,'clay'=>2590,'iron'=>1970,'crop'=>1015,'pop'=>1,'cp'=>9,'attri'=>48,'time'=>9080),array('wood'=>4180,'clay'=>3315,'iron'=>2520,'crop'=>1295,'pop'=>1,'cp'=>10,'attri'=>43,'time'=>10830),array('wood'=>5350,'clay'=>4245,'iron'=>3230,'crop'=>1660,'pop'=>1,'cp'=>12,'attri'=>39,'time'=>12860),array('wood'=>6845,'clay'=>5430,'iron'=>4130,'crop'=>2125,'pop'=>2,'cp'=>15,'attri'=>35,'time'=>15220),array('wood'=>8765,'clay'=>6950,'iron'=>5290,'crop'=>2720,'pop'=>2,'cp'=>18,'attri'=>31,'time'=>17950),array('wood'=>11220,'clay'=>8900,'iron'=>6770,'crop'=>3480,'pop'=>2,'cp'=>21,'attri'=>28,'time'=>21130),array('wood'=>14360,'clay'=>11390,'iron'=>8665,'crop'=>4455,'pop'=>2,'cp'=>26,'attri'=>25,'time'=>24810),array('wood'=>18380,'clay'=>14580,'iron'=>11090,'crop'=>5705,'pop'=>2,'cp'=>31,'attri'=>23,'time'=>29080),array('wood'=>23530,'clay'=>18660,'iron'=>14200,'crop'=>7300,'pop'=>2,'cp'=>37,'attri'=>21,'time'=>34030),array('wood'=>30115,'clay'=>23885,'iron'=>18175,'crop'=>9345,'pop'=>2,'cp'=>44,'attri'=>19,'time'=>39770),array('wood'=>38550,'clay'=>30570,'iron'=>23260,'crop'=>11965,'pop'=>2,'cp'=>53,'attri'=>17,'time'=>46440),array('wood'=>49340,'clay'=>39130,'iron'=>29775,'crop'=>15315,'pop'=>2,'cp'=>64,'attri'=>15,'time'=>54170),array('wood'=>63155,'clay'=>50090,'iron'=>38110,'crop'=>19600,'pop'=>2,'cp'=>77,'attri'=>14,'time'=>63130)); +$bid26=array(1=>array('wood'=>550,'clay'=>800,'iron'=>750,'crop'=>250,'pop'=>1,'cp'=>6,'attri'=>100,'time'=>5000),array('wood'=>705,'clay'=>1025,'iron'=>960,'crop'=>320,'pop'=>1,'cp'=>7,'attri'=>90,'time'=>6100),array('wood'=>900,'clay'=>1310,'iron'=>1230,'crop'=>410,'pop'=>1,'cp'=>9,'attri'=>81,'time'=>7380),array('wood'=>1155,'clay'=>1680,'iron'=>1575,'crop'=>525,'pop'=>1,'cp'=>10,'attri'=>73,'time'=>8860),array('wood'=>1475,'clay'=>2145,'iron'=>2015,'crop'=>670,'pop'=>1,'cp'=>12,'attri'=>66,'time'=>10570),array('wood'=>1890,'clay'=>2750,'iron'=>2575,'crop'=>860,'pop'=>1,'cp'=>15,'attri'=>59,'time'=>12560),array('wood'=>2420,'clay'=>3520,'iron'=>3300,'crop'=>1100,'pop'=>1,'cp'=>18,'attri'=>53,'time'=>14880),array('wood'=>3095,'clay'=>4505,'iron'=>4220,'crop'=>1405,'pop'=>1,'cp'=>21,'attri'=>48,'time'=>17560),array('wood'=>3965,'clay'=>5765,'iron'=>5405,'crop'=>1800,'pop'=>1,'cp'=>26,'attri'=>43,'time'=>20660),array('wood'=>5075,'clay'=>7380,'iron'=>6920,'crop'=>2305,'pop'=>1,'cp'=>31,'attri'=>39,'time'=>24270),array('wood'=>6495,'clay'=>9445,'iron'=>8855,'crop'=>2950,'pop'=>2,'cp'=>37,'attri'=>35,'time'=>28450),array('wood'=>8310,'clay'=>12090,'iron'=>11335,'crop'=>3780,'pop'=>2,'cp'=>45,'attri'=>31,'time'=>33310),array('wood'=>10640,'clay'=>15475,'iron'=>14505,'crop'=>4835,'pop'=>2,'cp'=>53,'attri'=>28,'time'=>38940),array('wood'=>13615,'clay'=>19805,'iron'=>18570,'crop'=>6190,'pop'=>2,'cp'=>64,'attri'=>25,'time'=>45460),array('wood'=>17430,'clay'=>25355,'iron'=>23770,'crop'=>7925,'pop'=>2,'cp'=>77,'attri'=>23,'time'=>53040),array('wood'=>22310,'clay'=>32450,'iron'=>30425,'crop'=>10140,'pop'=>2,'cp'=>92,'attri'=>21,'time'=>61830),array('wood'=>28560,'clay'=>41540,'iron'=>38940,'crop'=>12980,'pop'=>2,'cp'=>111,'attri'=>19,'time'=>72020),array('wood'=>36555,'clay'=>53170,'iron'=>49845,'crop'=>16615,'pop'=>2,'cp'=>133,'attri'=>17,'time'=>83840),array('wood'=>46790,'clay'=>68055,'iron'=>63805,'crop'=>21270,'pop'=>2,'cp'=>160,'attri'=>15,'time'=>97550),array('wood'=>59890,'clay'=>87110,'iron'=>81670,'crop'=>27225,'pop'=>2,'cp'=>192,'attri'=>14,'time'=>113460)); +$bid27=array(1=>array('wood'=>2880,'clay'=>2740,'iron'=>2580,'crop'=>990,'pop'=>4,'cp'=>7,'attri'=>0,'time'=>8000),array('wood'=>3630,'clay'=>3450,'iron'=>3250,'crop'=>1245,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>9580),array('wood'=>4570,'clay'=>4350,'iron'=>4095,'crop'=>1570,'pop'=>2,'cp'=>10,'attri'=>0,'time'=>11410),array('wood'=>5760,'clay'=>5480,'iron'=>5160,'crop'=>1980,'pop'=>2,'cp'=>12,'attri'=>0,'time'=>13540),array('wood'=>7260,'clay'=>6905,'iron'=>6505,'crop'=>2495,'pop'=>2,'cp'=>15,'attri'=>0,'time'=>16010),array('wood'=>9145,'clay'=>8700,'iron'=>8195,'crop'=>3145,'pop'=>3,'cp'=>18,'attri'=>0,'time'=>18870),array('wood'=>11525,'clay'=>10965,'iron'=>10325,'crop'=>3960,'pop'=>3,'cp'=>21,'attri'=>0,'time'=>22180),array('wood'=>14520,'clay'=>13815,'iron'=>13010,'crop'=>4990,'pop'=>3,'cp'=>26,'attri'=>0,'time'=>26030),array('wood'=>18295,'clay'=>17405,'iron'=>16390,'crop'=>6290,'pop'=>3,'cp'=>31,'attri'=>0,'time'=>30500),array('wood'=>23055,'clay'=>21930,'iron'=>20650,'crop'=>7925,'pop'=>3,'cp'=>37,'attri'=>1,'time'=>35680),array('wood'=>9045,'clay'=>27635,'iron'=>26020,'crop'=>9985,'pop'=>3,'cp'=>45,'attri'=>1,'time'=>41690),array('wood'=>6600,'clay'=>34820,'iron'=>32785,'crop'=>12580,'pop'=>3,'cp'=>53,'attri'=>1,'time'=>48660),array('wood'=>46115,'clay'=>43875,'iron'=>41310,'crop'=>15850,'pop'=>3,'cp'=>64,'attri'=>1,'time'=>56740),array('wood'=>58105,'clay'=>55280,'iron'=>52050,'crop'=>19975,'pop'=>3,'cp'=>77,'attri'=>1,'time'=>66120),array('wood'=>73210,'clay'=>69655,'iron'=>65585,'crop'=>25165,'pop'=>3,'cp'=>92,'attri'=>1,'time'=>77000),array('wood'=>92245,'clay'=>87760,'iron'=>82640,'crop'=>31710,'pop'=>4,'cp'=>111,'attri'=>1,'time'=>89620),array('wood'=>116230,'clay'=>110580,'iron'=>104125,'crop'=>39955,'pop'=>4,'cp'=>133,'attri'=>1,'time'=>104260),array('wood'=>146450,'clay'=>139330,'iron'=>131195,'crop'=>50340,'pop'=>4,'cp'=>160,'attri'=>1,'time'=>121240),array('wood'=>184530,'clay'=>175560,'iron'=>165305,'crop'=>63430,'pop'=>4,'cp'=>192,'attri'=>1,'time'=>140940),array('wood'=>232505,'clay'=>221205,'iron'=>208285,'crop'=>79925,'pop'=>4,'cp'=>230,'attri'=>1,'time'=>163790)); +$bid28=array(1=>array('wood'=>1400,'clay'=>1330,'iron'=>1200,'crop'=>400,'pop'=>3,'cp'=>4,'attri'=>110,'time'=>3000),array('wood'=>1790,'clay'=>1700,'iron'=>1535,'crop'=>510,'pop'=>2,'cp'=>4,'attri'=>120,'time'=>3780),array('wood'=>2295,'clay'=>2180,'iron'=>1965,'crop'=>655,'pop'=>2,'cp'=>5,'attri'=>130,'time'=>4680),array('wood'=>2935,'clay'=>2790,'iron'=>2515,'crop'=>840,'pop'=>2,'cp'=>6,'attri'=>140,'time'=>5730),array('wood'=>3760,'clay'=>3570,'iron'=>3220,'crop'=>1075,'pop'=>2,'cp'=>7,'attri'=>150,'time'=>6950),array('wood'=>4810,'clay'=>4570,'iron'=>4125,'crop'=>1375,'pop'=>2,'cp'=>9,'attri'=>160,'time'=>8360),array('wood'=>6155,'clay'=>5850,'iron'=>5280,'crop'=>1760,'pop'=>2,'cp'=>11,'attri'=>170,'time'=>10000),array('wood'=>7880,'clay'=>7485,'iron'=>6755,'crop'=>2250,'pop'=>2,'cp'=>13,'attri'=>180,'time'=>11900),array('wood'=>10090,'clay'=>9585,'iron'=>8645,'crop'=>2880,'pop'=>2,'cp'=>15,'attri'=>190,'time'=>14110),array('wood'=>12915,'clay'=>12265,'iron'=>11070,'crop'=>3690,'pop'=>2,'cp'=>19,'attri'=>200,'time'=>16660),array('wood'=>16530,'clay'=>15700,'iron'=>14165,'crop'=>4720,'pop'=>3,'cp'=>22,'attri'=>210,'time'=>19630),array('wood'=>21155,'clay'=>20100,'iron'=>18135,'crop'=>6045,'pop'=>3,'cp'=>27,'attri'=>220,'time'=>23070),array('wood'=>27080,'clay'=>25725,'iron'=>23210,'crop'=>7735,'pop'=>3,'cp'=>32,'attri'=>230,'time'=>27060),array('wood'=>4660,'clay'=>32930,'iron'=>29710,'crop'=>9905,'pop'=>3,'cp'=>39,'attri'=>240,'time'=>31690),array('wood'=>44370,'clay'=>42150,'iron'=>38030,'crop'=>12675,'pop'=>3,'cp'=>46,'attri'=>250,'time'=>37060),array('wood'=>56790,'clay'=>53950,'iron'=>48680,'crop'=>16225,'pop'=>3,'cp'=>55,'attri'=>260,'time'=>43290),array('wood'=>72690,'clay'=>69060,'iron'=>62310,'crop'=>20770,'pop'=>3,'cp'=>67,'attri'=>270,'time'=>50520),array('wood'=>93045,'clay'=>88395,'iron'=>79755,'crop'=>26585,'pop'=>3,'cp'=>80,'attri'=>280,'time'=>58900),array('wood'=>119100,'clay'=>113145,'iron'=>102085,'crop'=>34030,'pop'=>3,'cp'=>96,'attri'=>290,'time'=>68630),array('wood'=>152445,'clay'=>144825,'iron'=>130670,'crop'=>43555,'pop'=>3,'cp'=>115,'attri'=>300,'time'=>79910)); +$bid29=array(1=>array('wood'=>630,'clay'=>420,'iron'=>780,'crop'=>360,'pop'=>4,'cp'=>1,'attri'=>100,'time'=>2000),array('wood'=>805,'clay'=>540,'iron'=>1000,'crop'=>460,'pop'=>2,'cp'=>1,'attri'=>90,'time'=>2620),array('wood'=>1030,'clay'=>690,'iron'=>1280,'crop'=>590,'pop'=>2,'cp'=>2,'attri'=>81,'time'=>3340),array('wood'=>1320,'clay'=>880,'iron'=>1635,'crop'=>755,'pop'=>2,'cp'=>2,'attri'=>73,'time'=>4170),array('wood'=>1690,'clay'=>1125,'iron'=>2095,'crop'=>965,'pop'=>2,'cp'=>2,'attri'=>66,'time'=>5140),array('wood'=>2165,'clay'=>1445,'iron'=>2680,'crop'=>1235,'pop'=>3,'cp'=>3,'attri'=>59,'time'=>6260),array('wood'=>2770,'clay'=>1845,'iron'=>3430,'crop'=>1585,'pop'=>3,'cp'=>4,'attri'=>53,'time'=>7570),array('wood'=>3545,'clay'=>2365,'iron'=>4390,'crop'=>2025,'pop'=>3,'cp'=>4,'attri'=>48,'time'=>9080),array('wood'=>4540,'clay'=>3025,'iron'=>5620,'crop'=>2595,'pop'=>3,'cp'=>5,'attri'=>43,'time'=>10830),array('wood'=>5810,'clay'=>3875,'iron'=>7195,'crop'=>3320,'pop'=>3,'cp'=>6,'attri'=>39,'time'=>12860),array('wood'=>7440,'clay'=>4960,'iron'=>9210,'crop'=>4250,'pop'=>3,'cp'=>7,'attri'=>35,'time'=>15220),array('wood'=>9520,'clay'=>6345,'iron'=>11785,'crop'=>5440,'pop'=>3,'cp'=>9,'attri'=>31,'time'=>17950),array('wood'=>12185,'clay'=>8125,'iron'=>15085,'crop'=>6965,'pop'=>3,'cp'=>11,'attri'=>28,'time'=>21130),array('wood'=>15600,'clay'=>10400,'iron'=>19310,'crop'=>8915,'pop'=>3,'cp'=>13,'attri'=>25,'time'=>24810),array('wood'=>19965,'clay'=>13310,'iron'=>24720,'crop'=>11410,'pop'=>3,'cp'=>15,'attri'=>23,'time'=>29080),array('wood'=>25555,'clay'=>17035,'iron'=>31640,'crop'=>14605,'pop'=>4,'cp'=>18,'attri'=>21,'time'=>34030),array('wood'=>32710,'clay'=>21810,'iron'=>40500,'crop'=>18690,'pop'=>4,'cp'=>22,'attri'=>19,'time'=>39770),array('wood'=>41870,'clay'=>27915,'iron'=>51840,'crop'=>23925,'pop'=>4,'cp'=>27,'attri'=>17,'time'=>46440),array('wood'=>53595,'clay'=>35730,'iron'=>66355,'crop'=>30625,'pop'=>4,'cp'=>32,'attri'=>15,'time'=>54170),array('wood'=>68600,'clay'=>45735,'iron'=>84935,'crop'=>39200,'pop'=>4,'cp'=>38,'attri'=>14,'time'=>63130)); +$bid30=array(1=>array('wood'=>780,'clay'=>420,'iron'=>660,'crop'=>300,'pop'=>5,'cp'=>2,'attri'=>100,'time'=>2200),array('wood'=>1000,'clay'=>540,'iron'=>845,'crop'=>385,'pop'=>3,'cp'=>3,'attri'=>90,'time'=>2850),array('wood'=>1280,'clay'=>690,'iron'=>1080,'crop'=>490,'pop'=>3,'cp'=>3,'attri'=>81,'time'=>3610),array('wood'=>1635,'clay'=>880,'iron'=>1385,'crop'=>630,'pop'=>3,'cp'=>4,'attri'=>73,'time'=>4490),array('wood'=>2095,'clay'=>1125,'iron'=>1770,'crop'=>805,'pop'=>3,'cp'=>5,'attri'=>66,'time'=>5500),array('wood'=>2680,'clay'=>1445,'iron'=>2270,'crop'=>1030,'pop'=>3,'cp'=>6,'attri'=>59,'time'=>6680),array('wood'=>3430,'clay'=>1845,'iron'=>2905,'crop'=>1320,'pop'=>3,'cp'=>7,'attri'=>53,'time'=>8050),array('wood'=>4390,'clay'=>2365,'iron'=>3715,'crop'=>1690,'pop'=>3,'cp'=>9,'attri'=>48,'time'=>9640),array('wood'=>5620,'clay'=>3025,'iron'=>4755,'crop'=>2160,'pop'=>3,'cp'=>10,'attri'=>43,'time'=>11480),array('wood'=>7195,'clay'=>3875,'iron'=>6085,'crop'=>2765,'pop'=>3,'cp'=>12,'attri'=>39,'time'=>13620),array('wood'=>9210,'clay'=>4960,'iron'=>7790,'crop'=>3540,'pop'=>4,'cp'=>15,'attri'=>35,'time'=>16100),array('wood'=>11785,'clay'=>6345,'iron'=>9975,'crop'=>4535,'pop'=>4,'cp'=>18,'attri'=>31,'time'=>18980),array('wood'=>15085,'clay'=>8125,'iron'=>12765,'crop'=>5805,'pop'=>4,'cp'=>21,'attri'=>28,'time'=>22310),array('wood'=>19310,'clay'=>10400,'iron'=>16340,'crop'=>7430,'pop'=>4,'cp'=>26,'attri'=>25,'time'=>26180),array('wood'=>24720,'clay'=>13310,'iron'=>20915,'crop'=>9505,'pop'=>4,'cp'=>31,'attri'=>23,'time'=>30670),array('wood'=>31640,'clay'=>17035,'iron'=>26775,'crop'=>12170,'pop'=>4,'cp'=>37,'attri'=>21,'time'=>35880),array('wood'=>40500,'clay'=>21810,'iron'=>34270,'crop'=>15575,'pop'=>4,'cp'=>44,'attri'=>19,'time'=>41920),array('wood'=>51840,'clay'=>27915,'iron'=>43865,'crop'=>19940,'pop'=>4,'cp'=>53,'attri'=>17,'time'=>48930),array('wood'=>66355,'clay'=>35730,'iron'=>56145,'crop'=>25520,'pop'=>4,'cp'=>64,'attri'=>15,'time'=>57060),array('wood'=>84935,'clay'=>45735,'iron'=>71870,'crop'=>32665,'pop'=>4,'cp'=>77,'attri'=>14,'time'=>66490)); +$bid31=array(1=>array('wood'=>70,'clay'=>90,'iron'=>170,'crop'=>70,'pop'=>0,'cp'=>1,'attri'=>3,'time'=>2000),array('wood'=>90,'clay'=>115,'iron'=>220,'crop'=>90,'pop'=>0,'cp'=>1,'attri'=>6,'time'=>2620),array('wood'=>115,'clay'=>145,'iron'=>280,'crop'=>115,'pop'=>0,'cp'=>2,'attri'=>9,'time'=>3340),array('wood'=>145,'clay'=>190,'iron'=>355,'crop'=>145,'pop'=>0,'cp'=>2,'attri'=>13,'time'=>4170),array('wood'=>190,'clay'=>240,'iron'=>455,'crop'=>190,'pop'=>0,'cp'=>2,'attri'=>16,'time'=>5140),array('wood'=>240,'clay'=>310,'iron'=>585,'crop'=>240,'pop'=>1,'cp'=>3,'attri'=>19,'time'=>6260),array('wood'=>310,'clay'=>395,'iron'=>750,'crop'=>310,'pop'=>1,'cp'=>4,'attri'=>23,'time'=>7570),array('wood'=>395,'clay'=>505,'iron'=>955,'crop'=>395,'pop'=>1,'cp'=>4,'attri'=>27,'time'=>9080),array('wood'=>505,'clay'=>650,'iron'=>1225,'crop'=>505,'pop'=>1,'cp'=>5,'attri'=>30,'time'=>10830),array('wood'=>645,'clay'=>830,'iron'=>1570,'crop'=>645,'pop'=>1,'cp'=>6,'attri'=>34,'time'=>12860),array('wood'=>825,'clay'=>1065,'iron'=>2005,'crop'=>825,'pop'=>1,'cp'=>7,'attri'=>38,'time'=>15220),array('wood'=>1060,'clay'=>1360,'iron'=>2570,'crop'=>1060,'pop'=>1,'cp'=>9,'attri'=>43,'time'=>17950),array('wood'=>1355,'clay'=>1740,'iron'=>3290,'crop'=>1355,'pop'=>1,'cp'=>11,'attri'=>47,'time'=>21130),array('wood'=>1735,'clay'=>2230,'iron'=>4210,'crop'=>1735,'pop'=>1,'cp'=>13,'attri'=>51,'time'=>24810),array('wood'=>2220,'clay'=>2850,'iron'=>5390,'crop'=>2220,'pop'=>1,'cp'=>15,'attri'=>56,'time'=>29080),array('wood'=>2840,'clay'=>3650,'iron'=>6895,'crop'=>2840,'pop'=>2,'cp'=>18,'attri'=>60,'time'=>34030),array('wood'=>3635,'clay'=>4675,'iron'=>8825,'crop'=>3635,'pop'=>2,'cp'=>22,'attri'=>65,'time'=>39770),array('wood'=>4650,'clay'=>5980,'iron'=>11300,'crop'=>4650,'pop'=>2,'cp'=>27,'attri'=>70,'time'=>46440),array('wood'=>5955,'clay'=>7655,'iron'=>14460,'crop'=>5955,'pop'=>2,'cp'=>32,'attri'=>75,'time'=>54170),array('wood'=>7620,'clay'=>9800,'iron'=>18510,'crop'=>7620,'pop'=>2,'cp'=>38,'attri'=>81,'time'=>63130)); +$bid32=array(1=>array('wood'=>120,'clay'=>200,'iron'=>0,'crop'=>80,'pop'=>0,'cp'=>1,'attri'=>2,'time'=>2000),array('wood'=>155,'clay'=>255,'iron'=>0,'crop'=>100,'pop'=>0,'cp'=>1,'attri'=>4,'time'=>2620),array('wood'=>195,'clay'=>330,'iron'=>0,'crop'=>130,'pop'=>0,'cp'=>2,'attri'=>6,'time'=>3340),array('wood'=>250,'clay'=>420,'iron'=>0,'crop'=>170,'pop'=>0,'cp'=>2,'attri'=>8,'time'=>4170),array('wood'=>320,'clay'=>535,'iron'=>0,'crop'=>215,'pop'=>0,'cp'=>2,'attri'=>10,'time'=>5140),array('wood'=>410,'clay'=>685,'iron'=>0,'crop'=>275,'pop'=>1,'cp'=>3,'attri'=>13,'time'=>6260),array('wood'=>530,'clay'=>880,'iron'=>0,'crop'=>350,'pop'=>1,'cp'=>4,'attri'=>15,'time'=>7570),array('wood'=>675,'clay'=>1125,'iron'=>0,'crop'=>450,'pop'=>1,'cp'=>4,'attri'=>17,'time'=>9080),array('wood'=>865,'clay'=>1440,'iron'=>0,'crop'=>575,'pop'=>1,'cp'=>5,'attri'=>20,'time'=>10830),array('wood'=>1105,'clay'=>1845,'iron'=>0,'crop'=>740,'pop'=>1,'cp'=>6,'attri'=>22,'time'=>12860),array('wood'=>1415,'clay'=>2360,'iron'=>0,'crop'=>945,'pop'=>1,'cp'=>7,'attri'=>24,'time'=>15220),array('wood'=>1815,'clay'=>3020,'iron'=>0,'crop'=>1210,'pop'=>1,'cp'=>9,'attri'=>27,'time'=>17950),array('wood'=>2320,'clay'=>3870,'iron'=>0,'crop'=>1545,'pop'=>1,'cp'=>11,'attri'=>29,'time'=>21130),array('wood'=>2970,'clay'=>4950,'iron'=>0,'crop'=>1980,'pop'=>1,'cp'=>13,'attri'=>32,'time'=>24810),array('wood'=>3805,'clay'=>6340,'iron'=>0,'crop'=>2535,'pop'=>1,'cp'=>15,'attri'=>35,'time'=>29080),array('wood'=>4870,'clay'=>8115,'iron'=>0,'crop'=>3245,'pop'=>2,'cp'=>18,'attri'=>37,'time'=>34030),array('wood'=>6230,'clay'=>10385,'iron'=>0,'crop'=>4155,'pop'=>2,'cp'=>22,'attri'=>40,'time'=>39770),array('wood'=>7975,'clay'=>13290,'iron'=>0,'crop'=>5315,'pop'=>2,'cp'=>27,'attri'=>43,'time'=>46440),array('wood'=>10210,'clay'=>17015,'iron'=>0,'crop'=>6805,'pop'=>2,'cp'=>32,'attri'=>46,'time'=>54170),array('wood'=>13065,'clay'=>21780,'iron'=>0,'crop'=>8710,'pop'=>2,'cp'=>38,'attri'=>49,'time'=>63130)); +$bid33=array(1=>array('wood'=>160,'clay'=>100,'iron'=>80,'crop'=>60,'pop'=>0,'cp'=>1,'attri'=>2,'time'=>2000),array('wood'=>205,'clay'=>130,'iron'=>100,'crop'=>75,'pop'=>0,'cp'=>1,'attri'=>5,'time'=>2620),array('wood'=>260,'clay'=>165,'iron'=>130,'crop'=>100,'pop'=>0,'cp'=>2,'attri'=>8,'time'=>3340),array('wood'=>335,'clay'=>210,'iron'=>170,'crop'=>125,'pop'=>0,'cp'=>2,'attri'=>10,'time'=>4170),array('wood'=>430,'clay'=>270,'iron'=>215,'crop'=>160,'pop'=>0,'cp'=>2,'attri'=>13,'time'=>5140),array('wood'=>550,'clay'=>345,'iron'=>275,'crop'=>205,'pop'=>1,'cp'=>3,'attri'=>16,'time'=>6260),array('wood'=>705,'clay'=>440,'iron'=>350,'crop'=>265,'pop'=>1,'cp'=>4,'attri'=>19,'time'=>7570),array('wood'=>900,'clay'=>565,'iron'=>450,'crop'=>340,'pop'=>1,'cp'=>4,'attri'=>22,'time'=>9080),array('wood'=>1155,'clay'=>720,'iron'=>575,'crop'=>430,'pop'=>1,'cp'=>5,'attri'=>25,'time'=>10830),array('wood'=>1475,'clay'=>920,'iron'=>740,'crop'=>555,'pop'=>1,'cp'=>6,'attri'=>28,'time'=>12860),array('wood'=>1890,'clay'=>1180,'iron'=>945,'crop'=>710,'pop'=>1,'cp'=>7,'attri'=>31,'time'=>15220),array('wood'=>2420,'clay'=>1510,'iron'=>1210,'crop'=>905,'pop'=>1,'cp'=>9,'attri'=>34,'time'=>17950),array('wood'=>3095,'clay'=>1935,'iron'=>1545,'crop'=>1160,'pop'=>1,'cp'=>11,'attri'=>38,'time'=>21130),array('wood'=>3960,'clay'=>2475,'iron'=>1980,'crop'=>1485,'pop'=>1,'cp'=>13,'attri'=>41,'time'=>24810),array('wood'=>5070,'clay'=>3170,'iron'=>2535,'crop'=>1900,'pop'=>1,'cp'=>15,'attri'=>45,'time'=>29080),array('wood'=>6490,'clay'=>4055,'iron'=>3245,'crop'=>2435,'pop'=>2,'cp'=>18,'attri'=>48,'time'=>34030),array('wood'=>8310,'clay'=>5190,'iron'=>4155,'crop'=>3115,'pop'=>2,'cp'=>22,'attri'=>52,'time'=>39770),array('wood'=>10635,'clay'=>6645,'iron'=>5315,'crop'=>3990,'pop'=>2,'cp'=>27,'attri'=>56,'time'=>46440),array('wood'=>13610,'clay'=>8505,'iron'=>6805,'crop'=>5105,'pop'=>2,'cp'=>32,'attri'=>60,'time'=>54170),array('wood'=>17420,'clay'=>10890,'iron'=>8710,'crop'=>6535,'pop'=>2,'cp'=>38,'attri'=>64,'time'=>63130)); +$bid34=array(1=>array('wood'=>155,'clay'=>130,'iron'=>125,'crop'=>70,'pop'=>2,'cp'=>1,'attri'=>110,'time'=>2200),array('wood'=>200,'clay'=>165,'iron'=>160,'crop'=>90,'pop'=>1,'cp'=>1,'attri'=>120,'time'=>3150),array('wood'=>255,'clay'=>215,'iron'=>205,'crop'=>115,'pop'=>1,'cp'=>2,'attri'=>130,'time'=>4260),array('wood'=>325,'clay'=>275,'iron'=>260,'crop'=>145,'pop'=>1,'cp'=>2,'attri'=>140,'time'=>5540),array('wood'=>415,'clay'=>350,'iron'=>335,'crop'=>190,'pop'=>1,'cp'=>2,'attri'=>150,'time'=>7020),array('wood'=>535,'clay'=>445,'iron'=>430,'crop'=>240,'pop'=>2,'cp'=>3,'attri'=>160,'time'=>8750),array('wood'=>680,'clay'=>570,'iron'=>550,'crop'=>310,'pop'=>2,'cp'=>4,'attri'=>170,'time'=>10750),array('wood'=>875,'clay'=>730,'iron'=>705,'crop'=>395,'pop'=>2,'cp'=>4,'attri'=>180,'time'=>13070),array('wood'=>1115,'clay'=>935,'iron'=>900,'crop'=>505,'pop'=>2,'cp'=>5,'attri'=>190,'time'=>15760),array('wood'=>1430,'clay'=>1200,'iron'=>1155,'crop'=>645,'pop'=>2,'cp'=>6,'attri'=>200,'time'=>18880),array('wood'=>1830,'clay'=>1535,'iron'=>1475,'crop'=>825,'pop'=>2,'cp'=>7,'attri'=>210,'time'=>22500),array('wood'=>2340,'clay'=>1965,'iron'=>1890,'crop'=>1060,'pop'=>2,'cp'=>9,'attri'=>220,'time'=>26700),array('wood'=>3000,'clay'=>2515,'iron'=>2420,'crop'=>1355,'pop'=>2,'cp'=>11,'attri'=>230,'time'=>31570),array('wood'=>3840,'clay'=>3220,'iron'=>3095,'crop'=>1735,'pop'=>2,'cp'=>13,'attri'=>240,'time'=>37220),array('wood'=>4910,'clay'=>4120,'iron'=>3960,'crop'=>2220,'pop'=>2,'cp'=>15,'attri'=>250,'time'=>43780),array('wood'=>6290,'clay'=>5275,'iron'=>5070,'crop'=>2840,'pop'=>3,'cp'=>18,'attri'=>260,'time'=>51380),array('wood'=>8050,'clay'=>6750,'iron'=>6490,'crop'=>3635,'pop'=>3,'cp'=>22,'attri'=>270,'time'=>60200),array('wood'=>10300,'clay'=>8640,'iron'=>8310,'crop'=>4650,'pop'=>3,'cp'=>27,'attri'=>280,'time'=>70430),array('wood'=>13185,'clay'=>11060,'iron'=>10635,'crop'=>5955,'pop'=>3,'cp'=>32,'attri'=>290,'time'=>82300),array('wood'=>16880,'clay'=>14155,'iron'=>13610,'crop'=>7620,'pop'=>3,'cp'=>38,'attri'=>300,'time'=>96070)); +$bid35=array(1=>array('wood'=>1460,'clay'=>930,'iron'=>1250,'crop'=>1740,'pop'=>6,'cp'=>5,'attri'=>0,'time'=>8000),array('wood'=>2045,'clay'=>1300,'iron'=>1750,'crop'=>2435,'pop'=>3,'cp'=>6,'attri'=>0,'time'=>9880),array('wood'=>2860,'clay'=>1825,'iron'=>2450,'crop'=>3410,'pop'=>3,'cp'=>7,'attri'=>0,'time'=>12060),array('wood'=>4005,'clay'=>2550,'iron'=>3430,'crop'=>4775,'pop'=>3,'cp'=>8,'attri'=>0,'time'=>14590),array('wood'=>5610,'clay'=>3575,'iron'=>4800,'crop'=>6685,'pop'=>3,'cp'=>10,'attri'=>0,'time'=>17530),array('wood'=>7850,'clay'=>5000,'iron'=>6725,'crop'=>9360,'pop'=>4,'cp'=>12,'attri'=>0,'time'=>20930),array('wood'=>10995,'clay'=>7000,'iron'=>9410,'crop'=>13100,'pop'=>4,'cp'=>14,'attri'=>0,'time'=>24880),array('wood'=>15390,'clay'=>9805,'iron'=>13175,'crop'=>18340,'pop'=>4,'cp'=>17,'attri'=>0,'time'=>29460),array('wood'=>21545,'clay'=>13725,'iron'=>18445,'crop'=>25680,'pop'=>4,'cp'=>21,'attri'=>0,'time'=>34770),array('wood'=>30165,'clay'=>19215,'iron'=>25825,'crop'=>35950,'pop'=>4,'cp'=>25,'attri'=>0,'time'=>40930)); +$bid36=array(1=>array('wood'=>100,'clay'=>100,'iron'=>100,'crop'=>100,'pop'=>4,'cp'=>1,'attri'=>10,'time'=>2000),array('wood'=>130,'clay'=>130,'iron'=>130,'crop'=>130,'pop'=>2,'cp'=>1,'attri'=>22,'time'=>2320),array('wood'=>165,'clay'=>165,'iron'=>165,'crop'=>165,'pop'=>2,'cp'=>2,'attri'=>35,'time'=>2690),array('wood'=>210,'clay'=>210,'iron'=>210,'crop'=>210,'pop'=>2,'cp'=>2,'attri'=>49,'time'=>3120),array('wood'=>270,'clay'=>270,'iron'=>270,'crop'=>270,'pop'=>2,'cp'=>2,'attri'=>64,'time'=>3620),array('wood'=>345,'clay'=>345,'iron'=>345,'crop'=>345,'pop'=>3,'cp'=>3,'attri'=>80,'time'=>4200),array('wood'=>440,'clay'=>440,'iron'=>440,'crop'=>440,'pop'=>3,'cp'=>4,'attri'=>97,'time'=>4870),array('wood'=>565,'clay'=>565,'iron'=>565,'crop'=>565,'pop'=>3,'cp'=>4,'attri'=>115,'time'=>5650),array('wood'=>720,'clay'=>720,'iron'=>720,'crop'=>720,'pop'=>3,'cp'=>5,'attri'=>134,'time'=>6560),array('wood'=>920,'clay'=>920,'iron'=>920,'crop'=>920,'pop'=>3,'cp'=>6,'attri'=>154,'time'=>7610),array('wood'=>1180,'clay'=>1180,'iron'=>1180,'crop'=>1180,'pop'=>3,'cp'=>7,'attri'=>175,'time'=>8820),array('wood'=>1510,'clay'=>1510,'iron'=>1510,'crop'=>1510,'pop'=>3,'cp'=>9,'attri'=>196,'time'=>10230),array('wood'=>1935,'clay'=>1935,'iron'=>1935,'crop'=>1935,'pop'=>3,'cp'=>11,'attri'=>218,'time'=>11870),array('wood'=>2475,'clay'=>2475,'iron'=>2475,'crop'=>2475,'pop'=>3,'cp'=>13,'attri'=>241,'time'=>13770),array('wood'=>3170,'clay'=>3170,'iron'=>3170,'crop'=>3170,'pop'=>3,'cp'=>15,'attri'=>265,'time'=>15980),array('wood'=>4055,'clay'=>4055,'iron'=>4055,'crop'=>4055,'pop'=>4,'cp'=>18,'attri'=>290,'time'=>18530),array('wood'=>5190,'clay'=>5190,'iron'=>5190,'crop'=>5190,'pop'=>4,'cp'=>22,'attri'=>316,'time'=>21500),array('wood'=>6645,'clay'=>6645,'iron'=>6645,'crop'=>6645,'pop'=>4,'cp'=>27,'attri'=>343,'time'=>24940),array('wood'=>8505,'clay'=>8505,'iron'=>8505,'crop'=>8505,'pop'=>4,'cp'=>32,'attri'=>371,'time'=>28930),array('wood'=>10890,'clay'=>10890,'iron'=>10890,'crop'=>10890,'pop'=>4,'cp'=>38,'attri'=>400,'time'=>33550)); +$bid37=array(1=>array('wood'=>700,'clay'=>670,'iron'=>700,'crop'=>240,'pop'=>2,'cp'=>1,'attri'=>0,'time'=>2300),array('wood'=>930,'clay'=>890,'iron'=>930,'crop'=>320,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>2670),array('wood'=>1240,'clay'=>1185,'iron'=>1240,'crop'=>425,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>3090),array('wood'=>1645,'clay'=>1575,'iron'=>1645,'crop'=>565,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>3590),array('wood'=>2190,'clay'=>2095,'iron'=>2190,'crop'=>750,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>4160),array('wood'=>2915,'clay'=>2790,'iron'=>2915,'crop'=>1000,'pop'=>2,'cp'=>3,'attri'=>0,'time'=>4830),array('wood'=>3875,'clay'=>3710,'iron'=>3875,'crop'=>1330,'pop'=>2,'cp'=>4,'attri'=>0,'time'=>5600),array('wood'=>5155,'clay'=>4930,'iron'=>5155,'crop'=>1765,'pop'=>2,'cp'=>4,'attri'=>0,'time'=>6500),array('wood'=>6855,'clay'=>6560,'iron'=>6855,'crop'=>2350,'pop'=>2,'cp'=>5,'attri'=>0,'time'=>7540),array('wood'=>9115,'clay'=>8725,'iron'=>9115,'crop'=>3125,'pop'=>2,'cp'=>6,'attri'=>1,'time'=>8750),array('wood'=>12125,'clay'=>11605,'iron'=>12125,'crop'=>4155,'pop'=>2,'cp'=>7,'attri'=>1,'time'=>10150),array('wood'=>16125,'clay'=>15435,'iron'=>16125,'crop'=>5530,'pop'=>2,'cp'=>9,'attri'=>1,'time'=>11770),array('wood'=>21445,'clay'=>20525,'iron'=>21445,'crop'=>7350,'pop'=>2,'cp'=>11,'attri'=>1,'time'=>13650),array('wood'=>28520,'clay'=>27300,'iron'=>28520,'crop'=>9780,'pop'=>2,'cp'=>13,'attri'=>1,'time'=>15840),array('wood'=>37935,'clay'=>36310,'iron'=>37935,'crop'=>13005,'pop'=>2,'cp'=>15,'attri'=>2,'time'=>18370),array('wood'=>50450,'clay'=>48290,'iron'=>50450,'crop'=>17300,'pop'=>3,'cp'=>18,'attri'=>2,'time'=>21310),array('wood'=>67100,'clay'=>64225,'iron'=>67100,'crop'=>23005,'pop'=>3,'cp'=>22,'attri'=>2,'time'=>24720),array('wood'=>89245,'clay'=>85420,'iron'=>89245,'crop'=>30600,'pop'=>3,'cp'=>27,'attri'=>2,'time'=>28680),array('wood'=>118695,'clay'=>113605,'iron'=>118695,'crop'=>40695,'pop'=>3,'cp'=>32,'attri'=>2,'time'=>33260),array('wood'=>157865,'clay'=>151095,'iron'=>157865,'crop'=>54125,'pop'=>3,'cp'=>38,'attri'=>3,'time'=>38590)); +$bid38=array(1=>array('wood'=>650,'clay'=>800,'iron'=>450,'crop'=>200,'pop'=>1,'cp'=>1,'attri'=>3600,'time'=>9000),array('wood'=>830,'clay'=>1025,'iron'=>575,'crop'=>255,'pop'=>1,'cp'=>1,'attri'=>5100,'time'=>10740),array('wood'=>1065,'clay'=>1310,'iron'=>735,'crop'=>330,'pop'=>1,'cp'=>2,'attri'=>6900,'time'=>12760),array('wood'=>1365,'clay'=>1680,'iron'=>945,'crop'=>420,'pop'=>1,'cp'=>2,'attri'=>9300,'time'=>15100),array('wood'=>1745,'clay'=>2145,'iron'=>1210,'crop'=>535,'pop'=>1,'cp'=>2,'attri'=>12000,'time'=>17820),array('wood'=>2235,'clay'=>2750,'iron'=>1545,'crop'=>685,'pop'=>1,'cp'=>3,'attri'=>15000,'time'=>20970),array('wood'=>2860,'clay'=>3520,'iron'=>1980,'crop'=>880,'pop'=>1,'cp'=>4,'attri'=>18900,'time'=>24620),array('wood'=>3660,'clay'=>4505,'iron'=>2535,'crop'=>1125,'pop'=>1,'cp'=>4,'attri'=>23400,'time'=>28860),array('wood'=>4685,'clay'=>5765,'iron'=>3245,'crop'=>1440,'pop'=>1,'cp'=>5,'attri'=>28800,'time'=>33780),array('wood'=>5995,'clay'=>7380,'iron'=>4150,'crop'=>1845,'pop'=>1,'cp'=>6,'attri'=>35400,'time'=>39480),array('wood'=>7675,'clay'=>9445,'iron'=>5315,'crop'=>2360,'pop'=>2,'cp'=>7,'attri'=>43200,'time'=>46100),array('wood'=>9825,'clay'=>12090,'iron'=>6800,'crop'=>3020,'pop'=>2,'cp'=>9,'attri'=>52800,'time'=>53780),array('wood'=>12575,'clay'=>15475,'iron'=>8705,'crop'=>3870,'pop'=>2,'cp'=>11,'attri'=>64200,'time'=>62680),array('wood'=>16095,'clay'=>19805,'iron'=>11140,'crop'=>4950,'pop'=>2,'cp'=>13,'attri'=>77700,'time'=>73010),array('wood'=>20600,'clay'=>25355,'iron'=>14260,'crop'=>6340,'pop'=>2,'cp'=>15,'attri'=>93900,'time'=>84990),array('wood'=>26365,'clay'=>32450,'iron'=>18255,'crop'=>8115,'pop'=>2,'cp'=>18,'attri'=>113700,'time'=>98890),array('wood'=>33750,'clay'=>41540,'iron'=>23365,'crop'=>10385,'pop'=>2,'cp'=>22,'attri'=>137100,'time'=>115010),array('wood'=>43200,'clay'=>53170,'iron'=>29910,'crop'=>13290,'pop'=>2,'cp'=>27,'attri'=>165300,'time'=>133710),array('wood'=>55295,'clay'=>68055,'iron'=>38280,'crop'=>17015,'pop'=>2,'cp'=>32,'attri'=>199200,'time'=>155400),array('wood'=>70780,'clay'=>87110,'iron'=>49000,'crop'=>21780,'pop'=>2,'cp'=>38,'attri'=>240000,'time'=>180570)); +$bid39=array(1=>array('wood'=>400,'clay'=>500,'iron'=>350,'crop'=>100,'pop'=>1,'cp'=>1,'attri'=>3600,'time'=>7000),array('wood'=>510,'clay'=>640,'iron'=>450,'crop'=>130,'pop'=>1,'cp'=>1,'attri'=>5100,'time'=>8420),array('wood'=>655,'clay'=>820,'iron'=>575,'crop'=>165,'pop'=>1,'cp'=>2,'attri'=>6900,'time'=>10070),array('wood'=>840,'clay'=>1050,'iron'=>735,'crop'=>210,'pop'=>1,'cp'=>2,'attri'=>9300,'time'=>11980),array('wood'=>1075,'clay'=>1340,'iron'=>940,'crop'=>270,'pop'=>1,'cp'=>2,'attri'=>12000,'time'=>14190),array('wood'=>1375,'clay'=>1720,'iron'=>1205,'crop'=>345,'pop'=>1,'cp'=>3,'attri'=>15000,'time'=>16770),array('wood'=>1760,'clay'=>2200,'iron'=>1540,'crop'=>440,'pop'=>1,'cp'=>4,'attri'=>18900,'time'=>19750),array('wood'=>2250,'clay'=>2815,'iron'=>1970,'crop'=>565,'pop'=>1,'cp'=>4,'attri'=>23400,'time'=>23210),array('wood'=>2880,'clay'=>3605,'iron'=>2520,'crop'=>720,'pop'=>1,'cp'=>5,'attri'=>28800,'time'=>27220),array('wood'=>3690,'clay'=>4610,'iron'=>3230,'crop'=>920,'pop'=>1,'cp'=>6,'attri'=>35400,'time'=>31880),array('wood'=>4720,'clay'=>5905,'iron'=>4130,'crop'=>1180,'pop'=>2,'cp'=>7,'attri'=>43200,'time'=>37280),array('wood'=>6045,'clay'=>7555,'iron'=>5290,'crop'=>1510,'pop'=>2,'cp'=>9,'attri'=>52800,'time'=>43540),array('wood'=>7735,'clay'=>9670,'iron'=>6770,'crop'=>1935,'pop'=>2,'cp'=>11,'attri'=>64200,'time'=>50810),array('wood'=>9905,'clay'=>12380,'iron'=>8665,'crop'=>2475,'pop'=>2,'cp'=>13,'attri'=>77700,'time'=>59240),array('wood'=>12675,'clay'=>15845,'iron'=>11090,'crop'=>3170,'pop'=>2,'cp'=>15,'attri'=>93900,'time'=>69010),array('wood'=>16225,'clay'=>20280,'iron'=>14200,'crop'=>4055,'pop'=>2,'cp'=>18,'attri'=>113700,'time'=>80360),array('wood'=>20770,'clay'=>25960,'iron'=>18175,'crop'=>5190,'pop'=>2,'cp'=>22,'attri'=>137100,'time'=>93510),array('wood'=>26585,'clay'=>33230,'iron'=>23260,'crop'=>6645,'pop'=>2,'cp'=>27,'attri'=>165300,'time'=>108780),array('wood'=>34030,'clay'=>42535,'iron'=>29775,'crop'=>8505,'pop'=>2,'cp'=>32,'attri'=>199200,'time'=>126480),array('wood'=>43555,'clay'=>54445,'iron'=>38110,'crop'=>10890,'pop'=>2,'cp'=>38,'attri'=>240000,'time'=>147020)); +$bid40=array(1=>array('wood'=>66700,'clay'=>69050,'iron'=>72200,'crop'=>13200,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>18000),array('wood'=>68535,'clay'=>70950,'iron'=>74185,'crop'=>13565,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>18850),array('wood'=>70420,'clay'=>72900,'iron'=>76225,'crop'=>13935,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>19720),array('wood'=>72355,'clay'=>74905,'iron'=>78320,'crop'=>14320,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>20590),array('wood'=>74345,'clay'=>76965,'iron'=>80475,'crop'=>14715,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>21480),array('wood'=>76390,'clay'=>79080,'iron'=>82690,'crop'=>15120,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>22380),array('wood'=>78490,'clay'=>81255,'iron'=>84965,'crop'=>15535,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>23290),array('wood'=>80650,'clay'=>83490,'iron'=>87300,'crop'=>15960,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>24220),array('wood'=>82865,'clay'=>85785,'iron'=>89700,'crop'=>16400,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>25160),array('wood'=>85145,'clay'=>88145,'iron'=>92165,'crop'=>16850,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>26110),array('wood'=>87485,'clay'=>90570,'iron'=>94700,'crop'=>17315,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>27080),array('wood'=>89895,'clay'=>93060,'iron'=>97305,'crop'=>17790,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>28060),array('wood'=>92365,'clay'=>95620,'iron'=>99980,'crop'=>18280,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>29050),array('wood'=>94905,'clay'=>98250,'iron'=>102730,'crop'=>18780,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>30060),array('wood'=>97515,'clay'=>100950,'iron'=>105555,'crop'=>19300,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>31080),array('wood'=>100195,'clay'=>103725,'iron'=>108460,'crop'=>19830,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>32110),array('wood'=>102950,'clay'=>106580,'iron'=>111440,'crop'=>20375,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>33160),array('wood'=>105785,'clay'=>109510,'iron'=>114505,'crop'=>20935,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>34230),array('wood'=>108690,'clay'=>112520,'iron'=>117655,'crop'=>21510,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>35300),array('wood'=>111680,'clay'=>115615,'iron'=>120890,'crop'=>22100,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>36400),array('wood'=>114755,'clay'=>118795,'iron'=>124215,'crop'=>22710,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>37510),array('wood'=>117910,'clay'=>122060,'iron'=>127630,'crop'=>23335,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>38630),array('wood'=>121150,'clay'=>125420,'iron'=>131140,'crop'=>23975,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>39770),array('wood'=>124480,'clay'=>128870,'iron'=>134745,'crop'=>24635,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>40930),array('wood'=>127905,'clay'=>132410,'iron'=>138455,'crop'=>25315,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>42100),array('wood'=>131425,'clay'=>136055,'iron'=>142260,'crop'=>26010,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>43290),array('wood'=>135035,'clay'=>139795,'iron'=>146170,'crop'=>26725,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>44500),array('wood'=>138750,'clay'=>143640,'iron'=>150190,'crop'=>27460,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>45720),array('wood'=>142565,'clay'=>147590,'iron'=>154320,'crop'=>28215,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>46960),array('wood'=>146485,'clay'=>151650,'iron'=>158565,'crop'=>28990,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>48220),array('wood'=>150515,'clay'=>155820,'iron'=>162925,'crop'=>29785,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>49500),array('wood'=>154655,'clay'=>160105,'iron'=>167405,'crop'=>30605,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>50790),array('wood'=>158910,'clay'=>164505,'iron'=>172010,'crop'=>31450,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>52100),array('wood'=>163275,'clay'=>169030,'iron'=>176740,'crop'=>32315,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>53430),array('wood'=>167770,'clay'=>173680,'iron'=>181600,'crop'=>33200,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>54780),array('wood'=>172380,'clay'=>178455,'iron'=>186595,'crop'=>34115,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>56140),array('wood'=>177120,'clay'=>183360,'iron'=>191725,'crop'=>35055,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>57530),array('wood'=>181995,'clay'=>188405,'iron'=>197000,'crop'=>36015,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>58940),array('wood'=>186995,'clay'=>193585,'iron'=>202415,'crop'=>37005,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>60360),array('wood'=>192140,'clay'=>198910,'iron'=>207985,'crop'=>38025,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>61810),array('wood'=>197425,'clay'=>204380,'iron'=>213705,'crop'=>39070,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>63270),array('wood'=>202855,'clay'=>210000,'iron'=>219580,'crop'=>40145,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>64760),array('wood'=>208430,'clay'=>215775,'iron'=>225620,'crop'=>41250,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>66260),array('wood'=>214165,'clay'=>221710,'iron'=>231825,'crop'=>42385,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>67790),array('wood'=>220055,'clay'=>227805,'iron'=>238200,'crop'=>43550,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>69340),array('wood'=>226105,'clay'=>234070,'iron'=>244750,'crop'=>44745,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>70910),array('wood'=>232320,'clay'=>240505,'iron'=>251480,'crop'=>45975,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>72500),array('wood'=>238710,'clay'=>247120,'iron'=>258395,'crop'=>47240,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>74120),array('wood'=>245275,'clay'=>253915,'iron'=>265500,'crop'=>48540,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>75760),array('wood'=>252020,'clay'=>260900,'iron'=>272800,'crop'=>49875,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>77420),array('wood'=>258950,'clay'=>268075,'iron'=>280305,'crop'=>51245,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>79100),array('wood'=>266070,'clay'=>275445,'iron'=>288010,'crop'=>52655,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>80810),array('wood'=>273390,'clay'=>283020,'iron'=>295930,'crop'=>54105,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>82540),array('wood'=>280905,'clay'=>290805,'iron'=>304070,'crop'=>55590,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>84290),array('wood'=>288630,'clay'=>298800,'iron'=>312430,'crop'=>57120,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>86070),array('wood'=>296570,'clay'=>307020,'iron'=>321025,'crop'=>58690,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>87880),array('wood'=>304725,'clay'=>315460,'iron'=>329850,'crop'=>60305,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>89710),array('wood'=>313105,'clay'=>324135,'iron'=>338925,'crop'=>61965,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>91570),array('wood'=>321715,'clay'=>333050,'iron'=>348245,'crop'=>63670,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>93450),array('wood'=>330565,'clay'=>342210,'iron'=>357820,'crop'=>65420,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>95360),array('wood'=>339655,'clay'=>351620,'iron'=>367660,'crop'=>67220,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>97290),array('wood'=>348995,'clay'=>361290,'iron'=>377770,'crop'=>69065,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>99250),array('wood'=>358590,'clay'=>371225,'iron'=>388160,'crop'=>70965,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>101240),array('wood'=>368450,'clay'=>381435,'iron'=>398835,'crop'=>72915,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>103260),array('wood'=>378585,'clay'=>391925,'iron'=>409800,'crop'=>74920,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>105310),array('wood'=>388995,'clay'=>402700,'iron'=>421070,'crop'=>76985,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>107380),array('wood'=>399695,'clay'=>413775,'iron'=>432650,'crop'=>79100,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>109480),array('wood'=>410685,'clay'=>425155,'iron'=>444550,'crop'=>81275,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>111620),array('wood'=>421980,'clay'=>436845,'iron'=>456775,'crop'=>83510,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>113780),array('wood'=>433585,'clay'=>448860,'iron'=>469335,'crop'=>85805,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>115970),array('wood'=>445505,'clay'=>461205,'iron'=>482240,'crop'=>88165,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>118200),array('wood'=>457760,'clay'=>473885,'iron'=>495505,'crop'=>90590,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>120450),array('wood'=>470345,'clay'=>486920,'iron'=>509130,'crop'=>93080,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>122740),array('wood'=>483280,'clay'=>500310,'iron'=>523130,'crop'=>95640,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>125060),array('wood'=>496570,'clay'=>514065,'iron'=>537520,'crop'=>98270,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>127410),array('wood'=>510225,'clay'=>528205,'iron'=>552300,'crop'=>100975,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>129790),array('wood'=>524260,'clay'=>542730,'iron'=>567490,'crop'=>103750,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>132210),array('wood'=>538675,'clay'=>557655,'iron'=>583095,'crop'=>106605,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>134660),array('wood'=>553490,'clay'=>572990,'iron'=>599130,'crop'=>109535,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>137140),array('wood'=>568710,'clay'=>588745,'iron'=>615605,'crop'=>112550,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>139660),array('wood'=>584350,'clay'=>604935,'iron'=>632535,'crop'=>115645,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>142220),array('wood'=>600420,'clay'=>621575,'iron'=>649930,'crop'=>118825,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>144810),array('wood'=>616930,'clay'=>638665,'iron'=>667800,'crop'=>122090,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>147440),array('wood'=>633895,'clay'=>656230,'iron'=>686165,'crop'=>125450,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>150100),array('wood'=>651330,'clay'=>674275,'iron'=>705035,'crop'=>128900,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>152800),array('wood'=>669240,'clay'=>692820,'iron'=>724425,'crop'=>132445,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>155540),array('wood'=>687645,'clay'=>711870,'iron'=>744345,'crop'=>136085,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>158320),array('wood'=>706555,'clay'=>731445,'iron'=>764815,'crop'=>139830,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>161140),array('wood'=>725985,'clay'=>751560,'iron'=>785850,'crop'=>143675,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>163990),array('wood'=>745950,'clay'=>772230,'iron'=>807460,'crop'=>147625,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>166890),array('wood'=>766460,'clay'=>793465,'iron'=>829665,'crop'=>151685,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>169820),array('wood'=>787540,'clay'=>815285,'iron'=>852480,'crop'=>155855,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>172800),array('wood'=>809195,'clay'=>837705,'iron'=>875920,'crop'=>160140,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>175820),array('wood'=>831450,'clay'=>860745,'iron'=>900010,'crop'=>164545,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>178880),array('wood'=>854315,'clay'=>884415,'iron'=>924760,'crop'=>169070,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>181990),array('wood'=>877810,'clay'=>908735,'iron'=>950190,'crop'=>173720,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>185130),array('wood'=>901950,'clay'=>933725,'iron'=>976320,'crop'=>178495,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>188330),array('wood'=>926750,'clay'=>959405,'iron'=>1000000,'crop'=>183405,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>191560),array('wood'=>952235,'clay'=>985785,'iron'=>1000000,'crop'=>188450,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>194840),array('wood'=>1000000,'clay'=>1000000,'iron'=>1000000,'crop'=>193630,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>198170)); +$bid41=array(1=>array('wood'=>780,'clay'=>420,'iron'=>660,'crop'=>540,'pop'=>5,'cp'=>4,'attri'=>0,'time'=>2200),array('wood'=>1000,'clay'=>540,'iron'=>845,'crop'=>690,'pop'=>3,'cp'=>4,'attri'=>0,'time'=>3150),array('wood'=>1280,'clay'=>690,'iron'=>1080,'crop'=>885,'pop'=>3,'cp'=>5,'attri'=>0,'time'=>4260),array('wood'=>1635,'clay'=>880,'iron'=>1385,'crop'=>1130,'pop'=>3,'cp'=>6,'attri'=>0,'time'=>5540),array('wood'=>2095,'clay'=>1125,'iron'=>1770,'crop'=>1450,'pop'=>3,'cp'=>7,'attri'=>0,'time'=>7020),array('wood'=>2680,'clay'=>1445,'iron'=>2270,'crop'=>1855,'pop'=>3,'cp'=>9,'attri'=>0,'time'=>8750),array('wood'=>3430,'clay'=>1845,'iron'=>2905,'crop'=>2375,'pop'=>3,'cp'=>11,'attri'=>0,'time'=>10750),array('wood'=>4390,'clay'=>2365,'iron'=>3715,'crop'=>3040,'pop'=>3,'cp'=>13,'attri'=>0,'time'=>13070),array('wood'=>5620,'clay'=>3025,'iron'=>4755,'crop'=>3890,'pop'=>3,'cp'=>15,'attri'=>0,'time'=>15760),array('wood'=>7195,'clay'=>3875,'iron'=>6085,'crop'=>4980,'pop'=>3,'cp'=>19,'attri'=>0,'time'=>18880),array('wood'=>9210,'clay'=>4960,'iron'=>7790,'crop'=>6375,'pop'=>4,'cp'=>22,'attri'=>0,'time'=>22500),array('wood'=>11785,'clay'=>6345,'iron'=>9975,'crop'=>8160,'pop'=>4,'cp'=>27,'attri'=>0,'time'=>26700),array('wood'=>15085,'clay'=>8125,'iron'=>12765,'crop'=>10445,'pop'=>4,'cp'=>32,'attri'=>0,'time'=>31570),array('wood'=>19310,'clay'=>10400,'iron'=>16340,'crop'=>13370,'pop'=>4,'cp'=>39,'attri'=>0,'time'=>37220),array('wood'=>24720,'clay'=>13310,'iron'=>20915,'crop'=>17115,'pop'=>4,'cp'=>46,'attri'=>0,'time'=>43780),array('wood'=>31640,'clay'=>17035,'iron'=>26775,'crop'=>21905,'pop'=>4,'cp'=>55,'attri'=>0,'time'=>51380),array('wood'=>40500,'clay'=>21810,'iron'=>34270,'crop'=>28040,'pop'=>4,'cp'=>67,'attri'=>0,'time'=>60200),array('wood'=>51840,'clay'=>27915,'iron'=>43865,'crop'=>35890,'pop'=>4,'cp'=>80,'attri'=>0,'time'=>70430),array('wood'=>66355,'clay'=>35730,'iron'=>56145,'crop'=>45940,'pop'=>4,'cp'=>96,'attri'=>0,'time'=>82300),array('wood'=>84935,'clay'=>45735,'iron'=>71870,'crop'=>58800,'pop'=>4,'cp'=>115,'attri'=>0,'time'=>96070)); +?> diff --git a/GameEngine/Data/buidata.php_nk b/GameEngine/Data/buidata.php_nk new file mode 100644 index 00000000..d30f01d5 --- /dev/null +++ b/GameEngine/Data/buidata.php_nk @@ -0,0 +1,52 @@ +2),array('wood'=>40,'clay'=>100,'iron'=>50,'crop'=>60,'pop'=>2,'cp'=>1,'prod'=>5,'time'=>260),array('wood'=>65,'clay'=>165,'iron'=>85,'crop'=>100,'pop'=>1,'cp'=>1,'prod'=>9,'time'=>620),array('wood'=>110,'clay'=>280,'iron'=>140,'crop'=>165,'pop'=>1,'cp'=>2,'prod'=>15,'time'=>1190),array('wood'=>185,'clay'=>465,'iron'=>235,'crop'=>280,'pop'=>1,'cp'=>2,'prod'=>22,'time'=>2100),array('wood'=>310,'clay'=>780,'iron'=>390,'crop'=>465,'pop'=>1,'cp'=>2,'prod'=>33,'time'=>3560),array('wood'=>520,'clay'=>1300,'iron'=>650,'crop'=>780,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>3638),array('wood'=>870,'clay'=>2170,'iron'=>1085,'crop'=>1300,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>7220),array('wood'=>1450,'clay'=>3625,'iron'=>1810,'crop'=>2175,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>15590),array('wood'=>2420,'clay'=>6050,'iron'=>3025,'crop'=>3630,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>25150),array('wood'=>4040,'clay'=>10105,'iron'=>5050,'crop'=>6060,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>40440),array('wood'=>6750,'clay'=>16870,'iron'=>8435,'crop'=>10125,'pop'=>2,'cp'=>7,'prod'=>280,'time'=>64900),array('wood'=>11270,'clay'=>28175,'iron'=>14090,'crop'=>16905,'pop'=>2,'cp'=>9,'prod'=>375,'time'=>104050),array('wood'=>18820,'clay'=>47055,'iron'=>23525,'crop'=>28230,'pop'=>2,'cp'=>11,'prod'=>495,'time'=>166680),array('wood'=>31430,'clay'=>78580,'iron'=>39290,'crop'=>47150,'pop'=>2,'cp'=>13,'prod'=>635,'time'=>266880),array('wood'=>52490,'clay'=>131230,'iron'=>65615,'crop'=>78740,'pop'=>2,'cp'=>15,'prod'=>800,'time'=>427210),array('wood'=>87660,'clay'=>219155,'iron'=>109575,'crop'=>131490,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>683730),array('wood'=>146395,'clay'=>365985,'iron'=>182995,'crop'=>219590,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>1094170),array('wood'=>244480,'clay'=>611195,'iron'=>305600,'crop'=>366715,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>1750880),array('wood'=>408280,'clay'=>1020695,'iron'=>510350,'crop'=>612420,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>2801600),array('wood'=>681825,'clay'=>1704565,'iron'=>852280,'crop'=>1022740,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>4482770)); +$bid2=array(array('prod'=>2),array('wood'=>80,'clay'=>40,'iron'=>80,'crop'=>50,'pop'=>2,'cp'=>1,'prod'=>5,'time'=>220),array('wood'=>135,'clay'=>65,'iron'=>135,'crop'=>85,'pop'=>1,'cp'=>1,'prod'=>9,'time'=>550),array('wood'=>225,'clay'=>110,'iron'=>225,'crop'=>140,'pop'=>1,'cp'=>2,'prod'=>15,'time'=>1080),array('wood'=>375,'clay'=>185,'iron'=>375,'crop'=>235,'pop'=>1,'cp'=>2,'prod'=>22,'time'=>1930),array('wood'=>620,'clay'=>310,'iron'=>620,'crop'=>390,'pop'=>1,'cp'=>2,'prod'=>33,'time'=>3290),array('wood'=>1040,'clay'=>520,'iron'=>1040,'crop'=>650,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>5470),array('wood'=>1735,'clay'=>870,'iron'=>1735,'crop'=>1085,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>8950),array('wood'=>2900,'clay'=>1450,'iron'=>2900,'crop'=>1810,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>14520),array('wood'=>4840,'clay'=>2420,'iron'=>4840,'crop'=>3025,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>23430),array('wood'=>8080,'clay'=>4040,'iron'=>8080,'crop'=>5050,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>37690),array('wood'=>13500,'clay'=>6750,'iron'=>13500,'crop'=>8435,'pop'=>2,'cp'=>7,'prod'=>280,'time'=>60510),array('wood'=>22540,'clay'=>11270,'iron'=>22540,'crop'=>14090,'pop'=>2,'cp'=>9,'prod'=>375,'time'=>97010),array('wood'=>37645,'clay'=>18820,'iron'=>37645,'crop'=>23525,'pop'=>2,'cp'=>11,'prod'=>495,'time'=>155420),array('wood'=>62865,'clay'=>31430,'iron'=>62865,'crop'=>39290,'pop'=>2,'cp'=>13,'prod'=>635,'time'=>248870),array('wood'=>104985,'clay'=>52490,'iron'=>104985,'crop'=>65615,'pop'=>2,'cp'=>15,'prod'=>800,'time'=>398390),array('wood'=>175320,'clay'=>87660,'iron'=>175320,'crop'=>109575,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>637620),array('wood'=>292790,'clay'=>146395,'iron'=>292790,'crop'=>182995,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>1020390),array('wood'=>488955,'clay'=>244480,'iron'=>488955,'crop'=>305600,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>1632820),array('wood'=>816555,'clay'=>408280,'iron'=>816555,'crop'=>510350,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>2612710),array('wood'=>1363650,'clay'=>681825,'iron'=>1363650,'crop'=>852280,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>4180540)); +$bid3=array(array('prod'=>2),array('wood'=>100,'clay'=>80,'iron'=>30,'crop'=>60,'pop'=>3,'cp'=>1,'prod'=>5,'time'=>450),array('wood'=>165,'clay'=>135,'iron'=>50,'crop'=>100,'pop'=>2,'cp'=>1,'prod'=>9,'time'=>920),array('wood'=>280,'clay'=>225,'iron'=>85,'crop'=>165,'pop'=>2,'cp'=>2,'prod'=>15,'time'=>1670),array('wood'=>465,'clay'=>375,'iron'=>140,'crop'=>280,'pop'=>2,'cp'=>2,'prod'=>22,'time'=>2880),array('wood'=>780,'clay'=>620,'iron'=>235,'crop'=>465,'pop'=>2,'cp'=>2,'prod'=>33,'time'=>4800),array('wood'=>1300,'clay'=>1040,'iron'=>390,'crop'=>780,'pop'=>2,'cp'=>3,'prod'=>50,'time'=>7880),array('wood'=>2170,'clay'=>1735,'iron'=>650,'crop'=>1300,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>12810),array('wood'=>3625,'clay'=>2900,'iron'=>1085,'crop'=>2175,'pop'=>2,'cp'=>4,'prod'=>100,'time'=>20690),array('wood'=>6050,'clay'=>4840,'iron'=>1815,'crop'=>3630,'pop'=>2,'cp'=>5,'prod'=>145,'time'=>33310),array('wood'=>10105,'clay'=>8080,'iron'=>3030,'crop'=>6060,'pop'=>2,'cp'=>6,'prod'=>200,'time'=>53500),array('wood'=>16870,'clay'=>13500,'iron'=>5060,'crop'=>10125,'pop'=>3,'cp'=>7,'prod'=>280,'time'=>85800),array('wood'=>28175,'clay'=>22540,'iron'=>8455,'crop'=>16905,'pop'=>3,'cp'=>9,'prod'=>375,'time'=>137470),array('wood'=>47055,'clay'=>37645,'iron'=>14115,'crop'=>28230,'pop'=>3,'cp'=>11,'prod'=>495,'time'=>220160),array('wood'=>78580,'clay'=>62865,'iron'=>23575,'crop'=>47150,'pop'=>3,'cp'=>13,'prod'=>635,'time'=>352450),array('wood'=>131230,'clay'=>104985,'iron'=>39370,'crop'=>78740,'pop'=>3,'cp'=>15,'prod'=>800,'time'=>564120),array('wood'=>219155,'clay'=>175320,'iron'=>65745,'crop'=>131490,'pop'=>3,'cp'=>18,'prod'=>1000,'time'=>902760),array('wood'=>365985,'clay'=>292790,'iron'=>109795,'crop'=>219590,'pop'=>3,'cp'=>22,'prod'=>1300,'time'=>145546),array('wood'=>611195,'clay'=>488955,'iron'=>183360,'crop'=>366715,'pop'=>3,'cp'=>27,'prod'=>1600,'time'=>2311660),array('wood'=>1020695,'clay'=>816555,'iron'=>306210,'crop'=>612420,'pop'=>3,'cp'=>32,'prod'=>2000,'time'=>3698850),array('wood'=>1704565,'clay'=>1363650,'iron'=>511370,'crop'=>1022740,'pop'=>3,'cp'=>38,'prod'=>2450,'time'=>5918370)); +$bid4=array(array('prod'=>2),array('wood'=>70,'clay'=>90,'iron'=>70,'crop'=>20,'pop'=>0,'cp'=>1,'prod'=>5,'time'=>150),array('wood'=>115,'clay'=>150,'iron'=>115,'crop'=>35,'pop'=>0,'cp'=>1,'prod'=>9,'time'=>440),array('wood'=>195,'clay'=>250,'iron'=>195,'crop'=>55,'pop'=>0,'cp'=>2,'prod'=>15,'time'=>900),array('wood'=>325,'clay'=>420,'iron'=>325,'crop'=>95,'pop'=>0,'cp'=>2,'prod'=>22,'time'=>1650),array('wood'=>545,'clay'=>700,'iron'=>545,'crop'=>155,'pop'=>0,'cp'=>2,'prod'=>33,'time'=>2830),array('wood'=>910,'clay'=>1170,'iron'=>910,'crop'=>260,'pop'=>1,'cp'=>3,'prod'=>50,'time'=>4730),array('wood'=>1520,'clay'=>1950,'iron'=>1520,'crop'=>435,'pop'=>1,'cp'=>4,'prod'=>70,'time'=>7780),array('wood'=>2535,'clay'=>3260,'iron'=>2535,'crop'=>725,'pop'=>1,'cp'=>4,'prod'=>100,'time'=>12190),array('wood'=>4235,'clay'=>5445,'iron'=>4235,'crop'=>1210,'pop'=>1,'cp'=>5,'prod'=>145,'time'=>19690),array('wood'=>7070,'clay'=>9095,'iron'=>7070,'crop'=>2020,'pop'=>1,'cp'=>6,'prod'=>200,'time'=>31700),array('wood'=>11810,'clay'=>15185,'iron'=>11810,'crop'=>3375,'pop'=>1,'cp'=>7,'prod'=>280,'time'=>50910),array('wood'=>19725,'clay'=>25360,'iron'=>19725,'crop'=>5635,'pop'=>1,'cp'=>9,'prod'=>375,'time'=>84700),array('wood'=>32940,'clay'=>42350,'iron'=>32940,'crop'=>9410,'pop'=>1,'cp'=>11,'prod'=>495,'time'=>135710),array('wood'=>55005,'clay'=>70720,'iron'=>55005,'crop'=>15715,'pop'=>1,'cp'=>13,'prod'=>635,'time'=>217340),array('wood'=>91860,'clay'=>118105,'iron'=>91860,'crop'=>26245,'pop'=>1,'cp'=>15,'prod'=>800,'time'=>347950),array('wood'=>153405,'clay'=>197240,'iron'=>153405,'crop'=>43830,'pop'=>2,'cp'=>18,'prod'=>1000,'time'=>556910),array('wood'=>256190,'clay'=>329385,'iron'=>256190,'crop'=>73195,'pop'=>2,'cp'=>22,'prod'=>1300,'time'=>891260),array('wood'=>427835,'clay'=>550075,'iron'=>427835,'crop'=>122240,'pop'=>2,'cp'=>27,'prod'=>1600,'time'=>1426210),array('wood'=>714485,'clay'=>918625,'iron'=>714485,'crop'=>204140,'pop'=>2,'cp'=>32,'prod'=>2000,'time'=>2282140),array('wood'=>1193195,'clay'=>1534105,'iron'=>1193195,'crop'=>340915,'pop'=>2,'cp'=>38,'prod'=>2450,'time'=>3651630)); +$bid5=array(1=>array('wood'=>520,'clay'=>380,'iron'=>290,'crop'=>90,'pop'=>4,'cp'=>1,'attri'=>5,'time'=>3000),array('wood'=>935,'clay'=>685,'iron'=>520,'crop'=>160,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>5700),array('wood'=>1685,'clay'=>1230,'iron'=>940,'crop'=>290,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>9750),array('wood'=>3035,'clay'=>2215,'iron'=>1690,'crop'=>525,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>15830),array('wood'=>5460,'clay'=>3990,'iron'=>3045,'crop'=>945,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>24940)); +$bid6=array(1=>array('wood'=>440,'clay'=>480,'iron'=>320,'crop'=>50,'pop'=>3,'cp'=>1,'attri'=>5,'time'=>2240),array('wood'=>790,'clay'=>865,'iron'=>575,'crop'=>90,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>4560),array('wood'=>1425,'clay'=>1555,'iron'=>1035,'crop'=>160,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>8040),array('wood'=>2565,'clay'=>2800,'iron'=>1865,'crop'=>290,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>13260),array('wood'=>4620,'clay'=>5040,'iron'=>3360,'crop'=>525,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>21090)); +$bid7=array(1=>array('wood'=>200,'clay'=>450,'iron'=>510,'crop'=>120,'pop'=>6,'cp'=>1,'attri'=>5,'time'=>4080),array('wood'=>360,'clay'=>810,'iron'=>920,'crop'=>215,'pop'=>3,'cp'=>1,'attri'=>10,'time'=>7320),array('wood'=>650,'clay'=>1460,'iron'=>1650,'crop'=>390,'pop'=>3,'cp'=>2,'attri'=>15,'time'=>12180),array('wood'=>1165,'clay'=>2625,'iron'=>2975,'crop'=>700,'pop'=>3,'cp'=>2,'attri'=>20,'time'=>19470),array('wood'=>2100,'clay'=>4725,'iron'=>5355,'crop'=>1260,'pop'=>3,'cp'=>2,'attri'=>25,'time'=>30410)); +$bid8=array(1=>array('wood'=>500,'clay'=>440,'iron'=>380,'crop'=>1240,'pop'=>3,'cp'=>1,'attri'=>5,'time'=>1840),array('wood'=>900,'clay'=>790,'iron'=>685,'crop'=>2230,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>3960),array('wood'=>1620,'clay'=>1425,'iron'=>1230,'crop'=>4020,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>7140),array('wood'=>2915,'clay'=>2565,'iron'=>2215,'crop'=>7230,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>11910),array('wood'=>5250,'clay'=>4620,'iron'=>3990,'crop'=>13015,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>19070)); +$bid9=array(1=>array('wood'=>1200,'clay'=>1480,'iron'=>870,'crop'=>1600,'pop'=>4,'cp'=>1,'attri'=>5,'time'=>3680),array('wood'=>2160,'clay'=>2665,'iron'=>1565,'crop'=>2880,'pop'=>2,'cp'=>1,'attri'=>10,'time'=>6720),array('wood'=>3890,'clay'=>4795,'iron'=>2820,'crop'=>5185,'pop'=>2,'cp'=>2,'attri'=>15,'time'=>11280),array('wood'=>7000,'clay'=>8630,'iron'=>5075,'crop'=>9330,'pop'=>2,'cp'=>2,'attri'=>20,'time'=>18120),array('wood'=>12595,'clay'=>15535,'iron'=>9135,'crop'=>16795,'pop'=>2,'cp'=>2,'attri'=>25,'time'=>28380)); +$bid10=array(1=>array('wood'=>130,'clay'=>160,'iron'=>90,'crop'=>40,'pop'=>1,'cp'=>1,'attri'=>1200,'time'=>2000),array('wood'=>165,'clay'=>205,'iron'=>115,'crop'=>50,'pop'=>1,'cp'=>1,'attri'=>1700,'time'=>2620),array('wood'=>215,'clay'=>260,'iron'=>145,'crop'=>65,'pop'=>1,'cp'=>2,'attri'=>2300,'time'=>3340),array('wood'=>275,'clay'=>335,'iron'=>190,'crop'=>85,'pop'=>1,'cp'=>2,'attri'=>3100,'time'=>4170),array('wood'=>350,'clay'=>430,'iron'=>240,'crop'=>105,'pop'=>1,'cp'=>2,'attri'=>4000,'time'=>5140),array('wood'=>445,'clay'=>550,'iron'=>310,'crop'=>135,'pop'=>1,'cp'=>3,'attri'=>5000,'time'=>6260),array('wood'=>570,'clay'=>705,'iron'=>395,'crop'=>175,'pop'=>1,'cp'=>4,'attri'=>6300,'time'=>7570),array('wood'=>730,'clay'=>900,'iron'=>505,'crop'=>225,'pop'=>1,'cp'=>4,'attri'=>7800,'time'=>9080),array('wood'=>935,'clay'=>1115,'iron'=>650,'crop'=>290,'pop'=>1,'cp'=>5,'attri'=>9600,'time'=>10830),array('wood'=>1200,'clay'=>1475,'iron'=>830,'crop'=>370,'pop'=>1,'cp'=>6,'attri'=>11800,'time'=>12860),array('wood'=>1535,'clay'=>1890,'iron'=>1065,'crop'=>470,'pop'=>2,'cp'=>7,'attri'=>14400,'time'=>15220),array('wood'=>1965,'clay'=>2420,'iron'=>1360,'crop'=>605,'pop'=>2,'cp'=>9,'attri'=>17600,'time'=>17950),array('wood'=>2515,'clay'=>3095,'iron'=>1740,'crop'=>775,'pop'=>2,'cp'=>11,'attri'=>21400,'time'=>21130),array('wood'=>3220,'clay'=>3960,'iron'=>2230,'crop'=>990,'pop'=>2,'cp'=>13,'attri'=>25900,'time'=>24810),array('wood'=>4120,'clay'=>5070,'iron'=>2850,'crop'=>1270,'pop'=>2,'cp'=>15,'attri'=>31300,'time'=>29080),array('wood'=>5275,'clay'=>6490,'iron'=>3650,'crop'=>1625,'pop'=>2,'cp'=>18,'attri'=>37900,'time'=>34030),array('wood'=>6750,'clay'=>8310,'iron'=>4675,'crop'=>2075,'pop'=>2,'cp'=>22,'attri'=>45700,'time'=>39770),array('wood'=>8640,'clay'=>10635,'iron'=>5980,'crop'=>2660,'pop'=>2,'cp'=>27,'attri'=>55100,'time'=>46440),array('wood'=>11060,'clay'=>13610,'iron'=>7655,'crop'=>3405,'pop'=>2,'cp'=>32,'attri'=>66400,'time'=>54170),array('wood'=>14155,'clay'=>17420,'iron'=>9800,'crop'=>4355,'pop'=>2,'cp'=>38,'attri'=>80000,'time'=>63130)); +$bid11=array(1=>array('wood'=>80,'clay'=>100,'iron'=>70,'crop'=>20,'pop'=>1,'cp'=>1,'attri'=>1200,'time'=>1600),array('wood'=>100,'clay'=>130,'iron'=>90,'crop'=>25,'pop'=>1,'cp'=>1,'attri'=>1700,'time'=>2160),array('wood'=>130,'clay'=>165,'iron'=>115,'crop'=>35,'pop'=>1,'cp'=>2,'attri'=>2300,'time'=>2800),array('wood'=>170,'clay'=>210,'iron'=>145,'crop'=>40,'pop'=>1,'cp'=>2,'attri'=>3100,'time'=>3550),array('wood'=>215,'clay'=>270,'iron'=>190,'crop'=>55,'pop'=>1,'cp'=>2,'attri'=>4000,'time'=>4420),array('wood'=>275,'clay'=>345,'iron'=>240,'crop'=>70,'pop'=>1,'cp'=>3,'attri'=>5000,'time'=>5420),array('wood'=>350,'clay'=>440,'iron'=>310,'crop'=>90,'pop'=>1,'cp'=>4,'attri'=>6300,'time'=>6590),array('wood'=>450,'clay'=>565,'iron'=>395,'crop'=>115,'pop'=>1,'cp'=>4,'attri'=>7800,'time'=>7950),array('wood'=>575,'clay'=>720,'iron'=>505,'crop'=>145,'pop'=>1,'cp'=>5,'attri'=>9600,'time'=>9520),array('wood'=>740,'clay'=>920,'iron'=>645,'crop'=>185,'pop'=>1,'cp'=>6,'attri'=>11800,'time'=>11340),array('wood'=>945,'clay'=>1180,'iron'=>825,'crop'=>235,'pop'=>2,'cp'=>7,'attri'=>14400,'time'=>13450),array('wood'=>1210,'clay'=>1510,'iron'=>1060,'crop'=>300,'pop'=>2,'cp'=>9,'attri'=>17600,'time'=>15910),array('wood'=>1545,'clay'=>1935,'iron'=>1355,'crop'=>385,'pop'=>2,'cp'=>11,'attri'=>21400,'time'=>18750),array('wood'=>1980,'clay'=>2475,'iron'=>1735,'crop'=>495,'pop'=>2,'cp'=>13,'attri'=>25900,'time'=>22050),array('wood'=>2535,'clay'=>3170,'iron'=>2220,'crop'=>635,'pop'=>2,'cp'=>15,'attri'=>31300,'time'=>25880),array('wood'=>3245,'clay'=>4055,'iron'=>2840,'crop'=>810,'pop'=>2,'cp'=>18,'attri'=>37900,'time'=>30320),array('wood'=>4155,'clay'=>5190,'iron'=>3635,'crop'=>1040,'pop'=>2,'cp'=>22,'attri'=>45700,'time'=>35470),array('wood'=>5315,'clay'=>6645,'iron'=>4650,'crop'=>1330,'pop'=>2,'cp'=>27,'attri'=>55100,'time'=>41450),array('wood'=>6805,'clay'=>8505,'iron'=>5955,'crop'=>1700,'pop'=>2,'cp'=>32,'attri'=>66400,'time'=>48380),array('wood'=>8710,'clay'=>10890,'iron'=>7620,'crop'=>2180,'pop'=>2,'cp'=>38,'attri'=>80000,'time'=>56420)); +$bid12=array(1=>array('wood'=>170,'clay'=>200,'iron'=>380,'crop'=>130,'pop'=>4,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>220,'clay'=>255,'iron'=>485,'crop'=>165,'pop'=>2,'cp'=>3,'attri'=>96.4,'time'=>2620),array('wood'=>280,'clay'=>330,'iron'=>625,'crop'=>215,'pop'=>2,'cp'=>3,'attri'=>92.93,'time'=>3340),array('wood'=>355,'clay'=>420,'iron'=>795,'crop'=>275,'pop'=>2,'cp'=>4,'attri'=>89.58,'time'=>4170),array('wood'=>455,'clay'=>535,'iron'=>1020,'crop'=>350,'pop'=>2,'cp'=>5,'attri'=>86.36,'time'=>5140),array('wood'=>585,'clay'=>685,'iron'=>1305,'crop'=>445,'pop'=>3,'cp'=>6,'attri'=>83.25,'time'=>6260),array('wood'=>750,'clay'=>880,'iron'=>1670,'crop'=>570,'pop'=>3,'cp'=>7,'attri'=>80.25,'time'=>7570),array('wood'=>955,'clay'=>1125,'iron'=>2140,'crop'=>730,'pop'=>3,'cp'=>9,'attri'=>77.36,'time'=>9080),array('wood'=>1225,'clay'=>1440,'iron'=>2740,'crop'=>935,'pop'=>3,'cp'=>10,'attri'=>74.58,'time'=>10830),array('wood'=>1570,'clay'=>1845,'iron'=>3505,'crop'=>1200,'pop'=>3,'cp'=>12,'attri'=>71.89,'time'=>12860),array('wood'=>2005,'clay'=>2360,'iron'=>4485,'crop'=>1535,'pop'=>3,'cp'=>15,'attri'=>69.31,'time'=>15220),array('wood'=>2570,'clay'=>3020,'iron'=>5740,'crop'=>1965,'pop'=>3,'cp'=>18,'attri'=>66.81,'time'=>17950),array('wood'=>3290,'clay'=>3870,'iron'=>7350,'crop'=>2515,'pop'=>3,'cp'=>21,'attri'=>64.41,'time'=>21130),array('wood'=>4210,'clay'=>4950,'iron'=>9410,'crop'=>3220,'pop'=>3,'cp'=>26,'attri'=>62.09,'time'=>24810),array('wood'=>5390,'clay'=>6340,'iron'=>12045,'crop'=>4120,'pop'=>3,'cp'=>31,'attri'=>59.85,'time'=>29080),array('wood'=>6895,'clay'=>8115,'iron'=>15415,'crop'=>5275,'pop'=>4,'cp'=>37,'attri'=>57.70,'time'=>34030),array('wood'=>8825,'clay'=>10385,'iron'=>19730,'crop'=>6750,'pop'=>4,'cp'=>44,'attri'=>55.62,'time'=>39770),array('wood'=>11300,'clay'=>13290,'iron'=>25255,'crop'=>8640,'pop'=>4,'cp'=>53,'attri'=>53.62,'time'=>46440),array('wood'=>14460,'clay'=>17015,'iron'=>32325,'crop'=>11060,'pop'=>4,'cp'=>64,'attri'=>51.69,'time'=>54170),array('wood'=>18510,'clay'=>21780,'iron'=>41380,'crop'=>14155,'pop'=>4,'cp'=>77,'attri'=>49.83,'time'=>63130)); +$bid13=array(1=>array('wood'=>130,'clay'=>210,'iron'=>410,'crop'=>130,'pop'=>4,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>165,'clay'=>270,'iron'=>525,'crop'=>165,'pop'=>2,'cp'=>3,'attri'=>96.4,'time'=>2620),array('wood'=>215,'clay'=>345,'iron'=>670,'crop'=>215,'pop'=>2,'cp'=>3,'attri'=>92.93,'time'=>3340),array('wood'=>275,'clay'=>440,'iron'=>860,'crop'=>275,'pop'=>2,'cp'=>4,'attri'=>89.58,'time'=>4170),array('wood'=>350,'clay'=>565,'iron'=>1100,'crop'=>350,'pop'=>2,'cp'=>5,'attri'=>86.36,'time'=>5140),array('wood'=>445,'clay'=>720,'iron'=>1410,'crop'=>445,'pop'=>3,'cp'=>6,'attri'=>83.25,'time'=>6260),array('wood'=>570,'clay'=>925,'iron'=>1805,'crop'=>570,'pop'=>3,'cp'=>7,'attri'=>80.25,'time'=>7570),array('wood'=>730,'clay'=>1180,'iron'=>2310,'crop'=>730,'pop'=>3,'cp'=>9,'attri'=>77.36,'time'=>9080),array('wood'=>935,'clay'=>1515,'iron'=>2955,'crop'=>935,'pop'=>3,'cp'=>10,'attri'=>74.58,'time'=>10830),array('wood'=>1200,'clay'=>1935,'iron'=>3780,'crop'=>1200,'pop'=>3,'cp'=>12,'attri'=>71.89,'time'=>12860),array('wood'=>1535,'clay'=>2480,'iron'=>4840,'crop'=>1535,'pop'=>3,'cp'=>15,'attri'=>69.31,'time'=>15220),array('wood'=>1965,'clay'=>3175,'iron'=>6195,'crop'=>1965,'pop'=>3,'cp'=>18,'attri'=>66.81,'time'=>17950),array('wood'=>2515,'clay'=>4060,'iron'=>7930,'crop'=>2515,'pop'=>3,'cp'=>21,'attri'=>64.41,'time'=>21130),array('wood'=>3220,'clay'=>5200,'iron'=>10150,'crop'=>3220,'pop'=>3,'cp'=>26,'attri'=>62.09,'time'=>24810),array('wood'=>4120,'clay'=>6655,'iron'=>12995,'crop'=>4120,'pop'=>3,'cp'=>31,'attri'=>59.85,'time'=>29080),array('wood'=>5275,'clay'=>8520,'iron'=>16630,'crop'=>5275,'pop'=>4,'cp'=>37,'attri'=>57.70,'time'=>34030),array('wood'=>6750,'clay'=>10905,'iron'=>21290,'crop'=>6750,'pop'=>4,'cp'=>44,'attri'=>55.62,'time'=>39770),array('wood'=>8640,'clay'=>13955,'iron'=>27250,'crop'=>8640,'pop'=>4,'cp'=>53,'attri'=>53.62,'time'=>46440),array('wood'=>11060,'clay'=>17865,'iron'=>34880,'crop'=>11060,'pop'=>4,'cp'=>64,'attri'=>51.69,'time'=>54170),array('wood'=>14155,'clay'=>22865,'iron'=>44645,'crop'=>14155,'pop'=>4,'cp'=>77,'attri'=>49.83,'time'=>63130)); +$bid14=array(1=>array('wood'=>1750,'clay'=>2250,'iron'=>1530,'crop'=>240,'pop'=>1,'cp'=>1,'attri'=>110,'time'=>3500),array('wood'=>2240,'clay'=>2880,'iron'=>1960,'crop'=>305,'pop'=>1,'cp'=>1,'attri'=>120,'time'=>4360),array('wood'=>2865,'clay'=>3685,'iron'=>2505,'crop'=>395,'pop'=>1,'cp'=>2,'attri'=>130,'time'=>5360),array('wood'=>3670,'clay'=>4720,'iron'=>3210,'crop'=>505,'pop'=>1,'cp'=>2,'attri'=>140,'time'=>6510),array('wood'=>4700,'clay'=>6040,'iron'=>4105,'crop'=>645,'pop'=>1,'cp'=>2,'attri'=>150,'time'=>7860),array('wood'=>6015,'clay'=>7730,'iron'=>5255,'crop'=>825,'pop'=>1,'cp'=>3,'attri'=>160,'time'=>9410),array('wood'=>7695,'clay'=>9895,'iron'=>6730,'crop'=>1055,'pop'=>1,'cp'=>4,'attri'=>170,'time'=>11220),array('wood'=>9850,'clay'=>12665,'iron'=>8615,'crop'=>1350,'pop'=>1,'cp'=>4,'attri'=>180,'time'=>13320),array('wood'=>12610,'clay'=>16215,'iron'=>11025,'crop'=>1730,'pop'=>1,'cp'=>5,'attri'=>190,'time'=>15750),array('wood'=>16140,'clay'=>20755,'iron'=>14110,'crop'=>2215,'pop'=>1,'cp'=>6,'attri'=>200,'time'=>18570),array('wood'=>20660,'clay'=>26565,'iron'=>18065,'crop'=>2835,'pop'=>2,'cp'=>7,'attri'=>210,'time'=>21840),array('wood'=>26445,'clay'=>34000,'iron'=>23120,'crop'=>3625,'pop'=>2,'cp'=>9,'attri'=>220,'time'=>25630),array('wood'=>33850,'clay'=>43520,'iron'=>29595,'crop'=>4640,'pop'=>2,'cp'=>11,'attri'=>230,'time'=>30030),array('wood'=>43330,'clay'=>55705,'iron'=>37880,'crop'=>5940,'pop'=>2,'cp'=>13,'attri'=>240,'time'=>35140),array('wood'=>55460,'clay'=>71305,'iron'=>48490,'crop'=>7605,'pop'=>2,'cp'=>15,'attri'=>250,'time'=>41060),array('wood'=>70990,'clay'=>91270,'iron'=>62065,'crop'=>9735,'pop'=>2,'cp'=>18,'attri'=>260,'time'=>47930),array('wood'=>90865,'clay'=>116825,'iron'=>79440,'crop'=>12460,'pop'=>2,'cp'=>22,'attri'=>270,'time'=>55900),array('wood'=>116305,'clay'=>149540,'iron'=>101685,'crop'=>15950,'pop'=>2,'cp'=>27,'attri'=>280,'time'=>65140),array('wood'=>148875,'clay'=>191410,'iron'=>130160,'crop'=>20415,'pop'=>2,'cp'=>32,'attri'=>290,'time'=>75860),array('wood'=>190560,'clay'=>245005,'iron'=>166600,'crop'=>26135,'pop'=>2,'cp'=>38,'attri'=>300,'time'=>88300)); +$bid15=array(1=>array('wood'=>70,'clay'=>40,'iron'=>60,'crop'=>20,'pop'=>2,'cp'=>2,'attri'=>100,'time'=>2620),array('wood'=>90,'clay'=>50,'iron'=>75,'crop'=>25,'pop'=>1,'cp'=>3,'attri'=>96.4,'time'=>3220),array('wood'=>115,'clay'=>65,'iron'=>100,'crop'=>35,'pop'=>1,'cp'=>3,'attri'=>92.93,'time'=>3880),array('wood'=>145,'clay'=>85,'iron'=>125,'crop'=>40,'pop'=>1,'cp'=>4,'attri'=>89.58,'time'=>4610),array('wood'=>190,'clay'=>105,'iron'=>160,'crop'=>55,'pop'=>1,'cp'=>5,'attri'=>86.36,'time'=>5410),array('wood'=>240,'clay'=>135,'iron'=>205,'crop'=>70,'pop'=>2,'cp'=>6,'attri'=>83.25,'time'=>6300),array('wood'=>310,'clay'=>175,'iron'=>265,'crop'=>90,'pop'=>2,'cp'=>7,'attri'=>80.25,'time'=>7280),array('wood'=>395,'clay'=>225,'iron'=>340,'crop'=>115,'pop'=>2,'cp'=>9,'attri'=>77.36,'time'=>8380),array('wood'=>505,'clay'=>290,'iron'=>430,'crop'=>145,'pop'=>2,'cp'=>10,'attri'=>74.58,'time'=>9590),array('wood'=>645,'clay'=>370,'iron'=>555,'crop'=>185,'pop'=>2,'cp'=>12,'attri'=>71.89,'time'=>10940),array('wood'=>825,'clay'=>470,'iron'=>710,'crop'=>235,'pop'=>2,'cp'=>15,'attri'=>69.31,'time'=>12440),array('wood'=>1060,'clay'=>605,'iron'=>905,'crop'=>300,'pop'=>2,'cp'=>18,'attri'=>66.81,'time'=>14120),array('wood'=>1355,'clay'=>775,'iron'=>1160,'crop'=>385,'pop'=>2,'cp'=>21,'attri'=>64.41,'time'=>15980),array('wood'=>1735,'clay'=>990,'iron'=>1485,'crop'=>495,'pop'=>2,'cp'=>26,'attri'=>62.09,'time'=>18050),array('wood'=>2220,'clay'=>1270,'iron'=>1900,'crop'=>635,'pop'=>2,'cp'=>31,'attri'=>59.85,'time'=>20370),array('wood'=>2840,'clay'=>1625,'iron'=>2435,'crop'=>810,'pop'=>3,'cp'=>37,'attri'=>57.70,'time'=>22950),array('wood'=>3635,'clay'=>2075,'iron'=>3115,'crop'=>1040,'pop'=>3,'cp'=>44,'attri'=>55.62,'time'=>25830),array('wood'=>4650,'clay'=>2660,'iron'=>3990,'crop'=>1330,'pop'=>3,'cp'=>53,'attri'=>53.62,'time'=>29040),array('wood'=>5955,'clay'=>3405,'iron'=>5105,'crop'=>1700,'pop'=>3,'cp'=>64,'attri'=>51.69,'time'=>32630),array('wood'=>7620,'clay'=>4355,'iron'=>6535,'crop'=>2180,'pop'=>3,'cp'=>77,'attri'=>49.83,'time'=>0)); +$bid16=array(1=>array('wood'=>110,'clay'=>160,'iron'=>90,'crop'=>70,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>670),array('wood'=>140,'clay'=>205,'iron'=>115,'crop'=>90,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>870),array('wood'=>180,'clay'=>260,'iron'=>145,'crop'=>115,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1110),array('wood'=>230,'clay'=>335,'iron'=>190,'crop'=>145,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1390),array('wood'=>295,'clay'=>430,'iron'=>240,'crop'=>190,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>1710),array('wood'=>380,'clay'=>550,'iron'=>310,'crop'=>240,'pop'=>1,'cp'=>3,'attri'=>0,'time'=>2090),array('wood'=>485,'clay'=>705,'iron'=>395,'crop'=>310,'pop'=>1,'cp'=>4,'attri'=>0,'time'=>2520),array('wood'=>620,'clay'=>900,'iron'=>505,'crop'=>395,'pop'=>1,'cp'=>4,'attri'=>0,'time'=>3030),array('wood'=>795,'clay'=>1155,'iron'=>650,'crop'=>505,'pop'=>1,'cp'=>5,'attri'=>0,'time'=>3610),array('wood'=>1015,'clay'=>1475,'iron'=>830,'crop'=>645,'pop'=>1,'cp'=>6,'attri'=>0,'time'=>4290),array('wood'=>1300,'clay'=>1890,'iron'=>1065,'crop'=>825,'pop'=>2,'cp'=>7,'attri'=>0,'time'=>5070),array('wood'=>1660,'clay'=>2420,'iron'=>1360,'crop'=>1060,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>5980),array('wood'=>2130,'clay'=>3095,'iron'=>1740,'crop'=>1355,'pop'=>2,'cp'=>11,'attri'=>0,'time'=>7040),array('wood'=>2725,'clay'=>3960,'iron'=>2230,'crop'=>1735,'pop'=>2,'cp'=>13,'attri'=>0,'time'=>8270),array('wood'=>3485,'clay'=>5070,'iron'=>2850,'crop'=>2220,'pop'=>2,'cp'=>15,'attri'=>0,'time'=>9690),array('wood'=>4460,'clay'=>6490,'iron'=>3650,'crop'=>2840,'pop'=>2,'cp'=>18,'attri'=>0,'time'=>11340),array('wood'=>5710,'clay'=>8310,'iron'=>4675,'crop'=>3635,'pop'=>2,'cp'=>22,'attri'=>0,'time'=>13260),array('wood'=>7310,'clay'=>10635,'iron'=>5980,'crop'=>4650,'pop'=>2,'cp'=>27,'attri'=>0,'time'=>15480),array('wood'=>9360,'clay'=>13610,'iron'=>7655,'crop'=>5955,'pop'=>2,'cp'=>32,'attri'=>0,'time'=>18060),array('wood'=>11980,'clay'=>17420,'iron'=>9800,'crop'=>7620,'pop'=>2,'cp'=>38,'attri'=>0,'time'=>21040)); +$bid17=array(1=>array('wood'=>80,'clay'=>70,'iron'=>120,'crop'=>70,'pop'=>4,'cp'=>4,'attri'=>1,'time'=>1800),array('wood'=>100,'clay'=>90,'iron'=>155,'crop'=>90,'pop'=>2,'cp'=>4,'attri'=>2,'time'=>2390),array('wood'=>130,'clay'=>115,'iron'=>195,'crop'=>115,'pop'=>2,'cp'=>5,'attri'=>3,'time'=>3070),array('wood'=>170,'clay'=>145,'iron'=>250,'crop'=>145,'pop'=>2,'cp'=>6,'attri'=>4,'time'=>3860),array('wood'=>215,'clay'=>190,'iron'=>320,'crop'=>190,'pop'=>2,'cp'=>7,'attri'=>5,'time'=>4780),array('wood'=>275,'clay'=>240,'iron'=>410,'crop'=>240,'pop'=>3,'cp'=>9,'attri'=>6,'time'=>5840),array('wood'=>350,'clay'=>310,'iron'=>530,'crop'=>310,'pop'=>3,'cp'=>11,'attri'=>7,'time'=>7080),array('wood'=>450,'clay'=>395,'iron'=>675,'crop'=>395,'pop'=>3,'cp'=>13,'attri'=>8,'time'=>8510),array('wood'=>575,'clay'=>505,'iron'=>865,'crop'=>505,'pop'=>3,'cp'=>15,'attri'=>9,'time'=>10170),array('wood'=>740,'clay'=>645,'iron'=>1105,'crop'=>645,'pop'=>3,'cp'=>19,'attri'=>10,'time'=>12100),array('wood'=>945,'clay'=>825,'iron'=>1415,'crop'=>825,'pop'=>3,'cp'=>22,'attri'=>11,'time'=>14340),array('wood'=>1210,'clay'=>1060,'iron'=>1815,'crop'=>1060,'pop'=>3,'cp'=>27,'attri'=>12,'time'=>16930),array('wood'=>1545,'clay'=>1355,'iron'=>2320,'crop'=>1355,'pop'=>3,'cp'=>32,'attri'=>13,'time'=>19940),array('wood'=>1980,'clay'=>1735,'iron'=>2970,'crop'=>1735,'pop'=>3,'cp'=>39,'attri'=>14,'time'=>23430),array('wood'=>2535,'clay'=>2220,'iron'=>3805,'crop'=>2220,'pop'=>3,'cp'=>46,'attri'=>15,'time'=>27480),array('wood'=>3245,'clay'=>2840,'iron'=>4870,'crop'=>2840,'pop'=>4,'cp'=>55,'attri'=>16,'time'=>32180),array('wood'=>4155,'clay'=>3635,'iron'=>6230,'crop'=>3635,'pop'=>4,'cp'=>67,'attri'=>17,'time'=>37620),array('wood'=>5315,'clay'=>4650,'iron'=>7975,'crop'=>4650,'pop'=>4,'cp'=>80,'attri'=>18,'time'=>43940),array('wood'=>6805,'clay'=>5955,'iron'=>10210,'crop'=>5955,'pop'=>4,'cp'=>96,'attri'=>19,'time'=>51270),array('wood'=>8710,'clay'=>7620,'iron'=>13065,'crop'=>7620,'pop'=>4,'cp'=>115,'attri'=>20,'time'=>59780)); +$bid18=array(1=>array('wood'=>180,'clay'=>130,'iron'=>150,'crop'=>80,'pop'=>3,'cp'=>5,'attri'=>0,'time'=>2000),array('wood'=>230,'clay'=>165,'iron'=>190,'crop'=>100,'pop'=>2,'cp'=>6,'attri'=>0,'time'=>2620),array('wood'=>295,'clay'=>215,'iron'=>245,'crop'=>130,'pop'=>2,'cp'=>7,'attri'=>9,'time'=>3340),array('wood'=>375,'clay'=>275,'iron'=>315,'crop'=>170,'pop'=>2,'cp'=>8,'attri'=>12,'time'=>4170),array('wood'=>485,'clay'=>350,'iron'=>405,'crop'=>215,'pop'=>2,'cp'=>10,'attri'=>15,'time'=>5140),array('wood'=>620,'clay'=>445,'iron'=>515,'crop'=>275,'pop'=>2,'cp'=>12,'attri'=>18,'time'=>6260),array('wood'=>790,'clay'=>570,'iron'=>660,'crop'=>350,'pop'=>2,'cp'=>14,'attri'=>21,'time'=>7570),array('wood'=>1015,'clay'=>730,'iron'=>845,'crop'=>450,'pop'=>2,'cp'=>17,'attri'=>24,'time'=>9080),array('wood'=>1295,'clay'=>935,'iron'=>1080,'crop'=>575,'pop'=>2,'cp'=>21,'attri'=>27,'time'=>10830),array('wood'=>1660,'clay'=>1200,'iron'=>1385,'crop'=>740,'pop'=>2,'cp'=>25,'attri'=>30,'time'=>12860),array('wood'=>2125,'clay'=>1535,'iron'=>1770,'crop'=>945,'pop'=>3,'cp'=>30,'attri'=>33,'time'=>15220),array('wood'=>2720,'clay'=>1965,'iron'=>2265,'crop'=>1210,'pop'=>3,'cp'=>36,'attri'=>36,'time'=>17950),array('wood'=>3480,'clay'=>2515,'iron'=>2900,'crop'=>1545,'pop'=>3,'cp'=>43,'attri'=>39,'time'=>21130), array('wood'=>4455,'clay'=>3220,'iron'=>3715,'crop'=>1980,'pop'=>3,'cp'=>51,'attri'=>42,'time'=>24810),array('wood'=>5705,'clay'=>4120,'iron'=>4755,'crop'=>2535,'pop'=>3,'cp'=>62,'attri'=>45,'time'=>29080),array('wood'=>7300,'clay'=>5275,'iron'=>6085,'crop'=>3245,'pop'=>3,'cp'=>74,'attri'=>48,'time'=>34030),array('wood'=>9345,'clay'=>6750,'iron'=>7790,'crop'=>4155,'pop'=>3,'cp'=>89,'attri'=>51,'time'=>39770),array('wood'=>11965,'clay'=>8640,'iron'=>9970,'crop'=>5315,'pop'=>3,'cp'=>106,'attri'=>54,'time'=>46440),array('wood'=>15315,'clay'=>11060,'iron'=>12760,'crop'=>6805,'pop'=>3,'cp'=>128,'attri'=>57,'time'=>54170),array('wood'=>19600,'clay'=>14155,'iron'=>16335,'crop'=>8710,'pop'=>3,'cp'=>153,'attri'=>60,'time'=>63130)); +$bid19=array(1=>array('wood'=>210,'clay'=>140,'iron'=>260,'crop'=>120,'pop'=>4,'cp'=>1,'attri'=>100,'time'=>2000),array('wood'=>270,'clay'=>180,'iron'=>335,'crop'=>155,'pop'=>2,'cp'=>1,'attri'=>90,'time'=>2620),array('wood'=>345,'clay'=>230,'iron'=>425,'crop'=>195,'pop'=>2,'cp'=>2,'attri'=>81,'time'=>3340),array('wood'=>440,'clay'=>295,'iron'=>545,'crop'=>250,'pop'=>2,'cp'=>2,'attri'=>72.9,'time'=>4170),array('wood'=>565,'clay'=>375,'iron'=>700,'crop'=>320,'pop'=>2,'cp'=>2,'attri'=>65.61,'time'=>5140),array('wood'=>720,'clay'=>480,'iron'=>895,'crop'=>410,'pop'=>3,'cp'=>3,'attri'=>59.05,'time'=>6260),array('wood'=>925,'clay'=>615,'iron'=>1145,'crop'=>530,'pop'=>3,'cp'=>4,'attri'=>53.14,'time'=>7570),array('wood'=>1180,'clay'=>790,'iron'=>1465,'crop'=>675,'pop'=>3,'cp'=>4,'attri'=>47.83,'time'=>9080),array('wood'=>1515,'clay'=>1010,'iron'=>1875,'crop'=>865,'pop'=>3,'cp'=>5,'attri'=>43.05,'time'=>10830),array('wood'=>1935,'clay'=>1290,'iron'=>2400,'crop'=>1105,'pop'=>3,'cp'=>6,'attri'=>38.74,'time'=>12860),array('wood'=>2480,'clay'=>1655,'iron'=>3070,'crop'=>1415,'pop'=>3,'cp'=>7,'attri'=>34.87,'time'=>15220),array('wood'=>3175,'clay'=>2115,'iron'=>3930,'crop'=>1815,'pop'=>3,'cp'=>9,'attri'=>31.38,'time'=>17950),array('wood'=>4060,'clay'=>2710,'iron'=>5030,'crop'=>2320,'pop'=>3,'cp'=>11,'attri'=>28.24,'time'=>21130),array('wood'=>5200,'clay'=>3465,'iron'=>6435,'crop'=>2970,'pop'=>3,'cp'=>13,'attri'=>25.42,'time'=>24810),array('wood'=>6655,'clay'=>4435,'iron'=>8240,'crop'=>3805,'pop'=>3,'cp'=>15,'attri'=>22.88,'time'=>29080),array('wood'=>8520,'clay'=>5680,'iron'=>10545,'crop'=>4870,'pop'=>4,'cp'=>18,'attri'=>20.59,'time'=>34030),array('wood'=>10905,'clay'=>7270,'iron'=>13500,'crop'=>6230,'pop'=>4,'cp'=>22,'attri'=>18.53,'time'=>39770),array('wood'=>13955,'clay'=>9305,'iron'=>17280,'crop'=>7975,'pop'=>4,'cp'=>27,'attri'=>16.68,'time'=>46440),array('wood'=>17865,'clay'=>11910,'iron'=>22120,'crop'=>10210,'pop'=>4,'cp'=>32,'attri'=>15.01,'time'=>54170),array('wood'=>22865,'clay'=>15245,'iron'=>28310,'crop'=>13065,'pop'=>4,'cp'=>38,'attri'=>13.51,'time'=>63130)); +$bid20=array(1=>array('wood'=>260,'clay'=>140,'iron'=>220,'crop'=>100,'pop'=>5,'cp'=>2,'attri'=>100,'time'=>2200),array('wood'=>335,'clay'=>180,'iron'=>280,'crop'=>130,'pop'=>3,'cp'=>3,'attri'=>90,'time'=>2850),array('wood'=>425,'clay'=>230,'iron'=>360,'crop'=>165,'pop'=>3,'cp'=>3,'attri'=>81,'time'=>3610),array('wood'=>545,'clay'=>295,'iron'=>460,'crop'=>210,'pop'=>3,'cp'=>4,'attri'=>72.9,'time'=>4490),array('wood'=>700,'clay'=>375,'iron'=>590,'crop'=>270,'pop'=>3,'cp'=>5,'attri'=>65.61,'time'=>5500),array('wood'=>895,'clay'=>480,'iron'=>755,'crop'=>345,'pop'=>3,'cp'=>6,'attri'=>59.05,'time'=>6680),array('wood'=>1145,'clay'=>615,'iron'=>970,'crop'=>440,'pop'=>3,'cp'=>7,'attri'=>53.14,'time'=>8050),array('wood'=>1465,'clay'=>790,'iron'=>1240,'crop'=>565,'pop'=>3,'cp'=>9,'attri'=>47.83,'time'=>9640),array('wood'=>1875,'clay'=>1010,'iron'=>1585,'crop'=>720,'pop'=>3,'cp'=>10,'attri'=>43.05,'time'=>11480),array('wood'=>2400,'clay'=>1290,'iron'=>2030,'crop'=>920,'pop'=>3,'cp'=>12,'attri'=>38.74,'time'=>13620),array('wood'=>3070,'clay'=>1655,'iron'=>2595,'crop'=>1180,'pop'=>4,'cp'=>15,'attri'=>34.87,'time'=>16100),array('wood'=>3930,'clay'=>2115,'iron'=>3325,'crop'=>1510,'pop'=>4,'cp'=>18,'attri'=>31.38,'time'=>18980),array('wood'=>5030,'clay'=>2710,'iron'=>4255,'crop'=>1935,'pop'=>4,'cp'=>21,'attri'=>28.24,'time'=>22310),array('wood'=>6435,'clay'=>3465,'iron'=>5445,'crop'=>2475,'pop'=>4,'cp'=>26,'attri'=>25.42,'time'=>26180),array('wood'=>8240,'clay'=>4435,'iron'=>6970,'crop'=>3170,'pop'=>4,'cp'=>31,'attri'=>22.88,'time'=>30670),array('wood'=>10545,'clay'=>5680,'iron'=>8925,'crop'=>4055,'pop'=>4,'cp'=>37,'attri'=>20.59,'time'=>35880),array('wood'=>13500,'clay'=>7270,'iron'=>11425,'crop'=>5190,'pop'=>4,'cp'=>44,'attri'=>18.53,'time'=>41920),array('wood'=>17280,'clay'=>9305,'iron'=>14620,'crop'=>6645,'pop'=>4,'cp'=>53,'attri'=>16.68,'time'=>48930),array('wood'=>22120,'clay'=>11910,'iron'=>18715,'crop'=>8505,'pop'=>4,'cp'=>64,'attri'=>15.01,'time'=>57060),array('wood'=>28310,'clay'=>15245,'iron'=>23955,'crop'=>10890,'pop'=>4,'cp'=>77,'attri'=>13.51,'time'=>66490)); +$bid21=array(1=>array('wood'=>460,'clay'=>510,'iron'=>600,'crop'=>320,'pop'=>3,'cp'=>4,'attri'=>100,'time'=>3000),array('wood'=>590,'clay'=>655,'iron'=>770,'crop'=>410,'pop'=>2,'cp'=>4,'attri'=>90,'time'=>3780),array('wood'=>755,'clay'=>835,'iron'=>985,'crop'=>525,'pop'=>2,'cp'=>5,'attri'=>81,'time'=>4680),array('wood'=>965,'clay'=>1070,'iron'=>1260,'crop'=>670,'pop'=>2,'cp'=>6,'attri'=>72.9,'time'=>5730),array('wood'=>1235,'clay'=>1370,'iron'=>1610,'crop'=>860,'pop'=>2,'cp'=>7,'attri'=>65.61,'time'=>6950),array('wood'=>1580,'clay'=>1750,'iron'=>2060,'crop'=>1100,'pop'=>2,'cp'=>9,'attri'=>59.05,'time'=>8360),array('wood'=>2025,'clay'=>2245,'iron'=>2640,'crop'=>1405,'pop'=>2,'cp'=>11,'attri'=>53.14,'time'=>10000),array('wood'=>2590,'clay'=>2870,'iron'=>3380,'crop'=>1800,'pop'=>2,'cp'=>13,'attri'=>47.83,'time'=>11900),array('wood'=>3315,'clay'=>3675,'iron'=>4325,'crop'=>2305,'pop'=>2,'cp'=>15,'attri'=>43.05,'time'=>14110),array('wood'=>4245,'clay'=>4705,'iron'=>5535,'crop'=>2950,'pop'=>2,'cp'=>19,'attri'=>38.74,'time'=>16660),array('wood'=>5430,'clay'=>6020,'iron'=>7085,'crop'=>3780,'pop'=>3,'cp'=>22,'attri'=>34.87,'time'=>19630),array('wood'=>6950,'clay'=>7705,'iron'=>9065,'crop'=>4835,'pop'=>3,'cp'=>27,'attri'=>31.38,'time'=>23070),array('wood'=>8900,'clay'=>9865,'iron'=>11605,'crop'=>6190,'pop'=>3,'cp'=>32,'attri'=>28.24,'time'=>27060),array('wood'=>11390,'clay'=>12625,'iron'=>14855,'crop'=>7925,'pop'=>3,'cp'=>39,'attri'=>25.42,'time'=>31690),array('wood'=>14580,'clay'=>16165,'iron'=>19015,'crop'=>10140,'pop'=>3,'cp'=>46,'attri'=>22.88,'time'=>37060),array('wood'=>18660,'clay'=>20690,'iron'=>24340,'crop'=>12980,'pop'=>3,'cp'=>55,'attri'=>20.59,'time'=>43290),array('wood'=>23885,'clay'=>26480,'iron'=>31155,'crop'=>16615,'pop'=>3,'cp'=>67,'attri'=>18.53,'time'=>50520),array('wood'=>30570,'clay'=>33895,'iron'=>39875,'crop'=>21270,'pop'=>3,'cp'=>80,'attri'=>16.68,'time'=>58900),array('wood'=>39130,'clay'=>43385,'iron'=>51040,'crop'=>27225,'pop'=>3,'cp'=>96,'attri'=>15.01,'time'=>68630),array('wood'=>50090,'clay'=>55535,'iron'=>65335,'crop'=>34845,'pop'=>3,'cp'=>115,'attri'=>13.51,'time'=>79910)); +$bid22=array(1=>array('wood'=>220,'clay'=>160,'iron'=>90,'crop'=>40,'pop'=>4,'cp'=>5,'attri'=>100,'time'=>2000),array('wood'=>280,'clay'=>205,'iron'=>115,'crop'=>50,'pop'=>2,'cp'=>6,'attri'=>96.4,'time'=>2620),array('wood'=>360,'clay'=>260,'iron'=>145,'crop'=>65,'pop'=>2,'cp'=>7,'attri'=>92.93,'time'=>3340),array('wood'=>460,'clay'=>335,'iron'=>190,'crop'=>85,'pop'=>2,'cp'=>8,'attri'=>89.58,'time'=>4170),array('wood'=>590,'clay'=>430,'iron'=>240,'crop'=>105,'pop'=>2,'cp'=>10,'attri'=>86.36,'time'=>5140),array('wood'=>755,'clay'=>550,'iron'=>310,'crop'=>135,'pop'=>3,'cp'=>12,'attri'=>83.25,'time'=>6260),array('wood'=>970,'clay'=>705,'iron'=>395,'crop'=>175,'pop'=>3,'cp'=>14,'attri'=>80.25,'time'=>7570),array('wood'=>1240,'clay'=>900,'iron'=>505,'crop'=>225,'pop'=>3,'cp'=>17,'attri'=>77.36,'time'=>9080),array('wood'=>1585,'clay'=>1155,'iron'=>650,'crop'=>290,'pop'=>3,'cp'=>21,'attri'=>74.58,'time'=>10830),array('wood'=>2030,'clay'=>1475,'iron'=>830,'crop'=>370,'pop'=>3,'cp'=>25,'attri'=>71.89,'time'=>12860),array('wood'=>2595,'clay'=>1890,'iron'=>1065,'crop'=>470,'pop'=>3,'cp'=>30,'attri'=>69.31,'time'=>15220),array('wood'=>3325,'clay'=>2420,'iron'=>1360,'crop'=>605,'pop'=>3,'cp'=>36,'attri'=>66.81,'time'=>17950),array('wood'=>4255,'clay'=>3095,'iron'=>1740,'crop'=>775,'pop'=>3,'cp'=>43,'attri'=>64.41,'time'=>21130),array('wood'=>5445,'clay'=>3960,'iron'=>2230,'crop'=>990,'pop'=>3,'cp'=>51,'attri'=>62.09,'time'=>24810),array('wood'=>6970,'clay'=>5070,'iron'=>2850,'crop'=>1270,'pop'=>3,'cp'=>62,'attri'=>59.85,'time'=>29080),array('wood'=>8925,'clay'=>6490,'iron'=>3650,'crop'=>1625,'pop'=>4,'cp'=>74,'attri'=>57.70,'time'=>34030),array('wood'=>11425,'clay'=>8310,'iron'=>4675,'crop'=>2075,'pop'=>4,'cp'=>89,'attri'=>55.62,'time'=>39770),array('wood'=>14620,'clay'=>10635,'iron'=>5980,'crop'=>2660,'pop'=>4,'cp'=>106,'attri'=>53.62,'time'=>46440),array('wood'=>18715,'clay'=>13610,'iron'=>7655,'crop'=>3405,'pop'=>4,'cp'=>128,'attri'=>51.69,'time'=>54170),array('wood'=>23955,'clay'=>17420,'iron'=>9800,'crop'=>4355,'pop'=>4,'cp'=>153,'attri'=>49.83,'time'=>0)); +$bid23=array(1=>array('wood'=>40,'clay'=>50,'iron'=>30,'crop'=>10,'pop'=>0,'cp'=>1,'attri'=>100,'time'=>750),array('wood'=>50,'clay'=>65,'iron'=>40,'crop'=>15,'pop'=>0,'cp'=>1,'attri'=>130,'time'=>1170),array('wood'=>65,'clay'=>80,'iron'=>50,'crop'=>15,'pop'=>0,'cp'=>2,'attri'=>170,'time'=>1660),array('wood'=>85,'clay'=>105,'iron'=>65,'crop'=>20,'pop'=>0,'cp'=>2,'attri'=>220,'time'=>2220),array('wood'=>105,'clay'=>135,'iron'=>80,'crop'=>25,'pop'=>0,'cp'=>2,'attri'=>280,'time'=>2880),array('wood'=>135,'clay'=>170,'iron'=>105,'crop'=>35,'pop'=>1,'cp'=>3,'attri'=>360,'time'=>3640),array('wood'=>175,'clay'=>220,'iron'=>130,'crop'=>45,'pop'=>1,'cp'=>4,'attri'=>460,'time'=>4520),array('wood'=>225,'clay'=>280,'iron'=>170,'crop'=>55,'pop'=>1,'cp'=>4,'attri'=>600,'time'=>5540),array('wood'=>290,'clay'=>360,'iron'=>215,'crop'=>70,'pop'=>1,'cp'=>5,'attri'=>770,'time'=>6730),array('wood'=>370,'clay'=>460,'iron'=>275,'crop'=>90,'pop'=>1,'cp'=>6,'attri'=>1000,'time'=>8110)); +$bid24=array(1=>array('wood'=>1250,'clay'=>1110,'iron'=>1260,'crop'=>600,'pop'=>4,'cp'=>6,'attri'=>100,'time'=>12500),array('wood'=>1600,'clay'=>1420,'iron'=>1615,'crop'=>770,'pop'=>2,'cp'=>7,'attri'=>96.4,'time'=>14800),array('wood'=>2050,'clay'=>1820,'iron'=>2065,'crop'=>985,'pop'=>2,'cp'=>9,'attri'=>0,'time'=>17470),array('wood'=>2620,'clay'=>2330,'iron'=>2640,'crop'=>1260,'pop'=>2,'cp'=>10,'attri'=>89.58,'time'=>20560),array('wood'=>3355,'clay'=>2980,'iron'=>3380,'crop'=>1610,'pop'=>2,'cp'=>12,'attri'=>92.93,'time'=>24150),array('wood'=>4295,'clay'=>3815,'iron'=>4330,'crop'=>2060,'pop'=>3,'cp'=>15,'attri'=>83.25,'time'=>28320),array('wood'=>5500,'clay'=>4880,'iron'=>5540,'crop'=>2640,'pop'=>3,'cp'=>18,'attri'=>86.36,'time'=>33150),array('wood'=>7035,'clay'=>6250,'iron'=>7095,'crop'=>3380,'pop'=>3,'cp'=>21,'attri'=>77.36,'time'=>38750),array('wood'=>9005,'clay'=>8000,'iron'=>9080,'crop'=>4325,'pop'=>3,'cp'=>26,'attri'=>80.25,'time'=>45250),array('wood'=>11530,'clay'=>10240,'iron'=>11620,'crop'=>5535,'pop'=>3,'cp'=>31,'attri'=>71.89,'time'=>52790),array('wood'=>14755,'clay'=>13105,'iron'=>14875,'crop'=>7085,'pop'=>3,'cp'=>37,'attri'=>74.58,'time'=>61540),array('wood'=>18890,'clay'=>16775,'iron'=>19040,'crop'=>9065,'pop'=>3,'cp'=>45,'attri'=>66.81,'time'=>71690),array('wood'=>24180,'clay'=>21470,'iron'=>24370,'crop'=>11605,'pop'=>3,'cp'=>53,'attri'=>69.31,'time'=>83460),array('wood'=>30950,'clay'=>27480,'iron'=>31195,'crop'=>14855,'pop'=>3,'cp'=>64,'attri'=>62.09,'time'=>97110),array('wood'=>39615,'clay'=>35175,'iron'=>39930,'crop'=>19015,'pop'=>3,'cp'=>77,'attri'=>64.41,'time'=>112950),array('wood'=>50705,'clay'=>45025,'iron'=>51110,'crop'=>24340,'pop'=>4,'cp'=>92,'attri'=>57.70,'time'=>131320),array('wood'=>64905,'clay'=>57635,'iron'=>65425,'crop'=>31155,'pop'=>4,'cp'=>111,'attri'=>59.85,'time'=>152630),array('wood'=>83075,'clay'=>73770,'iron'=>83740,'crop'=>39875,'pop'=>4,'cp'=>133,'attri'=>53.62,'time'=>177350),array('wood'=>106340,'clay'=>94430,'iron'=>107190,'crop'=>51040,'pop'=>4,'cp'=>160,'attri'=>55.62,'time'=>206020),array('wood'=>136115,'clay'=>120870,'iron'=>137200,'crop'=>65335,'pop'=>4,'cp'=>192,'attri'=>49.83,'time'=>239290)); +$bid25=array(1=>array('wood'=>580,'clay'=>460,'iron'=>350,'crop'=>180,'pop'=>1,'cp'=>2,'attri'=>100,'time'=>2000),array('wood'=>740,'clay'=>590,'iron'=>450,'crop'=>230,'pop'=>1,'cp'=>3,'attri'=>90,'time'=>2620),array('wood'=>950,'clay'=>755,'iron'=>575,'crop'=>295,'pop'=>1,'cp'=>3,'attri'=>81,'time'=>3340),array('wood'=>1215,'clay'=>965,'iron'=>735,'crop'=>375,'pop'=>1,'cp'=>4,'attri'=>72.9,'time'=>4170),array('wood'=>1555,'clay'=>1235,'iron'=>940,'crop'=>485,'pop'=>1,'cp'=>5,'attri'=>65.61,'time'=>5140),array('wood'=>1995,'clay'=>1580,'iron'=>1205,'crop'=>620,'pop'=>1,'cp'=>6,'attri'=>59.05,'time'=>6260),array('wood'=>2550,'clay'=>2025,'iron'=>1540,'crop'=>790,'pop'=>1,'cp'=>7,'attri'=>53.14,'time'=>7570),array('wood'=>3265,'clay'=>2590,'iron'=>1970,'crop'=>1015,'pop'=>1,'cp'=>9,'attri'=>47.83,'time'=>9080),array('wood'=>4180,'clay'=>3315,'iron'=>2520,'crop'=>1295,'pop'=>1,'cp'=>10,'attri'=>43.05,'time'=>10830),array('wood'=>5350,'clay'=>4245,'iron'=>3230,'crop'=>1660,'pop'=>1,'cp'=>12,'attri'=>38.74,'time'=>12860),array('wood'=>6845,'clay'=>5430,'iron'=>4130,'crop'=>2125,'pop'=>2,'cp'=>15,'attri'=>34.87,'time'=>15220),array('wood'=>8765,'clay'=>6950,'iron'=>5290,'crop'=>2720,'pop'=>2,'cp'=>18,'attri'=>31.38,'time'=>17950),array('wood'=>11220,'clay'=>8900,'iron'=>6770,'crop'=>3480,'pop'=>2,'cp'=>21,'attri'=>28.24,'time'=>21130),array('wood'=>14360,'clay'=>11390,'iron'=>8665,'crop'=>4455,'pop'=>2,'cp'=>26,'attri'=>25.42,'time'=>24810),array('wood'=>18380,'clay'=>14580,'iron'=>11090,'crop'=>5705,'pop'=>2,'cp'=>31,'attri'=>22.88,'time'=>29080),array('wood'=>23530,'clay'=>18660,'iron'=>14200,'crop'=>7300,'pop'=>2,'cp'=>37,'attri'=>20.59,'time'=>34030),array('wood'=>30115,'clay'=>23885,'iron'=>18175,'crop'=>9345,'pop'=>2,'cp'=>44,'attri'=>18.53,'time'=>39770),array('wood'=>38550,'clay'=>30570,'iron'=>23260,'crop'=>11965,'pop'=>2,'cp'=>53,'attri'=>16.68,'time'=>46440),array('wood'=>49340,'clay'=>39130,'iron'=>29775,'crop'=>15315,'pop'=>2,'cp'=>64,'attri'=>15.01,'time'=>54170),array('wood'=>63155,'clay'=>50090,'iron'=>38110,'crop'=>19600,'pop'=>2,'cp'=>77,'attri'=>13.51,'time'=>63130)); +$bid26=array(1=>array('wood'=>550,'clay'=>800,'iron'=>750,'crop'=>250,'pop'=>1,'cp'=>6,'attri'=>100,'time'=>5000),array('wood'=>705,'clay'=>1025,'iron'=>960,'crop'=>320,'pop'=>1,'cp'=>7,'attri'=>90,'time'=>6100),array('wood'=>900,'clay'=>1310,'iron'=>1230,'crop'=>410,'pop'=>1,'cp'=>9,'attri'=>81,'time'=>7380),array('wood'=>1155,'clay'=>1680,'iron'=>1575,'crop'=>525,'pop'=>1,'cp'=>10,'attri'=>72.9,'time'=>8860),array('wood'=>1475,'clay'=>2145,'iron'=>2015,'crop'=>670,'pop'=>1,'cp'=>12,'attri'=>65.61,'time'=>10570),array('wood'=>1890,'clay'=>2750,'iron'=>2575,'crop'=>860,'pop'=>1,'cp'=>15,'attri'=>59.05,'time'=>12560),array('wood'=>2420,'clay'=>3520,'iron'=>3300,'crop'=>1100,'pop'=>1,'cp'=>18,'attri'=>53.14,'time'=>14880),array('wood'=>3095,'clay'=>4505,'iron'=>4220,'crop'=>1405,'pop'=>1,'cp'=>21,'attri'=>47.83,'time'=>17560),array('wood'=>3965,'clay'=>5765,'iron'=>5405,'crop'=>1800,'pop'=>1,'cp'=>26,'attri'=>43.05,'time'=>20660),array('wood'=>5075,'clay'=>7380,'iron'=>6920,'crop'=>2305,'pop'=>1,'cp'=>31,'attri'=>38.74,'time'=>24270),array('wood'=>6495,'clay'=>9445,'iron'=>8855,'crop'=>2950,'pop'=>2,'cp'=>37,'attri'=>34.87,'time'=>28450),array('wood'=>8310,'clay'=>12090,'iron'=>11335,'crop'=>3780,'pop'=>2,'cp'=>45,'attri'=>31.38,'time'=>33310),array('wood'=>10640,'clay'=>15475,'iron'=>14505,'crop'=>4835,'pop'=>2,'y'=>6905,'iron'=>6505,'crop'=>2495,'pop'=>2,'cp'=>15,'attri'=>0,'time'=>16010),array('wood'=>9145,'clay'=>8700,'iron'=>8195,'crop'=>3145,'pop'=>3,'cp'=>18,'attri'=>0,'time'=>18870),array('wood'=>11525,'clay'=>10965,'iron'=>10325,'crop'=>3960,'pop'=>3,'cp'=>21,'attri'=>0,'time'=>22180),array('wood'=>14520,'clay'=>13815,'iron'=>13010,'crop'=>4990,'pop'=>3,'cp'=>26,'attri'=>0,'time'=>26030),array('wood'=>18295,'clay'=>17405,'iron'=>16390,'crop'=>6290,'pop'=>3,'cp'=>31,'attri'=>0,'time'=>30500),array('wood'=>23055,'clay'=>21930,'iron'=>20650,'crop'=>7925,'pop'=>3,'cp'=>37,'attri'=>1,'time'=>35680),array('wood'=>9045,'clay'=>27635,'iron'=>26020,'crop'=>9985,'pop'=>3,'cp'=>45,'attri'=>1,'time'=>41690),array('wood'=>6600,'clay'=>34820,'iron'=>32785,'crop'=>12580,'pop'=>3,'cp'=>53,'attri'=>1,'time'=>48660),array('wood'=>46115,'clay'=>43875,'iron'=>41310,'crop'=>15850,'pop'=>3,'cp'=>64,'attri'=>1,'time'=>56740),array('wood'=>58105,'clay'=>55280,'iron'=>52050,'crop'=>19975,'pop'=>3,'cp'=>77,'attri'=>1,'time'=>66120),array('wood'=>73210,'clay'=>69655,'iron'=>65585,'crop'=>25165,'pop'=>3,'cp'=>92,'attri'=>1,'time'=>77000),array('wood'=>92245,'clay'=>87760,'iron'=>82640,'crop'=>31710,'pop'=>4,'cp'=>111,'attri'=>1,'time'=>89620),array('wood'=>116230,'clay'=>110580,'iron'=>104125,'crop'=>39955,'pop'=>4,'cp'=>133,'attri'=>1,'time'=>104260),array('wood'=>146450,'clay'=>139330,'iron'=>131195,'crop'=>50340,'pop'=>4,'cp'=>160,'attri'=>1,'time'=>121240),array('wood'=>184530,'clay'=>175560,'iron'=>165305,'crop'=>63430,'pop'=>4,'cp'=>192,'attri'=>1,'time'=>140940),array('wood'=>232505,'clay'=>221205,'iron'=>208285,'crop'=>79925,'pop'=>4,'cp'=>230,'attri'=>1,'time'=>163790)); +$bid28=array(1=>array('wood'=>1400,'clay'=>1330,'iron'=>1200,'crop'=>400,'pop'=>3,'cp'=>4,'attri'=>110,'time'=>3000),array('wood'=>1790,'clay'=>1700,'iron'=>1535,'crop'=>510,'pop'=>2,'cp'=>4,'attri'=>120,'time'=>3780),array('wood'=>2295,'clay'=>2180,'iron'=>1965,'crop'=>655,'pop'=>2,'cp'=>5,'attri'=>130,'time'=>4680),array('wood'=>2935,'clay'=>2790,'iron'=>2515,'crop'=>840,'pop'=>2,'cp'=>6,'attri'=>140,'time'=>5730),array('wood'=>3760,'clay'=>3570,'iron'=>3220,'crop'=>1075,'pop'=>2,'cp'=>7,'attri'=>150,'time'=>6950),array('wood'=>4810,'clay'=>4570,'iron'=>4125,'crop'=>1375,'pop'=>2,'cp'=>9,'attri'=>160,'time'=>8360),array('wood'=>6155,'clay'=>5850,'iron'=>5280,'crop'=>1760,'pop'=>2,'cp'=>11,'attri'=>170,'time'=>10000),array('wood'=>7880,'clay'=>7485,'iron'=>6755,'crop'=>2250,'pop'=>2,'cp'=>13,'attri'=>180,'time'=>11900),array('wood'=>10090,'clay'=>9585,'iron'=>8645,'crop'=>2880,'pop'=>2,'cp'=>15,'attri'=>190,'time'=>14110),array('wood'=>12915,'clay'=>12265,'iron'=>11070,'crop'=>3690,'pop'=>2,'cp'=>19,'attri'=>200,'time'=>16660),array('wood'=>16530,'clay'=>15700,'iron'=>14165,'crop'=>4720,'pop'=>3,'cp'=>22,'attri'=>210,'time'=>19630),array('wood'=>21155,'clay'=>20100,'iron'=>18135,'crop'=>6045,'pop'=>3,'cp'=>27,'attri'=>220,'time'=>23070),array('wood'=>27080,'clay'=>25725,'iron'=>23210,'crop'=>7735,'pop'=>3,'cp'=>32,'attri'=>230,'time'=>27060),array('wood'=>4660,'clay'=>32930,'iron'=>29710,'crop'=>9905,'pop'=>3,'cp'=>39,'attri'=>240,'time'=>31690),array('wood'=>44370,'clay'=>42150,'iron'=>38030,'crop'=>12675,'pop'=>3,'cp'=>46,'attri'=>250,'time'=>37060),array('wood'=>56790,'clay'=>53950,'iron'=>48680,'crop'=>16225,'pop'=>3,'cp'=>55,'attri'=>260,'time'=>43290),array('wood'=>72690,'clay'=>69060,'iron'=>62310,'crop'=>20770,'pop'=>3,'cp'=>67,'attri'=>270,'time'=>50520),array('wood'=>93045,'clay'=>88395,'iron'=>79755,'crop'=>26585,'pop'=>3,'cp'=>80,'attri'=>280,'time'=>58900),array('wood'=>119100,'clay'=>113145,'iron'=>102085,'crop'=>34030,'pop'=>3,'cp'=>96,'attri'=>290,'time'=>68630),array('wood'=>152445,'clay'=>144825,'iron'=>130670,'crop'=>43555,'pop'=>3,'cp'=>115,'attri'=>300,'time'=>79910)); +$bid29=array(1=>array('wood'=>630,'clay'=>420,'iron'=>780,'crop'=>360,'pop'=>4,'cp'=>1,'attri'=>100,'time'=>2000),array('wood'=>805,'clay'=>540,'iron'=>1000,'crop'=>460,'pop'=>2,'cp'=>1,'attri'=>90,'time'=>2620),array('wood'=>1030,'clay'=>690,'iron'=>1280,'crop'=>590,'pop'=>2,'cp'=>2,'airon'=>11785,'crop'=>5440,'pop'=>3,'cp'=>9,'attri'=>31.38,'time'=>17950),array('wood'=>12185,'clay'=>8125,'iron'=>15085,'crop'=>6965,'pop'=>3,'cp'=>11,'attri'=>28.24,'time'=>21130),array('wood'=>15600,'clay'=>10400,'iron'=>19310,'crop'=>8915,'pop'=>3,'cp'=>13,'attri'=>25.42,'time'=>24810),array('wood'=>19965,'clay'=>13310,'iron'=>24720,'crop'=>11410,'pop'=>3,'cp'=>15,'attri'=>22.88,'time'=>29080),array('wood'=>25555,'clay'=>17035,'iron'=>31640,'crop'=>14605,'pop'=>4,'cp'=>18,'attri'=>20.59,'time'=>34030),array('wood'=>32710,'clay'=>21810,'iron'=>40500,'crop'=>18690,'pop'=>4,'cp'=>22,'attri'=>18.53,'time'=>39770),array('wood'=>41870,'clay'=>27915,'iron'=>51840,'crop'=>23925,'pop'=>4,'cp'=>27,'attri'=>16.68,'time'=>46440),array('wood'=>53595,'clay'=>35730,'iron'=>66355,'crop'=>30625,'pop'=>4,'cp'=>32,'attri'=>15.01,'time'=>54170),array('wood'=>68600,'clay'=>45735,'iron'=>84935,'crop'=>39200,'pop'=>4,'cp'=>38,'attri'=>13.51,'time'=>63130)); +$bid30=array(1=>array('wood'=>780,'clay'=>420,'iron'=>660,'crop'=>300,'pop'=>5,'cp'=>2,'attri'=>100,'time'=>2200),array('wood'=>1000,'clay'=>540,'iron'=>845,'crop'=>385,'pop'=>3,'cp'=>3,'attri'=>90,'time'=>2850),array('wood'=>1280,'clay'=>690,'iron'=>1080,'crop'=>490,'pop'=>3,'cp'=>3,'attri'=>81,'time'=>3610),array('wood'=>1635,'clay'=>880,'iron'=>1385,'crop'=>630,'pop'=>3,'cp'=>4,'attri'=>72.9,'time'=>4490),array('wood'=>2095,'clay'=>1125,'iron'=>1770,'crop'=>805,'pop'=>3,'cp'=>5,'attri'=>65.61,'time'=>5500),array('wood'=>2680,'clay'=>1445,'iron'=>2270,'crop'=>1030,'pop'=>3,'cp'=>6,'attri'=>59.05,'time'=>6680),array('wood'=>3430,'clay'=>1845,'iron'=>2905,'crop'=>1320,'pop'=>3,'cp'=>7,'attri'=>53.14,'time'=>8050),array('wood'=>4390,'clay'=>2365,'iron'=>3715,'crop'=>1690,'pop'=>3,'cp'=>9,'attri'=>47.83,'time'=>9640),array('wood'=>5620,'clay'=>3025,'iron'=>4755,'crop'=>2160,'pop'=>3,'cp'=>10,'attri'=>43.05,'time'=>11480),array('wood'=>7195,'clay'=>3875,'iron'=>6085,'crop'=>2765,'pop'=>3,'cp'=>12,'attri'=>38.74,'time'=>13620),array('wood'=>9210,'clay'=>4960,'iron'=>7790,'crop'=>3540,'pop'=>4,'cp'=>15,'attri'=>34.87,'time'=>16100),array('wood'=>11785,'clay'=>6345,'iron'=>9975,'crop'=>4535,'pop'=>4,'cp'=>18,'attri'=>31.38,'time'=>18980),array('wood'=>15085,'clay'=>8125,'iron'=>12765,'crop'=>5805,'pop'=>4,'cp'=>21,'attri'=>28.24,'time'=>22310),array('wood'=>19310,'clay'=>10400,'iron'=>16340,'crop'=>7430,'pop'=>4,'cp'=>26,'attri'=>25.42,'time'=>26180),array('wood'=>24720,'clay'=>13310,'iron'=>20915,'crop'=>9505,'pop'=>4,'cp'=>31,'attri'=>22.88,'time'=>30670),array('wood'=>31640,'clay'=>17035,'iron'=>26775,'crop'=>12170,'pop'=>4,'cp'=>37,'attri'=>20.59,'time'=>35880),array('wood'=>40500,'clay'=>21810,'iron'=>34270,'crop'=>15575,'pop'=>4,'cp'=>44,'attri'=>18.53,'time'=>41920),array('wood'=>51840,'clay'=>27915,'iron'=>43865,'crop'=>19940,'pop'=>4,'cp'=>53,'attri'=>16.68,'time'=>48930),array('wood'=>66355,'clay'=>35730,'iron'=>56145,'crop'=>25520,'pop'=>4,'cp'=>64,'attri'=>15.01,'time'=>57060),array('wood'=>84935,'clay'=>45735,'iron'=>71870,'crop'=>32665,'pop'=>4,'cp'=>77,'attri'=>13.51,'time'=>66490)); +$bid31=array(1=>array('wood'=>70,'clay'=>90,'iron'=>170,'crop'=>70,'pop'=>0,'cp'=>1,'attri'=>3,'time'=>2000),array('wood'=>90,'clay'=>115,'iron'=>220,'crop'=>90,'pop'=>0,'cp'=>1,'attri'=>6,'time'=>2620),array('wood'=>115,'clay'=>145,'iron'=>280,'crop'=>115,'pop'=>0,'cp'=>2,'attri'=>9,'time'=>3340),array('wood'=>145,'clay'=>190,'iron'=>355,'crop'=>145,'pop'=>0,'cp'=>2,'attri'=>13,'time'=>4170),array('wood'=>190,'clay'=>240,'iron'=>455,'crop'=>190,'pop'=>0,'cp'=>2,'attri'=>16,'time'=>5140),array('wood'=>240,'clay'=>310,'iron'=>585,'crop'=>240,'pop'=>1,'cp'=>3,'attri'=>19,'time'=>6260),array('wood'=>310,'clay'=>395,'iron'=>750,'crop'=>310,'pop'=>1,'cp'=>4,'attri'=>23,'time'=>7570),array('wood'=>395,'clay'=>505,'iron'=>955,'crop'=>395,'pop'=>1,'cp'=>4,'attri'=>27,'time'=>9080),array('wood'=>505,'clay'=>650,'iron'=>1225,'crop'=>505,'pop'=>1,'cp'=>5,'attri'=>30,'time'=>10830),array('wood'=>645,'clay'=>830,'iron'=>1570,'crop'=>645,'pop'=>1,'cp'=>6,'attri'=>34,'time'=>12860),array('wood'=>825,'clay'=>1065,'lay'=>7655,'iron'=>14460,'crop'=>5955,'pop'=>2,'cp'=>32,'attri'=>75,'time'=>54170),array('wood'=>7620,'clay'=>9800,'iron'=>18510,'crop'=>7620,'pop'=>2,'cp'=>38,'attri'=>81,'time'=>63130)); +$bid32=array(1=>array('wood'=>120,'clay'=>200,'iron'=>0,'crop'=>80,'pop'=>0,'cp'=>1,'attri'=>2,'time'=>2000),array('wood'=>155,'clay'=>255,'iron'=>0,'crop'=>100,'pop'=>0,'cp'=>1,'attri'=>4,'time'=>2620),array('wood'=>195,'clay'=>330,'iron'=>0,'crop'=>130,'pop'=>0,'cp'=>2,'attri'=>6,'time'=>3340),array('wood'=>250,'clay'=>420,'iron'=>0,'crop'=>170,'pop'=>0,'cp'=>2,'attri'=>8,'time'=>4170),array('wood'=>320,'clay'=>535,'iron'=>0,'crop'=>215,'pop'=>0,'cp'=>2,'attri'=>10,'time'=>5140),array('wood'=>410,'clay'=>685,'iron'=>0,'crop'=>275,'pop'=>1,'cp'=>3,'attri'=>13,'time'=>6260),array('wood'=>530,'clay'=>880,'iron'=>0,'crop'=>350,'pop'=>1,'cp'=>4,'attri'=>15,'time'=>7570),array('wood'=>675,'clay'=>1125,'iron'=>0,'crop'=>450,'pop'=>1,'cp'=>4,'attri'=>17,'time'=>9080),array('wood'=>865,'clay'=>1440,'iron'=>0,'crop'=>575,'pop'=>1,'cp'=>5,'attri'=>20,'time'=>10830),array('wood'=>1105,'clay'=>1845,'iron'=>0,'crop'=>740,'pop'=>1,'cp'=>6,'attri'=>22,'time'=>12860),array('wood'=>1415,'clay'=>2360,'iron'=>0,'crop'=>945,'pop'=>1,'cp'=>7,'attri'=>24,'time'=>15220),array('wood'=>1815,'clay'=>3020,'iron'=>0,'crop'=>1210,'pop'=>1,'cp'=>9,'attri'=>27,'time'=>17950),array('wood'=>2320,'clay'=>3870,'iron'=>0,'crop'=>1545,'pop'=>1,'cp'=>11,'attri'=>29,'time'=>21130),array('wood'=>2970,'clay'=>4950,'iron'=>0,'crop'=>1980,'pop'=>1,'cp'=>13,'attri'=>32,'time'=>24810),array('wood'=>3805,'clay'=>6340,'iron'=>0,'crop'=>2535,'pop'=>1,'cp'=>15,'attri'=>35,'time'=>29080),array('wood'=>4870,'clay'=>8115,'iron'=>0,'crop'=>3245,'pop'=>2,'cp'=>18,'attri'=>37,'time'=>34030),array('wood'=>6230,'clay'=>10385,'iron'=>0,'crop'=>4155,'pop'=>2,'cp'=>22,'attri'=>40,'time'=>39770),array('wood'=>7975,'clay'=>13290,'iron'=>0,'crop'=>5315,'pop'=>2,'cp'=>27,'attri'=>43,'time'=>46440),array('wood'=>10210,'clay'=>17015,'iron'=>0,'crop'=>6805,'pop'=>2,'cp'=>32,'attri'=>46,'time'=>54170),array('wood'=>13065,'clay'=>21780,'iron'=>0,'crop'=>8710,'pop'=>2,'cp'=>38,'attri'=>49,'time'=>63130)); +$bid33=array(1=>array('wood'=>160,'clay'=>100,'iron'=>80,'crop'=>60,'pop'=>0,'cp'=>1,'attri'=>2,'time'=>2000),array('wood'=>205,'clay'=>130,'iron'=>100,'crop'=>75,'pop'=>0,'cp'=>1,'attri'=>5,'time'=>2620),array('wood'=>260,'clay'=>165,'iron'=>130,'crop'=>100,'pop'=>0,'cp'=>2,'attri'=>8,'time'=>3340),array('wood'=>335,'clay'=>210,'iron'=>170,'crop'=>125,'pop'=>0,'cp'=>2,'attri'=>10,'time'=>4170),array('wood'=>430,'clay'=>270,'iron'=>215,'crop'=>160,'pop'=>0,'cp'=>2,'attri'=>13,'time'=>5140),array('wood'=>550,'clay'=>345,'iron'=>275,'crop'=>205,'pop'=>1,'cp'=>3,'attri'=>16,'time'=>6260),array('wood'=>705,'clay'=>440,'iron'=>350,'crop'=>265,'pop'=>1,'cp'=>4,'attri'=>19,'time'=>7570),array('wood'=>900,'clay'=>565,'iron'=>450,'crop'=>340,'pop'=>1,'cp'=>4,'attri'=>22,'time'=>9080),array('wood'=>1155,'clay'=>720,'iron'=>575,'crop'=>430,'pop'=>1,'cp'=>5,'attri'=>25,'time'=>10830),array('wood'=>1475,'clay'=>920,'iron'=>740,'crop'=>555,'pop'=>1,'cp'=>6,'attri'=>28,'time'=>12860),array('wood'=>1890,'clay'=>1180,'iron'=>945,'crop'=>710,'pop'=>1,'cp'=>7,'attri'=>31,'time'=>15220),array('wood'=>2420,'clay'=>1510,'iron'=>1210,'crop'=>905,'pop'=>1,'cp'=>9,'attri'=>34,'time'=>17950),array('wood'=>3095,'clay'=>1935,'iron'=>1545,'crop'=>1160,'pop'=>1,'cp'=>11,'attri'=>38,'time'=>21130),array('wood'=>3960,'clay'=>2475,'iron'=>1980,'crop'=>1485,'pop'=>1,'cp'=>13,'attri'=>41,'time'=>24810),array('wood'=>5070,'clay'=>3170,'iron'=>2535,'crop'=>1900,'pop'=>1,'cp'=>15,'attri'=>45,'time'=>29080),array('wood'=>6490,'clay'=>4055,'iron'=>3245,'crop'=>2435,'pop'=>2,'cp'=>18,'attri'=>48,'time'=>34030),array('wood'=>8310,'clay'=>5190,'iron'=>4155,'crop'=>3115,'pop'=>2,'cp'=>22,'attri'=>52,'time'=>39770),array('wood'=>10635,'clay'=>6645,'iron'=>5315,'crop'=>3990,'pop'=>2,'cp'=>27,'attri'=>56,'time'=>46440),array('wood'=>13610,'clay'=>8505,'iron'=>6805,'crop'=>5105,'pop'=>2,'cp'=>32,'attri'=>60,'time'=>54170),array('wood'=>17420,'clay'=>10890,'iron'=>8710,'crop'=>6535,'pop'=>2,'cp'=>38,'attri'=>64,'time'=>63130)); +$bid34=array(1=>array('wood'=>155,'clay'=>130,'iron'=>125,'crop'=>70,'pop'=>2,'cp'=>1,'attri'=>110,'time'=>2200),array('wood'=>200,'clay'=>165,'iron'=>160,'crop'=>90,'pop'=>1,'cp'=>1,'attri'=>120,'time'=>3150),array('wood'=>255,'clay'=>215,'iron'=>205,'crop'=>115,'pop'=>1,'cp'=>2,'attri'=>130,'time'=>4260),array('wood'=>325,'clay'=>275,'iron'=>260,'crop'=>145,'pop'=>1,'cp'=>2,'attri'=>140,'time'=>5540),array('wood'=>415,'clay'=>350,'iron'=>335,'crop'=>190,'pop'=>1,'cp'=>2,'attri'=>150,'time'=>7020),array('wood'=>535,'clay'=>445,'iron'=>430,'crop'=>240,'pop'=>2,'cp'=>3,'attri'=>160,'time'=>8750),array('wood'=>680,'clay'=>570,'iron'=>550,'crop'=>310,'pop'=>2,'cp'=>4,'attri'=>170,'time'=>10750),array('wood'=>875,'clay'=>730,'iron'=>705,'crop'=>395,'pop'=>2,'cp'=>4,'attri'=>180,'time'=>13070),array('wood'=>1115,'clay'=>935,'iron'=>900,'crop'=>505,'pop'=>2,'cp'=>5,'attri'=>190,'time'=>15760),array('wood'=>1430,'clay'=>1200,'iron'=>1155,'crop'=>645,'pop'=>2,'cp'=>6,'attri'=>200,'time'=>18880),array('wood'=>1830,'clay'=>1535,'iron'=>1475,'crop'=>825,'pop'=>2,'cp'=>7,'attri'=>210,'time'=>22500),array('wood'=>2340,'clay'=>1965,'iron'=>1890,'crop'=>1060,'pop'=>2,'cp'=>9,'attri'=>220,'time'=>26700),array('wood'=>3000,'clay'=>2515,'iron'=>2420,'crop'=>1355,'pop'=>2,'cp'=>11,'attri'=>230,'time'=>31570),array('wood'=>3840,'clay'=>3220,'iron'=>3095,'crop'=>1735,'pop'=>2,'cp'=>13,'attri'=>240,'time'=>37220),array('wood'=>4910,'clay'=>4120,'iron'=>3960,'crop'=>2220,'pop'=>2,'cp'=>15,'attri'=>250,'time'=>43780),array('wood'=>6290,'clay'=>5275,'iron'=>5070,'crop'=>2840,'pop'=>3,'cp'=>18,'attri'=>260,'time'=>51380),array('wood'=>8050,'clay'=>6750,'iron'=>6490,'crop'=>3635,'pop'=>3,'cp'=>22,'attri'=>270,'time'=>60200),array('wood'=>10300,'clay'=>8640,'iron'=>8310,'crop'=>4650,'pop'=>3,'cp'=>27,'attri'=>280,'time'=>70430),array('wood'=>13185,'clay'=>11060,'iron'=>10635,'crop'=>5955,'pop'=>3,'cp'=>32,'attri'=>290,'time'=>82300),array('wood'=>16880,'clay'=>14155,'iron'=>13610,'crop'=>7620,'pop'=>3,'cp'=>38,'attri'=>300,'time'=>96070)); +$bid35=array(1=>array('wood'=>1460,'clay'=>930,'iron'=>1250,'crop'=>1740,'pop'=>6,'cp'=>5,'attri'=>0,'time'=>8000),array('wood'=>2045,'clay'=>1300,'iron'=>1750,'crop'=>2435,'pop'=>3,'cp'=>6,'attri'=>0,'time'=>9880),array('wood'=>2860,'clay'=>1825,'iron'=>2450,'crop'=>3410,'pop'=>3,'cp'=>7,'attri'=>0,'time'=>12060),array('wood'=>4005,'clay'=>2550,'iron'=>3430,'crop'=>4775,'pop'=>3,'cp'=>8,'attri'=>0,'time'=>14590),array('wood'=>5610,'clay'=>3575,'iron'=>4800,'crop'=>6685,'pop'=>3,'cp'=>10,'attri'=>0,'time'=>17530),array('wood'=>7850,'clay'=>5000,'iron'=>6725,'crop'=>9360,'pop'=>4,'cp'=>12,'attri'=>0,'time'=>20930),array('wood'=>10995,'clay'=>7000,'iron'=>9410,'crop'=>13100,'pop'=>4,'cp'=>14,'attri'=>0,'time'=>24880),array('wood'=>15390,'clay'=>9805,'iron'=>13175,'crop'=>18340,'pop'=>4,'cp'=>17,'attri'=>0,'time'=>29460),array('wood'=>21545,'clay'=>13725,'iron'=>18445,'crop'=>25680,'pop'=>4,'cp'=>21,'attri'=>0,'time'=>34770),array('wood'=>30165,'clay'=>19215,'iron'=>25825,'crop'=>35950,'pop'=>4,'cp'=>25,'attri'=>0,'time'=>40930)); +$bid36=array(1=>array('wood'=>100,'clay'=>100,'iron'=>100,'crop'=>100,'pop'=>4,'cp'=>1,'attri'=>10,'time'=>2000),array('wood'=>130,'clay'=>130,'iron'=>130,'crop'=>130,'pop'=>2,'cp'=>1,'attri'=>22,'time'=>2320),array('wood'=>165,'clay'=>165,'iron'=>165,'crop'=>165,'pop'=>2,'cp'=>2,'attri'=>35,'time'=>2690),array('wood'=>210,'clay'=>210,'iron'=>210,'crop'=>210,'pop'=>2,'cp'=>2,'attri'=>49,'time'=>3120),array('wood'=>270,'clay'=>270,'iron'=>270,'crop'=>270,'pop'=>2,'cp'=>2,'attri'=>64,'time'=>3620),array('wood'=>345,'clay'=>345,'iron'=>345,'crop'=>345,'pop'=>3,'cp'=>3,'attri'=>80,'time'=>4200),array('wood'=>440,'clay'=>440,'iron'=>440,'crop'=>440,'pop'=>3,'cp'=>4,'attri'=>97,'time'=>4870),array('wood'=>565,'clay'=>565,'iron'=>565,'crop'=>565,'pop'=>3,'cp'=>4,'attri'=>115,'time'=>5650),array('wood'=>720,'clay'=>720,'iron'=>720,'crop'=>720,'pop'=>3,'cp'=>5,'attri'=>134,'time'=>6560),array('wood'=>920,'clay'=>920,'iron'=>920,'crop'=>920,'pop'=>3,'cp'=>6,'attri'=>154,'time'=>7610),array('wood'=>1180,'clay'=>1180,'iron'=>1180,'crop'=>1180,'pop'=>3,'cp'=>7,'attri'=>175,'time'=>8820),array('wood'=>1510,'clay'=>1510,'iron'=>1510,'crop'=>1510,'pop'=>3,'cp'=>9,'attri'=>196,'time'=>10230),array('wood'=>1935,'clay'=>1935,'iron'=>1935,'crop'=>1935,'pop'=>3,'cp'=>11,'attri'=>218,'time'=>11870),array('wood'=>2475,'clay'=>2475,'iron'=>2475,'crop'=>2475,'pop'=>3,'cp'=>13,'attri'=>241,'time'=>13770),array('wood'=>3170,'clay'=>3170,'iron'=>3170,'crop'=>3170,'pop'=>3,'cp'=>15,'attri'=>265,'time'=>15980),array('wood'=>4055,'clay'=>4055,'ircrop'=>240,'pop'=>2,'cp'=>1,'attri'=>0,'time'=>2300),array('wood'=>930,'clay'=>890,'iron'=>930,'crop'=>320,'pop'=>1,'cp'=>1,'attri'=>0,'time'=>2670),array('wood'=>1240,'clay'=>1185,'iron'=>1240,'crop'=>425,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>3090),array('wood'=>1645,'clay'=>1575,'iron'=>1645,'crop'=>565,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>3590),array('wood'=>2190,'clay'=>2095,'iron'=>2190,'crop'=>750,'pop'=>1,'cp'=>2,'attri'=>0,'time'=>4160),array('wood'=>2915,'clay'=>2790,'iron'=>2915,'crop'=>1000,'pop'=>2,'cp'=>3,'attri'=>0,'time'=>4830),array('wood'=>3875,'clay'=>3710,'iron'=>3875,'crop'=>1330,'pop'=>2,'cp'=>4,'attri'=>0,'time'=>5600),array('wood'=>5155,'clay'=>4930,'iron'=>5155,'crop'=>1765,'pop'=>2,'cp'=>4,'attri'=>0,'time'=>6500),array('wood'=>6855,'clay'=>6560,'iron'=>6855,'crop'=>2350,'pop'=>2,'cp'=>5,'attri'=>0,'time'=>7540),array('wood'=>9115,'clay'=>8725,'iron'=>9115,'crop'=>3125,'pop'=>2,'cp'=>6,'attri'=>1,'time'=>8750),array('wood'=>12125,'clay'=>11605,'iron'=>12125,'crop'=>4155,'pop'=>2,'cp'=>7,'attri'=>1,'time'=>10150),array('wood'=>16125,'clay'=>15435,'iron'=>16125,'crop'=>5530,'pop'=>2,'cp'=>9,'attri'=>1,'time'=>11770),array('wood'=>21445,'clay'=>20525,'iron'=>21445,'crop'=>7350,'pop'=>2,'cp'=>11,'attri'=>1,'time'=>13650),array('wood'=>28520,'clay'=>27300,'iron'=>28520,'crop'=>9780,'pop'=>2,'cp'=>13,'attri'=>1,'time'=>15840),array('wood'=>37935,'clay'=>36310,'iron'=>37935,'crop'=>13005,'pop'=>2,'cp'=>15,'attri'=>2,'time'=>18370),array('wood'=>50450,'clay'=>48290,'iron'=>50450,'crop'=>17300,'pop'=>3,'cp'=>18,'attri'=>2,'time'=>21310),array('wood'=>67100,'clay'=>64225,'iron'=>67100,'crop'=>23005,'pop'=>3,'cp'=>22,'attri'=>2,'time'=>24720),array('wood'=>89245,'clay'=>85420,'iron'=>89245,'crop'=>30600,'pop'=>3,'cp'=>27,'attri'=>2,'time'=>28680),array('wood'=>118695,'clay'=>113605,'iron'=>118695,'crop'=>40695,'pop'=>3,'cp'=>32,'attri'=>2,'time'=>33260),array('wood'=>157865,'clay'=>151095,'iron'=>157865,'crop'=>54125,'pop'=>3,'cp'=>38,'attri'=>3,'time'=>38590)); +$bid38=array(1=>array('wood'=>650,'clay'=>800,'iron'=>450,'crop'=>200,'pop'=>1,'cp'=>1,'attri'=>3600,'time'=>9000),array('wood'=>830,'clay'=>1025,'iron'=>575,'crop'=>255,'pop'=>1,'cp'=>1,'attri'=>5100,'time'=>10740),array('wood'=>1065,'clay'=>1310,'iron'=>735,'crop'=>330,'pop'=>1,'cp'=>2,'attri'=>6900,'time'=>12760),array('wood'=>1365,'clay'=>1680,'iron'=>945,'crop'=>420,'pop'=>1,'cp'=>2,'attri'=>9300,'time'=>15100),array('wood'=>1745,'clay'=>2145,'iron'=>1210,'crop'=>535,'pop'=>1,'cp'=>2,'attri'=>12000,'time'=>17820),array('wood'=>2235,'clay'=>2750,'iron'=>1545,'crop'=>685,'pop'=>1,'cp'=>3,'attri'=>15000,'time'=>20970),array('wood'=>2860,'clay'=>3520,'iron'=>1980,'crop'=>880,'pop'=>1,'cp'=>4,'attri'=>18900,'time'=>24620),array('wood'=>3660,'clay'=>4505,'iron'=>2535,'crop'=>1125,'pop'=>1,'cp'=>4,'attri'=>23400,'time'=>28860),array('wood'=>4685,'clay'=>5765,'iron'=>3245,'crop'=>1440,'pop'=>1,'cp'=>5,'attri'=>28800,'time'=>33780),array('wood'=>5995,'clay'=>7380,'iron'=>4150,'crop'=>1845,'pop'=>1,'cp'=>6,'attri'=>35400,'time'=>39480),array('wood'=>7675,'clay'=>9445,'iron'=>5315,'crop'=>2360,'pop'=>2,'cp'=>7,'attri'=>43200,'time'=>46100),array('wood'=>9825,'clay'=>12090,'iron'=>6800,'crop'=>3020,'pop'=>2,'cp'=>9,'attri'=>52800,'time'=>53780),array('wood'=>12575,'clay'=>15475,'iron'=>8705,'crop'=>3870,'pop'=>2,'cp'=>11,'attri'=>64200,'time'=>62680),array('wood'=>16095,'clay'=>19805,'iron'=>11140,'crop'=>4950,'pop'=>2,'cp'=>13,'attri'=>77700,'time'=>73010),array('wood'=>20600,'clay'=>25355,'iron'=>14260,'crop'=>6340,'pop'=>2,'cp'=>15,'attri'=>93900,'time'=>84990),array('wood'=>26365,'clay'=>32450,'iron'=>18255,'crop'=>8115,'pop'=>2,'cp'=>18,'attri'=>113700,'time'=>98890),array('wood'=>33750,'clay'=>41540,'iron'=>23365,'crop'=>10385,'pop'=>2,'cp'=>22,'attri'=>137100,'time'=>115010),array('wood'=>43200,'clay'=>53170,'iron'=>29910,'crop'=>13290,'pop'=>2,'cp'=>27,'attri'=>165300,'time'=>133710),array('wood'=>55295,'clay'=>68055,'iron'=>38280,'crop'=>17015,'pop'=>2,'cp'=>32,'attri'=>199200,'time'=>155400),array('wood'=>70780,'clay'=>87110,'iron'=>49000,'crop'=>21780,'pop'=>2,'cp'=>38,'attri'=>240000,'time'=>180570)); +$bid39=array(1=>array('wood'=>400,'clay'=>500,'iron'=>350,'crop'=>100,'pop'=>1,'cp'=>1,'attri'=>3600,'time'=>7000),array('wood'=>510,'clay'=>640,'iron'=>450,'crop'=>130,'pop'=>1,'cp'=>1,'attri'=>5100,'time'=>8420),array('wood'=>655,'clay'=>820,'iron'=>575,'crop'=>165,'pop'=>1,'cp'=>2,'attri'=>6900,'time'=>10070),array('wood'=>840,'clay'=>1050,'iron'=>735,'crop'=>210,'pop'=>1,'cp'=>2,'attri'=>9300,'time'=>11980),array('wood'=>1075,'clay'=>1340,'iron'=>940,'crop'=>270,'pop'=>1,'cp'=>2,'attri'=>12000,'time'=>14190),array('wood'=>1375,'clay'=>1720,'iron'=>1205,'crop'=>345,'pop'=>1,'cp'=>3,'attri'=>15000,'time'=>16770),array('wood'=>1760,'clay'=>2200,'iron'=>1540,'crop'=>440,'pop'=>1,'cp'=>4,'attri'=>18900,'time'=>19750),array('wood'=>2250,'clay'=>2815,'iron'=>1970,'crop'=>565,'pop'=>1,'cp'=>4,'attri'=>23400,'time'=>23210),array('wood'=>2880,'clay'=>3605,'iron'=>2520,'crop'=>720,'pop'=>1,'cp'=>5,'attri'=>28800,'time'=>27220),array('wood'=>3690,'clay'=>4610,'iron'=>3230,'crop'=>920,'pop'=>1,'cp'=>6,'attri'=>35400,'time'=>31880),array('wood'=>4720,'clay'=>5905,'iron'=>4130,'crop'=>1180,'pop'=>2,'cp'=>7,'attri'=>43200,'time'=>37280),array('wood'=>6045,'clay'=>7555,'iron'=>5290,'crop'=>1510,'pop'=>2,'cp'=>9,'attri'=>52800,'time'=>43540),array('wood'=>7735,'clay'=>9670,'iron'=>6770,'crop'=>1935,'pop'=>2,'cp'=>11,'attri'=>64200,'time'=>50810),array('wood'=>9905,'clay'=>12380,'iron'=>8665,'crop'=>2475,'pop'=>2,'cp'=>13,'attri'=>77700,'time'=>59240),array('wood'=>12675,'clay'=>15845,'iron'=>11090,'crop'=>3170,'pop'=>2,'cp'=>15,'attri'=>93900,'time'=>69010),array('wood'=>16225,'clay'=>20280,'iron'=>14200,'crop'=>4055,'pop'=>2,'cp'=>18,'attri'=>113700,'time'=>80360),array('wood'=>20770,'clay'=>25960,'iron'=>18175,'crop'=>5190,'pop'=>2,'cp'=>22,'attri'=>137100,'time'=>93510),array('wood'=>26585,'clay'=>33230,'iron'=>23260,'crop'=>6645,'pop'=>2,'cp'=>27,'attri'=>165300,'time'=>108780),array('wood'=>34030,'clay'=>42535,'iron'=>29775,'crop'=>8505,'pop'=>2,'cp'=>32,'attri'=>199200,'time'=>126480),array('wood'=>43555,'clay'=>54445,'iron'=>38110,'crop'=>10890,'pop'=>2,'cp'=>38,'attri'=>240000,'time'=>147020)); +$bid40=array(1=>array('wood'=>66700,'clay'=>69050,'iron'=>72200,'crop'=>13200,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>18000),array('wood'=>68535,'clay'=>70950,'iron'=>74185,'crop'=>13565,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>18850),array('wood'=>70420,'clay'=>72900,'iron'=>76225,'crop'=>13935,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>19720),array('wood'=>72355,'clay'=>74905,'iron'=>78320,'crop'=>14320,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>20590),array('wood'=>74345,'clay'=>76965,'iron'=>80475,'crop'=>14715,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>21480),array('wood'=>76390,'clay'=>79080,'iron'=>82690,'crop'=>15120,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>22380),array('wood'=>78490,'clay'=>81255,'iron'=>84965,'crop'=>15535,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>23290),array('wood'=>80650,'clay'=>83490,'iron'=>87300,'crop'=>15960,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>24220),array('wood'=>82865,'clay'=>85785,'iron'=>89700,'crop'=>16400,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>25160),array('wood'=>85145,'clay'=>88145,'iron'=>92165,'crop'=>16850,'pop'=>1,'cp'=>0,'attri'=>0,'time'=>26110),array('wood'=>87485,'clay'=>90570,'iron'=>94700,'crop'=>17315,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>27080),array('wood'=>89895,'clay'=>93060,'iron'=>97305,'crop'=>17790,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>28060),array('wood'=>92365,'clay'=>95620,'iron'=>99980,'crop'=>18280,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>29050),array('wood'=>94905,'clay'=>98250,'iron'=>102730,'crop'=>18780,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>30060),array('wood'=>97515,'clay'=>100950,'iron'=>105555,'crop'=>19300,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>31080),array('wood'=>100195,'clay'=>103725,'iron'=>108460,'crop'=>19830,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>32110),array('wood'=>102950,'clay'=>106580,'iron'=>111440,'crop'=>20375,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>33160),array('wood'=>105785,'clay'=>109510,'iron'=>114505,'crop'=>20935,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>34230),array('wood'=>108690,'clay'=>112520,'iron'=>117655,'crop'=>21510,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>35300),array('wood'=>111680,'clay'=>115615,'iron'=>120890,'crop'=>22100,'pop'=>2,'cp'=>0,'attri'=>0,'time'=>36400),array('wood'=>114755,'clay'=>118795,'iron'=>124215,'crop'=>22710,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>37510),array('wood'=>117910,'clay'=>122060,'iron'=>127630,'crop'=>23335,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>38630),array('wood'=>121150,'clay'=>125420,'iron'=>131140,'crop'=>23975,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>39770),array('wood'=>124480,'clay'=>128870,'iron'=>134745,'crop'=>24635,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>40930),array('wood'=>127905,'clay'=>132410,'iron'=>138455,'crop'=>25315,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>42100),array('wood'=>131425,'clay'=>136055,'iron'=>142260,'crop'=>26010,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>43290),array('wood'=>135035,'clay'=>139795,'iron'=>146170,'crop'=>26725,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>44500),array('wood'=>138750,'clay'=>143640,'iron'=>150190,'crop'=>27460,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>45720),array('wood'=>142565,'clay'=>147590,'iron'=>154320,'crop'=>28215,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>46960),array('wood'=>146485,'clay'=>151650,'iron'=>158565,'crop'=>28990,'pop'=>3,'cp'=>0,'attri'=>0,'time'=>48220),array('wood'=>150515,'clay'=>155820,'iron'=>162925,'crop'=>29785,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>49500),array('wood'=>154655,'clay'=>160105,'iron'=>167405,'crop'=>30605,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>50790),array('wood'=>158910,'clay'=>164505,'iron'=>172010,'crop'=>31450,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>52100),array('wood'=>163275,'clay'=>169030,'iron'=>176740,'crop'=>32315,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>53430),array('wood'=>167770,'clay'=>173680,'iron'=>181600,'crop'=>33200,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>54780),array('wood'=>172380,'clay'=>178455,'iron'=>186595,'crop'=>34115,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>56140),array('wood'=>177120,'clay'=>183360,'iron'=>191725,'crop'=>35055,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>57530),array('wood'=>181995,'clay'=>188405,'iron'=>197000,'crop'=>36015,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>58940),array('wood'=>186995,'clay'=>193585,'iron'=>202415,'crop'=>37005,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>60360),array('wood'=>192140,'clay'=>198910,'iron'=>207985,'crop'=>38025,'pop'=>4,'cp'=>0,'attri'=>0,'time'=>61810),array('wood'=>197425,'clay'=>204380,'iron'=>213705,'crop'=>39070,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>63270),array('wood'=>202855,'clay'=>210000,'iron'=>219580,'crop'=>40145,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>64760),array('wood'=>208430,'clay'=>215775,'iron'=>225620,'crop'=>41250,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>66260),array('wood'=>214165,'clay'=>221710,'iron'=>231825,'crop'=>42385,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>67790),array('wood'=>220055,'clay'=>227805,'iron'=>238200,'crop'=>43550,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>69340),array('wood'=>226105,'clay'=>234070,'iron'=>244750,'crop'=>44745,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>70910),array('wood'=>232320,'clay'=>240505,'iron'=>251480,'crop'=>45975,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>72500),array('wood'=>238710,'clay'=>247120,'iron'=>258395,'crop'=>47240,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>74120),array('wood'=>245275,'clay'=>253915,'iron'=>265500,'crop'=>48540,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>75760),array('wood'=>252020,'clay'=>260900,'iron'=>272800,'crop'=>49875,'pop'=>5,'cp'=>0,'attri'=>0,'time'=>77420),array('wood'=>258950,'clay'=>268075,'iron'=>280305,'crop'=>51245,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>79100),array('wood'=>266070,'clay'=>275445,'iron'=>288010,'crop'=>52655,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>80810),array('wood'=>273390,'clay'=>283020,'iron'=>295930,'crop'=>54105,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>82540),array('wood'=>280905,'clay'=>290805,'iron'=>304070,'crop'=>55590,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>84290),array('wood'=>288630,'clay'=>298800,'iron'=>312430,'crop'=>57120,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>86070),array('wood'=>296570,'clay'=>307020,'iron'=>321025,'crop'=>58690,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>87880),array('wood'=>304725,'clay'=>315460,'iron'=>329850,'crop'=>60305,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>89710),array('wood'=>313105,'clay'=>324135,'iron'=>338925,'crop'=>61965,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>91570),array('wood'=>321715,'clay'=>333050,'iron'=>348245,'crop'=>63670,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>93450),array('wood'=>330565,'clay'=>342210,'iron'=>357820,'crop'=>65420,'pop'=>6,'cp'=>0,'attri'=>0,'time'=>95360),array('wood'=>339655,'clay'=>351620,'iron'=>367660,'crop'=>67220,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>97290),array('wood'=>348995,'clay'=>361290,'iron'=>377770,'crop'=>69065,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>99250),array('wood'=>358590,'clay'=>371225,'iron'=>388160,'crop'=>70965,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>101240),array('wood'=>368450,'clay'=>381435,'iron'=>398835,'crop'=>72915,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>103260),array('wood'=>378585,'clay'=>391925,'iron'=>409800,'crop'=>74920,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>105310),array('wood'=>388995,'clay'=>402700,'iron'=>421070,'crop'=>76985,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>107380),array('wood'=>399695,'clay'=>413775,'iron'=>432650,'crop'=>79100,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>109480),array('wood'=>410685,'clay'=>425155,'iron'=>444550,'crop'=>81275,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>111620),array('wood'=>421980,'clay'=>436845,'iron'=>456775,'crop'=>83510,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>113780),array('wood'=>433585,'clay'=>448860,'iron'=>469335,'crop'=>85805,'pop'=>7,'cp'=>0,'attri'=>0,'time'=>115970),array('wood'=>445505,'clay'=>461205,'iron'=>482240,'crop'=>88165,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>118200),array('wood'=>457760,'clay'=>473885,'iron'=>495505,'crop'=>90590,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>120450),array('wood'=>470345,'clay'=>486920,'iron'=>509130,'crop'=>93080,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>122740),array('wood'=>483280,'clay'=>500310,'iron'=>523130,'crop'=>95640,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>125060),array('wood'=>496570,'clay'=>514065,'iron'=>537520,'crop'=>98270,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>127410),array('wood'=>510225,'clay'=>528205,'iron'=>552300,'crop'=>100975,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>129790),array('wood'=>524260,'clay'=>542730,'iron'=>567490,'crop'=>103750,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>132210),array('wood'=>538675,'clay'=>557655,'iron'=>583095,'crop'=>106605,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>134660),array('wood'=>553490,'clay'=>572990,'iron'=>599130,'crop'=>109535,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>137140),array('wood'=>568710,'clay'=>588745,'iron'=>615605,'crop'=>112550,'pop'=>8,'cp'=>0,'attri'=>0,'time'=>139660),array('wood'=>584350,'clay'=>604935,'iron'=>632535,'crop'=>115645,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>142220),array('wood'=>600420,'clay'=>621575,'iron'=>649930,'crop'=>118825,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>144810),array('wood'=>616930,'clay'=>638665,'iron'=>667800,'crop'=>122090,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>147440),array('wood'=>633895,'clay'=>656230,'iron'=>686165,'crop'=>125450,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>150100),array('wood'=>651330,'clay'=>674275,'iron'=>705035,'crop'=>128900,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>152800),array('wood'=>669240,'clay'=>692820,'iron'=>724425,'crop'=>132445,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>155540),array('wood'=>687645,'clay'=>711870,'iron'=>744345,'crop'=>136085,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>158320),array('wood'=>706555,'clay'=>731445,'iron'=>764815,'crop'=>139830,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>161140),array('wood'=>725985,'clay'=>751560,'iron'=>785850,'crop'=>143675,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>163990),array('wood'=>745950,'clay'=>772230,'iron'=>807460,'crop'=>147625,'pop'=>9,'cp'=>0,'attri'=>0,'time'=>166890),array('wood'=>766460,'clay'=>793465,'iron'=>829665,'crop'=>151685,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>169820),array('wood'=>787540,'clay'=>815285,'iron'=>852480,'crop'=>155855,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>172800),array('wood'=>809195,'clay'=>837705,'iron'=>875920,'crop'=>160140,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>175820),array('wood'=>831450,'clay'=>860745,'iron'=>900010,'crop'=>164545,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>178880),array('wood'=>854315,'clay'=>884415,'iron'=>924760,'crop'=>169070,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>181990),array('wood'=>877810,'clay'=>908735,'iron'=>950190,'crop'=>173720,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>185130),array('wood'=>901950,'clay'=>933725,'iron'=>976320,'crop'=>178495,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>188330),array('wood'=>926750,'clay'=>959405,'iron'=>1000000,'crop'=>183405,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>191560),array('wood'=>952235,'clay'=>985785,'iron'=>1000000,'crop'=>188450,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>194840),array('wood'=>1000000,'clay'=>1000000,'iron'=>1000000,'crop'=>193630,'pop'=>10,'cp'=>0,'attri'=>0,'time'=>198170)); +$bid41=array(1=>array('wood'=>780,'clay'=>420,'iron'=>660,'crop'=>540,'pop'=>5,'cp'=>4,'attri'=>0,'time'=>2200),array('wood'=>1000,'clay'=>540,'iron'=>845,'crop'=>690,'pop'=>3,'cp'=>4,'attri'=>0,'time'=>3150),array('wood'=>1280,'clay'=>690,'iron'=>1080,'crop'=>885,'pop'=>3,'cp'=>5,'attri'=>0,'time'=>4260),array('wood'=>1635,'clay'=>880,'iron'=>1385,'crop'=>1130,'pop'=>3,'cp'=>6,'attri'=>0,'time'=>5540),array('wood'=>2095,'clay'=>1125,'iron'=>1770,'crop'=>1450,'pop'=>3,'cp'=>7,'attri'=>0,'time'=>7020),array('wood'=>2680,'clay'=>1445,'iron'=>2270,'crop'=>1855,'pop'=>3,'cp'=>9,'attri'=>0,'time'=>8750),array('wood'=>3430,'clay'=>1845,'iron'=>2905,'crop'=>2375,'pop'=>3,'cp'=>11,'attri'=>0,'time'=>10750),array('wood'=>4390,'clay'=>2365,'iron'=>3715,'crop'=>3040,'pop'=>3,'cp'=>13,'attri'=>0,'time'=>13070),array('wood'=>5620,'clay'=>3025,'iron'=>4755,'crop'=>3890,'pop'=>3,'cp'=>15,'attri'=>0,'time'=>15760),array('wood'=>7195,'clay'=>3875,'iron'=>6085,'crop'=>4980,'pop'=>3,'cp'=>19,'attri'=>0,'time'=>18880),array('wood'=>9210,'clay'=>4960,'iron'=>7790,'crop'=>6375,'pop'=>4,'cp'=>22,'attri'=>0,'time'=>22500),array('wood'=>11785,'clay'=>6345,'iron'=>9975,'crop'=>8160,'pop'=>4,'cp'=>27,'attri'=>0,'time'=>26700),array('wood'=>15085,'clay'=>8125,'iron'=>12765,'crop'=>10445,'pop'=>4,'cp'=>32,'attri'=>0,'time'=>31570),array('wood'=>19310,'clay'=>10400,'iron'=>16340,'crop'=>13370,'pop'=>4,'cp'=>39,'attri'=>0,'time'=>37220),array('wood'=>24720,'clay'=>13310,'iron'=>20915,'crop'=>17115,'pop'=>4,'cp'=>46,'attri'=>0,'time'=>43780),array('wood'=>31640,'clay'=>17035,'iron'=>26775,'crop'=>21905,'pop'=>4,'cp'=>55,'attri'=>0,'time'=>51380),array('wood'=>40500,'clay'=>21810,'iron'=>34270,'crop'=>28040,'pop'=>4,'cp'=>67,'attri'=>0,'time'=>60200),array('wood'=>51840,'clay'=>27915,'iron'=>43865,'crop'=>35890,'pop'=>4,'cp'=>80,'attri'=>0,'time'=>70430),array('wood'=>66355,'clay'=>35730,'iron'=>56145,'crop'=>45940,'pop'=>4,'cp'=>96,'attri'=>0,'time'=>82300),array('wood'=>84935,'clay'=>45735,'iron'=>71870,'crop'=>58800,'pop'=>4,'cp'=>115,'attri'=>0,'time'=>96070)); +?> diff --git a/GameEngine/Data/cel.php b/GameEngine/Data/cel.php new file mode 100644 index 00000000..77b8b0fc --- /dev/null +++ b/GameEngine/Data/cel.php @@ -0,0 +1,49 @@ +array('name'=>'Small Celebration','wood'=>6400,'clay'=>6650,'iron'=>5940,'crop'=>1340,'attri'=>500,'time'=>86400),array('name'=>'Great Celebration','wood'=>29700,'clay'=>33250,'iron'=>32000,'crop'=>6700,'attri'=>2000,'time'=>216000)); + +$sc = array( +1 => 86400, +2 => 83290, +3 => 80291, +4 => 77401, +5 => 74614, +6 => 71928, +7 => 69338, +8 => 66843, +9 => 64436, +10 => 62117, +11 => 59880, +12 => 57725, +13 => 55647, +14 => 53643, +15 => 51712, +16 => 49850, +17 => 48056, +18 => 46326, +19 => 44658, +20 => 43050); + +$gc= array( +10 => 155291, +11 => 149701, +12 => 144312, +13 => 139116, +14 => 134108, +15 => 129280, +16 => 124626, +17 => 120140, +18 => 115815, +19 => 111645, +20 => 107626); +?> diff --git a/GameEngine/Data/cp.php b/GameEngine/Data/cp.php new file mode 100644 index 00000000..a27ebb1e --- /dev/null +++ b/GameEngine/Data/cp.php @@ -0,0 +1,267 @@ + 0, + 2 => 500, + 3 => 2600, + 4 => 6700, + 5 => 12900, + 6 => 21600, + 7 => 32900, + 8 => 46000, + 9 => 63000, + 10 => 83500, + 11 => 106400, + 12 => 132500, + 13 => 161900, + 14 => 194600, + 15 => 230700, + 16 => 270400, + 17 => 313700, + 18 => 360600, + 19 => 411300, + 20 => 465700, + 21 => 524000, + 22 => 586300, + 23 => 652500, + 24 => 722700, + 25 => 797000, + 26 => 875500, + 27 => 958200, + 28 => 1045000, + 29 => 1136200, + 30 => 1231700, + 31 => 1316000, + 32 => 1435900, + 33 => 1435900, + 34 => 1658000, + 35 => 1775800, + 36 => 1898300, + 37 => 2025300, + 38 => 2157100, + 39 => 2293500, + 40 => 2434700, + 41 => 2580700, + 42 => 2731500, + 43 => 2887200, + 44 => 3047700, + 45 => 3213200, + 46 => 3383700, + 47 => 3559100, + 48 => 3739600, + 49 => 3925100, + 50 => 4115800, + 51 => 4311500, + 52 => 4512400, + 53 => 4718500, + 54 => 4929800, + 55 => 5146400, + 56 => 5368300, + 57 => 5595400, + 58 => 5827900, + 59 => 6065700, + 60 => 6309000, + 61 => 6557600, + 62 => 6811700, + 63 => 7071300, + 64 => 7336400, + 65 => 7607000, + 66 => 7883100, + 67 => 8164900, + 68 => 8452200, + 69 => 8745200, + 70 => 9043800, + 71 => 9348100, + 72 => 9659100, + 73 => 9973900, + 74 => 10295400, + 75 => 10622600, + 76 => 10955700, + 77 => 11294600, + 78 => 11639300, + 79 => 11989900, + 80 => 12346400, + 81 => 12708800, + 82 => 13077200, + 83 => 13451500, + 84 => 13831800, + 85 => 14218100, + 86 => 14610400, + 87 => 15008800, + 88 => 15413200, + 89 => 15823700, + 90 => 16240400, + 91 => 16663100, + 92 => 17092000, + 93 => 17527100, + 94 => 17968400, + 95 => 18415900, + 96 => 18869600, + 97 => 19329600, + 98 => 19795800, + 99 => 20268400, + 100 => 20747200, + 101 => 21232400, + 102 => 21723900, + 103 => 22221800, + 104 => 22726100, + 105 => 23236800, + 106 => 23753900, + 107 => 24277400, + 108 => 24807400, + 109 => 25343900, + 110 => 25886900, + 111 => 26436400, + 112 => 26992400, + 113 => 27555000, + 114 => 28124100, + 115 => 28699900, + 116 => 29282200, + 117 => 29871200, + 118 => 30466800, + 119 => 31069000, + 120 => 31677900, + 121 => 32293500, + 122 => 32915900, + 123 => 33544900, + 124 => 34180700, + 125 => 34823200); + +$cp1= array( + 1 => 0, + 2 => 2000, + 3 => 8000, + 4 => 20000, + 5 => 39000, + 6 => 65000, + 7 => 99000, + 8 => 141000, + 9 => 191000, + 10 => 251000, + 11 => 319000, + 12 => 397000, + 13 => 486000, + 14 => 584000, + 15 => 692000, + 16 => 811000, + 17 => 941000, + 18 => 1082000, + 19 => 1234000, + 20 => 1397000, + 21 => 1572000, + 22 => 1759000, + 23 => 1957000, + 24 => 2168000, + 25 => 2391000, + 26 => 2627000, + 27 => 2874000, + 28 => 3135000, + 29 => 3409000, + 30 => 3695000, + 31 => 3995000, + 32 => 4308000, + 33 => 4634000, + 34 => 4974000, + 35 => 5327000, + 36 => 5695000, + 37 => 6076000, + 38 => 6471000, + 39 => 6881000, + 40 => 7304000, + 41 => 7742000, + 42 => 8195000, + 43 => 8662000, + 44 => 9143000, + 45 => 9640000, + 46 => 10151000, + 47 => 10677000, + 48 => 11219000, + 49 => 11775000, + 50 => 12347000, + 51 => 12935000, + 52 => 13537000, + 53 => 14156000, + 54 => 14790000, + 55 => 15439000, + 56 => 16105000, + 57 => 16786000, + 58 => 17484000, + 59 => 18197000, + 60 => 18927000, + 61 => 19673000, + 62 => 20435000, + 63 => 21214000, + 64 => 22009000, + 65 => 22821000, + 66 => 23649000, + 67 => 24495000, + 68 => 25357000, + 69 => 26236000, + 70 => 27131000, + 71 => 28044000, + 72 => 28974000, + 73 => 29922000, + 74 => 30886000, + 75 => 31868000, + 76 => 32867000, + 77 => 33884000, + 78 => 34918000, + 79 => 35970000, + 80 => 37039000, + 81 => 38127000, + 82 => 39232000, + 83 => 40354000, + 84 => 41495000, + 85 => 42654000, + 86 => 43831000, + 87 => 45026000, + 88 => 46240000, + 89 => 47471000, + 90 => 48721000, + 91 => 49989000, + 92 => 51276000, + 93 => 52581000, + 94 => 53905000, + 95 => 55248000, + 96 => 56609000, + 97 => 57989000, + 98 => 59387000, + 99 => 60805000, + 100 => 62242000, + 101 => 63697000, + 102 => 65172000, + 103 => 66665000, + 104 => 68178000, + 105 => 69710000, + 106 => 71262000, + 107 => 72832000, + 108 => 74422000, + 109 => 76032000, + 110 => 77661000, + 111 => 79309000, + 112 => 80977000, + 113 => 82665000, + 114 => 84372000, + 115 => 86000000, + 116 => 87847000, + 117 => 89613000, + 118 => 91400000, + 119 => 93207000, + 120 => 95034000, + 121 => 96881000, + 122 => 98748000, + 123 => 100635000, + 124 => 102542000, + 125 => 104470000); +?> \ No newline at end of file diff --git a/GameEngine/Data/hero_full.php b/GameEngine/Data/hero_full.php new file mode 100644 index 00000000..1092e3a1 --- /dev/null +++ b/GameEngine/Data/hero_full.php @@ -0,0 +1,74 @@ + 0, 100, 300, 600, 1000, 1500, 2100, 2800, 3600, 4500, 5500, 6600, 7800, 9100, 10500, 12000, 13600, 15300, 17100, 19000, 21000, 23100, 25300, 27600, 30000, 32500, 35100, 37800, 40600, 43500, 46500, 49600, 52800, 56100, 59500, 63000, 66600, 70300, 74100, 78000, 82000, 86100, 90300, 94600, 99000, 103500, 108100, 112800, 117600, 122500, 127500, 132600, 137800, 143100, 148500, 154000, 159600, 165300, 171100, 177000, 183000, 189100, 195300, 201600, 208000, 214500, 221100, 227800, + 234600, 241500, 248500, 255600, 262800, 270100, 277500, 285000, 292600, 300300, 308100, 316000, 324000, 332100, 340300, 348600, 357000, 365500, 374100, 382800, 391600, 400500, 409500, 418600, 427800, 437100, 446500, 456000, 465600, 475300, 485100, 495000); + + +//ROMAN UNITS + //STOPPED ON LEVEL 9! -> http://travian.kirilloid.ru/hero.php#unit=1 + $h1_full = array(array('wood' => 240, 'clay' => 200, 'iron' => 300, 'crop' => 60, 'time' => 3200), array('wood' => 640, 'clay' => 550, 'iron' => 780, 'crop' => 210, 'time' => 6400), array('wood' => 1100, 'clay' => 910, 'iron' => 1300, 'crop' => 360, 'time' => 9600), array('wood' => 1500, 'clay' => 1300, 'iron' => 1900, 'crop' => 510, 'time' => 12800), array('wood' => 2000, 'clay' => 1700, 'iron' => 2500, 'crop' => 670, 'time' => 16000), array('wood' => 2500, 'clay' => 2200, 'iron' => 3100, 'crop' => 850, 'time' => + 19200), array('wood' => 3100, 'clay' => 2600, 'iron' => 3800, 'crop' => 1000, 'time' => 22400), array('wood' => 3600, 'clay' => 3100, 'iron' => 4400, 'crop' => 1200, 'time' => 25580), array('wood' => 4200, 'clay' => 3600, 'iron' => 5100, 'crop' => 1400, 'time' => 28800), array('wood' => 4800, 'clay' => 4100, 'iron' => 5900, 'crop' => 1600, 'time' => 32000)); + +//GAUL UNITS + $h21_full = array(array('wood' => 200, 'clay' => 260, 'iron' => 110, 'clay' => 60, 'time' => 2080), array('wood' => 550, 'clay' => 690, 'iron' => 330, 'clay' => 210, 'time' => 4160), array('wood' => 910, 'clay' => 1100, 'iron' => 550, 'clay' => 360, 'time' => 6240), array('wood' => 1300, 'clay' => 1600, 'iron' => 790, 'clay' => 510, 'time' => 8320), array('wood' => 1700, 'clay' => 2200, 'iron' => 1000, 'clay' => 670, 'time' => 10400), array('wood' => 2200, 'clay' => 2700, 'iron' => 1300, 'clay' => + 850, 'time' => 12480), array('wood' => 2600, 'clay' => 3300, 'iron' => 1600, 'clay' => 1000, 'time' => 14560), array('wood' => 3100, 'clay' => 3900, 'iron' => 1900, 'clay' => 1200, 'time' => 16640), array('wood' => 3600, 'clay' => 4500, 'iron' => 2200, 'clay' => 1400, 'time' => 18720), array('wood' => 4100, 'clay' => 5200, 'iron' => 2500, 'clay' => 1600, 'time' => 20800), array('wood' => 4600, 'clay' => 5800, 'iron' => 2800, 'clay' => 1800, 'time' => 22880), array('wood' => 5100, 'clay' => 6500, + 'iron' => 3100, 'clay' => 2000, 'time' => 24960), array('wood' => 5700, 'clay' => 7200, 'iron' => 3500, 'clay' => 2200, 'time' => 27040), array('wood' => 6200, 'clay' => 7900, 'iron' => 3800, 'clay' => 2400, 'time' => 29120), array('wood' => 6800, 'clay' => 8600, 'iron' => 4100, 'clay' => 2700, 'time' => 31200), array('wood' => 7400, 'clay' => 9300, 'iron' => 4500, 'clay' => 2900, 'time' => 33280), array('wood' => 7900, 'clay' => 10000, 'iron' => 4800, 'clay' => 3100, 'time' => 35360), array('wood' => + 8500, 'clay' => 11000, 'iron' => 5200, 'clay' => 3300, 'time' => 37440), array('wood' => 9100, 'clay' => 11500, 'iron' => 5600, 'clay' => 3600, 'time' => 39520), array('wood' => 9700, 'clay' => 12500, 'iron' => 5900, 'clay' => 3800, 'time' => 41600), array('wood' => 10500, 'clay' => 13000, 'iron' => 6300, 'clay' => 4000, 'time' => 43680), array('wood' => 11000, 'clay' => 14000, 'iron' => 6700, 'clay' => 4300, 'time' => 45760), array('wood' => 11500, 'clay' => 14500, 'iron' => 7100, 'clay' => + 4500, 'time' => 47840), array('wood' => 12000, 'clay' => 15500, 'iron' => 7400, 'clay' => 4800, 'time' => 49920), array('wood' => 13000, 'clay' => 16000, 'iron' => 7800, 'clay' => 5000, 'time' => 52000), array('wood' => 13500, 'clay' => 17000, 'iron' => 8200, 'clay' => 5300, 'time' => 54080), array('wood' => 14000, 'clay' => 18000, 'iron' => 8600, 'clay' => 5500, 'time' => 56160), array('wood' => 15000, 'clay' => 18500, 'iron' => 9000, 'clay' => 5800, 'time' => 58240), array('wood' => 15500, + 'clay' => 19500, 'iron' => 9400, 'clay' => 6100, 'time' => 60320), array('wood' => 16000, 'clay' => 20500, 'iron' => 9800, 'clay' => 6300, 'time' => 62400), array('wood' => 17000, 'clay' => 21000, 'iron' => 10000, 'clay' => 6600, 'time' => 64480), array('wood' => 17500, 'clay' => 22000, 'iron' => 10500, 'clay' => 6800, 'time' => 66560), array('wood' => 18000, 'clay' => 23000, 'iron' => 11000, 'clay' => 7100, 'time' => 68640), array('wood' => 19000, 'clay' => 24000, 'iron' => 11500, 'clay' => + 7400, 'time' => 70720), array('wood' => 19500, 'clay' => 24500, 'iron' => 12000, 'clay' => 7700, 'time' => 72800), array('wood' => 20500, 'clay' => 25500, 'iron' => 12500, 'clay' => 7900, 'time' => 74880), array('wood' => 21000, 'clay' => 26500, 'iron' => 13000, 'clay' => 8200, 'time' => 76960), array('wood' => 21500, 'clay' => 27500, 'iron' => 13000, 'clay' => 8500, 'time' => 79040), array('wood' => 22500, 'clay' => 28500, 'iron' => 13500, 'clay' => 8800, 'time' => 81120), array('wood' => 23000, + 'clay' => 29000, 'iron' => 14000, 'clay' => 9100, 'time' => 83200), array('wood' => 24000, 'clay' => 30000, 'iron' => 14500, 'clay' => 9300, 'time' => 85280), array('wood' => 24500, 'clay' => 31000, 'iron' => 15000, 'clay' => 9600, 'time' => 87360), array('wood' => 25500, 'clay' => 32000, 'iron' => 15500, 'clay' => 9900, 'time' => 89440), array('wood' => 26000, 'clay' => 33000, 'iron' => 16000, 'clay' => 10000, 'time' => 91520), array('wood' => 27000, 'clay' => 34000, 'iron' => 16500, 'clay' => + 10500, 'time' => 93600), array('wood' => 27500, 'clay' => 34500, 'iron' => 17000, 'clay' => 11000, 'time' => 95680), array('wood' => 28500, 'clay' => 35500, 'iron' => 17000, 'clay' => 11000, 'time' => 97760), array('wood' => 29000, 'clay' => 36500, 'iron' => 17500, 'clay' => 11500, 'time' => 99840), array('wood' => 30000, 'clay' => 37500, 'iron' => 18000, 'clay' => 11500, 'time' => 101920), array('wood' => 30500, 'clay' => 38500, 'iron' => 18500, 'clay' => 12000, 'time' => 104000), array('wood' => + 31500, 'clay' => 39500, 'iron' => 19000, 'clay' => 12500, 'time' => 106080), array('wood' => 32000, 'clay' => 40500, 'iron' => 19500, 'clay' => 12500, 'time' => 108160), array('wood' => 33000, 'clay' => 41500, 'iron' => 20000, 'clay' => 13000, 'time' => 110240), array('wood' => 33500, 'clay' => 42500, 'iron' => 20500, 'clay' => 13000, 'time' => 112320), array('wood' => 34500, 'clay' => 43500, 'iron' => 21000, 'clay' => 13500, 'time' => 114400), array('wood' => 35000, 'clay' => 44500, 'iron' => + 21500, 'clay' => 14000, 'time' => 116480), array('wood' => 36000, 'clay' => 45500, 'iron' => 22000, 'clay' => 14000, 'time' => 118560), array('wood' => 37000, 'clay' => 46500, 'iron' => 22500, 'clay' => 14500, 'time' => 120640), array('wood' => 37500, 'clay' => 47500, 'iron' => 23000, 'clay' => 14500, 'time' => 122720), array('wood' => 38500, 'clay' => 48500, 'iron' => 23500, 'clay' => 15000, 'time' => 124800), array('wood' => 39000, 'clay' => 49500, 'iron' => 24000, 'clay' => 15500, 'time' => + 126880)); + $h22_full = array(array('wood' => 280, 'clay' => 300, 'iron' => 370, 'crop' => 120, 'time' => 2880), array('wood' => 740, 'clay' => 780, 'iron' => 950, 'crop' => 360, 'time' => 5760), array('wood' => 1200, 'clay' => 1300, 'iron' => 1600, 'crop' => 590, 'time' => 8640), array('wood' => 1800, 'clay' => 1900, 'iron' => 2300, 'crop' => 850, 'time' => 11520), array('wood' => 2300, 'clay' => 2500, 'iron' => 3000, 'crop' => 1100, 'time' => 14400), array('wood' => 2900, 'clay' => 3100, 'iron' => 3800, + 'crop' => 1400, 'time' => 17280), array('wood' => 3500, 'clay' => 3800, 'iron' => 4600, 'crop' => 1700, 'time' => 20160), array('wood' => 4200, 'clay' => 4400, 'iron' => 5400, 'crop' => 2000, 'time' => 23040), array('wood' => 4800, 'clay' => 5100, 'iron' => 6200, 'crop' => 2300, 'time' => 25920), array('wood' => 5500, 'clay' => 5900, 'iron' => 7100, 'crop' => 2700, 'time' => 28800), array('wood' => 6200, 'clay' => 6600, 'iron' => 8000, 'crop' => 3000, 'time' => 31680), array('wood' => 6900, + 'clay' => 7400, 'iron' => 8900, 'crop' => 3400, 'time' => 34560), array('wood' => 7700, 'clay' => 8100, 'iron' => 9900, 'crop' => 3700, 'time' => 37440), array('wood' => 8400, 'clay' => 8900, 'iron' => 11000, 'crop' => 4100, 'time' => 40320), array('wood' => 9200, 'clay' => 9700, 'iron' => 12000, 'crop' => 4400, 'time' => 43200), array('wood' => 9900, 'clay' => 10500, 'iron' => 13000, 'crop' => 4800, 'time' => 46080), array('wood' => 10500, 'clay' => 11500, 'iron' => 14000, 'crop' => 5200, + 'time' => 48960), array('wood' => 11500, 'clay' => 12000, 'iron' => 15000, 'crop' => 5600, 'time' => 51840), array('wood' => 12500, 'clay' => 13000, 'iron' => 16000, 'crop' => 6000, 'time' => 54720), array('wood' => 13000, 'clay' => 14000, 'iron' => 17000, 'crop' => 6300, 'time' => 57600), array('wood' => 14000, 'clay' => 15000, 'iron' => 18000, 'crop' => 6700, 'time' => 60480), array('wood' => 15000, 'clay' => 15500, 'iron' => 19000, 'crop' => 7100, 'time' => 63360), array('wood' => 15500, + 'clay' => 16500, 'iron' => 20000, 'crop' => 7600, 'time' => 66240), array('wood' => 16500, 'clay' => 17500, 'iron' => 21000, 'crop' => 8000, 'time' => 69120), array('wood' => 17500, 'clay' => 18500, 'iron' => 22500, 'crop' => 8400, 'time' => 72000), array('wood' => 18000, 'clay' => 19500, 'iron' => 23500, 'crop' => 8800, 'time' => 74880), array('wood' => 19000, 'clay' => 20500, 'iron' => 24500, 'crop' => 9200, 'time' => 77760), array('wood' => 20000, 'clay' => 21500, 'iron' => 26000, 'crop' => + 9700, 'time' => 80640), array('wood' => 21000, 'clay' => 22000, 'iron' => 27000, 'crop' => 10000, 'time' => 83520), array('wood' => 22000, 'clay' => 23000, 'iron' => 28000, 'crop' => 10500, 'time' => 86400), array('wood' => 22500, 'clay' => 24000, 'iron' => 29500, 'crop' => 11000, 'time' => 89280), array('wood' => 23500, 'clay' => 25000, 'iron' => 30500, 'crop' => 11500, 'time' => 92160), array('wood' => 24500, 'clay' => 26000, 'iron' => 31500, 'crop' => 12000, 'time' => 95040), array('wood' => + 25500, 'clay' => 27000, 'iron' => 33000, 'crop' => 12500, 'time' => 97920), array('wood' => 26500, 'clay' => 28000, 'iron' => 34000, 'crop' => 13000, 'time' => 100800), array('wood' => 27500, 'clay' => 29000, 'iron' => 35500, 'crop' => 13000, 'time' => 103680), array('wood' => 28500, 'clay' => 30000, 'iron' => 36500, 'crop' => 13500, 'time' => 106560), array('wood' => 29000, 'clay' => 31000, 'iron' => 37500, 'crop' => 14000, 'time' => 109440), array('wood' => 30000, 'clay' => 32000, 'iron' => + 39000, 'crop' => 14500, 'time' => 112320), array('wood' => 31000, 'clay' => 33000, 'iron' => 40000, 'crop' => 15000, 'time' => 115200), array('wood' => 32000, 'clay' => 34000, 'iron' => 41500, 'crop' => 15500, 'time' => 118080), array('wood' => 33000, 'clay' => 35500, 'iron' => 43000, 'crop' => 16000, 'time' => 120960), array('wood' => 34000, 'clay' => 36500, 'iron' => 44000, 'crop' => 16500, 'time' => 123840), array('wood' => 35000, 'clay' => 37500, 'iron' => 45500, 'crop' => 17000, 'time' => + 126720), array('wood' => 36000, 'clay' => 38500, 'iron' => 46500, 'crop' => 17500, 'time' => 129600), array('wood' => 37000, 'clay' => 39500, 'iron' => 48000, 'crop' => 18000, 'time' => 132480), array('wood' => 38000, 'clay' => 40500, 'iron' => 49000, 'crop' => 18500, 'time' => 135360), array('wood' => 39000, 'clay' => 41500, 'iron' => 50500, 'crop' => 19000, 'time' => 138240), array('wood' => 40000, 'clay' => 43000, 'iron' => 52000, 'crop' => 19500, 'time' => 141120), array('wood' => 41000, + 'clay' => 44000, 'iron' => 53000, 'crop' => 20000, 'time' => 144000), array('wood' => 42000, 'clay' => 45000, 'iron' => 54500, 'crop' => 20500, 'time' => 146880), array('wood' => 43500, 'clay' => 46000, 'iron' => 56000, 'crop' => 21000, 'time' => 149760), array('wood' => 44500, 'clay' => 47000, 'iron' => 57000, 'crop' => 21500, 'time' => 152640), array('wood' => 45500, 'clay' => 48500, 'iron' => 58500, 'crop' => 22000, 'time' => 155520), array('wood' => 46500, 'clay' => 49500, 'iron' => 60000, + 'crop' => 22500, 'time' => 158400), array('wood' => 47500, 'clay' => 50500, 'iron' => 61500, 'crop' => 23000, 'time' => 161280), array('wood' => 48500, 'clay' => 51500, 'iron' => 62500, 'crop' => 23500, 'time' => 164160), array('wood' => 49500, 'clay' => 53000, 'iron' => 64000, 'crop' => 24000, 'time' => 167040), array('wood' => 50500, 'clay' => 54000, 'iron' => 65500, 'crop' => 24500, 'time' => 169920), array('wood' => 52000, 'clay' => 55000, 'iron' => 67000, 'crop' => 25000, 'time' => 172800), + array('wood' => 53000, 'clay' => 56500, 'iron' => 68000, 'crop' => 25500, 'time' => 175680)); + $h24_full = array(array('wood' => 700, 'clay' => 900, 'iron' => 460, 'crop' => 120, 'time' => 4960), array('wood' => 1700, 'clay' => 2200, 'iron' => 1200, 'crop' => 360, 'time' => 9920), array('wood' => 2900, 'clay' => 3700, 'iron' => 1900, 'crop' => 590, 'time' => 14880), array('wood' => 4100, 'clay' => 5300, 'iron' => 2800, 'crop' => 850, 'time' => 19840), array('wood' => 5500, 'clay' => 7000, 'iron' => 3700, 'crop' => 1100, 'time' => 24800), array('wood' => 6900, 'clay' => 8700, 'iron' => + 4600, 'crop' => 1400, 'time' => 29760), array('wood' => 8300, 'clay' => 10500, 'iron' => 5600, 'crop' => 1700, 'time' => 34720), array('wood' => 9800, 'clay' => 12500, 'iron' => 6600, 'crop' => 2000, 'time' => 39680), array('wood' => 11500, 'clay' => 14500, 'iron' => 7600, 'crop' => 2300, 'time' => 44640), array('wood' => 13000, 'clay' => 16500, 'iron' => 8700, 'crop' => 2700, 'time' => 49600), array('wood' => 14500, 'clay' => 18500, 'iron' => 9800, 'crop' => 3000, 'time' => 54560), array('wood' => + 16500, 'clay' => 21000, 'iron' => 11000, 'crop' => 3400, 'time' => 59520), array('wood' => 18000, 'clay' => 23000, 'iron' => 12000, 'crop' => 3700, 'time' => 64480), array('wood' => 20000, 'clay' => 25000, 'iron' => 13500, 'crop' => 4100, 'time' => 69440), array('wood' => 21500, 'clay' => 27500, 'iron' => 14500, 'crop' => 4400, 'time' => 74400), array('wood' => 23500, 'clay' => 30000, 'iron' => 15500, 'crop' => 4800, 'time' => 79360), array('wood' => 25000, 'clay' => 32000, 'iron' => 17000, + 'crop' => 5200, 'time' => 84320), array('wood' => 27000, 'clay' => 34500, 'iron' => 18000, 'crop' => 5600, 'time' => 89280), array('wood' => 29000, 'clay' => 37000, 'iron' => 19500, 'crop' => 6000, 'time' => 94240), array('wood' => 31000, 'clay' => 39500, 'iron' => 20500, 'crop' => 6300, 'time' => 99200), array('wood' => 33000, 'clay' => 42000, 'iron' => 22000, 'crop' => 6700, 'time' => 104160), array('wood' => 35000, 'clay' => 44500, 'iron' => 23500, 'crop' => 7100, 'time' => 109120), array('wood' => + 37000, 'clay' => 47000, 'iron' => 24500, 'crop' => 7600, 'time' => 114080), array('wood' => 39000, 'clay' => 49500, 'iron' => 26000, 'crop' => 8000, 'time' => 119040), array('wood' => 41000, 'clay' => 52000, 'iron' => 27500, 'crop' => 8400, 'time' => 124000), array('wood' => 43000, 'clay' => 54500, 'iron' => 29000, 'crop' => 8800, 'time' => 128960), array('wood' => 45000, 'clay' => 57000, 'iron' => 30000, 'crop' => 9200, 'time' => 133920), array('wood' => 47000, 'clay' => 60000, 'iron' => 31500, + 'crop' => 9700, 'time' => 138880), array('wood' => 49000, 'clay' => 62500, 'iron' => 33000, 'crop' => 10000, 'time' => 143840), array('wood' => 51500, 'clay' => 65500, 'iron' => 34500, 'crop' => 10500, 'time' => 148800), array('wood' => 53500, 'clay' => 68000, 'iron' => 36000, 'crop' => 11000, 'time' => 153760), array('wood' => 55500, 'clay' => 71000, 'iron' => 37500, 'crop' => 11500, 'time' => 158720), array('wood' => 57500, 'clay' => 73500, 'iron' => 39000, 'crop' => 12000, 'time' => 163680), + array('wood' => 60000, 'clay' => 76500, 'iron' => 40000, 'crop' => 12500, 'time' => 168640), array('wood' => 62000, 'clay' => 79000, 'iron' => 41500, 'crop' => 13000, 'time' => 173600), array('wood' => 64500, 'clay' => 82000, 'iron' => 43000, 'crop' => 13000, 'time' => 178560), array('wood' => 66500, 'clay' => 85000, 'iron' => 44500, 'crop' => 13500, 'time' => 183520), array('wood' => 69000, 'clay' => 87500, 'iron' => 46000, 'crop' => 14000, 'time' => 188480), array('wood' => 71000, 'clay' => + 90500, 'iron' => 48000, 'crop' => 14500, 'time' => 193440), array('wood' => 73500, 'clay' => 93500, 'iron' => 49500, 'crop' => 15000, 'time' => 198400), array('wood' => 75500, 'clay' => 96500, 'iron' => 51000, 'crop' => 15500, 'time' => 203360), array('wood' => 78000, 'clay' => 99500, 'iron' => 52500, 'crop' => 16000, 'time' => 208320), array('wood' => 80500, 'clay' => 102500, 'iron' => 54000, 'crop' => 16500, 'time' => 213280), array('wood' => 82500, 'clay' => 105500, 'iron' => 55500, 'crop' => + 17000, 'time' => 218240), array('wood' => 85000, 'clay' => 108500, 'iron' => 57000, 'crop' => 17500, 'time' => 223200), array('wood' => 87500, 'clay' => 111500, 'iron' => 58500, 'crop' => 18000, 'time' => 228160), array('wood' => 90000, 'clay' => 114500, 'iron' => 60500, 'crop' => 18500, 'time' => 233120), array('wood' => 92000, 'clay' => 117500, 'iron' => 62000, 'crop' => 19000, 'time' => 238080), array('wood' => 94500, 'clay' => 120500, 'iron' => 63500, 'crop' => 19500, 'time' => 243040), + array('wood' => 97000, 'clay' => 123500, 'iron' => 65000, 'crop' => 20000, 'time' => 248000), array('wood' => 99500, 'clay' => 126500, 'iron' => 67000, 'crop' => 20500, 'time' => 252960), array('wood' => 102000, 'clay' => 130000, 'iron' => 68500, 'crop' => 21000, 'time' => 257920), array('wood' => 104500, 'clay' => 133000, 'iron' => 70000, 'crop' => 21500, 'time' => 262880), array('wood' => 107000, 'clay' => 136000, 'iron' => 71500, 'crop' => 22000, 'time' => 267840), array('wood' => 109500, + 'clay' => 139500, 'iron' => 73500, 'crop' => 22500, 'time' => 272800), array('wood' => 112000, 'clay' => 142500, 'iron' => 75000, 'crop' => 23000, 'time' => 277760), array('wood' => 114500, 'clay' => 145500, 'iron' => 76500, 'crop' => 23500, 'time' => 282720), array('wood' => 117000, 'clay' => 149000, 'iron' => 78500, 'crop' => 24000, 'time' => 287680), array('wood' => 119500, 'clay' => 152000, 'iron' => 80000, 'crop' => 24500, 'time' => 292640), array('wood' => 122000, 'clay' => 155500, 'iron' => + 82000, 'crop' => 25000, 'time' => 297600), array('wood' => 124500, 'clay' => 158500, 'iron' => 83500, 'crop' => 25500, 'time' => 302560)); + $h25_full = array(array('wood' => 720, 'clay' => 660, 'iron' => 560, 'crop' => 240, 'time' => 5120), array('wood' => 1800, 'clay' => 1600, 'iron' => 1400, 'crop' => 640, 'time' => 10240), array('wood' => 3000, 'clay' => 2700, 'iron' => 2300, 'crop' => 1100, 'time' => 15360), array('wood' => 4200, 'clay' => 3900, 'iron' => 3300, 'crop' => 1500, 'time' => 20480), array('wood' => 5600, 'clay' => 5200, 'iron' => 4400, 'crop' => 2000, 'time' => 25600), array('wood' => 7000, 'clay' => 6500, 'iron' => + 5500, 'crop' => 2500, 'time' => 30720), array('wood' => 8500, 'clay' => 7900, 'iron' => 6700, 'crop' => 3100, 'time' => 35840), array('wood' => 10000, 'clay' => 9300, 'iron' => 7900, 'crop' => 3600, 'time' => 40960), array('wood' => 11500, 'clay' => 11000, 'iron' => 9200, 'crop' => 4200, 'time' => 46080), array('wood' => 13500, 'clay' => 12500, 'iron' => 10500, 'crop' => 4800, 'time' => 51200), array('wood' => 15000, 'clay' => 14000, 'iron' => 12000, 'crop' => 5400, 'time' => 56320), array('wood' => + 17000, 'clay' => 15500, 'iron' => 13000, 'crop' => 6000, 'time' => 61440), array('wood' => 18500, 'clay' => 17000, 'iron' => 14500, 'crop' => 6700, 'time' => 66560), array('wood' => 20500, 'clay' => 18500, 'iron' => 16000, 'crop' => 7300, 'time' => 71680), array('wood' => 22000, 'clay' => 20500, 'iron' => 17500, 'crop' => 8000, 'time' => 76800), array('wood' => 24000, 'clay' => 22000, 'iron' => 19000, 'crop' => 8600, 'time' => 81920), array('wood' => 26000, 'clay' => 24000, 'iron' => 20500, + 'crop' => 9300, 'time' => 87040), array('wood' => 28000, 'clay' => 25500, 'iron' => 22000, 'crop' => 10000, 'time' => 92160), array('wood' => 30000, 'clay' => 27500, 'iron' => 23500, 'crop' => 10500, 'time' => 97280), array('wood' => 31500, 'clay' => 29000, 'iron' => 25000, 'crop' => 11500, 'time' => 102400), array('wood' => 33500, 'clay' => 31000, 'iron' => 26500, 'crop' => 12000, 'time' => 107520), array('wood' => 35500, 'clay' => 33000, 'iron' => 28000, 'crop' => 13000, 'time' => 112640), + array('wood' => 38000, 'clay' => 35000, 'iron' => 29500, 'crop' => 13500, 'time' => 117760), array('wood' => 40000, 'clay' => 36500, 'iron' => 31500, 'crop' => 14500, 'time' => 122880), array('wood' => 42000, 'clay' => 38500, 'iron' => 33000, 'crop' => 15000, 'time' => 128000), array('wood' => 44000, 'clay' => 40500, 'iron' => 34500, 'crop' => 16000, 'time' => 133120), array('wood' => 46000, 'clay' => 42500, 'iron' => 36500, 'crop' => 16500, 'time' => 138240), array('wood' => 48500, 'clay' => + 44500, 'iron' => 38000, 'crop' => 17500, 'time' => 143360), array('wood' => 50500, 'clay' => 46500, 'iron' => 39500, 'crop' => 18000, 'time' => 148480), array('wood' => 52500, 'clay' => 48500, 'iron' => 41500, 'crop' => 19000, 'time' => 153600), array('wood' => 55000, 'clay' => 50500, 'iron' => 43000, 'crop' => 19500, 'time' => 158720), array('wood' => 57000, 'clay' => 52500, 'iron' => 45000, 'crop' => 20500, 'time' => 163840), array('wood' => 59500, 'clay' => 54500, 'iron' => 46500, 'crop' => + 21500, 'time' => 168960), array('wood' => 61500, 'clay' => 56500, 'iron' => 48500, 'crop' => 22000, 'time' => 174080), array('wood' => 64000, 'clay' => 58500, 'iron' => 50000, 'crop' => 23000, 'time' => 179200), array('wood' => 66000, 'clay' => 61000, 'iron' => 52000, 'crop' => 24000, 'time' => 184320), array('wood' => 68500, 'clay' => 63000, 'iron' => 54000, 'crop' => 24500, 'time' => 189440), array('wood' => 71000, 'clay' => 65000, 'iron' => 55500, 'crop' => 25500, 'time' => 194560), array('wood' => + 73000, 'clay' => 67000, 'iron' => 57500, 'crop' => 26500, 'time' => 199680), array('wood' => 75500, 'clay' => 69500, 'iron' => 59500, 'crop' => 27000, 'time' => 204800), array('wood' => 78000, 'clay' => 71500, 'iron' => 61000, 'crop' => 28000, 'time' => 209920), array('wood' => 80000, 'clay' => 74000, 'iron' => 63000, 'crop' => 29000, 'time' => 215040), array('wood' => 82500, 'clay' => 76000, 'iron' => 65000, 'crop' => 29500, 'time' => 220160), array('wood' => 85000, 'clay' => 78000, 'iron' => + 67000, 'crop' => 30500, 'time' => 225280), array('wood' => 87500, 'clay' => 80500, 'iron' => 69000, 'crop' => 31500, 'time' => 230400), array('wood' => 90000, 'clay' => 82500, 'iron' => 70500, 'crop' => 32500, 'time' => 235520), array('wood' => 92500, 'clay' => 85000, 'iron' => 72500, 'crop' => 33000, 'time' => 240640), array('wood' => 95000, 'clay' => 87000, 'iron' => 74500, 'crop' => 34000, 'time' => 245760), array('wood' => 97000, 'clay' => 89500, 'iron' => 76500, 'crop' => 35000, 'time' => + 250880), array('wood' => 99500, 'clay' => 91500, 'iron' => 78500, 'crop' => 36000, 'time' => 256000), array('wood' => 102000, 'clay' => 94000, 'iron' => 80500, 'crop' => 37000, 'time' => 261120), array('wood' => 104500, 'clay' => 96500, 'iron' => 82500, 'crop' => 37500, 'time' => 266240), array('wood' => 107500, 'clay' => 98500, 'iron' => 84500, 'crop' => 38500, 'time' => 271360), array('wood' => 110000, 'clay' => 101000, 'iron' => 86500, 'crop' => 39500, 'time' => 276480), array('wood' => + 112500, 'clay' => 103500, 'iron' => 88500, 'crop' => 40500, 'time' => 281600), array('wood' => 115000, 'clay' => 105500, 'iron' => 90500, 'crop' => 41500, 'time' => 286720), array('wood' => 117500, 'clay' => 108000, 'iron' => 92500, 'crop' => 42500, 'time' => 291840), array('wood' => 120000, 'clay' => 110500, 'iron' => 94500, 'crop' => 43000, 'time' => 296960), array('wood' => 122500, 'clay' => 113000, 'iron' => 96500, 'crop' => 44000, 'time' => 302080), array('wood' => 125000, 'clay' => 115000, + 'iron' => 98500, 'crop' => 45000, 'time' => 307200), array('wood' => 128000, 'clay' => 117500, 'iron' => 100500, 'crop' => 46000, 'time' => 312320)); + $h26_full = array(array('wood' => 1000, 'clay' => 1200, 'iron' => 1400, 'crop' => 340, 'time' => 6240), array('wood' => 2400, 'clay' => 3000, 'iron' => 3300, 'crop' => 880, 'time' => 12480), array('wood' => 4100, 'clay' => 5000, 'iron' => 5400, 'crop' => 1500, 'time' => 18720), array('wood' => 5800, 'clay' => 7200, 'iron' => 7800, 'crop' => 2100, 'time' => 24960), array('wood' => 7700, 'clay' => 9500, 'iron' => 10500, 'crop' => 2800, 'time' => 31200), array('wood' => 9700, 'clay' => 12000, + 'iron' => 13000, 'crop' => 3500, 'time' => 37440), array('wood' => 11500, 'clay' => 14500, 'iron' => 15500, 'crop' => 4200, 'time' => 43680), array('wood' => 14000, 'clay' => 17000, 'iron' => 18500, 'crop' => 5000, 'time' => 49920), array('wood' => 16000, 'clay' => 20000, 'iron' => 21500, 'crop' => 5800, 'time' => 56160), array('wood' => 18500, 'clay' => 22500, 'iron' => 24500, 'crop' => 6600, 'time' => 62400), array('wood' => 20500, 'clay' => 25500, 'iron' => 27500, 'crop' => 7400, 'time' => + 68640), array('wood' => 23000, 'clay' => 28500, 'iron' => 31000, 'crop' => 8300, 'time' => 74880), array('wood' => 25500, 'clay' => 31500, 'iron' => 34000, 'crop' => 9100, 'time' => 81120), array('wood' => 28000, 'clay' => 34500, 'iron' => 37500, 'crop' => 10000, 'time' => 87360), array('wood' => 30500, 'clay' => 37500, 'iron' => 40500, 'crop' => 11000, 'time' => 93600), array('wood' => 33000, 'clay' => 40500, 'iron' => 44000, 'crop' => 12000, 'time' => 99840), array('wood' => 35500, 'clay' => + 44000, 'iron' => 47500, 'crop' => 13000, 'time' => 106080), array('wood' => 38000, 'clay' => 47000, 'iron' => 51000, 'crop' => 13500, 'time' => 112320), array('wood' => 41000, 'clay' => 50500, 'iron' => 54500, 'crop' => 14500, 'time' => 118560), array('wood' => 43500, 'clay' => 53500, 'iron' => 58500, 'crop' => 15500, 'time' => 124800), array('wood' => 46500, 'clay' => 57000, 'iron' => 62000, 'crop' => 16500, 'time' => 131040), array('wood' => 49000, 'clay' => 60500, 'iron' => 66000, 'crop' => + 17500, 'time' => 137280), array('wood' => 52000, 'clay' => 64000, 'iron' => 69500, 'crop' => 18500, 'time' => 143520), array('wood' => 54500, 'clay' => 67500, 'iron' => 73500, 'crop' => 19500, 'time' => 149760), array('wood' => 57500, 'clay' => 71000, 'iron' => 77000, 'crop' => 20500, 'time' => 156000), array('wood' => 60500, 'clay' => 74500, 'iron' => 81000, 'crop' => 21500, 'time' => 162240), array('wood' => 63500, 'clay' => 78000, 'iron' => 85000, 'crop' => 23000, 'time' => 168480), array('wood' => + 66500, 'clay' => 82000, 'iron' => 89000, 'crop' => 24000, 'time' => 174720), array('wood' => 69500, 'clay' => 85500, 'iron' => 93000, 'crop' => 25000, 'time' => 180960), array('wood' => 72500, 'clay' => 89000, 'iron' => 97000, 'crop' => 26000, 'time' => 187200), array('wood' => 75500, 'clay' => 93000, 'iron' => 101000, 'crop' => 27000, 'time' => 193440), array('wood' => 78500, 'clay' => 96500, 'iron' => 105000, 'crop' => 28000, 'time' => 199680), array('wood' => 81500, 'clay' => 100500, 'iron' => + 109000, 'crop' => 29500, 'time' => 205920), array('wood' => 84500, 'clay' => 104500, 'iron' => 113500, 'crop' => 30500, 'time' => 212160), array('wood' => 87500, 'clay' => 108000, 'iron' => 117500, 'crop' => 31500, 'time' => 218400), array('wood' => 91000, 'clay' => 112000, 'iron' => 121500, 'crop' => 32500, 'time' => 224640), array('wood' => 94000, 'clay' => 116000, 'iron' => 126000, 'crop' => 34000, 'time' => 230880), array('wood' => 97000, 'clay' => 120000, 'iron' => 130000, 'crop' => 35000, + 'time' => 237120), array('wood' => 100500, 'clay' => 124000, 'iron' => 134500, 'crop' => 36000, 'time' => 243360), array('wood' => 103500, 'clay' => 128000, 'iron' => 139000, 'crop' => 37000, 'time' => 249600), array('wood' => 107000, 'clay' => 132000, 'iron' => 143000, 'crop' => 38500, 'time' => 255840), array('wood' => 110000, 'clay' => 136000, 'iron' => 147500, 'crop' => 39500, 'time' => 262080), array('wood' => 113500, 'clay' => 140000, 'iron' => 152000, 'crop' => 40500, 'time' => 268320), + array('wood' => 116500, 'clay' => 144000, 'iron' => 156500, 'crop' => 42000, 'time' => 274560), array('wood' => 120000, 'clay' => 148000, 'iron' => 161000, 'crop' => 43000, 'time' => 280800), array('wood' => 123500, 'clay' => 152000, 'iron' => 165500, 'crop' => 44500, 'time' => 287040), array('wood' => 127000, 'clay' => 156500, 'iron' => 170000, 'crop' => 45500, 'time' => 293280), array('wood' => 130000, 'clay' => 160500, 'iron' => 174500, 'crop' => 46500, 'time' => 299520), array('wood' => + 133500, 'clay' => 164500, 'iron' => 179000, 'crop' => 48000, 'time' => 305760), array('wood' => 137000, 'clay' => 169000, 'iron' => 183500, 'crop' => 49000, 'time' => 312000), array('wood' => 140500, 'clay' => 173000, 'iron' => 188000, 'crop' => 50500, 'time' => 318240), array('wood' => 144000, 'clay' => 177500, 'iron' => 192500, 'crop' => 51500, 'time' => 324480), array('wood' => 147500, 'clay' => 181500, 'iron' => 197500, 'crop' => 53000, 'time' => 330720), array('wood' => 151000, 'clay' => + 186000, 'iron' => 202000, 'crop' => 54000, 'time' => 336960), array('wood' => 154500, 'clay' => 190000, 'iron' => 206500, 'crop' => 55500, 'time' => 343200), array('wood' => 158000, 'clay' => 194500, 'iron' => 211500, 'crop' => 56500, 'time' => 349440), array('wood' => 161500, 'clay' => 199000, 'iron' => 216000, 'crop' => 58000, 'time' => 355680), array('wood' => 165000, 'clay' => 203500, 'iron' => 221000, 'crop' => 59000, 'time' => 361920), array('wood' => 168500, 'clay' => 207500, 'iron' => + 225500, 'crop' => 60500, 'time' => 368160), array('wood' => 172000, 'clay' => 212000, 'iron' => 230500, 'crop' => 62000, 'time' => 374400), array('wood' => 175500, 'clay' => 216500, 'iron' => 235500, 'crop' => 63000, 'time' => 380640)); + +?> diff --git a/GameEngine/Data/hunitdata.php b/GameEngine/Data/hunitdata.php new file mode 100644 index 00000000..ded1a02f --- /dev/null +++ b/GameEngine/Data/hunitdata.php @@ -0,0 +1,16 @@ +uid."'") or die(mysql_error()); + $heroinfo = mysql_fetch_array($getheroinfo); + echo $heroinfo['attackpower']; +$hero=array('atk'=>40*$heroinfo['attackpower'],'di'=>35,'dc'=>50,'wood'=>120,'clay'=>100,'iron'=>150,'crop'=>30,'pop'=>6,'speed'=>6,'time'=>1600,'cap'=>0); + +?> diff --git a/GameEngine/Data/resdata.php b/GameEngine/Data/resdata.php new file mode 100644 index 00000000..9bf556b1 --- /dev/null +++ b/GameEngine/Data/resdata.php @@ -0,0 +1,97 @@ +700,'clay'=>620,'iron'=>1480,'crop'=>580,'time'=>7080); +$r3=array('wood'=>1000,'clay'=>740,'iron'=>1880,'crop'=>640,'time'=>7560); +$r4=array('wood'=>940,'clay'=>740,'iron'=>360,'crop'=>400,'time'=>5880); +$r5=array('wood'=>3400,'clay'=>1860,'iron'=>2760,'crop'=>760,'time'=>9720); +$r6=array('wood'=>3400,'clay'=>2660,'iron'=>6600,'crop'=>1240,'time'=>12360); +$r7=array('wood'=>5500,'clay'=>1540,'iron'=>4200,'crop'=>580,'time'=>15600); +$r8=array('wood'=>5800,'clay'=>5500,'iron'=>5000,'crop'=>700,'time'=>28800); +$r9=array('wood'=>15880,'clay'=>13800,'iron'=>36400,'crop'=>22660,'time'=>24475); +$r12=array('wood'=>970,'clay'=>380,'iron'=>880,'crop'=>400,'time'=>5160); +$r13=array('wood'=>880,'clay'=>580,'iron'=>1560,'crop'=>580,'time'=>5400); +$r14=array('wood'=>1060,'clay'=>500,'iron'=>600,'crop'=>460,'time'=>5160); +$r15=array('wood'=>2320,'clay'=>1180,'iron'=>2520,'crop'=>610,'time'=>9000); +$r16=array('wood'=>2800,'clay'=>2160,'iron'=>4040,'crop'=>640,'time'=>10680); +$r17=array('wood'=>6100,'clay'=>1300,'iron'=>3000,'crop'=>580,'time'=>14400); +$r18=array('wood'=>5500,'clay'=>4900,'iron'=>5000,'crop'=>520,'time'=>28800); +$r19=array('wood'=>18250,'clay'=>13500,'iron'=>20400,'crop'=>16480,'time'=>19425); +$r22=array('wood'=>940,'clay'=>700,'iron'=>1680,'crop'=>520,'time'=>6120); +$r23=array('wood'=>1120,'clay'=>700,'iron'=>360,'crop'=>400,'time'=>5880); +$r24=array('wood'=>2200,'clay'=>1900,'iron'=>2040,'crop'=>520,'time'=>9240); +$r25=array('wood'=>2260,'clay'=>1420,'iron'=>2440,'crop'=>880,'time'=>9480); +$r26=array('wood'=>3100,'clay'=>2580,'iron'=>5600,'crop'=>1180,'time'=>11160); +$r27=array('wood'=>5800,'clay'=>2320,'iron'=>2840,'crop'=>610,'time'=>16800); +$r28=array('wood'=>5860,'clay'=>5900,'iron'=>5240,'crop'=>700,'time'=>28800); +$r29=array('wood'=>15880,'clay'=>22900,'iron'=>25200,'crop'=>22660,'time'=>24475); +$r32=array('wood'=>970,'clay'=>380,'iron'=>880,'crop'=>400,'time'=>5160); +$r33=array('wood'=>880,'clay'=>580,'iron'=>1560,'crop'=>580,'time'=>5400); +$r34=array('wood'=>1060,'clay'=>500,'iron'=>600,'crop'=>460,'time'=>5160); +$r35=array('wood'=>2320,'clay'=>1180,'iron'=>2520,'crop'=>610,'time'=>9000); +$r36=array('wood'=>2800,'clay'=>2160,'iron'=>4040,'crop'=>640,'time'=>10680); +$r37=array('wood'=>6100,'clay'=>1300,'iron'=>3000,'crop'=>580,'time'=>14400); +$r38=array('wood'=>5500,'clay'=>4900,'iron'=>5000,'crop'=>520,'time'=>28800); +$r39=array('wood'=>18250,'clay'=>13500,'iron'=>20400,'crop'=>16480,'time'=>19425); +$r42=array('wood'=>970,'clay'=>380,'iron'=>880,'crop'=>400,'time'=>5160); +$r43=array('wood'=>880,'clay'=>580,'iron'=>1560,'crop'=>580,'time'=>5400); +$r44=array('wood'=>1060,'clay'=>500,'iron'=>600,'crop'=>460,'time'=>5160); +$r45=array('wood'=>2320,'clay'=>1180,'iron'=>2520,'crop'=>610,'time'=>9000); +$r46=array('wood'=>2800,'clay'=>2160,'iron'=>4040,'crop'=>640,'time'=>10680); +$r47=array('wood'=>6100,'clay'=>1300,'iron'=>3000,'crop'=>580,'time'=>14400); +$r48=array('wood'=>5500,'clay'=>4900,'iron'=>5000,'crop'=>520,'time'=>28800); +$r49=array('wood'=>18250,'clay'=>13500,'iron'=>20400,'crop'=>16480,'time'=>19425); + +//Armoury +//Blacksmith +$ab1=array(1=>array('wood'=>940,'clay'=>800,'iron'=>1250,'crop'=>370,'time'=>6600),array('wood'=>1635,'clay'=>1395,'iron'=>2175,'crop'=>645,'time'=>11491),array('wood'=>2265,'clay'=>1925,'iron'=>3010,'crop'=>890,'time'=>15894),array('wood'=>2850,'clay'=>2425,'iron'=>3790,'crop'=>1120,'time'=>20007),array('wood'=>3405,'clay'=>2900,'iron'=>4530,'crop'=>1340,'time'=>23918),array('wood'=>3940,'clay'=>3355,'iron'=>5240,'crop'=>1550,'time'=>27674),array('wood'=>4460,'clay'=>3795,'iron'=>5930,'crop'=>1755,'time'=>31306),array('wood'=>4960,'clay'=>4220,'iron'=>6600,'crop'=>1955,'time'=>34835),array('wood'=>5450,'clay'=>4640,'iron'=>7250,'crop'=>2145,'time'=>38277),array('wood'=>5930,'clay'=>5050,'iron'=>7885,'crop'=>2335,'time'=>41643),array('wood'=>6400,'clay'=>5450,'iron'=>8510,'crop'=>2520,'time'=>44943),array('wood'=>6860,'clay'=>5840,'iron'=>9125,'crop'=>2700,'time'=>48182),array('wood'=>7315,'clay'=>6225,'iron'=>9730,'crop'=>2880,'time'=>51369),array('wood'=>7765,'clay'=>6605,'iron'=>10325,'crop'=>3055,'time'=>54506),array('wood'=>8205,'clay'=>6980,'iron'=>10910,'crop'=>3230,'time'=>57599),array('wood'=>8640,'clay'=>7350,'iron'=>11485,'crop'=>3400,'time'=>60651),array('wood'=>9065,'clay'=>7715,'iron'=>12060,'crop'=>3570,'time'=>63665),array('wood'=>9490,'clay'=>8080,'iron'=>12620,'crop'=>3735,'time'=>66644),array('wood'=>9910,'clay'=>8435,'iron'=>13180,'crop'=>3900,'time'=>69590),array('wood'=>10325,'clay'=>8790,'iron'=>13730,'crop'=>4065,'time'=>72505)); +$ab2=array(1=>array('wood'=>800,'clay'=>1010,'iron'=>1320,'crop'=>650,'time'=>7080),array('wood'=>1395,'clay'=>1760,'iron'=>2300,'crop'=>1130,'time'=>12327),array('wood'=>1925,'clay'=>2430,'iron'=>3180,'crop'=>1565,'time'=>17050),array('wood'=>2425,'clay'=>3060,'iron'=>4000,'crop'=>1970,'time'=>21463),array('wood'=>2900,'clay'=>3660,'iron'=>4785,'crop'=>2355,'time'=>25657),array('wood'=>3355,'clay'=>4235,'iron'=>5535,'crop'=>2725,'time'=>29686),array('wood'=>3795,'clay'=>4790,'iron'=>6260,'crop'=>3085,'time'=>33582),array('wood'=>4220,'clay'=>5330,'iron'=>6965,'crop'=>3430,'time'=>37368),array('wood'=>4640,'clay'=>5860,'iron'=>7655,'crop'=>3770,'time'=>41061),array('wood'=>5050,'clay'=>6375,'iron'=>8330,'crop'=>4100,'time'=>44672),array('wood'=>5450,'clay'=>6880,'iron'=>8990,'crop'=>4425,'time'=>48211),array('wood'=>5840,'clay'=>7375,'iron'=>9635,'crop'=>4745,'time'=>51687),array('wood'=>6225,'clay'=>7860,'iron'=>10275,'crop'=>5060,'time'=>55105),array('wood'=>6605,'clay'=>8340,'iron'=>10900,'crop'=>5370,'time'=>58470),array('wood'=>6980,'clay'=>8815,'iron'=>11520,'crop'=>5675,'time'=>61788),array('wood'=>7350,'clay'=>9280,'iron'=>12130,'crop'=>5975,'time'=>65062),array('wood'=>7715,'clay'=>9745,'iron'=>12735,'crop'=>6270,'time'=>68296),array('wood'=>8080,'clay'=>10200,'iron'=>13330,'crop'=>6565,'time'=>71491),array('wood'=>8435,'clay'=>10650,'iron'=>13920,'crop'=>6855,'time'=>74651),array('wood'=>8790,'clay'=>11095,'iron'=>14500,'crop'=>7140,'time'=>77778)); +$ab3=array(1=>array('wood'=>1150,'clay'=>1220,'iron'=>1670,'crop'=>720,'time'=>7560),array('wood'=>2000,'clay'=>2125,'iron'=>2910,'crop'=>1255,'time'=>13163),array('wood'=>2770,'clay'=>2940,'iron'=>4020,'crop'=>1735,'time'=>18206),array('wood'=>3485,'clay'=>3700,'iron'=>5060,'crop'=>2185,'time'=>22918),array('wood'=>4165,'clay'=>4420,'iron'=>6050,'crop'=>2610,'time'=>27397),array('wood'=>4820,'clay'=>5115,'iron'=>7000,'crop'=>3020,'time'=>31699),array('wood'=>5455,'clay'=>5785,'iron'=>7920,'crop'=>3415,'time'=>35859),array('wood'=>6070,'clay'=>6440,'iron'=>8815,'crop'=>3800,'time'=>39902),array('wood'=>6670,'clay'=>7075,'iron'=>9685,'crop'=>4175,'time'=>43845),array('wood'=>7255,'clay'=>7700,'iron'=>10535,'crop'=>4545,'time'=>47700),array('wood'=>7830,'clay'=>8310,'iron'=>11370,'crop'=>4905,'time'=>51480),array('wood'=>8395,'clay'=>8905,'iron'=>12190,'crop'=>5255,'time'=>55191),array('wood'=>8950,'clay'=>9495,'iron'=>13000,'crop'=>5605,'time'=>58841),array('wood'=>9495,'clay'=>10075,'iron'=>13790,'crop'=>5945,'time'=>62434),array('wood'=>10035,'clay'=>10645,'iron'=>14575,'crop'=>6285,'time'=>65977),array('wood'=>10570,'clay'=>11210,'iron'=>15345,'crop'=>6615,'time'=>69473),array('wood'=>11095,'clay'=>11770,'iron'=>16110,'crop'=>6945,'time'=>72926),array('wood'=>11610,'clay'=>12320,'iron'=>16865,'crop'=>7270,'time'=>76338),array('wood'=>12125,'clay'=>12865,'iron'=>17610,'crop'=>7590,'time'=>79712),array('wood'=>12635,'clay'=>13400,'iron'=>18345,'crop'=>7910,'time'=>83051)); +$ab4=array(1=>array('wood'=>540,'clay'=>610,'iron'=>170,'crop'=>220,'time'=>5880),array('wood'=>940,'clay'=>1060,'iron'=>295,'crop'=>385,'time'=>10238),array('wood'=>1300,'clay'=>1470,'iron'=>410,'crop'=>530,'time'=>14160),array('wood'=>1635,'clay'=>1850,'iron'=>515,'crop'=>665,'time'=>17825),array('wood'=>1955,'clay'=>2210,'iron'=>615,'crop'=>795,'time'=>21309),array('wood'=>2265,'clay'=>2560,'iron'=>715,'crop'=>920,'time'=>24655),array('wood'=>2560,'clay'=>2895,'iron'=>805,'crop'=>1045,'time'=>27890),array('wood'=>2850,'clay'=>3220,'iron'=>895,'crop'=>1160,'time'=>31035),array('wood'=>3130,'clay'=>3540,'iron'=>985,'crop'=>1275,'time'=>34101),array('wood'=>3405,'clay'=>3850,'iron'=>1075,'crop'=>1390,'time'=>37100),array('wood'=>3675,'clay'=>4155,'iron'=>1160,'crop'=>1500,'time'=>40040),array('wood'=>3940,'clay'=>4455,'iron'=>1240,'crop'=>1605,'time'=>42926),array('wood'=>4205,'clay'=>4750,'iron'=>1325,'crop'=>1710,'time'=>45765),array('wood'=>4460,'clay'=>5040,'iron'=>1405,'crop'=>1815,'time'=>48560),array('wood'=>4715,'clay'=>5325,'iron'=>1485,'crop'=>1920,'time'=>51316),array('wood'=>4960,'clay'=>5605,'iron'=>1560,'crop'=>2020,'time'=>54035),array('wood'=>5210,'clay'=>5885,'iron'=>1640,'crop'=>2120,'time'=>56720),array('wood'=>5455,'clay'=>6160,'iron'=>1715,'crop'=>2220,'time'=>59374),array('wood'=>5695,'clay'=>6430,'iron'=>1790,'crop'=>2320,'time'=>61998),array('wood'=>5930,'clay'=>6700,'iron'=>1870,'crop'=>2415,'time'=>64595)); +$ab5=array(1=>array('wood'=>1315,'clay'=>1060,'iron'=>815,'crop'=>285,'time'=>9720),array('wood'=>2290,'clay'=>1845,'iron'=>1415,'crop'=>500,'time'=>16924),array('wood'=>3170,'clay'=>2555,'iron'=>1960,'crop'=>690,'time'=>23408),array('wood'=>3990,'clay'=>3215,'iron'=>2465,'crop'=>870,'time'=>29466),array('wood'=>4770,'clay'=>3840,'iron'=>2945,'crop'=>1040,'time'=>35224),array('wood'=>5520,'clay'=>4445,'iron'=>3410,'crop'=>1200,'time'=>40756),array('wood'=>6245,'clay'=>5030,'iron'=>3860,'crop'=>1360,'time'=>46105),array('wood'=>6950,'clay'=>5595,'iron'=>4295,'crop'=>1515,'time'=>51302),array('wood'=>7635,'clay'=>6150,'iron'=>4715,'crop'=>1665,'time'=>56372),array('wood'=>8310,'clay'=>6690,'iron'=>5130,'crop'=>1810,'time'=>61329),array('wood'=>8965,'clay'=>7220,'iron'=>5540,'crop'=>1950,'time'=>66188),array('wood'=>9610,'clay'=>7740,'iron'=>5940,'crop'=>2095,'time'=>70960),array('wood'=>10250,'clay'=>8250,'iron'=>6330,'crop'=>2230,'time'=>75652),array('wood'=>10875,'clay'=>8755,'iron'=>6715,'crop'=>2365,'time'=>80273),array('wood'=>11490,'clay'=>9250,'iron'=>7100,'crop'=>2500,'time'=>84828),array('wood'=>12100,'clay'=>9740,'iron'=>7475,'crop'=>2635,'time'=>89323),array('wood'=>12700,'clay'=>10225,'iron'=>7845,'crop'=>2765,'time'=>93762),array('wood'=>13295,'clay'=>10705,'iron'=>8215,'crop'=>2895,'time'=>98149),array('wood'=>13885,'clay'=>11175,'iron'=>8575,'crop'=>3025,'time'=>102487),array('wood'=>14465,'clay'=>11645,'iron'=>8935,'crop'=>3150,'time'=>106780)); +$ab6=array(1=>array('wood'=>990,'clay'=>1145,'iron'=>1450,'crop'=>355,'time'=>12360),array('wood'=>1720,'clay'=>1995,'iron'=>2525,'crop'=>620,'time'=>21520),array('wood'=>2380,'clay'=>2755,'iron'=>3490,'crop'=>855,'time'=>29766),array('wood'=>2995,'clay'=>3470,'iron'=>4395,'crop'=>1075,'time'=>37469),array('wood'=>3580,'clay'=>4150,'iron'=>5255,'crop'=>1285,'time'=>44791),array('wood'=>4140,'clay'=>4800,'iron'=>6080,'crop'=>1490,'time'=>51825),array('wood'=>4685,'clay'=>5430,'iron'=>6880,'crop'=>1685,'time'=>58627),array('wood'=>5210,'clay'=>6045,'iron'=>7655,'crop'=>1875,'time'=>65236),array('wood'=>5725,'clay'=>6640,'iron'=>8410,'crop'=>2060,'time'=>71682),array('wood'=>6230,'clay'=>7225,'iron'=>9150,'crop'=>2240,'time'=>77986),array('wood'=>6725,'clay'=>7795,'iron'=>9875,'crop'=>2415,'time'=>84165),array('wood'=>7210,'clay'=>8360,'iron'=>10585,'crop'=>2590,'time'=>90233),array('wood'=>7685,'clay'=>8910,'iron'=>11285,'crop'=>2765,'time'=>96200),array('wood'=>8155,'clay'=>9455,'iron'=>11975,'crop'=>2930,'time'=>102075),array('wood'=>8620,'clay'=>9995,'iron'=>12655,'crop'=>3100,'time'=>107868),array('wood'=>9075,'clay'=>10520,'iron'=>13325,'crop'=>3260,'time'=>113583),array('wood'=>9525,'clay'=>11045,'iron'=>13985,'crop'=>3425,'time'=>119228),array('wood'=>9970,'clay'=>11560,'iron'=>14640,'crop'=>3585,'time'=>124806),array('wood'=>10410,'clay'=>12075,'iron'=>15290,'crop'=>3745,'time'=>130323),array('wood'=>10850,'clay'=>12580,'iron'=>15930,'crop'=>3900,'time'=>135782)); +$ab7=array(1=>array('wood'=>2135,'clay'=>875,'iron'=>1235,'crop'=>215,'time'=>15600),array('wood'=>3715,'clay'=>1520,'iron'=>2145,'crop'=>375,'time'=>27161),array('wood'=>5140,'clay'=>2105,'iron'=>2970,'crop'=>520,'time'=>37568),array('wood'=>6465,'clay'=>2645,'iron'=>3740,'crop'=>655,'time'=>47290),array('wood'=>7730,'clay'=>3165,'iron'=>4470,'crop'=>785,'time'=>56533),array('wood'=>8945,'clay'=>3660,'iron'=>5170,'crop'=>910,'time'=>65410),array('wood'=>10120,'clay'=>4140,'iron'=>5850,'crop'=>1030,'time'=>73995),array('wood'=>11260,'clay'=>4610,'iron'=>6510,'crop'=>1145,'time'=>82337),array('wood'=>12370,'clay'=>5065,'iron'=>7155,'crop'=>1255,'time'=>90473),array('wood'=>13460,'clay'=>5510,'iron'=>7780,'crop'=>1365,'time'=>98429),array('wood'=>14525,'clay'=>5945,'iron'=>8400,'crop'=>1475,'time'=>106228),array('wood'=>15575,'clay'=>6375,'iron'=>9005,'crop'=>1580,'time'=>113886),array('wood'=>16605,'clay'=>6795,'iron'=>9600,'crop'=>1685,'time'=>121417),array('wood'=>17620,'clay'=>7210,'iron'=>10185,'crop'=>1790,'time'=>128833),array('wood'=>18620,'clay'=>7620,'iron'=>10765,'crop'=>1890,'time'=>136144),array('wood'=>19605,'clay'=>8025,'iron'=>11335,'crop'=>1990,'time'=>143358),array('wood'=>20580,'clay'=>8425,'iron'=>11895,'crop'=>2090,'time'=>150482),array('wood'=>21540,'clay'=>8820,'iron'=>12455,'crop'=>2190,'time'=>157523),array('wood'=>22495,'clay'=>9210,'iron'=>13005,'crop'=>2285,'time'=>164485),array('wood'=>23435,'clay'=>9595,'iron'=>13550,'crop'=>2380,'time'=>171375)); +$ab8=array(1=>array('wood'=>1125,'clay'=>1590,'iron'=>735,'crop'=>130,'time'=>28800),array('wood'=>1960,'clay'=>2770,'iron'=>1275,'crop'=>230,'time'=>50144),array('wood'=>2710,'clay'=>3835,'iron'=>1765,'crop'=>315,'time'=>69357),array('wood'=>3410,'clay'=>4825,'iron'=>2225,'crop'=>400,'time'=>87305),array('wood'=>4075,'clay'=>5770,'iron'=>2660,'crop'=>475,'time'=>104368),array('wood'=>4715,'clay'=>6675,'iron'=>3075,'crop'=>550,'time'=>120757),array('wood'=>5335,'clay'=>7550,'iron'=>3480,'crop'=>625,'time'=>136606),array('wood'=>5940,'clay'=>8400,'iron'=>3870,'crop'=>695,'time'=>152007),array('wood'=>6525,'clay'=>9230,'iron'=>4255,'crop'=>765,'time'=>167027),array('wood'=>7100,'clay'=>10045,'iron'=>4625,'crop'=>830,'time'=>181716),array('wood'=>7660,'clay'=>10840,'iron'=>4995,'crop'=>895,'time'=>196113),array('wood'=>8215,'clay'=>11620,'iron'=>5355,'crop'=>960,'time'=>210251),array('wood'=>8755,'clay'=>12390,'iron'=>5710,'crop'=>1025,'time'=>224154),array('wood'=>9290,'clay'=>13145,'iron'=>6055,'crop'=>1085,'time'=>237845),array('wood'=>9820,'clay'=>13890,'iron'=>6400,'crop'=>1150,'time'=>251342),array('wood'=>10340,'clay'=>14625,'iron'=>6740,'crop'=>1210,'time'=>264660),array('wood'=>10850,'clay'=>15355,'iron'=>7075,'crop'=>1270,'time'=>277812),array('wood'=>11360,'clay'=>16070,'iron'=>7405,'crop'=>1330,'time'=>290811),array('wood'=>11860,'clay'=>16780,'iron'=>7730,'crop'=>1390,'time'=>303665),array('wood'=>12360,'clay'=>17485,'iron'=>8055,'crop'=>1445,'time'=>316385)); +$ab11=array(1=>array('wood'=>765,'clay'=>625,'iron'=>480,'crop'=>440,'time'=>3960),array('wood'=>1330,'clay'=>1090,'iron'=>835,'crop'=>765,'time'=>6895),array('wood'=>1840,'clay'=>1505,'iron'=>1155,'crop'=>1060,'time'=>9537),array('wood'=>2320,'clay'=>1895,'iron'=>1455,'crop'=>1335,'time'=>12004),array('wood'=>2770,'clay'=>2265,'iron'=>1740,'crop'=>1595,'time'=>14351),array('wood'=>3210,'clay'=>2620,'iron'=>2015,'crop'=>1845,'time'=>16604),array('wood'=>3630,'clay'=>2965,'iron'=>2275,'crop'=>2085,'time'=>18783),array('wood'=>4040,'clay'=>3300,'iron'=>2535,'crop'=>2320,'time'=>20901),array('wood'=>4435,'clay'=>3625,'iron'=>2785,'crop'=>2550,'time'=>22966),array('wood'=>4825,'clay'=>3945,'iron'=>3030,'crop'=>2775,'time'=>24986),array('wood'=>5210,'clay'=>4255,'iron'=>3270,'crop'=>2995,'time'=>26966),array('wood'=>5585,'clay'=>4565,'iron'=>3505,'crop'=>3210,'time'=>28909),array('wood'=>5955,'clay'=>4865,'iron'=>3735,'crop'=>3425,'time'=>30821),array('wood'=>6320,'clay'=>5160,'iron'=>3965,'crop'=>3635,'time'=>32704),array('wood'=>6675,'clay'=>5455,'iron'=>4190,'crop'=>3840,'time'=>34560),array('wood'=>7030,'clay'=>5745,'iron'=>4410,'crop'=>4045,'time'=>36391),array('wood'=>7380,'clay'=>6030,'iron'=>4630,'crop'=>4245,'time'=>38199),array('wood'=>7725,'clay'=>6310,'iron'=>4845,'crop'=>4445,'time'=>39986),array('wood'=>8065,'clay'=>6590,'iron'=>5060,'crop'=>4640,'time'=>41754),array('wood'=>8405,'clay'=>6865,'iron'=>5275,'crop'=>4835,'time'=>43503)); +$ab12=array(1=>array('wood'=>1115,'clay'=>590,'iron'=>795,'crop'=>440,'time'=>5160),array('wood'=>1940,'clay'=>1025,'iron'=>1385,'crop'=>765,'time'=>8984),array('wood'=>2685,'clay'=>1420,'iron'=>1915,'crop'=>1060,'time'=>12426),array('wood'=>3380,'clay'=>1790,'iron'=>2410,'crop'=>1335,'time'=>15642),array('wood'=>4040,'clay'=>2140,'iron'=>2880,'crop'=>1595,'time'=>18699),array('wood'=>4675,'clay'=>2475,'iron'=>3335,'crop'=>1845,'time'=>21636),array('wood'=>5290,'clay'=>2800,'iron'=>3770,'crop'=>2085,'time'=>24475),array('wood'=>5885,'clay'=>3115,'iron'=>4195,'crop'=>2320,'time'=>27235),array('wood'=>6465,'clay'=>3420,'iron'=>4610,'crop'=>2550,'time'=>29926),array('wood'=>7035,'clay'=>3725,'iron'=>5015,'crop'=>2775,'time'=>32557),array('wood'=>7595,'clay'=>4020,'iron'=>5415,'crop'=>2995,'time'=>35137),array('wood'=>8140,'clay'=>4305,'iron'=>5805,'crop'=>3210,'time'=>37670),array('wood'=>8680,'clay'=>4590,'iron'=>6190,'crop'=>3425,'time'=>40161),array('wood'=>9210,'clay'=>4875,'iron'=>6565,'crop'=>3635,'time'=>42614),array('wood'=>9730,'clay'=>5150,'iron'=>6940,'crop'=>3840,'time'=>45032),array('wood'=>10245,'clay'=>5420,'iron'=>7305,'crop'=>4045,'time'=>47418),array('wood'=>10755,'clay'=>5690,'iron'=>7670,'crop'=>4245,'time'=>49775),array('wood'=>11260,'clay'=>5960,'iron'=>8030,'crop'=>4445,'time'=>52104),array('wood'=>11755,'clay'=>6220,'iron'=>8380,'crop'=>4640,'time'=>54407),array('wood'=>12250,'clay'=>6480,'iron'=>8735,'crop'=>4835,'time'=>56686)); +$ab13=array(1=>array('wood'=>1010,'clay'=>940,'iron'=>1390,'crop'=>650,'time'=>5400),array('wood'=>1760,'clay'=>1635,'iron'=>2420,'crop'=>1130,'time'=>9402),array('wood'=>2430,'clay'=>2265,'iron'=>3345,'crop'=>1565,'time'=>13004),array('wood'=>3060,'clay'=>2850,'iron'=>4215,'crop'=>1970,'time'=>16370),array('wood'=>3660,'clay'=>3405,'iron'=>5035,'crop'=>2355,'time'=>19569),array('wood'=>4235,'clay'=>3940,'iron'=>5830,'crop'=>2725,'time'=>22642),array('wood'=>4790,'clay'=>4460,'iron'=>6595,'crop'=>3085,'time'=>25614),array('wood'=>5330,'clay'=>4960,'iron'=>7335,'crop'=>3430,'time'=>28501),array('wood'=>5860,'clay'=>5450,'iron'=>8060,'crop'=>3770,'time'=>31318),array('wood'=>6375,'clay'=>5930,'iron'=>8770,'crop'=>4100,'time'=>34072),array('wood'=>6880,'clay'=>6400,'iron'=>9465,'crop'=>4425,'time'=>36771),array('wood'=>7375,'clay'=>6860,'iron'=>10150,'crop'=>4745,'time'=>39422),array('wood'=>7860,'clay'=>7315,'iron'=>10820,'crop'=>5060,'time'=>42029),array('wood'=>8340,'clay'=>7765,'iron'=>11480,'crop'=>5370,'time'=>44596),array('wood'=>8815,'clay'=>8205,'iron'=>12130,'crop'=>5675,'time'=>47127),array('wood'=>9280,'clay'=>8640,'iron'=>12775,'crop'=>5975,'time'=>49624),array('wood'=>9745,'clay'=>9065,'iron'=>13410,'crop'=>6270,'time'=>52090),array('wood'=>10200,'clay'=>9490,'iron'=>14035,'crop'=>6565,'time'=>54527),array('wood'=>10650,'clay'=>9910,'iron'=>14655,'crop'=>6855,'time'=>56937),array('wood'=>11095,'clay'=>10325,'iron'=>15270,'crop'=>7140,'time'=>59322)); +$ab14=array(1=>array('wood'=>1220,'clay'=>800,'iron'=>550,'crop'=>510,'time'=>5160),array('wood'=>2125,'clay'=>1395,'iron'=>960,'crop'=>890,'time'=>8984),array('wood'=>2940,'clay'=>1925,'iron'=>1325,'crop'=>1230,'time'=>12426),array('wood'=>3700,'clay'=>2425,'iron'=>1665,'crop'=>1545,'time'=>15642),array('wood'=>4420,'clay'=>2900,'iron'=>1995,'crop'=>1850,'time'=>18699),array('wood'=>5115,'clay'=>3355,'iron'=>2305,'crop'=>2140,'time'=>21636),array('wood'=>5785,'clay'=>3795,'iron'=>2610,'crop'=>2420,'time'=>24475),array('wood'=>6440,'clay'=>4220,'iron'=>2905,'crop'=>2690,'time'=>27235),array('wood'=>7075,'clay'=>4640,'iron'=>3190,'crop'=>2960,'time'=>29926),array('wood'=>7700,'clay'=>5050,'iron'=>3470,'crop'=>3220,'time'=>32557),array('wood'=>8310,'clay'=>5450,'iron'=>3745,'crop'=>3475,'time'=>35137),array('wood'=>8905,'clay'=>5840,'iron'=>4015,'crop'=>3725,'time'=>37670),array('wood'=>9495,'clay'=>6225,'iron'=>4280,'crop'=>3970,'time'=>40161),array('wood'=>10075,'clay'=>6605,'iron'=>4540,'crop'=>4210,'time'=>42614),array('wood'=>10645,'clay'=>6980,'iron'=>4800,'crop'=>4450,'time'=>45032),array('wood'=>11210,'clay'=>7350,'iron'=>5055,'crop'=>4685,'time'=>47418),array('wood'=>11770,'clay'=>7715,'iron'=>5305,'crop'=>4920,'time'=>49775),array('wood'=>12320,'clay'=>8080,'iron'=>5555,'crop'=>5150,'time'=>52104),array('wood'=>12865,'clay'=>8435,'iron'=>5800,'crop'=>5375,'time'=>54407),array('wood'=>13400,'clay'=>8790,'iron'=>6040,'crop'=>5605,'time'=>56686)); +$ab15=array(1=>array('wood'=>1345,'clay'=>995,'iron'=>1115,'crop'=>345,'time'=>9000),array('wood'=>2340,'clay'=>1730,'iron'=>1940,'crop'=>595,'time'=>15670),array('wood'=>3240,'clay'=>2395,'iron'=>2685,'crop'=>825,'time'=>21674),array('wood'=>4075,'clay'=>3015,'iron'=>3380,'crop'=>1040,'time'=>27283),array('wood'=>4875,'clay'=>3605,'iron'=>4040,'crop'=>1240,'time'=>32615),array('wood'=>5640,'clay'=>4170,'iron'=>4675,'crop'=>1435,'time'=>37737),array('wood'=>6380,'clay'=>4720,'iron'=>5290,'crop'=>1625,'time'=>42689),array('wood'=>7100,'clay'=>5250,'iron'=>5885,'crop'=>1810,'time'=>47502),array('wood'=>7800,'clay'=>5770,'iron'=>6465,'crop'=>1985,'time'=>52196),array('wood'=>8485,'clay'=>6280,'iron'=>7035,'crop'=>2160,'time'=>56786),array('wood'=>9160,'clay'=>6775,'iron'=>7595,'crop'=>2330,'time'=>61285),array('wood'=>9820,'clay'=>7265,'iron'=>8140,'crop'=>2500,'time'=>65703),array('wood'=>10470,'clay'=>7745,'iron'=>8680,'crop'=>2665,'time'=>70048),array('wood'=>11110,'clay'=>8215,'iron'=>9210,'crop'=>2830,'time'=>74327),array('wood'=>11740,'clay'=>8685,'iron'=>9730,'crop'=>2990,'time'=>78544),array('wood'=>12360,'clay'=>9145,'iron'=>10245,'crop'=>3145,'time'=>82706),array('wood'=>12975,'clay'=>9600,'iron'=>10755,'crop'=>3305,'time'=>86816),array('wood'=>13580,'clay'=>10045,'iron'=>11260,'crop'=>3460,'time'=>90878),array('wood'=>14180,'clay'=>10490,'iron'=>11755,'crop'=>3610,'time'=>94895),array('wood'=>14775,'clay'=>10930,'iron'=>12250,'crop'=>3765,'time'=>98870)); +$ab16=array(1=>array('wood'=>1085,'clay'=>1235,'iron'=>1185,'crop'=>240,'time'=>10680),array('wood'=>1885,'clay'=>2150,'iron'=>2065,'crop'=>420,'time'=>18595),array('wood'=>2610,'clay'=>2975,'iron'=>2860,'crop'=>580,'time'=>25720),array('wood'=>3285,'clay'=>3745,'iron'=>3595,'crop'=>730,'time'=>32376),array('wood'=>3925,'clay'=>4475,'iron'=>4300,'crop'=>870,'time'=>38703),array('wood'=>4540,'clay'=>5180,'iron'=>4975,'crop'=>1005,'time'=>44781),array('wood'=>5140,'clay'=>5860,'iron'=>5630,'crop'=>1140,'time'=>50658),array('wood'=>5720,'clay'=>6520,'iron'=>6265,'crop'=>1265,'time'=>56369),array('wood'=>6285,'clay'=>7160,'iron'=>6880,'crop'=>1390,'time'=>61939),array('wood'=>6835,'clay'=>7790,'iron'=>7485,'crop'=>1515,'time'=>67386),array('wood'=>7375,'clay'=>8410,'iron'=>8080,'crop'=>1635,'time'=>72725),array('wood'=>7910,'clay'=>9015,'iron'=>8665,'crop'=>1750,'time'=>77968),array('wood'=>8430,'clay'=>9610,'iron'=>9235,'crop'=>1870,'time'=>83124),array('wood'=>8945,'clay'=>10200,'iron'=>9800,'crop'=>1980,'time'=>88201),array('wood'=>9455,'clay'=>10780,'iron'=>10355,'crop'=>2095,'time'=>93206),array('wood'=>9955,'clay'=>11350,'iron'=>10905,'crop'=>2205,'time'=>98145),array('wood'=>10450,'clay'=>11915,'iron'=>11445,'crop'=>2315,'time'=>103022),array('wood'=>10940,'clay'=>12470,'iron'=>11980,'crop'=>2425,'time'=>107842),array('wood'=>11425,'clay'=>13020,'iron'=>12510,'crop'=>2530,'time'=>112609),array('wood'=>11900,'clay'=>13565,'iron'=>13035,'crop'=>2635,'time'=>117326)); +$ab17=array(1=>array('wood'=>2365,'clay'=>735,'iron'=>885,'crop'=>215,'time'=>14400),array('wood'=>4120,'clay'=>1275,'iron'=>1540,'crop'=>375,'time'=>25072),array('wood'=>5700,'clay'=>1765,'iron'=>2125,'crop'=>520,'time'=>34678),array('wood'=>7175,'clay'=>2225,'iron'=>2680,'crop'=>655,'time'=>43653),array('wood'=>8575,'clay'=>2660,'iron'=>3200,'crop'=>785,'time'=>52184),array('wood'=>9925,'clay'=>3075,'iron'=>3705,'crop'=>910,'time'=>60379),array('wood'=>11225,'clay'=>3480,'iron'=>4190,'crop'=>1030,'time'=>68303),array('wood'=>12490,'clay'=>3870,'iron'=>4660,'crop'=>1145,'time'=>76004),array('wood'=>13725,'clay'=>4255,'iron'=>5125,'crop'=>1255,'time'=>83513),array('wood'=>14935,'clay'=>4625,'iron'=>5575,'crop'=>1365,'time'=>90858),array('wood'=>16115,'clay'=>4995,'iron'=>6015,'crop'=>1475,'time'=>98057),array('wood'=>17280,'clay'=>5355,'iron'=>6450,'crop'=>1580,'time'=>105125),array('wood'=>18420,'clay'=>5710,'iron'=>6875,'crop'=>1685,'time'=>112077),array('wood'=>19545,'clay'=>6055,'iron'=>7295,'crop'=>1790,'time'=>118923),array('wood'=>20655,'clay'=>6400,'iron'=>7710,'crop'=>1890,'time'=>125671),array('wood'=>21750,'clay'=>6740,'iron'=>8115,'crop'=>1990,'time'=>132330),array('wood'=>22830,'clay'=>7075,'iron'=>8520,'crop'=>2090,'time'=>138906),array('wood'=>23900,'clay'=>7405,'iron'=>8920,'crop'=>2190,'time'=>145405),array('wood'=>24955,'clay'=>7730,'iron'=>9315,'crop'=>2285,'time'=>151833),array('wood'=>26000,'clay'=>8055,'iron'=>9705,'crop'=>2380,'time'=>158193)); +$ab18=array(1=>array('wood'=>1065,'clay'=>1415,'iron'=>735,'crop'=>95,'time'=>28800),array('wood'=>1855,'clay'=>2465,'iron'=>1275,'crop'=>170,'time'=>50144),array('wood'=>2570,'clay'=>3410,'iron'=>1765,'crop'=>235,'time'=>69357),array('wood'=>3235,'clay'=>4295,'iron'=>2225,'crop'=>295,'time'=>87305),array('wood'=>3865,'clay'=>5135,'iron'=>2660,'crop'=>350,'time'=>104368),array('wood'=>4470,'clay'=>5940,'iron'=>3075,'crop'=>405,'time'=>120757),array('wood'=>5060,'clay'=>6720,'iron'=>3480,'crop'=>460,'time'=>136606),array('wood'=>5630,'clay'=>7475,'iron'=>3870,'crop'=>510,'time'=>152007),array('wood'=>6185,'clay'=>8215,'iron'=>4255,'crop'=>560,'time'=>167027),array('wood'=>6730,'clay'=>8940,'iron'=>4625,'crop'=>610,'time'=>181716),array('wood'=>7265,'clay'=>9645,'iron'=>4995,'crop'=>660,'time'=>196113),array('wood'=>7785,'clay'=>10340,'iron'=>5355,'crop'=>705,'time'=>210251),array('wood'=>8300,'clay'=>11025,'iron'=>5710,'crop'=>750,'time'=>224154),array('wood'=>8810,'clay'=>11700,'iron'=>6055,'crop'=>800,'time'=>237845),array('wood'=>9310,'clay'=>12365,'iron'=>6400,'crop'=>845,'time'=>251342),array('wood'=>9800,'clay'=>13020,'iron'=>6740,'crop'=>890,'time'=>264660),array('wood'=>10290,'clay'=>13665,'iron'=>7075,'crop'=>930,'time'=>277812),array('wood'=>10770,'clay'=>14305,'iron'=>7405,'crop'=>975,'time'=>290811),array('wood'=>11245,'clay'=>14935,'iron'=>7730,'crop'=>1020,'time'=>303665),array('wood'=>11720,'clay'=>15565,'iron'=>8055,'crop'=>1060,'time'=>316385)); +$ab21=array(1=>array('wood'=>800,'clay'=>1010,'iron'=>585,'crop'=>370,'time'=>4920),array('wood'=>1395,'clay'=>1760,'iron'=>1020,'crop'=>645,'time'=>8566),array('wood'=>1925,'clay'=>2430,'iron'=>1410,'crop'=>890,'time'=>11848),array('wood'=>2425,'clay'=>3060,'iron'=>1775,'crop'=>1120,'time'=>14915),array('wood'=>2900,'clay'=>3660,'iron'=>2120,'crop'=>1340,'time'=>17830),array('wood'=>3355,'clay'=>4235,'iron'=>2455,'crop'=>1550,'time'=>20629),array('wood'=>3795,'clay'=>4790,'iron'=>2775,'crop'=>1755,'time'=>23337),array('wood'=>4220,'clay'=>5330,'iron'=>3090,'crop'=>1955,'time'=>25968),array('wood'=>4640,'clay'=>5860,'iron'=>3395,'crop'=>2145,'time'=>28534),array('wood'=>5050,'clay'=>6375,'iron'=>3690,'crop'=>2335,'time'=>31043),array('wood'=>5450,'clay'=>6880,'iron'=>3985,'crop'=>2520,'time'=>33503),array('wood'=>5840,'clay'=>7375,'iron'=>4270,'crop'=>2700,'time'=>35918),array('wood'=>6225,'clay'=>7860,'iron'=>4555,'crop'=>2880,'time'=>38293),array('wood'=>6605,'clay'=>8340,'iron'=>4830,'crop'=>3055,'time'=>40632),array('wood'=>6980,'clay'=>8815,'iron'=>5105,'crop'=>3230,'time'=>42938),array('wood'=>7350,'clay'=>9280,'iron'=>5375,'crop'=>3400,'time'=>45213),array('wood'=>7715,'clay'=>9745,'iron'=>5645,'crop'=>3570,'time'=>47460),array('wood'=>8080,'clay'=>10200,'iron'=>5905,'crop'=>3735,'time'=>49680),array('wood'=>8435,'clay'=>10650,'iron'=>6170,'crop'=>3900,'time'=>51876),array('wood'=>8790,'clay'=>11095,'iron'=>6425,'crop'=>4065,'time'=>54049)); +$ab22=array(1=>array('wood'=>1080,'clay'=>1150,'iron'=>1495,'crop'=>580,'time'=>6120),array('wood'=>1880,'clay'=>2000,'iron'=>2605,'crop'=>1010,'time'=>10656),array('wood'=>2600,'clay'=>2770,'iron'=>3600,'crop'=>1395,'time'=>14738),array('wood'=>3275,'clay'=>3485,'iron'=>4530,'crop'=>1760,'time'=>18552),array('wood'=>3915,'clay'=>4165,'iron'=>5420,'crop'=>2100,'time'=>22178),array('wood'=>4530,'clay'=>4820,'iron'=>6270,'crop'=>2430,'time'=>25661),array('wood'=>5125,'clay'=>5455,'iron'=>7090,'crop'=>2750,'time'=>29029),array('wood'=>5700,'clay'=>6070,'iron'=>7890,'crop'=>3060,'time'=>32302),array('wood'=>6265,'clay'=>6670,'iron'=>8670,'crop'=>3365,'time'=>35493),array('wood'=>6815,'clay'=>7255,'iron'=>9435,'crop'=>3660,'time'=>38615),array('wood'=>7355,'clay'=>7830,'iron'=>10180,'crop'=>3950,'time'=>41674),array('wood'=>7885,'clay'=>8395,'iron'=>10915,'crop'=>4235,'time'=>44678),array('wood'=>8405,'clay'=>8950,'iron'=>11635,'crop'=>4515,'time'=>47633),array('wood'=>8920,'clay'=>9495,'iron'=>12345,'crop'=>4790,'time'=>50542),array('wood'=>9425,'clay'=>10035,'iron'=>13045,'crop'=>5060,'time'=>53410),array('wood'=>9925,'clay'=>10570,'iron'=>13740,'crop'=>5330,'time'=>56240),array('wood'=>10420,'clay'=>11095,'iron'=>14420,'crop'=>5595,'time'=>59035),array('wood'=>10905,'clay'=>11610,'iron'=>15095,'crop'=>5855,'time'=>61797),array('wood'=>11385,'clay'=>12125,'iron'=>15765,'crop'=>6115,'time'=>64529),array('wood'=>11865,'clay'=>12635,'iron'=>16425,'crop'=>6370,'time'=>67232)); +$ab23=array(1=>array('wood'=>645,'clay'=>575,'iron'=>170,'crop'=>220,'time'=>5880),array('wood'=>1125,'clay'=>1000,'iron'=>295,'crop'=>385,'time'=>10238),array('wood'=>1555,'clay'=>1385,'iron'=>410,'crop'=>530,'time'=>14160),array('wood'=>1955,'clay'=>1745,'iron'=>515,'crop'=>665,'time'=>17825),array('wood'=>2335,'clay'=>2085,'iron'=>615,'crop'=>795,'time'=>21309),array('wood'=>2705,'clay'=>2410,'iron'=>715,'crop'=>920,'time'=>24655),array('wood'=>3060,'clay'=>2725,'iron'=>805,'crop'=>1045,'time'=>27890),array('wood'=>3405,'clay'=>3035,'iron'=>895,'crop'=>1160,'time'=>31035),array('wood'=>3740,'clay'=>3335,'iron'=>985,'crop'=>1275,'time'=>34101),array('wood'=>4070,'clay'=>3630,'iron'=>1075,'crop'=>1390,'time'=>37100),array('wood'=>4390,'clay'=>3915,'iron'=>1160,'crop'=>1500,'time'=>40040),array('wood'=>4710,'clay'=>4200,'iron'=>1240,'crop'=>1605,'time'=>42926),array('wood'=>5020,'clay'=>4475,'iron'=>1325,'crop'=>1710,'time'=>45765),array('wood'=>5325,'clay'=>4750,'iron'=>1405,'crop'=>1815,'time'=>48560),array('wood'=>5630,'clay'=>5020,'iron'=>1485,'crop'=>1920,'time'=>51316),array('wood'=>5925,'clay'=>5285,'iron'=>1560,'crop'=>2020,'time'=>54035),array('wood'=>6220,'clay'=>5545,'iron'=>1640,'crop'=>2120,'time'=>56720),array('wood'=>6515,'clay'=>5805,'iron'=>1715,'crop'=>2220,'time'=>59374),array('wood'=>6800,'clay'=>6065,'iron'=>1790,'crop'=>2320,'time'=>61998),array('wood'=>7085,'clay'=>6315,'iron'=>1870,'crop'=>2415,'time'=>64595)); +$ab24=array(1=>array('wood'=>1275,'clay'=>1625,'iron'=>905,'crop'=>290,'time'=>9240),array('wood'=>2220,'clay'=>2830,'iron'=>1575,'crop'=>505,'time'=>16088),array('wood'=>3070,'clay'=>3915,'iron'=>2180,'crop'=>700,'time'=>22252),array('wood'=>3865,'clay'=>4925,'iron'=>2745,'crop'=>880,'time'=>28010),array('wood'=>4620,'clay'=>5890,'iron'=>3280,'crop'=>1050,'time'=>33485),array('wood'=>5345,'clay'=>6815,'iron'=>3795,'crop'=>1215,'time'=>38743),array('wood'=>6050,'clay'=>7710,'iron'=>4295,'crop'=>1375,'time'=>43828),array('wood'=>6730,'clay'=>8575,'iron'=>4775,'crop'=>1530,'time'=>48769),array('wood'=>7395,'clay'=>9425,'iron'=>5250,'crop'=>1680,'time'=>53588),array('wood'=>8045,'clay'=>10255,'iron'=>5710,'crop'=>1830,'time'=>58300),array('wood'=>8680,'clay'=>11065,'iron'=>6165,'crop'=>1975,'time'=>62920),array('wood'=>9310,'clay'=>11865,'iron'=>6605,'crop'=>2115,'time'=>67455),array('wood'=>9925,'clay'=>12650,'iron'=>7045,'crop'=>2255,'time'=>71916),array('wood'=>10530,'clay'=>13420,'iron'=>7475,'crop'=>2395,'time'=>76309),array('wood'=>11125,'clay'=>14180,'iron'=>7900,'crop'=>2530,'time'=>80639),array('wood'=>11715,'clay'=>14935,'iron'=>8315,'crop'=>2665,'time'=>84912),array('wood'=>12300,'clay'=>15675,'iron'=>8730,'crop'=>2795,'time'=>89131),array('wood'=>12875,'clay'=>16410,'iron'=>9140,'crop'=>2930,'time'=>93302),array('wood'=>13445,'clay'=>17135,'iron'=>9540,'crop'=>3060,'time'=>97426),array('wood'=>14005,'clay'=>17850,'iron'=>9940,'crop'=>3185,'time'=>101507)); +$ab25=array(1=>array('wood'=>1310,'clay'=>1205,'iron'=>1080,'crop'=>500,'time'=>9480),array('wood'=>2280,'clay'=>2100,'iron'=>1880,'crop'=>870,'time'=>16506),array('wood'=>3155,'clay'=>2900,'iron'=>2600,'crop'=>1205,'time'=>22830),array('wood'=>3970,'clay'=>3655,'iron'=>3275,'crop'=>1515,'time'=>28738),array('wood'=>4745,'clay'=>4365,'iron'=>3915,'crop'=>1810,'time'=>34355),array('wood'=>5495,'clay'=>5055,'iron'=>4530,'crop'=>2095,'time'=>39749),array('wood'=>6215,'clay'=>5715,'iron'=>5125,'crop'=>2370,'time'=>44966),array('wood'=>6915,'clay'=>6360,'iron'=>5700,'crop'=>2640,'time'=>50036),array('wood'=>7595,'clay'=>6990,'iron'=>6265,'crop'=>2900,'time'=>54980),array('wood'=>8265,'clay'=>7605,'iron'=>6815,'crop'=>3155,'time'=>59815),array('wood'=>8920,'clay'=>8205,'iron'=>7355,'crop'=>3405,'time'=>64554),array('wood'=>9565,'clay'=>8795,'iron'=>7885,'crop'=>3650,'time'=>69208),array('wood'=>10195,'clay'=>9380,'iron'=>8405,'crop'=>3890,'time'=>73784),array('wood'=>10820,'clay'=>9950,'iron'=>8920,'crop'=>4130,'time'=>78291),array('wood'=>11435,'clay'=>10515,'iron'=>9425,'crop'=>4365,'time'=>82733),array('wood'=>12040,'clay'=>11075,'iron'=>9925,'crop'=>4595,'time'=>87117),array('wood'=>12635,'clay'=>11625,'iron'=>10420,'crop'=>4825,'time'=>91447),array('wood'=>13230,'clay'=>12170,'iron'=>10905,'crop'=>5050,'time'=>95725),array('wood'=>13815,'clay'=>12705,'iron'=>11385,'crop'=>5270,'time'=>99957),array('wood'=>14390,'clay'=>13240,'iron'=>11865,'crop'=>5495,'time'=>104144)); +$ab26=array(1=>array('wood'=>1200,'clay'=>1480,'iron'=>1640,'crop'=>450,'time'=>11160),array('wood'=>2090,'clay'=>2575,'iron'=>2860,'crop'=>785,'time'=>19431),array('wood'=>2890,'clay'=>3565,'iron'=>3955,'crop'=>1085,'time'=>26876),array('wood'=>3640,'clay'=>4485,'iron'=>4975,'crop'=>1365,'time'=>33831),array('wood'=>4350,'clay'=>5365,'iron'=>5950,'crop'=>1630,'time'=>40443),array('wood'=>5030,'clay'=>6205,'iron'=>6885,'crop'=>1885,'time'=>46793),array('wood'=>5690,'clay'=>7020,'iron'=>7785,'crop'=>2135,'time'=>52935),array('wood'=>6335,'clay'=>7810,'iron'=>8665,'crop'=>2375,'time'=>58903),array('wood'=>6960,'clay'=>8585,'iron'=>9520,'crop'=>2610,'time'=>64723),array('wood'=>7570,'clay'=>9340,'iron'=>10360,'crop'=>2840,'time'=>70415),array('wood'=>8170,'clay'=>10080,'iron'=>11180,'crop'=>3065,'time'=>75994),array('wood'=>8760,'clay'=>10805,'iron'=>11985,'crop'=>3285,'time'=>81472),array('wood'=>9340,'clay'=>11520,'iron'=>12775,'crop'=>3500,'time'=>86860),array('wood'=>9910,'clay'=>12225,'iron'=>13560,'crop'=>3715,'time'=>92165),array('wood'=>10475,'clay'=>12915,'iron'=>14325,'crop'=>3925,'time'=>97395),array('wood'=>11030,'clay'=>13600,'iron'=>15085,'crop'=>4135,'time'=>102556),array('wood'=>11575,'clay'=>14275,'iron'=>15835,'crop'=>4340,'time'=>107652),array('wood'=>12115,'clay'=>14945,'iron'=>16575,'crop'=>4545,'time'=>112689),array('wood'=>12655,'clay'=>15605,'iron'=>17310,'crop'=>4745,'time'=>117670),array('wood'=>13185,'clay'=>16260,'iron'=>18035,'crop'=>4945,'time'=>122599)); +$ab27=array(1=>array('wood'=>2250,'clay'=>1330,'iron'=>835,'crop'=>230,'time'=>16800),array('wood'=>3915,'clay'=>2315,'iron'=>1455,'crop'=>400,'time'=>29250),array('wood'=>5420,'clay'=>3200,'iron'=>2015,'crop'=>550,'time'=>40458),array('wood'=>6820,'clay'=>4025,'iron'=>2535,'crop'=>690,'time'=>50928),array('wood'=>8155,'clay'=>4815,'iron'=>3030,'crop'=>825,'time'=>60881),array('wood'=>9435,'clay'=>5570,'iron'=>3510,'crop'=>955,'time'=>70442),array('wood'=>10670,'clay'=>6300,'iron'=>3970,'crop'=>1085,'time'=>79687),array('wood'=>11875,'clay'=>7010,'iron'=>4415,'crop'=>1205,'time'=>88671),array('wood'=>13050,'clay'=>7705,'iron'=>4850,'crop'=>1325,'time'=>97432),array('wood'=>14195,'clay'=>8380,'iron'=>5280,'crop'=>1440,'time'=>106001),array('wood'=>15320,'clay'=>9045,'iron'=>5695,'crop'=>1555,'time'=>114399),array('wood'=>16425,'clay'=>9695,'iron'=>6110,'crop'=>1665,'time'=>122646),array('wood'=>17510,'clay'=>10340,'iron'=>6510,'crop'=>1775,'time'=>130757),array('wood'=>18580,'clay'=>10970,'iron'=>6910,'crop'=>1885,'time'=>138743),array('wood'=>19635,'clay'=>11595,'iron'=>7300,'crop'=>1995,'time'=>146616),array('wood'=>20675,'clay'=>12205,'iron'=>7690,'crop'=>2100,'time'=>154385),array('wood'=>21705,'clay'=>12815,'iron'=>8070,'crop'=>2205,'time'=>162057),array('wood'=>22720,'clay'=>13415,'iron'=>8450,'crop'=>2305,'time'=>169640),array('wood'=>23725,'clay'=>14005,'iron'=>8820,'crop'=>2410,'time'=>177138),array('wood'=>24720,'clay'=>14595,'iron'=>9190,'crop'=>2510,'time'=>184558)); +$ab28=array(1=>array('wood'=>1135,'clay'=>1710,'iron'=>770,'crop'=>130,'time'=>28800),array('wood'=>1980,'clay'=>2975,'iron'=>1340,'crop'=>230,'time'=>50144),array('wood'=>2735,'clay'=>4115,'iron'=>1850,'crop'=>315,'time'=>69357),array('wood'=>3445,'clay'=>5180,'iron'=>2330,'crop'=>400,'time'=>87305),array('wood'=>4120,'clay'=>6190,'iron'=>2785,'crop'=>475,'time'=>104368),array('wood'=>4765,'clay'=>7165,'iron'=>3220,'crop'=>550,'time'=>120757),array('wood'=>5390,'clay'=>8105,'iron'=>3645,'crop'=>625,'time'=>136606),array('wood'=>6000,'clay'=>9015,'iron'=>4055,'crop'=>695,'time'=>152007),array('wood'=>6590,'clay'=>9910,'iron'=>4455,'crop'=>765,'time'=>167027),array('wood'=>7170,'clay'=>10780,'iron'=>4850,'crop'=>830,'time'=>181716),array('wood'=>7740,'clay'=>11635,'iron'=>5230,'crop'=>895,'time'=>196113),array('wood'=>8300,'clay'=>12470,'iron'=>5610,'crop'=>960,'time'=>210251),array('wood'=>8845,'clay'=>13295,'iron'=>5980,'crop'=>1025,'time'=>224154),array('wood'=>9385,'clay'=>14110,'iron'=>6345,'crop'=>1085,'time'=>237845),array('wood'=>9920,'clay'=>14910,'iron'=>6705,'crop'=>1150,'time'=>251342),array('wood'=>10445,'clay'=>15700,'iron'=>7060,'crop'=>1210,'time'=>264660),array('wood'=>10965,'clay'=>16480,'iron'=>7410,'crop'=>1270,'time'=>277812),array('wood'=>11480,'clay'=>17250,'iron'=>7760,'crop'=>1330,'time'=>290811),array('wood'=>11985,'clay'=>18015,'iron'=>8100,'crop'=>1390,'time'=>303665),array('wood'=>12485,'clay'=>18765,'iron'=>8440,'crop'=>1445,'time'=>316385)); +$ab31=array(1=>array('wood'=>765,'clay'=>625,'iron'=>480,'crop'=>440,'time'=>3960),array('wood'=>1330,'clay'=>1090,'iron'=>835,'crop'=>765,'time'=>6895),array('wood'=>1840,'clay'=>1505,'iron'=>1155,'crop'=>1060,'time'=>9537),array('wood'=>2320,'clay'=>1895,'iron'=>1455,'crop'=>1335,'time'=>12004),array('wood'=>2770,'clay'=>2265,'iron'=>1740,'crop'=>1595,'time'=>14351),array('wood'=>3210,'clay'=>2620,'iron'=>2015,'crop'=>1845,'time'=>16604),array('wood'=>3630,'clay'=>2965,'iron'=>2275,'crop'=>2085,'time'=>18783),array('wood'=>4040,'clay'=>3300,'iron'=>2535,'crop'=>2320,'time'=>20901),array('wood'=>4435,'clay'=>3625,'iron'=>2785,'crop'=>2550,'time'=>22966),array('wood'=>4825,'clay'=>3945,'iron'=>3030,'crop'=>2775,'time'=>24986),array('wood'=>5210,'clay'=>4255,'iron'=>3270,'crop'=>2995,'time'=>26966),array('wood'=>5585,'clay'=>4565,'iron'=>3505,'crop'=>3210,'time'=>28909),array('wood'=>5955,'clay'=>4865,'iron'=>3735,'crop'=>3425,'time'=>30821),array('wood'=>6320,'clay'=>5160,'iron'=>3965,'crop'=>3635,'time'=>32704),array('wood'=>6675,'clay'=>5455,'iron'=>4190,'crop'=>3840,'time'=>34560),array('wood'=>7030,'clay'=>5745,'iron'=>4410,'crop'=>4045,'time'=>36391),array('wood'=>7380,'clay'=>6030,'iron'=>4630,'crop'=>4245,'time'=>38199),array('wood'=>7725,'clay'=>6310,'iron'=>4845,'crop'=>4445,'time'=>39986),array('wood'=>8065,'clay'=>6590,'iron'=>5060,'crop'=>4640,'time'=>41754),array('wood'=>8405,'clay'=>6865,'iron'=>5275,'crop'=>4835,'time'=>43503)); +$ab32=array(1=>array('wood'=>1115,'clay'=>590,'iron'=>795,'crop'=>440,'time'=>5160),array('wood'=>1940,'clay'=>1025,'iron'=>1385,'crop'=>765,'time'=>8984),array('wood'=>2685,'clay'=>1420,'iron'=>1915,'crop'=>1060,'time'=>12426),array('wood'=>3380,'clay'=>1790,'iron'=>2410,'crop'=>1335,'time'=>15642),array('wood'=>4040,'clay'=>2140,'iron'=>2880,'crop'=>1595,'time'=>18699),array('wood'=>4675,'clay'=>2475,'iron'=>3335,'crop'=>1845,'time'=>21636),array('wood'=>5290,'clay'=>2800,'iron'=>3770,'crop'=>2085,'time'=>24475),array('wood'=>5885,'clay'=>3115,'iron'=>4195,'crop'=>2320,'time'=>27235),array('wood'=>6465,'clay'=>3420,'iron'=>4610,'crop'=>2550,'time'=>29926),array('wood'=>7035,'clay'=>3725,'iron'=>5015,'crop'=>2775,'time'=>32557),array('wood'=>7595,'clay'=>4020,'iron'=>5415,'crop'=>2995,'time'=>35137),array('wood'=>8140,'clay'=>4305,'iron'=>5805,'crop'=>3210,'time'=>37670),array('wood'=>8680,'clay'=>4590,'iron'=>6190,'crop'=>3425,'time'=>40161),array('wood'=>9210,'clay'=>4875,'iron'=>6565,'crop'=>3635,'time'=>42614),array('wood'=>9730,'clay'=>5150,'iron'=>6940,'crop'=>3840,'time'=>45032),array('wood'=>10245,'clay'=>5420,'iron'=>7305,'crop'=>4045,'time'=>47418),array('wood'=>10755,'clay'=>5690,'iron'=>7670,'crop'=>4245,'time'=>49775),array('wood'=>11260,'clay'=>5960,'iron'=>8030,'crop'=>4445,'time'=>52104),array('wood'=>11755,'clay'=>6220,'iron'=>8380,'crop'=>4640,'time'=>54407),array('wood'=>12250,'clay'=>6480,'iron'=>8735,'crop'=>4835,'time'=>56686)); +$ab33=array(1=>array('wood'=>1010,'clay'=>940,'iron'=>1390,'crop'=>650,'time'=>5400),array('wood'=>1760,'clay'=>1635,'iron'=>2420,'crop'=>1130,'time'=>9402),array('wood'=>2430,'clay'=>2265,'iron'=>3345,'crop'=>1565,'time'=>13004),array('wood'=>3060,'clay'=>2850,'iron'=>4215,'crop'=>1970,'time'=>16370),array('wood'=>3660,'clay'=>3405,'iron'=>5035,'crop'=>2355,'time'=>19569),array('wood'=>4235,'clay'=>3940,'iron'=>5830,'crop'=>2725,'time'=>22642),array('wood'=>4790,'clay'=>4460,'iron'=>6595,'crop'=>3085,'time'=>25614),array('wood'=>5330,'clay'=>4960,'iron'=>7335,'crop'=>3430,'time'=>28501),array('wood'=>5860,'clay'=>5450,'iron'=>8060,'crop'=>3770,'time'=>31318),array('wood'=>6375,'clay'=>5930,'iron'=>8770,'crop'=>4100,'time'=>34072),array('wood'=>6880,'clay'=>6400,'iron'=>9465,'crop'=>4425,'time'=>36771),array('wood'=>7375,'clay'=>6860,'iron'=>10150,'crop'=>4745,'time'=>39422),array('wood'=>7860,'clay'=>7315,'iron'=>10820,'crop'=>5060,'time'=>42029),array('wood'=>8340,'clay'=>7765,'iron'=>11480,'crop'=>5370,'time'=>44596),array('wood'=>8815,'clay'=>8205,'iron'=>12130,'crop'=>5675,'time'=>47127),array('wood'=>9280,'clay'=>8640,'iron'=>12775,'crop'=>5975,'time'=>49624),array('wood'=>9745,'clay'=>9065,'iron'=>13410,'crop'=>6270,'time'=>52090),array('wood'=>10200,'clay'=>9490,'iron'=>14035,'crop'=>6565,'time'=>54527),array('wood'=>10650,'clay'=>9910,'iron'=>14655,'crop'=>6855,'time'=>56937),array('wood'=>11095,'clay'=>10325,'iron'=>15270,'crop'=>7140,'time'=>59322)); +$ab34=array(1=>array('wood'=>1220,'clay'=>800,'iron'=>550,'crop'=>510,'time'=>5160),array('wood'=>2125,'clay'=>1395,'iron'=>960,'crop'=>890,'time'=>8984),array('wood'=>2940,'clay'=>1925,'iron'=>1325,'crop'=>1230,'time'=>12426),array('wood'=>3700,'clay'=>2425,'iron'=>1665,'crop'=>1545,'time'=>15642),array('wood'=>4420,'clay'=>2900,'iron'=>1995,'crop'=>1850,'time'=>18699),array('wood'=>5115,'clay'=>3355,'iron'=>2305,'crop'=>2140,'time'=>21636),array('wood'=>5785,'clay'=>3795,'iron'=>2610,'crop'=>2420,'time'=>24475),array('wood'=>6440,'clay'=>4220,'iron'=>2905,'crop'=>2690,'time'=>27235),array('wood'=>7075,'clay'=>4640,'iron'=>3190,'crop'=>2960,'time'=>29926),array('wood'=>7700,'clay'=>5050,'iron'=>3470,'crop'=>3220,'time'=>32557),array('wood'=>8310,'clay'=>5450,'iron'=>3745,'crop'=>3475,'time'=>35137),array('wood'=>8905,'clay'=>5840,'iron'=>4015,'crop'=>3725,'time'=>37670),array('wood'=>9495,'clay'=>6225,'iron'=>4280,'crop'=>3970,'time'=>40161),array('wood'=>10075,'clay'=>6605,'iron'=>4540,'crop'=>4210,'time'=>42614),array('wood'=>10645,'clay'=>6980,'iron'=>4800,'crop'=>4450,'time'=>45032),array('wood'=>11210,'clay'=>7350,'iron'=>5055,'crop'=>4685,'time'=>47418),array('wood'=>11770,'clay'=>7715,'iron'=>5305,'crop'=>4920,'time'=>49775),array('wood'=>12320,'clay'=>8080,'iron'=>5555,'crop'=>5150,'time'=>52104),array('wood'=>12865,'clay'=>8435,'iron'=>5800,'crop'=>5375,'time'=>54407),array('wood'=>13400,'clay'=>8790,'iron'=>6040,'crop'=>5605,'time'=>56686)); +$ab35=array(1=>array('wood'=>1345,'clay'=>995,'iron'=>1115,'crop'=>345,'time'=>9000),array('wood'=>2340,'clay'=>1730,'iron'=>1940,'crop'=>595,'time'=>15670),array('wood'=>3240,'clay'=>2395,'iron'=>2685,'crop'=>825,'time'=>21674),array('wood'=>4075,'clay'=>3015,'iron'=>3380,'crop'=>1040,'time'=>27283),array('wood'=>4875,'clay'=>3605,'iron'=>4040,'crop'=>1240,'time'=>32615),array('wood'=>5640,'clay'=>4170,'iron'=>4675,'crop'=>1435,'time'=>37737),array('wood'=>6380,'clay'=>4720,'iron'=>5290,'crop'=>1625,'time'=>42689),array('wood'=>7100,'clay'=>5250,'iron'=>5885,'crop'=>1810,'time'=>47502),array('wood'=>7800,'clay'=>5770,'iron'=>6465,'crop'=>1985,'time'=>52196),array('wood'=>8485,'clay'=>6280,'iron'=>7035,'crop'=>2160,'time'=>56786),array('wood'=>9160,'clay'=>6775,'iron'=>7595,'crop'=>2330,'time'=>61285),array('wood'=>9820,'clay'=>7265,'iron'=>8140,'crop'=>2500,'time'=>65703),array('wood'=>10470,'clay'=>7745,'iron'=>8680,'crop'=>2665,'time'=>70048),array('wood'=>11110,'clay'=>8215,'iron'=>9210,'crop'=>2830,'time'=>74327),array('wood'=>11740,'clay'=>8685,'iron'=>9730,'crop'=>2990,'time'=>78544),array('wood'=>12360,'clay'=>9145,'iron'=>10245,'crop'=>3145,'time'=>82706),array('wood'=>12975,'clay'=>9600,'iron'=>10755,'crop'=>3305,'time'=>86816),array('wood'=>13580,'clay'=>10045,'iron'=>11260,'crop'=>3460,'time'=>90878),array('wood'=>14180,'clay'=>10490,'iron'=>11755,'crop'=>3610,'time'=>94895),array('wood'=>14775,'clay'=>10930,'iron'=>12250,'crop'=>3765,'time'=>98870)); +$ab36=array(1=>array('wood'=>1085,'clay'=>1235,'iron'=>1185,'crop'=>240,'time'=>10680),array('wood'=>1885,'clay'=>2150,'iron'=>2065,'crop'=>420,'time'=>18595),array('wood'=>2610,'clay'=>2975,'iron'=>2860,'crop'=>580,'time'=>25720),array('wood'=>3285,'clay'=>3745,'iron'=>3595,'crop'=>730,'time'=>32376),array('wood'=>3925,'clay'=>4475,'iron'=>4300,'crop'=>870,'time'=>38703),array('wood'=>4540,'clay'=>5180,'iron'=>4975,'crop'=>1005,'time'=>44781),array('wood'=>5140,'clay'=>5860,'iron'=>5630,'crop'=>1140,'time'=>50658),array('wood'=>5720,'clay'=>6520,'iron'=>6265,'crop'=>1265,'time'=>56369),array('wood'=>6285,'clay'=>7160,'iron'=>6880,'crop'=>1390,'time'=>61939),array('wood'=>6835,'clay'=>7790,'iron'=>7485,'crop'=>1515,'time'=>67386),array('wood'=>7375,'clay'=>8410,'iron'=>8080,'crop'=>1635,'time'=>72725),array('wood'=>7910,'clay'=>9015,'iron'=>8665,'crop'=>1750,'time'=>77968),array('wood'=>8430,'clay'=>9610,'iron'=>9235,'crop'=>1870,'time'=>83124),array('wood'=>8945,'clay'=>10200,'iron'=>9800,'crop'=>1980,'time'=>88201),array('wood'=>9455,'clay'=>10780,'iron'=>10355,'crop'=>2095,'time'=>93206),array('wood'=>9955,'clay'=>11350,'iron'=>10905,'crop'=>2205,'time'=>98145),array('wood'=>10450,'clay'=>11915,'iron'=>11445,'crop'=>2315,'time'=>103022),array('wood'=>10940,'clay'=>12470,'iron'=>11980,'crop'=>2425,'time'=>107842),array('wood'=>11425,'clay'=>13020,'iron'=>12510,'crop'=>2530,'time'=>112609),array('wood'=>11900,'clay'=>13565,'iron'=>13035,'crop'=>2635,'time'=>117326)); +$ab37=array(1=>array('wood'=>2365,'clay'=>735,'iron'=>885,'crop'=>215,'time'=>14400),array('wood'=>4120,'clay'=>1275,'iron'=>1540,'crop'=>375,'time'=>25072),array('wood'=>5700,'clay'=>1765,'iron'=>2125,'crop'=>520,'time'=>34678),array('wood'=>7175,'clay'=>2225,'iron'=>2680,'crop'=>655,'time'=>43653),array('wood'=>8575,'clay'=>2660,'iron'=>3200,'crop'=>785,'time'=>52184),array('wood'=>9925,'clay'=>3075,'iron'=>3705,'crop'=>910,'time'=>60379),array('wood'=>11225,'clay'=>3480,'iron'=>4190,'crop'=>1030,'time'=>68303),array('wood'=>12490,'clay'=>3870,'iron'=>4660,'crop'=>1145,'time'=>76004),array('wood'=>13725,'clay'=>4255,'iron'=>5125,'crop'=>1255,'time'=>83513),array('wood'=>14935,'clay'=>4625,'iron'=>5575,'crop'=>1365,'time'=>90858),array('wood'=>16115,'clay'=>4995,'iron'=>6015,'crop'=>1475,'time'=>98057),array('wood'=>17280,'clay'=>5355,'iron'=>6450,'crop'=>1580,'time'=>105125),array('wood'=>18420,'clay'=>5710,'iron'=>6875,'crop'=>1685,'time'=>112077),array('wood'=>19545,'clay'=>6055,'iron'=>7295,'crop'=>1790,'time'=>118923),array('wood'=>20655,'clay'=>6400,'iron'=>7710,'crop'=>1890,'time'=>125671),array('wood'=>21750,'clay'=>6740,'iron'=>8115,'crop'=>1990,'time'=>132330),array('wood'=>22830,'clay'=>7075,'iron'=>8520,'crop'=>2090,'time'=>138906),array('wood'=>23900,'clay'=>7405,'iron'=>8920,'crop'=>2190,'time'=>145405),array('wood'=>24955,'clay'=>7730,'iron'=>9315,'crop'=>2285,'time'=>151833),array('wood'=>26000,'clay'=>8055,'iron'=>9705,'crop'=>2380,'time'=>158193)); +$ab38=array(1=>array('wood'=>1065,'clay'=>1415,'iron'=>735,'crop'=>95,'time'=>28800),array('wood'=>1855,'clay'=>2465,'iron'=>1275,'crop'=>170,'time'=>50144),array('wood'=>2570,'clay'=>3410,'iron'=>1765,'crop'=>235,'time'=>69357),array('wood'=>3235,'clay'=>4295,'iron'=>2225,'crop'=>295,'time'=>87305),array('wood'=>3865,'clay'=>5135,'iron'=>2660,'crop'=>350,'time'=>104368),array('wood'=>4470,'clay'=>5940,'iron'=>3075,'crop'=>405,'time'=>120757),array('wood'=>5060,'clay'=>6720,'iron'=>3480,'crop'=>460,'time'=>136606),array('wood'=>5630,'clay'=>7475,'iron'=>3870,'crop'=>510,'time'=>152007),array('wood'=>6185,'clay'=>8215,'iron'=>4255,'crop'=>560,'time'=>167027),array('wood'=>6730,'clay'=>8940,'iron'=>4625,'crop'=>610,'time'=>181716),array('wood'=>7265,'clay'=>9645,'iron'=>4995,'crop'=>660,'time'=>196113),array('wood'=>7785,'clay'=>10340,'iron'=>5355,'crop'=>705,'time'=>210251),array('wood'=>8300,'clay'=>11025,'iron'=>5710,'crop'=>750,'time'=>224154),array('wood'=>8810,'clay'=>11700,'iron'=>6055,'crop'=>800,'time'=>237845),array('wood'=>9310,'clay'=>12365,'iron'=>6400,'crop'=>845,'time'=>251342),array('wood'=>9800,'clay'=>13020,'iron'=>6740,'crop'=>890,'time'=>264660),array('wood'=>10290,'clay'=>13665,'iron'=>7075,'crop'=>930,'time'=>277812),array('wood'=>10770,'clay'=>14305,'iron'=>7405,'crop'=>975,'time'=>290811),array('wood'=>11245,'clay'=>14935,'iron'=>7730,'crop'=>1020,'time'=>303665),array('wood'=>11720,'clay'=>15565,'iron'=>8055,'crop'=>1060,'time'=>316385)); +$ab41=array(1=>array('wood'=>765,'clay'=>625,'iron'=>480,'crop'=>440,'time'=>3960),array('wood'=>1330,'clay'=>1090,'iron'=>835,'crop'=>765,'time'=>6895),array('wood'=>1840,'clay'=>1505,'iron'=>1155,'crop'=>1060,'time'=>9537),array('wood'=>2320,'clay'=>1895,'iron'=>1455,'crop'=>1335,'time'=>12004),array('wood'=>2770,'clay'=>2265,'iron'=>1740,'crop'=>1595,'time'=>14351),array('wood'=>3210,'clay'=>2620,'iron'=>2015,'crop'=>1845,'time'=>16604),array('wood'=>3630,'clay'=>2965,'iron'=>2275,'crop'=>2085,'time'=>18783),array('wood'=>4040,'clay'=>3300,'iron'=>2535,'crop'=>2320,'time'=>20901),array('wood'=>4435,'clay'=>3625,'iron'=>2785,'crop'=>2550,'time'=>22966),array('wood'=>4825,'clay'=>3945,'iron'=>3030,'crop'=>2775,'time'=>24986),array('wood'=>5210,'clay'=>4255,'iron'=>3270,'crop'=>2995,'time'=>26966),array('wood'=>5585,'clay'=>4565,'iron'=>3505,'crop'=>3210,'time'=>28909),array('wood'=>5955,'clay'=>4865,'iron'=>3735,'crop'=>3425,'time'=>30821),array('wood'=>6320,'clay'=>5160,'iron'=>3965,'crop'=>3635,'time'=>32704),array('wood'=>6675,'clay'=>5455,'iron'=>4190,'crop'=>3840,'time'=>34560),array('wood'=>7030,'clay'=>5745,'iron'=>4410,'crop'=>4045,'time'=>36391),array('wood'=>7380,'clay'=>6030,'iron'=>4630,'crop'=>4245,'time'=>38199),array('wood'=>7725,'clay'=>6310,'iron'=>4845,'crop'=>4445,'time'=>39986),array('wood'=>8065,'clay'=>6590,'iron'=>5060,'crop'=>4640,'time'=>41754),array('wood'=>8405,'clay'=>6865,'iron'=>5275,'crop'=>4835,'time'=>43503)); +$ab42=array(1=>array('wood'=>1115,'clay'=>590,'iron'=>795,'crop'=>440,'time'=>5160),array('wood'=>1940,'clay'=>1025,'iron'=>1385,'crop'=>765,'time'=>8984),array('wood'=>2685,'clay'=>1420,'iron'=>1915,'crop'=>1060,'time'=>12426),array('wood'=>3380,'clay'=>1790,'iron'=>2410,'crop'=>1335,'time'=>15642),array('wood'=>4040,'clay'=>2140,'iron'=>2880,'crop'=>1595,'time'=>18699),array('wood'=>4675,'clay'=>2475,'iron'=>3335,'crop'=>1845,'time'=>21636),array('wood'=>5290,'clay'=>2800,'iron'=>3770,'crop'=>2085,'time'=>24475),array('wood'=>5885,'clay'=>3115,'iron'=>4195,'crop'=>2320,'time'=>27235),array('wood'=>6465,'clay'=>3420,'iron'=>4610,'crop'=>2550,'time'=>29926),array('wood'=>7035,'clay'=>3725,'iron'=>5015,'crop'=>2775,'time'=>32557),array('wood'=>7595,'clay'=>4020,'iron'=>5415,'crop'=>2995,'time'=>35137),array('wood'=>8140,'clay'=>4305,'iron'=>5805,'crop'=>3210,'time'=>37670),array('wood'=>8680,'clay'=>4590,'iron'=>6190,'crop'=>3425,'time'=>40161),array('wood'=>9210,'clay'=>4875,'iron'=>6565,'crop'=>3635,'time'=>42614),array('wood'=>9730,'clay'=>5150,'iron'=>6940,'crop'=>3840,'time'=>45032),array('wood'=>10245,'clay'=>5420,'iron'=>7305,'crop'=>4045,'time'=>47418),array('wood'=>10755,'clay'=>5690,'iron'=>7670,'crop'=>4245,'time'=>49775),array('wood'=>11260,'clay'=>5960,'iron'=>8030,'crop'=>4445,'time'=>52104),array('wood'=>11755,'clay'=>6220,'iron'=>8380,'crop'=>4640,'time'=>54407),array('wood'=>12250,'clay'=>6480,'iron'=>8735,'crop'=>4835,'time'=>56686)); +$ab43=array(1=>array('wood'=>1010,'clay'=>940,'iron'=>1390,'crop'=>650,'time'=>5400),array('wood'=>1760,'clay'=>1635,'iron'=>2420,'crop'=>1130,'time'=>9402),array('wood'=>2430,'clay'=>2265,'iron'=>3345,'crop'=>1565,'time'=>13004),array('wood'=>3060,'clay'=>2850,'iron'=>4215,'crop'=>1970,'time'=>16370),array('wood'=>3660,'clay'=>3405,'iron'=>5035,'crop'=>2355,'time'=>19569),array('wood'=>4235,'clay'=>3940,'iron'=>5830,'crop'=>2725,'time'=>22642),array('wood'=>4790,'clay'=>4460,'iron'=>6595,'crop'=>3085,'time'=>25614),array('wood'=>5330,'clay'=>4960,'iron'=>7335,'crop'=>3430,'time'=>28501),array('wood'=>5860,'clay'=>5450,'iron'=>8060,'crop'=>3770,'time'=>31318),array('wood'=>6375,'clay'=>5930,'iron'=>8770,'crop'=>4100,'time'=>34072),array('wood'=>6880,'clay'=>6400,'iron'=>9465,'crop'=>4425,'time'=>36771),array('wood'=>7375,'clay'=>6860,'iron'=>10150,'crop'=>4745,'time'=>39422),array('wood'=>7860,'clay'=>7315,'iron'=>10820,'crop'=>5060,'time'=>42029),array('wood'=>8340,'clay'=>7765,'iron'=>11480,'crop'=>5370,'time'=>44596),array('wood'=>8815,'clay'=>8205,'iron'=>12130,'crop'=>5675,'time'=>47127),array('wood'=>9280,'clay'=>8640,'iron'=>12775,'crop'=>5975,'time'=>49624),array('wood'=>9745,'clay'=>9065,'iron'=>13410,'crop'=>6270,'time'=>52090),array('wood'=>10200,'clay'=>9490,'iron'=>14035,'crop'=>6565,'time'=>54527),array('wood'=>10650,'clay'=>9910,'iron'=>14655,'crop'=>6855,'time'=>56937),array('wood'=>11095,'clay'=>10325,'iron'=>15270,'crop'=>7140,'time'=>59322)); +$ab44=array(1=>array('wood'=>1220,'clay'=>800,'iron'=>550,'crop'=>510,'time'=>5160),array('wood'=>2125,'clay'=>1395,'iron'=>960,'crop'=>890,'time'=>8984),array('wood'=>2940,'clay'=>1925,'iron'=>1325,'crop'=>1230,'time'=>12426),array('wood'=>3700,'clay'=>2425,'iron'=>1665,'crop'=>1545,'time'=>15642),array('wood'=>4420,'clay'=>2900,'iron'=>1995,'crop'=>1850,'time'=>18699),array('wood'=>5115,'clay'=>3355,'iron'=>2305,'crop'=>2140,'time'=>21636),array('wood'=>5785,'clay'=>3795,'iron'=>2610,'crop'=>2420,'time'=>24475),array('wood'=>6440,'clay'=>4220,'iron'=>2905,'crop'=>2690,'time'=>27235),array('wood'=>7075,'clay'=>4640,'iron'=>3190,'crop'=>2960,'time'=>29926),array('wood'=>7700,'clay'=>5050,'iron'=>3470,'crop'=>3220,'time'=>32557),array('wood'=>8310,'clay'=>5450,'iron'=>3745,'crop'=>3475,'time'=>35137),array('wood'=>8905,'clay'=>5840,'iron'=>4015,'crop'=>3725,'time'=>37670),array('wood'=>9495,'clay'=>6225,'iron'=>4280,'crop'=>3970,'time'=>40161),array('wood'=>10075,'clay'=>6605,'iron'=>4540,'crop'=>4210,'time'=>42614),array('wood'=>10645,'clay'=>6980,'iron'=>4800,'crop'=>4450,'time'=>45032),array('wood'=>11210,'clay'=>7350,'iron'=>5055,'crop'=>4685,'time'=>47418),array('wood'=>11770,'clay'=>7715,'iron'=>5305,'crop'=>4920,'time'=>49775),array('wood'=>12320,'clay'=>8080,'iron'=>5555,'crop'=>5150,'time'=>52104),array('wood'=>12865,'clay'=>8435,'iron'=>5800,'crop'=>5375,'time'=>54407),array('wood'=>13400,'clay'=>8790,'iron'=>6040,'crop'=>5605,'time'=>56686)); +$ab45=array(1=>array('wood'=>1345,'clay'=>995,'iron'=>1115,'crop'=>345,'time'=>9000),array('wood'=>2340,'clay'=>1730,'iron'=>1940,'crop'=>595,'time'=>15670),array('wood'=>3240,'clay'=>2395,'iron'=>2685,'crop'=>825,'time'=>21674),array('wood'=>4075,'clay'=>3015,'iron'=>3380,'crop'=>1040,'time'=>27283),array('wood'=>4875,'clay'=>3605,'iron'=>4040,'crop'=>1240,'time'=>32615),array('wood'=>5640,'clay'=>4170,'iron'=>4675,'crop'=>1435,'time'=>37737),array('wood'=>6380,'clay'=>4720,'iron'=>5290,'crop'=>1625,'time'=>42689),array('wood'=>7100,'clay'=>5250,'iron'=>5885,'crop'=>1810,'time'=>47502),array('wood'=>7800,'clay'=>5770,'iron'=>6465,'crop'=>1985,'time'=>52196),array('wood'=>8485,'clay'=>6280,'iron'=>7035,'crop'=>2160,'time'=>56786),array('wood'=>9160,'clay'=>6775,'iron'=>7595,'crop'=>2330,'time'=>61285),array('wood'=>9820,'clay'=>7265,'iron'=>8140,'crop'=>2500,'time'=>65703),array('wood'=>10470,'clay'=>7745,'iron'=>8680,'crop'=>2665,'time'=>70048),array('wood'=>11110,'clay'=>8215,'iron'=>9210,'crop'=>2830,'time'=>74327),array('wood'=>11740,'clay'=>8685,'iron'=>9730,'crop'=>2990,'time'=>78544),array('wood'=>12360,'clay'=>9145,'iron'=>10245,'crop'=>3145,'time'=>82706),array('wood'=>12975,'clay'=>9600,'iron'=>10755,'crop'=>3305,'time'=>86816),array('wood'=>13580,'clay'=>10045,'iron'=>11260,'crop'=>3460,'time'=>90878),array('wood'=>14180,'clay'=>10490,'iron'=>11755,'crop'=>3610,'time'=>94895),array('wood'=>14775,'clay'=>10930,'iron'=>12250,'crop'=>3765,'time'=>98870)); +$ab46=array(1=>array('wood'=>1085,'clay'=>1235,'iron'=>1185,'crop'=>240,'time'=>10680),array('wood'=>1885,'clay'=>2150,'iron'=>2065,'crop'=>420,'time'=>18595),array('wood'=>2610,'clay'=>2975,'iron'=>2860,'crop'=>580,'time'=>25720),array('wood'=>3285,'clay'=>3745,'iron'=>3595,'crop'=>730,'time'=>32376),array('wood'=>3925,'clay'=>4475,'iron'=>4300,'crop'=>870,'time'=>38703),array('wood'=>4540,'clay'=>5180,'iron'=>4975,'crop'=>1005,'time'=>44781),array('wood'=>5140,'clay'=>5860,'iron'=>5630,'crop'=>1140,'time'=>50658),array('wood'=>5720,'clay'=>6520,'iron'=>6265,'crop'=>1265,'time'=>56369),array('wood'=>6285,'clay'=>7160,'iron'=>6880,'crop'=>1390,'time'=>61939),array('wood'=>6835,'clay'=>7790,'iron'=>7485,'crop'=>1515,'time'=>67386),array('wood'=>7375,'clay'=>8410,'iron'=>8080,'crop'=>1635,'time'=>72725),array('wood'=>7910,'clay'=>9015,'iron'=>8665,'crop'=>1750,'time'=>77968),array('wood'=>8430,'clay'=>9610,'iron'=>9235,'crop'=>1870,'time'=>83124),array('wood'=>8945,'clay'=>10200,'iron'=>9800,'crop'=>1980,'time'=>88201),array('wood'=>9455,'clay'=>10780,'iron'=>10355,'crop'=>2095,'time'=>93206),array('wood'=>9955,'clay'=>11350,'iron'=>10905,'crop'=>2205,'time'=>98145),array('wood'=>10450,'clay'=>11915,'iron'=>11445,'crop'=>2315,'time'=>103022),array('wood'=>10940,'clay'=>12470,'iron'=>11980,'crop'=>2425,'time'=>107842),array('wood'=>11425,'clay'=>13020,'iron'=>12510,'crop'=>2530,'time'=>112609),array('wood'=>11900,'clay'=>13565,'iron'=>13035,'crop'=>2635,'time'=>117326)); +$ab47=array(1=>array('wood'=>2365,'clay'=>735,'iron'=>885,'crop'=>215,'time'=>14400),array('wood'=>4120,'clay'=>1275,'iron'=>1540,'crop'=>375,'time'=>25072),array('wood'=>5700,'clay'=>1765,'iron'=>2125,'crop'=>520,'time'=>34678),array('wood'=>7175,'clay'=>2225,'iron'=>2680,'crop'=>655,'time'=>43653),array('wood'=>8575,'clay'=>2660,'iron'=>3200,'crop'=>785,'time'=>52184),array('wood'=>9925,'clay'=>3075,'iron'=>3705,'crop'=>910,'time'=>60379),array('wood'=>11225,'clay'=>3480,'iron'=>4190,'crop'=>1030,'time'=>68303),array('wood'=>12490,'clay'=>3870,'iron'=>4660,'crop'=>1145,'time'=>76004),array('wood'=>13725,'clay'=>4255,'iron'=>5125,'crop'=>1255,'time'=>83513),array('wood'=>14935,'clay'=>4625,'iron'=>5575,'crop'=>1365,'time'=>90858),array('wood'=>16115,'clay'=>4995,'iron'=>6015,'crop'=>1475,'time'=>98057),array('wood'=>17280,'clay'=>5355,'iron'=>6450,'crop'=>1580,'time'=>105125),array('wood'=>18420,'clay'=>5710,'iron'=>6875,'crop'=>1685,'time'=>112077),array('wood'=>19545,'clay'=>6055,'iron'=>7295,'crop'=>1790,'time'=>118923),array('wood'=>20655,'clay'=>6400,'iron'=>7710,'crop'=>1890,'time'=>125671),array('wood'=>21750,'clay'=>6740,'iron'=>8115,'crop'=>1990,'time'=>132330),array('wood'=>22830,'clay'=>7075,'iron'=>8520,'crop'=>2090,'time'=>138906),array('wood'=>23900,'clay'=>7405,'iron'=>8920,'crop'=>2190,'time'=>145405),array('wood'=>24955,'clay'=>7730,'iron'=>9315,'crop'=>2285,'time'=>151833),array('wood'=>26000,'clay'=>8055,'iron'=>9705,'crop'=>2380,'time'=>158193)); +$ab48=array(1=>array('wood'=>1065,'clay'=>1415,'iron'=>735,'crop'=>95,'time'=>28800),array('wood'=>1855,'clay'=>2465,'iron'=>1275,'crop'=>170,'time'=>50144),array('wood'=>2570,'clay'=>3410,'iron'=>1765,'crop'=>235,'time'=>69357),array('wood'=>3235,'clay'=>4295,'iron'=>2225,'crop'=>295,'time'=>87305),array('wood'=>3865,'clay'=>5135,'iron'=>2660,'crop'=>350,'time'=>104368),array('wood'=>4470,'clay'=>5940,'iron'=>3075,'crop'=>405,'time'=>120757),array('wood'=>5060,'clay'=>6720,'iron'=>3480,'crop'=>460,'time'=>136606),array('wood'=>5630,'clay'=>7475,'iron'=>3870,'crop'=>510,'time'=>152007),array('wood'=>6185,'clay'=>8215,'iron'=>4255,'crop'=>560,'time'=>167027),array('wood'=>6730,'clay'=>8940,'iron'=>4625,'crop'=>610,'time'=>181716),array('wood'=>7265,'clay'=>9645,'iron'=>4995,'crop'=>660,'time'=>196113),array('wood'=>7785,'clay'=>10340,'iron'=>5355,'crop'=>705,'time'=>210251),array('wood'=>8300,'clay'=>11025,'iron'=>5710,'crop'=>750,'time'=>224154),array('wood'=>8810,'clay'=>11700,'iron'=>6055,'crop'=>800,'time'=>237845),array('wood'=>9310,'clay'=>12365,'iron'=>6400,'crop'=>845,'time'=>251342),array('wood'=>9800,'clay'=>13020,'iron'=>6740,'crop'=>890,'time'=>264660),array('wood'=>10290,'clay'=>13665,'iron'=>7075,'crop'=>930,'time'=>277812),array('wood'=>10770,'clay'=>14305,'iron'=>7405,'crop'=>975,'time'=>290811),array('wood'=>11245,'clay'=>14935,'iron'=>7730,'crop'=>1020,'time'=>303665),array('wood'=>11720,'clay'=>15565,'iron'=>8055,'crop'=>1060,'time'=>316385)); + +?> diff --git a/GameEngine/Data/unitdata.php b/GameEngine/Data/unitdata.php new file mode 100644 index 00000000..986313b7 --- /dev/null +++ b/GameEngine/Data/unitdata.php @@ -0,0 +1,91 @@ +array(1,2,3,11,12,13,14,21,22,31,32,33,34,41,42,43,44),'cavalry'=>array(4,5,6,15,16,23,24,25,26,35,36,45,46),'siege'=>array(7,8,17,18,27,28,37,38,47,48),'ram'=>array(7,17,27,47),'catapult'=>array(8,18,28,48),'expansion'=>array(9,10,19,20,29,30,39,40,49,50),'scout'=>array(4,14,23,44),'chief'=>array(9,19,29,49)); + +$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); +$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); +$u10=array('atk'=>0,'di'=>80,'dc'=>80,'wood'=>5800,'clay'=>5300,'iron'=>7200,'crop'=>5500,'pop'=>1,'speed'=>5,'time'=>26900,'cap'=>3000); +$u11=array('atk'=>40,'di'=>20,'dc'=>5,'wood'=>95,'clay'=>75,'iron'=>40,'crop'=>40,'pop'=>1,'speed'=>7,'time'=>720,'cap'=>60); +$u12=array('atk'=>10,'di'=>35,'dc'=>60,'wood'=>145,'clay'=>70,'iron'=>85,'crop'=>40,'pop'=>1,'speed'=>7,'time'=>1120,'cap'=>40); +$u13=array('atk'=>60,'di'=>30,'dc'=>30,'wood'=>130,'clay'=>120,'iron'=>170,'crop'=>70,'pop'=>1,'speed'=>6,'time'=>1200,'cap'=>50); +$u14=array('atk'=>0,'di'=>10,'dc'=>5,'wood'=>160,'clay'=>100,'iron'=>50,'crop'=>50,'pop'=>1,'speed'=>9,'time'=>1120,'cap'=>0); +$u15=array('atk'=>55,'di'=>100,'dc'=>40,'wood'=>370,'clay'=>270,'iron'=>290,'crop'=>75,'pop'=>2,'speed'=>10,'time'=>2400,'cap'=>110); +$u16=array('atk'=>150,'di'=>50,'dc'=>75,'wood'=>450,'clay'=>515,'iron'=>480,'crop'=>80,'pop'=>3,'speed'=>9,'time'=>2960,'cap'=>80); +$u17=array('atk'=>65,'di'=>30,'dc'=>80,'wood'=>1000,'clay'=>300,'iron'=>350,'crop'=>70,'pop'=>3,'speed'=>4,'time'=>4200,'cap'=>0); +$u18=array('atk'=>50,'di'=>60,'dc'=>10,'wood'=>900,'clay'=>1200,'iron'=>600,'crop'=>60,'pop'=>6,'speed'=>3,'time'=>9000,'cap'=>0); +$u19=array('atk'=>40,'di'=>60,'dc'=>40,'wood'=>35500,'clay'=>26600,'iron'=>25000,'crop'=>27200,'pop'=>4,'speed'=>5,'time'=>70500,'cap'=>0); +$u20=array('atk'=>10,'di'=>80,'dc'=>80,'wood'=>7200,'clay'=>5500,'iron'=>5800,'crop'=>6500,'pop'=>1,'speed'=>5,'time'=>31000,'cap'=>3000); +$u21=array('atk'=>15,'di'=>40,'dc'=>50,'wood'=>100,'clay'=>130,'iron'=>55,'crop'=>30,'pop'=>1,'speed'=>7,'time'=>1040,'cap'=>35); +$u22=array('atk'=>65,'di'=>35,'dc'=>20,'wood'=>140,'clay'=>150,'iron'=>185,'crop'=>60,'pop'=>1,'speed'=>6,'time'=>1440,'cap'=>45); +$u23=array('atk'=>0,'di'=>20,'dc'=>10,'wood'=>170,'clay'=>150,'iron'=>20,'crop'=>40,'pop'=>2,'speed'=>17,'time'=>1360,'cap'=>0); +$u24=array('atk'=>90,'di'=>25,'dc'=>40,'wood'=>350,'clay'=>450,'iron'=>230,'crop'=>60,'pop'=>2,'speed'=>19,'time'=>2480,'cap'=>75); +$u25=array('atk'=>45,'di'=>115,'dc'=>55,'wood'=>360,'clay'=>330,'iron'=>280,'crop'=>120,'pop'=>2,'speed'=>16,'time'=>2560,'cap'=>35); +$u26=array('atk'=>140,'di'=>50,'dc'=>165,'wood'=>500,'clay'=>620,'iron'=>675,'crop'=>170,'pop'=>3,'speed'=>13,'time'=>3120,'cap'=>65); +$u27=array('atk'=>50,'di'=>30,'dc'=>105,'wood'=>950,'clay'=>555,'iron'=>330,'crop'=>75,'pop'=>3,'speed'=>4,'time'=>5000,'cap'=>0); +$u28=array('atk'=>70,'di'=>45,'dc'=>10,'wood'=>960,'clay'=>1450,'iron'=>630,'crop'=>90,'pop'=>6,'speed'=>3,'time'=>9000,'cap'=>0); +$u29=array('atk'=>40,'di'=>50,'dc'=>50,'wood'=>30750,'clay'=>45400,'iron'=>31000,'crop'=>37500,'pop'=>4,'speed'=>4,'time'=>90700,'cap'=>0); +$u30=array('atk'=>0,'di'=>80,'dc'=>80,'wood'=>5500,'clay'=>7000,'iron'=>5300,'crop'=>4900,'pop'=>1,'speed'=>5,'time'=>22700,'cap'=>3000); +$u31=array('atk'=>10,'di'=>25,'dc'=>20,'wood'=>85,'clay'=>75,'iron'=>120,'crop'=>25,'speed'=>7,'pop'=>1,'time'=>1600,'cap'=>45); +$u32=array('atk'=>20,'di'=>35,'dc'=>40,'wood'=>125,'clay'=>130,'iron'=>60,'crop'=>40,'speed'=>7,'pop'=>1,'time'=>1800,'cap'=>65); +$u33=array('atk'=>60,'di'=>40,'dc'=>60,'wood'=>140,'clay'=>150,'iron'=>40,'crop'=>60,'speed'=>6,'pop'=>1,'time'=>1900,'cap'=>80); +$u34=array('atk'=>10,'di'=>66,'dc'=>50,'wood'=>95,'clay'=>120,'iron'=>65,'crop'=>25,'speed'=>9,'pop'=>1,'time'=>2000,'cap'=>0); +$u35=array('atk'=>50,'di'=>70,'dc'=>33,'wood'=>250,'clay'=>200,'iron'=>125,'crop'=>45,'speed'=>10,'pop'=>2,'time'=>2000,'cap'=>120); +$u36=array('atk'=>100,'di'=>80,'dc'=>70,'wood'=>250,'clay'=>125,'iron'=>250,'crop'=>150,'speed'=>9,'pop'=>2,'time'=>2000,'cap'=>150); +$u37=array('atk'=>250,'di'=>140,'dc'=>200,'wood'=>250,'clay'=>220,'iron'=>135,'crop'=>50,'speed'=>4,'pop'=>3,'time'=>2000,'cap'=>125); +$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); +$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); +$u54=array('atk'=>10,'di'=>66,'dc'=>50,'wood'=>95,'clay'=>120,'iron'=>65,'crop'=>25,'speed'=>9,'pop'=>1,'time'=>2000,'cap'=>0); +$u55=array('atk'=>50,'di'=>70,'dc'=>33,'wood'=>250,'clay'=>200,'iron'=>125,'crop'=>45,'speed'=>10,'pop'=>2,'time'=>2000,'cap'=>120); +$u56=array('atk'=>100,'di'=>80,'dc'=>70,'wood'=>250,'clay'=>125,'iron'=>250,'crop'=>150,'speed'=>9,'pop'=>2,'time'=>2000,'cap'=>150); +$u57=array('atk'=>250,'di'=>140,'dc'=>200,'wood'=>250,'clay'=>220,'iron'=>135,'crop'=>50,'speed'=>4,'pop'=>3,'time'=>2000,'cap'=>125); +$u58=array('atk'=>450,'di'=>380,'dc'=>240,'wood'=>125,'clay'=>250,'iron'=>300,'crop'=>65,'speed'=>3,'pop'=>3,'time'=>2000,'cap'=>0); +$u59=array('atk'=>200,'di'=>170,'dc'=>250,'wood'=>350,'clay'=>350,'iron'=>125,'crop'=>80,'speed'=>5,'pop'=>3,'time'=>70500,'cap'=>0); +$u60=array('atk'=>600,'di'=>440,'dc'=>520,'wood'=>350,'clay'=>250,'iron'=>135,'crop'=>100,'speed'=>5,'pop'=>5,'time'=>31000,'cap'=>3000); +// Hero data base values and increase per point +$h1=array('atk'=>50,'atkp'=>54,'di'=>60,'dip'=>49,'dc'=>85,'dcp'=>62.5); +$h2=array('atk'=>40,'atkp'=>46.5,'di'=>100,'dip'=>75.5,'dc'=>60,'dcp'=>47.5); +$h3=array('atk'=>90,'atkp'=>74,'di'=>65,'dip'=>57,'dc'=>40,'dcp'=>42); +$h5=array('atk'=>150,'atkp'=>107.5,'di'=>100,'dip'=>73,'dc'=>85,'dcp'=>59); +$h6=array('atk'=>225,'atkp'=>147.5,'di'=>135,'dip'=>79,'dc'=>175,'dcp'=>99); +$h11=array('atk'=>50,'atkp'=>54,'di'=>35,'dip'=>49.5,'dc'=>10,'dcp'=>24); +$h12=array('atk'=>15,'atkp'=>34,'di'=>60,'dip'=>48,'dc'=>100,'dcp'=>70.5); +$h13=array('atk'=>75,'atkp'=>67.5,'di'=>50,'dip'=>47.5,'dc'=>50,'dcp'=>47.5); +$h15=array('atk'=>70,'atkp'=>64,'di'=>165,'dip'=>100,'dc'=>65,'dcp'=>39.5); +$h16=array('atk'=>190,'atkp'=>127.5,'di'=>85,'dip'=>58.5,'dc'=>125,'dcp'=>80); +$h21=array('atk'=>20,'atkp'=>37.5,'di'=>65,'dip'=>53,'dc'=>85,'dcp'=>62); +$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); + +?> diff --git a/GameEngine/Database.php b/GameEngine/Database.php new file mode 100644 index 00000000..9ec37f9d --- /dev/null +++ b/GameEngine/Database.php @@ -0,0 +1,24 @@ + \ No newline at end of file diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php new file mode 100644 index 00000000..055ecc6f --- /dev/null +++ b/GameEngine/Database/db_MYSQL.php @@ -0,0 +1,2497 @@ +connection = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error()); + mysql_select_db(SQL_DB, $this->connection) or die(mysql_error()); + } + + function register($username, $password, $email, $tribe, $locate, $act) { + $time = time(); + $timep = (time() + PROTECTION); + $q = "INSERT INTO " . TB_PREFIX . "users (username,password,access,email,timestamp,tribe,location,act,protect) VALUES ('$username', '$password', " . USER . ", '$email', $time, $tribe, $locate, '$act', $timep)"; + if(mysql_query($q, $this->connection)) { + return mysql_insert_id($this->connection); + } else { + return false; + } + } + + function activate($username, $password, $email, $tribe, $locate, $act, $act2) { + $time = time(); + $q = "INSERT INTO " . TB_PREFIX . "activate (username,password,access,email,tribe,timestamp,location,act,act2) VALUES ('$username', '$password', " . USER . ", '$email', $tribe, $time, $locate, '$act', '$act2')"; + if(mysql_query($q, $this->connection)) { + return mysql_insert_id($this->connection); + } else { + return false; + } + } + + function unreg($username) { + $q = "DELETE from " . TB_PREFIX . "activate where username = '$username'"; + return mysql_query($q, $this->connection); + } + function deleteReinf($id) { + $q = "DELETE from " . TB_PREFIX . "enforcement where id = '$id'"; + mysql_query($q, $this->connection); + } + function updateResource($vid, $what, $number) { + + $q = "UPDATE " . TB_PREFIX . "vdata set " . $what . "=" . $number . " where wref = $vid"; + $result = mysql_query($q, $this->connection); + return mysql_query($q, $this->connection); + } + + function checkExist($ref, $mode) { + + if(!$mode) { + $q = "SELECT username FROM " . TB_PREFIX . "users where username = '$ref' LIMIT 1"; + } else { + $q = "SELECT email FROM " . TB_PREFIX . "users where email = '$ref' LIMIT 1"; + } + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + function checkExist_activate($ref, $mode) { + + if(!$mode) { + $q = "SELECT username FROM " . TB_PREFIX . "activate where username = '$ref' LIMIT 1"; + } else { + $q = "SELECT email FROM " . TB_PREFIX . "activate where email = '$ref' LIMIT 1"; + } + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + public function hasBeginnerProtection($vid) { + $q = "SELECT u.protect FROM ".TB_PREFIX."users u,".TB_PREFIX."vdata v WHERE u.id=v.owner AND v.wref=".$vid; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + if(!empty($dbarray)) { + if(time()<$dbarray[0]) { + return true; + } else { + return false; + } + } else { + return false; + } + } + + function updateUserField($ref, $field, $value, $switch) { + if(!$switch) { + $q = "UPDATE " . TB_PREFIX . "users set $field = '$value' where username = '$ref'"; + } else { + $q = "UPDATE " . TB_PREFIX . "users set $field = '$value' where id = '$ref'"; + } + return mysql_query($q, $this->connection); + } + + function getSitee($uid) { + $q = "SELECT id from " . TB_PREFIX . "users where sit1 = $uid or sit2 = $uid"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function removeMeSit($uid, $uid2) { + $q = "UPDATE " . TB_PREFIX . "users set sit1 = 0 where id = $uid and sit1 = $uid2"; + mysql_query($q, $this->connection); + $q2 = "UPDATE " . TB_PREFIX . "users set sit2 = 0 where id = $uid and sit2 = $uid2"; + mysql_query($q2, $this->connection); + } + + function getUserField($ref, $field, $mode) { + if(!$mode) { + $q = "SELECT $field FROM " . TB_PREFIX . "users where id = '$ref'"; + } else { + $q = "SELECT $field FROM " . TB_PREFIX . "users where username = '$ref'"; + } + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray[$field]; + } + + function getActivateField($ref, $field, $mode) { + if(!$mode) { + $q = "SELECT $field FROM " . TB_PREFIX . "activate where id = '$ref'"; + } else { + $q = "SELECT $field FROM " . TB_PREFIX . "activate where username = '$ref'"; + } + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray[$field]; + } + + function login($username, $password) { + $q = "SELECT password,sessid FROM " . TB_PREFIX . "users where username = '$username'"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + if($dbarray['password'] == md5($password)) { + return true; + } else { + return false; + } + } + + function checkActivate($act) { + $q = "SELECT * FROM " . TB_PREFIX . "activate where act = '$act'"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + + return $dbarray; + } + + function sitterLogin($username, $password) { + $q = "SELECT sit1,sit2 FROM " . TB_PREFIX . "users where username = '$username' and access != " . BANNED; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + if($dbarray['sit1'] != 0) { + $q2 = "SELECT password FROM " . TB_PREFIX . "users where id = " . $dbarray['sit1'] . " and access != " . BANNED; + $result2 = mysql_query($q2, $this->connection); + $dbarray2 = mysql_fetch_array($result2); + } else + if($dbarray['sit2'] != 0) { + $q3 = "SELECT password FROM " . TB_PREFIX . "users where id = " . $dbarray['sit2'] . " and access != " . BANNED; + $result3 = mysql_query($q3, $this->connection); + $dbarray3 = mysql_fetch_array($result3); + } + if($dbarray['sit1'] != 0 || $dbarray['sit2'] != 0) { + if($dbarray2['password'] == md5($password) || $dbarray3['password'] == md5($password)) { + return true; + } else { + return false; + } + } else { + return false; + } + } + + function setDeleting($uid, $mode) { + $time = time() + 72 * 3600; + if(!$mode) { + $q = "INSERT into " . TB_PREFIX . "deleting values ($uid,$time)"; + } else { + $q = "DELETE FROM " . TB_PREFIX . "deleting where uid = $uid"; + } + mysql_query($q, $this->connection); + } + + function isDeleting($uid) { + $q = "SELECT timestamp from " . TB_PREFIX . "deleting where uid = $uid"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['timestamp']; + } + + function modifyGold($userid, $amt, $mode) { + if(!$mode) { + $q = "UPDATE " . TB_PREFIX . "users set gold = gold - $amt where id = $userid"; + } else { + $q = "UPDATE " . TB_PREFIX . "users set gold = gold + $amt where id = $userid"; + } + return mysql_query($q, $this->connection); + } + + /***************************************** + Function to retrieve user array via Username or ID + Mode 0: Search by Username + Mode 1: Search by ID + References: Alliance ID + *****************************************/ + + function getUserArray($ref, $mode) { + if(!$mode) { + $q = "SELECT * FROM " . TB_PREFIX . "users where username = '$ref'"; + } else { + $q = "SELECT * FROM " . TB_PREFIX . "users where id = $ref"; + } + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function activeModify($username, $mode) { + $time = time(); + if(!$mode) { + $q = "INSERT into " . TB_PREFIX . "active VALUES ('$username',$time)"; + } else { + $q = "DELETE FROM " . TB_PREFIX . "active where username = '$username'"; + } + return mysql_query($q, $this->connection); + } + + function addActiveUser($username, $time) { + $q = "REPLACE into " . TB_PREFIX . "active values ('$username',$time)"; + if(mysql_query($q, $this->connection)) { + return true; + } else { + return false; + } + } + + function updateActiveUser($username, $time) { + $q = "REPLACE into " . TB_PREFIX . "active values ('$username',$time)"; + $q2 = "UPDATE " . TB_PREFIX . "users set timestamp = $time where username = '$username'"; + $exec1 = mysql_query($q, $this->connection); + $exec2 = mysql_query($q2, $this->connection); + if($exec1 && $exec2) { + return true; + } else { + return false; + } + } + + function checkactiveSession($username, $sessid) { + $q = "SELECT username FROM " . TB_PREFIX . "users where username = '$username' and sessid = '$sessid' LIMIT 1"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result) != 0) { + return true; + } else { + return false; + } + } + + function submitProfile($uid, $gender, $location, $birthday, $des1, $des2) { + $q = "UPDATE " . TB_PREFIX . "users set gender = $gender, location = '$location', birthday = '$birthday', desc1 = '$des1', desc2 = '$des2' where id = $uid"; + return mysql_query($q, $this->connection); + } + + function gpack($uid, $gpack) { + $q = "UPDATE " . TB_PREFIX . "users set gpack = '$gpack' where id = $uid"; + return mysql_query($q, $this->connection); + } + + function UpdateOnline($mode, $name = "", $time = "") { + global $session; + if($mode == "login") { + $q = "INSERT IGNORE INTO " . TB_PREFIX . "online (name, time) VALUES ('$name', " . time() . ")"; + return mysql_query($q, $this->connection); + } else { + $q = "DELETE FROM " . TB_PREFIX . "online WHERE name ='" . $session->username . "'"; + return mysql_query($q, $this->connection); + } + } + + function generateBase($sector) { + switch($sector) { + case 1: + $q = "Select * from ".TB_PREFIX."wdata where fieldtype = 3 and x < 0 and y > 0 and occupied = 0"; + break; + case 2: + $q = "Select * from ".TB_PREFIX."wdata where fieldtype = 3 and x > 0 and y > 0 and occupied = 0"; + break; + case 3: + $q = "Select * from ".TB_PREFIX."wdata where fieldtype = 3 and x < 0 and y < 0 and occupied = 0"; + break; + case 4: + $q = "Select * from ".TB_PREFIX."wdata where fieldtype = 3 and x > 0 and y < 0 and occupied = 0"; + break; + } + $result = mysql_query($q, $this->connection); + $num_rows = mysql_num_rows($result); + $result = $this->mysql_fetch_all($result); + $base = rand(0, ($num_rows-1)); + return $result[$base]['id']; + } + + function setFieldTaken($id) { + $q = "UPDATE " . TB_PREFIX . "wdata set occupied = 1 where id = $id"; + return mysql_query($q, $this->connection); + } + + function addVillage($wid, $uid, $username, $capital) { + $total = count($this->getVillagesID($uid)); + if($total >= 1) { + $vname = $username . "\'s village " . ($total + 1); + } else { + $vname = $username . "\'s village"; + } + $time = time(); + $q = "INSERT into " . TB_PREFIX . "vdata (wref, owner, name, capital, pop, cp, celebration, wood, clay, iron, maxstore, crop, maxcrop, lastupdate, created) values ('$wid', '$uid', '$vname', '$capital', 2, 1, 0, 750, 750, 750, ".STORAGE_BASE.", 750, ".STORAGE_BASE.", '$time', '$time')"; + return mysql_query($q, $this->connection) or die(mysql_error()); + } + + function addResourceFields($vid, $type) { + switch($type) { + case 1: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,4,4,1,4,4,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + case 2: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,3,4,1,3,2,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + case 3: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,1,4,1,3,2,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + case 4: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,1,4,1,2,2,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + case 5: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,1,4,1,3,1,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + case 6: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,4,4,1,3,4,4,4,4,4,4,4,4,4,4,4,2,4,4,1,15)"; + break; + case 7: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,1,4,4,1,2,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + case 8: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,3,4,4,1,2,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + case 9: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,3,4,4,1,1,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + case 10: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,3,4,1,2,2,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + case 11: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,3,1,1,3,1,4,4,3,3,2,2,3,1,4,4,2,4,4,1,15)"; + break; + case 12: + $q = "INSERT into " . TB_PREFIX . "fdata (vref,f1t,f2t,f3t,f4t,f5t,f6t,f7t,f8t,f9t,f10t,f11t,f12t,f13t,f14t,f15t,f16t,f17t,f18t,f26,f26t) values($vid,1,4,1,1,2,2,3,4,4,3,3,4,4,1,4,2,1,2,1,15)"; + break; + } + return mysql_query($q, $this->connection); + } + function isVillageOases($wref) { + $q = "SELECT id, oasistype FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['oasistype']; + } + + public function VillageOasisCount($vref) { + $q = "SELECT count(*) FROM `".TB_PREFIX."odata` WHERE conqured=$vref"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + return $row[0]; + } + + public function countOasisTroops($vref){ + //count oasis troops: $troops_o + $troops_o=0; + $o_unit2=mysql_query("select * from ".TB_PREFIX."units where `vref`='".$vref."'"); + $o_unit=mysql_fetch_array($o_unit2); + + for ($i=1;$i<51;$i++) + { + $troops_o+=$o_unit[$i]; + } + $troops_o+=$o_unit['hero']; + + $o_unit2=mysql_query("select * from ".TB_PREFIX."enforcement where `vref`='".$vref."'"); + while ($o_unit=@mysql_fetch_array($o_unit2)) + { + for ($i=1;$i<51;$i++) + { + $troops_o+=$o_unit[$i]; + } + $troops_o+=$o_unit['hero']; + } + return $troops_o; + } + + public function canConquerOasis($vref,$wref) { + $AttackerFields = $this->getResourceLevel($vref); + for($i=19;$i<=38;$i++) { + if($AttackerFields['f'.$i.'t'] == 37) { $HeroMansionLevel = $AttackerFields['f'.$i]; } + } + if($this->VillageOasisCount($vref) < floor(($HeroMansionLevel-5)/5)) { + $OasisInfo = $this->getOasisInfo($wref); + $troopcount = $this->countOasisTroops($wref); + if($OasisInfo['conqured'] == 0 || $OasisInfo['conqured'] != 0 && $OasisInfo['loyalty'] < 99 / min(3,(4-$this->VillageOasisCount($OasisInfo['conqured']))) && $troopcount == 0) { + $CoordsVillage = $this->getCoor($vref); + $CoordsOasis = $this->getCoor($wref); + if(abs($CoordsOasis['x']-$CoordsVillage['x'])<=3 && abs($CoordsOasis['y']-$CoordsVillage['y'])<=3) { + return True; + } else { + return False; + } + } else { + return False; + } + } else { + return False; + } + } + + + + public function conquerOasis($vref,$wref) { + $vinfo = $this->getVillage($vref); + $uid = $vinfo['owner']; + $q = "UPDATE `".TB_PREFIX."odata` SET conqured=$vref,loyalty=100,lastupdated=".time().",owner=$uid,name='Occupied Oasis' WHERE wref=$wref"; + return mysql_query($q, $this->connection); + } + + public function modifyOasisLoyalty($wref) { + if($this->isVillageOases($wref) != 0) { + $OasisInfo = $this->getOasisInfo($wref); + if($OasisInfo['conqured'] != 0) { + $LoyaltyAmendment = floor(100 / min(3,(4-$this->VillageOasisCount($OasisInfo['conqured'])))); + $q = "UPDATE `".TB_PREFIX."odata` SET loyalty=loyalty-$LoyaltyAmendment WHERE wref=$wref"; + return mysql_query($q, $this->connection); + } + } + } + + function populateOasis() { + $q = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; + $result = mysql_query($q, $this->connection); + while($row = mysql_fetch_array($result)) { + $wid = $row['id']; + + $this->addUnits($wid); + + } + } + + function populateOasisUnitsLow() { + $q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; + $result2 = mysql_query($q2, $this->connection); + while($row = mysql_fetch_array($result2)) { + $wid = $row['id']; + $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']) { + case 1: + case 2: + //+25% lumber per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(0,20)."', u37 = u37 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u36 <= '2' AND u37 <= '2'"; + $result = mysql_query($q, $this->connection); + break; + case 3: + //+25% lumber and +25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(0,20)."', u37 = u37 + '".rand(0,10)."', u38 = u38 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u36 <= '2' AND u37 <= '2' AND u38 <='2'"; + $result = mysql_query($q, $this->connection); + break; + case 4: + case 5: + //+25% clay per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(0,20)."', u37 = u37 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u36 <= '2' AND u37 <= '2'"; + $result = mysql_query($q, $this->connection); + break; + case 6: + //+25% clay and +25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(0,20)."', u37 = u37 + '".rand(0,10)."', u38 = u38 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u36 <= '2' AND u37 <= '2' AND u38 <='2'"; + $result = mysql_query($q, $this->connection); + break; + case 7: + case 8: + //+25% iron per hour + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,20)."', u32 = u32 + '".rand(0,10)."', u34 = u34 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '2' AND u32 <= '2'"; + $result = mysql_query($q, $this->connection); + break; + case 9: + //+25% iron and +25% crop + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,20)."', u32 = u32 + '".rand(0,10)."', u34 = u34 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '2' AND u32 <= '2' AND u34 <='2'"; + $result = mysql_query($q, $this->connection); + break; + case 10: + case 11: + //+25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u33 = u33 + '".rand(0,20)."', u37 = u37 + '".rand(0,10)."', u38 = u38 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u33 <= '2' AND u37 <= '2' AND u38 <='2'"; + $result = mysql_query($q, $this->connection); + break; + case 12: + //+50% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u33 = u33 + '".rand(0,20)."', u37 = u37 + '".rand(0,10)."', u38 = u38 + '".rand(0,10)."', u39 = u39 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u33 <= '2' AND u37 <= '2' AND u38 <='2'AND u38 <='2'"; + $result = mysql_query($q, $this->connection); + break; + } + } + } + + function populateOasisUnitsHigh() { + $q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; + $result2 = mysql_query($q2, $this->connection); + while($row = mysql_fetch_array($result2)) { + $wid = $row['id']; + $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']) { + case 1: + case 2: + //+25% lumber per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(15,40)."', u37 = u37 + '".rand(10,20)."' WHERE vref = '" . $wid . "' AND u36 <= '2' AND u37 <= '2'"; + $result = mysql_query($q, $this->connection); + break; + case 3: + //+25% lumber and +25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(15,40)."', u37 = u37 + '".rand(10,20)."', u38 = u38 + '".rand(10,20)."' WHERE vref = '" . $wid . "' AND u36 <= '2' AND u37 <= '2' AND u38 <='2'"; + $result = mysql_query($q, $this->connection); + break; + case 4: + case 5: + //+25% clay per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(15,40)."', u37 = u37 + '".rand(10,20)."' WHERE vref = '" . $wid . "' AND u36 <= '2' AND u37 <= '2'"; + $result = mysql_query($q, $this->connection); + break; + case 6: + //+25% clay and +25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(15,40)."', u37 = u37 + '".rand(10,20)."', u38 = u38 + '".rand(10,20)."' WHERE vref = '" . $wid . "' AND u36 <= '2' AND u37 <= '2' AND u38 <='2'"; + $result = mysql_query($q, $this->connection); + break; + case 7: + case 8: + //+25% iron per hour + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(15,40)."', u32 = u32 + '".rand(10,20)."', u34 = u34 + '".rand(10,20)."' WHERE vref = '" . $wid . "' AND u31 <= '2' AND u32 <= '2'"; + $result = mysql_query($q, $this->connection); + break; + case 9: + //+25% iron and +25% crop + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(15,40)."', u32 = u32 + '".rand(10,20)."', u34 = u34 + '".rand(10,20)."' WHERE vref = '" . $wid . "' AND u31 <= '2' AND u32 <= '2' AND u34 <='2'"; + $result = mysql_query($q, $this->connection); + break; + case 10: + case 11: + //+25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u33 = u33 + '".rand(0,20)."', u37 = u37 + '".rand(0,10)."', u38 = u38 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u33 <= '2' AND u37 <= '2' AND u38 <='2'"; + $result = mysql_query($q, $this->connection); + break; + case 12: + //+50% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u33 = u33 + '".rand(0,20)."', u37 = u37 + '".rand(0,10)."', u38 = u38 + '".rand(0,10)."', u39 = u39 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u33 <= '2' AND u37 <= '2' AND u38 <='2'AND u38 <='2'"; + $result = mysql_query($q, $this->connection); + break; + } + } + } + + + /*************************** + Function to retrieve type of village via ID + References: Village ID + ***************************/ + function getVillageType($wref) { + $q = "SELECT id, fieldtype FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['fieldtype']; + } + + /***************************************** + Function to retrieve if is ocuped via ID + References: Village ID + *****************************************/ + function getVillageState($wref) { + $q = "SELECT oasistype,occupied FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + if($dbarray['occupied'] != 0 || $dbarray['oasistype'] != 0) { + return true; + } else { + return false; + } + } + + function getProfileVillages($uid) { + $q = "SELECT capital,wref,name,pop,created from " . TB_PREFIX . "vdata where owner = $uid order by pop desc"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getProfileMedal($uid) { + $q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "medal where userid = $uid order by id desc"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + + } + + function getProfileMedalAlly($uid) { + $q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "allimedal where allyid = $uid order by id desc"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + + } + + function getVillageID($uid) { + $q = "SELECT wref FROM " . TB_PREFIX . "vdata WHERE owner = $uid"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['wref']; + } + + + function getVillagesID($uid) { + $q = "SELECT wref from " . TB_PREFIX . "vdata where owner = $uid order by capital DESC,pop DESC"; + $result = mysql_query($q, $this->connection); + $array = $this->mysql_fetch_all($result); + $newarray = array(); + for($i = 0; $i < count($array); $i++) { + array_push($newarray, $array[$i]['wref']); + } + return $newarray; + } + + function getVillage($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "vdata where wref = $vid"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + public function getVillageBattleData($vid) { + $q = "SELECT u.id,u.tribe,v.capital,f.f40 AS wall FROM ".TB_PREFIX."users u,".TB_PREFIX."fdata f,".TB_PREFIX."vdata v WHERE u.id=v.owner AND f.vref=v.wref AND v.wref=".$vid; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + public function getPopulation($uid) { + $q = "SELECT sum(pop) AS pop FROM ".TB_PREFIX."vdata WHERE owner=".$uid; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['pop']; + } + + function getOasisV($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "odata where wref = $vid"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function getMInfo($id) { + $q = "SELECT * FROM " . TB_PREFIX . "wdata left JOIN " . TB_PREFIX . "vdata ON " . TB_PREFIX . "vdata.wref = " . TB_PREFIX . "wdata.id where " . TB_PREFIX . "wdata.id = $id"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function getOMInfo($id) { + $q = "SELECT * FROM " . TB_PREFIX . "wdata left JOIN " . TB_PREFIX . "odata ON " . TB_PREFIX . "odata.wref = " . TB_PREFIX . "wdata.id where " . TB_PREFIX . "wdata.id = $id"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function getOasis($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "odata where conqured = $vid"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getOasisInfo($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "odata where wref = $wid"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + function getVillageField($ref, $field) { + $q = "SELECT $field FROM " . TB_PREFIX . "vdata where wref = $ref"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray[$field]; + + } + + function getOasisField($ref, $field) { + $q = "SELECT $field FROM " . TB_PREFIX . "odata where wref = $ref"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray[$field]; + } + + function setVillageField($ref, $field, $value) { + $q = "UPDATE " . TB_PREFIX . "vdata set $field = '$value' where wref = $ref"; + return mysql_query($q, $this->connection); + } + + function setVillageLevel($ref, $field, $value) { + $q = "UPDATE " . TB_PREFIX . "fdata set " . $field . " = '" . $value . "' where vref = " . $ref . ""; + return mysql_query($q, $this->connection); + } + + function getResourceLevel($vid) { + $q = "SELECT * from " . TB_PREFIX . "fdata where vref = $vid"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + function getAdminLog() { + $q = "SELECT id,user,log,time from " . TB_PREFIX . "admin_log where id != 0 ORDER BY id ASC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getCoor($wref) { + $q = "SELECT x,y FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function CheckForum($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_cat where alliance = '$id'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + function CountCat($id) { + $q = "SELECT count(id) FROM " . TB_PREFIX . "forum_topic where cat = '$id'"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + return $row[0]; + } + + function LastTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where cat = '$id' order by post_date"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function CheckLastTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where cat = '$id'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + function CheckLastPost($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_post where topic = '$id'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + function LastPost($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_post where topic = '$id'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function CountTopic($id) { + $q = "SELECT count(id) FROM " . TB_PREFIX . "forum_post where owner = '$id'"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + + $qs = "SELECT count(id) FROM " . TB_PREFIX . "forum_topic where owner = '$id'"; + $results = mysql_query($qs, $this->connection); + $rows = mysql_fetch_row($results); + return $row[0] + $rows[0]; + } + + function CountPost($id) { + $q = "SELECT count(id) FROM " . TB_PREFIX . "forum_post where topic = '$id'"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + return $row[0]; + } + + function ForumCat($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_cat where alliance = '$id' ORDER BY id"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function ForumCatEdit($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_cat where id = '$id'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function ForumCatName($id) { + $q = "SELECT forum_name from " . TB_PREFIX . "forum_cat where id = $id"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['forum_name']; + } + + function CheckCatTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where cat = '$id'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + function CheckResultEdit($alli) { + $q = "SELECT * from " . TB_PREFIX . "forum_edit where alliance = '$alli'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + function CheckCloseTopic($id) { + $q = "SELECT close from " . TB_PREFIX . "forum_topic where id = '$id'"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['close']; + } + + function CheckEditRes($alli) { + $q = "SELECT result from " . TB_PREFIX . "forum_edit where alliance = '$alli'"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['result']; + } + + function CreatResultEdit($alli, $result) { + $q = "INSERT into " . TB_PREFIX . "forum_edit values (0,'$alli','$result')"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + function UpdateResultEdit($alli, $result) { + $date = time(); + $q = "UPDATE " . TB_PREFIX . "forum_edit set result = '$result' where alliance = '$alli'"; + return mysql_query($q, $this->connection); + } + + function UpdateEditTopic($id, $title, $cat) { + $q = "UPDATE " . TB_PREFIX . "forum_topic set title = '$title', cat = '$cat' where id = $id"; + return mysql_query($q, $this->connection); + } + + function UpdateEditForum($id, $name, $des) { + $q = "UPDATE " . TB_PREFIX . "forum_cat set forum_name = '$name', forum_des = '$des' where id = $id"; + return mysql_query($q, $this->connection); + } + + function StickTopic($id, $mode) { + $q = "UPDATE " . TB_PREFIX . "forum_topic set stick = '$mode' where id = '$id'"; + return mysql_query($q, $this->connection); + } + + function ForumCatTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where cat = '$id' AND stick = '' ORDER BY post_date desc"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function ForumCatTopicStick($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where cat = '$id' AND stick = '1' ORDER BY post_date desc"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function ShowTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where id = '$id'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function ShowPost($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_post where topic = '$id'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function ShowPostEdit($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_post where id = '$id'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function CreatForum($owner, $alli, $name, $des, $area) { + $q = "INSERT into " . TB_PREFIX . "forum_cat values (0,'$owner','$alli','$name','$des','$area')"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + function CreatTopic($title, $post, $cat, $owner, $alli, $ends) { + $date = time(); + $q = "INSERT into " . TB_PREFIX . "forum_topic values (0,'$title','$post','$date','$date','$cat','$owner','$alli','$ends','','')"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + function CreatPost($post, $tids, $owner) { + $date = time(); + $q = "INSERT into " . TB_PREFIX . "forum_post values (0,'$post','$tids','$owner','$date')"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + function UpdatePostDate($id) { + $date = time(); + $q = "UPDATE " . TB_PREFIX . "forum_topic set post_date = '$date' where id = $id"; + return mysql_query($q, $this->connection); + } + + function EditUpdateTopic($id, $post) { + $q = "UPDATE " . TB_PREFIX . "forum_topic set post = '$post' where id = $id"; + return mysql_query($q, $this->connection); + } + + function EditUpdatePost($id, $post) { + $q = "UPDATE " . TB_PREFIX . "forum_post set post = '$post' where id = $id"; + return mysql_query($q, $this->connection); + } + + function LockTopic($id, $mode) { + $q = "UPDATE " . TB_PREFIX . "forum_topic set close = '$mode' where id = '$id'"; + return mysql_query($q, $this->connection); + } + + function DeleteCat($id) { + $qs = "DELETE from " . TB_PREFIX . "forum_cat where id = '$id'"; + $q = "DELETE from " . TB_PREFIX . "forum_topic where cat = '$id'"; + mysql_query($qs, $this->connection); + return mysql_query($q, $this->connection); + } + + function DeleteTopic($id) { + $qs = "DELETE from " . TB_PREFIX . "forum_topic where id = '$id'"; + // $q = "DELETE from ".TB_PREFIX."forum_post where topic = '$id'";// + return mysql_query($qs, $this->connection); // + // mysql_query($q,$this->connection); + } + + function DeletePost($id) { + $q = "DELETE from " . TB_PREFIX . "forum_post where id = '$id'"; + return mysql_query($q, $this->connection); + } + + function getAllianceName($id) { + $q = "SELECT tag from " . TB_PREFIX . "alidata where id = $id"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['tag']; + } + + function getAlliancePermission($ref, $field, $mode) { + if(!$mode) { + $q = "SELECT $field FROM " . TB_PREFIX . "ali_permission where uid = '$ref'"; + } else { + $q = "SELECT $field FROM " . TB_PREFIX . "ali_permission where username = '$ref'"; + } + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray[$field]; + } + + function getAlliance($id) { + $q = "SELECT * from " . TB_PREFIX . "alidata where id = $id"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + function setAlliName($aid, $name, $tag) { + $q = "UPDATE " . TB_PREFIX . "alidata set name = '$name', tag = '$tag' where id = $aid"; + return mysql_query($q, $this->connection); + } + + function isAllianceOwner($id) { + $q = "SELECT * from " . TB_PREFIX . "alidata where leader = '$id'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + function aExist($ref, $type) { + $q = "SELECT $type FROM " . TB_PREFIX . "alidata where $type = '$ref'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + function modifyPoints($aid, $points, $amt) { + $q = "UPDATE " . TB_PREFIX . "users set $points = $points + $amt where id = $aid"; + return mysql_query($q, $this->connection); + } + + function modifyPointsAlly($aid, $points, $amt) { + $q = "UPDATE " . TB_PREFIX . "alidata set $points = $points + $amt where id = $aid"; + return mysql_query($q, $this->connection); + } + + /***************************************** + Function to create an alliance + References: + *****************************************/ + function createAlliance($tag, $name, $uid, $max) { + $q = "INSERT into " . TB_PREFIX . "alidata values (0,'$name','$tag',$uid,0,0,0,'','',$max,'','','','','','','','')"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + /***************************************** + Function to insert an alliance new + References: + *****************************************/ + function insertAlliNotice($aid, $notice) { + $time = time(); + $q = "INSERT into " . TB_PREFIX . "ali_log values (0,'$aid','$notice',$time)"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + /***************************************** + Function to delete alliance if empty + References: + *****************************************/ + function deleteAlliance($aid) { + $result = mysql_query("SELECT * FROM " . TB_PREFIX . "users where alliance = $aid"); + $num_rows = mysql_num_rows($result); + if($num_rows == 0) { + $q = "DELETE FROM " . TB_PREFIX . "alidata WHERE id = $aid"; + } + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + /***************************************** + Function to read all alliance news + References: + *****************************************/ + function readAlliNotice($aid) { + $q = "SELECT * from " . TB_PREFIX . "ali_log where aid = $aid ORDER BY date DESC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + /***************************************** + Function to create alliance permissions + References: ID, notice, description + *****************************************/ + function createAlliPermissions($uid, $aid, $rank, $opt1, $opt2, $opt3, $opt4, $opt5, $opt6, $opt7, $opt8) { + + $q = "INSERT into " . TB_PREFIX . "ali_permission values(0,'$uid','$aid','$rank','$opt1','$opt2','$opt3','$opt4','$opt5','$opt6','$opt7','$opt8')"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + /***************************************** + Function to update alliance permissions + References: + *****************************************/ + function deleteAlliPermissions($uid) { + $q = "DELETE from " . TB_PREFIX . "ali_permission where uid = '$uid'"; + return mysql_query($q, $this->connection); + } + /***************************************** + Function to update alliance permissions + References: + *****************************************/ + function updateAlliPermissions($uid, $aid, $rank, $opt1, $opt2, $opt3, $opt4, $opt5, $opt6, $opt7) { + + $q = "UPDATE " . TB_PREFIX . "ali_permission SET rank = '$rank', opt1 = '$opt1', opt2 = '$opt2', opt3 = '$opt3', opt4 = '$opt4', opt5 = '$opt5', opt6 = '$opt6', opt7 = '$opt7' where uid = $uid && alliance =$aid"; + return mysql_query($q, $this->connection); + } + + /***************************************** + Function to read alliance permissions + References: ID, notice, description + *****************************************/ + function getAlliPermissions($uid, $aid) { + $q = "SELECT * FROM " . TB_PREFIX . "ali_permission where uid = $uid && alliance = $aid"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + /***************************************** + Function to update an alliance description and notice + References: ID, notice, description + *****************************************/ + function submitAlliProfile($aid, $notice, $desc) { + + $q = "UPDATE " . TB_PREFIX . "alidata SET `notice` = '$notice', `desc` = '$desc' where id = $aid"; + return mysql_query($q, $this->connection); + } + + function diplomacyInviteAdd($alli1, $alli2, $type) { + $q = "INSERT INTO " . TB_PREFIX . "diplomacy (alli1,alli2,type,accepted) VALUES ($alli1,$alli2," . (int)intval($type) . ",0)"; + return mysql_query($q, $this->connection); + } + + function diplomacyOwnOffers($session_alliance) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli1 = $session_alliance AND accepted = 0"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getAllianceID($name) { + $q = "SELECT id FROM " . TB_PREFIX . "alidata WHERE tag ='" . $this->RemoveXSS($name) . "'"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['id']; + } + + function getDiplomacy($aid) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE id = $aid"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function diplomacyCancelOffer($id) { + $q = "DELETE FROM " . TB_PREFIX . "diplomacy WHERE id = $id"; + return mysql_query($q, $this->connection); + } + + function diplomacyInviteAccept($id, $session_alliance) { + $q = "UPDATE " . TB_PREFIX . "diplomacy SET accepted = 1 WHERE id = $id AND alli2 = $session_alliance"; + return mysql_query($q, $this->connection); + } + + function diplomacyInviteDenied($id, $session_alliance) { + $q = "DELETE FROM " . TB_PREFIX . "diplomacy WHERE id = $id AND alli2 = $session_alliance"; + return mysql_query($q, $this->connection); + } + + function diplomacyInviteCheck($session_alliance) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli2 = $session_alliance AND accepted = 0"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getAllianceDipProfile($aid, $type){ + $q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli1 = '$aid' AND type = '$type' AND accepted = '1'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result) == 0){ + $q2 = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli2 = '$aid' AND type = '$type' AND accepted = '1'"; + $result2 = mysql_query($q2, $this->connection); + while($row = mysql_fetch_array($result2)){ + $alliance = $this->getAlliance($row['alli1']); + $text = ""; + $text .= "".$alliance['tag']."
"; + } + }else{ + while($row = mysql_fetch_array($result)){ + $alliance = $this->getAlliance($row['alli2']); + $text = ""; + $text .= "".$alliance['tag']."
"; + } + } + if(strlen($text) == 0){ + $text = "-
"; + } + return $text; + } + + function diplomacyExistingRelationships($session_alliance) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli2 = $session_alliance AND accepted = 1"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function diplomacyExistingRelationships2($session_alliance) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli1 = $session_alliance AND accepted = 1"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function diplomacyCancelExistingRelationship($id, $session_alliance) { + $q = "DELETE FROM " . TB_PREFIX . "diplomacy WHERE id = $id AND alli2 = $session_alliance"; + return mysql_query($q, $this->connection); + } + + function getUserAlliance($id) { + $q = "SELECT " . TB_PREFIX . "alidata.tag from " . TB_PREFIX . "users join " . TB_PREFIX . "alidata where " . TB_PREFIX . "users.alliance = " . TB_PREFIX . "alidata.id and " . TB_PREFIX . "users.id = $id"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + if($dbarray['tag'] == "") { + return "-"; + } else { + return $dbarray['tag']; + } + } + + function modifyResource($vid, $wood, $clay, $iron, $crop, $mode) { + if(!$mode) { + $q = "UPDATE " . TB_PREFIX . "vdata set wood = wood - $wood, clay = clay - $clay, iron = iron - $iron, crop = crop - $crop where wref = $vid"; + } else { + $q = "UPDATE " . TB_PREFIX . "vdata set wood = wood + $wood, clay = clay + $clay, iron = iron + $iron, crop = crop + $crop where wref = $vid"; + } + return mysql_query($q, $this->connection); + } + + function modifyOasisResource($vid, $wood, $clay, $iron, $crop, $mode) { + if(!$mode) { + $q = "UPDATE " . TB_PREFIX . "odata set wood = wood - $wood, clay = clay - $clay, iron = iron - $iron, crop = crop - $crop where wref = $vid"; + } else { + $q = "UPDATE " . TB_PREFIX . "odata set wood = wood + $wood, clay = clay + $clay, iron = iron + $iron, crop = crop + $crop where wref = $vid"; + } + return mysql_query($q, $this->connection); + } + + function getFieldLevel($vid, $field) { + $q = "SELECT f" . $field . " from " . TB_PREFIX . "fdata where vref = $vid"; + $result = mysql_query($q, $this->connection); + return mysql_result($result, 0); + } + + function getFieldType($vid, $field) { + $q = "SELECT f" . $field . "t from " . TB_PREFIX . "fdata where vref = $vid"; + $result = mysql_query($q, $this->connection); + return mysql_result($result, 0); + } + + function getVSumField($uid, $field) { + $q = "SELECT sum(" . $field . ") FROM " . TB_PREFIX . "vdata where owner = $uid"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + return $row[0]; + } + + function updateVillage($vid) { + $time = time(); + $q = "UPDATE " . TB_PREFIX . "vdata set lastupdate = $time where wref = $vid"; + return mysql_query($q, $this->connection); + } + function updateOasis($vid) { + $time = time(); + $q = "UPDATE " . TB_PREFIX . "odata set lastupdated = $time where wref = $vid"; + return mysql_query($q, $this->connection); + } + + + function setVillageName($vid, $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) { + $q = "UPDATE " . TB_PREFIX . "vdata set pop = pop + $pop where wref = $vid"; + } else { + $q = "UPDATE " . TB_PREFIX . "vdata set pop = pop - $pop where wref = $vid"; + } + return mysql_query($q, $this->connection); + } + + function addCP($ref, $cp) { + $q = "UPDATE " . TB_PREFIX . "vdata set cp = cp + $cp where wref = $ref"; + return mysql_query($q, $this->connection); + } + + function addCel($ref, $cel, $type) { + $q = "UPDATE " . TB_PREFIX . "vdata set celebration = $cel, type= $type where wref = $ref"; + return mysql_query($q, $this->connection); + } + function getCel() { + $time = time(); + $q = "SELECT * FROM " . TB_PREFIX . "vdata where celebration < $time AND celebration != 0"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function clearCel($ref) { + $q = "UPDATE " . TB_PREFIX . "vdata set celebration = 0, type = 0 where wref = $ref"; + return mysql_query($q, $this->connection); + } + function setCelCp($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set cp = cp + $cp where id = $user"; + return mysql_query($q, $this->connection); + } + + function clearExpansionSlot($id) { + for($i = 1; $i <= 3; $i++) { + $q = "UPDATE " . TB_PREFIX . "vdata SET exp" . $i . "=0 WHERE exp" . $i . "=" . $id; + mysql_query($q, $this->connection); + } + } + + function getInvitation($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "ali_invite where uid = $uid"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getAliInvitations($aid) { + $q = "SELECT * FROM " . TB_PREFIX . "ali_invite where alliance = $aid && accept = 0"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function sendInvitation($uid, $alli, $sender) { + $time = time(); + $q = "INSERT INTO " . TB_PREFIX . "ali_invite values (0,$uid,$alli,$sender,$time,0)"; + return mysql_query($q, $this->connection) or die(mysql_error()); + } + + function removeInvitation($id) { + $q = "DELETE FROM " . TB_PREFIX . "ali_invite where id = $id"; + return mysql_query($q, $this->connection); + } + + function sendMessage($client, $owner, $topic, $message, $send) { + $time = time(); + $q = "INSERT INTO " . TB_PREFIX . "mdata values (0,$client,$owner,'$topic',\"$message\",0,0,$send,$time)"; + return mysql_query($q, $this->connection); + } + + function setArchived($id) { + $q = "UPDATE " . TB_PREFIX . "mdata set archived = 1 where id = $id"; + return mysql_query($q, $this->connection); + } + + function setNorm($id) { + $q = "UPDATE " . TB_PREFIX . "mdata set archived = 0 where id = $id"; + return mysql_query($q, $this->connection); + } + + /*************************** + Function to get messages + Mode 1: Get inbox + Mode 2: Get sent + Mode 3: Get message + Mode 4: Set viewed + Mode 5: Remove message + Mode 6: Retrieve archive + References: User ID/Message ID, Mode + ***************************/ + function getMessage($id, $mode) { + global $session; + switch($mode) { + case 1: + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $id and send = 0 and archived = 0 ORDER BY time DESC"; + break; + case 2: + // removed send no longer needed as we dont send 2 messages any more just 1 + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE owner = $id ORDER BY time DESC"; + break; + case 3: + $q = "SELECT * FROM " . TB_PREFIX . "mdata where id = $id"; + break; + case 4: + $q = "UPDATE " . TB_PREFIX . "mdata set viewed = 1 where id = $id AND target = $session->uid"; + break; + case 5: + $q = "DELETE FROM " . TB_PREFIX . "mdata where id = $id"; + break; + case 6: + $q = "SELECT * FROM " . TB_PREFIX . "mdata where target = $id and send = 0 and archived = 1"; + break; + } + if($mode <= 3 || $mode == 6) { + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } else { + return mysql_query($q, $this->connection); + } + } + + function unarchiveNotice($id) { + $q = "UPDATE " . TB_PREFIX . "ndata set ntype = archive, archive = 0 where id = $id"; + return mysql_query($q, $this->connection); + } + + function archiveNotice($id) { + $q = "update " . TB_PREFIX . "ndata set archive = ntype, ntype = 9 where id = $id"; + return mysql_query($q, $this->connection); + } + + function removeNotice($id) { + $q = "DELETE FROM " . TB_PREFIX . "ndata where id = $id"; + return mysql_query($q, $this->connection); + } + + function noticeViewed($id) { + $q = "UPDATE " . TB_PREFIX . "ndata set viewed = 1 where id = $id"; + return mysql_query($q, $this->connection); + } + + function addNotice($uid, $wref, $aid, $type, $topic, $data, $time = 0) { + if($time == 0) { + $time = time(); + } + $q = "INSERT INTO " . TB_PREFIX . "ndata (id, uid, toWref, ally, topic, ntype, data, time, viewed) values (0,'$uid','$wref','$aid','$topic',$type,'$data',$time,0)"; + return mysql_query($q, $this->connection) or die(mysql_error()); + } + + function getNotice($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid ORDER BY time DESC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function addBuilding($wid, $field, $type, $loop, $time) { + $x = "UPDATE " . TB_PREFIX . "fdata SET f" . $field . "t=" . $type . " WHERE vref=" . $wid; + mysql_query($x, $this->connection) or die(mysql_error()); + $q = "INSERT into " . TB_PREFIX . "bdata values (0,$wid,$field,$type,$loop,$time)"; + return mysql_query($q, $this->connection); + } + + function removeBuilding($d) { + global $building; + $jobLoopconID = -1; + $SameBuildCount = 0; + $jobs = $building->buildArray; + for($i = 0; $i < sizeof($jobs); $i++) { + if($jobs[$i]['id'] == $d) { + $jobDeleted = $i; + } + if($jobs[$i]['loopcon'] == 1) { + $jobLoopconID = $i; + } + } + if(count($jobs) > 1 && ($jobs[0]['field'] == $jobs[1]['field'])) { + $SameBuildCount = 1; + } + if(count($jobs) > 2 && ($jobs[0]['field'] == $jobs[2]['field'])) { + $SameBuildCount = 2; + } + if(count($jobs) > 2 && ($jobs[1]['field'] == $jobs[2]['field'])) { + $SameBuildCount = 3; + } + + if($SameBuildCount > 0) { + if($d == $jobs[floor($SameBuildCount / 3)]['id'] || $d == $jobs[floor($SameBuildCount / 2) + 1]['id']) { + $q = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,timestamp=" . $jobs[floor($SameBuildCount / 3)]['timestamp'] . " WHERE ID=" . $jobs[floor($SameBuildCount / 3)]['id'] . " OR ID=" . $jobs[floor($SameBuildCount / 2) + 1]['id']; + mysql_query($q, $this->connection); + } + } else { + if($jobs[$jobDeleted]['field'] >= 19) { + $x = "SELECT f" . $jobs[$jobDeleted]['field'] . " FROM " . TB_PREFIX . "fdata WHERE vref=" . $jobs[$jobDeleted]['wid']; + $result = mysql_query($x, $this->connection) or die(mysql_error()); + $fieldlevel = mysql_fetch_row($result); + if($fieldlevel[0] == 0) { + $x = "UPDATE " . TB_PREFIX . "fdata SET f" . $jobs[$jobDeleted]['field'] . "t=0 WHERE vref=" . $jobs[$jobDeleted]['wid']; + mysql_query($x, $this->connection) or die(mysql_error()); + } + } + if(($jobLoopconID >= 0) && ($jobs[$jobDeleted]['loopcon'] != 1)) { + if(($jobs[$jobLoopconID]['field'] <= 18 && $jobs[$jobDeleted]['field'] <= 18) || ($jobs[$jobLoopconID]['field'] >= 19 && $jobs[$jobDeleted]['field'] >= 19)) { + $uprequire = $building->resourceRequired($jobs[$jobLoopconID]['field'], $jobs[$jobLoopconID]['type']); + $x = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,timestamp=" . (time() + $uprequire['time']) . " WHERE wid=" . $jobs[$jobDeleted]['wid'] . " AND loopcon=1"; + mysql_query($x, $this->connection) or die(mysql_error()); + } + } + } + $q = "DELETE FROM " . TB_PREFIX . "bdata where id = $d"; + return mysql_query($q, $this->connection); + } + + function addDemolition($wid, $field) { + global $building, $village; + $q = "DELETE FROM ".TB_PREFIX."bdata WHERE field=$field AND wid=$wid"; + mysql_query($q, $this->connection); + $uprequire = $building->resourceRequired($field,$village->resarray['f'.$field.'t'],0); + $q = "INSERT INTO ".TB_PREFIX."demolition VALUES (".$wid.",".$field.",".($this->getFieldLevel($wid,$field)-1).",".(time()+floor($uprequire['time']/2)).")"; + return mysql_query($q, $this->connection); + } + + + function getDemolition($wid = 0) { + if($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "demolition WHERE vref=" . $wid; + } else { + $q = "SELECT * FROM " . TB_PREFIX . "demolition WHERE timetofinish<=" . time(); + } + $result = mysql_query($q, $this->connection); + if(!empty($result)) { + return $this->mysql_fetch_all($result); + } else { + return NULL; + } + } + + function finishDemolition($wid) { + $q = "UPDATE " . TB_PREFIX . "demolition SET timetofinish=" . time() . " WHERE vref=" . $wid; + return mysql_query($q, $this->connection); + } + + function delDemolition($wid) { + $q = "DELETE FROM " . TB_PREFIX . "demolition WHERE vref=" . $wid; + return mysql_query($q, $this->connection); + } + + function getJobs($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid order by timestamp ASC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getVillageByName($name) { + $name = mysql_real_escape_string($name, $this->connection); + $q = "SELECT wref FROM " . TB_PREFIX . "vdata where name = '$name' limit 1"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['wref']; + } + + /*************************** + Function to set accept flag on market + References: id + ***************************/ + function setMarketAcc($id) { + $q = "UPDATE " . TB_PREFIX . "market set accept = 1 where id = $id"; + return mysql_query($q, $this->connection); + } + + /*************************** + Function to send resource to other village + Mode 0: Send + Mode 1: Cancel + References: Wood/ID, Clay, Iron, Crop, Mode + ***************************/ + function sendResource($ref, $clay, $iron, $crop, $merchant, $mode) { + if(!$mode) { + $q = "INSERT INTO " . TB_PREFIX . "send values (0,$ref,$clay,$iron,$crop,$merchant)"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } else { + $q = "DELETE FROM " . TB_PREFIX . "send where id = $ref"; + return mysql_query($q, $this->connection); + } + } + + /*************************** + Function to get resources back if you delete offer + References: VillageRef (vref) + Made by: Dzoki + ***************************/ + + function getResourcesBack($vref, $gtype, $gamt) { + //Xtype (1) = wood, (2) = clay, (3) = iron, (4) = crop + if($gtype == 1) { + $q = "UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` + '$gamt' WHERE wref = $vref"; + return mysql_query($q, $this->connection); + } else + if($gtype == 2) { + $q = "UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` + '$gamt' WHERE wref = $vref"; + return mysql_query($q, $this->connection); + } else + if($gtype == 3) { + $q = "UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` + '$gamt' WHERE wref = $vref"; + return mysql_query($q, $this->connection); + } else + if($gtype == 4) { + $q = "UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` + '$gamt' WHERE wref = $vref"; + return mysql_query($q, $this->connection); + } + } + + /*************************** + Function to get info about offered resources + References: VillageRef (vref) + Made by: Dzoki + ***************************/ + + function getMarketField($vref, $field) { + $q = "SELECT $field FROM " . TB_PREFIX . "market where vref = '$vref'"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray[$field]; + } + + function removeAcceptedOffer($id) { + $q = "DELETE FROM " . TB_PREFIX . "market where id = $id"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + /*************************** + Function to add market offer + Mode 0: Add + Mode 1: Cancel + References: Village, Give, Amt, Want, Amt, Time, Alliance, Mode + ***************************/ + function addMarket($vid, $gtype, $gamt, $wtype, $wamt, $time, $alliance, $merchant, $mode) { + if(!$mode) { + $q = "INSERT INTO " . TB_PREFIX . "market values (0,$vid,$gtype,$gamt,$wtype,$wamt,0,$time,$alliance,$merchant)"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } else { + $q = "DELETE FROM " . TB_PREFIX . "market where id = $gtype and vref = $vid"; + return mysql_query($q, $this->connection); + } + } + + /*************************** + Function to get market offer + References: Village, Mode + ***************************/ + function getMarket($vid, $mode) { + $alliance = $this->getUserField($this->getVillageField($vid, "owner"), "alliance", 0); + if(!$mode) { + $q = "SELECT * FROM " . TB_PREFIX . "market where vref = $vid and accept = 0"; + } else { + $q = "SELECT * FROM " . TB_PREFIX . "market where vref != $vid and alliance = $alliance or vref != $vid and alliance = 0 and accept = 0"; + } + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + /*************************** + Function to get market offer + References: ID + ***************************/ + function getMarketInfo($id) { + $q = "SELECT * FROM " . TB_PREFIX . "market where id = $id"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + function setMovementProc($moveid) { + $q = "UPDATE " . TB_PREFIX . "movement set proc = 1 where moveid = $moveid"; + return mysql_query($q, $this->connection); + } + + /*************************** + Function to retrieve used merchant + References: Village + ***************************/ + function totalMerchantUsed($vid) { + $time = time(); + $q = "SELECT sum(" . TB_PREFIX . "send.merchant) from " . TB_PREFIX . "send, " . TB_PREFIX . "movement where " . TB_PREFIX . "movement.from = $vid and " . TB_PREFIX . "send.id = " . TB_PREFIX . "movement.ref and " . TB_PREFIX . "movement.proc = 0 and sort_type = 0"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + $q2 = "SELECT sum(ref) from " . TB_PREFIX . "movement where sort_type = 2 and " . TB_PREFIX . "movement.to = $vid and proc = 0"; + $result2 = mysql_query($q2, $this->connection); + $row2 = mysql_fetch_row($result2); + $q3 = "SELECT sum(merchant) from " . TB_PREFIX . "market where vref = $vid and accept = 0"; + $result3 = mysql_query($q3, $this->connection); + $row3 = mysql_fetch_row($result3); + return $row[0] + $row2[0] + $row3[0]; + } + + /*************************** + Function to retrieve movement of village + Type 0: Send Resource + Type 1: Send Merchant + Type 2: Return Resource + Type 3: Attack + Type 4: Return + Type 5: Settler + Type 6: Bounty Type 7: Reinf. + Mode 0: Send/Out + Mode 1: Recieve/In + References: Type, Village, Mode + ***************************/ + function getMovement($type, $village, $mode) { + $time = time(); + if(!$mode) { + $where = "from"; + } else { + $where = "to"; + } + switch($type) { + case 0: + $q = "SELECT * FROM " . TB_PREFIX . "movement, " . TB_PREFIX . "send where " . TB_PREFIX . "movement." . $where . " = $village and " . TB_PREFIX . "movement.ref = " . TB_PREFIX . "send.id and " . TB_PREFIX . "movement.proc = 0 and " . TB_PREFIX . "movement.sort_type = 0 ORDER BY endtime ASC"; + break; + case 2: + $q = "SELECT * FROM " . TB_PREFIX . "movement where " . TB_PREFIX . "movement." . $where . " = $village and " . TB_PREFIX . "movement.proc = 0 and " . TB_PREFIX . "movement.sort_type = 2 ORDER BY endtime ASC"; + break; + case 3: + $q = "SELECT * FROM " . TB_PREFIX . "movement, " . TB_PREFIX . "attacks where " . TB_PREFIX . "movement." . $where . " = $village and " . TB_PREFIX . "movement.ref = " . TB_PREFIX . "attacks.id and " . TB_PREFIX . "movement.proc = 0 and " . TB_PREFIX . "movement.sort_type = 3 ORDER BY endtime ASC"; + break; + case 4: + $q = "SELECT * FROM " . TB_PREFIX . "movement, " . TB_PREFIX . "attacks where " . TB_PREFIX . "movement." . $where . " = $village and " . TB_PREFIX . "movement.ref = " . TB_PREFIX . "attacks.id and " . TB_PREFIX . "movement.proc = 0 and " . TB_PREFIX . "movement.sort_type = 4 ORDER BY endtime ASC"; + break; + case 5: + $q = "SELECT * FROM " . TB_PREFIX . "movement where " . TB_PREFIX . "movement." . $where . " = $village and sort_type = 5 and proc = 0 ORDER BY endtime ASC"; + break; + case 6: + $q = "SELECT * FROM " . TB_PREFIX . "movement," . TB_PREFIX . "odata, " . TB_PREFIX . "attacks where " . TB_PREFIX . "odata.conqured = $village and " . TB_PREFIX . "movement.to = " . TB_PREFIX . "odata.wref and " . TB_PREFIX . "movement.ref = " . TB_PREFIX . "attacks.id and " . TB_PREFIX . "movement.proc = 0 and " . TB_PREFIX . "movement.sort_type = 3 ORDER BY endtime ASC"; + break; + case 34: + $q = "SELECT * FROM " . TB_PREFIX . "movement, " . TB_PREFIX . "attacks where " . TB_PREFIX . "movement." . $where . " = $village and " . TB_PREFIX . "movement.ref = " . TB_PREFIX . "attacks.id and " . TB_PREFIX . "movement.proc = 0 and " . TB_PREFIX . "movement.sort_type = 3 or " . TB_PREFIX . "movement." . $where . " = $village and " . TB_PREFIX . "movement.ref = " . TB_PREFIX . "attacks.id and " . TB_PREFIX . "movement.proc = 0 and " . TB_PREFIX . "movement.sort_type = 4 ORDER BY endtime ASC"; + break; + } + $result = mysql_query($q, $this->connection); + $array = $this->mysql_fetch_all($result); + return $array; + } + + function addA2b($ckey, $timestamp, $to, $t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10, $t11, $type) { + $q = "INSERT INTO " . TB_PREFIX . "a2b (ckey,time_check,to_vid,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,type) VALUES ('$ckey', '$timestamp', '$to', '$t1', '$t2', '$t3', '$t4', '$t5', '$t6', '$t7', '$t8', '$t9', '$t10', '$t11', '$type')"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + function getA2b($ckey, $check) { + $q = "SELECT * from " . TB_PREFIX . "a2b where ckey = '" . $ckey . "' AND time_check = '" . $check . "'"; + $result = mysql_query($q, $this->connection); + if($result) { + return mysql_fetch_assoc($result); + } else { + return false; + } + } + + function addMovement($type, $from, $to, $ref, $endtime) { + $q = "INSERT INTO " . TB_PREFIX . "movement values (0,$type,$from,$to,$ref,$endtime,0)"; + return mysql_query($q, $this->connection); + } + + function addAttack($vid, $t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10, $t11, $type, $ctar1, $ctar2, $spy,$b1=0,$b2=0,$b3=0,$b4=0,$b5=0,$b6=0,$b7=0,$b8=0) { + $q = "INSERT INTO " . TB_PREFIX . "attacks values (0,$vid,$t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10,$t11,$type,$ctar1,$ctar2,$spy,$b1,$b2,$b3,$b4,$b5,$b6,$b7,$b8)"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + function modifyAttack($aid, $unit, $amt) { + $unit = 't' . $unit; + $q = "UPDATE " . TB_PREFIX . "attacks set $unit = $unit - $amt where id = $aid"; + return mysql_query($q, $this->connection); + } + + function getRanking() { + $q = "SELECT id,username,alliance,ap,apall,dp,dpall,access FROM " . TB_PREFIX . "users WHERE tribe<=3 AND access<" . (INCLUDE_ADMIN ? "10" : "8"); + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getVRanking() { + $q = "SELECT v.wref,v.name,v.owner,v.pop FROM " . TB_PREFIX . "vdata AS v," . TB_PREFIX . "users AS u WHERE v.owner=u.id AND u.tribe<=3 AND v.wref != '' AND u.access<" . (INCLUDE_ADMIN ? "10" : "8"); + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getARanking() { + $q = "SELECT id,name,tag FROM " . TB_PREFIX . "alidata where id != ''"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getHeroRanking() { + $q = "SELECT * FROM " . TB_PREFIX . "hero WHERE dead = 0"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getAllMember($aid) { + $q = "SELECT * FROM " . TB_PREFIX . "users where alliance = $aid order by (SELECT sum(pop) FROM " . TB_PREFIX . "vdata WHERE owner = " . TB_PREFIX . "users.id) desc"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function addUnits($vid) { + $q = "INSERT into " . TB_PREFIX . "units (vref) values ($vid)"; + return mysql_query($q, $this->connection); + } + + function getUnit($vid) { + $q = "SELECT * from " . TB_PREFIX . "units where vref = $vid"; + $result = mysql_query($q, $this->connection); + if (!empty($result)) { + return mysql_fetch_assoc($result); + } else { + return NULL; + } + } + + function getHero($uid=0,$all=0) { + if ($all) { + $q = "SELECT * FROM ".TB_PREFIX."hero WHERE uid=$uid"; + } elseif (!$uid) { + $q = "SELECT * FROM ".TB_PREFIX."hero"; + } else { + $q = "SELECT * FROM ".TB_PREFIX."hero WHERE dead=0 AND uid=$uid LIMIT 1"; + } + $result = mysql_query($q, $this->connection); + if (!empty($result)) { + return $this->mysql_fetch_all($result); + } else { + return NULL; + } + } + + function getHeroField($uid,$field){ + $q = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = $uid"; + $result = mysql_query($q,$this->connection); + return $this->mysql_fetch_all($result); + } + + function modifyHero($column,$value,$heroid,$mode=0) { + if(!$mode) { + $q = "UPDATE `".TB_PREFIX."hero` SET $column = $value WHERE heroid = $heroid"; + } elseif($mode=1) { + $q = "UPDATE `".TB_PREFIX."hero` SET $column = $column + $value WHERE heroid = $heroid"; + } else { + $q = "UPDATE `".TB_PREFIX."hero` SET $column = $column - $value WHERE heroid = $heroid"; + } + return mysql_query($q, $this->connection); + } + + function modifyHeroXp($column,$value,$heroid) { + $q = "UPDATE ".TB_PREFIX."hero SET $column = $column + $value WHERE uid=$heroid"; + return mysql_query($q, $this->connection); + } + + function addTech($vid) { + $q = "INSERT into " . TB_PREFIX . "tdata (vref) values ($vid)"; + return mysql_query($q, $this->connection); + } + + function addABTech($vid) { + $q = "INSERT into " . TB_PREFIX . "abdata (vref) values ($vid)"; + return mysql_query($q, $this->connection); + } + + function getABTech($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "abdata where vref = $vid"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + function addResearch($vid, $tech, $time) { + $q = "INSERT into " . TB_PREFIX . "research values (0,$vid,'$tech',$time)"; + return mysql_query($q, $this->connection); + } + + function getResearching($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "research where vref = $vid"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function checkIfResearched($vref, $unit) { + $q = "SELECT $unit FROM " . TB_PREFIX . "tdata WHERE vref = $vref"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray[$unit]; + } + + function getTech($vid) { + $q = "SELECT * from " . TB_PREFIX . "tdata where vref = $vid"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + function getTraining($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "training where vref = $vid ORDER BY id"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function countTraining($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "training WHERE vref = $vid"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + return $row[0]; + } + + function trainUnit($vid, $unit, $amt, $pop, $each, $time, $mode) { + global $village, $building, $session, $technology; + + if(!$mode) { + $barracks = array(1, 2, 3, 11, 12, 13, 14, 21, 22, 31, 32, 33, 34, 41, 42, 43, 44); + $stables = array(4, 5, 6, 15, 16, 23, 24, 25, 26, 35, 36, 45, 46); + $workshop = array(7, 8, 17, 18, 27, 28, 37, 38, 47, 48); + $residence = array(9, 10, 19, 20, 29, 30, 39, 40, 49, 50); + + if(in_array($unit, $barracks)) { + $queued = $technology->getTrainingList(1); + } elseif(in_array($unit, $stables)) { + $queued = $technology->getTrainingList(2); + } elseif(in_array($unit, $workshop)) { + $queued = $technology->getTrainingList(3); + } elseif(in_array($unit, $residence)) { + $queued = $technology->getTrainingList(4); + } + if(count($queued) > 0) { + $time = $queued[count($queued) - 1]['commence'] + $queued[count($queued) - 1]['eachtime'] * $queued[count($queued) - 1]['amt']; + } + $now = time(); + $q = "INSERT INTO " . TB_PREFIX . "training values (0,$vid,$unit,$amt,$pop,$now,$each,$time)"; + } else { + $q = "DELETE FROM " . TB_PREFIX . "training where id = $vid"; + } + return mysql_query($q, $this->connection); + } + + function updateTraining($id, $trained) { + $time = time(); + $q = "UPDATE " . TB_PREFIX . "training set amt = amt - $trained, timestamp = $time where id = $id"; + return mysql_query($q, $this->connection); + } + + function modifyUnit($vref, $array_unit, $array_amt, $array_mode){ + $i = -1; + $units=''; + $number = count($array_unit); + foreach($array_unit as $unit){ + if($unit == 230){$unit = 30;} + if($unit == 231){$unit = 31;} + if($unit == 120){$unit = 20;} + if($unit == 121){$unit = 21;} + if($unit =="hero"){$unit = 'hero';} + else{$unit = 'u' . $unit;} + + ++$i; + $units .= $unit.' = '.$unit.' '.(($array_mode[$i] == 1)? '+':'-').' '.$array_amt[$i].(($number > $i+1) ? ', ' : ''); + } + + $q = "UPDATE ".TB_PREFIX."units set $units WHERE vref = $vref"; + return mysql_query($q, $this->connection); + } + + function getEnforce($vid, $from) { + $q = "SELECT * from " . TB_PREFIX . "enforcement where `from` = $from and vref = $vid"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + function addEnforce($data) { + $q = "INSERT into " . TB_PREFIX . "enforcement (vref,`from`) values (" . $data['to'] . "," . $data['from'] . ")"; + mysql_query($q, $this->connection); + $id = mysql_insert_id($this->connection); + $owntribe = $this->getUserField($this->getVillageField($data['from'], "owner"), "tribe", 0); + $start = ($owntribe - 1) * 10 + 1; + $end = ($owntribe * 10); + //add unit + $j = '1'; + for($i = $start; $i <= $end; $i++) { + $this->modifyEnforce($id, $i, $data['t' . $j . ''], 1); + $j++; + } + $this->modifyEnforce($id,'hero',$data['t11'],1); + return mysql_insert_id($this->connection); + } + + function modifyEnforce($id, $unit, $amt, $mode) { + if($unit != 'hero') { $unit = 'u' . $unit; } + if(!$mode) { + $q = "UPDATE " . TB_PREFIX . "enforcement set $unit = $unit - $amt where id = $id"; + } else { + $q = "UPDATE " . TB_PREFIX . "enforcement set $unit = $unit + $amt where id = $id"; + } + mysql_query($q, $this->connection); + } + + function getEnforceArray($id, $mode) { + if(!$mode) { + $q = "SELECT * from " . TB_PREFIX . "enforcement where id = $id"; + } else { + $q = "SELECT * from " . TB_PREFIX . "enforcement where `from` = $id"; + } + $result = mysql_query($q, $this->connection); + return mysql_fetch_assoc($result); + } + + function getEnforceVillage($id, $mode) { + if(!$mode) { + $q = "SELECT * from " . TB_PREFIX . "enforcement where vref = $id"; + } else { + $q = "SELECT * from " . TB_PREFIX . "enforcement where `from` = $id"; + } + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getVillageMovement($id) { + $vinfo = $this->getVillage($id); + $vtribe = $this->getUserField($vinfo['owner'], "tribe", 0); + $movingunits = array(); + $outgoingarray = $this->getMovement(3, $id, 0); + if(!empty($outgoingarray)) { + foreach($outgoingarray as $out) { + for($i = 1; $i <= 10; $i++) { + $movingunits['u' . (($vtribe - 1) * 10 + $i)] += $out['t' . $i]; + } + $movingunits['hero'] += $out['t11']; + } + } + $returningarray = $this->getMovement(4, $id, 1); + if(!empty($returningarray)) { + foreach($returningarray as $ret) { + if($ret['attack_type'] != 1) { + for($i = 1; $i <= 10; $i++) { + $movingunits['u' . (($vtribe - 1) * 10 + $i)] += $ret['t' . $i]; + } + $movingunits['hero'] += $ret['t11']; + } + } + } + $settlerarray = $this->getMovement(5, $id, 0); + if(!empty($settlerarray)) { + $movingunits['u' . ($vtribe * 10)] += 3 * count($settlerarray); + } + return $movingunits; + } + + ################# -START- ################## + ## WORLD WONDER STATISTICS FUNCTIONS! ## + ############################################ + + /*************************** + Function to get all World Wonders + Made by: Dzoki + ***************************/ + + function getWW() { + $q = "SELECT * FROM " . TB_PREFIX . "fdata WHERE f99t = 40"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + /*************************** + Function to get world wonder level! + Made by: Dzoki + ***************************/ + + function getWWLevel($vref) { + $q = "SELECT f99 FROM " . TB_PREFIX . "fdata WHERE vref = $vref"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray['f99']; + } + + /*************************** + Function to get world wonder owner ID! + Made by: Dzoki + ***************************/ + + function getWWOwnerID($vref) { + $q = "SELECT owner FROM " . TB_PREFIX . "vdata WHERE wref = $vref"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray['owner']; + } + + /*************************** + Function to get user alliance name! + Made by: Dzoki + ***************************/ + + function getUserAllianceID($id) { + $q = "SELECT alliance FROM " . TB_PREFIX . "users where id = $id"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray['alliance']; + } + + /*************************** + Function to get WW name + Made by: Dzoki + ***************************/ + + function getWWName($vref) { + $q = "SELECT wwname FROM " . TB_PREFIX . "fdata WHERE vref = $vref"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray['wwname']; + } + + /*************************** + Function to change WW name + Made by: Dzoki + ***************************/ + + function submitWWname($vref, $name) { + $q = "UPDATE " . TB_PREFIX . "fdata SET `wwname` = '$name' WHERE " . TB_PREFIX . "fdata.`vref` = $vref"; + return mysql_query($q, $this->connection); + } + + //medal functions + function addclimberpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set Rc = Rc + '$cp' where id = $user"; + return mysql_query($q, $this->connection); + } + function addclimberrankpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set clp = clp + '$cp' where id = $user"; + return mysql_query($q, $this->connection); + } + function removeclimberrankpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set clp = clp - '$cp'' where id = $user"; + return mysql_query($q, $this->connection); + } + function updateoldrank($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set oldrank = '$cp' where id = $user"; + return mysql_query($q, $this->connection); + } + function removeclimberpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set Rc = Rc - '$cp' where id = $user"; + return mysql_query($q, $this->connection); + } + // ALLIANCE MEDAL FUNCTIONS + function addclimberpopAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set Rc = Rc + '$cp' where id = $user"; + return mysql_query($q, $this->connection); + } + function addclimberrankpopAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set clp = clp + '$cp' where id = $user"; + return mysql_query($q, $this->connection); + } + function removeclimberrankpopAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set clp = clp - '$cp'' where id = $user"; + return mysql_query($q, $this->connection); + } + function updateoldrankAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set oldrank = '$cp' where id = $user"; + return mysql_query($q, $this->connection); + } + function removeclimberpopAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set Rc = Rc - '$cp' where id = $user"; + return mysql_query($q, $this->connection); + } + + function modifyCommence($id) { + $time = time(); + $q = "UPDATE " . TB_PREFIX . "training set commence = $time WHERE id=$id"; + return mysql_query($q, $this->connection); + } + + + function getTrainingList() { + $q = "SELECT * FROM " . TB_PREFIX . "training where vref != ''"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getNeedDelete() { + $time = time(); + $q = "SELECT uid FROM " . TB_PREFIX . "deleting where timestamp < $time"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function countUser() { + $q = "SELECT count(id) FROM " . TB_PREFIX . "users where id != 0"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + return $row[0]; + } + + function countAlli() { + $q = "SELECT count(id) FROM " . TB_PREFIX . "alidata where id != 0"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + return $row[0]; + } + + /*************************** + Function to process MYSQLi->fetch_all (Only exist in MYSQL) + References: Result + ***************************/ + function mysql_fetch_all($result) { + $all = array(); + if($result) { + while($row = mysql_fetch_assoc($result)) { + $all[] = $row; + } + return $all; + } + } + + function query_return($q) { + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + /*************************** + Function to do free query + References: Query + ***************************/ + function query($query) { + return mysql_query($query, $this->connection); + } + + function RemoveXSS($val) { + return htmlspecialchars($val, ENT_QUOTES); + } + + //MARKET FIXES + function getWoodAvailable($wref) { + $q = "SELECT wood FROM " . TB_PREFIX . "vdata WHERE wref = $wref"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray['wood']; + } + + function getClayAvailable($wref) { + $q = "SELECT clay FROM " . TB_PREFIX . "vdata WHERE wref = $wref"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray['clay']; + } + + function getIronAvailable($wref) { + $q = "SELECT iron FROM " . TB_PREFIX . "vdata WHERE wref = $wref"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray['iron']; + } + + function getCropAvailable($wref) { + $q = "SELECT crop FROM " . TB_PREFIX . "vdata WHERE wref = $wref"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray['crop']; + } + + function Getowner($vid) { + $s = "SELECT owner FROM " . TB_PREFIX . "vdata where wref = $vid"; + $result1 = mysql_query($s, $this->connection); + $row1 = mysql_fetch_row($result1); + return $row1[0]; + } + + public function debug($time, $uid, $debug_info) { + $q = "INSERT INTO " . TB_PREFIX . "debug_info (time,uid,debug_info) VALUES ($time,$uid,$debug_info)"; + if(mysql_query($q, $this->connection)) { + return mysql_insert_id($this->connection); + } else { + return false; + } + } + function populateOasisdata() { + $q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; + $result2 = mysql_query($q2, $this->connection); + while($row = mysql_fetch_array($result2)) { + $wid = $row['id']; + $basearray = $this->getOMInfo($wid); + //We switch type of oasis and instert record with apropriate infomation. + $q = "INSERT into " . TB_PREFIX . "odata VALUES ('" . $basearray['id'] . "'," . $basearray['oasistype'] . ",0,400,400,400,400,400,400," . time() . ",100,2,'Unoccupied Oasis')"; + $result = mysql_query($q, $this->connection); + } + } + + public function getAvailableExpansionTraining() { + global $building, $session, $technology, $village; + $q = "SELECT (IF(exp1=0,1,0)+IF(exp2=0,1,0)+IF(exp3=0,1,0)) FROM " . TB_PREFIX . "vdata WHERE wref = $village->wid"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + $maxslots = $row[0]; + $residence = $building->getTypeLevel(25); + $palace = $building->getTypeLevel(26); + if($residence > 0) { + $maxslots -= (3 - floor($residence / 10)); + } + if($palace > 0) { + $maxslots -= (3 - floor(($palace - 5) / 5)); + } + + $q = "SELECT (u10+u20+u30) FROM " . TB_PREFIX . "units WHERE vref = $village->wid"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + $settlers = $row[0]; + $q = "SELECT (u9+u19+u29) FROM " . TB_PREFIX . "units WHERE vref = $village->wid"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + $chiefs = $row[0]; + + $settlers += 3 * count($this->getMovement(5, $village->wid, 0)); + $current_movement = $this->getMovement(3, $village->wid, 0); + if(!empty($current_movement)) { + foreach($current_movement as $build) { + $settlers += $build['t10']; + $chiefs += $build['t9']; + } + } + $current_movement = $this->getMovement(3, $village->wid, 1); + if(!empty($current_movement)) { + foreach($current_movement as $build) { + $settlers += $build['t10']; + $chiefs += $build['t9']; + } + } + $current_movement = $this->getMovement(4, $village->wid, 0); + if(!empty($current_movement)) { + foreach($current_movement as $build) { + $settlers += $build['t10']; + $chiefs += $build['t9']; + } + } + $current_movement = $this->getMovement(4, $village->wid, 1); + if(!empty($current_movement)) { + foreach($current_movement as $build) { + $settlers += $build['t10']; + $chiefs += $build['t9']; + } + } + $q = "SELECT (u10+u20+u30) FROM " . TB_PREFIX . "enforcement WHERE `from` = $village->wid"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + if(!empty($row)) { + foreach($row as $reinf) { + $settlers += $reinf[0]; + } + } + $q = "SELECT (u9+u19+u29) FROM " . TB_PREFIX . "enforcement WHERE `from` = $village->wid"; + $result = mysql_query($q, $this->connection); + $row = mysql_fetch_row($result); + if(!empty($row)) { + foreach($row as $reinf) { + $chiefs += $reinf[0]; + } + } + $trainlist = $technology->getTrainingList(4); + if(!empty($trainlist)) { + foreach($trainlist as $train) { + if($train['unit'] % 10 == 0) { + $settlers += $train['amt']; + } + if($train['unit'] % 10 == 9) { + $chiefs += $train['amt']; + } + } + } + // trapped settlers/chiefs calculation required + + $settlerslots = $maxslots * 3 - $settlers - $chiefs * 3; + $chiefslots = $maxslots - $chiefs - floor(($settlers + 2) / 3); + + if(!$technology->getTech(($session->tribe - 1) * 10 + 9)) { + $chiefslots = 0; + } + $slots = array("chiefs" => $chiefslots, "settlers" => $settlerslots); + return $slots; + } + + function addArtefact($vref, $owner, $type, $size, $name, $desc, $effect, $img) { + $q = "INSERT INTO `" . TB_PREFIX . "artefacts` (`vref`, `owner`, `type`, `size`, `conquered`, `name`, `desc`, `effect`, `img`) VALUES ('$vref', '$owner', '$type', '$size', '" . time() . "', '$name', '$desc', '$effect', '$img')"; + return mysql_query($q, $this->connection); + } + + function getOwnArtefactInfo($vref) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + function getOwnArtefactInfoByType($vref, $type) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref AND type = $type"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + function getOwnUniqueArtefactInfo($id, $type, $size) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE owner = $id AND type = $type AND size=$size"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function getArtefactInfo() { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE id > 0"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + function claimArtefact($vref, $ovref, $id) { + $time = time(); + $q = "UPDATE " . TB_PREFIX . "artefacts SET vref = $vref, owner = $id WHERE vref = $ovref"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + +## Hero Claim artifact by advocaite + public function canClaimArtifact ($vref,$type) { + $DefenderFields = $this->getResourceLevel($vref); + for($i=19;$i<=38;$i++) { + if($AttackerFields['f'.$i.'t'] == 27) { + $defcanclaim = FALSE; + $defTresuaryLevel = $AttackerFields['f'.$i]; + } else + { + $defcanclaim = TRUE; + } + } + $AttackerFields = $this->getResourceLevel($vref); + for($i=19;$i<=38;$i++) { + if($AttackerFields['f'.$i.'t'] == 27) { + $attTresuaryLevel = $AttackerFields['f'.$i]; + if ($attTresuaryLevel >= 10){ + $villageartifact = TRUE; + }else{ + $villageartifact = FALSE; + } + if ($attTresuaryLevel == 20){ + $accountartifact = TRUE; + }else{ + $accountartifact = FALSE; + } + } + } + + if ($type == 1) + { + if ($defcanclaim == TRUE && $villageartifact == TRUE) + { + return TRUE; + } + + }else if($type == 2) + { + if ($defcanclaim == TRUE && $accountartifact == TRUE) + { + return TRUE; + } + }else if($type == 3) + { + if ($defcanclaim == TRUE && $accountartifact == TRUE) + { + return TRUE; + } + }else + { + return FALSE; + } + + + } + + function getArtefactDetails($id) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE id = " . $id . ""; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function getLinks($id){ + $q = 'SELECT * FROM `' . TB_PREFIX . 'links` WHERE `userid` = ' . $id . ' ORDER BY `pos` ASC'; + return mysql_query($q, $this->connection); + + } + + function getArrayMemberVillage($uid){ + + $q = 'SELECT a.wref, a.name, b.x, b.y from '.TB_PREFIX.'vdata AS a left join '.TB_PREFIX.'wdata AS b ON b.id = a.wref where owner = '.$uid.' order by capital DESC,pop DESC'; + $result = mysql_query($q, $this->connection); + $array = $this->mysql_fetch_all($result); + return $array; + } + + function addPassword($uid, $npw, $cpw){ + $q = "REPLACE INTO `" . TB_PREFIX . "password`(uid, npw, cpw) VALUES ($uid, '$npw', '$cpw')"; + mysql_query($q, $this->connection) or die(mysql_error()); + } + + function resetPassword($uid, $cpw){ + $q = "SELECT npw FROM `" . TB_PREFIX . "password` WHERE uid = $uid AND cpw = '$cpw' AND used = 0"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + + if(!empty($dbarray)) { + if(!$this->updateUserField($uid, 'password', md5($dbarray['npw']), 1)) return false; + $q = "UPDATE `" . TB_PREFIX . "password` SET used = 1 WHERE uid = $uid AND cpw = '$cpw' AND used = 0"; + mysql_query($q, $this->connection) or die(mysql_error()); + return true; + } + + return false; + } + } + ; + + $database = new MYSQL_DB; + +?> \ No newline at end of file diff --git a/GameEngine/Form.php b/GameEngine/Form.php new file mode 100644 index 00000000..81dd49e5 --- /dev/null +++ b/GameEngine/Form.php @@ -0,0 +1,81 @@ +errorarray = $_SESSION['errorarray']; + $this->valuearray = $_SESSION['valuearray']; + $this->errorcount = count($this->errorarray); + + unset($_SESSION['errorarray']); + unset($_SESSION['valuearray']); + } + else { + $this->errorcount = 0; + } + } + + public function addError($field,$error) { + $this->errorarray[$field] = $error; + $this->errorcount = count($this->errorarray); + } + + public function getError($field) { + if(array_key_exists($field,$this->errorarray)) { + return $this->errorarray[$field]; + } + else { + return ""; + } + } + + public function getValue($field) { + if(array_key_exists($field,$this->valuearray)) { + return $this->valuearray[$field]; + } + else { + return ""; + } + } + + public function getDiff($field,$cookie) { + if(array_key_exists($field,$this->valuearray) && $this->valuearray[$field] != $cookie) { + return $this->valuearray[$field]; + } + else { + return $cookie; + } + } + + public function getRadio($field,$value) { + if(array_key_exists($field,$this->valuearray) && $this->valuearray[$field] == $value) { + return "checked"; + } + else { + return ""; + } + } + + public function returnErrors() { + return $this->errorcount; + } + + public function getErrors() { + return $this->errorarray; + } +}; +?> \ No newline at end of file diff --git a/GameEngine/Game/WorldWonderName.php b/GameEngine/Game/WorldWonderName.php new file mode 100644 index 00000000..b94a7ed9 --- /dev/null +++ b/GameEngine/Game/WorldWonderName.php @@ -0,0 +1,16 @@ +submitWWname($_POST['vref'],$_POST['wwname']); + header("Location: ../../build.php?id=99&n"); + + ?> \ No newline at end of file diff --git a/GameEngine/Generator.php b/GameEngine/Generator.php new file mode 100644 index 00000000..04bf0bad --- /dev/null +++ b/GameEngine/Generator.php @@ -0,0 +1,161 @@ +generateRandStr(16)); + } + + public function generateRandStr($length){ + $randstr = ""; + for($i=0; $i<$length; $i++){ + $randnum = mt_rand(0,61); + if($randnum < 10){ + $randstr .= chr($randnum+48); + }else if($randnum < 36){ + $randstr .= chr($randnum+55); + }else{ + $randstr .= chr($randnum+61); + } + } + return $randstr; + } + + public function encodeStr($str,$length) { + $encode = md5($str); + return substr($encode,0,$length); + } + + public function procDistanceTime($coor,$thiscoor,$ref,$mode) { + global $bid28,$bid14,$building; + $xdistance = ABS($thiscoor['x'] - $coor['x']); + if($xdistance > WORLD_MAX) { + $xdistance = (2 * WORLD_MAX + 1) - $xdistance; + } + $ydistance = ABS($thiscoor['y'] - $coor['y']); + if($ydistance > WORLD_MAX) { + $ydistance = (2 * WORLD_MAX + 1) - $ydistance; + } + $distance = SQRT(POW($xdistance,2)+POW($ydistance,2)); + if(!$mode) { + if($ref == 1) { + $speed = 16; + } + else if($ref == 2) { + $speed = 12; + } + else if($ref == 3) { + $speed = 24; + } + else if($ref == 300) { + $speed = 5; + } + else { + $speed = 1; + } + } + else { + $speed = $ref; + if($building->getTypeLevel(14) != 0) { + $speed = $distance <= TS_THRESHOLD ? $speed : $speed * ( ( TS_THRESHOLD + ( $distance - TS_THRESHOLD ) * $bid14[$building->gettypeLevel(14)]['attri'] / 100 ) / $distance ) ; + } + } + return round(($distance/$speed) * 3600 / INCREASE_SPEED); + } + + public function getTimeFormat($time) { + $min = 0; + $hr = 0; + $days = 0; + while($time >= 60) : + $time -= 60; + $min += 1; + endwhile; + while ($min >= 60) : + $min -= 60; + $hr += 1; + endwhile; + if ($min < 10) { + $min = "0".$min; + } + if($time < 10) { + $time = "0".$time; + } + return $hr.":".$min.":".$time; + } + +public function procMtime($time, $pref = 3) { + /* + $timezone = 7; + switch($timezone) { + case 7: + $time -= 3600; + break; + } + */ +- $time += 3600*0; //Edit this yourself ++ $time += 0; //Edit this yourself + +$today = date('d',time())-1; +if (date('Ymd',time()) == date('Ymd',$time)) { + $day = "today"; + }elseif($today == date('d',$time)){ + $day = "yesterday"; + } + else { + switch($pref) { + case 1: + $day = date("m/j/y",$time); + break; + case 2: + $day = date("j/m/y",$time); + break; + case 3: + $day = date("j.m.y",$time); + break; + default: + $day = date("y/m/j",$time); + break; + } + } + $new = date("H:i:s",$time); + if ($pref=="9"||$pref==9) + return $new; + else + return array($day,$new); + } + + + public function getBaseID($x,$y) { + return ((WORLD_MAX-$y) * (WORLD_MAX*2+1)) + (WORLD_MAX +$x + 1); + } + + public function getMapCheck($wref) { + return substr(md5($wref),5,2); + } + + public function pageLoadTimeStart() { + $starttime = microtime(); + $startarray = explode(" ", $starttime); + //$starttime = $startarray[1] + $startarray[0]; + return $startarray[0]; + } + + public function pageLoadTimeEnd() { + $endtime = microtime(); + $endarray = explode(" ", $endtime); + //$endtime = $endarray[1] + $endarray[0]; + return $endarray[0]; + } + +}; +$generator = new Generator; diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php new file mode 100644 index 00000000..b3edbf4d --- /dev/null +++ b/GameEngine/Lang/en.php @@ -0,0 +1,356 @@ +Plus"); +define("CONTACT","Contact us!"); + +//MENU +define("REG","Register"); +define("FORUM","Forum"); +define("CHAT","Chat"); +define("IMPRINT","Imprint"); +define("MORE_LINKS","More Links"); +define("TOUR","Game Tour"); + + +//ERRORS +define("USRNM_EMPTY","(Username empty)"); +define("USRNM_TAKEN","(Name is already in use.)"); +define("USRNM_SHORT","(min. ".USRNM_MIN_LENGTH." figures)"); +define("USRNM_CHAR","(Invalid Characters)"); +define("PW_EMPTY","(Password empty)"); +define("PW_SHORT","(min. ".PW_MIN_LENGTH." figures)"); +define("PW_INSECURE","(Password insecure. Please choose a more secure one.)"); +define("EMAIL_EMPTY","(Email Empty)"); +define("EMAIL_INVALID","(Invalid email address)"); +define("EMAIL_TAKEN","(Email is already in use)"); +define("TRIBE_EMPTY","
  • Please choose a tribe.
  • "); +define("AGREE_ERROR","
  • You have to agree to the game rules and the general terms & conditions in order to register.
  • "); +define("LOGIN_USR_EMPTY","Enter name."); +define("LOGIN_PASS_EMPTY","Enter password."); +define("EMAIL_ERROR","Email does not match existing"); +define("PASS_MISMATCH","Passwords do not match"); +define("ALLI_OWNER","Please appoint an alliance owner before deleting"); +define("SIT_ERROR","Sitter already set"); +define("USR_NT_FOUND","Name does not exist."); +define("LOGIN_PW_ERROR","The password is wrong."); +define("WEL_TOPIC","Useful tips & information "); +define("ATAG_EMPTY","Tag empty"); +define("ANAME_EMPTY","Name empty"); +define("ATAG_EXIST","Tag taken"); +define("ANAME_EXIST","Name taken"); +define("NOT_OPENED_YET","Server not started yet."); + +//COPYRIGHT +define("TRAVIAN_COPYRIGHT","TravianX 100% Open Source Travian Clone."); + +//BUILD.TPL +define("CUR_PROD","Current production"); +define("NEXT_PROD","Production at level "); + +//BUILDINGS +define("B1","Woodcutter"); +define("B1_DESC","The Woodcutter cuts down trees in order to produce lumber. The further you extend the bid1 the more lumber is produced by him."); +define("B2","Clay Pit"); +define("B2_DESC","Clay is produced here. By increasing its level you increase its clay production."); +define("B3","Iron Mine"); +define("B3_DESC","Here miners produce the precious resource iron. By increasing the mine`s level you increase its iron production."); +define("B4","Cropland"); +define("B4_DESC","Your population`s food is produced here. By increasing the farm`s level you increase its crop production."); + +//DORF1 +define("LUMBER","Lumber"); +define("CLAY","Clay"); +define("IRON","Iron"); +define("CROP","Crop"); +define("LEVEL","Level"); +define("CROP_COM",CROP." consumption"); +define("PER_HR","per hour"); +define("PROD_HEADER","Production"); +define("MULTI_V_HEADER","Villages"); +define("ANNOUNCEMENT","Announcement"); +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("DONE_AT","done at"); +define("CANCEL","cancel"); +define("LOYALTY","Loyalty:"); +define("CALCULATED_IN","Calculated in"); +define("SEVER_TIME","Server time:"); + +//QUEST +define("Q_CONTINUE","Continue with the next task."); +define("Q_REWARD","Your reward:"); +define("Q0","Welcome to "); +define("Q0_DESC","As I see you have been made chieftain of this little village. I will be your counselor for the first few days and never leave your (right hand) side."); +define("Q0_OPT1","To the first task."); +define("Q0_OPT2","Look around on your own."); +define("Q0_OPT3","Play no tasks."); + +define("Q1","Task 1: Woodcutter"); +define("Q1_DESC","There are four green forests around your village. Construct a woodcutter on one of them. Lumber is an important resource for our new settlement."); +define("Q1_ORDER","Order:<\/p>Construct a woodcutter."); +define("Q1_RESP","Yes, that way you gain more lumber.I helped a bit and completed the order instantly."); +define("Q1_REWARD","Woodcutter instantly completed."); + +define("Q2","Task 2: Crop"); +define("Q2_DESC","Now your subjects are hungry from working all day. Extend a cropland to improve your subjects' supply. Come back here once the building is complete."); +define("Q2_ORDER","Order:<\/p>Extend one cropland."); +define("Q2_RESP","Very good. Now your subjects have enough to eat again..."); + +define("Q3","Task 3: Your Village's Name"); +define("Q3_DESC","Creative as you are you can grant your village the ultimate name.\r\n

    \r\nClick on 'profile' in the left hand menu and then select 'change profile'..."); +define("Q3_ORDER","Order:<\/p>Change your village's name to something nice."); +define("Q3_RESP","Wow, a great name for their village. It could have been the name of my village!..."); + +define("Q4","Task 4: Other Players"); +define("Q4_DESC","In ". SERVER_NAME ." you play along with billions of other players. Click 'statistics' in the top menu to look up your rank and enter it here."); +define("Q4_ORDER","Order:<\/p>Look for your rank in the statistics and enter it here."); +define("Q4_BUTN","complete task"); +define("Q4_RESP","Exactly! That's your rank."); + +define("Q5","Task 5: Two Building Orders"); +define("Q5_DESC","Build an iron mine and a clay pit. Of iron and clay one can never have enough."); +define("Q5_ORDER","Order:<\/p>
    + +
    + \ No newline at end of file diff --git a/Templates/Build/1.tpl b/Templates/Build/1.tpl new file mode 100644 index 00000000..21aaef67 --- /dev/null +++ b/Templates/Build/1.tpl @@ -0,0 +1,25 @@ +
    +

    resarray['f'.$id]; ?>

    +

    + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + + +
    :resarray['f'.$id]]['prod']* SPEED; ?>
    resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['prod']* SPEED; ?>
    + +

    diff --git a/Templates/Build/10.tpl b/Templates/Build/10.tpl new file mode 100644 index 00000000..23e82c45 --- /dev/null +++ b/Templates/Build/10.tpl @@ -0,0 +1,27 @@ +
    +

    Warehouse Level resarray['f'.$id]; ?>

    +

    The resources wood, clay and iron are stored in your Warehouse. By increasing its level you increase your Warehouse's capacity. .

    + + + + + + + + +isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current capacity:resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?> units
    Capacity at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']*STORAGE_MULTIPLIER; ?> units
    + +

    diff --git a/Templates/Build/11.tpl b/Templates/Build/11.tpl new file mode 100644 index 00000000..45db7a26 --- /dev/null +++ b/Templates/Build/11.tpl @@ -0,0 +1,28 @@ +
    +

    Granary Level resarray['f'.$id]; ?>

    +

    Crop produced by your farms is stored in the Granary. By increasing its level you increase the Granary's capacity.

    + + + + + + + + + +isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current capacity:resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?> units
    Capacity at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']*STORAGE_MULTIPLIER; ?> units
    + +

    diff --git a/Templates/Build/12.tpl b/Templates/Build/12.tpl new file mode 100644 index 00000000..a79e2abf --- /dev/null +++ b/Templates/Build/12.tpl @@ -0,0 +1,16 @@ +
    +

    Blacksmith Level resarray['f'.$id]; ?>

    +

    In the blacksmith's melting furnaces your warriors' weapons are enhanced. By increasing its level you can order the fabrication of even better weapons. +getTypeLevel(12) > 0) { + include("12_upgrades.tpl"); + } else { + echo "

    Upgrades can commence when blacksmith is completed.
    \n"; + } +include("upgrade.tpl"); +?> +

    +
    diff --git a/Templates/Build/12_upgrades.tpl b/Templates/Build/12_upgrades.tpl new file mode 100644 index 00000000..501db088 --- /dev/null +++ b/Templates/Build/12_upgrades.tpl @@ -0,0 +1,78 @@ + + + + + + + + + + getABTech($village->wid); + $ABups = $technology->getABUpgrades('b'); + for($i=($session->tribe*10-9);$i<=($session->tribe*10-2);$i++) { + $j = $i % 10 ; + if ( $technology->getTech($i) || $j == 1 ) { + echo ""; + } + else if(${'ab'.$i}[$abdata['b'.$j]+1]['wood'] > $village->maxstore || ${'ab'.$i}[$abdata['b'.$j]+1]['clay'] > $village->maxstore || ${'ab'.$i}[$abdata['b'.$j]+1]['iron'] > $village->maxstore) { + echo ""; + } + else if (${'ab'.$i}[$abdata['b'.$j]+1]['crop'] > $village->maxcrop) { + echo ""; + } + else if (${'ab'.$i}[$abdata['b'.$j]+1]['wood'] > $village->awood || ${'ab'.$i}[$abdata['b'.$j]+1]['clay'] > $village->aclay || ${'ab'.$i}[$abdata['b'.$j]+1]['iron'] > $village->airon || ${'ab'.$i}[$abdata['b'.$j]+1]['crop'] > $village->acrop) { + if($village->getProd("crop")>0 || $village->acrop > ${'ab'.$i}[$abdata['b'.$j]+1]['crop']){ + $time = $technology->calculateAvaliable(12,${'ab'.$i}[$abdata['b'.$j]+1]); + echo "
    Enough resources ".$time[0]." at ".$time[1].""; + } else { + echo "
    Crop production is negative so you will never reach the required resources"; + } + echo ""; + } + else if ($building->getTypeLevel(12) <= $abdata['b'.$j]) { + echo ""; + } + else if (count($ABups) > 0) { + echo ""; + } + else if($session->access != BANNED){ + echo ""; + }else{ + echo ""; + } + } + } + ?> + +
    BlacksmithAction
    +\"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> +".$technology->getUnitName($i)." (Level ".$abdata['b'.$j].") +
    "; + if($abdata['b'.$j] != 20) { +echo "
    \"Lumber\"".${'ab'.$i}[$abdata['b'.$j]+1]['wood']."|\"Clay\"".${'ab'.$i}[$abdata['b'.$j]+1]['clay']."|\"Iron\"".${'ab'.$i}[$abdata['b'.$j]+1]['iron']."|\"Crop\"".${'ab'.$i}[$abdata['b'.$j]+1]['crop']."|\"duration\""; + echo $generator->getTimeFormat(round(${'ab'.$i}[$abdata['b'.$j]+1]['time']*($bid12[$building->getTypeLevel(12)]['attri'] / 100)/SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|\"NPC"; + } + } + if($abdata['b'.$j] == 20) { + echo "
    Maximum
    level
    Expand
    warehouse
    Expand
    granary
    Too few
    resources
    Upgrade
    blacksmith
    Upgrade in
    progress
    mchecker."\">Upgrade
    Upgrade
    + + 0) { + echo " +"; + $timer = 1; + foreach($ABups as $black) { + $unit = ($session->tribe-1)*10 + substr($black['tech'],1,2); + echo ""; + echo ""; + $date = $generator->procMtime($black['timestamp']); + echo ""; + echo ""; + $timer +=1; + } + echo "
    UpgradingDurationComplete
    \"".$technology-getUnitName($unit)."\" title=\"".$technology->getUnitName($unit)."\" />".$technology->getUnitName($unit)."".$generator->getTimeFormat($black['timestamp']-time())."".$date[1]." hrs
    "; + } +?> diff --git a/Templates/Build/13.tpl b/Templates/Build/13.tpl new file mode 100644 index 00000000..f50925fc --- /dev/null +++ b/Templates/Build/13.tpl @@ -0,0 +1,16 @@ +
    +

    Armoury Level resarray['f'.$id]; ?>

    +

    In the armoury's melting furnaces your warriors' armour is enhanced. By increasing its level you can order the fabrication of even better armour. +getTypeLevel(13) > 0) { + include("13_upgrades.tpl"); + } else { + echo "

    Upgrades can commence when armoury is completed.
    \n"; + } +include("upgrade.tpl"); +?> +

    +
    diff --git a/Templates/Build/13_upgrades.tpl b/Templates/Build/13_upgrades.tpl new file mode 100644 index 00000000..1770a66e --- /dev/null +++ b/Templates/Build/13_upgrades.tpl @@ -0,0 +1,78 @@ + + + + + + + + + + getABTech($village->wid); + $ABups = $technology->getABUpgrades('a'); + for($i=($session->tribe*10-9);$i<=($session->tribe*10-2);$i++) { + $j = $i % 10 ; + if ( $technology->getTech($i) || $j == 1 ) { + echo ""; + } + else if(${'ab'.$i}[$abdata['a'.$j]+1]['wood'] > $village->maxstore || ${'ab'.$i}[$abdata['a'.$j]+1]['clay'] > $village->maxstore || ${'ab'.$i}[$abdata['a'.$j]+1]['iron'] > $village->maxstore) { + echo ""; + } + else if (${'ab'.$i}[$abdata['a'.$j]+1]['crop'] > $village->maxcrop) { + echo ""; + } + else if (${'ab'.$i}[$abdata['a'.$j]+1]['wood'] > $village->awood || ${'ab'.$i}[$abdata['a'.$j]+1]['clay'] > $village->aclay || ${'ab'.$i}[$abdata['a'.$j]+1]['iron'] > $village->airon || ${'ab'.$i}[$abdata['a'.$j]+1]['crop'] > $village->acrop) { + if($village->getProd("crop")>0 || $village->acrop > ${'ab'.$i}[$abdata['a'.$j]+1]['crop']){ + $time = $technology->calculateAvaliable(13,${'ab'.$i}[$abdata['a'.$j]+1]); + echo "
    Enough resources ".$time[0]." at ".$time[1].""; + } else { + echo "
    Crop production is negative so you will never reach the required resources"; + } + echo ""; + } + else if ($building->getTypeLevel(13) <= $abdata['a'.$j]) { + echo ""; + } + else if (count($ABups) > 0) { + echo ""; + } + else if($session->access != BANNED){ + echo ""; + }else{ + echo ""; + } + } + } + ?> + +
    ArmouryAction
    +\"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> +".$technology->getUnitName($i)." (Level ".$abdata['a'.$j].") +
    "; + if($abdata['a'.$j] != 20) { +echo "
    \"Lumber\"".${'ab'.$i}[$abdata['a'.$j]+1]['wood']."|\"Clay\"".${'ab'.$i}[$abdata['a'.$j]+1]['clay']."|\"Iron\"".${'ab'.$i}[$abdata['a'.$j]+1]['iron']."|\"Crop\"".${'ab'.$i}[$abdata['a'.$j]+1]['crop']."|\"duration\""; + echo $generator->getTimeFormat(round(${'ab'.$i}[$abdata['a'.$j]+1]['time']*($bid13[$building->getTypeLevel(13)]['attri'] / 100)/SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|\"NPC"; + } + } + if($abdata['a'.$j] == 20) { + echo "
    Maximum
    level
    Expand
    warehouse
    Expand
    granary
    Too few
    resources
    Upgrade
    armoury
    Upgrade in
    progress
    mchecker."\">Upgrade
    Upgrade
    + + 0) { + echo " +"; + $timer = 1; + foreach($ABups as $arms) { + $unit = ($session->tribe-1)*10 + substr($arms['tech'],1,2); + echo ""; + echo ""; + $date = $generator->procMtime($arms['timestamp']); + echo ""; + echo ""; + $timer +=1; + } + echo "
    UpgradingDurationComplete
    \"".$technology-getUnitName($unit)."\" title=\"".$technology->getUnitName($unit)."\" />".$technology->getUnitName($unit)."".$generator->getTimeFormat($arms['timestamp']-time())."".$date[1]." hrs
    "; + } +?> diff --git a/Templates/Build/14.tpl b/Templates/Build/14.tpl new file mode 100644 index 00000000..8548cdf2 --- /dev/null +++ b/Templates/Build/14.tpl @@ -0,0 +1,27 @@ +
    +

    Tournament Square Level resarray['f'.$id]; ?>

    +

    At the Tournament Square your troops can train their stamina. The further the building is upgraded the faster your troops are beyond a minimum distance of squares.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current speed bonus:resarray['f'.$id]]['attri']; ?> Percent
    Speed bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    diff --git a/Templates/Build/15.tpl b/Templates/Build/15.tpl new file mode 100644 index 00000000..a3ba3a6d --- /dev/null +++ b/Templates/Build/15.tpl @@ -0,0 +1,31 @@ +
    +

    Main Building Level resarray['f'.$id]; ?>

    +

    In the main building the village's master builders live. The higher its level the faster your master builders complete the construction of new buildings.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current construction time:resarray['f'.$id]]['attri']); ?> Percent
    Construction time at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']); ?> Percent
    + +resarray['f'.$id] >= 10){ + include("Templates/Build/15_1.tpl"); +} +include("upgrade.tpl"); +?> +

    diff --git a/Templates/Build/15_1.tpl b/Templates/Build/15_1.tpl new file mode 100644 index 00000000..ca79db1a --- /dev/null +++ b/Templates/Build/15_1.tpl @@ -0,0 +1,39 @@ +delDemolition($village->wid); + header("Location: build.php?gid=15&cancel=0&demolish=0"); +} + +if(!empty($_REQUEST["demolish"]) && $_REQUEST["c"] == $session->mchecker) { + if($_REQUEST["type"] != null) { + $type = $_REQUEST['type']; + $database->addDemolition($village->wid,$type); + $session->changeChecker(); + header("Location: build.php?gid=15&cancel=0&demolish=0"); + } +} + +if($village->resarray['f'.$id] >= DEMOLISH_LEVEL_REQ) { + echo "

    Demolition of the building:

    If you no longer need a building, you can order the demolition of the building.

    "; + $VillageResourceLevels = $database->getResourceLevel($village->wid); + $DemolitionProgress = $database->getDemolition($village->wid); + if (!empty($DemolitionProgress)) { + $Demolition = $DemolitionProgress[0]; + echo ""; + echo "cancel "; + echo "Demolition of ".$building->procResType($VillageResourceLevels['f'.$Demolition['buildnumber'].'t']).": ".$generator->getTimeFormat($Demolition['timetofinish']-time()).""; + echo ""; + } else { + echo " +
    mchecker."\" method=\"POST\" style=\"display:inline\"> +
    "; + } +} +?> diff --git a/Templates/Build/16.tpl b/Templates/Build/16.tpl new file mode 100644 index 00000000..b484f9ed --- /dev/null +++ b/Templates/Build/16.tpl @@ -0,0 +1,120 @@ +
    +

    Rally point level resarray['f'.$id]; ?>

    +

    Your village's troops meet here. From here you can send them out to conquer, raid or reinforce other villages.

    + + + +getMovement("34",$village->wid,1); + +$units_incoming = count($units_type); +for($i=0;$i<$units_incoming;$i++){ + if($units_type[$i]['attack_type'] == 1) + $units_incoming -= 1; +} +if($units_incoming >= 1){ +?> +

    Incoming troops ()

    + + +

    Troops in the village

    + + + + + + +
    vname; ?>"> + Own troops
    + + enforcetome) > 0) { + foreach($village->enforcetome as $enforce) { + echo " + "; + $tribe = $database->getUserField($database->getVillageField($enforce['from'],"owner"),"tribe",0); + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + echo ""; + for($i=$start;$i<=($start+9);$i++) { + if($enforce['u'.$i] == 0) { + echo ""; + } + echo " + "; + + echo "
    + getMapCheck($enforce['from'])."\">".$database->getVillageField($enforce['from'],"name").""; + echo "getVillageField($enforce['from'],"owner")."\">".$database->getUserField($database->getVillageField($enforce['from'],"owner"),"username",0)." troops"; + echo "
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
    Troops"; + } + else { + echo ""; + } + echo $enforce['u'.$i]."
    Upkeep
    ".$technology->getUpkeep($enforce,$tribe)."\"Crop\"per hour
    "; + } + } + if(count($village->enforcetoyou) > 0) { + echo "

    Troops in other village

    "; + foreach($village->enforcetoyou as $enforce) { + echo " + "; + $tribe = $database->getUserField($database->getVillageField($enforce['from'],"owner"),"tribe",0); + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + echo ""; + for($i=$start;$i<=($start+9);$i++) { + if($enforce['u'.$i] == 0) { + echo ""; + } + echo " + "; + + echo "
    + getMapCheck($enforce['vref'])."\">".$database->getVillageField($enforce['vref'],"name").""; + echo "getVillageField($enforce['from'],"owner")."\">".$database->getUserField($database->getVillageField($enforce['from'],"owner"),"username",0)." troops"; + echo "
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
    Troops"; + } + else { + echo ""; + } + echo $enforce['u'.$i]."
    Upkeep
    ".$technology->getUpkeep($enforce,$tribe)."\"Crop\"per hour
    "; + } + } + ?> + +getMovement("3",$village->wid,0); +$settlers = $database->getMovement("5",$village->wid,0); +$units_incoming = count($units_type); +for($i=0;$i<$units_incoming;$i++){ + if($units_type[$i]['vref'] != $village->wid) + $units_incoming -= 1; +} +$units_incoming += count($settlers); + +if($units_incoming >= 1){ + echo "

    Troops on their way

    "; + include("16_walking.tpl"); +} + +include("upgrade.tpl"); +?> +

    diff --git a/Templates/Build/16_incomming.tpl b/Templates/Build/16_incomming.tpl new file mode 100644 index 00000000..e8e76959 --- /dev/null +++ b/Templates/Build/16_incomming.tpl @@ -0,0 +1,134 @@ +getMovement("34",$village->wid,1); +$total_for = count($units); + +for($y=0;$y < $total_for;$y++){ +$timer = $y+1; +if ($units[$y]['sort_type']==3){ + if ($units[$y]['attack_type']==3){ + $actionType = "Attack on "; + } else if ($units[$y]['attack_type']==4){ + $actionType = "Raid on "; + } + + if($units[$y]['attack_type'] != 1){ + echo " + "; + $tribe = $database->getUserField($database->getVillageField($units[$y]['from'],"owner"),"tribe",0); + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + echo ""; + for($i=$start;$i<=($end);$i++) { + $tribe1 = $tribe-1; + $totalunits = $units[$y]['t'.$tribe1*10+1]+$units[$y]['t'.$tribe1*10+2]+$units[$y]['t'.$tribe1*10+3]+$units[$y]['t'.$tribe1*10+4]+$units[$y]['t'.$tribe1*10+5]+$units[$y]['t'.$tribe1*10+6]+$units[$y]['t'.$tribe1*10+7]+$units[$y]['t'.$tribe1*10+8]+$units[$y]['t'.$tribe1*10+9]+$units[$y]['t'.$tribe1*10+10]; + if($totalunits > $building->getTypeLevel(16)){ + echo ""; + }else{ + if($units[$y]['t'.$i] == 0) { + echo ""; + }else{ + echo ""; + } + } + } + echo ""; + echo ' + + + + + + "; + echo "
    + getMapCheck($units[$y]['from'])."\">".$database->getVillageField($units[$y]['from'],"name").""; + echo "getVillageField($units[$y]['from'],"owner")."\">".$database->getUserField($database->getVillageField($units[$y]['from'],"owner"),"username",0)."'s troops"; + echo "
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
    Troops?0?
    Arrival +
    '.$generator->getTimeFormat($units[$y]['endtime']-time()).' h
    '; + $datetime = $generator->procMtime($units[$y]['endtime']); + echo "
    "; + if($datetime[0] != "today") { + echo "on ".$datetime[0]." "; + } + echo "at ".$datetime[1]."
    + +
    "; + } +}else if ($units[$y]['sort_type']==4){ + if ($units[$y]['attack_type']==1){ + $actionType = "Return from "; + } else if ($units[$y]['attack_type']==2){ + $actionType = "Reinforment for "; + } else if ($units[$y]['attack_type']==3){ + $actionType = "Return from "; + } else if ($units[$y]['attack_type']==4){ + $actionType = "Return from "; + } + + +$to = $database->getMInfo($units[$y]['vref']); +?> + + + + + + + + + tribe; + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + if($units[$y]['t11'] != 0) { + echo ""; + } + ?> + + + ?"; + } + else { + echo ""; + } + ?> + + + + + + + +
    vname; ?>">
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
    Troops"; + } + echo $units[$y]['t'.$i]."
    Arrival"> + ".$generator->getTimeFormat($units[$y]['endtime']-time())." h"; + $datetime = $generator->procMtime($units[$y]['endtime']); + echo "
    "; + if($datetime[0] != "today") { + echo "on ".$datetime[0]." "; + } + echo "at ".$datetime[1]."
    "; + ?> + +
    + diff --git a/Templates/Build/16_troops.tpl b/Templates/Build/16_troops.tpl new file mode 100644 index 00000000..0db9460c --- /dev/null +++ b/Templates/Build/16_troops.tpl @@ -0,0 +1,34 @@ + tribe; + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo " "; + for($i=$start;$i<=($end);$i++) { + echo "getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; + } + if($village->unitarray['hero'] != 0) { + echo "\"Hero\""; + } + + ?> + Troops + unitarray['u'.$i] == 0) { + echo ""; + } + else { + echo ""; + } + echo $village->unitarray['u'.$i].""; + } + + if($village->unitarray['hero'] != 0) { + echo ""; + echo $village->unitarray['hero'].""; + } + + ?> + + Upkeep + ">getUpkeep($village->unitarray,0); ?>Cropper hour diff --git a/Templates/Build/16_walking.tpl b/Templates/Build/16_walking.tpl new file mode 100644 index 00000000..4c3ce716 --- /dev/null +++ b/Templates/Build/16_walking.tpl @@ -0,0 +1,150 @@ +getMovement(3,$village->wid,0); +$total_for = count($units); + +for($y=0;$y<$total_for;$y++){ +$timer += 1; + +if($units[$y]['attack_type'] == 2){ + $attack_type = "Reinforcing"; + } +if($units[$y]['attack_type'] == 1){ + $attack_type = "Scouting"; + } +if($units[$y]['attack_type'] == 3){ + $attack_type = "Attack to"; + } +if($units[$y]['attack_type'] == 4){ + $attack_type = "Raid to"; + } +$isoasis = $database->isVillageOases($units[$y]['to']); +if ($isoasis ==0){ +$to = $database->getMInfo($units[$y]['to']); +} else { +$to = $database->getOMInfo($units[$y]['to']);} + + +?> + + + + + + + + + "; + for($i=($session->tribe-1)*10+1;$i<=$session->tribe*10;$i++) { + echo ""; + } + if($units[$y]['t11'] != 0) { + echo ""; + } + ?> + + + "; + } + else { + echo ""; + } + ?> + + + + + + + +
    vname; ?>">
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
    Troops"; + } + echo $units[$y]['t'.$i]."
    Arrival"> + ".$generator->getTimeFormat($units[$y]['endtime']-time())." h"; + $datetime = $generator->procMtime($units[$y]['endtime']); + echo "
    "; + if($datetime[0] != "today") { + echo "on ".$datetime[0]." "; + } + echo "at ".$datetime[1]."
    "; + ?> + + +
    + + + getMovement(5,$village->wid,0); + if($settlers){ + $total_for = count($settlers); + +for($y=0;$y<$total_for;$y++){ +$timer += 1; + +?> + + + + + + + + + tribe; + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + ?> + + + "; + } + else { + echo ""; + } + ?> + + + + + + + +
    vname; ?>Found new village.
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
    Troops"; + } + echo $units[$y]['t'.$i]."
    Arrival"> + ".$generator->getTimeFormat($settlers[$y]['endtime']-time())." h"; + $datetime = $generator->procMtime($settlers[$y]['endtime']); + echo "
    "; + if($datetime[0] != "today") { + echo "on ".$datetime[0]." "; + } + echo "at ".$datetime[1]."
    "; + ?> + + +
    + diff --git a/Templates/Build/17.tpl b/Templates/Build/17.tpl new file mode 100644 index 00000000..bd1bef40 --- /dev/null +++ b/Templates/Build/17.tpl @@ -0,0 +1,174 @@ +
    +

    Marketplace level resarray['f'.$id]; ?>

    +

    At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time. +

    + + + +
    + + + + + + + + + + + + + + + + + + + + + + +
    + Lumber + + Lumber: + + + + (maxcarry; ?>) +
    + Clay + + Clay: + + + + (maxcarry; ?>) +
    + Iron + + Iron: + + + + (maxcarry; ?>) +
    + Crop + + Crop: + + + + (maxcarry; ?>) +
    + + + + + + + + + + + +getCoor($_GET['z']); +} +else{ +$coor['x'] = ""; +$coor['y'] = ""; +} +?> + + +
    Merchants merchantAvail(); ?>/merchant; ?>
    + Villages: + +
    or
    + X: + Y: +
    +

    merchantAvail()) { echo "DISABLED"; }?>/>

    +

    Each merchant can carry maxcarry; ?> units of resource

    +recieving) > 0) { +echo "

    Merchants coming:

    "; + foreach($market->recieving as $recieve) { + echo ""; + $villageowner = $database->getVillageField($recieve['from'],"owner"); + echo ""; + echo ""; + echo ""; + echo "
    ".$database->getUserField($villageowner,"username",0)."getMapCheck($recieve['from'])."\">Transport from ".$database->getVillageField($recieve['from'],"name")."
    Arrival in"; + echo "
    ".$generator->getTimeFormat($recieve['endtime']-time())." h
    "; + $datetime = $generator->procMtime($recieve['endtime']); + echo "
    "; + if($datetime[0] != "today") { + echo "on ".$datetime[0]." "; + } + echo "at ".$datetime[1]."
    "; + echo "
    Resource "; + echo "\"Lumber\"".$recieve['wood']." | \"Clay\"".$recieve['clay']." | \"Iron\"".$recieve['iron']." | \"Crop\"".$recieve['crop']."
    "; + $timer +=1; + } +} +if(count($market->sending) > 0) { + echo "

    Own merchants on the way:

    "; + foreach($market->sending as $send) { + $villageowner = $database->getVillageField($send['to'],"owner"); + $ownername = $database->getUserField($villageowner,"username",0); + echo ""; + echo ""; + echo ""; + echo ""; + echo "
    $ownernamegetMapCheck($send['to'])."\">Transport to ".$database->getVillageField($send['to'],"name")."
    Arrival in "; + echo "
    ".$generator->getTimeFormat($send['endtime']-time())." h
    "; + $datetime = $generator->procMtime($send['endtime']); + echo "
    "; + if($datetime[0] != "today") { + echo "on ".$datetime[0]." "; + } + echo "at ".$datetime[1]."
    "; + echo "
    Resource"; + echo "\"Lumber\"".$send['wood']." | \"Clay\"".$send['clay']." | \"Iron\"".$send['iron']." | \"Crop\"".$send['crop']."
    "; + $timer += 1; + } +} +if(count($market->return) > 0) { + echo "

    Merchants returning:

    "; + foreach($market->return as $return) { + $villageowner = $database->getVillageField($return['from'],"owner"); + $ownername = $database->getUserField($villageowner,"username",0); + echo ""; + echo ""; + echo ""; + echo ""; + echo "
    $ownernamegetMapCheck($return['from'])."\">Return from ".$database->getVillageField($return['from'],"name")."
    Arrival in "; + echo "
    ".$generator->getTimeFormat($return['endtime']-time())." h
    "; + $datetime = $generator->procMtime($return['endtime']); + echo "
    "; + if($datetime[0] != "today") { + echo "on ".$datetime[0]." "; + } + echo "at ".$datetime[1]."
    "; + echo "
    "; + $timer += 1; + } +} +include("upgrade.tpl"); +?> +

    diff --git a/Templates/Build/17_1.tpl b/Templates/Build/17_1.tpl new file mode 100644 index 00000000..90063874 --- /dev/null +++ b/Templates/Build/17_1.tpl @@ -0,0 +1,134 @@ + + +
    +

    Marketplace level resarray['f'.$id]; ?>

    +

    At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time. +

    + +plus) { +?> + + + + + + + + + +
    I'm searching
    >Lumber>Clay>Iron>Crop
    + + + + + +
    >1:1
    >1:x
    + + + + + + + + + +
    I'm offering
    >Lumber>Clay>Iron>Crop
    + +
    + + + + + + + + + + + +onsale) > 0) { +for($i=0+$u;$i<=40+$u;$i++) { +if(isset($market->onsale[$i])) { +echo ""; + echo ""; + if(($market->onsale[$i]['wtype'] == 1 && $village->awood <= $market->onsale[$i]['wamt']) ||($market->onsale[$i]['wtype'] == 2 && $village->aclay <= $market->onsale[$i]['wamt']) ||($market->onsale[$i]['wtype'] == 3 && $village->airon <= $market->onsale[$i]['wamt']) ||($market->onsale[$i]['wtype'] == 4 && $village->acrop <= $market->onsale[$i]['wamt'])) { + echo ""; + } + else if($reqMerc > $market->merchantAvail()) { + echo ""; + } + else if($session->access != BANNED){ + echo ""; + }else{ + echo ""; + } + echo""; + } +} +} +else { +echo ""; +} +?> + +
    Offers at the marketplace
    Offered +
    to me
    Wanted +
    from me
    PlayerDurationAction
    "; +$reqMerc = 1; +if($market->onsale[$i]['wamt'] > $market->maxcarry) { + $reqMerc = round($market->onsale[$i]['wamt']/$market->maxcarry); + if($market->onsale[$i]['wamt'] > $market->maxcarry*$reqMerc) { + $reqMerc += 1; + } + } +switch($market->onsale[$i]['gtype']) { + case 1: echo "\"Wood\""; break; + case 2: echo "\"Clay\""; break; + case 3: echo "\"Iron\""; break; + case 4: echo "\"Crop\""; break; + } + echo $market->onsale[$i]['gamt']; + echo " "; + switch($market->onsale[$i]['wtype']) { + case 1: echo "\"Wood\""; break; + case 2: echo "\"Clay\""; break; + case 3: echo "\"Iron\""; break; + case 4: echo "\"Crop\""; break; + } + echo $market->onsale[$i]['wamt']; + echo "getVillageField($market->onsale[$i]['vref'],"name")."\">"; + echo "onsale[$i]['vref']."&c=".$generator->getMapCheck($market->onsale[$i]['vref'])."\">".$database->getUserField($database->getVillageField($market->onsale[$i]['vref'],"owner"),"username",0)."".$generator->getTimeFormat($market->onsale[$i]['duration'])."Not Enough Resource
    Not Enough Merchant
    mchecker."&g=".$market->onsale[$i]['id']."\">Accept offerAccept offer
    There are no avaliable offers on the market
    + +onsale) < 40) { + echo "«»"; + } + else if (!isset($_GET['u']) && count($market->onsale) > 40) { + echo "«&t=1&u=40\">»"; + } + else if(isset($_GET['u']) && count($market->onsale) > $_GET['u']) { + if(count($market->onsale) > ($_GET['u']+40) && $_GET['u']-40 < count($market->onsale) && $_GET['u'] != 0) { + echo "&t=1&u=".($_GET['u']-40)."\">«&t=1&u=".($_GET['u']+40)."\">»"; + } + else if(count($market->onsale) > $_GET['u']+40) { + echo "«&t=1&u=".($_GET['u']+40)."\">»"; + } + else { + echo "&t=1&u=".($_GET['u']-40)."\">«»"; + } + } +?> +
    \ No newline at end of file diff --git a/Templates/Build/17_2.tpl b/Templates/Build/17_2.tpl new file mode 100644 index 00000000..d8ac59ad --- /dev/null +++ b/Templates/Build/17_2.tpl @@ -0,0 +1,89 @@ +
    +

    Marketplace level resarray['f'.$id]; ?>

    +

    At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time. +

    + + +
    + + + + + + + + + + + + + + + + +
    Offering + + max. time of transport: hours
    Searching + + + userinfo['alliance'] != 0) { + echo " own alliance only"; + } + ?> +

    Merchants: merchantAvail(); ?>/merchant; ?>

    merchantAvail()) { echo "DISABLED"; }?>/>

    +onmarket) > 0) { + echo " +"; + foreach($market->onmarket as $offer) { + if($session->access != BANNED){ + echo ""; + echo ""; + echo ""; + } + echo "
    Own offers
     OfferSearchMerchantsAllianceDuration
    \"Delete\""; + }else{ + echo "
    \"Delete\""; + } + switch($offer['gtype']) { + case 1: echo "\"Wood\""; break; + case 2: echo "\"Clay\""; break; + case 3: echo "\"Iron\""; break; + case 4: echo "\"Crop\""; break; + } + echo $offer['gamt']; + echo ""; + switch($offer['wtype']) { + case 1: echo "\"Wood\""; break; + case 2: echo "\"Clay\""; break; + case 3: echo "\"Iron\""; break; + case 4: echo "\"Crop\""; break; + } + echo $offer['wamt']; + echo "1"; + echo ($offer['alliance'] == 0)? 'No' : 'Yes'; + echo ""; + if($offer['maxtime'] != 0) { + echo $offer['maxtime']/3600; + echo " hrs."; + } + else { + echo "All"; + } + echo "
    "; +} +?> +
    \ No newline at end of file diff --git a/Templates/Build/17_3.tpl b/Templates/Build/17_3.tpl new file mode 100644 index 00000000..ef82ff0b --- /dev/null +++ b/Templates/Build/17_3.tpl @@ -0,0 +1,259 @@ +
    +

    Marketplace level resarray['f'.$id]; ?>

    +

    At the Marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time. +

    + + + +

    NPC completed. Cost 3Gold

    +Back to building + + +

    With the NPC merchant you can distribute the resources in your warehouse as you desire.

    +The first line shows the current stock. In the second line you can choose another distribution. The third line shows the difference between the old and new stock.

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    NPC Trade
    + Lumber + awood); ?> + + Clay + aclay); ?> + + Iron + airon); ?> + + Crop + acrop); ?> + Sum: awood+$village->acrop+$village->airon+$village->aclay); ?>
    + /> + + + /> + + + /> + + + /> + + Sum: 
    + awood); ?> + + aclay); ?> + + airon); ?> + + acrop); ?> + Rest:  + awood+$village->acrop+$village->airon+$village->aclay)-($_GET['r1']+$_GET['r2']+$_GET['r3']+$_GET['r4']); + } else { echo floor($village->awood+$village->acrop+$village->airon+$village->aclay); } ?>
    +

    + userinfo['gold'] > 3) { ?>Trade resources at (step 2 of 2) (Costs: Gold3)Trade resources at (step 2 of 2) (Costs: Gold3)"; }?>

    +

    +
    + + + +
    \ No newline at end of file diff --git a/Templates/Build/17_menu.tpl b/Templates/Build/17_menu.tpl new file mode 100644 index 00000000..b2c09223 --- /dev/null +++ b/Templates/Build/17_menu.tpl @@ -0,0 +1,11 @@ +
    + ">Send Resouces + | >Buy + | >Offer + userinfo['gold'] > 3) { + ?> + | >NPC trading + +
    \ No newline at end of file diff --git a/Templates/Build/18.tpl b/Templates/Build/18.tpl new file mode 100644 index 00000000..969c672c --- /dev/null +++ b/Templates/Build/18.tpl @@ -0,0 +1,72 @@ +
    +

    Embassy Level resarray['f'.$id]; ?>

    +

    The embassy is a place for diplomats. The higher its level the more options the king gains.

    + +resarray['f'.$id] >= 3 && $session->alliance == 0) { +include("18_create.tpl"); +} +if($session->alliance != 0) { +echo " + + + + + + + + + + + + + + + + + + + + +
    Alliance
    Tag".$alliance->allianceArray['tag']."
    Name".$alliance->allianceArray['name']."
     » to the alliance
    "; + } + else { + ?> + + + + + + + + + + gotInvite) { + foreach($alliance->inviteArray as $invite) { + if($session->access!=BANNED){ + echo " + + "; + }else{ + echo " + + "; + } + } + } + else { + echo ""; + } + ?> +
    join alliance
    \"refuse\" ".$database->getAllianceName($invite['alliance'])." accept\"refuse\" ".$database->getAllianceName($invite['alliance'])." acceptThere are no invitations available.
    + gotInvite) { + echo "

    "; + } + } +include("upgrade.tpl"); +?> +

    diff --git a/Templates/Build/18_create.tpl b/Templates/Build/18_create.tpl new file mode 100644 index 00000000..793802f5 --- /dev/null +++ b/Templates/Build/18_create.tpl @@ -0,0 +1,59 @@ +access!=BANNED){ ?> + + + + + + + + + + + + + + + + +
    found alliance
    Tag + " maxlength="8"> + getError("ally1"); ?> + +
    Name + " maxlength="25"> + getError("ally2"); ?> +
    + +

    + + +
    + + + + + + + + + + + + + + + +
    found alliance
    Tag + " maxlength="8"> + getError("ally1"); ?> + +
    Name + " maxlength="25"> + getError("ally2"); ?> +
    +
    + \ No newline at end of file diff --git a/Templates/Build/19.tpl b/Templates/Build/19.tpl new file mode 100644 index 00000000..28bed4a4 --- /dev/null +++ b/Templates/Build/19.tpl @@ -0,0 +1,60 @@ +
    +

    Barracks level resarray['f'.$id]; ?>

    +

    All foot soldiers are trained in the barracks. The higher the level of the barracks, the faster the troops are trained.

    + +getTypeLevel(19) > 0) { ?> + + + + + + + + + +
    NameQuantityMax
    +

    + Training can commence when barracks are completed.
    \n"; + } + $trainlist = $technology->getTrainingList(1); + if(count($trainlist) > 0) { + //$timer = 2*count($trainlist); + echo " + + + + + + + "; + $TrainCount = 0; + foreach($trainlist as $train) { + $TrainCount++; + echo " +
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\""; + echo $train['amt']." ".$train['name'].""; + if ($TrainCount == 1 ) { + $NextFinished = $generator->getTimeFormat(($train['commence']+$train['eachtime'])-time()); + echo "".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['commence']+($train['eachtime']*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at "; + } + echo $time[1]; + } ?> +
    The next unit will be finished in
    + +

    diff --git a/Templates/Build/19_train.tpl b/Templates/Build/19_train.tpl new file mode 100644 index 00000000..0e4b2cbb --- /dev/null +++ b/Templates/Build/19_train.tpl @@ -0,0 +1,24 @@ +tribe-1)*10+1;$i<=($session->tribe-1)*10+4;$i++) { + if ($i <> 4 && $i <> 23 && $i <> 24 && ($technology->getTech($i) || $i%10 == 1)) { + +echo " +
    +\"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Available: ".$village->unitarray['u'.$i].") +
    +
    +\"Wood\"".(${'u'.$i}['wood'])."|\"Clay\"".(${'u'.$i}['clay'])."|\"Iron\"".(${'u'.$i}['iron'])."|\"Crop\"".(${'u'.$i}['crop'])."|\"Crop".${'u'.$i}['pop']."|\"Duration\""; +$dur=$generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid19[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); +echo ($dur=="0:00:00")? "0:00:01":$dur; +if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|maxUnitPlus($i))."&r2=".((${'u'.$i}['clay'])*$technology->maxUnitPlus($i))."&r3=".((${'u'.$i}['iron'])*$technology->maxUnitPlus($i))."&r4=".((${'u'.$i}['crop'])*$technology->maxUnitPlus($i))."\" title=\"NPC trade\">\"NPC"; + } +echo "
    + + +maxUnit($i,false)."; return false;\">(".$technology->maxUnit($i,false).")"; + } + } +?> diff --git a/Templates/Build/2.tpl b/Templates/Build/2.tpl new file mode 100644 index 00000000..1ec5d03d --- /dev/null +++ b/Templates/Build/2.tpl @@ -0,0 +1,27 @@ +
    +

    resarray['f'.$id]; ?>

    +

    + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + + +
    :resarray['f'.$id]]['prod']* SPEED; ?>
    resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['prod']* SPEED; ?>
    + +

    + diff --git a/Templates/Build/20.tpl b/Templates/Build/20.tpl new file mode 100644 index 00000000..020f030a --- /dev/null +++ b/Templates/Build/20.tpl @@ -0,0 +1,71 @@ +
    + +

    Stable Level resarray['f'.$id]; ?>

    +

    Cavalry can be trained in the stable. The higher its level the faster the troops are trained.

    + +getTypeLevel(20) > 0) { ?> + +
    + + + + + + + + + + + + tribe.".tpl"); + ?> + +
    NameQuantityMax
    +

    + +

    + +
    +Training can commence when stables are completed.
    \n"; + } + $trainlist = $technology->getTrainingList(2); + if(count($trainlist) > 0) { + //$timer = 2*count($trainlist); + echo " + + + + + + + "; + $TrainCount = 0; + foreach($trainlist as $train) { + $TrainCount++; + echo " +
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\""; + echo $train['amt']." ".$train['name'].""; + if ($TrainCount == 1) { + $NextFinished = $generator->getTimeFormat(($train['commence']+$train['eachtime'])-time()); + echo "".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['commence']+($train['eachtime']*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at "; + } + echo $time[1]; + } ?> +
    The next unit will be finished in
    + +

    diff --git a/Templates/Build/20_1.tpl b/Templates/Build/20_1.tpl new file mode 100644 index 00000000..feea6bb5 --- /dev/null +++ b/Templates/Build/20_1.tpl @@ -0,0 +1,33 @@ +getTech($i)) { + echo "
    \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Avaliable: ".$village->unitarray['u'.$i].")
    "; + if(${'u'.$i}['drinking'] <= $building->getTypeLevel(41)) { + echo "
    + \"Wood\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"Crop".(${'u'.$i}['pop']-1)."|\"Duration\""; +}else{ + echo "
    + \"Wood\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"Crop".(${'u'.$i}['pop'])."|\"Duration\""; +} + echo $generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) * ($building->getTypeLevel(41)>=1?(1/$bid41[$building->getTypeLevel(41)]['attri']):1) / SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|maxUnitPlus($i))."&r2=".((${'u'.$i}['clay'])*$technology->maxUnitPlus($i))."&r3=".((${'u'.$i}['iron'])*$technology->maxUnitPlus($i))."&r4=".((${'u'.$i}['crop'])*$technology->maxUnitPlus($i))."\" title=\"NPC trade\">\"NPC"; + } + echo "
    + + + + + + maxUnit($i)."; return false;\">(".$technology->maxUnit($i).") + + "; + $success += 1; + } +} +if($success == 0) { + echo "
    No units avaliable. Research at academy
    "; +} +?> diff --git a/Templates/Build/20_2.tpl b/Templates/Build/20_2.tpl new file mode 100644 index 00000000..7c5ba6bc --- /dev/null +++ b/Templates/Build/20_2.tpl @@ -0,0 +1,29 @@ +getTech($i)) { + echo "
    \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Avaliable: ".$village->unitarray['u'.$i].")
    "; + echo "
    + \"Wood\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"Crop".${'u'.$i}['pop']."|\"Duration\""; + $dur=$generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); + echo ($dur=="0:00:00")? "0:00:01":$dur; + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|maxUnitPlus($i))."&r2=".((${'u'.$i}['clay'])*$technology->maxUnitPlus($i))."&r3=".((${'u'.$i}['iron'])*$technology->maxUnitPlus($i))."&r4=".((${'u'.$i}['crop'])*$technology->maxUnitPlus($i))."\" title=\"NPC trade\">\"NPC"; + } + echo "
    + + + + + + maxUnit($i)."; return false;\">(".$technology->maxUnit($i).") + + "; + $success += 1; + } +} +if($success == 0) { + echo "No units avaliable. Research at academy"; +} +?> \ No newline at end of file diff --git a/Templates/Build/20_3.tpl b/Templates/Build/20_3.tpl new file mode 100644 index 00000000..271974b9 --- /dev/null +++ b/Templates/Build/20_3.tpl @@ -0,0 +1,28 @@ +getTech($i)) { + echo "
    \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Avaliable: ".$village->unitarray['u'.$i].")
    "; + echo "
    + \"Wood\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"Crop".${'u'.$i}['pop']."|\"Duration\""; + echo $generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|maxUnitPlus($i))."&r2=".((${'u'.$i}['clay'])*$technology->maxUnitPlus($i))."&r3=".((${'u'.$i}['iron'])*$technology->maxUnitPlus($i))."&r4=".((${'u'.$i}['crop'])*$technology->maxUnitPlus($i))."\" title=\"NPC trade\">\"NPC"; + } + echo "
    + + + + + + maxUnit($i)."; return false;\">(".$technology->maxUnit($i).") + + "; + $success += 1; + } +} +if($success == 0) { + echo "No units avaliable. Research at academy"; +} +?> \ No newline at end of file diff --git a/Templates/Build/20_4.tpl b/Templates/Build/20_4.tpl new file mode 100644 index 00000000..d3d4fe37 --- /dev/null +++ b/Templates/Build/20_4.tpl @@ -0,0 +1,28 @@ +getTech($i)) { + echo "
    \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Avaliable: ".$village->unitarray['u'.$i].")
    "; + echo "
    + \"Wood\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"Crop".${'u'.$i}['pop']."|\"Duration\""; + echo $generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|maxUnitPlus($i))."&r2=".((${'u'.$i}['clay'])*$technology->maxUnitPlus($i))."&r3=".((${'u'.$i}['iron'])*$technology->maxUnitPlus($i))."&r4=".((${'u'.$i}['crop'])*$technology->maxUnitPlus($i))."\" title=\"NPC trade\">\"NPC"; + } + echo "
    + + + + + + maxUnit($i)."; return false;\">(".$technology->maxUnit($i).") + + "; + $success += 1; + } +} +if($success == 0) { + echo "No units avaliable. Research at academy"; +} +?> \ No newline at end of file diff --git a/Templates/Build/21.tpl b/Templates/Build/21.tpl new file mode 100644 index 00000000..999cedce --- /dev/null +++ b/Templates/Build/21.tpl @@ -0,0 +1,109 @@ +
    + +

    Workshop Level resarray['f'.$id]; ?>

    +

    Siege engines like catapults and rams can be built in the workshop. The higher its level the faster the units are produced.

    +getTypeLevel(21) > 0) { ?> + +
    + + + + + + + + + + + + tribe == 1)? 7 : (($session->tribe == 2)? 17 : 27); + if ($session->tribe == 1){ + $start = 7; + }else if ($session->tribe == 2){ + $start = 17; + }else if ($session->tribe == 3){ + $start = 27; + }else if ($session->tribe == 4){ + $start = 37; + }else if ($session->tribe == 5){ + $start = 47; + } + for($i=$start;$i<=($start+1);$i++) { + if($technology->getTech($i)) { + echo " + + + + "; + $success += 1; + } + } + if($success == 0) { + echo ""; + } + ?> + +
    NameQuantityMax
    \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Avaliable: ".$village->unitarray['u'.$i].")
    "; + echo "
    + \"Wood\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"Crop".${'u'.$i}['pop']."|\"Duration\""; + echo $generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid21[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|maxUnitPlus($i))."&r2=".((${'u'.$i}['clay'])*$technology->maxUnitPlus($i))."&r3=".((${'u'.$i}['iron'])*$technology->maxUnitPlus($i))."&r4=".((${'u'.$i}['crop'])*$technology->maxUnitPlus($i))."\" title=\"NPC trade\">\"NPC"; + } + echo "
    + + + maxUnit($i)."; return false;\">(".$technology->maxUnit($i).") +
    No units avaliable. Research at academy
    +

    + + +

    +
    +Training can commence when workshop are completed.
    \n"; + } + + $trainlist = $technology->getTrainingList(3); + if(count($trainlist) > 0) { + //$timer = 2*count($trainlist); + echo " + + + + + + + "; + $TrainCount = 0; + foreach($trainlist as $train) { + $TrainCount++; + echo " +
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\""; + echo $train['amt']." ".$train['name'].""; + if ($TrainCount == 1 ) { + $NextFinished = $generator->getTimeFormat(($train['commence']+$train['eachtime'])-time()); + echo "".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['commence']+($train['eachtime']*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at "; + } + echo $time[1]; + } ?> +
    The next unit will be finished in
    + +

    + + diff --git a/Templates/Build/22.tpl b/Templates/Build/22.tpl new file mode 100644 index 00000000..0eccab28 --- /dev/null +++ b/Templates/Build/22.tpl @@ -0,0 +1,17 @@ +
    +

    Academy Level resarray['f'.$id]; ?>

    +

    In the academy new unit types can be researched. By increasing its level you can order the research of better units.

    +getTypeLevel(22) > 0) { + include("22_".$session->tribe.".tpl"); + } else { + echo "

    Research can commence when academy is completed.
    \n"; + } + + include("upgrade.tpl"); +?> +

    +
    diff --git a/Templates/Build/22_1.tpl b/Templates/Build/22_1.tpl new file mode 100644 index 00000000..b0cbad8d --- /dev/null +++ b/Templates/Build/22_1.tpl @@ -0,0 +1,153 @@ + + + + + + + +grabAcademyRes(); +for($i=2;$i<=9;$i++) { + if($technology->meetRRequirement($i) && !$technology->getTech($i) && !$technology->isResearch($i,1)) { + echo ""; + echo ""; + } + else if(${'r'.$i}['crop'] > $village->maxcrop) { + echo "
    Expand granary"; + echo ""; + } + else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) { + if($village->getProd("crop")>0){ + $time = $technology->calculateAvaliable(22,${'r'.$i}); + echo "
    Enough resources ".$time[0]." at ".$time[1].""; + } else { + echo "
    Crop production is negative so you will never reach the required resources"; + } + echo ""; + } + else if (count($acares) > 0) { + echo ""; + echo ""; + } + else if($session->access != BANNED){ + echo ""; + echo ""; + }else{ + echo ""; + echo ""; + } + $success += 1; + } + else { + $fail += 1; + } +} +if($success == 0) { +echo ""; +} +?> + +
    AcademyAction
    +
    + \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." +
    +
    \"Lumber\"".${'r'.$i}['wood']."|\"Clay\"".${'r'.$i}['clay']."|\"Iron\"".${'r'.$i}['iron']."|\"Crop\"".${'r'.$i}['crop']."|\"duration\""; + echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { + echo "|\"NPC"; + } + if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) { + echo "
    Expand warehouse
    +
    Expand
    warehouse
    +
    +
    Expand
    granary
    +
    Too few
    resources
    + Research in progress
    + mchecker."\">Research
    + Research
    There are no researches avaliable
    + 0) { + echo "

    show more

    + + "; + if(!$technology->meetRRequirement(2) && !$technology->getTech(2)) { + echo""; + } + if(!$technology->meetRRequirement(3) && !$technology->getTech(3)) { + echo""; + } + if(!$technology->meetRRequirement(4) && !$technology->getTech(4)) { + echo ""; + } + if(!$technology->meetRRequirement(5) && !$technology->getTech(5)) { + echo ""; + } + if(!$technology->meetRRequirement(6) && !$technology->getTech(6)) { + echo ""; + } + if(!$technology->meetRRequirement(7) && !$technology->getTech(7)) { + echo " + "; + } + if(!$technology->meetRRequirement(8) && !$technology->getTech(8)) { + echo " + "; + } + if(!$technology->meetRRequirement(9) && !$technology->getTech(9)) { + echo " "; + } + echo ""; + echo "
    Prerequisites
    Academy +  Level 1
    Armoury  Level 1
    Academy +  Level 5
    Blacksmith  Level 1
    + Academy Level 5
    Stable Level 1
    + Academy Level 5
    Stable Level 5
    + Academy Level 15
    + Stable Level 10
    Academy +  Level 10
    Workshop Level 1
    Workshop +  Level 10
    Academy Level 15
    + Rally Point Level 10
    + Academy Level 20
    "; +} +//$acares = $technology->grabAcademyRes(); +if(count($acares) > 0) { + echo " + "; + $timer = 1; + foreach($acares as $aca) { + $unit = substr($aca['tech'],1,2); + echo ""; + echo ""; + $date = $generator->procMtime($aca['timestamp']); + echo ""; + echo ""; + $timer +=1; + } + echo "
    ResearchingDurationComplete
    \"".$technology-getUnitName($unit)."\" title=\"".$technology->getUnitName($unit)."\" />".$technology->getUnitName($unit)."".$generator->getTimeFormat($aca['timestamp']-time())."".$date[1]." hrs
    "; +} +?> diff --git a/Templates/Build/22_1.tpl_bk b/Templates/Build/22_1.tpl_bk new file mode 100644 index 00000000..7c85dd0d --- /dev/null +++ b/Templates/Build/22_1.tpl_bk @@ -0,0 +1,145 @@ + + + + + + + +meetRRequirement($i) && !$technology->getTech($i) && !$technology->isResearch($i,1)) { + echo ""; + echo ""; + } + else if(${'r'.$i}['crop'] > $village->maxcrop) { + echo "
    Expand granary"; + echo ""; + } + else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) { + $time = $technology->calculateAvaliable($i); + echo "
    Enough resources ".$time[0]." at ".$time[1].""; + echo ""; + } + else if($session->access != BANNED){ + echo ""; + echo ""; + }else{ + echo ""; + echo ""; + } + $success += 1; + } + else { + $fail += 1; + } +} +if($success == 0) { +echo ""; +} +?> + +
    AcademyAction
    +
    + \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." +
    +
    \"Lumber\"".${'r'.$i}['wood']."|\"Clay\"".${'r'.$i}['clay']."|\"Iron\"".${'r'.$i}['iron']."|\"Crop\"".${'r'.$i}['crop']."|\"duration\""; + echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { + echo "|\"NPC"; + } + if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) { + echo "
    Expand warehouse
    +
    Expand
    warehouse
    +
    +
    Expand
    granary
    +
    +
    Too few
    resources
    +
    + mchecker."\">Research
    + Research
    There are no researches avaliable
    + 0) { + echo "

    show more

    + + "; + if(!$technology->meetRRequirement(2) && !$technology->getTech(2)) { + echo""; + } + if(!$technology->meetRRequirement(3) && !$technology->getTech(3)) { + echo""; + } + if(!$technology->meetRRequirement(4) && !$technology->getTech(4)) { + echo ""; + } + if(!$technology->meetRRequirement(5) && !$technology->getTech(5)) { + echo ""; + } + if(!$technology->meetRRequirement(6) && !$technology->getTech(6)) { + echo ""; + } + if(!$technology->meetRRequirement(7) && !$technology->getTech(7)) { + echo " + "; + } + if(!$technology->meetRRequirement(8) && !$technology->getTech(8)) { + echo " + "; + } + if(!$technology->meetRRequirement(9) && !$technology->getTech(9)) { + echo " "; + } + echo ""; + echo "
    Prerequisites
    Academy + Level 1
    Armoury Level 1
    Academy + Level 5
    Blacksmith Level 1
    + AcademyLevel 5
    StableLevel 1
    + AcademyLevel 5
    StableLevel 5
    + AcademyLevel 15
    + StableLevel 10
    Academy + Level 10
    WorkshopLevel 1
    Workshop + Level 10
    AcademyLevel 15
    + Rally PointLevel 10
    + AcademyLevel 20
    "; +} +$acares = $technology->grabAcademyRes(); +if(count($acares) > 0) { + echo " + "; + $timer = 1; + foreach($acares as $aca) { + $unit = substr($aca['tech'],1,2); + echo ""; + echo ""; + $date = $generator->procMtime($aca['timestamp']); + echo ""; + echo ""; + $timer +=1; + } + echo "
    ResearchingDurationComplete
    \"".$technology-getUnitName($unit)."\" title=\"".$technology->getUnitName($unit)."\" />".$technology->getUnitName($unit)."".$generator->getTimeFormat($aca['timestamp']-time())."".$date[1]." hrs
    "; +} +?> diff --git a/Templates/Build/22_2.tpl b/Templates/Build/22_2.tpl new file mode 100644 index 00000000..6ea8656b --- /dev/null +++ b/Templates/Build/22_2.tpl @@ -0,0 +1,149 @@ + + + + + + + +grabAcademyRes(); +for($i=12;$i<=19;$i++) { + if($technology->meetRRequirement($i) && !$technology->getTech($i) && !$technology->isResearch($i,1)) { + echo ""; + echo ""; + } + else if(${'r'.$i}['crop'] > $village->maxcrop) { + echo "
    Expand granary"; + echo ""; + } + else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) { + if($village->getProd("crop")>0){ + $time = $technology->calculateAvaliable(22,${'r'.$i}); + echo "
    Enough resources ".$time[0]." at ".$time[1].""; + } else { + echo "
    Crop production is negative so you will never reach the required resources"; + } + echo ""; + } + else if ( count($acares) > 0 ) { + echo ""; + echo ""; + } + else if($session->access != BANNED){ + echo ""; + echo ""; + }else{ + echo ""; + echo ""; + } + $success += 1; + } + else { + $fail += 1; + } +} +if($success == 0) { +echo ""; +} +?> + +
    AcademyAction
    +
    + \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." +
    +
    \"Lumber\"".${'r'.$i}['wood']."|\"Clay\"".${'r'.$i}['clay']."|\"Iron\"".${'r'.$i}['iron']."|\"Crop\"".${'r'.$i}['crop']."|\"duration\""; + echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { + echo "|\"NPC"; + } + if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) { + echo "
    Expand warehouse
    +
    Expand
    warehouse
    +
    +
    Expand
    granary
    +
    Too few
    resources
    + Research in progress
    + mchecker."\">Research
    + Research
    There are no researches avaliable
    + 0) { + echo "

    show more

    + + "; + if(!$technology->meetRRequirement(13) && !$technology->getTech(13)) { + echo""; + } + if(!$technology->meetRRequirement(14) && !$technology->getTech(14)) { + echo ""; + } + if(!$technology->meetRRequirement(15) && !$technology->getTech(15)) { + echo ""; + } + if(!$technology->meetRRequirement(16) && !$technology->getTech(16)) { + echo ""; + } + if(!$technology->meetRRequirement(17) && !$technology->getTech(17)) { + echo " + "; + } + if(!$technology->meetRRequirement(18) && !$technology->getTech(18)) { + echo " + "; + } + if(!$technology->meetRRequirement(19) && !$technology->getTech(19)) { + echo " "; + } + echo " "; + echo "
    Prerequisites
    Academy + Level 3
    Blacksmith Level 1
    + Academy Level 1
    Main Building + Level 5
    + Academy Level 5
    Stable + Level 5
    + Academy Level 15
    + Stable Level 10
    \"Ram\" + Ram
    Academy + Level 10
    Workshop Level 1
    Workshop + Level 10
    Academy Level 15
    + Rally Point Level 5
    + Academy Level 20
    "; +} +//$acares = $technology->grabAcademyRes(); +if(count($acares) > 0) { + echo " + "; + $timer = 1; + foreach($acares as $aca) { + $unit = substr($aca['tech'],1,2); + echo ""; + echo ""; + $date = $generator->procMtime($aca['timestamp']); + echo ""; + echo ""; + $timer +=1; + } + echo "
    ResearchingDurationComplete
    \"".$technology-getUnitName($unit)."\" title=\"".$technology->getUnitName($unit)."\" />".$technology->getUnitName($unit)."".$generator->getTimeFormat($aca['timestamp']-time())."".$date[1]." hrs
    "; +} +?> diff --git a/Templates/Build/22_3.tpl b/Templates/Build/22_3.tpl new file mode 100644 index 00000000..ac70a839 --- /dev/null +++ b/Templates/Build/22_3.tpl @@ -0,0 +1,153 @@ + + + + + + + +grabAcademyRes(); +for($i=22;$i<=29;$i++) { + if($technology->meetRRequirement($i) && !$technology->getTech($i) && !$technology->isResearch($i,1)) { + echo ""; + echo ""; + } + else if(${'r'.$i}['crop'] > $village->maxcrop) { + echo "
    Expand granary"; + echo ""; + } + else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) { + if($village->getProd("crop")>0){ + $time = $technology->calculateAvaliable(22,${'r'.$i}); + echo "
    Enough resources ".$time[0]." at ".$time[1].""; + } else { + echo "
    Crop production is negative so you will never reach the required resources"; + } + echo ""; + } + else if ( count($acares) > 0 ) { + echo ""; + echo ""; + } + else if($session->access != BANNED){ + echo ""; + echo ""; + }else{ + echo ""; + echo ""; + } + $success +=1; + } + else { + $fail += 1; + } +} +if($success == 0) { +echo ""; +} +?> +
    AcademyAction
    +
    + \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." +
    +
    \"Lumber\"".${'r'.$i}['wood']."|\"Clay\"".${'r'.$i}['clay']."|\"Iron\"".${'r'.$i}['iron']."|\"Crop\"".${'r'.$i}['crop']."|\"duration\""; + echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { + echo "|\"NPC"; + } + if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) { + echo "
    Expand warehouse
    +
    Expand
    warehouse
    +
    +
    Expand
    granary
    +
    Too few
    resources
    + Research in progress
    + mchecker."\">Research
    + Research
    There are no researches avaliable
    + 0) { + echo "

    show more

    + + "; + if(!$technology->meetRRequirement(22) && !$technology->getTech(22)) { + echo""; + } + if(!$technology->meetRRequirement(23) && !$technology->getTech(23)) { + echo""; + } + if(!$technology->meetRRequirement(24) && !$technology->getTech(24)) { + echo ""; + } + if(!$technology->meetRRequirement(25) && !$technology->getTech(25)) { + echo ""; + } + if(!$technology->meetRRequirement(26) && !$technology->getTech(26)) { + echo ""; + } + if(!$technology->meetRRequirement(27) && !$technology->getTech(27)) { + echo " + "; + } + if(!$technology->meetRRequirement(28) && !$technology->getTech(28)) { + echo " + "; + } + if(!$technology->meetRRequirement(29) && !$technology->getTech(29)) { + echo " "; + } + echo " "; + echo "
    Prerequisites
    Academy +  Level 3
    Blacksmith  Level 1
    Academy +  Level 5
    Stable  Level 1
    + Academy Level 5
    Stable +  Level 3
    + Academy Level 5
    Stable +  Level 5
    + Academy Level 15
    + Stable Level 10
    \"Ram\" + Ram
    Academy +  Level 10
    Workshop Level 1
    Workshop +  Level 10
    Academy Level 15
    + Rally Point Level 10
    + Academy Level 20
    "; +} +$acares = $technology->grabAcademyRes(); +if(count($acares) > 0) { + echo " + "; + $timer = 1; + foreach($acares as $aca) { + $unit = substr($aca['tech'],1,2); + echo ""; + echo ""; + $date = $generator->procMtime($aca['timestamp']); + echo ""; + echo ""; + $timer +=1; + } + echo "
    ResearchingDurationComplete
    \"".$technology-getUnitName($unit)."\" title=\"".$technology->getUnitName($unit)."\" />".$technology->getUnitName($unit)."".$generator->getTimeFormat($aca['timestamp']-time())."".$date[1]." hrs
    "; +} +?> diff --git a/Templates/Build/22_4.tpl b/Templates/Build/22_4.tpl new file mode 100644 index 00000000..a2eb7a2f --- /dev/null +++ b/Templates/Build/22_4.tpl @@ -0,0 +1,148 @@ + + + + + + + +grabAcademyRes(); +for($i=32;$i<=39;$i++) { + if($technology->meetRRequirement($i) && !$technology->getTech($i) && !$technology->isResearch($i,1)) { + echo ""; + echo ""; + } + else if(${'r'.$i}['crop'] > $village->maxcrop) { + echo "
    Expand granary"; + echo ""; + } + else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) { + $time = $technology->calculateAvaliable($i); + echo "
    Enough resources ".$time[0]." at ".$time[1].""; + echo ""; + } + else if ( count($acares) > 0 ) { + echo ""; + echo ""; + } + else { + else if($session->access != BANNED){ + echo ""; + echo ""; + }else{ + echo ""; + echo ""; + } + $success += 1; + } + else { + $fail += 1; + } +} +if($success == 0) { +echo ""; +} +?> + +
    AcademyAction
    +
    + \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." +
    +
    \"Lumber\"".${'r'.$i}['wood']."|\"Clay\"".${'r'.$i}['clay']."|\"Iron\"".${'r'.$i}['iron']."|\"Crop\"".${'r'.$i}['crop']."|\"duration\""; + echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { + echo "|\"NPC"; + } + if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) { + echo "
    Expand warehouse
    +
    Expand
    warehouse
    +
    +
    Expand
    granary
    +
    +
    Too few
    resources
    +
    + Research in progress
    + mchecker."\">Research
    + Research
    There are no researches avaliable
    + 0) { + echo "

    show more

    + + "; + if(!$technology->meetRRequirement(33) && !$technology->getTech(33)) { + echo""; + } + if(!$technology->meetRRequirement(34) && !$technology->getTech(34)) { + echo ""; + } + if(!$technology->meetRRequirement(35) && !$technology->getTech(35)) { + echo ""; + } + if(!$technology->meetRRequirement(36) && !$technology->getTech(36)) { + echo ""; + } + if(!$technology->meetRRequirement(17) && !$technology->getTech(17)) { + echo " + "; + } + if(!$technology->meetRRequirement(38) && !$technology->getTech(38)) { + echo " + "; + } + if(!$technology->meetRRequirement(39) && !$technology->getTech(39)) { + echo " "; + } + echo " "; + echo "
    Prerequisites
    Academy + Level 3
    Blacksmith Level 1
    + Academy Level 1
    Main Building + Level 5
    + Academy Level 5
    Stable + Level 5
    + Academy Level 15
    + Stable Level 10
    Academy + Level 10
    Workshop Level 1
    Workshop + Level 10
    Academy Level 15
    + Rally Point Level 5
    + Academy Level 20
    "; +} +//$acares = $technology->grabAcademyRes(); +if(count($acares) > 0) { + echo " + "; + $timer = 1; + foreach($acares as $aca) { + $unit = substr($aca['tech'],1,2); + echo ""; + echo ""; + $date = $generator->procMtime($aca['timestamp']); + echo ""; + echo ""; + $timer +=1; + } + echo "
    ResearchingDurationComplete
    \"".$technology-getUnitName($unit)."\" title=\"".$technology->getUnitName($unit)."\" />".$technology->getUnitName($unit)."".$generator->getTimeFormat($aca['timestamp']-time())."".$date[1]." hrs
    "; +} +?> diff --git a/Templates/Build/23.tpl b/Templates/Build/23.tpl new file mode 100644 index 00000000..a577c8b9 --- /dev/null +++ b/Templates/Build/23.tpl @@ -0,0 +1,95 @@ +
    +

    Cranny Level resarray['f'.$id]; ?>

    +

    The cranny is used to hide some of your resources when the village is attacked. These resources cannot be stolen.

    + + + + + +tribe == 1) { + ?> + + +tribe == 2) { + ?> + + +tribe == 3) { + ?> + + +tribe == 4) { + ?> + + +tribe == 5) { + ?> + + + + +isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + +tribe == 1) { + ?> + + +tribe == 2) { + ?> + + +tribe == 3) { + ?> + + +tribe == 4) { + ?> + + +tribe == 5) { + ?> + + + + +
    Currently hidden units per resource:resarray['f'.$id]]['attri']; ?> unitsresarray['f'.$id]]['attri']; ?> unitsresarray['f'.$id]]['attri']*2; ?> unitsresarray['f'.$id]]['attri']; ?> unitsresarray['f'.$id]]['attri']; ?> units
    Hidden units per resource at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> unitsresarray['f'.$id]+1]['attri']; ?> unitsresarray['f'.$id]+1]['attri']*2; ?> unitsresarray['f'.$id]+1]['attri']; ?> unitsresarray['f'.$id]+1]['attri']; ?> units
    + +

    \ No newline at end of file diff --git a/Templates/Build/24.tpl b/Templates/Build/24.tpl new file mode 100644 index 00000000..10323714 --- /dev/null +++ b/Templates/Build/24.tpl @@ -0,0 +1,18 @@ +
    +

    Town Hall Level resarray['f'.$id]; ?>

    +

    You can hold pompous celebrations in the Town Hall. Such a celebration increases your culture points. Building up your Town Hall to a higher level will decrease the length of the celebration. +

    +getTypeLevel(24) > 0) { + include("Templates/Build/24_1.tpl"); + include("Templates/Build/24_2.tpl"); + } else { + echo "

    Celebrations can commence when the town hall is completed.
    \n"; + } + + include("upgrade.tpl"); + +?> +

    diff --git a/Templates/Build/24_1.tpl b/Templates/Build/24_1.tpl new file mode 100644 index 00000000..fbb19b59 --- /dev/null +++ b/Templates/Build/24_1.tpl @@ -0,0 +1,74 @@ + + + + + + + + + + + resarray['f'.$id]; + $inuse = $database->getVillageField($village->wid, 'celebration'); + $time = Time(); + $i = 1; + echo ""; + } + else if($cel[$i]['wood'] > $village->awood || $cel[$i]['clay'] > $village->aclay || $cel[$i]['iron'] > $village->airon || $cel[$i]['crop'] > $village->acrop) { + if($village->getProd("crop")>0){ + $time = $technology->calculateAvaliable(24,$cel[$i]); + echo "
    Enough resources ".$time[0]." at ".$time[1].""; + } else { + echo "
    Crop production is negative so you will never reach the required resources"; + } + echo ""; + } + else { + echo ""; + echo ""; + } + + if($level >= 10){ + $level = $village->resarray['f'.$id]; + echo ""; + } + else if(29700 > $village->awood || 33250 > $village->aclay || 32000 > $village->airon || 6700 > $village->acrop) { + $time = $technology->calculateAvaliable(24,$cel[2]); + echo "
    Enough resources ".$time[0]." at ".$time[1].""; + echo ""; + } + else { + echo ""; + echo ""; + } + } +?> + +
    CelebrationsAction
    ".$cel[$i]['name']." (".$cel[$i]['attri']." culture points)
    +
    \"Lumber\"".$cel[$i]['wood']."|\"Clay\"".$cel[$i]['clay']."|\"Iron\"".$cel[$i]['iron']."|\"Crop\"".$cel[$i]['crop']."|\"duration\""; + echo $generator->getTimeFormat(round($cel[$i]['time'] * ($bid24[$building->getTypeLevel(24)]['attri'] / 100)/SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|\"NPC"; + } + if($inuse > $time){ + echo "
    +
    Celebration
    in progress
    +
    Too few
    resources
    "; + echo "hold
    +
    + Great celebration (2000 culture points) +
    +
    \"Lumber\"29700|\"Clay\"33250|\"Iron\"32000|\"Crop\"6700|\"duration\""; + echo $generator->getTimeFormat(round($gc[$level]/SPEED)); + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { + echo "|\"NPC"; + } + if($inuse > $time){ + echo "
    +
    Celebration
    in progress
    +
    +
    Too few
    resources
    +
    + hold
    + diff --git a/Templates/Build/24_2.tpl b/Templates/Build/24_2.tpl new file mode 100644 index 00000000..ef25aea0 --- /dev/null +++ b/Templates/Build/24_2.tpl @@ -0,0 +1,18 @@ +getVillageField($village->wid, 'celebration'); + if($timeleft > Time()){ + echo '
    '; + echo ''; + echo '"; + echo ""; + echo "
    '; + echo 'celebration still needs:'; + echo ""; + echo $generator->getTimeFormat($timeleft-time()); + echo " hrs.done at ".date('H:i', $timeleft)."
    "; + $timer +=1; + } +?> \ No newline at end of file diff --git a/Templates/Build/25.tpl b/Templates/Build/25.tpl new file mode 100644 index 00000000..eb8e4ac9 --- /dev/null +++ b/Templates/Build/25.tpl @@ -0,0 +1,26 @@ +

    Residence level resarray['f'.$id]; ?>

    +

    + + The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.

    + +capital == 1) { + echo "

    This is your capital

    "; +} + +include("25_menu.tpl"); + +if($village->resarray['f'.$id] >= 10){ + include ("25_train.tpl"); +} +else{ + echo '
    In order to found a new village you need a level 10 or 20 residence and 3 settlers. In order to conquer a new village you need a level 10 or 20 residence and a senator, chief or chieftain.
    '; +} + +include("upgrade.tpl"); +?> +
    diff --git a/Templates/Build/25_2.tpl b/Templates/Build/25_2.tpl new file mode 100644 index 00000000..b95cf3ec --- /dev/null +++ b/Templates/Build/25_2.tpl @@ -0,0 +1,24 @@ +

    Residence level resarray['f'.$id]; ?>

    +

    + + The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.

    + + + +

    In order to extend your empire you need culture points. These culture points increase in the course of time and do so faster as your building levels increase.

    + + + + + + + + + + +
    Production of this village:getVillageField($village->wid, 'cp'); ?> Culture points per day
    Production of all villages:getVSumField($session->uid, 'cp'); ?> Culture points per day

    Your villages have produced cp; ?> points in total. To found or conquer a new village you need getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?> points.

    +
    diff --git a/Templates/Build/25_3.tpl b/Templates/Build/25_3.tpl new file mode 100644 index 00000000..2d4f83a6 --- /dev/null +++ b/Templates/Build/25_3.tpl @@ -0,0 +1,13 @@ +

    Residence level resarray['f'.$id]; ?>

    +

    + + The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.

    + + + + +By attacking with senators, chiefs or chieftains a village's loyalty can be brought down. If it reaches zero, the village joins the realm of the attacker. The loyalty of this village is currently at getVillageField($village->wid,'loyalty')); ?> percent.
    diff --git a/Templates/Build/25_4.tpl b/Templates/Build/25_4.tpl new file mode 100644 index 00000000..6ce1f56c --- /dev/null +++ b/Templates/Build/25_4.tpl @@ -0,0 +1,54 @@ +

    Residence level resarray['f'.$id]; ?>

    +

    + + The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.

    + + + + + + + + + + + + + + + +getVillageField($village->wid, 'exp1'); +$slot2 = $database->getVillageField($village->wid, 'exp2'); +$slot3 = $database->getVillageField($village->wid, 'exp3'); + +if($slot1 != 0 || $slot2 != 0 || $slot3 != 0){ + for($i=1; $i <= 3; $i++){ + if (${'slot'.$i}<>0) { + $coor = $database->getCoor(${'slot'.$i}); + $vname = $database->getVillageField(${'slot'.$i},'name'); + $owner = $database->getVillageField(${'slot'.$i},'owner'); + $pop = $database->getVillageField(${'slot'.$i},'pop'); + $vcreated = $database->getVillageField(${'slot'.$i},'created'); + $ownername = $database->getUserField($owner,'username',0); +echo ' + + + + + + + +'; + } + } +} +else{ +echo ''; +} +?> +
    Villages founded or conquered by this village
    VillagePlayerInhabitantsCoordinatesDate
    '.$i.'.'.$vname.''.$ownername.''.$pop.'
    ('.$coor['x'].'
    |
    '.$coor['y'].')
    '.date('d-m-Y',$vcreated).'
    No other village has been founded or conquered by this village yet.
    diff --git a/Templates/Build/25_create.tpl b/Templates/Build/25_create.tpl new file mode 100644 index 00000000..1701f85e --- /dev/null +++ b/Templates/Build/25_create.tpl @@ -0,0 +1,65 @@ +
    + + + + + + + + + + + + + + + "; + ?> + + +
    NaamAantalmax
    +
    + \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Available: ".$village->unitarray['u'.$i].") +
    +
    \"Lumber\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"duration\""; + echo $generator->getTimeFormat(round(${'u'.$i}['time']/SPEED)); + //if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { + //echo "|\"NPC"; + //} + echo " +
    maxUnit($i)."; return false;\">(".$technology->maxUnit($i).")
    +

    + +

    + + getTrainingList(20); + if(count($trainlist) > 0) { + $timer = 2*count($trainlist); + echo " + + + + + + + "; + foreach($trainlist as $train) { + echo " + "; + } + echo "
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\"".$train['amt']." ".$train['name']."".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + $timer -= 1; + $time = $generator->procMTime($train['commence']+(1*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at"; + } + echo $time[1]." o'clock
    The next unit will be finished in ".$generator->getTimeFormat(($train['commence']+$train['eachtime'])-time())."
    "; + } + ?> + +
    diff --git a/Templates/Build/25_menu.tpl b/Templates/Build/25_menu.tpl new file mode 100644 index 00000000..682580f9 --- /dev/null +++ b/Templates/Build/25_menu.tpl @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/Templates/Build/25_progress.tpl b/Templates/Build/25_progress.tpl new file mode 100644 index 00000000..5fcd9a1f --- /dev/null +++ b/Templates/Build/25_progress.tpl @@ -0,0 +1,34 @@ + getTrainingList(4); + if(count($trainlist) > 0) { + echo " + + + + + + + "; + $TrainCount = 0; + foreach($trainlist as $train) { + $TrainCount++; + echo " +
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\""; + echo $train['amt']." ".$train['name'].""; + if ($TrainCount == 1 ) { + $NextFinished = $generator->getTimeFormat(($train['commence']+$train['eachtime'])-time()); + echo "".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['commence']+($train['eachtime']*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at "; + } + echo $time[1]; + } ?> +
    The next unit will be finished in
    + diff --git a/Templates/Build/25_train.tpl b/Templates/Build/25_train.tpl new file mode 100644 index 00000000..54098101 --- /dev/null +++ b/Templates/Build/25_train.tpl @@ -0,0 +1,61 @@ +getAvailableExpansionTraining(); + + if ($slots['settlers']+$slots['chiefs']>0) { ?> + +
    + + + + + + + + + + + + +tribe-1)*10+9;$i<=($session->tribe*10);$i++) { + if ($slots['settlers']>0 && $i%10==0 || $slots['chiefs']>0 && $i%10==9) { + $maxunit = MIN($technology->maxUnit($i),($i%10==0?$slots['settlers']:$slots['chiefs'])); + +echo " +"; + } + } ?> + + +
    NameQuantityMax
    +
    +\"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> +".$technology->getUnitName($i)." (Available: ".$village->unitarray['u'.$i].")
    +
    \"Lumber\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"duration\""; +echo $generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid25[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); + + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { +echo "|\"NPC"; + } +echo "
    (".$maxunit.")
    +

    + +

    +
    +In order to found a new village you need a level 10 or 20 residence and 3 settlers. In order to conquer a new village you need a level 10 or 20 residence and a senator, chief or chieftain.
    '; + } + include ("25_progress.tpl"); +?> diff --git a/Templates/Build/26.tpl b/Templates/Build/26.tpl new file mode 100644 index 00000000..037174fc --- /dev/null +++ b/Templates/Build/26.tpl @@ -0,0 +1,92 @@ + 5) { + $_SESSION['time_p'] = ''; + $_SESSION['error_p'] = ''; +} + +if($_POST AND $_GET['action'] == 'change_capital') { + $pass = mysql_escape_string($_POST['pass']); + $query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'users` WHERE `id` = ' . $session->uid); + $data = mysql_fetch_assoc($query); + if($data['password'] == md5($pass)) { + $query1 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'vdata` WHERE `owner` = ' . $session->uid . ' AND `capital` = 1'); + $data1 = mysql_fetch_assoc($query1); + $query2 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'fdata` WHERE `vref` = ' . $data1['wref']); + $data2 = mysql_fetch_assoc($query2); + if($data2['vref'] != $village->wid) { + for($i = 1; $i<=18; ++$i) { + if($data2['f' . $i] > 10) { + $query2 = mysql_query('UPDATE `' . TB_PREFIX . 'fdata` SET `f' . $i . '` = 10 WHERE `vref` = ' . $data2['vref']) or die(mysql_error()); + } + } + + for($i=19; $i<=40; ++$i) { + if($data2['f' . $i . 't'] == 34) { + $query3 = mysql_query('UPDATE `' . TB_PREFIX . 'fdata` SET `f' . $i . 't` = 0, `f' . $i . '` = 0 WHERE `vref` = ' . $data2['vref']) or die(mysql_error()); + } + } + + $query3 = mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `capital` = 0 WHERE `wref` = ' . $data1['wref']); + $query4 = mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `capital` = 1 WHERE `wref` = ' . $village->wid); + } + #print ''; + } else { + $error = '
    password is wrong
    '; + $_SESSION['error_p'] = $error; + $_SESSION['time_p'] = time(); + print ''; + } +} +?> +

    Palace level resarray['f'.$id]; ?>

    +

    + + The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital.

    + +getTypeLevel(26) > 0) { + +include("26_menu.tpl"); + +$test=$database->getAvailableExpansionTraining(); + +if($village->resarray['f'.$id] >= 10){ + include ("26_train.tpl"); +} +else{ + echo '
    In order to found a new village you need a level 10, 15 or 20 palace and 3 settlers. In order to conquer a new village you need a level 10, 15 or 20 palace and a senator, chief or chieftain.
    '; +} + +?> + +uid . ' AND `capital` = 1'); +$data = mysql_fetch_assoc($query); +if($data['wref'] == $village->wid) { +?> +

    This is your capital

    +» change capital

    '; + } else { + print '

    Are you sure, that you want to change your capital?
    You can\'t undone this!.
    For security you must enter your password to confirm:
    +

    + ' . $_SESSION['error_p'] . ' + password:
    + +
    +

    '; + } +} +} else { + echo "Palace under construction"; +} +include("upgrade.tpl"); +?> +
    diff --git a/Templates/Build/26_2.tpl b/Templates/Build/26_2.tpl new file mode 100644 index 00000000..765a82b8 --- /dev/null +++ b/Templates/Build/26_2.tpl @@ -0,0 +1,24 @@ +

    Palace level resarray['f'.$id]; ?>

    +

    + + The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital.

    + + + +

    In order to extend your empire you need culture points. These culture points increase in the course of time and do so faster as your building levels increase.

    + + + + + + + + + + +
    Production of this village:getVillageField($village->wid, 'cp'); ?> Culture points per day
    Production of all villages:getVSumField($session->uid, 'cp'); ?> Culture points per day

    Your villages have produced cp; ?> points in total. To found or conquer a new village you need getProfileVillages($session->uid)); echo ${'cp'.$mode}[$total+1]; ?> points.

    +
    diff --git a/Templates/Build/26_3.tpl b/Templates/Build/26_3.tpl new file mode 100644 index 00000000..b3016dbe --- /dev/null +++ b/Templates/Build/26_3.tpl @@ -0,0 +1,13 @@ +

    Palace level resarray['f'.$id]; ?>

    +

    + + The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital.

    + + + + +By attacking with senators, chiefs or chieftains a village's loyalty can be brought down. If it reaches zero, the village joins the realm of the attacker. The loyalty of this village is currently at getVillageField($village->wid,'loyalty')); ?> percent.
    diff --git a/Templates/Build/26_4.tpl b/Templates/Build/26_4.tpl new file mode 100644 index 00000000..247bec9e --- /dev/null +++ b/Templates/Build/26_4.tpl @@ -0,0 +1,55 @@ +

    Palace level resarray['f'.$id]; ?>

    +

    + + +The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital. + + + + + + + + + + + + + + + +getVillageField($village->wid, 'exp1'); +$slot2 = $database->getVillageField($village->wid, 'exp2'); +$slot3 = $database->getVillageField($village->wid, 'exp3'); + +if($slot1 != 0 || $slot2 != 0 || $slot3 != 0){ + for($i=1; $i <= 3; $i++){ + if (${'slot'.$i}<>0) { + $coor = $database->getCoor(${'slot'.$i}); + $vname = $database->getVillageField(${'slot'.$i},'name'); + $owner = $database->getVillageField(${'slot'.$i},'owner'); + $pop = $database->getVillageField(${'slot'.$i},'pop'); + $vcreated = $database->getVillageField(${'slot'.$i},'created'); + $ownername = $database->getUserField($owner,'username',0); +echo ' + + + + + + + +'; + } + } +} +else{ +echo ''; +} +?> +
    Villages founded or conquered by this village
    VillagePlayerInhabitantsCoordinatesDate
    '.$i.'.'.$vname.''.$ownername.''.$pop.'
    ('.$coor['x'].'
    |
    '.$coor['y'].')
    '.date('d-m-Y',$vcreated).'
    No other village has been founded or conquered by this village yet.

    diff --git a/Templates/Build/26_create.tpl b/Templates/Build/26_create.tpl new file mode 100644 index 00000000..1701f85e --- /dev/null +++ b/Templates/Build/26_create.tpl @@ -0,0 +1,65 @@ +
    + + + + + + + + + + + + + + + "; + ?> + + +
    NaamAantalmax
    +
    + \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Available: ".$village->unitarray['u'.$i].") +
    +
    \"Lumber\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"duration\""; + echo $generator->getTimeFormat(round(${'u'.$i}['time']/SPEED)); + //if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { + //echo "|\"NPC"; + //} + echo " +
    maxUnit($i)."; return false;\">(".$technology->maxUnit($i).")
    +

    + +

    + + getTrainingList(20); + if(count($trainlist) > 0) { + $timer = 2*count($trainlist); + echo " + + + + + + + "; + foreach($trainlist as $train) { + echo " + "; + } + echo "
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\"".$train['amt']." ".$train['name']."".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + $timer -= 1; + $time = $generator->procMTime($train['commence']+(1*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at"; + } + echo $time[1]." o'clock
    The next unit will be finished in ".$generator->getTimeFormat(($train['commence']+$train['eachtime'])-time())."
    "; + } + ?> + +
    diff --git a/Templates/Build/26_menu.tpl b/Templates/Build/26_menu.tpl new file mode 100644 index 00000000..682580f9 --- /dev/null +++ b/Templates/Build/26_menu.tpl @@ -0,0 +1,7 @@ + + \ No newline at end of file diff --git a/Templates/Build/26_progress.tpl b/Templates/Build/26_progress.tpl new file mode 100644 index 00000000..5fcd9a1f --- /dev/null +++ b/Templates/Build/26_progress.tpl @@ -0,0 +1,34 @@ + getTrainingList(4); + if(count($trainlist) > 0) { + echo " + + + + + + + "; + $TrainCount = 0; + foreach($trainlist as $train) { + $TrainCount++; + echo " +
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\""; + echo $train['amt']." ".$train['name'].""; + if ($TrainCount == 1 ) { + $NextFinished = $generator->getTimeFormat(($train['commence']+$train['eachtime'])-time()); + echo "".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['commence']+($train['eachtime']*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at "; + } + echo $time[1]; + } ?> +
    The next unit will be finished in
    + diff --git a/Templates/Build/26_train.tpl b/Templates/Build/26_train.tpl new file mode 100644 index 00000000..6b2799b6 --- /dev/null +++ b/Templates/Build/26_train.tpl @@ -0,0 +1,61 @@ +getAvailableExpansionTraining(); + + if ($slots['settlers']+$slots['chiefs']>0) { ?> + +
    + + + + + + + + + + + + +tribe-1)*10+9;$i<=($session->tribe*10);$i++) { + if ($slots['settlers']>0 && $i%10==0 || $slots['chiefs']>0 && $i%10==9) { + $maxunit = MIN($technology->maxUnit($i),($i%10==0?$slots['settlers']:$slots['chiefs'])); + +echo " +"; + } + } ?> + + +
    NameQuantityMax
    +
    +\"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> +".$technology->getUnitName($i)." (Available: ".$village->unitarray['u'.$i].")
    +
    \"Lumber\"".${'u'.$i}['wood']."|\"Clay\"".${'u'.$i}['clay']."|\"Iron\"".${'u'.$i}['iron']."|\"Crop\"".${'u'.$i}['crop']."|\"duration\""; +echo $generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid26[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); + + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) { +echo "|\"NPC"; + } +echo "
    (".$maxunit.")
    +

    + +

    +
    +In order to found a new village you need a level 10, 15 or 20 palace and 3 settlers. In order to conquer a new village you need a level 10, 15 or 20 palace and a senator, chief or chieftain.'; + } + include ("26_progress.tpl"); +?> diff --git a/Templates/Build/27.tpl b/Templates/Build/27.tpl new file mode 100644 index 00000000..291e91aa --- /dev/null +++ b/Templates/Build/27.tpl @@ -0,0 +1,25 @@ + + + +
    + + +

    Treasury Level resarray['f'.$id]; ?>

    + +

    The riches of your empire are kept in the treasury. The treasury has room for one treasure. After you have captured an artefact it takes 24 hours on a normal server or 12 hours on a thrice speed server to be effective.

    + +
    \ No newline at end of file diff --git a/Templates/Build/27_1.tpl b/Templates/Build/27_1.tpl new file mode 100644 index 00000000..d25e4dd2 --- /dev/null +++ b/Templates/Build/27_1.tpl @@ -0,0 +1,143 @@ +getOwnArtefactInfo($village->wid); + $result = mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = " . $village->wid . "")); + $wref = $village->wid; + $coor = $database->getCoor($wref); + $coor2= $database->getCoor($artefact['vref']); + function getDistance($coorx1, $coory1, $coorx2, $coory2) { + $max = 2 * WORLD_MAX + 1; + $x1 = intval($coorx1); + $y1 = intval($coory1); + $x2 = intval($coorx2); + $y2 = intval($coory2); + $distanceX = min(abs($x2 - $x1), abs($max - abs($x2 - $x1))); + $distanceY = min(abs($y2 - $y1), abs($max - abs($y2 - $y1))); + $dist = sqrt(pow($distanceX, 2) + pow($distanceY, 2)); + return round($dist, 1); + } +?> +
    + + + + + + + + + + + + + + + + + You do not own any artefacts.'; + } else { + if($artefact['size'] == 1) { + $reqlvl = 10; + $effect = "village"; + } elseif($artefact['size'] == 2 or 3) { + $reqlvl = 20; + $effect = "account"; + } + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + +
    Own artefacts
    NameVillageConquered
    + ' . $artefact['name'] . ' ' . $artefact['effect'] . ' +
    + Treasury ' . $reqlvl . ', Effect ' . $effect . ' +
    +
    ' . $database->getVillageField($artefact['vref'], "name") . '' . date("d/m/Y H:i", $artefact['conquered']) . '
    + + + + + + + + + + + + + + + + + + + + There is no artefacts in your area.'; + } else { + + + function haversine($l1, $o1, $l2, $o2) { + $l1 = deg2rad($l1); + $sinl1 = sin($l1); + $l2 = deg2rad($l2); + $o1 = deg2rad($o1); + $o2 = deg2rad($o2); + + return (7926 - 26 * $sinl1) * asin(min(1, 0.707106781186548 * sqrt((1 - (sin($l2) * $sinl1) - cos($l1) * cos($l2) * cos($o2 - $o1))))); + } + + + unset($reqlvl); + unset($effect); + $arts = mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts"); + $rows = array(); + while($row = mysql_fetch_array($arts)) { + $query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'wdata` WHERE `id` = ' . $row['vref']); + $coor2 = mysql_fetch_assoc($query); + + + $dist = haversine($coor['x'], $coor['y'], $coor2['x'], $coor2['y']); + + $rows[$dist] = $row; + + } + ksort($rows, SORT_DESC); + foreach($rows as $row) { + $wref = $village->wid; + $coor = $database->getCoor($wref); + $wref2 = $row['vref']; + $coor2 = $database->getCoor($wref2); + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + } + +?> + +
    Artefacts in your area
    NamePlayerDistance
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . ''; + echo '
    '; + if($row['size'] == 1) { + $reqlvl = 10; + $effect = "village"; + } elseif($row['size'] == 2 or $row['size'] == 3) { + $reqlvl = 20; + $effect = "account"; + } + echo '
    Treasury ' . $reqlvl . ', Effect ' . $effect . ''; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . ''.getDistance($coor['x'], $coor['y'], $coor2['x'], $coor2['y']).'
    +
    diff --git a/Templates/Build/27_2.tpl b/Templates/Build/27_2.tpl new file mode 100644 index 00000000..150c8033 --- /dev/null +++ b/Templates/Build/27_2.tpl @@ -0,0 +1,217 @@ + +
    + + +

    Treasury Level resarray['f' . $id]; + +?>

    + +

    The riches of your empire are kept in the treasury. The treasury has room for one treasure. After you have captured an artefact it takes 24 hours on a normal server or 12 hours on a thrice speed server to be effective.

    + + + + + + + + + + + + + + + + + There is no artefacts.'; + } else { + + + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 1 AND type = 1"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + + unset($artefact); + unset($row); + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 1 AND type = 8"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + +
    Small artefacts
    NamePlayerAlliance
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 10, Effect Village
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 10, Effect Village
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 10, Effect Village
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 10, Effect Village
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 10, Effect Village
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 10, Effect Village
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 10, Effect Village
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 10, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 10, Effect Village
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    + + + + \ No newline at end of file diff --git a/Templates/Build/27_3.tpl b/Templates/Build/27_3.tpl new file mode 100644 index 00000000..ae57c17a --- /dev/null +++ b/Templates/Build/27_3.tpl @@ -0,0 +1,298 @@ + +
    + + +

    Treasury Level resarray['f' . $id]; + +?>

    + +

    The riches of your empire are kept in the treasury. The treasury has room for one treasure. After you have captured an artefact it takes 24 hours on a normal server or 12 hours on a thrice speed server to be effective.

    + + + + + + + + + + + + + + + + + There is no artefacts.'; + } else { + + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 2 AND type = 1"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + + unset($artefact); + unset($row); + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 3 AND type = 1"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + + unset($artefact); + unset($row); + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 3 AND type = 2"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + + unset($artefact); + unset($row); + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 3 AND type = 3"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + + unset($artefact); + unset($row); + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 3 AND type = 4"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + + unset($artefact); + unset($row); + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 3 AND type = 5"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + + unset($artefact); + unset($row); + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 3 AND type = 6"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + + unset($artefact); + unset($row); + $artefact = mysql_query("SELECT * FROM `" . TB_PREFIX . "artefacts` WHERE size = 3 AND type = 7"); + while($row = mysql_fetch_array($artefact)) { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + '; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + +?> + + + +
    Small artefacts
    NamePlayerAlliance
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    '; + echo '' . $row['name'] . ' ' . $row['effect'] . '
    Treasury 20, Effect Account
    '; + echo '
    ' . $database->getUserField($row['owner'], "username", 0) . '' . $database->getAllianceName($database->getUserField($row['owner'], "alliance", 0)) . '
    + + + + \ No newline at end of file diff --git a/Templates/Build/27_menu.tpl b/Templates/Build/27_menu.tpl new file mode 100644 index 00000000..99c06fd7 --- /dev/null +++ b/Templates/Build/27_menu.tpl @@ -0,0 +1,25 @@ + \ No newline at end of file diff --git a/Templates/Build/27_show.tpl b/Templates/Build/27_show.tpl new file mode 100644 index 00000000..bc25ee6c --- /dev/null +++ b/Templates/Build/27_show.tpl @@ -0,0 +1,93 @@ +getArtefactDetails($_GET['show']); + if($artefact['size'] == 1){ + $reqlvl = 10; + $effect = "village"; + }elseif($artefact['size'] == 2 OR $artefact['size'] == 3){ + $reqlvl = 20; + $effect = "account"; + } + if ($artefact['conquered'] >= (time()-86400)){ + $active = "Inactive"; + }else{ + $active = "Active"; + } +?> + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + +
    Owner + getUserField($artefact['owner'],"username",0);?> +
    Village + getVillageField($artefact['vref'], "name");?> +
    Alliance">getAllianceName($database->getUserField($artefact['owner'],"alliance",0)); ?>
    Area of effect
    BonusNOT CODED
    Required levelTreasury level
    Time of conquer
    time of activation
    + + + + + + + + + + + + + + + + + + + + +
    Former owner(s)
    PlayerVillageconquered
    getUserField($artefact['owner'],"username",0);?>getVillageField($artefact['vref'], "name");?>
    \ No newline at end of file diff --git a/Templates/Build/28.tpl b/Templates/Build/28.tpl new file mode 100644 index 00000000..4e8b1901 --- /dev/null +++ b/Templates/Build/28.tpl @@ -0,0 +1,27 @@ +
    +

    Trade Office Level resarray['f'.$id]; ?>

    +

    In the trade office the merchants' carts get improved and equipped with powerful horses. The higher its level the more your merchants are able to carry.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current merchant load:resarray['f'.$id]]['attri']; ?> Percent
    Merchant load at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    diff --git a/Templates/Build/29.tpl b/Templates/Build/29.tpl new file mode 100644 index 00000000..82cd64d0 --- /dev/null +++ b/Templates/Build/29.tpl @@ -0,0 +1,59 @@ +
    +

    Great Barracks level resarray['f'.$id]; ?>

    +

    Foot soldiers are trained in the great barracks. The higher the level of the barracks, the faster the troops are trained.

    + +getTypeLevel(29) > 0) { ?> +
    + + + + + + + + +
    NameQuantityMax
    +

    + Training can commence when great barracks are completed.
    \n"; + } + $trainlist = $technology->getTrainingList(5); + if(count($trainlist) > 0) { + echo " + + + + + + + "; + $TrainCount = 0; + foreach($trainlist as $train) { + $TrainCount++; + echo " +
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\""; + echo $train['amt']." ".$train['name'].""; + if ($TrainCount == 1 ) { + $NextFinished = $generator->getTimeFormat(($train['commence']+$train['eachtime'])-time()); + echo "".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['commence']+($train['eachtime']*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at "; + } + echo $time[1]; + } ?> +
    The next unit will be finished in
    + +

    \ No newline at end of file diff --git a/Templates/Build/29_train.tpl b/Templates/Build/29_train.tpl new file mode 100644 index 00000000..17672b54 --- /dev/null +++ b/Templates/Build/29_train.tpl @@ -0,0 +1,23 @@ +tribe-1)*10+1;$i<=($session->tribe-1)*10+4;$i++) { + if ($i <> 4 && $i <> 23 && $i <> 24 && ($technology->getTech($i) || $i%10 == 1)) { + +echo " +
    +\"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Available: ".$village->unitarray['u'.$i].") +
    +
    +\"Wood\"".(${'u'.$i}['wood']*3)."|\"Clay\"".(${'u'.$i}['clay']*3)."|\"Iron\"".(${'u'.$i}['iron']*3)."|\"Crop\"".(${'u'.$i}['crop']*3)."|\"Crop".${'u'.$i}['pop']."|\"Duration\""; +echo $generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid29[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); +if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|maxUnitPlus($i))."&r2=".((${'u'.$i}['clay'])*$technology->maxUnitPlus($i))."&r3=".((${'u'.$i}['iron'])*$technology->maxUnitPlus($i))."&r4=".((${'u'.$i}['crop'])*$technology->maxUnitPlus($i))."\" title=\"NPC trade\">\"NPC"; + } +echo "
    + + +maxUnit($i,true)."; return false;\">(".$technology->maxUnit($i,true).")"; + } + } +?> diff --git a/Templates/Build/3.tpl b/Templates/Build/3.tpl new file mode 100644 index 00000000..713704e8 --- /dev/null +++ b/Templates/Build/3.tpl @@ -0,0 +1,28 @@ +
    +

    resarray['f'.$id]; ?>

    +

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + + +
    resarray['f'.$id]]['prod']* SPEED; ?> per hour
    resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['prod']* SPEED; ?>
    + +

    diff --git a/Templates/Build/30.tpl b/Templates/Build/30.tpl new file mode 100644 index 00000000..81470815 --- /dev/null +++ b/Templates/Build/30.tpl @@ -0,0 +1,59 @@ +
    +

    Great Stables level resarray['f'.$id]; ?>

    +

    Cavalry can be trained in the great stable. The higher its level the faster the troops are trained.

    + +getTypeLevel(30) > 0) { ?> +
    + + + + + + + + +
    NameQuantityMax
    +

    + Training can commence when great stables are completed.
    \n"; + } + $trainlist = $technology->getTrainingList(6); + if(count($trainlist) > 0) { + echo " + + + + + + + "; + $TrainCount = 0; + foreach($trainlist as $train) { + $TrainCount++; + echo " +
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\""; + echo $train['amt']." ".$train['name'].""; + if ($TrainCount == 1 ) { + $NextFinished = $generator->getTimeFormat(($train['commence']+$train['eachtime'])-time()); + echo "".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['commence']+($train['eachtime']*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at "; + } + echo $time[1]; + } ?> +
    The next unit will be finished in
    + +

    \ No newline at end of file diff --git a/Templates/Build/30_train.tpl b/Templates/Build/30_train.tpl new file mode 100644 index 00000000..84437a67 --- /dev/null +++ b/Templates/Build/30_train.tpl @@ -0,0 +1,23 @@ +tribe-1)*10+3;$i<=($session->tribe-1)*10+6;$i++) { + if ($i <> 3 && $i <> 13 && $i <> 14 && $technology->getTech($i)) { + +echo " +
    +\"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Available: ".$village->unitarray['u'.$i].") +
    +
    +\"Wood\"".(${'u'.$i}['wood']*3)."|\"Clay\"".(${'u'.$i}['clay']*3)."|\"Iron\"".(${'u'.$i}['iron']*3)."|\"Crop\"".(${'u'.$i}['crop']*3)."|\"Crop".(${'u'.$i}['pop']-($building->getTypeLevel(41)>=1?1:0))."|\"Duration\""; +echo $generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid30[$village->resarray['f'.$id]]['attri'] * ($building->getTypeLevel(41)>=1?(1/$bid41[$building->getTypeLevel(41)]['attri']):1) / 100) / SPEED)); +if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|maxUnitPlus($i))."&r2=".((${'u'.$i}['clay'])*$technology->maxUnitPlus($i))."&r3=".((${'u'.$i}['iron'])*$technology->maxUnitPlus($i))."&r4=".((${'u'.$i}['crop'])*$technology->maxUnitPlus($i))."\" title=\"NPC trade\">\"NPC"; + } +echo "
    + + +maxUnit($i,true)."; return false;\">(".$technology->maxUnit($i,true).")"; + } + } +?> diff --git a/Templates/Build/31.tpl b/Templates/Build/31.tpl new file mode 100644 index 00000000..aa9cf69e --- /dev/null +++ b/Templates/Build/31.tpl @@ -0,0 +1,24 @@ +
    +

    City Wall Level resarray['f'.$id]; ?>

    +

    By building a City Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.

    + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Defence Bonus now:resarray['f'.$id]]['attri']; ?> Percent
    Defence Bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    +
    \ No newline at end of file diff --git a/Templates/Build/32.tpl b/Templates/Build/32.tpl new file mode 100644 index 00000000..e0d6a2ca --- /dev/null +++ b/Templates/Build/32.tpl @@ -0,0 +1,24 @@ +
    +

    Earth Wall Level resarray['f'.$id]; ?>

    +

    By building a Earth Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.

    + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Defence Bonus now:resarray['f'.$id]]['attri']; ?> Percent
    Defence Bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    +
    \ No newline at end of file diff --git a/Templates/Build/33.tpl b/Templates/Build/33.tpl new file mode 100644 index 00000000..43090627 --- /dev/null +++ b/Templates/Build/33.tpl @@ -0,0 +1,24 @@ +
    +

    Palisade Level resarray['f'.$id]; ?>

    +

    By building a Palisade you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.

    + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Defence Bonus now:resarray['f'.$id]]['attri']; ?> Percent
    Defence Bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    +
    \ No newline at end of file diff --git a/Templates/Build/34.tpl b/Templates/Build/34.tpl new file mode 100644 index 00000000..3579beaa --- /dev/null +++ b/Templates/Build/34.tpl @@ -0,0 +1,27 @@ +
    +

    Stonemason's Lodge Level resarray['f'.$id]; ?>

    +

    The stonemason's lodge is an expert at cutting stone. The further the building is extended the higher the stability of the village's buildings.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current stability bonus:resarray['f'.$id]]['attri']; ?> Percent
    Stability bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    \ No newline at end of file diff --git a/Templates/Build/35.tpl b/Templates/Build/35.tpl new file mode 100644 index 00000000..53c55d22 --- /dev/null +++ b/Templates/Build/35.tpl @@ -0,0 +1,27 @@ +
    +

    Brewery Level resarray['f'.$id]; ?>

    +

    Tasty mead is brewed in the Brewery and later quaffed by the soldiers during the celebrations.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current bonus:resarray['f'.$id]]['attri']; ?> Percent
    Bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    \ No newline at end of file diff --git a/Templates/Build/36.tpl b/Templates/Build/36.tpl new file mode 100644 index 00000000..dc3a3cd0 --- /dev/null +++ b/Templates/Build/36.tpl @@ -0,0 +1,71 @@ +

    Vallenzetter Niveau 1

    +

    + + Met goed verstopte vallen, beschermt de vallenzetter zijn dorp. Onachtzame aanvallers kunnen zo gevangen genomen worden en zijn geen gevaar meer voor het dorp.

    + + + + + + + + + + + + +
    Actuele maximale aantal10 Vallen
    Maximale aantal bij niveau 222 Vallen
    +

    Je bezit op het moment 0 vallen, daarvan zijn er 0 bezet.

    +
    + + + + + + + + + + + + + + + + + + +
    NaamAantalmax
    +
    Val Vallen (Aanwezig: 0) +
    +
    +Hout20|Klei30|IJzer10|Graan20|Graanverbruik0|duur0:10:00 + +
    +
    (10)
    + +

    +
    + +

    \ No newline at end of file diff --git a/Templates/Build/37.tpl b/Templates/Build/37.tpl new file mode 100644 index 00000000..16d1139b --- /dev/null +++ b/Templates/Build/37.tpl @@ -0,0 +1,56 @@ + | +| Dzoki < dzoki.travian@gmail.com > | +| Copyright: TravianX Project All rights reserved | +\*-------------------------------------------------------*/ + + $hero = mysql_query("SELECT * FROM " . TB_PREFIX . "hero WHERE `uid` = " . $session->uid . ""); + $hero_info = mysql_fetch_array($hero); + + $define['reset_level'] = 3; // Until which level you are able to reset your points + +?> + + +
    + + +

    Hero's mansion Level resarray['f' . $id]; ?>

    + +

    In the Hero's mansion you can train your own hero and at level 10, 15 and 20 you can conquer oases with Hero in the immediate vicinity.

    + + + uid . ""); + mysql_query("UPDATE " . TB_PREFIX . "units SET hero = 1 WHERE vref = ".$village->wid.""); + } + } + } + + if(isset($_GET['land'])) { + include("37_land.tpl"); + } else { + if(mysql_num_rows($hero) == 0){ + include("37_train.tpl"); + } + if(mysql_num_rows($hero) != 0 AND $hero_info['trainingtime'] > time()){ + include("37_train2.tpl"); + } + if(mysql_num_rows($hero) != 0 AND $hero_info['dead'] == 1){ + include("37_revive.tpl"); + } + if(mysql_num_rows($hero) != 0 AND $hero_info['dead'] == 0 AND $hero_info['trainingtime'] <= time()){ + include("37_hero.tpl"); + } + } + include ("upgrade.tpl"); ?> + +
    diff --git a/Templates/Build/37_hero.tpl b/Templates/Build/37_hero.tpl new file mode 100644 index 00000000..3a96f983 --- /dev/null +++ b/Templates/Build/37_hero.tpl @@ -0,0 +1,312 @@ + | +| Dzoki < dzoki.travian@gmail.com > | +| Copyright: TravianX Project All rights reserved | +\*-------------------------------------------------------*/ + +include_once("GameEngine/Data/hero_full.php"); + + if ( isset($_POST['name'])) { + mysql_query("UPDATE ".TB_PREFIX."hero SET `name`='".($_POST['name'])."' where `uid`='".$session->uid."'") or die("ERROR:".mysql_error()); + $hero = mysql_query("SELECT * FROM " . TB_PREFIX . "hero WHERE `uid` = " . $session->uid . ""); + $hero_info = mysql_fetch_array($hero); + echo "Heros name has been changed"; + } + + $hero = $units->Hero($session->uid); + +?> + = 495000) { + mysql_query("UPDATE ".TB_PREFIX."hero SET `experience` = 495000 where `uid`='".$session->uid."'"); + mysql_query("UPDATE ".TB_PREFIX."hero SET `level` = 100 where `uid`='".$session->uid."'"); + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    uid."\">"; + }else{ + echo "".$hero_info['name'].""; + } + + ?> Level 100 ( getUnitName($hero_info['unit'])."\" title=\"".$technology->getUnitName($hero_info['unit'])."\" /> ".$technology->getUnitName($hero_info['unit']); ?> )
    Offence<?php echo $hero['atk']; ?> + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + ?> +
    Defence<?php echo ($hero['di']) . " title="" /> + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + ?> +
    Off-Bonus%<?php echo ($hero['ob']-1)*100; ?>% + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + ?> +
    Def-Bonus%<?php echo ($hero['db']-1)*100; ?>% + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + ?> +
    Regeneration%/Day<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + ?> +
    Experience:100%100%
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    uid."\">"; + }else{ + echo "".$hero_info['name'].""; + } + + ?> Level ( getUnitName($hero_info['unit'])."\" title=\"".$technology->getUnitName($hero_info['unit'])."\" /> ".$technology->getUnitName($hero_info['unit']); ?> )
    Offence<?php echo $hero['atk']; ?> + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + }else{ + echo "(+)"; + } + ?> +
    Defence<?php echo ($hero['di']) . " title="" /> + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + }else{ + echo "(+)"; + } + ?> +
    Off-Bonus%<?php echo ($hero['ob']-1)*100; ?>% + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + }else{ + echo "(+)"; + } + ?> +
    Def-Bonus%<?php echo ($hero['db']-1)*100; ?>% + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + }else{ + echo "(+)"; + } + ?> +
    Regeneration%/Day<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day + 0){ + echo "(+)"; + }else { + echo "(+)"; + } + }else{ + echo "(+)"; + } + ?> +
    Experience:%<?php echo ($hero_info['experience'] - $hero_levels[$hero_info['level']]) / ($hero_levels[$hero_info['level']+1] - $hero_levels[$hero_info['level']])*100 ?>%
    + + + + Error: name too short

    "; + } + ?> + +

    You can reset your points until you are level 3 or lower!

    + + +

    Your hero has % of his hit points.
    + Your hero has conquered VillageOasisCount($village->wid); ?> oases.

    + + uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `attack` = '0' WHERE `uid` = '" . $session->uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `defence` = '0' WHERE `uid` = '" . $session->uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `attackbonus` = '0' WHERE `uid` = '" . $session->uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `defencebonus` = '0' WHERE `uid` = '" . $session->uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `regeneration` = '0' WHERE `uid` = '" . $session->uid . "'"); + header("Location: build.php?id=".$id.""); + } + } + } + if($_GET['add'] == "off") { + if($hero_info['points'] > 0) { + mysql_query("UPDATE " . TB_PREFIX . "hero SET `attack` = `attack` + 1 WHERE `uid` = '" . $session->uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `uid` = '" . $session->uid . "'"); + header("Location: build.php?id=".$id.""); + } + } + if($_GET['add'] == "deff") { + if($hero_info['points'] > 0) { + mysql_query("UPDATE " . TB_PREFIX . "hero SET `defence` = `defence` + 1 WHERE `uid` = '" . $session->uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `uid` = '" . $session->uid . "'"); + header("Location: build.php?id=".$id.""); + } + } + if($_GET['add'] == "obonus") { + if($hero_info['points'] > 0) { + mysql_query("UPDATE " . TB_PREFIX . "hero SET `attackbonus` = `attackbonus` + 1 WHERE `uid` = '" . $session->uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `uid` = '" . $session->uid . "'"); + header("Location: build.php?id=".$id.""); + } + } + if($_GET['add'] == "dbonus") { + if($hero_info['points'] > 0) { + mysql_query("UPDATE " . TB_PREFIX . "hero SET `defencebonus` = `defencebonus` + 1 WHERE `uid` = '" . $session->uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `uid` = '" . $session->uid . "'"); + header("Location: build.php?id=".$id.""); + } + } + if($_GET['add'] == "reg") { + if($hero_info['points'] > 0) { + mysql_query("UPDATE " . TB_PREFIX . "hero SET `regeneration` = `regeneration` + 1 WHERE `uid` = '" . $session->uid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `uid` = '" . $session->uid . "'"); + header("Location: build.php?id=".$id.""); + } + } + } + ?> \ No newline at end of file diff --git a/Templates/Build/37_land.tpl b/Templates/Build/37_land.tpl new file mode 100644 index 00000000..803b72c8 --- /dev/null +++ b/Templates/Build/37_land.tpl @@ -0,0 +1,74 @@ +getOasis($village->wid); + +?> + + + + + + + + + + + + +getCoor($oasisarray[$i]['wref']); +?> + + + + + + + + +
    oases
    NameCoordinatesLoyalityResources
    +delete + + +
    (
    +
    |
    +
    )
    +
    %Wood+25%Wood+25% + Crop+25%Clay+25%Clay+25% + Crop+25%Iron+25%Iron+25% + Crop+25%Crop+25%Crop+50%
    diff --git a/Templates/Build/37_revive.tpl b/Templates/Build/37_revive.tpl new file mode 100644 index 00000000..2344a0dc --- /dev/null +++ b/Templates/Build/37_revive.tpl @@ -0,0 +1,140 @@ + | +| Dzoki < dzoki.travian@gmail.com > | +| Copyright: TravianX Project All rights reserved | +\*-------------------------------------------------------*/ + + if($hero_info['unit'] == 1) { + $name = "Legionnaire"; + } else if($hero_info['unit'] == 2) { + $name = "Praetorian"; + } else if($hero_info['unit'] == 3) { + $name = "Imperian"; + } else if($hero_info['unit'] == 5) { + $name = "Equites Imperatoris"; + } else if($hero_info['unit'] == 6) { + $name = "Equites Caesaris"; + } else if($hero_info['unit'] == 11) { + $name = "Clubswinger"; + } else if($hero_info['unit'] == 12) { + $name = "Spearman"; + } else if($hero_info['unit'] == 13) { + $name = "Axeman"; + } else if($hero_info['unit'] == 15) { + $name = "Paladin"; + } else if($hero_info['unit'] == 16) { + $name = "Teutonic Knight"; + } else if($hero_info['unit'] == 21) { + $name = "Phalanx"; + } else if($hero_info['unit'] == 22) { + $name = "Swordsman"; + } else if($hero_info['unit'] == 24) { + $name = "Theutates Thunder"; + } else if($hero_info['unit'] == 25) { + $name = "Druidrider"; + } else if($hero_info['unit'] == 26) { + $name = "Haeduan"; + } + + $wood = (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['wood']); + $clay = (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['clay']); + $iron = (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['iron']); + $crop = (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['crop']); + $training_time = $generator->getTimeFormat(round((${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['time']) / SPEED)); + $training_time2 = time() + (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['time']) / SPEED; +?> + + + + + + + + + + + + + + + + + + checkIfResearched($village->wid, 't'.$hero_info['unit']) != 0){ ?> + + + + + + + +
    Revive hero
    +
    + <?php echo $name; ?> + +
    +
    + Wood| + Clay| + Iron| + Crop| + Crop consumption6| + Duration + +
    +
    + awood < $wood OR $village->aclay < $clay OR $village->airon < $iron OR $village->acrop < $crop) { + echo "No enough resources"; + }else { + echo "Revive"; + } + + ?>
    +
    + <?php echo $name; ?> + +
    +
    + Wood| + Clay| + Iron| + Crop| + Crop consumption6| + Duration + +
    +
    + awood < $wood OR $village->aclay < $clay OR $village->airon < $iron OR $village->acrop < $crop) { + echo "No enough resources"; + }else { + echo "Revive"; + } + + ?> +
    + + + uid."'"); + mysql_query("UPDATE " . TB_PREFIX . "units SET hero = 1 WHERE vref = ".$village->wid.""); + header("Location: build.php?id=".$id.""); + } + + if($hero_info['trainingtime'] <= time()) { + if($hero_info['trainingtime'] != 0) { + if($hero_info['dead'] == 0) { + mysql_query("UPDATE " . TB_PREFIX . "hero SET trainingtime = '0' WHERE uid = " . $session->uid . ""); + mysql_query("UPDATE " . TB_PREFIX . "units SET hero = 1 WHERE vref = ".$village->wid.""); + } + } + } + include ("37_train.tpl"); + ?> \ No newline at end of file diff --git a/Templates/Build/37_train.tpl b/Templates/Build/37_train.tpl new file mode 100644 index 00000000..1b366b71 --- /dev/null +++ b/Templates/Build/37_train.tpl @@ -0,0 +1,609 @@ +wid.""); +$units = mysql_fetch_array($result); + +$output=" + + + + + "; + +if($session->tribe == 1) { + $output.=" + + + +"; + + + + if($database->checkIfResearched($village->wid, 't2') != 0){ + $output.=" + + + + "; + } + + if($database->checkIfResearched($village->wid, 't3') != 0){ + + $output.=" + + + + " ; + } + + if($database->checkIfResearched($village->wid, 't5') != 0){ + $output.= " + + + + "; + } + + if($database->checkIfResearched($village->wid, 't6') != 0){ + $output.=" + + + + "; + } +} + +if($session->tribe == 2) { + +$output.=" + + + + "; + + + if($database->checkIfResearched($village->wid, 't12') != 0){ + $output.=" + + + + "; + } + + + if($database->checkIfResearched($village->wid, 't13') != 0){ + $output.=" + + + + "; + } + + if($database->checkIfResearched($village->wid, 't15') != 0){ + $output.=" + + + + "; + } + + + if($database->checkIfResearched($village->wid, 't16') != 0){ + $output.=" + + + + "; + } +} + + +if($session->tribe == 3) { + +$output.=" + + + + "; + + + if($database->checkIfResearched($village->wid, 't22') != 0){ + $output.=" + + + + "; + } + + + if($database->checkIfResearched($village->wid, 't24') != 0){ + $output.=" + + + + "; + } + + if($database->checkIfResearched($village->wid, 't25') != 0){ + $output.=" + + + + "; + } + + + if($database->checkIfResearched($village->wid, 't26') != 0){ + $output.=" + + + + "; + } +} + + + + //HERO TRAINING + if($session->tribe == 1){ + if($_GET['train'] == 1){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '1', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u1['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u1` = `u1` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 2){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '2', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u2['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u2` = `u2` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 3){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '3', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u3['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u3` = `u3` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 5){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '5', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u5['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u5` = `u5` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 6){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '6', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u6['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u6` = `u6` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + } + if($session->tribe == 2){ + if($_GET['train'] == 11){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '11', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u11['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u11` = `u11` - 1 WHERE `vref` = '" . $village->wid . "'"); + //echo headers_sent(); + header("Location: build.php?id=".$id.""); + //echo ""; + } + if($_GET['train'] == 12){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '12', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u12['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u12` = `u12` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 13){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '13', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u13['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u13` = `u13` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 15){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '15', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u15['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u15` = `u15` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 16){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '16', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u16['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u16` = `u16` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + } + if($session->tribe == 3){ + if($_GET['train'] == 21){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '21', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u21['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u21` = `u21` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 22){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '22', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u22['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u22` = `u22` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 24){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '24', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u24['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u24` = `u24` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 25){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '25', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u25['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u25` = `u25` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + if($_GET['train'] == 26){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`) VALUES (''".$session->uid."', '" . $village->wid . "', '0', '26', '".$session->username."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u26['time'] / SPEED)*3))."', '50')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u26` = `u26` - 1 WHERE `vref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + } + } + + + +echo $output; + +?> +
    Train New Hero
    +
    + \"Legionnaire\" + Legionnaire +
    +
    + \"Wood\"".$u1['wood']."| + \"Clay\"".$u1['clay']."| + \"Iron\"".$u1['iron']."| + \"Crop\"".$u1['crop']."| + \"Crop6| + \"Duration\""; + $output.=$generator->getTimeFormat(round($u1['time'] / SPEED)*3); + $output.="
    +
    "; + + + if($village->awood < $u1['wood'] || $village->aclay < $u1['clay'] || $village->airon < $u1['iron'] || $village->acrop < $u1['crop']) + $output.="Not enough resources"; + elseif($units['u1'] == 0) + $output.="Not available units"; + else $output.="Train"; + + + $output.="
    +
    + \"Praetorian\" + Praetorian +
    +
    + \"Wood\"".$u2['wood']."| + \"Clay\"".$u2['clay']."| + \"Iron\"".$u2['iron']."| + \"Crop\"".$u2['crop']."| + \"Crop6| + \"Duration\""; + $output.=$generator->getTimeFormat(round($u2['time'] / SPEED)*3); + + $output.="
    +
    "; + + if($village->awood < $u2['wood'] OR $village->aclay < $u2['clay'] OR $village->airon < $u2['iron'] OR $village->acrop < $u2['crop']) + $output.="Not enough resources"; + elseif($units['u2'] == 0) + $output.="Not available units"; + else + $output.="Train"; + + $output.="
    +
    + \"Imperian\" + Imperian +
    +
    + \"Wood\"".$u3['wood']."| + \"Clay\"".$u3['clay']."| + \"Iron\"".$u3['iron']."| + \"Crop\"".$u3['crop']."| + \"Crop6| + \"Duration\""; + + $output.= $generator->getTimeFormat(round($u3['time'] / SPEED)*3); + + $output.= "
    +
    "; + + if($village->awood < $u3['wood'] OR $village->aclay < $u3['clay'] OR $village->airon < $u3['iron'] OR $village->acrop < $u3['crop']) { + $output.="Not enough resources"; + }else if($units['u3'] == 0){ + $output.="Not available units"; + }else { + $output.="Train"; + } + "
    +
    + \"Equites + Equites Imperatoris +
    +
    + \"Wood\"".$u5['wood']."| + \"Clay\"".$u5['clay']."| + \"Iron\"".$u5['iron']."| + \"Crop\"".$u5['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u5['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u5['wood'] OR $village->aclay < $u5['clay'] OR $village->airon < $u5['iron'] OR $village->acrop < $u5['crop']) { + $output.= "Not enough resources"; + }else if($units['u5'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Equites + Equites Caesaris +
    +
    + \"Wood\"".$u6['wood']."| + \"Clay\"".$u6['clay']."| + \"Iron\"".$u6['iron']."| + \"Crop\"".$u6['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u6['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u6['wood'] OR $village->aclay < $u6['clay'] OR $village->airon < $u6['iron'] OR $village->acrop < $u6['crop']) { + $output.= "Not enough resources"; + }else if($units['u6'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + + $output.="
    +
    + \"Clubswinger\" + Clubswinger +
    +
    + \"Wood\"".$u11['wood']."| + \"Clay\"".$u11['clay']."| + \"Iron\"".$u11['iron']."| + \"Crop\"".$u11['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u11['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u11['wood'] OR $village->aclay < $u11['clay'] OR $village->airon < $u11['iron'] OR $village->acrop < $u11['crop']) { + $output.= "Not enough resources"; + }else if($units['u11'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Clubswinger\" + Clubswinger +
    +
    + \"Wood\"".$u12['wood']."| + \"Clay\"".$u12['clay']."| + \"Iron\"".$u12['iron']."| + \"Crop\"".$u12['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u12['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u12['wood'] OR $village->aclay < $u12['clay'] OR $village->airon < $u12['iron'] OR $village->acrop < $u12['crop']) { + $output.= "Not enough resources"; + }else if($units['u12'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Clubswinger\" + Clubswinger +
    +
    + \"Wood\"".$u13['wood']."| + \"Clay\"".$u13['clay']."| + \"Iron\"".$u13['iron']."| + \"Crop\"".$u13['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u13['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u13['wood'] OR $village->aclay < $u13['clay'] OR $village->airon < $u13['iron'] OR $village->acrop < $u13['crop']) { + $output.= "Not enough resources"; + }else if($units['u13'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Clubswinger\" + Clubswinger +
    +
    + \"Wood\"".$u15['wood']."| + \"Clay\"".$u15['clay']."| + \"Iron\"".$u15['iron']."| + \"Crop\"".$u15['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u15['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u15['wood'] OR $village->aclay < $u15['clay'] OR $village->airon < $u15['iron'] OR $village->acrop < $u15['crop']) { + $output.= "Not enough resources"; + }else if($units['u15'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Clubswinger\" + Clubswinger +
    +
    + \"Wood\"".$u16['wood']."| + \"Clay\"".$u16['clay']."| + \"Iron\"".$u16['iron']."| + \"Crop\"".$u16['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u16['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u16['wood'] OR $village->aclay < $u16['clay'] OR $village->airon < $u16['iron'] OR $village->acrop < $u16['crop']) { + $output.= "Not enough resources"; + }else if($units['u16'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Phalanx\" + Phalanx +
    +
    + \"Wood\"".$u21['wood']."| + \"Clay\"".$u21['clay']."| + \"Iron\"".$u21['iron']."| + \"Crop\"".$u21['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u21['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u21['wood'] OR $village->aclay < $u21['clay'] OR $village->airon < $u21['iron'] OR $village->acrop < $u21['crop']) { + $output.= "Not enough resources"; + }else if($units['u21'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Clubswinger\" + Clubswinger +
    +
    + \"Wood\"".$u22['wood']."| + \"Clay\"".$u22['clay']."| + \"Iron\"".$u22['iron']."| + \"Crop\"".$u22['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u22['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u22['wood'] OR $village->aclay < $u22['clay'] OR $village->airon < $u22['iron'] OR $village->acrop < $u22['crop']) { + $output.= "Not enough resources"; + }else if($units['u22'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Clubswinger\" + Clubswinger +
    +
    + \"Wood\"".$u24['wood']."| + \"Clay\"".$u24['clay']."| + \"Iron\"".$u24['iron']."| + \"Crop\"".$u24['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u24['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u24['wood'] OR $village->aclay < $u24['clay'] OR $village->airon < $u24['iron'] OR $village->acrop < $u24['crop']) { + $output.= "Not enough resources"; + }else if($units['u24'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Clubswinger\" + Clubswinger +
    +
    + \"Wood\"".$u25['wood']."| + \"Clay\"".$u25['clay']."| + \"Iron\"".$u25['iron']."| + \"Crop\"".$u25['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u25['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u25['wood'] OR $village->aclay < $u25['clay'] OR $village->airon < $u25['iron'] OR $village->acrop < $u25['crop']) { + $output.= "Not enough resources"; + }else if($units['u25'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    +
    + \"Clubswinger\" + Clubswinger +
    +
    + \"Wood\"".$u26['wood']."| + \"Clay\"".$u26['clay']."| + \"Iron\"".$u26['iron']."| + \"Crop\"".$u26['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u26['time'] / SPEED)*3)." +
    +
    "; + + if($village->awood < $u26['wood'] OR $village->aclay < $u26['clay'] OR $village->airon < $u26['iron'] OR $village->acrop < $u26['crop']) { + $output.= "Not enough resources"; + }else if($units['u26'] == 0){ + $output.= "Not available units"; + }else { + $output.= "Train"; + } + $output.="
    \ No newline at end of file diff --git a/Templates/Build/37_train2.tpl b/Templates/Build/37_train2.tpl new file mode 100644 index 00000000..28dfefd3 --- /dev/null +++ b/Templates/Build/37_train2.tpl @@ -0,0 +1,70 @@ + | +| Dzoki < dzoki.travian@gmail.com > | +| Copyright: TravianX Project All rights reserved | +\*-------------------------------------------------------*/ + + if($hero_info['unit'] == 1) { + $name = "Legionnaire"; + } else if($hero_info['unit'] == 2) { + $name = "Praetorian"; + } else if($hero_info['unit'] == 3) { + $name = "Imperian"; + } else if($hero_info['unit'] == 5) { + $name = "Equites Imperatoris"; + } else if($hero_info['unit'] == 6) { + $name = "Equites Caesaris"; + } else if($hero_info['unit'] == 11) { + $name = "Clubswinger"; + } else if($hero_info['unit'] == 12) { + $name = "Spearman"; + } else if($hero_info['unit'] == 13) { + $name = "Axeman"; + } else if($hero_info['unit'] == 15) { + $name = "Paladin"; + } else if($hero_info['unit'] == 16) { + $name = "Teutonic Knight"; + } else if($hero_info['unit'] == 21) { + $name = "Phalanx"; + } else if($hero_info['unit'] == 22) { + $name = "Swordsman"; + } else if($hero_info['unit'] == 24) { + $name = "Theutates Thunder"; + } else if($hero_info['unit'] == 25) { + $name = "Druidrider"; + } else if($hero_info['unit'] == 26) { + $name = "Haeduan"; + } + + if($hero_info['trainingtime'] <= time()) { + if($hero_info['trainingtime'] != 0) { + if($hero_info['dead'] == 0) { + mysql_query("UPDATE " . TB_PREFIX . "hero SET trainingtime = '0', dead = '0' WHERE uid = " . $session->uid . ""); + mysql_query("UPDATE " . TB_PREFIX . "units SET hero = 1 WHERE vref = ".$village->wid.""); + } + } + } + + + if($hero_info['trainingtime'] > time()) { + $timeleft = $generator->getTimeFormat($hero_info['trainingtime'] - time()); + +?> + + + + "; ?> + + + + + + +
    Hero will be ready in " . $timeleft . "
    " . $hero_info['name'] . ") "; ?>
    + + + \ No newline at end of file diff --git a/Templates/Build/38.tpl b/Templates/Build/38.tpl new file mode 100644 index 00000000..ec08bde0 --- /dev/null +++ b/Templates/Build/38.tpl @@ -0,0 +1,27 @@ +
    +

    Great Warehouse Level resarray['f'.$id]; ?>

    +

    Wood, clay and iron are stored in the warehouse. The great warehouse offers you more space and keeps your goods drier and safer than the normal one.

    + + + + + + + + +isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current capacity:resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?> units
    Capacity at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']*STORAGE_MULTIPLIER; ?> units
    + +

    diff --git a/Templates/Build/39.tpl b/Templates/Build/39.tpl new file mode 100644 index 00000000..0f5bc8d3 --- /dev/null +++ b/Templates/Build/39.tpl @@ -0,0 +1,28 @@ +
    +

    Great Granary Level resarray['f'.$id]; ?>

    +

    Crop produced by your farms is stored in the granary. The great granary offers you more space and keeps your crops drier and safer than the normal one.

    + + + + + + + + + +isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current capacity:resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?> units
    Capacity at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']*STORAGE_MULTIPLIER; ?> units
    + +

    diff --git a/Templates/Build/4.tpl b/Templates/Build/4.tpl new file mode 100644 index 00000000..38f38183 --- /dev/null +++ b/Templates/Build/4.tpl @@ -0,0 +1,28 @@ +
    +

    resarray['f'.$id];?>

    +

    + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + + + +
    resarray['f'.$id]]['prod']* SPEED; ?>
    resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['prod']* SPEED; ?>
    + +

    diff --git a/Templates/Build/41.tpl b/Templates/Build/41.tpl new file mode 100644 index 00000000..22ac09fb --- /dev/null +++ b/Templates/Build/41.tpl @@ -0,0 +1,10 @@ +
    +

    Horse Drinking Trough Level resarray['f'.$id]; ?>

    +

    The horse drinking trough of the Romans decreases the training time of cavalry and the upkeep of these troops as well.

    + + +

    \ No newline at end of file diff --git a/Templates/Build/42.tpl b/Templates/Build/42.tpl new file mode 100644 index 00000000..371bd404 --- /dev/null +++ b/Templates/Build/42.tpl @@ -0,0 +1,59 @@ +
    +

    Great Workshop level resarray['f'.$id]; ?>

    +

    Siege engines like catapults and rams can be built in the great workshop. The higher its level the faster the units are produced.

    + +getTypeLevel(42) > 0) { ?> +
    + + + + + + + + +
    NameQuantityMax
    +

    + Training can commence when great workshop is completed.
    \n"; + } + $trainlist = $technology->getTrainingList(7); + if(count($trainlist) > 0) { + echo " + + + + + + + "; + $TrainCount = 0; + foreach($trainlist as $train) { + $TrainCount++; + echo " +
    TrainingDurationFinished
    "; + echo "\"".$train['name']."\""; + echo $train['amt']." ".$train['name'].""; + if ($TrainCount == 1 ) { + $NextFinished = $generator->getTimeFormat(($train['commence']+$train['eachtime'])-time()); + echo "".$generator->getTimeFormat(($train['commence']+($train['eachtime']*$train['amt']))-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['commence']+($train['eachtime']*$train['amt'])); + if($time[0] != "today") { + echo "on ".$time[0]." at "; + } + echo $time[1]; + } ?> +
    The next unit will be finished in
    + +

    \ No newline at end of file diff --git a/Templates/Build/42_train.tpl b/Templates/Build/42_train.tpl new file mode 100644 index 00000000..9438a0c4 --- /dev/null +++ b/Templates/Build/42_train.tpl @@ -0,0 +1,22 @@ +tribe-1)*10+7;$i<=($session->tribe-1)*10+8;$i++) { + if ($technology->getTech($i)) { +echo " +
    +\"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" /> + ".$technology->getUnitName($i)." (Available: ".$village->unitarray['u'.$i].") +
    +
    +\"Wood\"".(${'u'.$i}['wood']*3)."|\"Clay\"".(${'u'.$i}['clay']*3)."|\"Iron\"".(${'u'.$i}['iron']*3)."|\"Crop\"".(${'u'.$i}['crop']*3)."|\"Crop".${'u'.$i}['pop']."|\"Duration\""; +echo $generator->getTimeFormat(round(${'u'.$i}['time'] * ($bid42[$village->resarray['f'.$id]]['attri'] / 100) / SPEED)); +if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|maxUnitPlus($i))."&r2=".((${'u'.$i}['clay'])*$technology->maxUnitPlus($i))."&r3=".((${'u'.$i}['iron'])*$technology->maxUnitPlus($i))."&r4=".((${'u'.$i}['crop'])*$technology->maxUnitPlus($i))."\" title=\"NPC trade\">\"NPC"; + } +echo "
    + + +maxUnit($i,true)."; return false;\">(".$technology->maxUnit($i,true).")"; + } + } +?> \ No newline at end of file diff --git a/Templates/Build/5.tpl b/Templates/Build/5.tpl new file mode 100644 index 00000000..edf9737b --- /dev/null +++ b/Templates/Build/5.tpl @@ -0,0 +1,27 @@ +
    +

    Sawmill Level resarray['f'.$id]; ?>

    +

    Here wood delivered by your Woodcutters is processed. Based on its level your sawmill can increase your wood production by up to 25 percent.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current wood bonus:resarray['f'.$id]]['attri']; ?> Percent
    Wood bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    \ No newline at end of file diff --git a/Templates/Build/6.tpl b/Templates/Build/6.tpl new file mode 100644 index 00000000..208723f1 --- /dev/null +++ b/Templates/Build/6.tpl @@ -0,0 +1,27 @@ +
    +

    Brickyard Level resarray['f'.$id]; ?>

    +

    Here clay is processed into bricks. Based on its level your Brickyard can increase your clay production by up to 25 percent.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current clay bonus:resarray['f'.$id]]['attri']; ?> Percent
    Clay bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    \ No newline at end of file diff --git a/Templates/Build/7.tpl b/Templates/Build/7.tpl new file mode 100644 index 00000000..c4fac012 --- /dev/null +++ b/Templates/Build/7.tpl @@ -0,0 +1,27 @@ +
    +

    Iron Foundry Level resarray['f'.$id]; ?>

    +

    Iron is smelted here. Based on its level your Iron Foundry can increase your iron production by up to 25 percent.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current iron bonus:resarray['f'.$id]]['attri']; ?> Percent
    Iron bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    \ No newline at end of file diff --git a/Templates/Build/8.tpl b/Templates/Build/8.tpl new file mode 100644 index 00000000..9f96ea58 --- /dev/null +++ b/Templates/Build/8.tpl @@ -0,0 +1,27 @@ +
    +

    Grain Mill Level resarray['f'.$id]; ?>

    +

    Here your grain is milled in order to produce flour. Based on its level your grain mill can increase your crop production by up to 25 percent.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current crop bonus:resarray['f'.$id]]['attri']; ?> Percent
    Crop bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    \ No newline at end of file diff --git a/Templates/Build/9.tpl b/Templates/Build/9.tpl new file mode 100644 index 00000000..53efdc62 --- /dev/null +++ b/Templates/Build/9.tpl @@ -0,0 +1,27 @@ +
    +

    Bakery Level resarray['f'.$id]; ?>

    +

    Here the flour produced in your mill is used to bake bread. In addition with the Grain Mill the increase in crop production can go up to 50 percent.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + ?> + + + + +
    Current crop bonus:resarray['f'.$id]]['attri']; ?> Percent
    Crop bonus at level resarray['f'.$id]+1; ?>:resarray['f'.$id]+1]['attri']; ?> Percent
    + +

    \ No newline at end of file diff --git a/Templates/Build/avaliable.tpl b/Templates/Build/avaliable.tpl new file mode 100644 index 00000000..06940bad --- /dev/null +++ b/Templates/Build/avaliable.tpl @@ -0,0 +1,373 @@ +getOwnArtefactInfoByType($village->wid,6); +$largeA = $database->getOwnUniqueArtefactInfo($session->uid,6,2); + +$mainbuilding = $building->getTypeLevel(15); +$cranny = $building->getTypeLevel(23); +$granary = $building->getTypeLevel(11); +$warehouse = $building->getTypeLevel(10); +$embassy = $building->getTypeLevel(18); +$wall = $village->resarray['f40']; +$rallypoint = $building->getTypeLevel(16); +$hero = $building->getTypeLevel(37); +$market = $building->getTypeLevel(17); +$barrack = $building->getTypeLevel(19); +$cropland = $building->getTypeLevel(4); +$grainmill = $building->getTypeLevel(8); +$residence = $building->getTypeLevel(25); +$academy = $building->getTypeLevel(22); +$armoury = $building->getTypeLevel(13); +$woodcutter = $building->getTypeLevel(1); +$palace = $building->getTypeLevel(26); +$claypit = $building->getTypeLevel(2); +$ironmine = $building->getTypeLevel(3); +$blacksmith = $building->getTypeLevel(12); +$stable = $building->getTypeLevel(20); +$trapper = $building->getTypeLevel(36); +$treasury = $building->getTypeLevel(27); +$sawmill = $building->getTypeLevel(5); +$brickyard = $building->getTypeLevel(6); +$ironfoundry = $building->getTypeLevel(7); +$workshop = $building->getTypeLevel(21); +$stonemasonslodge = $building->getTypeLevel(34); +$townhall = $building->getTypeLevel(24); +$tournamentsquare = $building->getTypeLevel(14); +$bakery = $building->getTypeLevel(9); +$tradeoffice = $building->getTypeLevel(28); +$greatbarracks = $building->getTypeLevel(29); +$greatstable = $building->getTypeLevel(30); +$brewery = $building->getTypeLevel(35); +$horsedrinkingtrough = $building->getTypeLevel(41); +$herosmansion = $building->getTypeLevel(37); +$greatwarehouse = $building->getTypeLevel(38); +$greatgranary = $building->getTypeLevel(39); +$greatworkshop = $building->getTypeLevel(42); + +foreach ($database->getJobs($_SESSION['wid']) as $bdata) { + $UnderConstruction = strtolower(str_replace(array(" ","'"),"",$building->procResType($bdata['type']))); + $$UnderConstruction = ($$UnderConstruction == 0 ? -1 : $$UnderConstruction); +} + + +?> +

    Construct new building

    += 1 && $id != 39 && $id != 40) { + include("avaliable/cranny.tpl"); +} +if(($granary == 0 || $granary == 20) && $mainbuilding >= 1 && $id != 39 && $id != 40 ) { + include("avaliable/granary.tpl"); +} +if($wall == 0) { + if($session->tribe == 1 && $id != 39) { + include("avaliable/citywall.tpl"); + } + if($session->tribe == 2 && $id != 39) { + include("avaliable/earthwall.tpl"); + } + if($session->tribe == 3 && $id != 39) { + include("avaliable/palisade.tpl"); + } + if($session->tribe == 4 && $id != 39) { + include("avaliable/earthwall.tpl"); + } + if($session->tribe == 5 && $id != 39) { + include("avaliable/citywall.tpl"); + } +} +if(($warehouse == 0 || $warehouse == 20) && $id != 39 && $id != 40) { +include("avaliable/warehouse.tpl"); +} +if($mainbuilding >= 10 && $village->capital == 0 && $largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid ) { + include("avaliable/greatwarehouse.tpl"); +} +if($mainbuilding >= 10 && $village->capital == 0 && $largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid ) { + include("avaliable/greatgranary.tpl"); +} +if(($trapper ==0 || $trapper == 10) && $rallypoint >= 1 && $session->tribe == 3 && $id != 39 && $id != 40) { +include("avaliable/trapper.tpl"); +} +if($rallypoint == 0 && $id != 40) { +include("avaliable/rallypoint.tpl"); +} +if($embassy == 0 && $id != 39 && $id != 40) { +include("avaliable/embassy.tpl"); +} +//fix hero +if($hero == 0 && $mainbuilding >= 3 && $rallypoint >= 1 && $$UnderConstruction <> -1 && $id != 39 && $id != 40) { +include("avaliable/hero.tpl"); +} +//fix barracks +if($rallypoint >= 1 && $mainbuilding >= 3 && $barrack == 0 && $$UnderConstruction <> -1 && $id != 39 && $id != 40) { +include("avaliable/barracks.tpl"); +} +if($mainbuilding >= 3 && $academy >= 1 && $armoury == 0 && $id != 39 && $id != 40) { +include("avaliable/armoury.tpl"); +} +if($cropland >= 5 && $grainmill == 0 && $id != 39 && $id != 40) { +include("avaliable/grainmill.tpl"); +} +//fix marketplace +if($granary >= 1 && $warehouse >= 1 && $mainbuilding >= 3 && $market == 0 && $$UnderConstruction <> -1 && $id != 39 && $id != 40) { +include("avaliable/marketplace.tpl"); +} +//fix residence +if($mainbuilding >= 5 && $residence == 0 && $$UnderConstruction <> -1 && $id != 39 && $id != 40 && $palace == 0) { +include("avaliable/residence.tpl"); +} +if($academy == 0 && $mainbuilding >= 3 && $barrack >= 3 && $id != 39 && $id != 40) { +include("avaliable/academy.tpl"); +} +//fix palace +if($palace == 0 && $embassy >= 1 && $mainbuilding >= 5 && $$UnderConstruction <> -1 && $id != 39 && $id != 40 && $residence == 0) { +include("avaliable/palace.tpl"); +} +if($blacksmith == 0 && $academy >= 3 && $mainbuilding >= 3 && $id != 39 && $id != 40) { +include("avaliable/blacksmith.tpl"); +} +if($stonemasonslodge == 0 && $palace >= 3 && $mainbuilding >= 5 && $id != 39 && $id != 40) { +include("avaliable/stonemason.tpl"); +} +if($stable == 0 && $blacksmith >= 3 && $academy >= 5 && $id != 39 && $id != 40) { +include("avaliable/stable.tpl"); +} +if($treasury == 0 && $mainbuilding >= 10 && $id != 39 && $id != 40) { +include("avaliable/treasury.tpl"); +} +if($brickyard == 0 && $claypit >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40 ) { +include("avaliable/brickyard.tpl"); +} +if($sawmill == 0 && $woodcutter >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) { + include("avaliable/sawmill.tpl"); + } +if($ironfoundry == 0 && $ironmine >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) { + include("avaliable/ironfoundry.tpl"); +} +if($workshop == 0 && $academy >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) { + include("avaliable/workshop.tpl"); +} +if($tournamentsquare == 0 && $rallypoint >= 15 && $id != 39 && $id != 40) { + include("avaliable/tsquare.tpl"); +} +if($bakery == 0 && $grainmill >= 5 && $cropland >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) { + include("avaliable/bakery.tpl"); +} +if($townhall == 0 && $mainbuilding >= 10 && $academy >= 10 && $id != 39 && $id != 40) { + include("avaliable/townhall.tpl"); +} +if($tradeoffice == 0 && $market == 20 && $stable >= 10 && $id != 39 && $id != 40) { + include("avaliable/tradeoffice.tpl"); +} +if($session->tribe == 1 && $horsedrinkingtrough == 0 && $rallypoint >= 10 && $stable == 20 && $id != 39 && $id != 40) { + include("avaliable/horsedrinking.tpl"); +} +if($session->tribe == 2 && $brewery == 0 && $rallypoint >= 10 && $granary == 20 && $id != 39 && $id != 40) { + include("avaliable/brewery.tpl"); +} +if($greatbarracks == 0 && $barrack == 20 && $village->capital == 0 && $id != 39 && $id != 40) { + include("avaliable/greatbarracks.tpl"); +} +if($greatstable == 0 && $stable == 20 && $village->capital == 0 && $id != 39 && $id != 40) { + include("avaliable/greatstable.tpl"); +} +if($greatworkshop == 0 && $workshop == 20 && $village->capital == 0 && $id != 39 && $id != 40 && GREAT_WKS) { + include("avaliable/greatworkshop.tpl"); +} +if($id != 39 && $id != 40) { +?> +

    show soon available buildings

    + +
    +tribe == 3 && $trapper == 0 ) { +include("soon/trapper.tpl"); +} +if($mainbuilding < 10 && $village->capital == 0 && $largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid ) { + include("soon/greatwarehouse.tpl"); +} +if($mainbuilding < 10 && $village->capital == 0 && $largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid ) { + include("soon/greatgranary.tpl"); +} +if($hero == 0 && ($mainbuilding <= 2 || $rallypoint == 0)){ + include("soon/hero.tpl"); +} +if($barrack == 0 && ($rallypoint == 0 || $mainbuilding <= 2) ) { + include("soon/barracks.tpl"); +} +if($armoury == 0 && ($mainbuilding <= 2 || $academy == 0)) { + include("soon/armoury.tpl"); +} +if($cropland <= 4) { + include("soon/grainmill.tpl"); +} +if($marketplace == 0 && ($mainbuilding <= 2 || $granary <= 0 || $warehouse <= 0)) { + include("soon/marketplace.tpl"); +} +if($residence == 0 && $mainbuilding <= 4) { + include("soon/residence.tpl"); +} +if($academy == 0 && ($mainbuilding <= 2 || $barrack <= 2)) { + include("soon/academy.tpl"); +} +if($embassy == 0 || $mainbuilding >= 2 && $mainbuilding <= 4) { + include("soon/palace.tpl"); +} +if($blacksmith == 0 && ($academy <= 2 || $mainbuilding <= 2)) { + include("soon/blacksmith.tpl"); +} +if($stonemasonslodge == 0 && $palace <= 2 && $palace != 0 && $mainbuilding >= 2 && $mainbuilding <= 4 && $residence == 0) { + include("soon/stonemason.tpl"); +} +if($stable == 0 && (($blacksmith <= 2 && $blacksmith != 0) || ($academy >= 2 && $academy <= 4))) { + include("soon/stable.tpl"); +} +if($treasury == 0 && $mainbuilding <= 9 && $mainbuilding >= 5) { + include("soon/treasury.tpl"); +} +if($brickyard == 0 && $claypit <= 9 && $claypit >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) { + include("soon/brickyard.tpl"); +} +if($sawmill == 0 && $woodcutter <= 9 && $woodcutter >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) { + include("soon/sawmill.tpl"); +} +if($ironfoundry == 0 && $ironmine <= 9 && $ironmine >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) { + include("soon/ironfoundry.tpl"); +} +if($workshop == 0 && $academy <= 9 && $academy >= 5 && $mainbuilding >= 2 && $mainbuilding <= 4) { + include("soon/workshop.tpl"); +} +if($tournamentsquare == 0 && $rallypoint <= 14 && $rallypoint >= 7) { + include("soon/tsquare.tpl"); +} +if($bakery == 0 && $grainmill <= 4 && $grainmill != 0 && $cropland >= 5 && $cropland <= 9 && $mainbuilding >= 2 && $mainbuilding <= 4) { + include("soon/bakery.tpl"); +} +if($townhall == 0 && ($mainbuilding <= 9 && $mainbuilding >= 5) || ($academy >= 5 && $academy <= 9)) { + include("soon/townhall.tpl"); +} +if($tradeoffice == 0 && $market <= 19 && $market >= 10 || $stable >= 5 && $stable <= 9) { + include("soon/tradeoffice.tpl"); +} +if($session->tribe == 1 && $horsedrinkingtrough == 0 && $rallypoint <= 9 && $rallypoint >= 5 || $stable <= 19 && $stable >= 10 && $session->tribe == 1) { + include("soon/horsedrinking.tpl"); + } +if($brewery == 0 && $rallypoint <= 9 && $rallypoint >= 5 || $granary <= 19 && $granary >= 10 && $session->tribe == 2) { + include("soon/brewery.tpl"); +} +if($greatbarracks == 0 && $barrack >= 18 && $village->capital == 0) { + include("soon/greatbarracks.tpl"); +} +if($greatstable == 0 && $stable >= 18 && $village->capital == 0) { + include("soon/greatstable.tpl"); +} +if($greatworkshop == 0 && $workshop >= 18 && $village->capital == 0 && GREAT_WKS) { + include("soon/greatworkshop.tpl"); +} + ?> +

    show more

    + +
    + tribe == 1 && $horsedrinkingtrough == 0 && ($rallypoint <= 5 || $stable <= 10)) { + include("soon/horsedrinking.tpl"); + } + if($brewery == 0 && ($rallypoint <= 5 || $granary <= 10) && $session->tribe == 2) { + include("soon/brewery.tpl"); + } + if($greatbarracks == 0 && $barrack >= 15 && $village->capital == 0) { + include("soon/greatbarracks.tpl"); + } + if($greatstable == 0 && $stable >= 15 && $village->capital == 0) { + include("soon/greatstable.tpl"); + } + if($greatworkshop == 0 && $workshop >= 15 && $village->capital == 0 && GREAT_WKS) { + include("soon/greatworkshop.tpl"); + } + ?> +
    + +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/academy.tpl b/Templates/Build/avaliable/academy.tpl new file mode 100644 index 00000000..ee4dd545 --- /dev/null +++ b/Templates/Build/avaliable/academy.tpl @@ -0,0 +1,16 @@ +

    Academy

    + + + + + + + + +
    In the academy new unit types can be researched. By increasing its level you can order the research of better units. + + Academy +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/armoury.tpl b/Templates/Build/avaliable/armoury.tpl new file mode 100644 index 00000000..723bf4d6 --- /dev/null +++ b/Templates/Build/avaliable/armoury.tpl @@ -0,0 +1,16 @@ +

    Armoury

    + + + + + + + + +
    In the armoury's melting furnaces your warriors' armour is enhanced. By increasing its level you can order the fabrication of even better armour. + + Armoury +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/availupgrade.tpl b/Templates/Build/avaliable/availupgrade.tpl new file mode 100644 index 00000000..121fcb52 --- /dev/null +++ b/Templates/Build/avaliable/availupgrade.tpl @@ -0,0 +1,43 @@ +canBuild($id,$bid); +$uprequire = $building->resourceRequired($id,$bid); +?> + + Lumber | Clay | Iron | Crop | Crop consumption | durationgetTimeFormat($uprequire['time']); + + if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|\"NPC"; + } ?> + + + +The workers are already at work."; + } + else if($bindicator == 3) { + echo "The workers are already at work. (waiting loop)"; + } + 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].""; + } + else if($bindicator == 8) { + echo "checker."\">Construct building."; + } + else if($bindicator == 9) { + echo "checker."\">Construct building. (waiting loop)"; + } + ?> + \ No newline at end of file diff --git a/Templates/Build/avaliable/bakery.tpl b/Templates/Build/avaliable/bakery.tpl new file mode 100644 index 00000000..8961c15d --- /dev/null +++ b/Templates/Build/avaliable/bakery.tpl @@ -0,0 +1,16 @@ +

    Bakery

    + + + + + + + + +
    Here the flour produced in your mill is used to bake bread. In conjunction with the grain mill the increase in crop production can go up to 50 percent. + + Bakery +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/barracks.tpl b/Templates/Build/avaliable/barracks.tpl new file mode 100644 index 00000000..9faaff83 --- /dev/null +++ b/Templates/Build/avaliable/barracks.tpl @@ -0,0 +1,17 @@ +

    Barracks

    + + + + + + + + + +
    In the barracks infantry can be trained. The higher its level the faster the troops are trained. + + Barracks +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/blacksmith.tpl b/Templates/Build/avaliable/blacksmith.tpl new file mode 100644 index 00000000..41e47b4a --- /dev/null +++ b/Templates/Build/avaliable/blacksmith.tpl @@ -0,0 +1,18 @@ +

    Blacksmith

    + + + + + + + + +
    In the blacksmith's melting furnaces your warriors' weapons are enhanced. By increasing its level you can order the fabrication of even better weapons. + + + + Blacksmith +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/brewery.tpl b/Templates/Build/avaliable/brewery.tpl new file mode 100644 index 00000000..475d8d8a --- /dev/null +++ b/Templates/Build/avaliable/brewery.tpl @@ -0,0 +1,16 @@ +

    Brewery

    + + + + + + + + +
    In the Teuton’s brewery mead is brewed, the soldiers drink to give themselves Dutch courage before battle. The higher the level of the brewery, the greater is the attack bonus. The mead-festivals always last 72 hours. + + Brewery +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/brickyard.tpl b/Templates/Build/avaliable/brickyard.tpl new file mode 100644 index 00000000..8ce0112d --- /dev/null +++ b/Templates/Build/avaliable/brickyard.tpl @@ -0,0 +1,16 @@ +

    Brickyard

    + + + + + + + + +
    Here clay is processed into bricks. Based on its level your Brickyard can increase your clay production up to 25 percent. + + Brickyard +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/citywall.tpl b/Templates/Build/avaliable/citywall.tpl new file mode 100644 index 00000000..116e8c43 --- /dev/null +++ b/Templates/Build/avaliable/citywall.tpl @@ -0,0 +1,15 @@ +

    City Wall

    + + + + + + + + + +
    By building a City Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence. +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/cranny.tpl b/Templates/Build/avaliable/cranny.tpl new file mode 100644 index 00000000..c6ca57ea --- /dev/null +++ b/Templates/Build/avaliable/cranny.tpl @@ -0,0 +1,17 @@ +

    Cranny

    + + + + + + + + + +
    The cranny is used to hide some of your resources when the village is attacked. These resources cannot be stolen. + + Cranny +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/earthwall.tpl b/Templates/Build/avaliable/earthwall.tpl new file mode 100644 index 00000000..73fd1038 --- /dev/null +++ b/Templates/Build/avaliable/earthwall.tpl @@ -0,0 +1,15 @@ +

    Earth Wall

    + + + + + + + + + +
    By building an Earth Wall you can protect your village against the barbarian hordes of your enemies. A higher level Earth Wall will give your troops a higher defence bonus. +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/embassy.tpl b/Templates/Build/avaliable/embassy.tpl new file mode 100644 index 00000000..79c36ba7 --- /dev/null +++ b/Templates/Build/avaliable/embassy.tpl @@ -0,0 +1,17 @@ +

    Embassy

    + + + + + + + + + +
    The embassy is a place for diplomats. The higher its level the more options the king gains. + + Embassy +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/grainmill.tpl b/Templates/Build/avaliable/grainmill.tpl new file mode 100644 index 00000000..c11e1266 --- /dev/null +++ b/Templates/Build/avaliable/grainmill.tpl @@ -0,0 +1,16 @@ +

    Grain Mill

    + + + + + + + + +
    Here your grain is milled in order to produce flour. Based on its level your grain mill can increase your crop production by up to 25 percent. + + Grain Mill +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/granary.tpl b/Templates/Build/avaliable/granary.tpl new file mode 100644 index 00000000..0906adca --- /dev/null +++ b/Templates/Build/avaliable/granary.tpl @@ -0,0 +1,18 @@ + +

    Granary

    + + + + + + + + + +
    In the granary the crop produced in your farms is stored. By increasing its level you increase the granary’s capacity. + + Granary +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/greatbarracks.tpl b/Templates/Build/avaliable/greatbarracks.tpl new file mode 100644 index 00000000..c703a34b --- /dev/null +++ b/Templates/Build/avaliable/greatbarracks.tpl @@ -0,0 +1,17 @@ +

    Great Barracks

    + + + + + + + + + +
    In the great barracks infantry can be trained, albeit at triple the cost of a standard unit. The higher its level the faster the troops are trained. + + Great Barracks +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/greatgranary.tpl b/Templates/Build/avaliable/greatgranary.tpl new file mode 100644 index 00000000..62d6fa08 --- /dev/null +++ b/Templates/Build/avaliable/greatgranary.tpl @@ -0,0 +1,18 @@ + +

    Great Granary

    + + + + + + + + + +
    Crop produced by your farms is stored in the granary. The great granary offers you more space and keeps your crops drier and safer than the normal one. + + Great Granary +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/greatstable.tpl b/Templates/Build/avaliable/greatstable.tpl new file mode 100644 index 00000000..265e6a31 --- /dev/null +++ b/Templates/Build/avaliable/greatstable.tpl @@ -0,0 +1,16 @@ +

    Great Stable

    + + + + + + + + +
    In the great stable cavalry is trained, albeit at triple the cost of a standard unit. The higher its level the faster the troops are trained. + + Great Stable +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/greatwarehouse.tpl b/Templates/Build/avaliable/greatwarehouse.tpl new file mode 100644 index 00000000..8432f4e9 --- /dev/null +++ b/Templates/Build/avaliable/greatwarehouse.tpl @@ -0,0 +1,17 @@ +

    Great Warehouse

    + + + + + + + + + +
    Wood, clay and iron are stored in the warehouse. The great warehouse offers you more space and keeps your goods drier and safer than the normal one. + + Great Warehouse +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/greatworkshop.tpl b/Templates/Build/avaliable/greatworkshop.tpl new file mode 100644 index 00000000..2d4403c4 --- /dev/null +++ b/Templates/Build/avaliable/greatworkshop.tpl @@ -0,0 +1,16 @@ +

    Great Workshop

    + + + + + + + + +
    In the great workshop siege engines like catapults and rams can be built, albeit at triple the cost of a standard unit. The higher its level the faster units are produced. + + Great Workshop +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/hero.tpl b/Templates/Build/avaliable/hero.tpl new file mode 100644 index 00000000..44f31d5a --- /dev/null +++ b/Templates/Build/avaliable/hero.tpl @@ -0,0 +1,17 @@ +

    Hero's Mansion

    + + + + + + + + + +
    In the Hero's Mansion you can train a hero and starting with building level 10 occupy oases in your surrounding area. + + Hero's Mansion +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/horsedrinking.tpl b/Templates/Build/avaliable/horsedrinking.tpl new file mode 100644 index 00000000..8afcc078 --- /dev/null +++ b/Templates/Build/avaliable/horsedrinking.tpl @@ -0,0 +1,16 @@ +

    Horse Drinking Trough

    + + + + + + + + +
    The horse drinking trough cares for the well-being of your horses, lowers their crop consumption and makes their training faster. + + Horse Drinking Trough +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/ironfoundry.tpl b/Templates/Build/avaliable/ironfoundry.tpl new file mode 100644 index 00000000..b8b3be52 --- /dev/null +++ b/Templates/Build/avaliable/ironfoundry.tpl @@ -0,0 +1,16 @@ +

    Iron Foundry

    + + + + + + + + +
    Iron is melted here. Based on its level your Iron Foundry can increase your iron production up to 25 percent. + + Iron Foundry +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/mainbuilding.tpl b/Templates/Build/avaliable/mainbuilding.tpl new file mode 100644 index 00000000..d7d36a49 --- /dev/null +++ b/Templates/Build/avaliable/mainbuilding.tpl @@ -0,0 +1,17 @@ +

    Main Building

    + + + + + + + + + +
    In the main building the village's master builders live. The higher its level the faster your master builders complete the construction of new buildings. + + Main Building +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/marketplace.tpl b/Templates/Build/avaliable/marketplace.tpl new file mode 100644 index 00000000..20511baf --- /dev/null +++ b/Templates/Build/avaliable/marketplace.tpl @@ -0,0 +1,16 @@ +

    Marketplace

    + + + + + + + + +
    At the marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time. + + Marketplace +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/palace.tpl b/Templates/Build/avaliable/palace.tpl new file mode 100644 index 00000000..d63d7dbc --- /dev/null +++ b/Templates/Build/avaliable/palace.tpl @@ -0,0 +1,16 @@ +

    Palace

    + + + + + + + + +
    The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital. + + Palace +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/palisade.tpl b/Templates/Build/avaliable/palisade.tpl new file mode 100644 index 00000000..f5fd601b --- /dev/null +++ b/Templates/Build/avaliable/palisade.tpl @@ -0,0 +1,15 @@ +

    Palisade

    + + + + + + + + + +
    By building a Palisade you can protect your village against the barbarian hordes of your enemies. A higher level Palisade will give your troops a higher defence bonus. +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/rallypoint.tpl b/Templates/Build/avaliable/rallypoint.tpl new file mode 100644 index 00000000..358d77c0 --- /dev/null +++ b/Templates/Build/avaliable/rallypoint.tpl @@ -0,0 +1,17 @@ +

    Rally point

    + + + + + + + + + +
    Your village's troops meet here. From here you can send them out to conquer, raid or reinforce other villages. + + Rally point +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/residence.tpl b/Templates/Build/avaliable/residence.tpl new file mode 100644 index 00000000..83a6291b --- /dev/null +++ b/Templates/Build/avaliable/residence.tpl @@ -0,0 +1,16 @@ +

    Residence

    + + + + + + + + +
    The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it. + + Residence +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/sawmill.tpl b/Templates/Build/avaliable/sawmill.tpl new file mode 100644 index 00000000..59caae63 --- /dev/null +++ b/Templates/Build/avaliable/sawmill.tpl @@ -0,0 +1,16 @@ +

    Sawmill

    + + + + + + + + +
    Here lumber delivered by your woodcutters is processed. Based on its level your Sawmill can increase your lumber production up to 25 percent. + + Sawmill +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/stable.tpl b/Templates/Build/avaliable/stable.tpl new file mode 100644 index 00000000..ce09e40d --- /dev/null +++ b/Templates/Build/avaliable/stable.tpl @@ -0,0 +1,16 @@ +

    Stable

    + + + + + + + + +
    In the stable cavalry is trained. The higher its level the faster the troops are trained. + + Stable +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/stonemason.tpl b/Templates/Build/avaliable/stonemason.tpl new file mode 100644 index 00000000..869166a7 --- /dev/null +++ b/Templates/Build/avaliable/stonemason.tpl @@ -0,0 +1,16 @@ +

    Stonemason's Lodge

    + + + + + + + + +
    The stonemason's lodge is an expert in cutting stone. The further the building is extended the higher the stability of the village's buildings. + + Stonemason's Lodge +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/townhall.tpl b/Templates/Build/avaliable/townhall.tpl new file mode 100644 index 00000000..bd8aa48e --- /dev/null +++ b/Templates/Build/avaliable/townhall.tpl @@ -0,0 +1,16 @@ +

    Town Hall

    + + + + + + + + +
    In the Town Hall you can hold pompous celebrations. Such a celebration increases your culture points. + + Town Hall +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/tradeoffice.tpl b/Templates/Build/avaliable/tradeoffice.tpl new file mode 100644 index 00000000..bf12ad41 --- /dev/null +++ b/Templates/Build/avaliable/tradeoffice.tpl @@ -0,0 +1,16 @@ +

    Trade Office

    + + + + + + + + +
    In the trade office the merchants' carts get improved and equipped with powerful horses. The higher its level the more your merchants are able to carry. + + Trade Office +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/trapper.tpl b/Templates/Build/avaliable/trapper.tpl new file mode 100644 index 00000000..2d701668 --- /dev/null +++ b/Templates/Build/avaliable/trapper.tpl @@ -0,0 +1,16 @@ +

    Trapper

    + + + + + + + + +
    The Trapper protects your village with well hidden traps. Enemies can be imprisoned and won't be able to harm your village anymore. + + Trapper +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/treasury.tpl b/Templates/Build/avaliable/treasury.tpl new file mode 100644 index 00000000..0db89974 --- /dev/null +++ b/Templates/Build/avaliable/treasury.tpl @@ -0,0 +1,16 @@ +

    Treasury

    + + + + + + + + +
    The riches of your empire are kept in the treasury. The treasury has room for one treasure. After you have captured an artefact it takes 24 hours to be effective. + + Treasury +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/tsquare.tpl b/Templates/Build/avaliable/tsquare.tpl new file mode 100644 index 00000000..d07b4753 --- /dev/null +++ b/Templates/Build/avaliable/tsquare.tpl @@ -0,0 +1,16 @@ +

    Tournament Square

    + + + + + + + + +
    At the tournament square your troops can train to increase their stamina. The further the building is upgraded the faster your troops are beyond a minimum distance of 30 squares. + + Tournament Square +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/warehouse.tpl b/Templates/Build/avaliable/warehouse.tpl new file mode 100644 index 00000000..3b5e4170 --- /dev/null +++ b/Templates/Build/avaliable/warehouse.tpl @@ -0,0 +1,17 @@ +

    Warehouse

    + + + + + + + + + +
    In your warehouse the resources lumber, clay and iron are stored. By increasing its level you increase your warehouse's capacity. + + Warehouse +
    \ No newline at end of file diff --git a/Templates/Build/avaliable/workshop.tpl b/Templates/Build/avaliable/workshop.tpl new file mode 100644 index 00000000..fa67b832 --- /dev/null +++ b/Templates/Build/avaliable/workshop.tpl @@ -0,0 +1,16 @@ +

    Workshop

    + + + + + + + + +
    In the workshop siege engines like catapults and rams can be built. The higher its level the faster units are produced. + + Workshop +
    \ No newline at end of file diff --git a/Templates/Build/soon/academy.tpl b/Templates/Build/soon/academy.tpl new file mode 100644 index 00000000..88f30aa0 --- /dev/null +++ b/Templates/Build/soon/academy.tpl @@ -0,0 +1,18 @@ +

    Academy

    + + + + + + + + + + + +
    In the academy new unit types can be researched. By increasing its level you can order the research of better units. + + Academy +
    Prerequisites
    + Barracks Level 3, Main Building Level 3 +
    \ No newline at end of file diff --git a/Templates/Build/soon/armoury.tpl b/Templates/Build/soon/armoury.tpl new file mode 100644 index 00000000..7e5fc90e --- /dev/null +++ b/Templates/Build/soon/armoury.tpl @@ -0,0 +1,18 @@ +

    Armoury

    + + + + + + + + + + + +
    In the armoury's melting furnaces your warriors' armour is enhanced. By increasing its level you can order the fabrication of even better armour. + + Armoury +
    Prerequisites
    + Main Building Level 3, Academy Level 1 +
    \ No newline at end of file diff --git a/Templates/Build/soon/bakery.tpl b/Templates/Build/soon/bakery.tpl new file mode 100644 index 00000000..e657f43a --- /dev/null +++ b/Templates/Build/soon/bakery.tpl @@ -0,0 +1,18 @@ +

    Bakery

    + + + + + + + + + + + +
    Here the flour produced in your mill is used to bake bread. In conjunction with the grain mill the increase in crop production can go up to 50 percent. + + Bakery +
    Prerequisites
    + Cropland Level 10, Main Building Level 5, Grain Mill Level 5 +
    \ No newline at end of file diff --git a/Templates/Build/soon/barracks.tpl b/Templates/Build/soon/barracks.tpl new file mode 100644 index 00000000..1067eee8 --- /dev/null +++ b/Templates/Build/soon/barracks.tpl @@ -0,0 +1,18 @@ +

    Barracks

    + + + + + + + + + + + +
    In the barracks infantry can be trained. The higher its level the faster the troops are trained. + + Barracks +
    Prerequisites
    + Rally Point Level 1, Main Building Level 3 +
    \ No newline at end of file diff --git a/Templates/Build/soon/blacksmith.tpl b/Templates/Build/soon/blacksmith.tpl new file mode 100644 index 00000000..990cbc92 --- /dev/null +++ b/Templates/Build/soon/blacksmith.tpl @@ -0,0 +1,20 @@ +

    Blacksmith

    + + + + + + + + + + + +
    In the blacksmith's melting furnaces your warriors' weapons are enhanced. By increasing its level you can order the fabrication of even better weapons. + + + + Blacksmith +
    Prerequisites
    + Main Building Level 3, Academy Level 3 +
    \ No newline at end of file diff --git a/Templates/Build/soon/brewery.tpl b/Templates/Build/soon/brewery.tpl new file mode 100644 index 00000000..77e36f85 --- /dev/null +++ b/Templates/Build/soon/brewery.tpl @@ -0,0 +1,18 @@ +

    Brewery

    + + + + + + + + + + + +
    Tasty mead is brewed in the Brewery and later quaffed by the soldiers during the celebrations. + + Brewery +
    Prerequisites
    + Granary Level 20, Rally Point Level 10 +
    \ No newline at end of file diff --git a/Templates/Build/soon/brickyard.tpl b/Templates/Build/soon/brickyard.tpl new file mode 100644 index 00000000..1bad2f0e --- /dev/null +++ b/Templates/Build/soon/brickyard.tpl @@ -0,0 +1,18 @@ +

    Brickyard

    + + + + + + + + + + + +
    Here clay is processed into bricks. Based on its level your Brickyard can increase your clay production up to 25 percent. + + Brickyard +
    Prerequisites
    + Clay Pit Level 10, Main Building Level 5 +
    \ No newline at end of file diff --git a/Templates/Build/soon/grainmill.tpl b/Templates/Build/soon/grainmill.tpl new file mode 100644 index 00000000..903ead3e --- /dev/null +++ b/Templates/Build/soon/grainmill.tpl @@ -0,0 +1,18 @@ +

    Grain Mill

    + + + + + + + + + + + +
    Here your grain is milled in order to produce flour. Based on its level your grain mill can increase your crop production by up to 25 percent. + + Grain Mill +
    Prerequisites
    + Cropland Level 5 +
    \ No newline at end of file diff --git a/Templates/Build/soon/greatbarracks.tpl b/Templates/Build/soon/greatbarracks.tpl new file mode 100644 index 00000000..830874ed --- /dev/null +++ b/Templates/Build/soon/greatbarracks.tpl @@ -0,0 +1,18 @@ +

    Great Barracks

    + + + + + + + + + + + +
    In the great barracks infantry can be trained, albeit at triple the cost of a standard unit. The higher its level the faster the troops are trained. + + Great Barracks +
    Prerequisites
    + Barracks Level 20, Capital +
    \ No newline at end of file diff --git a/Templates/Build/soon/greatgranary.tpl b/Templates/Build/soon/greatgranary.tpl new file mode 100644 index 00000000..0657ded3 --- /dev/null +++ b/Templates/Build/soon/greatgranary.tpl @@ -0,0 +1,19 @@ + +

    Great Granary

    + + + + + + + + + + + +
    Crop produced by your farms is stored in the granary. The great granary offers you more space and keeps your crops drier and safer than the normal one. + + Great Granary +
    Prerequisites
    + Main Building Level 10, Capital +
    \ No newline at end of file diff --git a/Templates/Build/soon/greatstable.tpl b/Templates/Build/soon/greatstable.tpl new file mode 100644 index 00000000..77f77c99 --- /dev/null +++ b/Templates/Build/soon/greatstable.tpl @@ -0,0 +1,18 @@ +

    Great Workshop

    + + + + + + + + + + + +
    In the great workshop siege engines like catapults and rams can be built, albeit at triple the cost of a standard unit. The higher its level the faster units are produced. + + Great Workshop +
    Prerequisites
    + Workshop Level 20, Capital +
    \ No newline at end of file diff --git a/Templates/Build/soon/greatwarehouse.tpl b/Templates/Build/soon/greatwarehouse.tpl new file mode 100644 index 00000000..87a0f0a6 --- /dev/null +++ b/Templates/Build/soon/greatwarehouse.tpl @@ -0,0 +1,18 @@ +

    Great Warehouse

    + + + + + + + + + + + +
    Wood, clay and iron are stored in the warehouse. The great warehouse offers you more space and keeps your goods drier and safer than the normal one. + + Great Warehouse +
    Prerequisites
    + Main Building Level 10, Capital +
    \ No newline at end of file diff --git a/Templates/Build/soon/greatworkshop.tpl b/Templates/Build/soon/greatworkshop.tpl new file mode 100644 index 00000000..830874ed --- /dev/null +++ b/Templates/Build/soon/greatworkshop.tpl @@ -0,0 +1,18 @@ +

    Great Barracks

    + + + + + + + + + + + +
    In the great barracks infantry can be trained, albeit at triple the cost of a standard unit. The higher its level the faster the troops are trained. + + Great Barracks +
    Prerequisites
    + Barracks Level 20, Capital +
    \ No newline at end of file diff --git a/Templates/Build/soon/hero.tpl b/Templates/Build/soon/hero.tpl new file mode 100644 index 00000000..5d9adc16 --- /dev/null +++ b/Templates/Build/soon/hero.tpl @@ -0,0 +1,18 @@ +

    Hero's Mansion

    + + + + + + + + + + + +
    In the Hero's Mansion you can train a hero and starting with building level 10 occupy oases in your surrounding area. + + Hero's Mansion +
    Prerequisites
    + Main Building Level 3, Rally Point Level 1 +
    \ No newline at end of file diff --git a/Templates/Build/soon/horsedrinking.tpl b/Templates/Build/soon/horsedrinking.tpl new file mode 100644 index 00000000..34bf8065 --- /dev/null +++ b/Templates/Build/soon/horsedrinking.tpl @@ -0,0 +1,18 @@ +

    Horse Drinking Trough

    + + + + + + + + + + + +
    The horse drinking trough cares for the well-being of your horses, lowers their crop consumption and makes their training faster. + + Horse Drinking Trough +
    Prerequisites
    + Stable Level 20, Rally Point Level 10 +
    \ No newline at end of file diff --git a/Templates/Build/soon/ironfoundry.tpl b/Templates/Build/soon/ironfoundry.tpl new file mode 100644 index 00000000..32bc52e3 --- /dev/null +++ b/Templates/Build/soon/ironfoundry.tpl @@ -0,0 +1,18 @@ +

    Iron Foundry

    + + + + + + + + + + + +
    Iron is melted here. Based on its level your Iron Foundry can increase your iron production up to 25 percent. + + Iron Foundry +
    Prerequisites
    + Iron Mine Level 10, Main Building Level 5 +
    \ No newline at end of file diff --git a/Templates/Build/soon/marketplace.tpl b/Templates/Build/soon/marketplace.tpl new file mode 100644 index 00000000..4a5de8bb --- /dev/null +++ b/Templates/Build/soon/marketplace.tpl @@ -0,0 +1,18 @@ +

    Marketplace

    + + + + + + + + + + + +
    At the marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time. + + Marketplace +
    Prerequisites
    + Main Building Level 3, Warehouse Level 1, Granary Level 1 +
    \ No newline at end of file diff --git a/Templates/Build/soon/palace.tpl b/Templates/Build/soon/palace.tpl new file mode 100644 index 00000000..7abd4262 --- /dev/null +++ b/Templates/Build/soon/palace.tpl @@ -0,0 +1,18 @@ +

    Palace

    + + + + + + + + + + + +
    The king or queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital. + + Palace +
    Prerequisites
    + Embassy Level 1, Main Building Level 5, Residence +
    \ No newline at end of file diff --git a/Templates/Build/soon/residence.tpl b/Templates/Build/soon/residence.tpl new file mode 100644 index 00000000..4cfc16d3 --- /dev/null +++ b/Templates/Build/soon/residence.tpl @@ -0,0 +1,18 @@ +

    Residence

    + + + + + + + + + + + +
    The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it. + + Residence +
    Prerequisites
    + Main Building Level 5, Palace +
    \ No newline at end of file diff --git a/Templates/Build/soon/sawmill.tpl b/Templates/Build/soon/sawmill.tpl new file mode 100644 index 00000000..fd4755c0 --- /dev/null +++ b/Templates/Build/soon/sawmill.tpl @@ -0,0 +1,18 @@ +

    Sawmill

    + + + + + + + + + + + +
    Here lumber delivered by your woodcutters is processed. Based on its level your Sawmill can increase your lumber production up to 25 percent. + + Sawmill +
    Prerequisites
    + Woodcutter Level 10, Main Building Level 5 +
    \ No newline at end of file diff --git a/Templates/Build/soon/stable.tpl b/Templates/Build/soon/stable.tpl new file mode 100644 index 00000000..14d9c50c --- /dev/null +++ b/Templates/Build/soon/stable.tpl @@ -0,0 +1,18 @@ +

    Stable

    + + + + + + + + + + + +
    In the stable cavalry is trained. The higher its level the faster the troops are trained. + + Stable +
    Prerequisites
    + Blacksmith Level 3, Academy Level 5 +
    \ No newline at end of file diff --git a/Templates/Build/soon/stonemason.tpl b/Templates/Build/soon/stonemason.tpl new file mode 100644 index 00000000..9b9a75c7 --- /dev/null +++ b/Templates/Build/soon/stonemason.tpl @@ -0,0 +1,18 @@ +

    Stonemason's Lodge

    + + + + + + + + + + + +
    The stonemason's lodge is an expert in cutting stone. The further the building is extended the higher the stability of the village's buildings. + + Stonemason's Lodge +
    Prerequisites
    + Main Building Level 5, Palace Level 3 +
    \ No newline at end of file diff --git a/Templates/Build/soon/townhall.tpl b/Templates/Build/soon/townhall.tpl new file mode 100644 index 00000000..46c81064 --- /dev/null +++ b/Templates/Build/soon/townhall.tpl @@ -0,0 +1,18 @@ +

    Town Hall

    + + + + + + + + + + + +
    In the Town Hall you can hold pompous celebrations. Such a celebration increases your culture points. + + Town Hall +
    Prerequisites
    + Main Building Level 10, Academy Level 10 +
    \ No newline at end of file diff --git a/Templates/Build/soon/tradeoffice.tpl b/Templates/Build/soon/tradeoffice.tpl new file mode 100644 index 00000000..9a66ded7 --- /dev/null +++ b/Templates/Build/soon/tradeoffice.tpl @@ -0,0 +1,18 @@ +

    Trade Office

    + + + + + + + + + + + +
    In the trade office the merchants' carts get improved and equipped with powerful horses. The higher its level the more your merchants are able to carry. + + Trade Office +
    Prerequisites
    + Marketplace Level 20, Stable Level 10 +
    \ No newline at end of file diff --git a/Templates/Build/soon/trapper.tpl b/Templates/Build/soon/trapper.tpl new file mode 100644 index 00000000..8ea565df --- /dev/null +++ b/Templates/Build/soon/trapper.tpl @@ -0,0 +1,18 @@ +

    Trapper

    + + + + + + + + + + + +
    The Trapper protects your village with well hidden traps. Enemies can be imprisoned and won't be able to harm your village anymore. + + Trapper +
    Prerequisites
    + Rally Point Level 1 +
    \ No newline at end of file diff --git a/Templates/Build/soon/treasury.tpl b/Templates/Build/soon/treasury.tpl new file mode 100644 index 00000000..b8fcd9b3 --- /dev/null +++ b/Templates/Build/soon/treasury.tpl @@ -0,0 +1,18 @@ +

    Treasury

    + + + + + + + + + + + +
    The riches of your empire are kept in the treasury. The treasury has room for one treasure. After you have captured an artefact it takes 24 hours to be effective. + + Treasury +
    Prerequisites
    + Main Building Level 10, Wonder Of The World +
    \ No newline at end of file diff --git a/Templates/Build/soon/tsquare.tpl b/Templates/Build/soon/tsquare.tpl new file mode 100644 index 00000000..bccc7c20 --- /dev/null +++ b/Templates/Build/soon/tsquare.tpl @@ -0,0 +1,18 @@ +

    Tournament Square

    + + + + + + + + + + + +
    At the tournament square your troops can train to increase their stamina. The further the building is upgraded the faster your troops are beyond a minimum distance of 30 squares. + + Tournament Square +
    Prerequisites
    + Rally Point Level 15 +
    \ No newline at end of file diff --git a/Templates/Build/soon/workshop.tpl b/Templates/Build/soon/workshop.tpl new file mode 100644 index 00000000..674ad360 --- /dev/null +++ b/Templates/Build/soon/workshop.tpl @@ -0,0 +1,18 @@ +

    Workshop

    + + + + + + + + + + + +
    In the workshop siege engines like catapults and rams can be built. The higher its level the faster units are produced. + + Workshop +
    Prerequisites
    + Academy Level 10, Main Building Level 5 +
    \ No newline at end of file diff --git a/Templates/Build/upgrade.tpl b/Templates/Build/upgrade.tpl new file mode 100644 index 00000000..7ae6489d --- /dev/null +++ b/Templates/Build/upgrade.tpl @@ -0,0 +1,67 @@ +canBuild($id,$village->resarray['f'.$id.'t']); +if($bindicate == 1) { + echo "

    Building already at max level

    "; +} else if($bindicate == 10) { + echo "

    Building max level under construction

    "; +} else if($bindicate == 11) { + echo "

    Building presently being demolished

    "; +} else { + $loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0; + $doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0; + $uprequire = $building->resourceRequired($id,$village->resarray['f'.$id.'t'],($loopsame > 0 ? 2:1)+$doublebuild); +?> +

    Costs for upgrading to level resarray['f'.$id]+($loopsame > 0 ? 2:1)+$doublebuild; ?>:
    +Lumber | Clay | Iron | Crop | Crop consumption | durationgetTimeFormat($uprequire['time']); +if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|\"NPC"; + } ?>
    +The workers are already at work."; + } + else if($bindicate == 3) { + echo "The workers are already at work. (waiting loop)"; + } + else if($bindicate == 4) { + echo "Not enough food. Expand cropland."; + } + else if($bindicate == 5) { + echo "Upgrade Warehouse."; + } + else if($bindicate == 6) { + echo "Upgrade Granary."; + } + else if($bindicate == 7) { + $neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],($loopsame > 0 ? 2:1)); + echo "Enough resources ".$neededtime[0]." at ".$neededtime[1].""; + } + else if($bindicate == 8) { + if($session->access==BANNED){ + echo "Upgrade to level "; + } + else if($id <= 18) { + echo "checker\">Upgrade to level "; + } + else { + echo "checker\">Upgrade to level "; + } + echo $village->resarray['f'.$id]+1; + echo "."; + } + else if($bindicate == 9) { + if($session->access==BANNED){ + echo "Upgrade to level "; + } + else if($id <= 18) { + echo "checker\">Upgrade to level "; + } + else { + echo "checker\">Upgrade to level "; + } + echo $village->resarray['f'.$id]+($loopsame > 0 ? 2:1); + echo ". (waiting loop) "; + } +} + +?> diff --git a/Templates/Build/ww.tpl b/Templates/Build/ww.tpl new file mode 100644 index 00000000..93b15364 --- /dev/null +++ b/Templates/Build/ww.tpl @@ -0,0 +1,100 @@ + + +

    +

    Wonder of the World
    Level resarray['f99']; ?>

    +

    The World Wonder (otherwise known as a Wonder of the World) is as wonderful as it sounds. "This building" is built in order to win the server. Each level of the World Wonder costs hundreds of thousands (even millions) of resources to build.

    +
    + +getWWName($vref); + +if($village->resarray['f99'] < 0){ +echo 'You need to have World Wonder level 1 to be able to change its name. +

    World Wonder name:

    '; +} else if($village->resarray['f99'] > 0 and < 11) { +echo '

    World Wonder name:

    '; +} +} else if ($village->resarray['f99'] < 0){ +echo 'You can not change the name of the World Wonder after level 10. +

    World Wonder name:

    '; +}?> +
    +      Name changed.'; + } + ?> + +canBuild($id,$village->resarray['f99t']); +if($village->resarray['f99'] == 100) { + echo "

    Building already at max level

    "; +} +else { +$uprequire = $building->resourceRequired($id,$village->resarray['f99t']); +?> +

    Costs for upgrading to level resarray['f99']+1; ?>:
    +Lumber | Clay | Iron | Crop | Crop consumption | durationgetTimeFormat($uprequire['time']); +if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { + echo "|\"NPC"; + } ?>
    +The workers are already at work."; + } + else if($bindicate == 3) { + echo "The workers are already at work. (waiting loop)"; + } + else if($bindicate == 4) { + echo "Not enough food. Expand cropland."; + } + else if($bindicate == 5) { + echo "Upgrade Warehouse."; + } + else if($bindicate == 6) { + echo "Upgrade Granary."; + } + else if($bindicate == 7) { + $neededtime = $building->calculateAvaliable($id,$village->resarray['f99']); + echo "Enough resources ".$neededtime[0]." at ".$neededtime[1].""; + } + else if($bindicate == 8) { + if($id <= 18) { + echo "checker\">Upgrade to level "; + } + else { + echo "checker\">Upgrade to level "; + } + echo $village->resarray['f99']+1; + echo "."; + } + else if($bindicate == 9) { + if($id <= 18) { + echo "checker\">Upgrade to level "; + } + else { + echo "checker\">Upgrade to level "; + } + echo $village->resarray['f99']+1; + echo ". (waiting loop) "; + } +} + +?> +

    \ No newline at end of file diff --git a/Templates/Building.tpl b/Templates/Building.tpl new file mode 100644 index 00000000..fb91e317 --- /dev/null +++ b/Templates/Building.tpl @@ -0,0 +1,58 @@ + + + + + + + + gold >= 2) { + if($session->access!=BANNED){ + $gold=$database->getUserField($_SESSION['username'],'gold','username'); + $gold-=2; + $database->updateUserField($_SESSION['username'],'gold',$gold,0); + }else{ + header("Location: banned.php"); + } + } + + if(!isset($timer)) { + $timer = 1; + } + $BuildingList = array(); + foreach($building->buildArray as $jobs) { + echo ""; + echo ""; + $timer +=1; + } + ?> + +
    + gold >= 2) { + ?> Finish all construction and research orders in this village immediately for 2 Gold? + +
    checker\">"; + echo "\"cancel\""; + echo $building->procResType($jobs['type'])." (Level ".($village->resarray['f'.$jobs['field']]+(in_array($jobs['field'],$BuildingList)?2:1 )).")"; + if($jobs['loopcon'] == 0) { $BuildingList[] = $jobs['field']; } + if($jobs['loopcon'] == 1) { + echo " (waiting loop)"; + } + echo ""; + echo $generator->getTimeFormat($jobs['timestamp']-time()); + echo " hrs.done at ".date('H:i', $jobs['timestamp'])."
    + diff --git a/Templates/Manual/0.tpl b/Templates/Manual/0.tpl new file mode 100644 index 00000000..d15e5e2b --- /dev/null +++ b/Templates/Manual/0.tpl @@ -0,0 +1,37 @@ + +

    Overview

    + +

    This ingame help offers you the chance to look up important information at any time.

    +Troops +Buildings

    + + + + + + \ No newline at end of file diff --git a/Templates/Manual/00.tpl b/Templates/Manual/00.tpl new file mode 100644 index 00000000..d15e5e2b --- /dev/null +++ b/Templates/Manual/00.tpl @@ -0,0 +1,37 @@ + +

    Overview

    + +

    This ingame help offers you the chance to look up important information at any time.

    +Troops +Buildings

    + + + + + + \ No newline at end of file diff --git a/Templates/Manual/11.tpl b/Templates/Manual/11.tpl new file mode 100644 index 00000000..d74dd40f --- /dev/null +++ b/Templates/Manual/11.tpl @@ -0,0 +1,47 @@ +

    Legionnaire Legionnaire (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    40355012010015030
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity6 fields/hour
    Can carry50 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:26:40
    + +Legionnaire
    The Legionnaire is the simple and all-purpose infantry of the Roman Empire. With his well-rounded training, he is good at both defence and attack. However, the Legionnaire will never reach the levels of the more specialized troops.
    Prerequisites
    Barracks Level 1
    + + + + + diff --git a/Templates/Manual/110.tpl b/Templates/Manual/110.tpl new file mode 100644 index 00000000..5601e393 --- /dev/null +++ b/Templates/Manual/110.tpl @@ -0,0 +1,50 @@ +

    Settler Settler (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    080805800530072005500
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity5 fields/hour
    Can carry3000 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 7:28:20
    + +Settler
    Settlers are brave and daring citizens who move out of the village after a long training session to found a new village in your honour. +

    +As the journey and the founding of the new village are very difficult, three settlers are bound to stick together. They need a basis of 750 units per resource.
    Prerequisites
    Palace Level 10 or Residence Level 10
    + + + + + + diff --git a/Templates/Manual/111.tpl b/Templates/Manual/111.tpl new file mode 100644 index 00000000..2ef12d57 --- /dev/null +++ b/Templates/Manual/111.tpl @@ -0,0 +1,47 @@ +

    Clubswinger Clubswinger (Teutons)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    4020595754040
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity7 fields/hour
    Can carry60 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:12:00
    + +Clubswinger
    Clubswingers are the cheapest unit in Travian. They are quickly trained and have medium attack capabilities but their armour isn’t the best. Clubswingers are almost defenceless against cavalry and will be ridden down with ease.
    Prerequisites
    Barracks Level 1
    + + + + + diff --git a/Templates/Manual/112.tpl b/Templates/Manual/112.tpl new file mode 100644 index 00000000..8e5c4e46 --- /dev/null +++ b/Templates/Manual/112.tpl @@ -0,0 +1,50 @@ +

    Spearman Spearman (Teutons)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    103560145708540
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity7 fields/hour
    Can carry40 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:18:40
    + +Spearman
    In the Teuton army the Spearman’s task is defence. He is especially good against cavalry thanks to his weapons length. +

    +However, don't use him as an attacking unit because his offensive capabilities are very low.
    Prerequisites
    Academy Level 1, Barracks Level 3
    + + + + + + diff --git a/Templates/Manual/113.tpl b/Templates/Manual/113.tpl new file mode 100644 index 00000000..22d8e674 --- /dev/null +++ b/Templates/Manual/113.tpl @@ -0,0 +1,46 @@ +

    Axeman Axeman (Teutons)

    + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    60303013012017070
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity6 fields/hour
    Can carry50 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:20:00
    + +Axeman
    This is the Teuton's strongest infantry unit. He is strong at both offence and defence but he is slower and more expensive than other units.
    Prerequisites
    Academy Level 3, Blacksmith Level 1
    + + + + + + diff --git a/Templates/Manual/114.tpl b/Templates/Manual/114.tpl new file mode 100644 index 00000000..1dad6f98 --- /dev/null +++ b/Templates/Manual/114.tpl @@ -0,0 +1,50 @@ +

    Scout Scout (Teutons)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    01051601005050
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity9 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:18:40
    + +Scout
    The Scout moves far ahead of the Teuton troops in order to get an impression of the enemy's strength and his villages. He moves on foot, which makes him slower than his Roman or Gaul counterparts. He scouts the enemy units, resources and fortifications. +

    +If there are no enemy Scouts, Pathfinders or Equites Legati in the scouted village then the scouting remains unnoticed.
    Prerequisites
    Academy Level 1, Main Building Level 5
    + + + + + + diff --git a/Templates/Manual/115.tpl b/Templates/Manual/115.tpl new file mode 100644 index 00000000..5fec3c6c --- /dev/null +++ b/Templates/Manual/115.tpl @@ -0,0 +1,50 @@ +

    Paladin Paladin (Teutons)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    551004037027029075
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity10 fields/hour
    Can carry110 resources
    UpkeepCrop consumption 2
    Duration of trainingduration 0:40:00
    + +Paladin
    As they are equipped with heavy armour Paladins are a great defensive unit. Infantry will find it especially hard to get through his shield. +

    +Unfortunately their attacking capabilities are rather low and their speed, compared to other cavalry units, is below the average. Their training takes very long and is rather expensive..
    Prerequisites
    Academy Level 5, Stable Level 3
    + + + + + + diff --git a/Templates/Manual/116.tpl b/Templates/Manual/116.tpl new file mode 100644 index 00000000..31cbb399 --- /dev/null +++ b/Templates/Manual/116.tpl @@ -0,0 +1,48 @@ +

    Teutonic Knight Teutonic Knight (Teutons)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    150507545051548080
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity9 fields/hour
    Can carry80 resources
    UpkeepCrop consumption 3
    Duration of trainingduration 0:49:20
    + +Teutonic Knight
    The Teutonic Knight is a formidable warrior and brings fear and despair over his foes. In defence he stands out against enemy cavalry. However, the cost of training and feeding him is extraordinary.
    Prerequisites
    Academy Level 15, Stable Level 10
    + + + + + + diff --git a/Templates/Manual/117.tpl b/Templates/Manual/117.tpl new file mode 100644 index 00000000..d4ed6592 --- /dev/null +++ b/Templates/Manual/117.tpl @@ -0,0 +1,48 @@ +

    Ram Ram (Teutons)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    653080100030035070
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity4 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 3
    Duration of trainingduration 1:10:00
    + +Ram
    The Ram is a heavy support weapon for your infantry and cavalry. Its task is to destroy the enemy walls and therefore increase your troops’ chances of overcoming the enemy's fortifications.
    Prerequisites
    Academy Level 10, Workshop Level 1
    + + + + + + diff --git a/Templates/Manual/118.tpl b/Templates/Manual/118.tpl new file mode 100644 index 00000000..f3f9dc27 --- /dev/null +++ b/Templates/Manual/118.tpl @@ -0,0 +1,52 @@ +

    Catapult Catapult (Teutons)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    506010900120060060
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity3 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 6
    Duration of trainingduration 2:30:00
    + +Catapult
    The Catapult is an excellent long-distance weapon; it is used to destroy the fields and buildings of enemy villages. However, without escorting troops it is almost defenceless so don't forget to send some of your troops with it. +

    +Having a high level rally point makes your catapults more accurate and gives you the option to target additional enemy buildings. With a level 10 rally point each building except for the cranny, stonemason's lodge and trapper can be targeted. +
    +HINT: Catapults CAN hit the cranny, trappers or stonemason's lodges when they target randomly.
    Prerequisites
    Workshop Level 10, Academy Level 15
    + + + + + + diff --git a/Templates/Manual/119.tpl b/Templates/Manual/119.tpl new file mode 100644 index 00000000..2775b661 --- /dev/null +++ b/Templates/Manual/119.tpl @@ -0,0 +1,50 @@ +

    Chief Chief (Teutons)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    40604035500266002500027200
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity4 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 4
    Duration of trainingduration 19:35:00
    + +Chief
    Out of their midst the Teutons choose their Chief. To be chosen, bravery and strategy aren't enough; you also have to be a formidable speaker as it is the Chief's primary objective to convince the population of foreign villages to join the Chief's tribe. +

    +The more often the Chief speaks to the population of a village the more the loyalty of the village sinks until it finally joins the chief's tribe.
    Prerequisites
    Rally Point Level 5, Academy Level 20
    + + + + + + diff --git a/Templates/Manual/12.tpl b/Templates/Manual/12.tpl new file mode 100644 index 00000000..1be38d40 --- /dev/null +++ b/Templates/Manual/12.tpl @@ -0,0 +1,48 @@ +

    Praetorian Praetorian (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    30653510013016070
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity5 fields/hour
    Can carry20 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:29:20
    + +Praetorian
    The Praetorians are the emperor's guard and they defend him with their life. Because their training is specialized for defence, they are very weak attackers.
    Prerequisites
    Academy Level 1, Armoury Level 1
    + + + + + + diff --git a/Templates/Manual/120.tpl b/Templates/Manual/120.tpl new file mode 100644 index 00000000..ff71fb60 --- /dev/null +++ b/Templates/Manual/120.tpl @@ -0,0 +1,50 @@ +

    Settler Settler (Teutons)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    1080807200550058006500
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity5 fields/hour
    Can carry3000 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 8:36:40
    + +Settler
    Settlers are brave and daring citizens who move out of the village after a long training session to found a new village in your honour. +

    +As the journey and the founding of the new village are very difficult, three settlers are bound to stick together. They need a basis of 750 units per resource.
    Prerequisites
    Palace Level 10 or Residence Level 10
    + + + + + + diff --git a/Templates/Manual/121.tpl b/Templates/Manual/121.tpl new file mode 100644 index 00000000..cc16fe49 --- /dev/null +++ b/Templates/Manual/121.tpl @@ -0,0 +1,50 @@ +

    Phalanx Phalanx (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    1540501001305530
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity7 fields/hour
    Can carry35 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:17:20
    + +Phalanx
    As they are infantry, the Phalanx is cheap and fast to produce. +

    +Though their attack power is low, in defence they are quite strong against both infantry and cavalry.
    Prerequisites
    Barracks Level 1
    + + + + + + diff --git a/Templates/Manual/122.tpl b/Templates/Manual/122.tpl new file mode 100644 index 00000000..e77302ac --- /dev/null +++ b/Templates/Manual/122.tpl @@ -0,0 +1,50 @@ +

    Swordsman Swordsman (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    65352014015018560
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity6 fields/hour
    Can carry45 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:24:00
    + +Swordsman
    The Swordsmen are more expensive than the Phalanx, but they are an attacking unit. +

    +Defensively they are quite weak, especially against cavalry.
    Prerequisites
    Academy Level 3, Blacksmith Level 1
    + + + + + + diff --git a/Templates/Manual/123.tpl b/Templates/Manual/123.tpl new file mode 100644 index 00000000..6bd68872 --- /dev/null +++ b/Templates/Manual/123.tpl @@ -0,0 +1,50 @@ +

    Pathfinder Pathfinder (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    020101701502040
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity17 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 2
    Duration of trainingduration 0:22:40
    + +Pathfinder
    The Pathfinder is the Gaul's reconnaissance unit. They are very fast and they can carefully advance on the enemy units, resources or buildings to spy on them. +

    +If there aren't any Scouts, Equites Legati or Pathfinders in the scouted village, the scouting remains unnoticed.
    Prerequisites
    Academy Level 5, Stable Level 1
    + + + + + + diff --git a/Templates/Manual/124.tpl b/Templates/Manual/124.tpl new file mode 100644 index 00000000..9b98ea25 --- /dev/null +++ b/Templates/Manual/124.tpl @@ -0,0 +1,50 @@ +

    Theutates Thunder Theutates Thunder (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    90254035045023060
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity19 fields/hour
    Can carry75 resources
    UpkeepCrop consumption 2
    Duration of trainingduration 0:41:20
    + +Theutates Thunder
    Theutates Thunders are very fast and powerful cavalry units. They can carry a large amount of resources which makes them excellent raiders too. +

    +In defence their abilities are average at best.
    Prerequisites
    Academy Level 5, Stable Level 3
    + + + + + + diff --git a/Templates/Manual/125.tpl b/Templates/Manual/125.tpl new file mode 100644 index 00000000..e98960c1 --- /dev/null +++ b/Templates/Manual/125.tpl @@ -0,0 +1,48 @@ +

    Druidrider Druidrider (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    4511555360330280120
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity16 fields/hour
    Can carry35 resources
    UpkeepCrop consumption 2
    Duration of trainingduration 0:42:40
    + +Druidrider
    This medium cavalry unit is brilliant at defence. The main purpose of the Druidrider is to defend against enemy infantry. Its costs and supply are relatively expensive.
    Prerequisites
    Academy Level 5, Stable Level 5
    + + + + + + diff --git a/Templates/Manual/126.tpl b/Templates/Manual/126.tpl new file mode 100644 index 00000000..b73699ba --- /dev/null +++ b/Templates/Manual/126.tpl @@ -0,0 +1,50 @@ +

    Haeduan Haeduan (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    14050165500620675170
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity13 fields/hour
    Can carry65 resources
    UpkeepCrop consumption 3
    Duration of trainingduration 0:52:00
    + +Haeduan
    The Haeduans are the Gaul's ultimate weapon for attacking and defending against cavalry. Few can match them in these points. +

    +However, their training and equipment is also very expensive. They eat 3 units of crop per hour so you should think very carefully if they will be worth it.
    Prerequisites
    Academy Level 15, Stable Level 10
    + + + + + + diff --git a/Templates/Manual/127.tpl b/Templates/Manual/127.tpl new file mode 100644 index 00000000..b7d93f27 --- /dev/null +++ b/Templates/Manual/127.tpl @@ -0,0 +1,48 @@ +

    Ram Ram (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    503010595055533075
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity4 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 3
    Duration of trainingduration 1:23:20
    + +Ram
    The Ram is a heavy support weapon for your infantry and cavalry. Its task is to destroy the enemy walls and therefore increase your troops’ chances of overcoming the enemy's fortifications.
    Prerequisites
    Academy Level 10, Workshop Level 1
    + + + + + + diff --git a/Templates/Manual/128.tpl b/Templates/Manual/128.tpl new file mode 100644 index 00000000..793aa48e --- /dev/null +++ b/Templates/Manual/128.tpl @@ -0,0 +1,52 @@ +

    Trebuchet Trebuchet (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    704510960145063090
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity3 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 6
    Duration of trainingduration 2:30:00
    + +Trebuchet
    The Trebuchet is an excellent long-distance weapon; it is used to destroy the fields and buildings of enemy villages. However, without escorting troops it is almost defenceless so don't forget to send some of your troops with it. +

    +Having a high level rally point makes your catapults more accurate and gives you the option to target additional enemy buildings. With a level 10 rally point each building except for the cranny, stonemason's lodges and trapper can be targeted. +
    +HINT: The Trebuchet CAN hit the cranny, trappers or stonemason's lodges when it targets randomly.
    Prerequisites
    Workshop Level 10, Academy Level 15
    + + + + + + diff --git a/Templates/Manual/129.tpl b/Templates/Manual/129.tpl new file mode 100644 index 00000000..f88607a1 --- /dev/null +++ b/Templates/Manual/129.tpl @@ -0,0 +1,50 @@ +

    Chieftain Chieftain (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    40505030750454003100037500
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity5 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 4
    Duration of trainingduration 25:11:40
    + +Chieftain
    Each tribe has an ancient and experienced fighter whose presence and speeches are able to convince the population of enemy villages to join his tribe. +

    +The more often the Chieftain speaks in front of the walls of an enemy village the more its loyalty sinks until it joins the Chieftain's tribe.
    Prerequisites
    Rally Point Level 10, Academy Level 20
    + + + + + + diff --git a/Templates/Manual/13.tpl b/Templates/Manual/13.tpl new file mode 100644 index 00000000..55615cca --- /dev/null +++ b/Templates/Manual/13.tpl @@ -0,0 +1,48 @@ +

    Imperian Imperian (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    70402515016021080
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity7 fields/hour
    Can carry50 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:32:00
    + +Imperian
    The Imperian is the ultimate attacker of the Roman Empire. He is quick, strong, and the nightmare of all defenders. However, his training is expensive and time-intensive.
    Prerequisites
    Academy Level 5, Blacksmith Level 1
    + + + + + + diff --git a/Templates/Manual/130.tpl b/Templates/Manual/130.tpl new file mode 100644 index 00000000..2b91445c --- /dev/null +++ b/Templates/Manual/130.tpl @@ -0,0 +1,50 @@ +

    Settler Settler (Gauls)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    080805500700053004900
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity5 fields/hour
    Can carry3000 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 6:18:20
    + +Settler
    Settlers are brave and daring citizens who move out of the village after a long training session to found a new village in your honour. +

    +As the journey and the founding of the new village are very difficult, three settlers are bound to stick together. They need a basis of 750 units per resource.
    Prerequisites
    Palace Level 10 or Residence Level 10
    + + + + + + diff --git a/Templates/Manual/131.tpl b/Templates/Manual/131.tpl new file mode 100644 index 00000000..5436043a --- /dev/null +++ b/Templates/Manual/131.tpl @@ -0,0 +1,50 @@ +

    <?php echo U31; ?> (Nature)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    102520857512025
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity7 fields/hour
    Can carry45 resources
    UpkeepCrop consumption 1
    Duration of trainingduration 0:16:20
    + +<?php echo U31; ?>
    's are cheap and breed real fast but cant carry much. +

    +This is proberly the cheaps of the nature units and most ugly.
    Prerequisites
    Baracks Level 1
    + + + + + + diff --git a/Templates/Manual/14.tpl b/Templates/Manual/14.tpl new file mode 100644 index 00000000..c2694e89 --- /dev/null +++ b/Templates/Manual/14.tpl @@ -0,0 +1,50 @@ +

    Equites Legati Equites Legati (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    020101401602040
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity16 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 2
    Duration of trainingduration 0:22:40
    + +Equites Legati
    The Equites Legati are the roman reconnaissance troops. They are pretty fast and can spy on enemy villages in order to see resources and troops. +

    +If there are no Scouts, Equites Legati or Pathfinders in the scouted village, the scouting remains unnoticed.
    Prerequisites
    Stable Level 1, Academy Level 5
    + + + + + + diff --git a/Templates/Manual/15.tpl b/Templates/Manual/15.tpl new file mode 100644 index 00000000..e7e8aaa7 --- /dev/null +++ b/Templates/Manual/15.tpl @@ -0,0 +1,48 @@ +

    Equites Imperatoris Equites Imperatoris (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    1206550550440320100
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity14 fields/hour
    Can carry100 resources
    UpkeepCrop consumption 3
    Duration of trainingduration 0:44:00
    + +Equites Imperatoris
    The Equites Imperatoris are the standard cavalry of the roman army and are very well armed. They are not the fastest troops, but are a horror for unprepared enemies. You should, however, always keep in mind that catering for horse and rider isn't cheap.
    Prerequisites
    Stable Level 5, Academy Level 5
    + + + + + + diff --git a/Templates/Manual/16.tpl b/Templates/Manual/16.tpl new file mode 100644 index 00000000..000f987b --- /dev/null +++ b/Templates/Manual/16.tpl @@ -0,0 +1,48 @@ +

    Equites Caesaris Equites Caesaris (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    18080105550640800180
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity10 fields/hour
    Can carry70 resources
    UpkeepCrop consumption 4
    Duration of trainingduration 0:58:40
    + +Equites Caesaris
    The Equites Caesaris are the heavy cavalry of Rome. They are very well armoured and deal great amounts of damage, but all that armour and weaponry comes with a price. They are slow, carry less resources and feeding them is expensive.
    Prerequisites
    Stable Level 10, Academy Level 5
    + + + + + + diff --git a/Templates/Manual/17.tpl b/Templates/Manual/17.tpl new file mode 100644 index 00000000..fea6fb7f --- /dev/null +++ b/Templates/Manual/17.tpl @@ -0,0 +1,48 @@ +

    Battering Ram Battering Ram (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    60307590036050070
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity4 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 3
    Duration of trainingduration 1:16:40
    + +Battering Ram
    The Battering Ram is a heavy support weapon for your infantry and cavalry. Its task is to destroy the enemy walls and therefore increase your troops’ chances of overcoming the enemy's fortifications.
    Prerequisites
    Academy Level 10, Workshop Level 1
    + + + + + + diff --git a/Templates/Manual/18.tpl b/Templates/Manual/18.tpl new file mode 100644 index 00000000..260e1e37 --- /dev/null +++ b/Templates/Manual/18.tpl @@ -0,0 +1,52 @@ +

    Fire Catapult Fire Catapult (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    756010950135060090
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity3 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 6
    Duration of trainingduration 2:30:00
    + +Fire Catapult
    The Catapult is an excellent long-distance weapon; it is used to destroy the fields and buildings of enemy villages. However, without escorting troops it is almost defenceless so don't forget to send some of your troops with it. +

    +Having a high level rally point makes your catapults more accurate and gives you the option to target additional enemy buildings. With a level 10 rally point each building except for the cranny, stonemason's lodge and trapper can be targeted. +
    +HINT: Fire catapults CAN hit the cranny, trappers or stonemason's lodge when they target randomly.
    Prerequisites
    Workshop Level 10, Academy Level 15
    + + + + + + diff --git a/Templates/Manual/19.tpl b/Templates/Manual/19.tpl new file mode 100644 index 00000000..b7cf3ea7 --- /dev/null +++ b/Templates/Manual/19.tpl @@ -0,0 +1,50 @@ +

    Senator Senator (Romans)

    + + + + + + + + + + + + + + + + +
    attack valuedefence against infantrydefence against cavalryLumberClayIronCrop
    50403030750272004500037500
    + + + + + + + + + + + + + + + + + + + + + +
    Velocity4 fields/hour
    Can carry0 resources
    UpkeepCrop consumption 5
    Duration of trainingduration 25:11:40
    + +Senator
    The Senator is the tribe's chosen leader. He's a good speaker and knows how to convince others. He is able to persuade other villages to fight with the empire. +

    +Every time the Senator speaks to the inhabitants of a village the enemy's loyalty value decreases until the village is yours.
    Prerequisites
    Rally Point Level 10, Academy Level 20
    + + + + + + diff --git a/Templates/Manual/21.tpl b/Templates/Manual/21.tpl new file mode 100644 index 00000000..d6b519bd --- /dev/null +++ b/Templates/Manual/21.tpl @@ -0,0 +1,7 @@ +

    Troops (Romans)

    + + + + + + diff --git a/Templates/Manual/22.tpl b/Templates/Manual/22.tpl new file mode 100644 index 00000000..cbd40f15 --- /dev/null +++ b/Templates/Manual/22.tpl @@ -0,0 +1,7 @@ +

    Troops (Teutons)

    + + + + + + diff --git a/Templates/Manual/23.tpl b/Templates/Manual/23.tpl new file mode 100644 index 00000000..822fee87 --- /dev/null +++ b/Templates/Manual/23.tpl @@ -0,0 +1,7 @@ +

    Troops (Gauls)

    + + + + + + diff --git a/Templates/Manual/31.tpl b/Templates/Manual/31.tpl new file mode 100644 index 00000000..1fa5e047 --- /dev/null +++ b/Templates/Manual/31.tpl @@ -0,0 +1,7 @@ +

    Buildings (Resources)

    + + + + + + diff --git a/Templates/Manual/32.tpl b/Templates/Manual/32.tpl new file mode 100644 index 00000000..83b0cc08 --- /dev/null +++ b/Templates/Manual/32.tpl @@ -0,0 +1,7 @@ +

    Buildings (Military)

    + + + + + + diff --git a/Templates/Manual/33.tpl b/Templates/Manual/33.tpl new file mode 100644 index 00000000..efc9b7a7 --- /dev/null +++ b/Templates/Manual/33.tpl @@ -0,0 +1,7 @@ +

    Buildings (Infrastructure)

    + + + + + + diff --git a/Templates/Manual/4.tpl b/Templates/Manual/4.tpl new file mode 100644 index 00000000..d15e5e2b --- /dev/null +++ b/Templates/Manual/4.tpl @@ -0,0 +1,37 @@ + +

    Overview

    + +

    This ingame help offers you the chance to look up important information at any time.

    +Troops +Buildings

    + + + + + + \ No newline at end of file diff --git a/Templates/Manual/41.tpl b/Templates/Manual/41.tpl new file mode 100644 index 00000000..a106aa9e --- /dev/null +++ b/Templates/Manual/41.tpl @@ -0,0 +1,11 @@ +

    Woodcutter

    WoodcutterThe woodcutter cuts down trees in order to produce lumber. The further you extend the woodcutter the more lumber is produced by it. + +

    +By constructing a Sawmill you can increase the production further.

    Costs and construction time for level 1:
    Lumber40 | Clay100 | Iron50 | Crop60 | Crop consumption2 | duration0:04:20

    +

    Prerequisites
    none

    + + + + + + diff --git a/Templates/Manual/410.tpl b/Templates/Manual/410.tpl new file mode 100644 index 00000000..6b815ea0 --- /dev/null +++ b/Templates/Manual/410.tpl @@ -0,0 +1,7 @@ +

    Warehouse

    WarehouseThe resources lumber, clay and iron are stored in the warehouse. By increasing its level you increase your warehouse's capacity.

    Costs and construction time for level 1:
    Lumber130 | Clay160 | Iron90 | Crop40 | Crop consumption1 | duration0:33:20

    +

    Prerequisites
    Main Building Level 1

    + + + + + diff --git a/Templates/Manual/411.tpl b/Templates/Manual/411.tpl new file mode 100644 index 00000000..218d236a --- /dev/null +++ b/Templates/Manual/411.tpl @@ -0,0 +1,7 @@ +

    Granary

    GranaryThe crop produced in your farms is stored in the granary. By increasing its level you increase the granary’s capacity.

    Costs and construction time for level 1:
    Lumber80 | Clay100 | Iron70 | Crop20 | Crop consumption1 | duration0:26:40

    +

    Prerequisites
    Main Building Level 1

    + + + + + diff --git a/Templates/Manual/412.tpl b/Templates/Manual/412.tpl new file mode 100644 index 00000000..4f146c6b --- /dev/null +++ b/Templates/Manual/412.tpl @@ -0,0 +1,7 @@ +

    Blacksmith

    BlacksmithYour warriors' weapons are enhanced in the blacksmith’s melting furnaces. By increasing its level you can order the fabrication of even better weapons.

    Costs and construction time for level 1:
    Lumber170 | Clay200 | Iron380 | Crop130 | Crop consumption4 | duration0:33:20

    +

    Prerequisites
    Main Building Level 3, Academy Level 3

    + + + + + \ No newline at end of file diff --git a/Templates/Manual/413.tpl b/Templates/Manual/413.tpl new file mode 100644 index 00000000..c763759b --- /dev/null +++ b/Templates/Manual/413.tpl @@ -0,0 +1,8 @@ +

    Armoury

    ArmouryYour warriors' armour is enhanced in the armoury's melting furnaces. By increasing its level you can order the fabrication of even better armour.

    Costs and construction time for level 1:
    Lumber130 | Clay210 | Iron410 | Crop130 | Crop consumption4 | duration0:33:20

    +

    Prerequisites
    Main Building Level 3, Academy Level 1

    + + + + + + diff --git a/Templates/Manual/414.tpl b/Templates/Manual/414.tpl new file mode 100644 index 00000000..9ed99982 --- /dev/null +++ b/Templates/Manual/414.tpl @@ -0,0 +1,8 @@ +

    Tournament Square

    Tournament SquareYour troops can increase their stamina at the tournament square. The further the building is upgraded the faster your troops are beyond a minimum distance of 30 squares.

    Costs and construction time for level 1:
    Lumber1750 | Clay2250 | Iron1530 | Crop240 | Crop consumption1 | duration0:58:20

    +

    Prerequisites
    Rally Point Level 15

    + + + + + + diff --git a/Templates/Manual/415.tpl b/Templates/Manual/415.tpl new file mode 100644 index 00000000..c2ea1c77 --- /dev/null +++ b/Templates/Manual/415.tpl @@ -0,0 +1,10 @@ +

    Main Building

    Main BuildingThe village's master builders live in the main building. The higher its level the faster your master builders complete the construction of new buildings.

    Costs and construction time for level 1:
    Lumber70 | Clay40 | Iron60 | Crop20 | Crop consumption2 | duration0:33:20

    + +

    Prerequisites
    none

    + + + + + + + diff --git a/Templates/Manual/416.tpl b/Templates/Manual/416.tpl new file mode 100644 index 00000000..3f51e4cf --- /dev/null +++ b/Templates/Manual/416.tpl @@ -0,0 +1,9 @@ +

    Rally Point

    Rally PointYour village's troops meet here. From here you can send them out to conquer, raid or reinforce other villages. +

    +The rally point can only be built on the green grassland below your main building and to the right.

    Costs and construction time for level 1:
    Lumber110 | Clay160 | Iron90 | Crop70 | Crop consumption1 | duration0:33:20

    +

    Prerequisites
    none

    + + + + + diff --git a/Templates/Manual/417.tpl b/Templates/Manual/417.tpl new file mode 100644 index 00000000..ba763c36 --- /dev/null +++ b/Templates/Manual/417.tpl @@ -0,0 +1,8 @@ +

    Marketplace

    MarketplaceAt the marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.

    Costs and construction time for level 1:
    Lumber80 | Clay70 | Iron120 | Crop70 | Crop consumption4 | duration0:30:00

    +

    Prerequisites
    Main Building Level 3, Warehouse Level 1, Granary Level 1

    + + + + + + diff --git a/Templates/Manual/418.tpl b/Templates/Manual/418.tpl new file mode 100644 index 00000000..075c420f --- /dev/null +++ b/Templates/Manual/418.tpl @@ -0,0 +1,9 @@ +

    Embassy

    EmbassyThe embassy is a place for diplomats. At level 1 you can join an alliance, after extending it to level 3 you may even found one yourself. +

    +The maximum number of possible members in an alliance is equal to 3 times the level of the highest level embassy within that alliance. Therefore with a level 20 embassy up to 60 players can be in the alliance.

    Costs and construction time for level 1:
    Lumber180 | Clay130 | Iron150 | Crop80 | Crop consumption3 | duration0:33:20

    +

    Prerequisites
    Main Building Level 1

    + + + + + diff --git a/Templates/Manual/419.tpl b/Templates/Manual/419.tpl new file mode 100644 index 00000000..fcf636c9 --- /dev/null +++ b/Templates/Manual/419.tpl @@ -0,0 +1,7 @@ +

    Barracks

    BarracksInfantry can be trained in the barracks. The higher its level the faster the troops are trained.

    Costs and construction time for level 1:
    Lumber210 | Clay140 | Iron260 | Crop120 | Crop consumption4 | duration0:33:20

    +

    Prerequisites
    Rally Point Level 1, Main Building Level 3

    + + + + + \ No newline at end of file diff --git a/Templates/Manual/42.tpl b/Templates/Manual/42.tpl new file mode 100644 index 00000000..985d765d --- /dev/null +++ b/Templates/Manual/42.tpl @@ -0,0 +1,7 @@ +

    Clay Pit

    Clay PitClay is collected from clay pits. The higher the clay pit's level, the more clay is produced.

    Costs and construction times at level 1:
    Wood80 | Clay40 | Iron80 | Wheat50 | Wheat consumption2 | duration0:03:40

    +

    Prerequisites:
    none

    + + + + + diff --git a/Templates/Manual/420.tpl b/Templates/Manual/420.tpl new file mode 100644 index 00000000..bfe7f0e9 --- /dev/null +++ b/Templates/Manual/420.tpl @@ -0,0 +1,7 @@ +

    Stable

    StableCavalry can be trained in the stable. The higher its level the faster the troops are trained.

    Costs and construction time for level 1:
    Lumber260 | Clay140 | Iron220 | Crop100 | Crop consumption5 | duration0:36:40

    +

    Prerequisites
    Blacksmith Level 3, Academy Level 5

    + + + + + diff --git a/Templates/Manual/421.tpl b/Templates/Manual/421.tpl new file mode 100644 index 00000000..21d42a9e --- /dev/null +++ b/Templates/Manual/421.tpl @@ -0,0 +1,7 @@ +

    Workshop

    WorkshopSiege engines like catapults and rams can be built in the workshop. The higher its level the faster the units are produced.

    Costs and construction time for level 1:
    Lumber460 | Clay510 | Iron600 | Crop320 | Crop consumption3 | duration0:50:00

    +

    Prerequisites
    Academy Level 10, Main Building Level 5

    + + + + + diff --git a/Templates/Manual/422.tpl b/Templates/Manual/422.tpl new file mode 100644 index 00000000..a99126b3 --- /dev/null +++ b/Templates/Manual/422.tpl @@ -0,0 +1,10 @@ +

    Academy

    AcademyNew unit types can be developed in the academy. By increasing its level you can order the research of better units.

    Costs and construction time for level 1:
    Lumber220 | Clay160 | Iron90 | Crop40 | Crop consumption4 | duration0:33:20

    +

    Prerequisites
    Barracks Level 3, Main Building Level 3

    + + + + + diff --git a/Templates/Manual/423.tpl b/Templates/Manual/423.tpl new file mode 100644 index 00000000..05a2e666 --- /dev/null +++ b/Templates/Manual/423.tpl @@ -0,0 +1,16 @@ +

    Cranny

    CrannyThe cranny is used to hide at least some of your resources when the village is attacked. These resources cannot be stolen. +

    +At level 1 the cranny holds 100 units of each resource. Gaulic crannies are twice as big as the others. +

    +HINTS +
    +In T3 the cranny is 66% as effective against Teutons. +
    +In T3.5 the cranny is 80% as effective against Teutons.

    Costs and construction time for level 1:
    Lumber40 | Clay50 | Iron30 | Crop10 | Crop consumption0 | duration0:12:30

    +

    Prerequisites
    none

    + + + + + + diff --git a/Templates/Manual/424.tpl b/Templates/Manual/424.tpl new file mode 100644 index 00000000..d34c6932 --- /dev/null +++ b/Templates/Manual/424.tpl @@ -0,0 +1,10 @@ +

    Town Hall

    Town HallIn the town hall you can hold pompous celebrations. Such a celebration increases your culture points. +

    +Culture points are necessary to found or conquer new villages. Each building produces culture points and the higher its level the more it produces. With celebrations you can increase this production for a short while.

    Costs and construction time for level 1:
    Lumber1250 | Clay1110 | Iron1260 | Crop600 | Crop consumption4 | duration3:28:20

    +

    Prerequisites
    Main Building Level 10, Academy Level 10

    + + + + + + diff --git a/Templates/Manual/425.tpl b/Templates/Manual/425.tpl new file mode 100644 index 00000000..0414fcdf --- /dev/null +++ b/Templates/Manual/425.tpl @@ -0,0 +1,7 @@ +

    Residence

    ResidenceThe residence is a small palace where the King or Queen lives when he or she visits the village. The residence protects the village against enemies who want to conquer it.

    Costs and construction time for level 1:
    Lumber580 | Clay460 | Iron350 | Crop180 | Crop consumption1 | duration0:33:20

    +

    Prerequisites
    Main Building Level 5, Palace

    + + + + + diff --git a/Templates/Manual/426.tpl b/Templates/Manual/426.tpl new file mode 100644 index 00000000..8e64752b --- /dev/null +++ b/Templates/Manual/426.tpl @@ -0,0 +1,10 @@ +

    Palace

    PalaceThe King or Queen of the empire lives in the palace. Only one palace can exist in your realm at a time. You need a palace in order to proclaim a village to be your capital. +

    +The capital can not be conquered. Additionally, the capital is the only place where resource fields can only be extended beyond level 10 and the only place where the stonemason's lodge can be built.

    Costs and construction time for level 1:
    Lumber550 | Clay800 | Iron750 | Crop250 | Crop consumption1 | duration1:23:20

    +

    Prerequisites
    Embassy Level 1, Main Building Level 5, Residence

    + + + + + + diff --git a/Templates/Manual/427.tpl b/Templates/Manual/427.tpl new file mode 100644 index 00000000..a54029a4 --- /dev/null +++ b/Templates/Manual/427.tpl @@ -0,0 +1,11 @@ +

    Treasury

    TreasuryThe riches of your empire are kept in the treasury. A treasury can only store one artefact. +

    +You need a treasury level 10 for a small artefact, or level 20 for a great one.

    Costs and construction time for level 1:
    Lumber2880 | Clay2740 | Iron2580 | Crop990 | Crop consumption4 | duration2:13:20

    +

    Prerequisites
    Main Building Level 10, Wonder Of The World

    + + + + + + + diff --git a/Templates/Manual/428.tpl b/Templates/Manual/428.tpl new file mode 100644 index 00000000..056e052d --- /dev/null +++ b/Templates/Manual/428.tpl @@ -0,0 +1,7 @@ +

    Trade Office

    Trade OfficeIn the trade office the merchants' carts get improved and equipped with powerful horses. The higher its level the more your merchants are able to carry.

    Costs and construction time for level 1:
    Lumber1400 | Clay1330 | Iron1200 | Crop400 | Crop consumption3 | duration0:50:00

    +

    Prerequisites
    Marketplace Level 20, Stable Level 10

    + + + + + diff --git a/Templates/Manual/429.tpl b/Templates/Manual/429.tpl new file mode 100644 index 00000000..626b3d42 --- /dev/null +++ b/Templates/Manual/429.tpl @@ -0,0 +1,10 @@ +

    Great Barracks

    Great BarracksThe great barracks allows you to build more units at the same time but they cost thrice the original amount. +

    +It cannot be built in the capital.

    Costs and construction time for level 1:
    Lumber630 | Clay420 | Iron780 | Crop360 | Crop consumption4 | duration0:33:20

    +

    Prerequisites
    Barracks Level 20

    + + + + + + diff --git a/Templates/Manual/43.tpl b/Templates/Manual/43.tpl new file mode 100644 index 00000000..3f5943bb --- /dev/null +++ b/Templates/Manual/43.tpl @@ -0,0 +1,10 @@ +

    Iron Mine

    Iron MineHere miners gather the precious resource iron. By increasing the mine's level you increase its iron production. + +By constructing an Iron Foundry you can increase the production further. +

    Costs and construction time for level 1:
    Lumber100 | Clay80 | Iron30 | Crop60 | Crop consumption3 | duration0:07:30

    +

    Prerequisites
    none

    + + + + + diff --git a/Templates/Manual/430.tpl b/Templates/Manual/430.tpl new file mode 100644 index 00000000..4165a1d5 --- /dev/null +++ b/Templates/Manual/430.tpl @@ -0,0 +1,9 @@ +

    Great Stable

    Great StableThe great stable allows you to build more units at the same time but they cost thrice the original amount. +

    +It cannot be built in the capital.

    Costs and construction time for level 1:
    Lumber780 | Clay420 | Iron660 | Crop300 | Crop consumption5 | duration0:36:40

    +

    Prerequisites
    Stable Level 20

    + + + + + \ No newline at end of file diff --git a/Templates/Manual/431.tpl b/Templates/Manual/431.tpl new file mode 100644 index 00000000..056e052d --- /dev/null +++ b/Templates/Manual/431.tpl @@ -0,0 +1,7 @@ +

    Trade Office

    Trade OfficeIn the trade office the merchants' carts get improved and equipped with powerful horses. The higher its level the more your merchants are able to carry.

    Costs and construction time for level 1:
    Lumber1400 | Clay1330 | Iron1200 | Crop400 | Crop consumption3 | duration0:50:00

    +

    Prerequisites
    Marketplace Level 20, Stable Level 10

    + + + + + diff --git a/Templates/Manual/432.tpl b/Templates/Manual/432.tpl new file mode 100644 index 00000000..af306025 --- /dev/null +++ b/Templates/Manual/432.tpl @@ -0,0 +1,9 @@ +

    Stonemason's Lodge

    Stonemason's LodgeThe stonemason's lodge is an expert at cutting stone. The further the building is extended the higher the stability of the village's buildings. +

    +It can only be built in the capital

    Costs and construction time for level 1:
    Lumber155 | Clay130 | Iron125 | Crop70 | Crop consumption2 | duration0:36:40

    +

    Prerequisites
    Main Building Level 5, Palace Level 3

    + + + + + diff --git a/Templates/Manual/433.tpl b/Templates/Manual/433.tpl new file mode 100644 index 00000000..8b29bfbc --- /dev/null +++ b/Templates/Manual/433.tpl @@ -0,0 +1,11 @@ +

    Brewery

    BreweryTasty mead is brewed in the brewery and later quaffed by the soldiers during the celebrations. +

    +These drinks make your soldiers braver and stronger in battles (1% per level). Unfortunately the chiefs’ power of persuasion is decreased and catapults can only do random hits. +

    +It can only be built by Teutons and only in their capital. It affects the whole empire.

    Costs and construction time for level 1:
    Lumber1460 | Clay930 | Iron1250 | Crop1740 | Crop consumption6 | duration2:13:20

    +

    Prerequisites
    Granary Level 20, Rally Point Level 10

    + + + + + diff --git a/Templates/Manual/434.tpl b/Templates/Manual/434.tpl new file mode 100644 index 00000000..af306025 --- /dev/null +++ b/Templates/Manual/434.tpl @@ -0,0 +1,9 @@ +

    Stonemason's Lodge

    Stonemason's LodgeThe stonemason's lodge is an expert at cutting stone. The further the building is extended the higher the stability of the village's buildings. +

    +It can only be built in the capital

    Costs and construction time for level 1:
    Lumber155 | Clay130 | Iron125 | Crop70 | Crop consumption2 | duration0:36:40

    +

    Prerequisites
    Main Building Level 5, Palace Level 3

    + + + + + diff --git a/Templates/Manual/435.tpl b/Templates/Manual/435.tpl new file mode 100644 index 00000000..3c783a00 --- /dev/null +++ b/Templates/Manual/435.tpl @@ -0,0 +1,11 @@ +

    Brewery

    BreweryTasty mead is brewed in the brewery and later quaffed by the soldiers during the celebrations. +

    +These drinks make your soldiers braver and stronger in battles (1% per level). Unfortunately the chiefs’ power of persuasion is decreased and catapults can only do random hits. +

    +It can only be built by Teutons and only in their capital. It affects the whole empire.

    Costs and construction time for level 1:
    Lumber1460 | Clay930 | Iron1250 | Crop1740 | Crop consumption6 | duration2:13:20

    +

    Prerequisites
    Granary Level 20, Rally Point Level 10

    + + + + + \ No newline at end of file diff --git a/Templates/Manual/436.tpl b/Templates/Manual/436.tpl new file mode 100644 index 00000000..ca92ff9f --- /dev/null +++ b/Templates/Manual/436.tpl @@ -0,0 +1,19 @@ +

    Trapper

    TrapperThe trapper protects your village with well hidden traps. This means that unwary enemies can be imprisoned and won't be able to harm your village anymore. +

    +One trap costs +20| +30| +10| +20 +0 +

    +Troops cannot be freed with a raid. When the troops get freed with a successful normal attack, 1/3 of the traps are automatically repaired. If the owner of the traps release the captives all of the traps can be repaired. +

    +Note that this building can only be constructed by Gauls.

    Costs and construction time for level 1:
    Lumber100 | Clay100 | Iron100 | Crop100 | Crop consumption4 | duration0:33:20

    +

    Prerequisites
    Rally Point Level 1

    + + + + + + diff --git a/Templates/Manual/437.tpl b/Templates/Manual/437.tpl new file mode 100644 index 00000000..a1fbfeb4 --- /dev/null +++ b/Templates/Manual/437.tpl @@ -0,0 +1,11 @@ +

    Hero's Mansion

    Hero's MansionIn the hero's mansion you can train a hero. For this you need a normal soldier who will become the hero and therefore you need a barracks or a stable. +

    +When the building reaches levels 10, 15 and 20 you can annex 1, 2 and 3 unoccupied oases with your hero. Depending on the oasis you will get an increase in production for a certain resource (or even two resources for some oases).

    Costs and construction time for level 1:
    Lumber700 | Clay670 | Iron700 | Crop240 | Crop consumption2 | duration0:38:20

    +

    Prerequisites
    Main Building Level 3, Rally Point Level 1

    + + + + + + + diff --git a/Templates/Manual/438.tpl b/Templates/Manual/438.tpl new file mode 100644 index 00000000..ee2a98e4 --- /dev/null +++ b/Templates/Manual/438.tpl @@ -0,0 +1,8 @@ +

    Great Warehouse

    Great WarehouseThe resources lumber, clay and iron are stored in your warehouse. The great warehouse offers you more space to and keeps your resources drier and safer than the normal warehouse..

    +This building can only be built in the old natarian villages or with special natarian artefacts.

    Costs and construction time for level 1:
    Lumber650 | Clay800 | Iron450 | Crop200 | Crop consumption1 | duration2:30:00

    +

    Prerequisites
    Main Building Level 10, Wonder Of The World Level 0

    + + + + + diff --git a/Templates/Manual/439.tpl b/Templates/Manual/439.tpl new file mode 100644 index 00000000..2f0bf7a9 --- /dev/null +++ b/Templates/Manual/439.tpl @@ -0,0 +1,8 @@ +

    Great Granary

    Great GranaryThe crop produced by your farms is stored in the granary. The great granary offers you more space and keeps your crops drier and safer than the normal one.

    +This building can only be built in the old natarian villages or with special natarian artefacts.

    Costs and construction time for level 1:
    Lumber400 | Clay500 | Iron350 | Crop100 | Crop consumption1 | duration1:56:40

    +

    Prerequisites
    Main Building Level 10, Wonder Of The World Level 0

    + + + + + diff --git a/Templates/Manual/44.tpl b/Templates/Manual/44.tpl new file mode 100644 index 00000000..e1bb50d4 --- /dev/null +++ b/Templates/Manual/44.tpl @@ -0,0 +1,9 @@ +

    Cropland

    CroplandYour population's food is produced here. By increasing the cropland's level you increase its crop production. +

    +By constructing a grain mill and a bakery you can increase the production further.

    Costs and construction time for level 1:
    Lumber70 | Clay90 | Iron70 | Crop20 | Crop consumption0 | duration0:02:30

    +

    Prerequisites
    none

    + + + + + diff --git a/Templates/Manual/440.tpl b/Templates/Manual/440.tpl new file mode 100644 index 00000000..ebeb7523 --- /dev/null +++ b/Templates/Manual/440.tpl @@ -0,0 +1,9 @@ +

    Wonder Of The World

    Wonder Of The WorldThe wonder of the world represents the pride of creation. Only the mightiest and richest are able to build such a masterwork and defend it against envious enemies. +

    +Wonders of the world can only be erected in the old natarian villages. Also a construction plan is necessary. Starting with level 50 an additional plan is needed. This one has to be owned by another player in the same alliance.

    Costs and construction time for level 1:
    Lumber66700 | Clay69050 | Iron72200 | Crop13200 | Crop consumption1 | duration2:30:00

    +

    Prerequisites
    ancient construction plan

    + + + + + \ No newline at end of file diff --git a/Templates/Manual/441.tpl b/Templates/Manual/441.tpl new file mode 100644 index 00000000..7bf02e94 --- /dev/null +++ b/Templates/Manual/441.tpl @@ -0,0 +1,9 @@ +

    Horse Drinking Trough

    Horse Drinking TroughThe horse drinking trough cares for the wellbeing of your horses and therefore also increases the speed of their training.

    +The horse drinking trough reduces the crop usage by one for the following soldiers: Equites Legati from level 10, Equites Imperatoris from level 15 and Equites Caesaris from level 20.

    +The horse drinking trough can only be built by Romans.

    Costs and construction time for level 1:
    Lumber780 | Clay420 | Iron660 | Crop540 | Crop consumption5 | duration0:36:40

    +

    Prerequisites
    Stable Level 20, Rally Point Level 10

    + + + + + diff --git a/Templates/Manual/45.tpl b/Templates/Manual/45.tpl new file mode 100644 index 00000000..37b09af2 --- /dev/null +++ b/Templates/Manual/45.tpl @@ -0,0 +1,7 @@ +

    Sawmill

    SawmillLumber cut by your woodcutters is processed here. Based on its level your sawmill can increase your wood production by up to 25 percent.

    Costs and construction time for level 1:
    Lumber520 | Clay380 | Iron290 | Crop90 | Crop consumption4 | duration0:50:00

    +

    Prerequisites
    Woodcutter Level 10, Main Building Level 5

    + + + + + diff --git a/Templates/Manual/46.tpl b/Templates/Manual/46.tpl new file mode 100644 index 00000000..84357115 --- /dev/null +++ b/Templates/Manual/46.tpl @@ -0,0 +1,7 @@ +

    Brickyard

    BrickyardThe brickyard converts clay into bricks. Based on its level your brickyard can increase your clay production by up to 25 percent.

    Costs and construction time for level 1:
    Lumber440 | Clay480 | Iron320 | Crop50 | Crop consumption3 | duration0:37:20

    +

    Prerequisites
    Clay Pit Level 10, Main Building Level 5

    + + + + + diff --git a/Templates/Manual/47.tpl b/Templates/Manual/47.tpl new file mode 100644 index 00000000..b5264a0f --- /dev/null +++ b/Templates/Manual/47.tpl @@ -0,0 +1,7 @@ +

    Iron Foundry

    Iron FoundryThe iron foundry melts iron. Based on its level your iron foundry can increase your iron production by up to 25 percent.

    Costs and construction time for level 1:
    Lumber200 | Clay450 | Iron510 | Crop120 | Crop consumption6 | duration1:08:00

    +

    Prerequisites
    Iron Mine Level 10, Main Building Level 5

    + + + + + diff --git a/Templates/Manual/48.tpl b/Templates/Manual/48.tpl new file mode 100644 index 00000000..766bcf53 --- /dev/null +++ b/Templates/Manual/48.tpl @@ -0,0 +1,7 @@ +

    Grain Mill

    Grain MillThe grain mill changes grain into flour. Based on its level your grain mill can increase your crop production by up to 25 percent.

    Costs and construction time for level 1:
    Lumber500 | Clay440 | Iron380 | Crop1240 | Crop consumption3 | duration0:30:40

    +

    Prerequisites
    Cropland Level 5

    + + + + + diff --git a/Templates/Manual/49.tpl b/Templates/Manual/49.tpl new file mode 100644 index 00000000..be039daf --- /dev/null +++ b/Templates/Manual/49.tpl @@ -0,0 +1,7 @@ +

    Bakery

    BakeryThe bakery changes flour into bread. In conjunction to the grain mill the increase in crop production can go up to 50 percent in total.

    Costs and construction time for level 1:
    Lumber1200 | Clay1480 | Iron870 | Crop1600 | Crop consumption4 | duration1:01:20

    +

    Prerequisites
    Cropland Level 10, Main Building Level 5, Grain Mill Level 5

    + + + + + diff --git a/Templates/Manual/52.tpl b/Templates/Manual/52.tpl new file mode 100644 index 00000000..09038553 --- /dev/null +++ b/Templates/Manual/52.tpl @@ -0,0 +1,31 @@ + + +

    event jam (00:00:0?)

    + +

    +All events occurring at a later time get calculated by an event system. In case the server is overloaded or the connection between webserver and database is bad an event jam can result of this. +
    +As soon as more events are received per second than can be calculated per second, events (e.g."construction finished" or "troops arrived") will be put into a waiting loop. +
    +The chronological order of troop movements stays the same, even in an event jam, so troops that would normally arrive somewhere first would still arrive there first. +
    + +As player, nothing can be done against an event jam except waiting. Normally these problems get resolved after a few minutes automatically. At the moment events await

    + + + + + + + \ No newline at end of file diff --git a/Templates/Manual/60.tpl b/Templates/Manual/60.tpl new file mode 100644 index 00000000..b7df6009 --- /dev/null +++ b/Templates/Manual/60.tpl @@ -0,0 +1,16 @@ +

    Plus account

    +The plus account offers you the following improvements:
    +
    +
      +
    • Waiting loop for constructions
    • +
    • Larger map
    • +
    • Archive function for reports and messages
    • +
    • Sorting function for reports and messages
    • +
    • Sorting function for the marketplace
    • +
    • Auto-completion
    • +
    • Report filter
    • +
    • Freely definable direct links
    • +
    • Graphical statistics
    • +
    • Central account overview
    • +
    • Notepad
    • +
    diff --git a/Templates/Manual/61.tpl b/Templates/Manual/61.tpl new file mode 100644 index 00000000..2b7eabd7 --- /dev/null +++ b/Templates/Manual/61.tpl @@ -0,0 +1,11 @@ + +

    Production bonus for lumber

    +With this Gold advantage all your villages' lumber production will be increased by 25%.
    +
    +The bonus will not be added to the single resource fields but to the sum of the production.
    +
    +This feature is NOT included in the gold club! \ No newline at end of file diff --git a/Templates/Manual/62.tpl b/Templates/Manual/62.tpl new file mode 100644 index 00000000..04af9780 --- /dev/null +++ b/Templates/Manual/62.tpl @@ -0,0 +1,11 @@ + +

    Production bonus for clay

    +With this Gold advantage all your villages' clay production will be increased by 25%.
    +
    +The bonus will not be added to the single resource fields but to the sum of the production.
    +
    +This feature is NOT included in the gold club! \ No newline at end of file diff --git a/Templates/Manual/63.tpl b/Templates/Manual/63.tpl new file mode 100644 index 00000000..bfb0b28c --- /dev/null +++ b/Templates/Manual/63.tpl @@ -0,0 +1,11 @@ + +

    Production bonus for iron

    +With this Gold advantage all your villages' iron production will be increased by 25%.
    +
    +The bonus will not be added to the single resource fields but to the sum of the production.
    +
    +This feature is NOT included in the gold club! \ No newline at end of file diff --git a/Templates/Manual/64.tpl b/Templates/Manual/64.tpl new file mode 100644 index 00000000..8ebf33a7 --- /dev/null +++ b/Templates/Manual/64.tpl @@ -0,0 +1,11 @@ + +

    Production bonus for crop

    +With this Gold advantage all your villages' crop production will be increased by 25%.
    +
    +The bonus will not be added to the single resource fields but to the sum of the production.
    +
    +This feature is NOT included in the gold club! \ No newline at end of file diff --git a/Templates/Manual/67.tpl b/Templates/Manual/67.tpl new file mode 100644 index 00000000..41740273 --- /dev/null +++ b/Templates/Manual/67.tpl @@ -0,0 +1,11 @@ + +

    Complete construction orders & research immediately.

    +In the current village all construction orders and research in the academy as well as the blacksmith and armoury will be completed immediately.
    +
    +However, the buildings Residence and Palace and villages with a wonder of the world inside them are excluded.
    +
    +This feature is NOT included in the gold club! \ No newline at end of file diff --git a/Templates/Manual/68.tpl b/Templates/Manual/68.tpl new file mode 100644 index 00000000..ccee310c --- /dev/null +++ b/Templates/Manual/68.tpl @@ -0,0 +1,9 @@ + +

    NPC Merchant

    +The NPC Merchant will exchange any desired amount of resources in a village with other resources at a ratio of 1:1.
    +
    +This feature is NOT included in the gold club! \ No newline at end of file diff --git a/Templates/Manual/69.tpl b/Templates/Manual/69.tpl new file mode 100644 index 00000000..0606abe1 --- /dev/null +++ b/Templates/Manual/69.tpl @@ -0,0 +1,22 @@ + +

    Gold club

    +You will only be charged once for entry into Gold club. Afterwards you have access to various exclusive features. Some of the exclusive features are free, others cost a defined amount of gold per use.
    +
    +Free Gold club features: +
      +
    • Raid list
    • +
    • Raid statistics
    • +
    • Let merchants go thrice
    • +
    • Search for 9 and 15 croppers including oases
    • +
    +Priced Gold club features: +
      +
    • Assign master builder up to 3 construction orders
    • +
    • Automated trade routes between your own villages
    • +
    • Hide troops from attacks in the forest
      + (only possible if in the last 10 seconds no troops came home)
    • +
    diff --git a/Templates/Manual/direct.tpl b/Templates/Manual/direct.tpl new file mode 100644 index 00000000..1a68b4b5 --- /dev/null +++ b/Templates/Manual/direct.tpl @@ -0,0 +1,34 @@ +

    direct links

    + +

    With the direct links one can set links to any target and speed up the navigation.

    + + + + + + + + + + + + + + + + + + + + + + + + +
    example for direct links
    Link nameLink target
    Barracksbuild.php?gid=19
    Marketplacebuild.php?gid=17
    Rally Pointbuild.php?gid=16
    Notesnachrichten.php?t=4*
    +

    Adding an * to the URL will cause the direct link to open in a new window.

    + + + + + diff --git a/Templates/Manual/medal.tpl b/Templates/Manual/medal.tpl new file mode 100644 index 00000000..f80be24d --- /dev/null +++ b/Templates/Manual/medal.tpl @@ -0,0 +1,33 @@ +

    Top 10 statistics

    +

    The Top 10 statistics are recreated each week and are valid from Monday 00:00 until Sunday 24:00 GMT+1.

    + + + + + + + + + + + + + + + + + + + + +
    categories
    climberranks in player statistics
    attackeroff points
    defenderdef points
    robberstolen resources
    +

    At the end of each week the top ten players are awarded a decoration. When you edit your profile a code (e.g. [#123]) is displayed at "medals" which can be inserted where desired. Examples:

    +

    + + + + + diff --git a/Templates/Map/mapview.tpl b/Templates/Map/mapview.tpl new file mode 100644 index 00000000..049537ed --- /dev/null +++ b/Templates/Map/mapview.tpl @@ -0,0 +1,215 @@ +getCoor($_GET['z']);++$requse2; + $y = $currentcoor['y']; + $x = $currentcoor['x']; + $bigmid = $_GET['z']; +} +else if(isset($_POST['xp']) && isset($_POST['yp'])){ + $x = $_POST['xp']; + $y = $_POST['yp']; + $bigmid = $generator->getBaseID($x,$y); +} +else { + $y = $village->coor['y']; + $x = $village->coor['x']; + $bigmid = $village->wid; +} + + +$xm7 = ($x-7) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-6 : $x-7; +$xm3 = ($x-3) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-2 : $x-3; +$xm2 = ($x-2) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-1 : $x-2; +$xm1 = ($x-1) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX : $x-1; +$xp1 = ($x+1) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX : $x+1; +$xp2 = ($x+2) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX+1 : $x+2; +$xp3 = ($x+3) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX+2: $x+3; +$xp7 = ($x+7) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX+6: $x+7; +$ym7 = ($y-7) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX-6 : $y-7; +$ym3 = ($y-3) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX-2 : $y-3; +$ym2 = ($y-2) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX-1 : $y-2; +$ym1 = ($y-1) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX : $y-1; +$yp1 = ($y+1) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX : $y+1; +$yp2 = ($y+2) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX+1 : $y+2; +$yp3 = ($y+3) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX+2: $y+3; +$yp7 = ($y+7) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX+6: $y+7; +$xarray = array($xm3,$xm2,$xm1,$x,$xp1,$xp2,$xp3); +$yarray = array($ym3,$ym2,$ym1,$y,$yp1,$yp2,$yp3); +$maparray = array(); +$xcount = 0; +$maparray = ''; +$maparray2 = ''; +for($i=0; $i<=6; $i++){ + if($xcount != 7){ + $maparray .= '\''.$generator->getBaseID($xarray[$xcount],$yarray[$i]).'\','; + $maparray2 .= $generator->getBaseID($xarray[$xcount],$yarray[$i]).','; + if($i==6){ + $i = -1; + $xcount +=1; + } + } +} + +$maparray = (substr($maparray, 0, -1)); +//echo $maparray; + +$query2 = "SELECT + ".TB_PREFIX."wdata.id AS map_id, + ".TB_PREFIX."wdata.fieldtype AS map_fieldtype, + ".TB_PREFIX."wdata.oasistype AS map_oasis, + ".TB_PREFIX."wdata.x AS map_x, + ".TB_PREFIX."wdata.y AS map_y, + ".TB_PREFIX."wdata.occupied AS map_occupied, + ".TB_PREFIX."wdata.image AS map_image, + + ".TB_PREFIX."odata.conqured AS oasis_conqured, + info_user_oasis.username AS oasis_user, + info_user_oasis.tribe AS oasis_tribe, + info_alliance_oasis.tag AS oasis_alli_name, + + ".TB_PREFIX."vdata.wref AS ville_id, + ".TB_PREFIX."vdata.owner AS ville_user, + ".TB_PREFIX."vdata.name AS ville_name, + ".TB_PREFIX."vdata.capital AS ville_capital, + ".TB_PREFIX."vdata.pop AS ville_pop, + + ".TB_PREFIX."users.id AS user_id, + ".TB_PREFIX."users.username AS user_username, + ".TB_PREFIX."users.tribe AS user_tribe, + ".TB_PREFIX."users.alliance AS user_alliance, + + ".TB_PREFIX."alidata.id AS aliance_id, + ".TB_PREFIX."alidata.tag AS aliance_name + + FROM ((((((".TB_PREFIX."wdata + LEFT JOIN ".TB_PREFIX."vdata ON ".TB_PREFIX."vdata.wref = ".TB_PREFIX."wdata.id ) + LEFT JOIN ".TB_PREFIX."odata ON ".TB_PREFIX."odata.wref = ".TB_PREFIX."wdata.id ) + LEFT JOIN ".TB_PREFIX."users AS info_user_oasis ON info_user_oasis.id = ".TB_PREFIX."odata.owner ) + LEFT JOIN ".TB_PREFIX."alidata AS info_alliance_oasis ON info_alliance_oasis.id = info_user_oasis.alliance ) + LEFT JOIN ".TB_PREFIX."users ON ".TB_PREFIX."users.id = ".TB_PREFIX."vdata.owner ) + LEFT JOIN ".TB_PREFIX."alidata ON ".TB_PREFIX."alidata.id = ".TB_PREFIX."users.alliance ) + where ".TB_PREFIX."wdata.id IN ($maparray) + ORDER BY FIND_IN_SET(".TB_PREFIX."wdata.id,'$maparray2')"; +//echo $query2; +$result2 = mysql_query($query2) or die(mysql_error()); + +$targetalliance = array(); +$neutralarray = array(); +$friendarray = array(); +$enemyarray = array(); +$i=0; +//Load coor array +$coorarray = array("53, 137, 90, 157, 53, 177, 16, 157","89, 117, 126, 137, 89, 157, 52, 137","125, 97, 162, 117, 125, 137, 88, 117","161, 77, 198, 97, 161, 117, 124, 97","197, 57, 234, 77, 197, 97, 160, 77","233, 37, 270, 57, 233, 77, 196, 57","269, 17, 306, 37, 269, 57, 232, 37","90, 157, 127, 177, 90, 197, 53, 177","126, 137, 163, 157, 126, 177, 89, 157","162, 117, 199, 137, 162, 157, 125, 137","198, 97, 235, 117, 198, 137, 161, 117","234, 77, 271, 97, 234, 117, 197, 97","270, 57, 307, 77, 270, 97, 233, 77","306, 37, 343, 57, 306, 77, 269, 57","127, 177, 164, 197, 127, 217, 90, 197","163, 157, 200, 177, 163, 197, 126, 177","199, 137, 236, 157, 199, 177, 162, 157","235, 117, 272, 137, 235, 157, 198, 137","271, 97, 308, 117, 271, 137, 234, 117","307, 77, 344, 97, 307, 117, 270, 97","343, 57, 380, 77, 343, 97, 306, 77","164, 197, 201, 217, 164, 237, 127, 217","200, 177, 237, 197, 200, 217, 163, 197","236, 157, 273, 177, 236, 197, 199, 177","272, 137, 309, 157, 272, 177, 235, 157","308, 117, 345, 137, 308, 157, 271, 137","344, 97, 381, 117, 344, 137, 307, 117","380, 77, 417, 97, 380, 117, 343, 97","201, 217, 238, 237, 201, 257, 164, 237","237, 197, 274, 217, 237, 237, 200, 217","273, 177, 310, 197, 273, 217, 236, 197","309, 157, 346, 177, 309, 197, 272, 177","345, 137, 382, 157, 345, 177, 308, 157","381, 117, 418, 137, 381, 157, 344, 137","417, 97, 454, 117, 417, 137, 380, 117","238, 237, 275, 257, 238, 277, 201, 257","274, 217, 311, 237, 274, 257, 237, 237","310, 197, 347, 217, 310, 237, 273, 217","346, 177, 383, 197, 346, 217, 309, 197","382, 157, 419, 177, 382, 197, 345, 177","418, 137, 455, 157, 418, 177, 381, 157","454, 117, 491, 137, 454, 157, 417, 137","275, 257, 312, 277, 275, 297, 238, 277","311, 237, 348, 257, 311, 277, 274, 257","347, 217, 384, 237, 347, 257, 310, 237","383, 197, 420, 217, 383, 237, 346, 217","419, 177, 456, 197, 419, 217, 382, 197","455, 157, 492, 177, 455, 197, 418, 177","491, 137, 528, 157, 491, 177, 454, 157"); +$yrow = 0; + +$row = 0; +$coorindex = 0; +$map_js =''; +while ($donnees = mysql_fetch_assoc($result2)){ + $image = ($donnees['map_occupied'] == 1 && $donnees['map_fieldtype'] > 0)?(($donnees['ville_user'] == $session->uid)? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b30': 'b20' :'b10' : 'b00') : (($targetalliance != 0)? (in_array($targetalliance,$friendarray)? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b31': 'b21' :'b11' : 'b01') : (in_array($targetalliance,$enemyarray)? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b32': 'b22' :'b12' : 'b02') : (in_array($targetalliance,$neutralarray)? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b35': 'b25' :'b15' : 'b05') : ($targetalliance == $session->alliance? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b33': 'b23' :'b13' : 'b03') : ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b34': 'b24' :'b14' : 'b04'))))) : ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b34': 'b24' :'b14' : 'b04'))) : $donnees['map_image']; + + // Map content + $map_content .= "
    \r"; + //Map create + $map_gen .= "\n"; + + //Javascript map info + if($yrow!=7){ + $map_js .= "[".$donnees['map_x'].",".$donnees['map_y'].",".$donnees['map_fieldtype'].",". ((!empty($donnees['map_oasis'])) ? $donnees['map_oasis'] : 0) .",\"d=".$donnees['map_id']."&c=".$generator->getMapCheck($donnees['map_id'])."\",\"".$image."\""; + if($donnees['map_occupied']){ + if($donnees['map_fieldtype'] != 0){ + $map_js.= ",\"".htmlspecialchars($donnees['ville_name'])."\",\"".htmlspecialchars($donnees['user_username'])."\",\"".$donnees['ville_pop']."\",\"".htmlspecialchars($donnees['aliance_name'])."\",\"".$donnees['user_tribe']."\"]\n"; + } + } + elseif($donnees['map_oasis'] != 0){ + if ($donnees['oasis_conqured'] != 0){ + $map_js.= ",\"\",\"".$donnees['oasis_user']."\",\"-\",\"".$donnees['oasis_alli_name']."\",\"".$donnees['oasis_tribe']."\"]"; + } + else{ + $map_js.="]"; + } + } + else{$map_js .= "]\n";} + + if($i2 == 6 && $yrow !=6){ + $i2 = -1; + $yrow +=1; + $map_js .= "],\n["; + } + else { + if($yrow == 6 && $i2 == 6) {$map_js .= "]\n";} + else {$map_js .= ",";} + } + $regcount += 1; + } + else {$map_js .= "]";} + + if($i == 6 && $row <= 5){ $row += 1; $i = -1;} + $i++; + $i2++; + $coorindex+=1; +} +?> +
    +

    Map(|)

    +
    + +
    +
    ".$xarray[$i]."
    \n"; + echo "
    ".$yarray[$i]."
    \n"; + }?> +
    + + + + + + + + + plus){ + echo 'large map'; + }?> + + + + + + + +
    +
    + x + y +
    + plus != 0){echo " Crop Finder";}?> +
    +
    +
    Details
    Player-
    Population-
    Alliance
    +
    + \ No newline at end of file diff --git a/Templates/Map/mapviewlarge.tpl b/Templates/Map/mapviewlarge.tpl new file mode 100644 index 00000000..97374a9a --- /dev/null +++ b/Templates/Map/mapviewlarge.tpl @@ -0,0 +1,296 @@ +getCoor($_GET['z']); + $y = $currentcoor['y']; + $x = $currentcoor['x']; + $bigmid = $_GET['z']; +} +else if(isset($_POST['xp']) && isset($_POST['yp'])){ + $x = $_POST['xp']; + $y = $_POST['yp']; + $bigmid = $generator->getBaseID($x,$y); +} +else{ + $y = $village->coor['y']; + $x = $village->coor['x']; + $bigmid = $village->wid; +} +$xm7 = ($x-7) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-6 : $x-7; +$xm6 = ($x-6) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-5 : $x-6; +$xm5 = ($x-5) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-4 : $x-5; +$xm4 = ($x-4) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-3 : $x-4; +$xm3 = ($x-3) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-2 : $x-3; +$xm2 = ($x-2) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX-1 : $x-2; +$xm1 = ($x-1) < -WORLD_MAX? $x+WORLD_MAX+WORLD_MAX : $x-1; +$xp1 = ($x+1) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX : $x+1; +$xp2 = ($x+2) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX+1 : $x+2; +$xp3 = ($x+3) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX+2: $x+3; +$xp4 = ($x+4) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX+3 : $x+4; +$xp5 = ($x+5) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX+4 : $x+5; +$xp6 = ($x+6) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX+5: $x+6; +$xp7 = ($x+7) > WORLD_MAX? $x-WORLD_MAX-WORLD_MAX+6: $x+7; + +$ym7 = ($y-7) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX-6 : $y-7; +$ym6 = ($y-6) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX-5 : $y-6; +$ym5 = ($y-5) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX-4 : $y-5; +$ym4 = ($y-4) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX-3 : $y-4; +$ym3 = ($y-3) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX-2 : $y-3; +$ym2 = ($y-2) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX-1 : $y-2; +$ym1 = ($y-1) < -WORLD_MAX? $y+WORLD_MAX+WORLD_MAX : $y-1; +$yp1 = ($y+1) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX : $y+1; +$yp2 = ($y+2) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX+1 : $y+2; +$yp3 = ($y+3) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX+2: $y+3; +$yp4 = ($y+4) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX+3 : $y+4; +$yp5 = ($y+5) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX+4: $y+5; +$yp6 = ($y+6) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX+5: $y+6; +$yp7 = ($y+7) > WORLD_MAX? $y-WORLD_MAX-WORLD_MAX+6: $y+7; + +$xarray = array($xm6,$xm5,$xm4,$xm3,$xm2,$xm1,$x,$xp1,$xp2,$xp3,$xp4,$xp5,$xp6); +$yarray = array($ym6,$ym5,$ym4,$ym3,$ym2,$ym1,$y,$yp1,$yp2,$yp3,$yp4,$yp5,$yp6); +$maparray = array(); +$xcount = 0; +$maparray = ''; +$maparray2 = ''; +for($i=0; $i<=12; $i++){ + if($xcount != 13){ + $maparray .= '\''.$generator->getBaseID($xarray[$xcount],$yarray[$i]).'\','; + $maparray2 .= $generator->getBaseID($xarray[$xcount],$yarray[$i]).','; + if($i==12){ + $i = -1; + $xcount +=1; + } + } +} + +$maparray = (substr($maparray, 0, -1)); +$maparray2 = (substr($maparray2, 0, -1)); +//echo $maparray; + +$query2 = "SELECT + ".TB_PREFIX."wdata.id AS map_id, + ".TB_PREFIX."wdata.fieldtype AS map_fieldtype, + ".TB_PREFIX."wdata.oasistype AS map_oasis, + ".TB_PREFIX."wdata.x AS map_x, + ".TB_PREFIX."wdata.y AS map_y, + ".TB_PREFIX."wdata.occupied AS map_occupied, + ".TB_PREFIX."wdata.image AS map_image, + + ".TB_PREFIX."odata.conqured AS oasis_conqured, + info_user_oasis.username AS oasis_user, + info_user_oasis.tribe AS oasis_tribe, + info_alliance_oasis.tag AS oasis_alli_name, + + ".TB_PREFIX."vdata.wref AS ville_id, + ".TB_PREFIX."vdata.owner AS ville_user, + ".TB_PREFIX."vdata.name AS ville_name, + ".TB_PREFIX."vdata.capital AS ville_capital, + ".TB_PREFIX."vdata.pop AS ville_pop, + + ".TB_PREFIX."users.id AS user_id, + ".TB_PREFIX."users.username AS user_username, + ".TB_PREFIX."users.tribe AS user_tribe, + ".TB_PREFIX."users.alliance AS user_alliance, + + ".TB_PREFIX."alidata.id AS aliance_id, + ".TB_PREFIX."alidata.tag AS aliance_name + + FROM ((((((".TB_PREFIX."wdata + LEFT JOIN ".TB_PREFIX."vdata ON ".TB_PREFIX."vdata.wref = ".TB_PREFIX."wdata.id ) + LEFT JOIN ".TB_PREFIX."odata ON ".TB_PREFIX."odata.wref = ".TB_PREFIX."wdata.id ) + LEFT JOIN ".TB_PREFIX."users AS info_user_oasis ON info_user_oasis.id = ".TB_PREFIX."odata.owner ) + LEFT JOIN ".TB_PREFIX."alidata AS info_alliance_oasis ON info_alliance_oasis.id = info_user_oasis.alliance ) + LEFT JOIN ".TB_PREFIX."users ON ".TB_PREFIX."users.id = ".TB_PREFIX."vdata.owner ) + LEFT JOIN ".TB_PREFIX."alidata ON ".TB_PREFIX."alidata.id = ".TB_PREFIX."users.alliance ) + where ".TB_PREFIX."wdata.id IN ($maparray) + ORDER BY FIND_IN_SET(".TB_PREFIX."wdata.id,'$maparray2')"; +//echo $query2; +$result2 = mysql_query($query2) or die(mysql_error()); + +$targetalliance = array(); +$neutralarray = array(); +$friendarray = array(); +$enemyarray = array(); +$i=0; +$i2=0; +$yrow = 0; +$row = 0; +$coorindex = 0; +$map_js =''; +$coorarray = array( +"48, 253, 85, 273, 48, 293, 11, 273" +,"84, 233, 121, 253, 84, 273, 47, 253" +,"120, 213, 157, 233, 120, 253, 83, 233" +,"156, 193, 193, 213, 156, 233, 119, 213" +,"192, 173, 229, 193, 192, 213, 155, 193" +,"228, 153, 265, 173, 228, 193, 191, 173" +,"264, 133, 301, 153, 264, 173, 227, 153" +,"300, 113, 337, 133, 300, 153, 263, 133" +,"336, 93, 373, 113, 336, 133, 299, 113" +,"372, 73, 409, 93, 372, 113, 335, 93" +,"408, 53, 445, 73, 408, 93, 371, 73" +,"444, 33, 481, 53, 444, 73, 407, 53" +,"480, 13, 517, 33, 480, 53, 443, 33" +,"85, 273, 122, 293, 85, 313, 48, 293" +,"121, 253, 158, 273, 121, 293, 84, 273" +,"157, 233, 194, 253, 157, 273, 120, 253" +,"193, 213, 230, 233, 193, 253, 156, 233" +,"229, 193, 266, 213, 229, 233, 192, 213" +,"265, 173, 302, 193, 265, 213, 228, 193" +,"301, 153, 338, 173, 301, 193, 264, 173" +,"337, 133, 374, 153, 337, 173, 300, 153" +,"373, 113, 410, 133, 373, 153, 336, 133" +,"409, 93, 446, 113, 409, 133, 372, 113" +,"445, 73, 482, 93, 445, 113, 408, 93" +,"481, 53, 518, 73, 481, 93, 444, 73" +,"517, 33, 554, 53, 517, 73, 480, 53" +,"122, 293, 159, 313, 122, 333, 85, 313" +,"158, 273, 195, 293, 158, 313, 121, 293" +,"194, 253, 231, 273, 194, 293, 157, 273" +,"230, 233, 267, 253, 230, 273, 193, 253" +,"266, 213, 303, 233, 266, 253, 229, 233" +,"302, 193, 339, 213, 302, 233, 265, 213" +,"338, 173, 375, 193, 338, 213, 301, 193" +,"374, 153, 411, 173, 374, 193, 337, 173" +,"410, 133, 447, 153, 410, 173, 373, 153" +,"446, 113, 483, 133, 446, 153, 409, 133" +,"482, 93, 519, 113, 482, 133, 445, 113" +,"518, 73, 555, 93, 518, 113, 481, 93" +,"554, 53, 591, 73, 554, 93, 517, 73" +,"159, 313, 196, 333, 159, 353, 122, 333" +,"195, 293, 232, 313, 195, 333, 158, 313" +,"231, 273, 268, 293, 231, 313, 194, 293" +,"267, 253, 304, 273, 267, 293, 230, 273" +,"303, 233, 340, 253, 303, 273, 266, 253" +,"339, 213, 376, 233, 339, 253, 302, 233" +,"375, 193, 412, 213, 375, 233, 338, 213" +,"411, 173, 448, 193, 411, 213, 374, 193" +,"447, 153, 484, 173, 447, 193, 410, 173" +,"483, 133, 520, 153, 483, 173, 446, 153" +,"519, 113, 556, 133, 519, 153, 482, 133" +,"555, 93, 592, 113, 555, 133, 518, 113" +,"591, 73, 628, 93, 591, 113, 554, 93" +,"196, 333, 233, 353, 196, 373, 159, 353","232, 313, 269, 333, 232, 353, 195, 333","268, 293, 305, 313, 268, 333, 231, 313","304, 273, 341, 293, 304, 313, 267, 293","340, 253, 377, 273, 340, 293, 303, 273","376, 233, 413, 253, 376, 273, 339, 253","412, 213, 449, 233, 412, 253, 375, 233","448, 193, 485, 213, 448, 233, 411, 213","484, 173, 521, 193, 484, 213, 447, 193","520, 153, 557, 173, 520, 193, 483, 173","556, 133, 593, 153, 556, 173, 519, 153","592, 113, 629, 133, 592, 153, 555, 133","628, 93, 665, 113, 628, 133, 591, 113" +,"233, 353, 270, 373, 233, 393, 196, 373","269, 333, 306, 353, 269, 373, 232, 353","305, 313, 342, 333, 305, 353, 268, 333","341, 293, 378, 313, 341, 333, 304, 313","377, 273, 414, 293, 377, 313, 340, 293","413, 253, 450, 273, 413, 293, 376, 273","449, 233, 486, 253, 449, 273, 412, 253","485, 213, 522, 233, 485, 253, 448, 233","521, 193, 558, 213, 521, 233, 484, 213","557, 173, 594, 193, 557, 213, 520, 193","593, 153, 630, 173, 593, 193, 556, 173","629, 133, 666, 153, 629, 173, 592, 153","665, 113, 702, 133, 665, 153, 628, 133" +,"270, 373, 307, 393, 270, 413, 233, 393","306, 353, 343, 373, 306, 393, 269, 373","342, 333, 379, 353, 342, 373, 305, 353","378, 313, 415, 333, 378, 353, 341, 333","414, 293, 451, 313, 414, 333, 377, 313","450, 273, 487, 293, 450, 313, 413, 293","486, 253, 523, 273, 486, 293, 449, 273","522, 233, 559, 253, 522, 273, 485, 253","558, 213, 595, 233, 558, 253, 521, 233","594, 193, 631, 213, 594, 233, 557, 213","630, 173, 667, 193, 630, 213, 593, 193","666, 153, 703, 173, 666, 193, 629, 173","702, 133, 739, 153, 702, 173, 665, 153" +,"307, 393, 344, 413, 307, 433, 270, 413","343, 373, 380, 393, 343, 413, 306, 393","379, 353, 416, 373, 379, 393, 342, 373","415, 333, 452, 353, 415, 373, 378, 353","451, 313, 488, 333, 451, 353, 414, 333","487, 293, 524, 313, 487, 333, 450, 313","523, 273, 560, 293, 523, 313, 486, 293","559, 253, 596, 273, 559, 293, 522, 273","595, 233, 632, 253, 595, 273, 558, 253","631, 213, 668, 233, 631, 253, 594, 233","667, 193, 704, 213, 667, 233, 630, 213","703, 173, 740, 193, 703, 213, 666, 193","739, 153, 776, 173, 739, 193, 702, 173" +,"344, 413, 381, 433, 344, 453, 307, 433","380, 393, 417, 413, 380, 433, 343, 413","416, 373, 453, 393, 416, 413, 379, 393","452, 353, 489, 373, 452, 393, 415, 373","488, 333, 525, 353, 488, 373, 451, 353","524, 313, 561, 333, 524, 353, 487, 333","560, 293, 597, 313, 560, 333, 523, 313","596, 273, 633, 293, 596, 313, 559, 293","632, 253, 669, 273, 632, 293, 595, 273","668, 233, 705, 253, 668, 273, 631, 253","668, 233, 705, 253, 668, 273, 631, 253","740, 193, 777, 213, 740, 233, 703, 213","776, 173, 813, 193, 776, 213, 739, 193" +,"381, 433, 418, 453, 381, 473, 344, 453","417, 413, 454, 433, 417, 453, 380, 433","453, 393, 490, 413, 453, 433, 416, 413","489, 373, 526, 393, 489, 413, 452, 393","525, 353, 562, 373, 525, 393, 488, 373","561, 333, 598, 353, 561, 373, 524, 353","597, 313, 634, 333, 597, 353, 560, 333","633, 293, 670, 313, 633, 333, 596, 313","669, 273, 706, 293, 669, 313, 632, 293","705, 253, 742, 273, 705, 293, 668, 273","741, 233, 778, 253, 741, 273, 704, 253","777, 213, 814, 233, 777, 253, 740, 233","813, 193, 850, 213, 813, 233, 776, 213" +,"418, 453, 455, 473, 418, 493, 381, 473","454, 433, 491, 453, 454, 473, 417, 453","490, 413, 527, 433, 490, 453, 453, 433","526, 393, 563, 413, 526, 433, 489, 413","562, 373, 599, 393, 562, 413, 525, 393","598, 353, 635, 373, 598, 393, 561, 373","634, 333, 671, 353, 634, 373, 597, 353","670, 313, 707, 333, 670, 353, 633, 333","706, 293, 743, 313, 706, 333, 669, 313","742, 273, 779, 293, 742, 313, 705, 293","778, 253, 815, 273, 778, 293, 741, 273","814, 233, 851, 253, 814, 273, 777, 253","850, 213, 887, 233, 850, 253, 813, 233" +,"455, 473, 492, 493, 455, 513, 418, 493","491, 453, 528, 473, 491, 493, 454, 473","527, 433, 564, 453, 527, 473, 490, 453","563, 413, 600, 433, 563, 453, 526, 433","599, 393, 636, 413, 599, 433, 562, 413","635, 373, 672, 393, 635, 413, 598, 393","671, 353, 708, 373, 671, 393, 634, 373","707, 333, 744, 353, 707, 373, 670, 353","743, 313, 780, 333, 743, 353, 706, 333","779, 293, 816, 313, 779, 333, 742, 313","815, 273, 852, 293, 815, 313, 778, 293","851, 253, 888, 273, 851, 293, 814, 273","887, 233, 924, 253, 887, 273, 850, 253" +,"492, 493, 529, 513, 492, 533, 455, 513","528, 473, 565, 493, 528, 513, 491, 493","564, 453, 601, 473, 564, 493, 527, 473","600, 433, 637, 453, 600, 473, 563, 453","636, 413, 673, 433, 636, 453, 599, 433","672, 393, 709, 413, 672, 433, 635, 413","708, 373, 745, 393, 708, 413, 671, 393","744, 353, 781, 373, 744, 393, 707, 373","780, 333, 817, 353, 780, 373, 743, 353","816, 313, 853, 333, 816, 353, 779, 333","852, 293, 889, 313, 852, 333, 815, 313","852, 293, 889, 313, 852, 333, 815, 313","924, 253, 961, 273, 924, 293, 887, 273" +); + +while ($donnees = mysql_fetch_assoc($result2)){ + $image = ($donnees['map_occupied'] == 1 && $donnees['map_fieldtype'] > 0)?(($donnees['ville_user'] == $session->uid)? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b30': 'b20' :'b10' : 'b00') : (($targetalliance != 0)? (in_array($targetalliance,$friendarray)? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b31': 'b21' :'b11' : 'b01') : (in_array($targetalliance,$enemyarray)? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b32': 'b22' :'b12' : 'b02') : (in_array($targetalliance,$neutralarray)? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b35': 'b25' :'b15' : 'b05') : ($targetalliance == $session->alliance? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b33': 'b23' :'b13' : 'b03') : ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b34': 'b24' :'b14' : 'b04'))))) : ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b34': 'b24' :'b14' : 'b04'))) : $donnees['map_image']; + + // Map content + $map_content .= "
    \r"; + //Map create + $map_gen .= "\n"; + + //Javascript map info + if($yrow!=13){ + $map_js .= "[".$donnees['map_x'].",".$donnees['map_y'].",".$donnees['map_fieldtype'].",". ((!empty($donnees['map_oasis'])) ? $donnees['map_oasis'] : 0) .",\"d=".$donnees['map_id']."&c=".$generator->getMapCheck($donnees['map_id'])."\",\"".$image."\""; + if($donnees['map_occupied']){ + if($donnees['map_fieldtype'] != 0){ + $map_js.= ",\"".htmlspecialchars($donnees['ville_name'])."\",\"".htmlspecialchars($donnees['user_username'])."\",\"".$donnees['ville_pop']."\",\"".htmlspecialchars($donnees['aliance_name'])."\",\"".$donnees['user_tribe']."\"]\n"; + } + } + elseif($donnees['map_oasis'] != 0){ + if ($donnees['oasis_conqured'] != 0){ + $map_js.= ",\"\",\"".$donnees['oasis_user']."\",\"-\",\"".$donnees['oasis_alli_name']."\",\"".$donnees['oasis_tribe']."\"]"; + } + else{ + $map_js.="]"; + } + } + else{$map_js .= "]\n";} + + if($i2 == 12 && $yrow !=12){ + $i2 = -1; + $yrow +=1; + $map_js .= "],\n["; + } + else { + if($yrow == 12 && $i2 == 12) {$map_js .= "]\n";} + else {$map_js .= ",";} + } + $regcount += 1; + } + else {$map_js .= "]";} + + if($i == 12 && $row <= 11){ $row += 1; $i = -1;} + $i++; + $i2++; + $coorindex+=1; +} +?> + + +
    +
    +
    +
    close Map +

    Map(|)

    +
    + +
    + +
    +
    ".$xarray[$i]."
    \n"; + echo "
    ".$yarray[$i]."
    \n"; + }?> +
    + + + + + + + + + + + + + + + + +
    +
    + x + y + +
    +
    +
    Details
    Player-
    Population-
    Alliance-
    +
    +
    +
    +
    + \ No newline at end of file diff --git a/Templates/Map/vilview.tpl b/Templates/Map/vilview.tpl new file mode 100644 index 00000000..b606675c --- /dev/null +++ b/Templates/Map/vilview.tpl @@ -0,0 +1,347 @@ +
    +getMInfo($_GET['d']); +?> +

    +(capital)
    "; } ?> + +<?php 
+switch($basearray['fieldtype']) {
+case 1:
+$tt =  25% ".LUMBER.""; +break; +case 3: +$tt = "+25% lumber and +25% crop per hour\" title=\"+25% lumber and +25% crop per hour"; +$ttt = " 25% ".LUMBER." + 25% ".CROP.""; +break; +case 4: +case 5: +$tt = "+25% clay per hour\" title=\"+25% clay per hour"; +$ttt = " 25% ".CLAY.""; +break; +case 6: +$tt = "+25% clay and +25% crop per hour\" title=\"+25% clay and +25% crop per hour"; +$ttt = " 25% ".CLAY." + 25% ".CROP.""; +break; +case 7: +case 8: +$tt = "+25% iron per hour\" title=\"+25% iron per hour"; +$ttt = " 25% ".IRON.""; +break; +case 9: +$tt = "+25% iron and +25% crop per hour\" title=\"+25% iron and +25% crop per hour"; +$ttt = " 25% ".IRON." + 25% ".CROP.""; +break; +case 10: +case 11: +$tt = "+25% crop per hour\" title=\"+25% crop per hour"; +$ttt = " 25% ".CROP.""; +break; +case 12: +$tt = "+50% crop per hour\" title=\"+50% crop per hour"; +$ttt = " 50% ".CROP.""; +break; +} +break; +} +echo $tt."\""; +$landd = explode("-",$tt);?> /> + +
    + + + + + + + + +
    Bonus:
    + + + + + + + getUnit($_GET['d']); + $unarray = array(31=>"Rat","Spider","Snake","Bat","Wild Boar","Wolf","Bear","Crocodile","Tiger","Elephant"); + $a = 0; + for ($i = 31; $i <= 40; $i++) { + if($unit['u'.$i]){ + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + }else{ + $a = $a+1; + } + } + if($a == 10){ + echo ''; + } + + + ?> + +
    Troops:
    '.$unarray[$i].''.$unit['u'.$i].''.$unarray[$i].'
    no troops
    + + + + + + + uid == $database->getVillage($_GET['d'])){ + $limit = "ntype=0 and ntype=1 and ntype=2 and ntype=3 and ntype=4 and ntype=5 and ntype=6 and ntype=7"; +}else{ + $limit = "ntype!=8 and ntype!=9 and ntype!=10 and ntype!=11 and ntype!=12 and ntype!=13 and ntype!=14"; + } +$toWref = $_GET['d']; +$result = mysql_query("SELECT * FROM ".TB_PREFIX."ndata WHERE $limit AND ally = ".$session->alliance." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); +$query = mysql_num_rows($result); +if($query != 0){ +while($row = mysql_fetch_array($result)){ + $dataarray = explode(",",$row['data']); + $type = $row['ntype']; + echo ""; +} +}else{ ?> + + + + + + +
    Reports:
    "; + echo " "; + $date = $generator->procMtime($row['time']); + echo "".$date[0]." ".date('H:i',$row['time'])." "; + echo "
    There is no +
    information available.
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Land distribution
    LumberWoodcutters
    ClayClay Pits
    IronIron Mines
    CropCroplands
    + + + + + + getUserArray($basearray['owner'],1); ?> + + + + + + + -'; + } else echo ' + '; ?> + + + + + + + + + +
     (|)
    Tribe
    Alliance'.$database->getUserAlliance($basearray['owner']).'
    OwnergetUserField($basearray['owner'],'username',0); ?>
    Population
    + + + + + + + uid == $database->getVillage($_GET['d'])){ + $limit = "ntype=0 and ntype=4 and ntype=5 and ntype=6 and ntype=7"; +}else{ + $limit = "ntype!=8 and ntype!=9 and ntype!=10 and ntype!=11 and ntype!=12 and ntype!=13 and ntype!=14"; + } +$toWref = $_GET['d']; +$result = mysql_query("SELECT * FROM ".TB_PREFIX."ndata WHERE $limit AND ally = ".$session->alliance." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); +$query = mysql_num_rows($result); +if($query != 0){ +while($row = mysql_fetch_array($result)){ + $dataarray = explode(",",$row['data']); + $type = $row['ntype']; + echo ""; +} +}else{ ?> + + + + + + +
    Reports:
    "; + echo " "; + $date = $generator->procMtime($row['time']); + echo "".$date[0]." ".date('H:i',$row['time'])." "; + echo "
    There is no +
    information available.
    + +
    + + + + + + + + + + + + + + + + + + + + + + +
    Options
    » Centre map.
    getProfileVillages($session->uid)); + $need_cps = ${'cp'.$mode}[$total+1]; + $cps = floor($database->getUserField($session->uid, 'cp',0)); + + if($cps >= $need_cps) { + $enough_cp = true; + } else { + $enough_cp = false; + } + + $otext = ($basearray['occupied'] == 1)? "occupied" : "unoccupied"; + if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp) { + $test = "» Found new village."; + } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { + $test = "» Found new village. ($cps/$need_cps culture points)"; + } else { + $test = "» Found new village. (".$village->unitarray['u'.$session->tribe.'0']."/3 settlers available)"; + } + + echo ($basearray['fieldtype']==0)? + ($village->resarray['f39']==0)? + ($basearray['owner'] == $session->uid)? + + + "» Raid $otext oasis. (build a rally point)" : + "» Raid $otext oasis. (build a rally point)" : + + + "» Raid $otext oasis." : + "$test" + ?> +
    + resarray['f39']? "» Send troops." : "» Send troops. (build a rally point)"; + } else { + echo "» Send troops. (beginners protection)"; + } + ?> +
    getTypeLevel(17)? "getTypeField(17) . "\">» Send merchant(s)." : "» Send merchant(s). (build marketplace)"; ?>
    + + diff --git a/Templates/Message/archive.tpl b/Templates/Message/archive.tpl new file mode 100644 index 00000000..4881aa8d --- /dev/null +++ b/Templates/Message/archive.tpl @@ -0,0 +1,69 @@ +
    +

    Messages

    + +
    + + + + + + + + + archived) >= $i) { + if($message->archived[$i-1]['owner'] == 0) { + echo ""; + } + else { + echo ""; + } + echo " + + "; + } + $name++; + } + if(count($message->archived) == 0) { + echo ""; + } + ?> +
    SubjectSenderSent
    + + + archived) < 10) { + echo "«»"; + } + else if (!isset($_GET['s']) && count($message->archived) > 10) { + echo "«»"; + } + else if(isset($_GET['s']) && count($message->archived) > $_GET['s']) { + if(count($message->archived) > ($_GET['s']+10) && $_GET['s']-10 < count($message->archived) && $_GET['s'] != 0) { + echo "«»"; + } + else if(count($message->archived) > $_GET['s']+10) { + echo "«»"; + } + else { + echo "«»"; + } + } + ?>
    archived[$i-1]['id']."\" />archived[$i-1]['id']."\">".$message->archived[$i-1]['topic']." "; + if($message->archived[$i-1]['viewed'] == 0) { + echo "(new)"; + } + $date = $generator->procMtime($message->archived[$i-1]['time']); + echo "archived[$i-1]['owner']."\">".$database->getUserField($message->archived[$i-1]['owner'],'username',0)."".$date[0]." ".$date[1]."
    There are no messages available in the archive.
    +
    +
    diff --git a/Templates/Message/inbox.tpl b/Templates/Message/inbox.tpl new file mode 100644 index 00000000..49311834 --- /dev/null +++ b/Templates/Message/inbox.tpl @@ -0,0 +1,84 @@ +
    +

    Messages

    + +
    + + + + + + + + inbox) >= $i) { + if($message->inbox[$i-1]['owner'] <= 1) { + echo ""; + } + else { + echo ""; + } + echo " + + "; + } + else { + echo " + "; + } + } + $name++; + } + if(count($message->inbox) == 0) { + echo ""; + } + ?> +
    SubjectSenderSent
    +username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + $date2=strtotime("NOW"); + if ($golds['plus'] <= $date2) { ?> + + + + + + plus) { echo ""; } ?> + + inbox) < 10) { + echo "«»"; + } + else if (!isset($_GET['s']) && count($message->inbox) > 10) { + echo "«»"; + } + else if(isset($_GET['s']) && count($message->inbox) > $_GET['s']) { + if(count($message->inbox) > ($_GET['s']+10) && $_GET['s']-10 < count($message->inbox) && $_GET['s'] != 0) { + echo "«»"; + } + else if(count($message->inbox) > $_GET['s']+10) { + echo "«»"; + } + else { + echo "«»"; + } + } + ?>
    inbox[$i-1]['id']."\" />inbox[$i-1]['id']."\">".$message->inbox[$i-1]['topic']." "; + if($message->inbox[$i-1]['viewed'] == 0) { + echo "(new)"; + } + $date = $generator->procMtime($message->inbox[$i-1]['time']); + if($message->inbox[$i-1]['owner'] <= 1) { + echo "".$database->getUserField($message->inbox[$i-1]['owner'],'username',0)."".$date[0]." ".$date[1]."
    inbox[$i-1]['owner']."\">".$database->getUserField($message->inbox[$i-1]['owner'],'username',0)."".$date[0]." ".$date[1]."
    There are no messages available.
    +
    +
    \ No newline at end of file diff --git a/Templates/Message/menu.tpl b/Templates/Message/menu.tpl new file mode 100644 index 00000000..9b92ea4b --- /dev/null +++ b/Templates/Message/menu.tpl @@ -0,0 +1,13 @@ +
    + >Inbox + | >Write + | >Sent + plus) { + echo " | Archive | Notes"; + } + ?> +
    \ No newline at end of file diff --git a/Templates/Message/notes.tpl b/Templates/Message/notes.tpl new file mode 100644 index 00000000..0da607e1 --- /dev/null +++ b/Templates/Message/notes.tpl @@ -0,0 +1,15 @@ +
    +

    Messages

    + +
    +
    + + +


    +  

    +
    +
    + +
    diff --git a/Templates/Message/read.tpl b/Templates/Message/read.tpl new file mode 100644 index 00000000..a7067fe5 --- /dev/null +++ b/Templates/Message/read.tpl @@ -0,0 +1,37 @@ +reading['message']; +include("GameEngine/BBCode.php"); +?> +
    +

    Messages

    + +
    + +
    +
    + +
    +
    getUserField($message->reading['owner'],"username",0); ?>
    +
    reading['topic']; ?>
    +
    +
    +
    procMtime($message->reading['time']);echo $date[0]; ?>
    +
    +
    +
    +
    +
    + + + +

    + +

    +
    +
    +
    + + +
    diff --git a/Templates/Message/sent.tpl b/Templates/Message/sent.tpl new file mode 100644 index 00000000..3803977a --- /dev/null +++ b/Templates/Message/sent.tpl @@ -0,0 +1,85 @@ + +
    +

    Messages

    + +
    + + + + + + + + + + + sent) >= $i) { + if($message->sent[$i-1]['target'] == 0) { + echo ""; + } + else { + echo ""; + } + echo " + + "; + } + $name++; + } + if(count($message->sent) == 0) { + echo ""; + } + ?> +
    SubjectRecipientSent
    username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + $date2=strtotime("NOW"); + if ($golds['plus'] <= $date2) { ?> + + + sent) < 10) { + echo "«»"; + } + else if (!isset($_GET['s']) && count($message->sent) > 10) { + echo "«»"; + } + else if(isset($_GET['s']) && count($message->sent) > $_GET['s']) { + if(count($message->sent) > ($_GET['s']+10) && $_GET['s']-10 < count($message->sent) && $_GET['s'] != 0) { + echo "«»"; + } + else if(count($message->sent) > $_GET['s']+10) { + echo "«»"; + } + else { + echo "«»"; + } + } + ?>
    sent[$i-1]['id']."\" />sent[$i-1]['id']."\">".$message->sent[$i-1]['topic']." "; + if($message->sent[$i-1]['viewed'] == 0) { + echo "(unread)"; + } + $date = $generator->procMtime($message->sent[$i-1]['time']); + echo "sent[$i-1]['target']."\">".$database->getUserField($message->sent[$i-1]['target'],'username',0)."".$date[0]." ".$date[1]."
    There are no sent messages available.
    +
    +
    diff --git a/Templates/Message/write.tpl b/Templates/Message/write.tpl new file mode 100644 index 00000000..b4bdaa70 --- /dev/null +++ b/Templates/Message/write.tpl @@ -0,0 +1,197 @@ +
    +

    Messages

    + + +
    +
    +
    + + + +
    +
    +reply['topic'],$c)) + { + $c = $c[1]+1; + echo $message->reply['topic'] = preg_replace("/re[0-9]+/i","re".($c),$message->reply['topic']); +}else{ +echo "re1:".$message->reply['topic']; }} ?>" maxlength="35" onkeyup="copyElement('subject')" tabindex=2/> +
    +Addressbook +
    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    LumberClayIronCrop
    +
    *aha**angry**cool**cry**cute**depressed**eek**ehem**emotional*:D:)*hit**hmm**hmpf**hrhr**huh**lazy**love**nocomment**noemotion**notamused**pout**redface**rolleyes*:(*shy**smile**tongue**veryangry**veryhappy*;)
    +
    LegionnairePraetorianImperianEquites LegatiEquites ImperatorisEquites CaesarisBattering RamFire CatapultSenatorSettlerClubswingerSpearmanAxemanScoutPaladinTeutonic KnightRamCatapultChiefSettlerPhalanxSwordsmanPathfinderTheutates ThunderDruidriderHaeduanRamTrebuchetChieftainSettlerRatSpiderSnakeBatWild BoarWolfBearCrocodileTigerElephantPikemanThorned WarriorGuardsmanBirds Of PreyAxeriderNatarian KnightWar ElephantBallistaNatarian EmperorSettlerHero
    +
    +
    +
    + + +
    +
    + + +

    + + +

    +
    +

    Addressbook

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    + + + +
    +

    + +

    +
    close adressbook
    +
    +
    +
    +
    diff --git a/Templates/News/home/home1.tpl b/Templates/News/home/home1.tpl new file mode 100644 index 00000000..f2a4b248 --- /dev/null +++ b/Templates/News/home/home1.tpl @@ -0,0 +1,2 @@ +
    TravianX

    Version: v4.8.5
    Major Changes: New index.php, chief training fixed, graphic packs now work but only for outside links. See more in readme file!
    Minor Changes: Admin panel updated a bit, config updated, installation system updated
    Script Price: FREE!

    Released by: Dzoki
    Visit: RageZone.com
    +
    \ No newline at end of file diff --git a/Templates/News/home/home2.tpl b/Templates/News/home/home2.tpl new file mode 100644 index 00000000..6336d305 --- /dev/null +++ b/Templates/News/home/home2.tpl @@ -0,0 +1 @@ +
    TravianX

    Version: v4.8.5
    Major Changes: New index.php, chief training fixed, graphic packs now work but only for outside links. See more in readme file!
    Minor Changes: Admin panel updated a bit, config updated, installation system updated
    Script Price: FREE!

    Released by: Dzoki
    Visit: RageZone.com
    \ No newline at end of file diff --git a/Templates/News/home/home3.tpl b/Templates/News/home/home3.tpl new file mode 100644 index 00000000..ebf6478e --- /dev/null +++ b/Templates/News/home/home3.tpl @@ -0,0 +1,12 @@ +
    + + +
    TravianX

    + Version: v4.8.5
    + Major Changes: New index.php, chief training fixed, graphic packs now work but only for outside links. See more in readme file!
    + Minor Changes: Admin panel updated a bit, config updated, installation system updated
    + Script Price: FREE!

    +
    Released by: Dzoki
    + Visit: RageZone.com
    + +
    \ No newline at end of file diff --git a/Templates/News/newsbox1.tpl b/Templates/News/newsbox1.tpl new file mode 100644 index 00000000..d1e104b0 --- /dev/null +++ b/Templates/News/newsbox1.tpl @@ -0,0 +1,10 @@ +
    newsbox 1
    +
    +
    TravianX

    + Version: v4.8.5
    + Major Changes: New index.php, chief training fixed, graphic packs now work but only for outside links. See more in readme file!
    + Minor Changes: Admin panel updated a bit, config updated, installation system updated
    + Script Price: FREE!

    +
    Released by: Dzoki
    + Visit: RageZone.com
    +
    diff --git a/Templates/News/newsbox2.tpl b/Templates/News/newsbox2.tpl new file mode 100644 index 00000000..ca303b39 --- /dev/null +++ b/Templates/News/newsbox2.tpl @@ -0,0 +1,13 @@ +
    newsbox 2
    +
    + + +
    TravianX

    + Version: v4.8.5
    + Major Changes: New index.php, chief training fixed, graphic packs now work but only for outside links. See more in readme file!
    + Minor Changes: Admin panel updated a bit, config updated, installation system updated
    + Script Price: FREE!

    +
    Released by: Dzoki
    + Visit: RageZone.com
    + +
    \ No newline at end of file diff --git a/Templates/News/newsbox3.tpl b/Templates/News/newsbox3.tpl new file mode 100644 index 00000000..dbbd89b3 --- /dev/null +++ b/Templates/News/newsbox3.tpl @@ -0,0 +1,2 @@ +
    newsbox 2
    +
    TravianX

    Version: v4.8.5
    Major Changes: New index.php, chief training fixed, graphic packs now work but only for outside links. See more in readme file!
    Minor Changes: Admin panel updated a bit, config updated, installation system updated
    Script Price: FREE!

    Released by: Dzoki
    Visit: RageZone.com
    \ No newline at end of file diff --git a/Templates/Notice/0.tpl b/Templates/Notice/0.tpl new file mode 100644 index 00000000..b61bfc9f --- /dev/null +++ b/Templates/Notice/0.tpl @@ -0,0 +1,285 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} + +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/1.tpl b/Templates/Notice/1.tpl new file mode 100644 index 00000000..b61bfc9f --- /dev/null +++ b/Templates/Notice/1.tpl @@ -0,0 +1,285 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} + +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/10.tpl b/Templates/Notice/10.tpl new file mode 100644 index 00000000..b4e261bf --- /dev/null +++ b/Templates/Notice/10.tpl @@ -0,0 +1,33 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + +
     ">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
    Resources + Wood | + Clay | + Iron | + Crop +
    diff --git a/Templates/Notice/11.tpl b/Templates/Notice/11.tpl new file mode 100644 index 00000000..b4e261bf --- /dev/null +++ b/Templates/Notice/11.tpl @@ -0,0 +1,33 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + +
     ">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
    Resources + Wood | + Clay | + Iron | + Crop +
    diff --git a/Templates/Notice/12.tpl b/Templates/Notice/12.tpl new file mode 100644 index 00000000..b4e261bf --- /dev/null +++ b/Templates/Notice/12.tpl @@ -0,0 +1,33 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + +
     ">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
    Resources + Wood | + Clay | + Iron | + Crop +
    diff --git a/Templates/Notice/13.tpl b/Templates/Notice/13.tpl new file mode 100644 index 00000000..b4e261bf --- /dev/null +++ b/Templates/Notice/13.tpl @@ -0,0 +1,33 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + +
     ">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
    Resources + Wood | + Clay | + Iron | + Crop +
    diff --git a/Templates/Notice/14.tpl b/Templates/Notice/14.tpl new file mode 100644 index 00000000..b4e261bf --- /dev/null +++ b/Templates/Notice/14.tpl @@ -0,0 +1,33 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + +
     ">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
    Resources + Wood | + Clay | + Iron | + Crop +
    diff --git a/Templates/Notice/15.tpl b/Templates/Notice/15.tpl new file mode 100644 index 00000000..fb1c7aaa --- /dev/null +++ b/Templates/Notice/15.tpl @@ -0,0 +1,57 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=4;$i<=13;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=14;$i<=23;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> + +
    Defender">getUserField($dataarray[0],"username",0); ?> in the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    +
    \ No newline at end of file diff --git a/Templates/Notice/2.tpl b/Templates/Notice/2.tpl new file mode 100644 index 00000000..b61bfc9f --- /dev/null +++ b/Templates/Notice/2.tpl @@ -0,0 +1,285 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} + +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/3.tpl b/Templates/Notice/3.tpl new file mode 100644 index 00000000..dff8a9e5 --- /dev/null +++ b/Templates/Notice/3.tpl @@ -0,0 +1,261 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} + +echo ""; ?> +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops??
    Casualties??
    + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops??
    Casualties??
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops??
    Casualties??
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops??
    Casualties??
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == "?") { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops??
    Casualties??
    + + +
    diff --git a/Templates/Notice/4.tpl b/Templates/Notice/4.tpl new file mode 100644 index 00000000..b61bfc9f --- /dev/null +++ b/Templates/Notice/4.tpl @@ -0,0 +1,285 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} + +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/5.tpl b/Templates/Notice/5.tpl new file mode 100644 index 00000000..b61bfc9f --- /dev/null +++ b/Templates/Notice/5.tpl @@ -0,0 +1,285 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} + +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/6.tpl b/Templates/Notice/6.tpl new file mode 100644 index 00000000..b61bfc9f --- /dev/null +++ b/Templates/Notice/6.tpl @@ -0,0 +1,285 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} + +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/7.tpl b/Templates/Notice/7.tpl new file mode 100644 index 00000000..b61bfc9f --- /dev/null +++ b/Templates/Notice/7.tpl @@ -0,0 +1,285 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} + +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +?> +
    Defender + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/8.tpl b/Templates/Notice/8.tpl new file mode 100644 index 00000000..e09049ca --- /dev/null +++ b/Templates/Notice/8.tpl @@ -0,0 +1,54 @@ +readingNotice['data']); +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?>
    + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +echo ""; +echo ""; +for($i=3;$i<13;$i++) { +$unitarray['u'.($i-3+$start).''] = $dataarray[$i]; + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($dataarray[13] == 0) { + echo ""; +} else { + echo ""; + $unitarray['hero'] = 1; +} + +?> + + +
    sender">getUserField($dataarray[1],"username",0); ?> from the village getMapCheck($dataarray[0])."'>".$database->getVillageField($dataarray[0],name).""; ?>
     
    Troops0".$dataarray[$i]."0".$dataarray[13]."
    upkeep +getUpkeep($unitarray,$dataarray[2]); ?>Cropper hour
    diff --git a/Templates/Notice/all.tpl b/Templates/Notice/all.tpl new file mode 100644 index 00000000..ac3f57c9 --- /dev/null +++ b/Templates/Notice/all.tpl @@ -0,0 +1,89 @@ + +
    + + + + + + + + + + + + + +noticearray) >= $i) { + echo " + "; + } + $name++; + } + if(count($message->noticearray) == 0) { + echo ""; + } + ?> + + +
    Subject: +Sent
    username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + $date2=strtotime("NOW"); + if ($golds['plus'] <= $date2) { ?> + + + + plus) { + if(isset($_GET['t']) && $_GET['t'] == 5) { + echo ""; + } + else { + echo ""; + } + }?> + + noticearray) < 10) { + echo "«»"; + } + else if (!isset($_GET['s']) && count($message->noticearray) > 10) { + echo "«»"; + } + else if(isset($_GET['s']) && count($message->noticearray) > $_GET['s']) { + if(count($message->noticearray) > ($_GET['s']+10) && $_GET['s']-10 < count($message->noticearray) && $_GET['s'] != 0) { + echo "«»"; + } + else if(count($message->noticearray) > $_GET['s']+10) { + echo "«»"; + } + else { + echo "«»"; + } + } + ?> +
    noticearray[$i-1]['id']."\" />"; + $type = (isset($_GET['t']) && $_GET['t'] == 5)? $message->noticearray[$i-1]['archive'] : $message->noticearray[$i-1]['ntype']; + echo "\"".$noticeClass[$type]."\""; + echo "
    noticearray[$i-1]['id']."\">".$message->noticearray[$i-1]['topic']." "; + if($message->noticearray[$i-1]['viewed'] == 0) { + echo "(new)"; + } + $date = $generator->procMtime($message->noticearray[$i-1]['time']); + echo "
    ".$date[0]." ".$date[1]."
    There are no reports available.
    + + \ No newline at end of file diff --git a/Templates/Plus/1.tpl b/Templates/Plus/1.tpl new file mode 100644 index 00000000..61b55526 --- /dev/null +++ b/Templates/Plus/1.tpl @@ -0,0 +1,441 @@ + + + + +

    Donate for the

    + has written the script that this server is using. Script is free at the moment, so keep it that way by donating small anmount!

    + +
    + + + + + + + +(paypal check-out) +


    +access != BANNED){ +?> +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package A
    + + Package A
    30 Gold
    1.00 USD
    + + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package B
    + + Package B
    100 Gold
    3.00 USD
    + + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package C
    + + Package C
    250 Gold
    6.00 USD
    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package D
    + + Package D
    600 Gold
    12.00 USD
    + + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package E
    + + Package E
    1600 Gold
    34.00 USD
    + + + + +
    +
    + + + + + + + + + + + + + + + + + + + + + +
    Voucher
    + Voucher
    Your Option
    + (ID operator) +
    + + » Buy +
    + + + + + + + + + + +
    Rules
    + after you buy the product, you should report to the Multihunter. +
    to activate your product within 24 hours. +
    + + +
    +
    All prices listed are final sales amounts.
    + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package 1
    + + Package A
    30 Gold
    1.00 USD
    » next
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package 2
    + + Package B
    100 Gold
    3.00 USD
    » next
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package 3
    + + Package C
    250 Gold
    6.00 USD
    » next
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package 4
    + + Package D
    600 Gold
    12.00 USD
    » next
    + + + + + + + + + + + + + + + + + + + + + + + +
    Package 5
    + + Package E
    1600 Gold
    34.00 USD
    » next
    + + +
    +
    All prices listed are final sales amounts.
    + +
    + + diff --git a/Templates/Plus/10.tpl b/Templates/Plus/10.tpl new file mode 100644 index 00000000..63b48bfc --- /dev/null +++ b/Templates/Plus/10.tpl @@ -0,0 +1,61 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $uuid = mysql_fetch_array($MyId); + + + $MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error()); + $uuVilid = mysql_fetch_array($MyVilId); + + + $goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error()); + + $today = date("mdHi"); + +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyGold)) { + +if($golds['14'] <= time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b2 = '0' where `username`='".$session->username."'") or die(mysql_error()); +} + + +if($golds['14'] == 0) { +mysql_query("UPDATE ".TB_PREFIX."users set b2 = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_PRODUCTION." where `username`='".$session->username."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set b2 = '".($golds['14']+PLUS_PRODUCTION)."' where `username`='".$session->username."'") or die(mysql_error()); +} + + +$done1 = "+25% Production: Clay"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `username`='".$session->username."'") or die(mysql_error()); + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', '+25% Production: Clay')") or die(mysql_error()); + +} else { +$done1 = "nothing has been done"; + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed +25% Production: Clay')") or die(mysql_error()); + +} +} else { + $done1 = "You need more gold"; +} +} + + +print "



    "; + +echo $done1; + +print "
    "; + +include("Templates/Plus/3.tpl"); +}else{ +header("Location: banned.php"); +} + ?> \ No newline at end of file diff --git a/Templates/Plus/11.tpl b/Templates/Plus/11.tpl new file mode 100644 index 00000000..58811b6f --- /dev/null +++ b/Templates/Plus/11.tpl @@ -0,0 +1,61 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $uuid = mysql_fetch_array($MyId); + + + $MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error()); + $uuVilid = mysql_fetch_array($MyVilId); + + + $goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error()); + + $today = date("mdHi"); + +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyGold)) { + +if($golds['15'] <= time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b3 = '0' where `username`='".$session->username."'") or die(mysql_error()); +} + + +if($golds['15'] == 0) { +mysql_query("UPDATE ".TB_PREFIX."users set b3 = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_PRODUCTION." where `username`='".$session->username."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set b3 = '".($golds['15']+PLUS_PRODUCTION)."' where `username`='".$session->username."'") or die(mysql_error()); +} + + +$done1 = "+25% Production: Iron"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `username`='".$session->username."'") or die(mysql_error()); + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', '+25% Production: Iron')") or die(mysql_error()); + +} else { +$done1 = "nothing has been done"; + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed +25% Production: Iron')") or die(mysql_error()); + +} +} else { + $done1 = "You need more gold"; +} +} + + +print "



    "; + +echo $done1; + +print "
    "; + +include("Templates/Plus/3.tpl"); +}else{ +header("Location: banned.php"); +} + ?> \ No newline at end of file diff --git a/Templates/Plus/12.tpl b/Templates/Plus/12.tpl new file mode 100644 index 00000000..a0223b80 --- /dev/null +++ b/Templates/Plus/12.tpl @@ -0,0 +1,61 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $uuid = mysql_fetch_array($MyId); + + + $MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error()); + $uuVilid = mysql_fetch_array($MyVilId); + + + $goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error()); + + $today = date("mdHi"); + +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyGold)) { + +if($golds['16'] <= time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b4 = '0' where `username`='".$session->username."'") or die(mysql_error()); +} + + +if($golds['16'] == 0) { +mysql_query("UPDATE ".TB_PREFIX."users set b4 = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_PRODUCTION." where `username`='".$session->username."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set b4 = '".($golds['16']+PLUS_PRODUCTION)."' where `username`='".$session->username."'") or die(mysql_error()); +} + + +$done1 = "+25% Production: Crop"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `username`='".$session->username."'") or die(mysql_error()); + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', '+25% Production: Crop')") or die(mysql_error()); + +} else { +$done1 = "nothing has been done"; + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed +25% Production: Crop')") or die(mysql_error()); + +} +} else { + $done1 = "You need more gold"; +} +} + + +print "



    "; + +echo $done1; + +print "
    "; + +include("Templates/Plus/3.tpl"); +}else{ +header("Location: banned.php"); +} + ?> \ No newline at end of file diff --git a/Templates/Plus/13.tpl b/Templates/Plus/13.tpl new file mode 100644 index 00000000..b5b750d7 --- /dev/null +++ b/Templates/Plus/13.tpl @@ -0,0 +1,46 @@ + \ No newline at end of file diff --git a/Templates/Plus/14.tpl b/Templates/Plus/14.tpl new file mode 100644 index 00000000..ccc24d8c --- /dev/null +++ b/Templates/Plus/14.tpl @@ -0,0 +1,33 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE `wref`='".$village->wid."'") or die(mysql_error()); + $uuVilid = mysql_fetch_array($MyVilId); + + $totalT = ($T1+$T2+$T3+$T4); + $totalR = ($uuVilid['6']+$uuVilid['7']+$uuVilid['8']+$uuVilid['10']); + + $goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error()); + +if($totalT <= $totalR) { +mysql_query("UPDATE ".TB_PREFIX."vdata set wood = '".$T1."' where `wref`='".$village->wid."'") or die(mysql_error()); +mysql_query("UPDATE ".TB_PREFIX."vdata set clay = '".$T2."' where `wref`='".$village->wid."'") or die(mysql_error()); +mysql_query("UPDATE ".TB_PREFIX."vdata set iron = '".$T3."' where `wref`='".$village->wid."'") or die(mysql_error()); +mysql_query("UPDATE ".TB_PREFIX."vdata set crop = '".$T4."' where `wref`='".$village->wid."'") or die(mysql_error()); + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-3)." where `username`='".$session->username."'") or die(mysql_error()); + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'trade 1:1')") or die(mysql_error()); +echo "done"; +} else { +echo "failed"; + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed trade 1:1')") or die(mysql_error()); + +} + +include("Templates/Plus/3.tpl"); +}else{ +header("Location: banned.php"); +} + ?> \ No newline at end of file diff --git a/Templates/Plus/2.tpl b/Templates/Plus/2.tpl new file mode 100644 index 00000000..2953e730 --- /dev/null +++ b/Templates/Plus/2.tpl @@ -0,0 +1,217 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Features of Travian Plus
    Waiting loop for constructions
    Waiting loop for constructionsThe waiting loop enables you to give your builders another order to raise or extend a second building. After completing their first task and a short break (60s), they will start to take care of this second job.
    Larger map
    Larger mapYou can enlarge the map to get a better overview. Instead of 7x7 fields you can have a map of 13x13 fields. Other alliances which are allied or have a non-aggression pact (NAP) with you are shown in special colours.
    Improved view in the rally point.
    Improved view in the rally point.In your rally point you can mark incoming attacks in the colours green, yellow and red to be able to distinguish between what you think are severe and harmless attacks . Additionally the total movement time (without taking into consideration the tournament square or an artefact effect) of the troop types is shown.
    Archive function for reports and messages
    Archive function for reports and messagesImportant reports and messages can be archived and thereby be looked up faster. Additionally, you can choose several messages or reports and archive or delete them at once.
    Sorting function for reports and messages
    Sorting function for reports and messagesBy clicking the table heading "Sent" you can reverse the sorting of reports and messages. If you get many messages a day and need to look up older ones you are able to do so very fast with this function. It can also be used in the archives.
    Sorting function for the marketplace
    Sorting function for the marketplaceTo use the marketplace more efficiently, you can filter the offers for certain resources only. Additionally you can use a ratio filter to only see 1:1 offers.
    Auto-completion
    Auto-completionBy using the auto-completion you can easily "write" a whole village name by using very few figures. Depending on your preferences you can use this function in any combination for own villages, villages of alliance members or villages of your surroundings.
    Report filter
    Report filterThanks to the report filter unwanted reports concerning marketplace transactions are a problem of the past. Depending on your personal preferences you can easily switch off reports concerning trades from/to other villages or between your own villages.
    Freely definable direct links
    Freely definable direct linksThanks to these links, you can reach every page you want with just one click. Just create a link to every destination you want and get directly to your alliance's overview, to your barracks or to the tempting 1:1 biddings at the marketplace.
    Graphical statistics
    Graphical statisticsThese statistics show you the chronological development of your account, e.g. the ranking, your army's strength or your population's development.
    Central account overview
    Central account overviewAnyone who reigns over several villages might easily miss something going on within his realm: where are those troops I built, are all my workers at work or are some of them lazy, do I lose resources because one of my warehouses isn't big enough? Just take a look at your central village overview and you can check out all your villages at once. If you own more than one village you can reach the central village overview by clicking "Villages" directly above the list of your villages.
    Notepad
    NotepadPaper and pencil aren't always at hand. In order to make you don't forget important things or if you simply want to make a few notes, use your notebook.
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Features of Travian Gold
    Production bonus for lumber
    Production bonus for lumberWith this Gold advantage all your villages' lumber production will be increased by 25%. +

    +The bonus will not be added to the single resource fields but to the sum of the production. +

    +This feature is NOT included in the gold club!

    Production bonus for clay
    Production bonus for clayWith this Gold advantage all your villages' clay production will be increased by 25%. +

    +The bonus will not be added to the single resource fields but to the sum of the production. +

    +This feature is NOT included in the gold club!

    Production bonus for iron
    Production bonus for ironWith this Gold advantage all your villages' iron production will be increased by 25%. +

    +The bonus will not be added to the single resource fields but to the sum of the production. + +

    +This feature is NOT included in the gold club!

    Production bonus for crop
    Production bonus for cropWith this Gold advantage all your villages' crop production will be increased by 25%. +

    +The bonus will not be added to the single resource fields but to the sum of the production. +

    +This feature is NOT included in the gold club!

    Complete construction orders & research immediately.
    Complete construction orders & research immediately.In the current village all construction orders and research in the academy as well as the blacksmith and armoury will be completed immediately. +

    +However, the buildings Residence and Palace and villages with a wonder of the world inside them are excluded. + +

    +This feature is NOT included in the gold club!

    NPC Merchant
    NPC MerchantThe NPC Merchant will exchange any desired amount of resources in a village with other resources at a ratio of 1:1. +

    +This feature is NOT included in the gold club!

    diff --git a/Templates/Plus/3.tpl b/Templates/Plus/3.tpl new file mode 100644 index 00000000..af71c560 --- /dev/null +++ b/Templates/Plus/3.tpl @@ -0,0 +1,458 @@ +username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + +if($golds['13'] <= time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b1 = '0' where `username`='".$session->username."'") or die(mysql_error()); +} + +if($golds['14'] <= time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b2 = '0' where `username`='".$session->username."'") or die(mysql_error()); +} +if($golds['15'] <= time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b3 = '0' where `username`='".$session->username."'") or die(mysql_error()); +} + +if($golds['16'] <= time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b4 = '0' where `username`='".$session->username."'") or die(mysql_error()); +} + + + + + + +include("Templates/Plus/pmenu.tpl"); + + + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $today = date("mdHi"); + +if (mysql_num_rows($MyGold)) { + if($session->gold == 0) { + echo "

    You currently don't own gold.

    "; +} else { + echo "

    You currently have $session->gold gold

    "; +} +} + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ';} +} +} else { +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 4 && $tl_b2 < $date2) { + echo 'Activate'; +}elseif + ($golds['gold'] > 4 && $tl_b2 > $date2) { + echo ' Extend'; +} else { + echo 'too little gold';} +} +} + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Plus function
    DescriptionDurationGoldAction
    + Plus Account
    + +"; + }else + if ($datetimep <= $date2) { + print "Your PLUS advantage has ended.
    "; +mysql_query("UPDATE ".TB_PREFIX."users set plus = '0' where `username`='".$session->username."'") or die(mysql_error()); + } else { + +$holdtotmin=(($datetimep-$date2)/60); +$holdtothr=(($datetimep-$date2)/3600); +$holdtotday=intval(($datetimep-$date2)/86400); + echo "Remaining: ".$holdtotday. " days"; + +$holdhr=intval($holdtothr-($holdtotday*24)); + echo " ".($holdhr). " hours "; + +$holdmr=intval($holdtotmin-(($holdhr*60)+($holdtotday*1440))); + echo " ".($holdmr). " mins"; + } +?> +
    +
    = 86400){ + echo ''.(PLUS_TIME/86400).' Days'; + } else if(PLUS_TIME < 86400){ + echo ''.(PLUS_TIME/3600).' Hours'; + } ?> + Gold10 + +username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 9 && $datetimep < $date2) { + echo ' + Activate'; +}elseif + ($golds['gold'] > 9 && $datetimep > $date2) { + echo ' + Extend'; + +} else { + echo 'too little gold';} +} + ?> +
    + +25% Lumber Production: Lumber
    + +Remaining ".$holdtotday1. " days "; +echo " ".($holdhr1). " hours "; +echo " ".($holdmr1). " mins "; + + } +?> +  + +
    = 86400){ + echo ''.(PLUS_PRODUCTION/86400).' Days'; + } else if(PLUS_PRODUCTION < 86400){ + echo ''.(PLUS_PRODUCTION/3600).' Hours'; + } ?>Gold5 + +access != BANNED){ +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 4 && $tl_b1 < $date2) { + echo 'Activate'; +}elseif + ($golds['gold'] > 4 && $datetime1 > $date2) { + echo ' Extend'; +} else { + echo 'too little gold';} +} +} else { +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 4 && $tl_b1 < $date2) { + echo 'Activate'; +}elseif + ($golds['gold'] > 4 && $datetime1 > $date2) { + echo ' Extend'; +} else { + echo 'too little gold';} +} +} +?> +
    + +25% Clay Production: Clay
    + +Remaining: ".$holdtotday2. " days "; +echo " ".($holdhr2). " hours "; +echo " ".($holdmr2). " mins"; + + } +?> +  +
    = 86400){ + echo ''.(PLUS_PRODUCTION/86400).' Days'; + } else if(PLUS_PRODUCTION < 86400){ + echo ''.(PLUS_PRODUCTION/3600).' Hours'; + } ?>Gold5 + +access != BANNED){ +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 4 && $tl_b2 < $date2) { + echo 'Activate'; +}elseif + ($golds['gold'] > 4 && $tl_b2 > $date2) { + echo ' Extend'; +} else { + echo 'too little gold
    + +25% Iron Production: Iron
    + +Remaining: ".$holdtotday3. " days "; +echo " ".($holdhr3). " hours "; +echo " ".($holdmr3). " mins"; + + } +?> +  +
    = 86400){ + echo ''.(PLUS_PRODUCTION/86400).' Days'; + } else if(PLUS_PRODUCTION < 86400){ + echo ''.(PLUS_PRODUCTION/3600).' Hours'; + } ?>Gold5 + +access != BANNED){ +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 4 && $tl_b3 < $date2) { + echo 'Activate'; +}elseif + ($golds['gold'] > 4 && $tl_b3 > $date2) { + echo ' Extend'; +} else { + echo 'too little gold';} +} +} else { +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 4 && $tl_b3 < $date2) { + echo 'Activate'; +}elseif + ($golds['gold'] > 4 && $tl_b3 > $date2) { + echo ' Extend'; +} else { + echo 'too little gold';} +} +} + ?> + 
    + +25% Crop Production: Crop
    + +Remaining: ".$holdtotday4. " days "; +echo " ".($holdhr4). " hours "; +echo " ".($holdmr4). " mins"; + } +?> + 
    = 86400){ + echo ''.(PLUS_PRODUCTION/86400).' Days'; + } else if(PLUS_PRODUCTION < 86400){ + echo ''.(PLUS_PRODUCTION/3600).' Hours'; + } ?>Gold5 +access != BANNED){ +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 4 && $tl_b4 < $date2) { + echo 'Activate'; +}elseif + ($golds['gold'] > 4 && $tl_b4 > $date2) { + echo ' Extend'; +} else { + echo 'too little gold';} +} +} else { +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 4 && $tl_b4 < $date2) { + echo 'Activate'; +}elseif + ($golds['gold'] > 4 && $tl_b4 > $date2) { + echo ' Extend'; +} else { + echo 'too little gold';} +} +} +?> +
    Complete construction orders and researches in this village now (does not work for Palace and Residence).nowGold2 + +access != BANNED){ +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 1) { + echo ' + On'; +} else { + echo 'too little gold'; + } +} +} else { +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 1) { + echo ' + On'; +} else { + echo 'too little gold'; + } +} +} + ?> +
    1:1 Trade with the NPC merchantnowGold3 + +access != BANNED){ +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 2) { + echo ' NPC'; +} else { + echo 'too little gold'; + } +} +} else { +if (mysql_num_rows($MyGold)) { + if($golds['gold'] > 2) { + echo ' NPC'; +} else { + echo 'too little gold'; + } +} +} + ?> + +
    + \ No newline at end of file diff --git a/Templates/Plus/4.tpl b/Templates/Plus/4.tpl new file mode 100644 index 00000000..2bb78479 --- /dev/null +++ b/Templates/Plus/4.tpl @@ -0,0 +1,19 @@ + +

    How do I get Gold?

    +

    Ask owner of the site

    + + +

    Why can't I finish some buildings with Gold?

    + +

    Due to game play reasons the buildings Residence and Palace are excluded from this function. The same applies to villages in which the wonders of the world can be constructed.

    + +

    I activated the Plus account, however, my resource production did not increase.

    +

    The production did not increase because Plus is separated from these additional features.

    + +

    Do I need to activate Plus before I can use any other function?

    +

    No, you can use every single gold feature as long as you have enough gold.

    + + + diff --git a/Templates/Plus/5.tpl b/Templates/Plus/5.tpl new file mode 100644 index 00000000..cbd50bc1 --- /dev/null +++ b/Templates/Plus/5.tpl @@ -0,0 +1,53 @@ + + +

    Invite friends and receive free Gold

    + +

    If you get new players to open an account and settle a second village with Travian you will receive gold. You can use this gold to purchase a plus account or plus advantages. +
    +
    + To bring in new players, you can invite them by e-mail or have them click on your REF link.

    + +

    How is it done?

    + +

    1) Invite your friends via Email

    +access != BANNED){ ?> +

    » Invite by e-mail

    + +

    » Invite by e-mail

    + +

    2) Copy your personal REF-Link and share it!

    Your personal REF Link: +
    + ?id=ref_uid; ?> + +

    Progress of your invited friends

    + +

    As soon as a player you invited has found his 2. village, you will be credited with 50 gold.

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    Players brought in
    WorldUIDMember sinceInhabitantsVillages
    You have not brought in any new players yet.
    + diff --git a/Templates/Plus/7.tpl b/Templates/Plus/7.tpl new file mode 100644 index 00000000..248c9841 --- /dev/null +++ b/Templates/Plus/7.tpl @@ -0,0 +1,56 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $uuid = mysql_fetch_array($MyId); + + + $MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error()); + $uuVilid = mysql_fetch_array($MyVilId); + $MyVilId2 = mysql_query("SELECT * FROM ".TB_PREFIX."research WHERE `vref`='".$village->wid."'") or die(mysql_error()); + $uuVilid2 = mysql_fetch_array($MyVilId2); + + + $goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error()); + + $today = date("mdHi"); + +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyVilId) || mysql_num_rows($MyVilId2)) { + +mysql_query("UPDATE ".TB_PREFIX."bdata set timestamp = '1' where wid = ".$village->wid." AND type != '25' OR type != '26'") or die(mysql_error()); +mysql_query("UPDATE ".TB_PREFIX."research set timestamp = '1' where vref = '".$village->wid."'") or die(mysql_error()); + + + +$done1 = "   All construction orders and Researches in this village has been Completed"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-2)." where `username`='".$session->username."'") or die(mysql_error()); + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Finish construction and research with gold')") or die(mysql_error()); + +} else { +$done1 = "   Nothing has been Completed"; + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed construction and research with gold')") or die(mysql_error()); + +} +} else { + $done1 = "  You need more Gold"; +} +} + + +print "



    "; + +echo $done1; + +print "
    "; + +include("Templates/Plus/3.tpl"); +}else{ +header("Location: banned.php"); +} + ?> \ No newline at end of file diff --git a/Templates/Plus/8.tpl b/Templates/Plus/8.tpl new file mode 100644 index 00000000..c8348c8d --- /dev/null +++ b/Templates/Plus/8.tpl @@ -0,0 +1,57 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $uuid = mysql_fetch_array($MyId); + + + $MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error()); + $uuVilid = mysql_fetch_array($MyVilId); + + + $goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error()); + + $today = date("mdHi"); + +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyGold)) { + + +if($golds['12'] == 0) { +mysql_query("UPDATE ".TB_PREFIX."users set plus = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_TIME." where `username`='".$session->username."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set plus = '".($golds['12']+PLUS_TIME)."' where `username`='".$session->username."'") or die(mysql_error()); +} + + +$done1 = "  Plus Account"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-10)." where `username`='".$session->username."'") or die(mysql_error()); + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Plus Account')") or die(mysql_error()); + +} else { +$done1 = "nothing has been done"; + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed Plus Account')") or die(mysql_error()); + +} +} else { + $done1 = "  You need more gold"; +} +} + + +print "



    "; + +echo $done1; + +print "
    "; + +include("Templates/Plus/3.tpl"); +}else{ +header("Location: banned.php"); +} + ?> \ No newline at end of file diff --git a/Templates/Plus/9.tpl b/Templates/Plus/9.tpl new file mode 100644 index 00000000..af082be8 --- /dev/null +++ b/Templates/Plus/9.tpl @@ -0,0 +1,61 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $uuid = mysql_fetch_array($MyId); + + + $MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error()); + $uuVilid = mysql_fetch_array($MyVilId); + + + $goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error()); + + $today = date("mdHi"); + +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyGold)) { + +if($golds['13'] <= time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b1 = '0' where `username`='".$session->username."'") or die(mysql_error()); +} + + +if($golds['13'] == 0) { +mysql_query("UPDATE ".TB_PREFIX."users set b1 = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_PRODUCTION." where `username`='".$session->username."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set b1 = '".($golds['13']+PLUS_PRODUCTION)."' where `username`='".$session->username."'") or die(mysql_error()); +} + + +$done1 = "+25% Production: Lumber"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `username`='".$session->username."'") or die(mysql_error()); + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', '+25% Production: Lumber')") or die(mysql_error()); + +} else { +$done1 = "nothing has been done"; + mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed +25% Production: Lumber')") or die(mysql_error()); + +} +} else { + $done1 = "You need more gold"; +} +} + + +print "



    "; + +echo $done1; + +print "
    "; + +include("Templates/Plus/3.tpl"); +}else{ +header("Location: banned.php"); +} + ?> \ No newline at end of file diff --git a/Templates/Plus/getplus.tpl b/Templates/Plus/getplus.tpl new file mode 100644 index 00000000..76bc1f62 --- /dev/null +++ b/Templates/Plus/getplus.tpl @@ -0,0 +1,123 @@ +

    Get Plus

    "; + echo "
    To enter you login then select the plus site.
    You will be redirected to the plus site."; + echo "
    The plus system will be monitored. Account name, site plus on ip,
    and points given are logged,
    if caught cheating account will be banned.


    "; + +if(!$_POST['plus']){ +echo << + + + +
    $session->username
    Select Reward: +

    +
    + +

    + +EOT; +}else{ + + $account = mysql_real_escape_string($_POST['username']); + $reward = mysql_real_escape_string($_POST['reward']); + $valid=TRUE; + + + if($reward == ""){ + echo "ERROR:
    "; + echo "Please select a reward."; + echo "

    "; + $valid=FALSE; + } + + if(!$valid) break; + $valid=TRUE; +///////////////////////////////////////////////////////// + $plusTime = 604800; // 7 days + $time = time(); + $giveplus = ($time + $plustime); + $accountCheck = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + if(mysql_num_rows($accountCheck) <= 0){ + echo "ERROR:
    "; + echo "The account name you entered does not exist."; + echo "

    "; + $valid=FALSE; + } + if(!$valid) break; + $valid=TRUE; + $acc = mysql_fetch_array($accountCheck); + + $plusCheck = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error()); + $pluss = mysql_fetch_array($plusCheck); + + switch($reward){ + case 'p_plus': + $key='plus'; + $gldz='10'; + $url='URL=./plus.php?id=3'; + break; + case 'p_b1': + $key ='b1'; + $gldz='5'; + $url='URL=./plus.php?id=3'; + break; + case 'p_b2': + $key ='b2'; + $gldz='5'; + $url='URL=./plus.php?id=3'; + break; + case 'p_b3': + $key ='b3'; + $gldz='5'; + $url='URL=./plus.php?id=3'; + break; + case 'p_b4': + $key ='b4'; + $gldz='5'; + $url='URL=./plus.php?id=3'; + break; + + default: +echo' Please select the option you wish to activate or extend.
    '; + $valid=FALSE; + break; + } + if(!$valid) break; + $valid=TRUE; + + + + if(mysql_num_rows($plusCheck) > 0){ + if($time > $pluss[$key] ){ + $editplus = mysql_query("UPDATE ".TB_PREFIX."users SET `{$key}`= `{$key}` + ('".$time."'+'".$plusTime."'), `gold` = `gold` - {$gldz} WHERE `username`='".$session->username."'") or die(mysql_error()); + echo "

    Your Status has been updated!
    "; + }else + if($time < $pluss[$key]){ + $editplus = mysql_query("UPDATE ".TB_PREFIX."users SET `{$key}`= `{$key}` +'".$plusTime."', `gold` = `gold` - {$gldz} WHERE `username`='".$session->username."'") or die(mysql_error()); + echo "

    Your Status has been updated!
    "; + + } + } +else{ + $insertplus = mysql_query("INSERT INTO ".TB_PREFIX."users (`username`,`{$key}`, `gold`) VALUES ('".$session->username."', ('".$time."'+'".$plusTime."'),`gold` - {$gldz})") or die(mysql_error()); + echo "

    Your Status has been updated!
    "; + } +} + + +?> + \ No newline at end of file diff --git a/Templates/Plus/pmenu.tpl b/Templates/Plus/pmenu.tpl new file mode 100644 index 00000000..8356b9fd --- /dev/null +++ b/Templates/Plus/pmenu.tpl @@ -0,0 +1,55 @@ +
    +

    Travian Plus

    + \ No newline at end of file diff --git a/Templates/Profile/account.tpl b/Templates/Profile/account.tpl new file mode 100644 index 00000000..dee47f2d --- /dev/null +++ b/Templates/Profile/account.tpl @@ -0,0 +1,146 @@ +

    Player profile

    + + +
    + + + + + + + + + + + + + + + + + + + +getError("pw") != "") { +echo "".$form->getError('pw').""; +} +?> + + + + + + + + + + + + + + + +getError("email") != "") { +echo "".$form->getError('email').""; +} +?> + + + + + + + + userinfo['sit1'] != 0) $count +=1; if($session->userinfo['sit2'] !=0) $count += 1; + if($count < 2) { + ?> + + + + +"; } +if($session->userinfo['sit1'] != 0) { + echo ""; +} +if($session->userinfo['sit2'] != 0) { +echo ""; +} +?> + +getError("email") != "") { +echo "".$form->getError('email').""; +} +?> + + + + + + + + +isDeleting($session->uid); +if($timestamp) { +echo ""; +} +else { +?> + + + + + + + + + + getError("del") != "") { +echo "".$form->getError("del").""; +} +?> +

    +
    diff --git a/Templates/Profile/graphic.tpl b/Templates/Profile/graphic.tpl new file mode 100644 index 00000000..d1886224 --- /dev/null +++ b/Templates/Profile/graphic.tpl @@ -0,0 +1,104 @@ + +

    Player profile

    + + +updateUserField($session->uid,gpack,$_POST["custom_url"],1); + } ?> + +lang/en/gp_check.css" rel="stylesheet" type="text/css"> +
    + +
    + Graphic Pack could not be found. This could be due to the following reasons:
    +
      +
    • The path must be set to the folder that contains the file 'travian.css' and the folders 'img', 'lang' and 'modules'.
    • +
    • Your browser does not support Graphic Packs hosted on your computer and needs them to be online, with a path starting with 'http://'.
    • +
    + +
    +
    +
    + + +
    + Graphic Pack found.
    +
    + + The path '' shows an allowed Graphic Pack. Save your choice to activate the Graphic Pack. You can change this setting at any time. + +
    + + "> +
    +
    +
    +
    + + +
    + + + + + + + + + + + + + + + + + + + + +
    Graphic pack settings
    + With a graphic pack you can alter the appearance of Travian. You can choose one from the list or provide the path to a graphic pack on your computer. By using a local graphic pack you may reduce page loading time for every page request.
    + ATTENTION! Use only trustworthy graphic packs +
    + +
    +
    Example: file:///C:/Travian/gpack/ or http://www.travian.org/user/gpack/
    +
    Default:
    +
    +

    +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    More graphic packs
    NameSize in MBActivateDownload
    Travian Default4ActivateDownload
    + \ No newline at end of file diff --git a/Templates/Profile/medal.php b/Templates/Profile/medal.php new file mode 100644 index 00000000..f760038c --- /dev/null +++ b/Templates/Profile/medal.php @@ -0,0 +1,121 @@ +gpack == null || GP_ENABLE == false) { + $gpack= GP_LOCATE; + } else { + $gpack= $session->gpack; + } + + +//de bird +if($displayarray['protect'] > time()){ +$uurover=date('H:i:s', ($displayarray['protect']-time())-3600); +$profiel = preg_replace("/\[#0]/is",'', $profiel, 1); +} else { +$geregistreerd=date('d-m-Y', ($displayarray['timestamp'])); +$profiel = preg_replace("/\[#0]/is",'', $profiel, 1); +} + +//natar image +if($displayarray['username'] == "Natars"){ +$profiel = preg_replace("/\[#natars]/is",'', $profiel, 1); +$profiel = preg_replace("/\[#WW]/is",'', $profiel, 1); +} + +//de lintjes +/****************************** +INDELING CATEGORIEEN: +=============================== +== 1. Aanvallers top 10 == +== 2. Defence top 10 == +== 3. Klimmers top 10 == +== 4. Overvallers top 10 == +== 5. In att en def tegelijk == +== 6. in top 3 - aanval == +== 7. in top 3 - verdediging == +== 8. in top 3 - klimmers == +== 9. in top 3 - overval == +******************************/ + +foreach($varmedal as $medal) { + +switch ($medal['categorie']) { + case "1": + $titel="Attackers of the Week"; + $woord="Points"; + break; + case "2": + $titel="Defenders of the Week"; + $woord="Points"; + break; + case "3": + $titel="Pop Climbers of the week"; + $woord="Pop"; + break; + case "4": + $titel="Robbers of the week"; + $woord="Resources"; + break; + case "5": + $titel="Receiving this medal shows that you where in the top 10 of both attacckers and defenders of the week."; + $bonus[$medal['id']]=1; + break; + case "6": + $titel="Receiving this medal shows that you were in the top 3 Attackers of the week ".$medal['points']." in a row"; + $bonus[$medal['id']]=1; + break; + case "7": + $titel="Receiving this medal shows that you were in the top 3 Defenders of the week ".$medal['points']." in a row"; + $bonus[$medal['id']]=1; + break; + case "8": + $titel="Receiving this medal shows that you were in the top 3 Pop Climbers of the week ".$medal['points']." in a row."; + $bonus[$medal['id']]=1; + break; + case "9": + $titel="Receiving this medal shows that you were in the top 3 Robbers of the week ".$medal['points']." in a row."; + $bonus[$medal['id']]=1; + break; + case "10": + $titel="Rank Climbers of the week."; + $woord="Ranks"; + break; + case "11": + $titel="Receiving this medal shows that you were in the top 3 of the Rank Climbers of the week ".$medal['points']." in a row."; + $bonus[$medal['id']]=1; + break; + case "12": + $titel="Receiving this medal shows that you were in the top 10 Attackers of the week ".$medal['points']." in a row."; + $bonus[$medal['id']]=1; + break; + case "13": + $titel="Receiving this medal shows that you were in the top 10 Defenders of the week ".$medal['points']." in a row."; + $bonus[$medal['id']]=1; + break; + case "14": + $titel="Receiving this medal shows that you were in the top 10 Pop Climbers of the week ".$medal['points']." in a row."; + $bonus[$medal['id']]=1; + break; + case "15": + $titel="Receiving this medal shows that you were in the top 10 Robbers of the week ".$medal['points']." in a row."; + $bonus[$medal['id']]=1; + break; + case "16": + $titel="Receiving this medal shows that you were in the top 10 Rank Climbers of the week ".$medal['points']." in a row."; + $bonus[$medal['id']]=1; + break; + + +} + +if(isset($bonus[$medal['id']])){ +$profiel = preg_replace("/\[#".$medal['id']."]/is",'', $profiel, 1); +} else { +$profiel = preg_replace("/\[#".$medal['id']."]/is",'', $profiel, 1); +} +} + + + +?> + diff --git a/Templates/Profile/menu.tpl b/Templates/Profile/menu.tpl new file mode 100644 index 00000000..20cda9e0 --- /dev/null +++ b/Templates/Profile/menu.tpl @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/Templates/Profile/notfound.tpl b/Templates/Profile/notfound.tpl new file mode 100644 index 00000000..0c2c30d1 --- /dev/null +++ b/Templates/Profile/notfound.tpl @@ -0,0 +1,2 @@ +

    Player profile

    +

    No player found

    \ No newline at end of file diff --git a/Templates/Profile/overview.tpl b/Templates/Profile/overview.tpl new file mode 100644 index 00000000..d40139b2 --- /dev/null +++ b/Templates/Profile/overview.tpl @@ -0,0 +1,170 @@ +procRankReq($_GET); +$displayarray = $database->getUserArray($_GET['uid'],1); + + +$varmedal = $database->getProfileMedal($_GET['uid']); + +$profiel="".$displayarray['desc1']."".md5(skJkev3)."".$displayarray['desc2'].""; +require("medal.php"); +$profiel=explode("".md5(skJkev3)."", $profiel); + +$varray = $database->getProfileVillages($_GET['uid']); +$totalpop = 0; +foreach($varray as $vil) { + $totalpop += $vil['pop']; +} +?> +

    Player profile

    + +uid) { include("menu.tpl"); } ?> + + + + + + + + + + + + + + + + + + + + +
    Player
    DetailsDescription
    + + +"; } ?> + + + + + + + + + + + + + + + + + + + + + + + + + "; + } + //Gender + if(isset($displayarray['gender']) && $displayarray['gender'] != 0) { + $gender = ($displayarray['gender']== 1)? "Male" : "Female"; + echo ""; + } + //Location + if($displayarray['location'] != "") { + echo ""; + } + ?> + + + + + uid) { + echo ""; + } else { + echo ""; + } + ?> + + + + + +
    Banned
    RankgetUserRank($displayarray['username']); ?>
    Tribe
    AlliancegetAllianceName($displayarray['alliance']); + echo "".$displayalliance.""; + } ?>
    Villages
    Population
    Age$age
    Gender".$gender."
    Location".$displayarray['location']."
    » Change profile » Write message
    +
    +
    + +
    +
    + +
    + + +
    + + + + + + + + + + + + getCoor($vil['wref']); + echo ""; + echo ""; + } + ?> +
    Villages
    NameInhabitantsCoordinates
    getMapCheck($vil['wref'])."\">".$vil['name'].""; + if($vil['capital'] == 1) { + echo " (capital)"; + } + echo "".$vil['pop'].""; + echo "
    (".$coor['x']."
    |
    ".$coor['y'].")
    \ No newline at end of file diff --git a/Templates/Profile/preference.tpl b/Templates/Profile/preference.tpl new file mode 100644 index 00000000..2648c499 --- /dev/null +++ b/Templates/Profile/preference.tpl @@ -0,0 +1,238 @@ + ## +## License: TravianX Project ## +## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## ## +################################################################################# + +// Save new link or just edit a link +if($_POST) { + $links = array(); + + // let's do some complicated code x'D + foreach($_POST as $key => $value) { + if(substr($key, 0, 2) == 'nr') { + $i = substr($key, 2); + $links[$i]['nr'] = mysql_escape_string($value); + } + + if(substr($key, 0, 2) == 'id') { + $i = substr($key, 2); + $links[$i]['id'] = mysql_escape_string($value); + } + + if(substr($key, 0, 8) == 'linkname') { + $i = substr($key, 8); + $links[$i]['linkname'] = mysql_escape_string($value); + } + + if(substr($key, 0, 8) == 'linkziel') { + $i = substr($key, 8); + $links[$i]['linkziel'] = mysql_escape_string($value); + } + } + + // Save + foreach($links as $link) { + settype($link['nr'], 'int'); + + if(trim($link['nr']) != '' AND trim($link['linkname']) != '' AND trim($link['linkziel']) != '' AND trim($link['id']) == '') { + // Add new link + $userid = $session->uid; + + $query = mysql_query('INSERT INTO `' . TB_PREFIX . 'links` (`userid`, `name`, `url`, `pos`) VALUES (' . $userid . ', \'' . $link['linkname'] . '\', \'' . $link['linkziel'] . '\', ' . $link['nr'] . ')'); + } elseif(trim($link['nr']) != '' AND trim($link['linkname']) != '' AND trim($link['linkziel']) != '' AND trim($link['id']) != '') { + // Update link + $query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'links` WHERE `id` = ' . $link['id']); + $data = mysql_fetch_assoc($query); + + // May the user update this entry? + if($data['userid'] == $session->uid) { + $query2 = mysql_query('UPDATE `' . TB_PREFIX . 'links` SET `name` = \'' . $link['linkname'] . '\', `url` = \'' . $link['linkziel'] . '\', `pos` = ' . $link['nr'] . ' WHERE `id` = ' . $link['id']); + } + } elseif(trim($link['nr']) == '' AND trim($link['linkname']) == '' AND trim($link['linkziel']) == '' AND trim($link['id']) != '') { + // Delete entry + $query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'links` WHERE `id` = ' . $link['id']); + $data = mysql_fetch_assoc($query); + + // May the user delete this entry? + if($data['userid'] == $session->uid) { + $query2 = mysql_query('DELETE FROM `' . TB_PREFIX . 'links` WHERE `id` = ' . $link['id']); + } + } + } + + print ''; +} + + +// Fetch all links +$query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'links` WHERE `userid` = ' . $session->uid . ' ORDER BY `pos` ASC') or die(mysql_error()); +$links = array(); +while($data = mysql_fetch_assoc($query)) { + $links[] = $data; +} +?> + +

    Player profile

    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + diff --git a/Templates/Profile/profile.tpl b/Templates/Profile/profile.tpl new file mode 100644 index 00000000..2b52d8a8 --- /dev/null +++ b/Templates/Profile/profile.tpl @@ -0,0 +1,144 @@ +

    Player profile

    + +getProfileMedal($session->uid); + +include("menu.tpl"); ?> +
    + + + + + + + + + + + + + + + + + + + userinfo['birthday'] != 0) { + $bday = explode("-",$session->userinfo['birthday']); + } + else { + $bday = array('','',''); + } + ?> + + + + + + + + + + + + getProfileVillages($session->uid); + for($i=0;$i<=count($varray)-1;$i++) { + echo ""; + } + ?> + +
    Player username; ?>
    DetailsDescription
    Birthday
    Gender + + + +
    Location
    Village name
    + + +

    + + + + + + + + + + + + + + "; + } ?> + + + + + + +
    Medals
    CategoryRangWeekBB-Code
    ".$titel."".$medal['plaats']."".$medal['week']."[#".$medal['id']."]
    Beginners Protection[#0]

    + + +

    +
    + \ No newline at end of file diff --git a/Templates/Profile/special.tpl b/Templates/Profile/special.tpl new file mode 100644 index 00000000..7257ba77 --- /dev/null +++ b/Templates/Profile/special.tpl @@ -0,0 +1 @@ +
    Support and Multihunter
    Support:
    The support is a group of experienced players who will answer your questions gladly.
    » Write message
    Multihunter:
    The Multihunters are responsible for the compliance with the game rules. If you have questions about the rules or want to report a violation, you can message a Multihunter.
    » Write message
    \ No newline at end of file diff --git a/Templates/Ranking/_notes/dwsync.xml b/Templates/Ranking/_notes/dwsync.xml new file mode 100644 index 00000000..305b35c9 --- /dev/null +++ b/Templates/Ranking/_notes/dwsync.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Templates/Ranking/alliance.tpl b/Templates/Ranking/alliance.tpl new file mode 100644 index 00000000..7b0500b1 --- /dev/null +++ b/Templates/Ranking/alliance.tpl @@ -0,0 +1,55 @@ +The alliance ".$_SESSION['search']." does not exist.

    "; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank())-1; + } + while($_GET['rank'] > (20*$multiplier)) { + $multiplier +=1; + } + $start = 20*$multiplier-19; + } else { $start = ($_SESSION['start']+1); } + } else { $start = ($_SESSION['start']+1); } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i=$start;$i<($start+20);$i++) { + if(isset($ranking[$i]['name']) && $ranking[$i] != "pad") { + if($i == $search) { + echo ""; + } + } + } + else { + echo ""; + } + ?> + +
    + The largest alliances +
    AlliancePlayerØPoints
    "; + } + else { + echo "
    "; + } + echo $i.".".$ranking[$i]['tag'].""; + echo $ranking[$i]['players']."".$ranking[$i]['avg']."".$ranking[$i]['totalpop']."
    No alliance's found
    + \ No newline at end of file diff --git a/Templates/Ranking/alliance_attack.tpl b/Templates/Ranking/alliance_attack.tpl new file mode 100644 index 00000000..2fcb0027 --- /dev/null +++ b/Templates/Ranking/alliance_attack.tpl @@ -0,0 +1,55 @@ +The alliance ".$_SESSION['search']." does not exist.

    "; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank())-1; + } + while($_GET['rank'] > (20*$multiplier)) { + $multiplier +=1; + } + $start = 20*$multiplier-19; + } else { $start = ($_SESSION['start']+1); } + } else { $start = ($_SESSION['start']+1); } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i=$start;$i<($start+20);$i++) { + if(isset($ranking[$i]['name']) && $ranking[$i] != "pad") { + if($i == $search) { + echo ""; + } + } + } + else { + echo ""; + } + ?> + +
    + The best alliances (off) +
    AlliancePlayerPoints
    "; + } + else { + echo "
    "; + } + echo $i.".".$ranking[$i]['tag'].""; + echo $ranking[$i]['players']."".$ranking[$i]['totalap']."
    No users found
    + \ No newline at end of file diff --git a/Templates/Ranking/alliance_defend.tpl b/Templates/Ranking/alliance_defend.tpl new file mode 100644 index 00000000..5a3c6cb4 --- /dev/null +++ b/Templates/Ranking/alliance_defend.tpl @@ -0,0 +1,55 @@ +The alliance ".$_SESSION['search']." does not exist.

    "; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank())-1; + } + while($_GET['rank'] > (20*$multiplier)) { + $multiplier +=1; + } + $start = 20*$multiplier-19; + } else { $start = ($_SESSION['start']+1); } + } else { $start = ($_SESSION['start']+1); } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i=$start;$i<($start+20);$i++) { + if(isset($ranking[$i]['name']) && $ranking[$i] != "pad") { + if($i == $search) { + echo ""; + } + } + } + else { + echo ""; + } + ?> + +
    + The best alliances (def) +
    AlliancePlayerPoints
    "; + } + else { + echo "
    "; + } + echo $i.".".$ranking[$i]['tag'].""; + echo $ranking[$i]['players']."".$ranking[$i]['totaldp']."
    No users found
    + \ No newline at end of file diff --git a/Templates/Ranking/ally_top10.tpl b/Templates/Ranking/ally_top10.tpl new file mode 100644 index 00000000..e950e0df --- /dev/null +++ b/Templates/Ranking/ally_top10.tpl @@ -0,0 +1,222 @@ + alliance."' ORDER BY ap DESC Limit 1"); + ?> + + + + + + +
    Top 10 Alliances
    + + + + + + + + + + + + + +alliance) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + +alliance) { + echo ""; } else { echo ""; } + echo ""; + if($row['id'] == $session->alliance) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } +?> + +
    Instructions + Attackers of the week
    No.AlliancePoints
    ".$i++.". ".$row['tag']."".$row['ap']."
    ".$row['tag']."".$row['tag']."".$row['ap']."
    + + +alliance."' ORDER BY dp DESC Limit 1"); +?> + + + + + + + + + + + + + +alliance) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + + +alliance) { + echo ""; } else { echo ""; } + echo ""; + if($row['id'] == $session->alliance) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } +?> + +
    Instructions + Defenders of the week
    No.AlliancePoints
    ".$i++.". ".$row['tag']."".$row['dp']."
    ".$row['tag']."".$row['tag']."".$row['dp']."
    + +alliance."' ORDER BY clp DESC Limit 1"); +?> +
    + + + + + + + + + + + + + +alliance) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + +alliance) { + echo ""; } else { echo ""; } + echo ""; + if($row['id'] == $session->alliance) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } +?> + +
    Instructions + Climbers of the week
    No.AllianceRanks
    ".$i++.". ".$row['tag']."".$row['clp']."
    ".$row['tag']."".$row['tag']."".$row['clp']."
    +alliance."' ORDER BY RR DESC Limit 1"); +?> + + + + + + + + + + + + + +alliance) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + +alliance) { + echo ""; } else { echo ""; } + echo ""; + if($row['id'] == $session->alliance) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } + + mysql_close($con); +?> + +
    Instructions + Robbers of the week
    No.AllianceResources
    ".$i++.". ".$row['tag']."".$row['RR']."
    ".$row['tag']."".$row['tag']."".$row['RR']."
    +
    \ No newline at end of file diff --git a/Templates/Ranking/general.tpl b/Templates/Ranking/general.tpl new file mode 100644 index 00000000..1c22bcbb --- /dev/null +++ b/Templates/Ranking/general.tpl @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Players
    Registered players
    Active players
    Players online
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Tribes
    TribeRegisteredPercent
    Romans
    Teutons
    Gauls
    diff --git a/Templates/Ranking/heroes.tpl b/Templates/Ranking/heroes.tpl new file mode 100644 index 00000000..eac93e6d --- /dev/null +++ b/Templates/Ranking/heroes.tpl @@ -0,0 +1,74 @@ + | +| Copyright: TravianX Project All rights reserved | +\** --------------------------------------------------- **/ + + if(!is_numeric($_SESSION['search'])) { + echo "

    The user " . $_SESSION['search'] . " does not exist or has no hero.

    "; + $search = 0; + } else { + $search = $_SESSION['search']; + } + +?> + + + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank()) - 1; + } + while($_GET['rank'] > (20 * $multiplier)) { + $multiplier += 1; + } + $start = 20 * $multiplier - 19; + } else { + $start = ($_SESSION['start'] + 1); + } + } else { + $start = ($_SESSION['start'] + 1); + } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i = $start; $i < ($start + 20); $i++) { + if(isset($ranking[$i]['name']) && $ranking[$i] != "pad") { + if($ranking[$i]['uid'] == $session->uid) { + echo " + + + + + + "; + } + } + } else { + echo ""; + } + +?> + +
    + The most experienced heroes
    HeroPlayerLevelExperience
    "; + } else { + echo "
    "; + } + echo $i . ". + \"\" " . $ranking[$i]['name'] . "
    " . $ranking[$i]['owner'] . "
    " . $ranking[$i]['level'] . "" . $ranking[$i]['experience'] . "
    No heros found
    + \ No newline at end of file diff --git a/Templates/Ranking/overview.tpl b/Templates/Ranking/overview.tpl new file mode 100644 index 00000000..f6f30a1b --- /dev/null +++ b/Templates/Ranking/overview.tpl @@ -0,0 +1,67 @@ +The user ".$_SESSION['search']." does not exist.

    "; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank())-1; + } + while($_GET['rank'] > (20*$multiplier)) { + $multiplier +=1; + } + $start = 20*$multiplier-19; + } else { $start = ($_SESSION['start']+1); } + } else { $start = ($_SESSION['start']+1); } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i=$start;$i<($start+20);$i++) { + if(isset($ranking[$i]['username']) && $ranking[$i] != "pad") { + if($i == $search) { + echo ""; + } + } + } + else { + echo ""; + } + ?> + +
    + The largest players
    +
    PlayerAlliancePopulationVillages
    "; + } + else { + echo "
    "; + } + echo $i."."; + if($ranking[$i]['access'] > 2){ + echo"".$ranking[$i]['username'].""; + } else { + echo"".$ranking[$i]['username'].""; + } + echo""; + if($ranking[$i]['aname'] != "") { + echo "".$ranking[$i]['aname'].""; + } + else { + echo "-"; + } + echo "".$ranking[$i]['totalpop']."".$ranking[$i]['totalvillage']."
    No users found
    + diff --git a/Templates/Ranking/player_1.tpl b/Templates/Ranking/player_1.tpl new file mode 100644 index 00000000..032ce3c1 --- /dev/null +++ b/Templates/Ranking/player_1.tpl @@ -0,0 +1,67 @@ +The user ".$_SESSION['search']." does not exist.

    "; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank())-1; + } + while($_GET['rank'] > (20*$multiplier)) { + $multiplier +=1; + } + $start = 20*$multiplier-19; + } else { $start = ($_SESSION['start']+1); } + } else { $start = ($_SESSION['start']+1); } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i=$start;$i<($start+20);$i++) { + if(isset($ranking[$i]['username']) && $ranking[$i] != "pad") { + if($i == $search) { + echo ""; + } + } + } + else { + echo ""; + } + ?> + +
    + The largest Romans
    +
    PlayerAlliancePopulationVillages
    "; + } + else { + echo "
    "; + } + echo $i."."; + if($ranking[$i]['access'] > 2){ + echo"".$ranking[$i]['username'].""; + } else { + echo"".$ranking[$i]['username'].""; + } + echo""; + if($ranking[$i]['alliance'] != 0) { + echo "".$ranking[$i]['aname'].""; + } + else { + echo "-"; + } + echo "".$ranking[$i]['totalpop']."".$ranking[$i]['totalvillage']."
    No users found
    + \ No newline at end of file diff --git a/Templates/Ranking/player_2.tpl b/Templates/Ranking/player_2.tpl new file mode 100644 index 00000000..91b8113d --- /dev/null +++ b/Templates/Ranking/player_2.tpl @@ -0,0 +1,67 @@ +The user ".$_SESSION['search']." does not exist.

    "; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank())-1; + } + while($_GET['rank'] > (20*$multiplier)) { + $multiplier +=1; + } + $start = 20*$multiplier-19; + } else { $start = ($_SESSION['start']+1); } + } else { $start = ($_SESSION['start']+1); } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i=$start;$i<($start+20);$i++) { + if(isset($ranking[$i]['username']) && $ranking[$i] != "pad") { + if($i == $search) { + echo ""; + } + } + } + else { + echo ""; + } + ?> + +
    + The largest Teutons
    +
    PlayerAlliancePopulationVillages
    "; + } + else { + echo "
    "; + } + echo $i."."; + if($ranking[$i]['access'] > 2){ + echo"".$ranking[$i]['username'].""; + } else { + echo"".$ranking[$i]['username'].""; + } + echo""; + if($ranking[$i]['alliance'] != 0) { + echo "".$ranking[$i]['aname'].""; + } + else { + echo "-"; + } + echo "".$ranking[$i]['totalpop']."".$ranking[$i]['totalvillage']."
    No users found
    + \ No newline at end of file diff --git a/Templates/Ranking/player_3.tpl b/Templates/Ranking/player_3.tpl new file mode 100644 index 00000000..6d44b497 --- /dev/null +++ b/Templates/Ranking/player_3.tpl @@ -0,0 +1,67 @@ +The user ".$_SESSION['search']." does not exist.

    "; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank())-1; + } + while($_GET['rank'] > (20*$multiplier)) { + $multiplier +=1; + } + $start = 20*$multiplier-19; + } else { $start = ($_SESSION['start']+1); } + } else { $start = ($_SESSION['start']+1); } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i=$start;$i<($start+20);$i++) { + if(isset($ranking[$i]['username']) && $ranking[$i] != "pad") { + if($i == $search) { + echo ""; + } + } + } + else { + echo ""; + } + ?> + +
    + The largest Gauls
    +
    PlayerAlliancePopulationVillages
    "; + } + else { + echo "
    "; + } + echo $i."."; + if($ranking[$i]['access'] > 2){ + echo"".$ranking[$i]['username'].""; + } else { + echo"".$ranking[$i]['username'].""; + } + echo""; + if($ranking[$i]['alliance'] != 0) { + echo "".$ranking[$i]['aname'].""; + } + else { + echo "-"; + } + echo "".$ranking[$i]['totalpop']."".$ranking[$i]['totalvillage']."
    No users found
    + \ No newline at end of file diff --git a/Templates/Ranking/player_attack.tpl b/Templates/Ranking/player_attack.tpl new file mode 100644 index 00000000..f796df21 --- /dev/null +++ b/Templates/Ranking/player_attack.tpl @@ -0,0 +1,58 @@ +The user ".$_SESSION['search']." does not exist.

    "; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank())-1; + } + while($_GET['rank'] > (20*$multiplier)) { + $multiplier +=1; + } + $start = 20*$multiplier-19; + } else { $start = ($_SESSION['start']+1); } + } else { $start = ($_SESSION['start']+1); } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i=$start;$i<($start+20);$i++) { + if(isset($ranking[$i]['username']) && $ranking[$i] != "pad") { + if($session->uid == $ranking[$i]['id']){ + echo ""; + } + } + } + else { + echo ""; + } + ?> + diff --git a/Templates/Ranking/player_defend.tpl b/Templates/Ranking/player_defend.tpl new file mode 100644 index 00000000..11f60f59 --- /dev/null +++ b/Templates/Ranking/player_defend.tpl @@ -0,0 +1,61 @@ +The user ".$_SESSION['search']." does not exist.

    "; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> +
    + The most successful attackers +
    PlayerPopulationVillagesPoints
    "; + } + else { + echo "
    "; + } + echo $i."."; + if($ranking[$i]['access'] > 2){ + echo"".$ranking[$i]['username'].""; + } else { + echo"".$ranking[$i]['username'].""; + } + echo"".$ranking[$i]['totalpop'].""; + echo "".$ranking[$i]['totalvillages']."".$ranking[$i]['apall']."
    No users found
    + + + + + + + count($ranking->getRank())) { + $_GET['rank'] = count($ranking->getRank())-1; + } + while($_GET['rank'] > (20*$multiplier)) { + $multiplier +=1; + } + $start = 20*$multiplier-19; + } else { $start = ($_SESSION['start']+1); } + } else { $start = ($_SESSION['start']+1); } + if(count($ranking->getRank()) > 0) { + $ranking = $ranking->getRank(); + for($i=$start;$i<($start+20);$i++) { + if(isset($ranking[$i]['username']) && $ranking[$i] != "pad") { + if($session->uid == $ranking[$i]['id']){ + echo ""; + } + } + } + else { + echo ""; + } + ?> + +
    + The most successful defenders +
    PlayerPopulationVillagesPoints
    "; + } + else { + echo "
    "; + } + echo $i."."; + if($ranking[$i]['access'] > 2){ + echo"".$ranking[$i]['username'].""; + } else { + echo"".$ranking[$i]['username'].""; + } + echo"".$ranking[$i]['totalpop']; + echo "".$ranking[$i]['totalvillages']."".$ranking[$i]['dpall']."
    No users found
    + diff --git a/Templates/Ranking/player_top10.tpl b/Templates/Ranking/player_top10.tpl new file mode 100644 index 00000000..17abaca8 --- /dev/null +++ b/Templates/Ranking/player_top10.tpl @@ -0,0 +1,221 @@ + 3 AND tribe<=3 ORDER BY ap DESC Limit 10"); + $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE username = '".$session->username."' ORDER BY ap DESC Limit 1"); + ?> + + + + + + +
    Top 10 players
    + + + + + + + + + + + + + +username) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + +username) { + echo ""; } else { echo ""; } + echo ""; + if($row['username'] == $session->username) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } +?> + +
    Instructions + Attackers of the week
    No.PlayerPoints
    ".$i++.". ".$row['username']."".$row['ap']."
    ".$row['username']."".$row['username']."".$row['ap']."
    + + + 3 AND tribe<=3 ORDER BY dp DESC Limit 10"); + $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE username = '".$session->username."' ORDER BY dp DESC Limit 1"); +?> + + + + + + + + + + + + + +username) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + + +username) { + echo ""; } else { echo ""; } + echo ""; + if($row['username'] == $session->username) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } +?> + +
    Instructions + Defenders of the week
    No.PlayerPoints
    ".$i++.". ".$row['username']."".$row['dp']."
    ".$row['username']."".$row['username']."".$row['dp']."
    + + 3 AND tribe<=3 ORDER BY clp DESC Limit 10"); + $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE username = '".$session->username."' ORDER BY clp DESC Limit 1"); +?> +
    + + + + + + + + + + + + + +username) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + +username) { + echo ""; } else { echo ""; } + echo ""; + if($row['username'] == $session->username) { + echo ""; } else { echo ""; } echo ""; + echo ""; + } +?> + +
    Instructions + Climbers of the week
    No.PlayerRanks
    ".$i++.". ".$row['username']."".$row['clp']."
    ".$row['username']."".$row['username']."".$row['clp']."
    + 3 AND tribe<=3 ORDER BY RR DESC Limit 10"); + $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE username = '".$session->username."' ORDER BY RR DESC Limit 1"); +?> + + + + + + + + + + + + + +username) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + +username) { + echo ""; } else { echo ""; } + echo ""; + if($row['username'] == $session->username) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } + + mysql_close($con); +?> + +
    Instructions + Robbers of the week
    No.PlayerResources
    ".$i++.". ".$row['username']."".$row['RR']."
    ".$row['username']."".$row['username']."".$row['RR']."
    +
    diff --git a/Templates/Ranking/ranksearch.tpl b/Templates/Ranking/ranksearch.tpl new file mode 100644 index 00000000..d42e5359 --- /dev/null +++ b/Templates/Ranking/ranksearch.tpl @@ -0,0 +1,30 @@ + + + + + + + + + + + + diff --git a/Templates/Simulator/def_2.tpl b/Templates/Simulator/def_2.tpl new file mode 100644 index 00000000..c6eddddb --- /dev/null +++ b/Templates/Simulator/def_2.tpl @@ -0,0 +1,129 @@ + + + + + + + + + diff --git a/Templates/Simulator/def_3.tpl b/Templates/Simulator/def_3.tpl new file mode 100644 index 00000000..775c8409 --- /dev/null +++ b/Templates/Simulator/def_3.tpl @@ -0,0 +1,129 @@ + + + + + + + + + diff --git a/Templates/Simulator/def_4.tpl b/Templates/Simulator/def_4.tpl new file mode 100644 index 00000000..8d10fa2a --- /dev/null +++ b/Templates/Simulator/def_4.tpl @@ -0,0 +1,121 @@ + + + + + + + + + diff --git a/Templates/Simulator/def_end.tpl b/Templates/Simulator/def_end.tpl new file mode 100644 index 00000000..4877a55f --- /dev/null +++ b/Templates/Simulator/def_end.tpl @@ -0,0 +1,58 @@ + + + + + + + +
    +
    + +
    +
    Romans
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Legionnaire + + Legionnaire + + + + +
    + + Praetorian + + Praetorian + + + + + +
    + Imperian + + Imperian + + + + +
    + Equites Legati + + Equites Legati + + + + + +
    + Equites Imperatoris + + + Equites Imperatoris + + + + +
    + Equites Caesaris + + + Equites Caesaris + + + + +
    + Battering Ram + + Battering Ram + + + + + +
    + Fire Catapult + + Fire Catapult + + + + + +
    + Senator + + Senator + + + +
    + Settler + + Settler + + + +
    +
    Teutons
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Clubswinger + + Clubswinger + + + + +
    + + Spearman + + Spearman + + + + + +
    + Axeman + + Axeman + + + + +
    + Scout + + Scout + + + + + +
    + Paladin + + + Paladin + + + + +
    + Teutonic Knight + + + Teutonic Knight + + + + +
    + Ram + + Ram + + + + + +
    + Catapult + + Catapult + + + + + +
    + Chief + + Chief + + + +
    + Settler + + Settler + + + +
    +
    Gauls
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Phalanx + + Phalanx + + + + +
    + + Swordsman + + Swordsman + + + + + +
    + Pathfinder + + Pathfinder + + + + +
    + Theutates Thunder + + Theutates Thunder + + + + + +
    + Druidrider + + + Druidrider + + + + +
    + Haeduan + + + Haeduan + + + + +
    + Ram + + Ram + + + + + +
    + Trebuchet + + Trebuchet + + + + + +
    + Chieftain + + Chieftain + + + +
    + Settler + + Settler + + + +
    +
    Nature
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Rat + + Rat + + + +
    + Spider + + Spider + + + +
    + Snake + + Snake + + + +
    + Bat + + Bat + + + +
    + Wild Boar + + Wild Boar + + + +
    + Wolf + + Wolf + + + +
    + Bear + + Bear + + + +
    + Crocodile + + Crocodile + + + +
    + Tiger + + Tiger + + + +
    + Elephant + + Elephant + + + +
    +
    Other
    + + + + + + + + + + + + + + "; + } + if(in_array(2,$target)) { + echo " + + + + + + "; + } + if(in_array(3,$target)) { + echo " + + + + + + "; + } + ?> + + + + + + + + + + + + +
    PopulationPopulationgetValue('ew2'); ?>" maxlength="4" title="number Population" />
    \"CityCity Wall
    \"EarthEarth Wall
    \"Palisade\"Palisade
    PalacePalacegetValue('palast'); ?>" maxlength="2" title="level Palace" />
    PalaceStonemason's LodgegetValue('stonemason'); ?>" maxlength="2" title="Level Stonemason's Lodge" />
    +
    diff --git a/Templates/Simulator/res_1.tpl b/Templates/Simulator/res_1.tpl new file mode 100644 index 00000000..ba6d9c20 --- /dev/null +++ b/Templates/Simulator/res_1.tpl @@ -0,0 +1,85 @@ + + + + + + + + + + + +
    + Defender + + Legionnaire + + + Praetorian + + Imperian + + Equites Legati + + Equites Imperatoris + + + Equites Caesaris + + Battering Ram + + Fire Catapult + + Senator + + Settler + +
    + Troops + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 +
    + Casualties + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 +
    \ No newline at end of file diff --git a/Templates/Simulator/res_2.tpl b/Templates/Simulator/res_2.tpl new file mode 100644 index 00000000..f595106e --- /dev/null +++ b/Templates/Simulator/res_2.tpl @@ -0,0 +1,85 @@ + + + + + + + + + + + +
    + Defender + + + Clubswinger + + Spearman + + Axeman + + Scout + + Paladin + + + Teutonic Knight + + Ram + + Catapult + + Chief + + + Settler +
    + Troops + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 +
    + Casualties + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 +
    \ No newline at end of file diff --git a/Templates/Simulator/res_3.tpl b/Templates/Simulator/res_3.tpl new file mode 100644 index 00000000..55cb1b9a --- /dev/null +++ b/Templates/Simulator/res_3.tpl @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + +
    + Defender + + Phalanx + + Swordsman + + Pathfinder + + + Theutates Thunder + + Druidrider + + Haeduan + + Ram + + Trebuchet + + + Chieftain + + Settler +
    + + Troops + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 +
    + Casualties + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 +
    \ No newline at end of file diff --git a/Templates/Simulator/res_4.tpl b/Templates/Simulator/res_4.tpl new file mode 100644 index 00000000..e6609219 --- /dev/null +++ b/Templates/Simulator/res_4.tpl @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + +
    + Defender + + Rat + + + Spider + + Snake + + Bat + + Wild Boar + + Wolf + + + Bear + + Crocodile + + Tiger + + Elephant +
    + + Troops + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 +
    + Casualties + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 +
    \ No newline at end of file diff --git a/Templates/Simulator/res_a1.tpl b/Templates/Simulator/res_a1.tpl new file mode 100644 index 00000000..d776fa99 --- /dev/null +++ b/Templates/Simulator/res_a1.tpl @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Attacker + + Legionnaire + + Praetorian + + Imperian + + Equites Legati + + Equites Imperatoris + + Equites Caesaris + + Battering Ram + + Fire Catapult + + Senator + + Settler +
    + Troops + getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_1');} ?>getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_2');} ?>getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_3');} ?>getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_4');} ?>getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_5');} ?>getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_6');} ?>getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_7');} ?>getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_8');} ?>getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_9');} ?>getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_10');} ?>
    + Casualties + getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>
    diff --git a/Templates/Simulator/res_a2.tpl b/Templates/Simulator/res_a2.tpl new file mode 100644 index 00000000..8dae3386 --- /dev/null +++ b/Templates/Simulator/res_a2.tpl @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Attacker + + + Clubswinger + + Spearman + + Axeman + + Scout + + Paladin + + Teutonic Knight + + Ram + + Catapult + + Chief + + Settler +
    + Troops + getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_1');} ?>getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_2');} ?>getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_3');} ?>getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_4');} ?>getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_5');} ?>getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_6');} ?>getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_7');} ?>getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_8');} ?>getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_9');} ?>getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_10');} ?>
    + Casualties + getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>
    diff --git a/Templates/Simulator/res_a3.tpl b/Templates/Simulator/res_a3.tpl new file mode 100644 index 00000000..ea8c954c --- /dev/null +++ b/Templates/Simulator/res_a3.tpl @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Attacker + + Phalanx + + Swordsman + + Pathfinder + + Theutates Thunder + + Druidrider + + Haeduan + + Ram + + Trebuchet + + Chieftain + + Settler +
    + + Troops + getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_1');} ?>getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_2');} ?>getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_3');} ?>getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_4');} ?>getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_5');} ?>getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_6');} ?>getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_7');} ?>getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_8');} ?>getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_9');} ?>getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a1_10');} ?>
    + Casualties + getValue('a1_1')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_2')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_3')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_4')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_5')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_6')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_7')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_8')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_9')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>getValue('a1_10')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][1]);} ?>
    diff --git a/Templates/Simulator/res_d1.tpl b/Templates/Simulator/res_d1.tpl new file mode 100644 index 00000000..67a8ca35 --- /dev/null +++ b/Templates/Simulator/res_d1.tpl @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Defender + + Legionnaire + + Praetorian + + Imperian + + Equites Legati + + Equites Imperatoris + + Equites Caesaris + + Battering Ram + + Fire Catapult + + Senator + + Settler + +
    + Troops + getValue('a2_1')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_1');} ?>getValue('a2_2')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_2');} ?>getValue('a2_3')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_3');} ?>getValue('a2_4')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_4');} ?>getValue('a2_5')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_5');} ?>getValue('a2_6')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_6');} ?>getValue('a2_7')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_7');} ?>getValue('a2_8')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_8');} ?>getValue('a2_9')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_9');} ?>getValue('a2_10')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_10');} ?>
    + Casualties + getValue('a2_1')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_2')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_3')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_4')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_5')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_6')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_7')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_8')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_9')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_10')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>
    diff --git a/Templates/Simulator/res_d2.tpl b/Templates/Simulator/res_d2.tpl new file mode 100644 index 00000000..d0693156 --- /dev/null +++ b/Templates/Simulator/res_d2.tpl @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Defender + + Clubswinger + + Spearman + + Axeman + + Scout + + Paladin + + Teutonic Knight + + Ram + + Catapult + + Chief + + Settler +
    + Troops + getValue('a2_11')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_11');} ?>getValue('a2_12')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_12');} ?>getValue('a2_13')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_13');} ?>getValue('a2_14')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_14');} ?>getValue('a2_15')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_15');} ?>getValue('a2_16')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_16');} ?>getValue('a2_17')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_17');} ?>getValue('a2_18')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_18');} ?>getValue('a2_19')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_19');} ?>getValue('a2_20')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_20');} ?>
    + Casualties + getValue('a2_11')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_12')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_13')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_14')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_15')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_16')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_17')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_18')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_19')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_20')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>
    diff --git a/Templates/Simulator/res_d3.tpl b/Templates/Simulator/res_d3.tpl new file mode 100644 index 00000000..5823ff3d --- /dev/null +++ b/Templates/Simulator/res_d3.tpl @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Defender + + Phalanx + + Swordsman + + Pathfinder + + Theutates Thunder + + Druidrider + + Haeduan + + Ram + + Trebuchet + + Chieftain + + Settler +
    + + Troops + getValue('a2_21')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_21');} ?>getValue('a2_22')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_22');} ?>getValue('a2_23')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_23');} ?>getValue('a2_24')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_24');} ?>getValue('a2_25')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_25');} ?>getValue('a2_26')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_26');} ?>getValue('a2_27')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_27');} ?>getValue('a2_28')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_28');} ?>getValue('a2_29')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_29');} ?>getValue('a2_30')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_30');} ?>
    + Casualties + getValue('a2_21')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_22')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_23')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_24')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_25')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_26')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_27')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_28')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_29')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_30')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>
    diff --git a/Templates/Simulator/res_d4.tpl b/Templates/Simulator/res_d4.tpl new file mode 100644 index 00000000..5d97ac8a --- /dev/null +++ b/Templates/Simulator/res_d4.tpl @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Defender + + Rat + + + Spider + + Snake + + Bat + + Wild Boar + + Wolf + + + Bear + + Crocodile + + Tiger + + Elephant +
    + + Troops + getValue('a2_31')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_31');} ?>getValue('a2_32')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_32');} ?>getValue('a2_33')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_33');} ?>getValue('a2_34')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_34');} ?>getValue('a2_35')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_35');} ?>getValue('a2_36')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_36');} ?>getValue('a2_37')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_37');} ?>getValue('a2_38')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_38');} ?>getValue('a2_39')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_39');} ?>getValue('a2_40')) { echo "class=\"none\">0"; }else{ echo ">".$form->getValue('a2_40');} ?>
    + Casualties + getValue('a2_31')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_32')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_33')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_34')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_35')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_36')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_37')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_38')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_39')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>getValue('a2_40')) { echo "class=\"none\">0"; }else{ echo ">".$dead = round($troops * $_POST['result'][2]);} ?>
    diff --git a/Templates/Simulator/return.tpl b/Templates/Simulator/return.tpl new file mode 100644 index 00000000..988508b7 --- /dev/null +++ b/Templates/Simulator/return.tpl @@ -0,0 +1,340 @@ +
    + + + + + + + + + + +
    + Agresor + + Legionario + + + Pretoriano + + Imperano + + Equites Legati + + Equites Imperatoris + + + Equites Caesaris + + Carnero + + Catapulta de fuego + + Senador + + Colono + +
    + Tropas + + 1 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 +
    + Pérdidas + + 1 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 +
    + + + + + + + + + + +
    + Defensor + + + Legionario + + Pretoriano + + Imperano + + Equites Legati + + Equites Imperatoris + + + Equites Caesaris + + Carnero + + Catapulta de fuego + + Senador + + + Colono +
    + Tropas + + 1 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 +
    + Pérdidas + + 0 + + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 +
    + + + + + + + + + + + + + +
    + Defensor + + Luchador de Porra + + Lancero + + Luchador de Hacha + + + Emisario + + Paladín + + Jinete Teutón + + Ariete + + Catapulta + + + Cabecilla + + Colono +
    + + Tropas + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 +
    + Pérdidas + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 +
    + + + + + + + + + + + +
    + Defensor + + Falange + + + Luchador de Espada + + Batidor + + Rayo de Teutates + + Jinete Druida + + Jinete Eduo + + + Carnero de madera + + Catapulta de guerra + + Cacique + + Colono +
    + Tropas + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 +
    + Pérdidas + + 0 + + 0 + + + 0 + + 0 + + 0 + + 0 + + 0 + + 0 + + + 0 + + 0 +
    + diff --git a/Templates/Tutorial/1.tpl b/Templates/Tutorial/1.tpl new file mode 100644 index 00000000..6d714788 --- /dev/null +++ b/Templates/Tutorial/1.tpl @@ -0,0 +1,98 @@ + + +

    (1/5) Your village

    + + + + + + + + + + + + + + + + + + + + + +
    + + + + This is how you start... + + + + ...and later your village could look like that.
    In the beginning your small village will have just one building. + +

    + +We will show you how to expand your village so that it becomes a mighty and prosperous city on the next page.
    + + + + + + + + + + + + + + + + + +
    + + + + + +
    +
    +
    + + +
    \ No newline at end of file diff --git a/Templates/Tutorial/2.tpl b/Templates/Tutorial/2.tpl new file mode 100644 index 00000000..a794b3f5 --- /dev/null +++ b/Templates/Tutorial/2.tpl @@ -0,0 +1,98 @@ + + +

    (2/5) Resources

    + + + + + + + + + + + + + + + + + + + + + +
    + + + + 1. Choose a resource field + + + + 2. Extend the resource field
    There are four different types of resources in Travian: lumber, clay, iron and crop. + +

    + +Before you expand your village's buildings, you should develop some resource fields to increase your resource supply.
    + + + + + + + + + + + + + + + + + +
    + + + + + + +
    + + + + \ No newline at end of file diff --git a/Templates/Tutorial/3.tpl b/Templates/Tutorial/3.tpl new file mode 100644 index 00000000..a5fa28ca --- /dev/null +++ b/Templates/Tutorial/3.tpl @@ -0,0 +1,96 @@ +

    (3/5) Buildings

    + + + + + + + + + + + + + + + + + + + + + +
    + + + + 1. Choose building site + + + + 2. Construct a building
    After taking care of your resource supply you can start the expansion of your village. + +

    + +A warehouse and a granary enable you to store more resources. A cranny saves your resources from getting stolen by enemy raiders.
    + + + + + + + + + + + + + + + + + +
    + + + + + + +
    + + + + \ No newline at end of file diff --git a/Templates/Tutorial/4.tpl b/Templates/Tutorial/4.tpl new file mode 100644 index 00000000..d5bd7216 --- /dev/null +++ b/Templates/Tutorial/4.tpl @@ -0,0 +1,90 @@ +

    (4/5) Neighbours

    + + + + + + + + + + + + + + + + + + + +
    + + + + Your village and your neighbours
    In Travian you are not alone; you interact with thousands of other players in the Travian world. + +

    + +The players in your surrounding area are most important to you. Thanks to the map you have a good overview of who they are.
    + + + + + + + + + + + + + + + + + +
    + + + + + + +
    + + + + \ No newline at end of file diff --git a/Templates/Tutorial/5.tpl b/Templates/Tutorial/5.tpl new file mode 100644 index 00000000..108c322e --- /dev/null +++ b/Templates/Tutorial/5.tpl @@ -0,0 +1,104 @@ +

    (5/5) Navigation

    + + + + + + + + + + + + + + + + + + + + + + + + + +
    + + + + The navigation bar
      + +
    1. Overview: Here you find your resource fields
    2. + +
    3. Centre: In the village you can build buildings
    4. + +
    5. Map: Here you can have a look at your village's surrounding area and your neighbours
    6. + +
    7. Statistics: Ranking of all players
    8. + +
    9. Reports: Information on happenings in your village
    10. + +
    11. Messages: Send and receive messages
    Now you know everything important about Travian. After registration you can start playing!
    + + + + + + + + + + + + + + + + + +
    + + + + + + +
    + + + + \ No newline at end of file diff --git a/Templates/a2b/attack.tpl b/Templates/a2b/attack.tpl new file mode 100644 index 00000000..b57aba94 --- /dev/null +++ b/Templates/a2b/attack.tpl @@ -0,0 +1,416 @@ +getCoor($village->wid); + +$from = array('x'=>$eigen['x'], 'y'=>$eigen['y']); + +$to = array('x'=>$coor['x'], 'y'=>$coor['y']); + +$time = $generator->procDistanceTime($from,$to,300,0); + +// Temp + +$ckey= $generator->generateRandStr(6); + + + if (!isset($process['t1']) || $process['t1'] == ''){ $t1='0'; }else{ $t1=$process['t1']; } + if (!isset($process['t2']) || $process['t2'] == ''){ $t2='0'; }else{ $t2=$process['t2']; } + if (!isset($process['t3']) || $process['t3'] == ''){ $t3='0'; }else{ $t3=$process['t3']; if ($session->tribe == 3){ $scout=1; } } + if (!isset($process['t4']) || $process['t4'] == ''){ $t4='0'; }else{ $t4=$process['t4']; if ($session->tribe == 1 || $session->tribe == 2 || $session->tribe == 4 || $session->tribe == 5){ $scout=1;} } + if (!isset($process['t5']) || $process['t5'] == ''){ $t5='0'; }else{ $t5=$process['t5']; } + if (!isset($process['t6']) || $process['t6'] == ''){ $t6='0'; }else{ $t6=$process['t6']; } + if (!isset($process['t7']) || $process['t7'] == ''){ $t7='0'; }else{ $t7=$process['t7']; } + if (!isset($process['t8']) || $process['t8'] == ''){ $t8='0'; }else{ $t8=$process['t8']; } + if (!isset($process['t9']) || $process['t9'] == ''){ $t9='0'; }else{ $t9=$process['t9']; } + if (!isset($process['t10']) || $process['t10'] == ''){ $t10='0'; }else{ $t10=$process['t10']; } + if (!isset($process['t11']) || $process['t11'] == ''){ $t11='0'; }else{ $t11=$process['t11']; $showhero=1;} + if ($session->tribe == 3){ + $totalunits =$process['t1']+$process['t2']+$process['t4']+$process['t5']+$process['t6']+$process['t7']+$process['t8']+$process['t9']+$process['t10']+$process['t11']; + + }else{ + $totalunits =$process['t1']+$process['t2']+$process['t3']+$process['t5']+$process['t6']+$process['t7']+$process['t8']+$process['t9']+$process['t10']+$process['t11']; + } + if ($scout==1 && $totalunits==0) { + +$process['c'] = 1; + +} + $id = $database->addA2b($ckey,time(),$process['0'],$t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10,$t11,$process['c']); + + + +if ($process['c']==1){ + +$actionType = "Scout"; + +}else if ($process['c']==2){ + +$actionType = "Reinforcement"; + +}elseif ($process['c']==3){ + +$actionType = "Normal attack"; + +}else{ + +$actionType = "Raid"; + +} + +$uid = $session->uid; + +$tribe = $session->tribe; +$start = ($tribe-1)*10+1; +$end = ($tribe*10); +?> + +

    +access != BANNED){ ?> + + + + + + + + + + + + + + + + + + + + + + + + +
    Destination: (|)
    Owner:getUserField($process['2'],'username',0); ?>
    + + + + + + + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; + } if ($process['t11'] != ''){ + echo ""; + + }?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + ".$process['t11']."";} ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0) + + { + + if ($i<11) + $speeds[] = ${'u'.(($session->tribe-1)*10+$i)}['speed']; + else + { + //$uid + $q = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = $uid"; + $result = mysql_query($q); + $hero_f=mysql_fetch_array($result); + $hero_unit=$hero_f['unit']; + $speeds[] = ${'u'.$hero_unit}['speed']; + } + + if($i != 4) + + $scout = 0; + + } + + + + } + + } + + + + + + if($scout) + + $process['c'] = 1; + + + $time = $generator->procDistanceTime($from,$to,min($speeds),1); + + ?> + + + + + + + + + +
    ">
    \"Hero\"
    Troops0"; }else{ echo ">".$process['t1'];} ?>0"; }else{ echo ">".$process['t2'];} ?>0"; }else{ echo ">".$process['t3'];} ?>0"; }else{ echo ">".$process['t4'];} ?>0"; }else{ echo ">".$process['t5'];} ?>0"; }else{ echo ">".$process['t6'];} ?>0"; }else{ echo ">".$process['t7'];} ?>0"; }else{ $kata='1'; echo ">".$process['t8'];} ?>0"; }else{ echo ">".$process['t9'];} ?>0"; }else{ echo ">".$process['t10'];} ?>
    OptionsScout resources and troops
    + Scout defences and troops
    Destination: + + + + getTypeLevel(16) == 20) { ?> + + + + (will be attacked by catapult(s)) +
    Destination: + ONLY shoot with a normal attack (they dont shoot with raids!)"; + ?> +
    Arrived:"> + +
    in getTimeFormat($time); ?>
    + +
    at procMtime(date('U')+$time,9)?> hours
    + +
    + + + + + + + + + + + + +hasBeginnerProtection($process['0'])==1) { + echo"User presently has beginners protection"; + } else { +?> +

    + + + + + \ No newline at end of file diff --git a/Templates/a2b/newdorf.tpl b/Templates/a2b/newdorf.tpl new file mode 100644 index 00000000..40dbc3bc --- /dev/null +++ b/Templates/a2b/newdorf.tpl @@ -0,0 +1,80 @@ +getVillage($village->wid); +$newvillage = $database->getMInfo($_GET['id']); +$eigen = $database->getCoor($village->wid); +$from = array('x'=>$eigen['x'], 'y'=>$eigen['y']); +$to = array('x'=>$newvillage['x'], 'y'=>$newvillage['y']); +$time = $generator->procDistanceTime($from,$to,300,0); + +echo '
    ';
    +//print_r($founder);
    +echo '
    '; +?> + +

    Found new village

    + +
    + + + + + + + + + + + + + + + tribe-1)*10+1;$i<=$session->tribe*10;$i++) { + echo ""; + } ?> + + + + 0"; + } ?> + + + + + + + + + + + + + + + +
    username; ?>Found new village (|)
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
    Troops3
    DurationDuration getTimeFormat($time); ?>
    Resources + Wood750 | + Clay750 | + Iron750 | + Crop750
    +

    +getProfileVillages($session->uid)); +$need_cps = ${'cp'.$mode}[$total]; +$cps = $session->cp; + +if($cps >= $need_cps) { +?> + + +

    +

    + + + diff --git a/Templates/a2b/search.tpl b/Templates/a2b/search.tpl new file mode 100644 index 00000000..da0a462c --- /dev/null +++ b/Templates/a2b/search.tpl @@ -0,0 +1,56 @@ + + + + + + + + + + + + + +getCoor($_GET['z']); +} +else{ +$coor['x'] = ""; +$coor['y'] = ""; +} +?> + + +
    + + + + Village: + +
    + + + + or
    + + + x: + + y: + +
    + + + +

    getError("error"); ?>

    + diff --git a/Templates/a2b/sendback_1.tpl b/Templates/a2b/sendback_1.tpl new file mode 100644 index 00000000..48834336 --- /dev/null +++ b/Templates/a2b/sendback_1.tpl @@ -0,0 +1,159 @@ +access != BANNED){ +$to = $database->getVillage($enforce['from']); +$fromcoor = $database->getCoor($enforce['from']); +$tocoor = $database->getCoor($enforce['vref']); + + $fromCor = array('x'=>$tocoor['x'], 'y'=>$tocoor['y']); + $toCor = array('x'=>$fromcoor['x'], 'y'=>$fromcoor['y']); +?> + +

    Send units back

    + +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Destination: (|)
    Owner:getUserField($to['owner'],'username',0); ?>
    + + + + + + + + + + +
    Send units back to
    + + + "; + + ?> + + "; + + ?> + "; + + ?> + + + "; + + ?> + + + "; + + ?> + + "; + + ?> + "; + + ?> + "; + + ?> + + + "; + + ?> + "; + ?> + + +
    Legionnaire name="t1" value="" maxlength="6" type="text"> + (".$enforce['u1'].")Equites Legati name="t4" value="" maxlength="6" type="text"> + (".$enforce['u4'].")Battering Ram name="t7" value="" maxlength="6" type="text"> + (".$enforce['u7'].")Senator name="t9" value="" maxlength="6" type="text"> + (".$enforce['u9'].")
    Praetorian name="t2" value="" maxlength="6" type="text"> + (".$enforce['u2'].")Equites Imperatoris name="t5" value="" maxlength="6" type="text"> + (".$enforce['u5'].")Fire Catapult name="t8" value="" maxlength="6" type="text"> + (".$enforce['u8'].")Settler name="t10" value="" maxlength="6" type="text"> + (".$enforce['u10'].")
    Imperian name="t3" value="" maxlength="6" type="text"> + (".$enforce['u3'].")Equites Caesaris name="t6" value="" maxlength="6" type="text"> + (".$enforce['u6'].")
    + + + + + + + getUserField($to['owner'],'tribe',0); + $start = ($att_tribe-1)*10+1; + $end = ($att_tribe*10); + $speeds = array(); + //find slowest unit. + for($i=$start;$i<=$end;$i++) + { + if (isset($enforce['u'.$i])) + { + if($enforce['u'.$i]!='' && $enforce['u'.$i]>0) + { + //$speeds[] = $unitspeeds[$i-2]; + $speeds[] = ${'u'.$i}['speed']; + } + } + } + $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); + + ?> + + + + +
    Arrived: +
    in getTimeFormat($time); ?>
    +
    at hours
    +
    + + + + + + + + +

    + +
    + + \ No newline at end of file diff --git a/Templates/a2b/sendback_2.tpl b/Templates/a2b/sendback_2.tpl new file mode 100644 index 00000000..8c60817b --- /dev/null +++ b/Templates/a2b/sendback_2.tpl @@ -0,0 +1,160 @@ +access != BANNED){ +$to = $database->getVillage($enforce['from']); +$fromcoor = $database->getCoor($enforce['from']); +$tocoor = $database->getCoor($enforce['vref']); + + $fromCor = array('x'=>$tocoor['x'], 'y'=>$tocoor['y']); + $toCor = array('x'=>$fromcoor['x'], 'y'=>$fromcoor['y']); +?> + +

    Send units back

    + +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Destination: (|)
    Owner:getUserField($to['owner'],'username',0); ?>
    + + + + + + + + + + +
    Send units back to
    + + + + "; + + ?> + + "; + + ?> + "; + + ?> + + + "; + + ?> + + + "; + + ?> + + "; + + ?> + "; + + ?> + "; + + ?> + + + "; + + ?> + "; + ?> + + +
    Clubswinger name="t1" value="" maxlength="6" type="text"> + (".$enforce['u11'].")Scout name="t4" value="" maxlength="6" type="text"> + (".$enforce['u14'].")Ram name="t7" value="" maxlength="6" type="text"> + (".$enforce['u17'].")Chief name="t9" value="" maxlength="6" type="text"> + (".$enforce['u19'].")
    Spearman name="t2" value="" maxlength="6" type="text"> + (".$enforce['u12'].")Paladin name="t5" value="" maxlength="6" type="text"> + (".$enforce['u15'].")Catapult name="t8" value="" maxlength="6" type="text"> + (".$enforce['u18'].")Settler name="t10" value="" maxlength="6" type="text"> + (".$enforce['u20'].")
    Axeman name="t3" value="" maxlength="6" type="text"> + (".$enforce['u13'].")Teutonic Knight name="t6" value="" maxlength="6" type="text"> + (".$enforce['u16'].")
    + + + + + + + getUserField($to['owner'],'tribe',0); + $start = ($att_tribe-1)*10+1; + $end = ($att_tribe*10); + $speeds = array(); + //find slowest unit. + for($i=$start;$i<=$end;$i++) + { + if (isset($enforce['u'.$i])) + { + if($enforce['u'.$i]!='' && $enforce['u'.$i]>0) + { + //$speeds[] = $unitspeeds[$i-2]; + $speeds[] = ${'u'.$i}['speed']; + } + } + } + $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); + + ?> + + + + +
    Arrived: +
    in getTimeFormat($time); ?>
    +
    at hours
    +
    + + + + + + + + +

    + +
    + + \ No newline at end of file diff --git a/Templates/a2b/sendback_3.tpl b/Templates/a2b/sendback_3.tpl new file mode 100644 index 00000000..10e77855 --- /dev/null +++ b/Templates/a2b/sendback_3.tpl @@ -0,0 +1,159 @@ +access != BANNED){ +$to = $database->getVillage($enforce['from']); +$fromcoor = $database->getCoor($enforce['from']); +$tocoor = $database->getCoor($enforce['vref']); + + $fromCor = array('x'=>$tocoor['x'], 'y'=>$tocoor['y']); + $toCor = array('x'=>$fromcoor['x'], 'y'=>$fromcoor['y']); +?> + +

    Send units back

    + +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Destination: (|)
    Owner:getUserField($to['owner'],'username',0); ?>
    + + + + + + + + + + +
    Send units back to
    + + + + "; + + ?> + + "; + + ?> + "; + + ?> + + "; + + ?> + + + "; + + ?> + + "; + + ?> + "; + + ?> + "; + + ?> + + + "; + + ?> + "; + ?> + + +
    Phalanx name="t1" value="" maxlength="6" type="text"> + (".$enforce['u21'].")Theutates Thunder name="t4" value="" maxlength="6" type="text"> + (".$enforce['u24'].")Ram name="t7" value="" maxlength="6" type="text"> + (".$enforce['u27'].")Chieftain name="t9" value="" maxlength="6" type="text"> + (".$enforce['u29'].")
    Swordsman name="t2" value="" maxlength="6" type="text"> + (".$enforce['u22'].")Druidrider name="t5" value="" maxlength="6" type="text"> + (".$enforce['u25'].")Trebuchet name="t8" value="" maxlength="6" type="text"> + (".$enforce['u28'].")Settler name="t10" value="" maxlength="6" type="text"> + (".$enforce['u30'].")
    Pathfinder name="t3" value="" maxlength="6" type="text"> + (".$enforce['u23'].")Haeduan name="t6" value="" maxlength="6" type="text"> + (".$enforce['u26'].")
    + + + + + + + getUserField($to['owner'],'tribe',0); + $start = ($att_tribe-1)*10+1; + $end = ($att_tribe*10); + $speeds = array(); + //find slowest unit. + for($i=$start;$i<=$end;$i++) + { + if (isset($enforce['u'.$i])) + { + if($enforce['u'.$i]!='' && $enforce['u'.$i]>0) + { + //$speeds[] = $unitspeeds[$i-2]; + $speeds[] = ${'u'.$i}['speed']; + } + } + } + $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); + + ?> + + + + +
    Arrived: +
    in getTimeFormat($time); ?>
    +
    at hours
    +
    + + + + + + + + +

    + +
    + + \ No newline at end of file diff --git a/Templates/a2b/sendback_4.tpl b/Templates/a2b/sendback_4.tpl new file mode 100644 index 00000000..846dcf96 --- /dev/null +++ b/Templates/a2b/sendback_4.tpl @@ -0,0 +1,160 @@ +access != BANNED){ +$to = $database->getVillage($enforce['from']); +$fromcoor = $database->getCoor($enforce['from']); +$tocoor = $database->getCoor($enforce['vref']); + + $fromCor = array('x'=>$tocoor['x'], 'y'=>$tocoor['y']); + $toCor = array('x'=>$fromcoor['x'], 'y'=>$fromcoor['y']); +?> + +

    Send units back

    + +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Destination: (|)
    Owner:getUserField($to['owner'],'username',0); ?>
    + + + + + + + + + + +
    Send units back to
    + + + + "; + + ?> + + "; + + ?> + "; + + ?> + + + "; + + ?> + + + "; + + ?> + + "; + + ?> + "; + + ?> + "; + + ?> + + + "; + + ?> + "; + ?> + + +
    Clubswinger name="t1" value="" maxlength="6" type="text"> + (".$enforce['u31'].")Scout name="t4" value="" maxlength="6" type="text"> + (".$enforce['u34'].")Ram name="t7" value="" maxlength="6" type="text"> + (".$enforce['u37'].")Chief name="t9" value="" maxlength="6" type="text"> + (".$enforce['u39'].")
    Spearman name="t2" value="" maxlength="6" type="text"> + (".$enforce['u32'].")Paladin name="t5" value="" maxlength="6" type="text"> + (".$enforce['u35'].")Catapult name="t8" value="" maxlength="6" type="text"> + (".$enforce['u38'].")Settler name="t10" value="" maxlength="6" type="text"> + (".$enforce['u40'].")
    Axeman name="t3" value="" maxlength="6" type="text"> + (".$enforce['u33'].")Teutonic Knight name="t6" value="" maxlength="6" type="text"> + (".$enforce['u36'].")
    + + + + + + + getUserField($to['owner'],'tribe',0); + $start = ($att_tribe-1)*10+1; + $end = ($att_tribe*10); + $speeds = array(); + //find slowest unit. + for($i=$start;$i<=$end;$i++) + { + if (isset($enforce['u'.$i])) + { + if($enforce['u'.$i]!='' && $enforce['u'.$i]>0) + { + //$speeds[] = $unitspeeds[$i-2]; + $speeds[] = ${'u'.$i}['speed']; + } + } + } + $time = $generator->procDistanceTime($fromCor,$toCor,min($speeds),1); + + ?> + + + + +
    Arrived: +
    in getTimeFormat($time); ?>
    +
    at hours
    +
    + + + + + + + + +

    + +
    + + \ No newline at end of file diff --git a/Templates/a2b/units_1.tpl b/Templates/a2b/units_1.tpl new file mode 100644 index 00000000..b9b736eb --- /dev/null +++ b/Templates/a2b/units_1.tpl @@ -0,0 +1,104 @@ +

    Send Troops

    + +
    + + + + + "; + }else{ + echo "(0)"; + } + ?> + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + "; + } + ?> + +
    Legionnaire unitarray['u1']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text"> + unitarray['u1']>0){ + echo "unitarray['u1']."; return false;\">(".$village->unitarray['u1'].")Equites Legati unitarray['u4']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text"> + unitarray['u4']>0){ + echo "unitarray['u4']."; return false;\">(".$village->unitarray['u4'].")Battering Ram unitarray['u7']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text"> + unitarray['u7']>0){ + echo "unitarray['u7']."; return false;\">(".$village->unitarray['u7'].")Senator unitarray['u9']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text"> + unitarray['u9']>0){ + echo "unitarray['u9']."; return false;\">(".$village->unitarray['u9'].")
    Praetorian unitarray['u2']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text"> + unitarray['u2']>0){ + echo "unitarray['u2']."; return false;\">(".$village->unitarray['u2'].")Equites Imperatoris unitarray['u5']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text"> + unitarray['u5']>0){ + echo "unitarray['u5']."; return false;\">(".$village->unitarray['u5'].")Fire Catapult unitarray['u8']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text"> + unitarray['u8']>0){ + echo "unitarray['u8']."; return false;\">(".$village->unitarray['u8'].")Settler unitarray['u10']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text"> + unitarray['u10']>0){ + echo "unitarray['u10']."; return false;\">(".$village->unitarray['u10'].")
    Imperian unitarray['u3']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text"> + unitarray['u3']>0){ + echo "unitarray['u3']."; return false;\">(".$village->unitarray['u3'].")Equites Caesaris unitarray['u6']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text"> + unitarray['u6']>0){ + echo "unitarray['u6']."; return false;\">(".$village->unitarray['u6'].")unitarray['hero']>0){ + echo "\"Hero\" "; + echo "unitarray['hero']."; return false;\">(".$village->unitarray['hero'].")
    + diff --git a/Templates/a2b/units_2.tpl b/Templates/a2b/units_2.tpl new file mode 100644 index 00000000..42723fc2 --- /dev/null +++ b/Templates/a2b/units_2.tpl @@ -0,0 +1,104 @@ +

    Send Troops

    + + + + + + + "; + }else{ + echo "(0)"; + } + ?> + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + "; + } + ?> + +
    Clubswinger unitarray['u11']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text"> + unitarray['u11']>0){ + echo "unitarray['u11']."; return false;\">(".$village->unitarray['u11'].")Scout unitarray['u14']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text"> + unitarray['u14']>0){ + echo "unitarray['u14']."; return false;\">(".$village->unitarray['u14'].")Ram unitarray['u17']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text"> + unitarray['u17']>0){ + echo "unitarray['u17']."; return false;\">(".$village->unitarray['u17'].")Chief unitarray['u19']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text"> + unitarray['u19']>0){ + echo "unitarray['u19']."; return false;\">(".$village->unitarray['u19'].")
    Spearman unitarray['u12']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text"> + unitarray['u12']>0){ + echo "unitarray['u12']."; return false;\">(".$village->unitarray['u12'].")Paladin unitarray['u15']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text"> + unitarray['u15']>0){ + echo "unitarray['u15']."; return false;\">(".$village->unitarray['u15'].")Catapult unitarray['u18']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text"> + unitarray['u18']>0){ + echo "unitarray['u18']."; return false;\">(".$village->unitarray['u18'].")Settler unitarray['u20']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text"> + unitarray['u20']>0){ + echo "unitarray['u20']."; return false;\">(".$village->unitarray['u20'].")
    Axeman unitarray['u13']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text"> + unitarray['u13']>0){ + echo "unitarray['u13']."; return false;\">(".$village->unitarray['u13'].")Teutonic Knight unitarray['u16']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text"> + unitarray['u16']>0){ + echo "unitarray['u16']."; return false;\">(".$village->unitarray['u16'].")unitarray['hero']>0){ + echo "\"Hero\" "; + echo "unitarray['hero']."; return false;\">(".$village->unitarray['hero'].")
    + diff --git a/Templates/a2b/units_3.tpl b/Templates/a2b/units_3.tpl new file mode 100644 index 00000000..e3700947 --- /dev/null +++ b/Templates/a2b/units_3.tpl @@ -0,0 +1,104 @@ +

    Send Troops

    + + + + + + + "; + }else{ + echo "(0)"; + } + ?> + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + "; + } + ?> + +
    Phalanx unitarray['u21']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text"> + unitarray['u21']>0){ + echo "unitarray['u21']."; return false;\">(".$village->unitarray['u21'].")Theutates Thunder unitarray['u24']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text"> + unitarray['u24']>0){ + echo "unitarray['u24']."; return false;\">(".$village->unitarray['u24'].")Ram unitarray['u27']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text"> + unitarray['u27']>0){ + echo "unitarray['u27']."; return false;\">(".$village->unitarray['u27'].")Chieftain unitarray['u29']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text"> + unitarray['u29']>0){ + echo "unitarray['u29']."; return false;\">(".$village->unitarray['u29'].")
    Swordsman unitarray['u22']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text"> + unitarray['u22']>0){ + echo "unitarray['u22']."; return false;\">(".$village->unitarray['u22'].")Druidrider unitarray['u25']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text"> + unitarray['u25']>0){ + echo "unitarray['u25']."; return false;\">(".$village->unitarray['u25'].")Trebuchet unitarray['u28']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text"> + unitarray['u28']>0){ + echo "unitarray['u28']."; return false;\">(".$village->unitarray['u28'].")Settler unitarray['u30']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text"> + unitarray['u30']>0){ + echo "unitarray['u30']."; return false;\">(".$village->unitarray['u30'].")
    Pathfinder unitarray['u23']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text"> + unitarray['u23']>0){ + echo "unitarray['u23']."; return false;\">(".$village->unitarray['u23'].")Haeduan unitarray['u26']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text"> + unitarray['u26']>0){ + echo "unitarray['u26']."; return false;\">(".$village->unitarray['u26'].")unitarray['hero']>0){ + echo "\"Hero\" "; + echo "unitarray['hero']."; return false;\">(".$village->unitarray['hero'].")
    + diff --git a/Templates/a2b/units_4.tpl b/Templates/a2b/units_4.tpl new file mode 100644 index 00000000..a13c2868 --- /dev/null +++ b/Templates/a2b/units_4.tpl @@ -0,0 +1,104 @@ +

    Send Troops

    + + + + + + + "; + }else{ + echo "(0)"; + } + ?> + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + + + "; + }else{ + echo "(0)"; + } + ?> + "; + }else{ + echo "(0)"; + } + ?> + "; + } + ?> + +
    <?php echo U31; ?> unitarray['u31']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text"> + unitarray['u31']>0){ + echo "unitarray['u31']."; return false;\">(".$village->unitarray['u31'].")<?php echo U34; ?> unitarray['u34']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text"> + unitarray['u34']>0){ + echo "unitarray['u34']."; return false;\">(".$village->unitarray['u34'].")<?php echo U37; ?> unitarray['u37']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text"> + unitarray['u37']>0){ + echo "unitarray['u37']."; return false;\">(".$village->unitarray['u37'].")<?php echo U39; ?> unitarray['u39']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text"> + unitarray['u39']>0){ + echo "unitarray['u39']."; return false;\">(".$village->unitarray['u39'].")
    <?php echo U32; ?> unitarray['u32']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text"> + unitarray['u32']>0){ + echo "unitarray['u32']."; return false;\">(".$village->unitarray['u32'].")<?php echo U35; ?> unitarray['u35']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text"> + unitarray['u35']>0){ + echo "unitarray['u35']."; return false;\">(".$village->unitarray['u35'].")<?php echo U38; ?> unitarray['u38']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text"> + unitarray['u38']>0){ + echo "unitarray['u38']."; return false;\">(".$village->unitarray['u38'].")<?php echo U40; ?> unitarray['u40']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text"> + unitarray['u40']>0){ + echo "unitarray['u40']."; return false;\">(".$village->unitarray['u40'].")
    <?php echo U33; ?> unitarray['u33']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text"> + unitarray['u33']>0){ + echo "unitarray['u33']."; return false;\">(".$village->unitarray['u33'].")<?php echo U36; ?> unitarray['u36']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text"> + unitarray['u36']>0){ + echo "unitarray['u36']."; return false;\">(".$village->unitarray['u36'].")unitarray['hero']>0){ + echo "\"Hero\" "; + echo "unitarray['hero']."; return false;\">(".$village->unitarray['hero'].")
    + diff --git a/Templates/activate/activate.tpl b/Templates/activate/activate.tpl new file mode 100644 index 00000000..857e9fa2 --- /dev/null +++ b/Templates/activate/activate.tpl @@ -0,0 +1,67 @@ +
    + +

    + +

    +
    +

    + Activation code: +

    + +

    + + +

    +
    +
    + + + \ No newline at end of file diff --git a/Templates/activate/activated.tpl b/Templates/activate/activated.tpl new file mode 100644 index 00000000..c971946f --- /dev/null +++ b/Templates/activate/activated.tpl @@ -0,0 +1,7 @@ +
    +

    register for the game

    +
    registration
    + +

    Your account has been successfully activated.

    Follow this link to log in

    + +
    \ No newline at end of file diff --git a/Templates/activate/cantfind.tpl b/Templates/activate/cantfind.tpl new file mode 100644 index 00000000..bd4a85f0 --- /dev/null +++ b/Templates/activate/cantfind.tpl @@ -0,0 +1,4 @@ +

    Either the password is wrong
    or the registration has already been deleted.

    "; +?> \ No newline at end of file diff --git a/Templates/activate/delete.tpl b/Templates/activate/delete.tpl new file mode 100644 index 00000000..8df201e5 --- /dev/null +++ b/Templates/activate/delete.tpl @@ -0,0 +1,34 @@ +
    +

    register for the game

    + + +
    No email received?
    + In order to play Travian you need a valid email address to which the activation code can be send. There are exceptional cases when this email might not arrive. +

    Following causes are possible:

    +
    +
      +
    • Typos in the email address
    • +
    • The email account`s storage limit is reached
    • +
    • Wrong domain: There is e.g. no @aol.de, only @aol.com
    • +
    • The email has been moved to the spam/junk folder
    • +
    +

    You can undo the registration and re-register with a different email address. +Then the activation code will be send again
    +
    + + + + + + + + + + + +
    NicknamegetActivateField($_GET['id'],"username",0); echo $naam; ?>
    Password
    +

    + +

    +
    +
    \ No newline at end of file diff --git a/Templates/dorf2.tpl b/Templates/dorf2.tpl new file mode 100644 index 00000000..47749711 --- /dev/null +++ b/Templates/dorf2.tpl @@ -0,0 +1,129 @@ + + +walling()) { + $wtitle = $building->procResType($building->walling())." Level ".$village->resarray['f40']; +} +else { + $wtitle = ($village->resarray['f40'] == 0)? "Outer building site" : $building->procResType($village->resarray['f40t'],0)." Level ".$village->resarray['f40']; +} +?> + + + + + +"53,91,91,71,127,91,91,112","136,66,174,46,210,66,174,87","196,56,234,36,270,56,234,77","270,69,308,49,344,69,308,90","327,117,365,97,401,117,365,138","14,129,52,109,88,129,52,150","97,137,135,117,171,137,135,158","182,119,182,65,257,65,257,119,220,140","337,156,375,136,411,156,375,177","2,199,40,179,76,199,40,220","129,164,167,144,203,164,167,185","92,189,130,169,166,189,130,210","342,216,380,196,416,216,380,237","22,238,60,218,96,238,60,259","167,232,205,212,241,232,205,253","290,251,328,231,364,251,328,272","95,273,133,253,169,273,133,294","222,284,260,264,296,284,260,305","80,306,118,286,154,306,118,327","199,316,237,296,273,316,237,337","270,158,303,135,316,155,318,178,304,211,288,227,263,238,250,215"); +for($t=19;$t<=39;$t++) { + if(($village->resarray['f99t'] == 40 AND ($t)=='25') or ($village->resarray['f99t'] == 40 AND ($t)=='26') or ($village->resarray['f99t'] == 40 AND ($t)=='29') or ($village->resarray['f99t'] == 40 AND ($t)=='30') or ($village->resarray['f99t'] == 40 AND ($t)=='33')) { + echo "resarray['f99']."\" coords=\"$coords[$t]\" shape=\"poly\"/>"; + } else { +if($village->resarray['f'.$t.'t'] != 0) { +$title = $building->procResType($village->resarray['f'.$t.'t']). " Level ".$village->resarray['f'.$t]; +} +else { + $title = "Building site"; + if(($t == 39) && ($village->resarray['f'.$t] == 0)) { + $title = "Rally Point building site"; + } +} + echo ""; +} +} +?> + + + + + +tribe == 3){ + $session->tribe = ''; + } + +if($building->walling()) { +$vmapc = "d2_1".$session->tribe; +} +else { +$vmapc = ($village->resarray['f40'] == 0)? "d2_0" : "d2_1".$session->tribe; +} +?> +
    +resarray['f99t'] == 40 AND ($i+18)=='25') or ($village->resarray['f99t'] == 40 AND ($i+18)=='26') or ($village->resarray['f99t'] == 40 AND ($i+18)=='29') or ($village->resarray['f99t'] == 40 AND ($i+18)=='30') or ($village->resarray['f99t'] == 40 AND ($i+18)=='33')) { + } else { + $text = "Building site"; + $img = "iso"; + if($village->resarray['f'.($i+18).'t'] != 0) { + $text = $building->procResType($village->resarray['f'.($i+18).'t'])." Level ".$village->resarray['f'.($i+18)]; + $img = "g".$village->resarray['f'.($i+18).'t']; + } + foreach($building->buildArray as $job) { + if($job['field'] == ($i+18)) { + $img = 'g'.$job['type'].'b'; + $text = $building->procResType($job['type'])." Level ".$village->resarray['f'.$job['field']]; + } + } + echo "\"$text\""; + } +} + if($village->resarray['f39'] == 0) { + if($building->rallying()) { + echo "\"Rallyresarray['f39']."\" />"; + } + else { + echo "\"Rally"; + } + } + else { + echo "\"Rallyresarray['f39']."\" />"; + } +?> +resarray['f99t'] == 40) { +if($village->resarray['f99'] >= 0 && $village->resarray['f99'] <= 19) { +echo 'Worldwonder'; } +if($village->resarray['f99'] >= 20 && $village->resarray['f99'] <= 39) { +echo 'Worldwonder'; } +if($village->resarray['f99'] >= 40 && $village->resarray['f99'] <= 59) { +echo 'Worldwonder'; } +if($village->resarray['f99'] >= 60 && $village->resarray['f99'] <= 79) { +echo 'Worldwonder'; } +if($village->resarray['f99'] >= 80 && $village->resarray['f99'] <= 99) { +echo 'Worldwonder'; } +if($village->resarray['f99'] == 100) { +echo 'Worldwonder'; } +} +?> +
    > +resarray['f'.($i+18).'t'] != 0) { +echo "
    ".$village->resarray['f'.($i+18)]."
    "; +} +} +if($village->resarray['f39t'] != 0) { +echo "
    ".$village->resarray['f39']."
    "; +} +if($village->resarray['f40t'] != 0) { +echo "
    ".$village->resarray['f40']."
    "; + +} +?> +
    + + +
    + onclick="vil_levels_toggle()" /> diff --git a/Templates/dorf3/1.tpl b/Templates/dorf3/1.tpl new file mode 100644 index 00000000..4f28a03e --- /dev/null +++ b/Templates/dorf3/1.tpl @@ -0,0 +1,56 @@ + + + + + + + +getProfileVillages($session->uid); + foreach($varray as $vil){ + $vid = $vil['wref']; + $vdata = $database->getVillage($vid); + $jobs = $database->getJobs($vid); + $unit = $database->getTraining($vid); + $totalmerchants = $building->getTypeLevel(17,$vid); + $availmerchants = $totalmerchants - $database->totalMerchantUsed($vid); + $incoming_attacks = $database->getMovement(3,$vid,1); + $bui = ''; + $tro = ''; + $att = ''; + + if (count($incoming_attacks) > 0) { + $inc_atts = count($incoming_attacks); + for($i=0;$i 0) { + $att = ''.count($incoming_attacks).' incoming attack'.(count($incoming_attacks)>1?'s':'').''; + } + } + foreach($jobs as $b){ + $bui .= ''.$building->procResType($b['type']).''; + } + foreach($unit as $c){ + $gid = in_array($c['unit'],$unitsbytype['infantry'])?19:(in_array($c['unit'],$unitsbytype['cavalry'])?20:(in_array($c['unit'],$unitsbytype['siege'])?21:(in_array(($c['unit']-60),$unitsbytype['infantry'])?29:(in_array(($c['unit']-60),$unitsbytype['cavalry'])?30:($building->getTypeLevel(26)>0?26:25))))); + if($c['unit'] > 60) { $c['unit'] -= 60; } + $tro .= ''.$c['amt'].'x '.$technology->getUnitName($c['unit']).''; + } + if($vdata['capital'] == 1) { $class = 'hl'; } else {$class = ''; } + +echo ' + + + + + + +'; + + } +?> +
    Overview
    VillageAttacksBuildingTroopsMerchants
    '.$vdata['name'].''.$att.''.$bui.''.$tro.''.($totalmerchants>0?'':'').$availmerchants.'/'.$totalmerchants.'
    diff --git a/Templates/dorf3/2.tpl b/Templates/dorf3/2.tpl new file mode 100644 index 00000000..6b2c2237 --- /dev/null +++ b/Templates/dorf3/2.tpl @@ -0,0 +1,45 @@ + + + + + + +getProfileVillages($session->uid); +foreach($varray as $vil){ + $vid = $vil['wref']; + $vdata = $database->getVillage($vid); + $totalmerchants = $building->getTypeLevel(17,$vid); + $availmerchants = $totalmerchants - $database->totalMerchantUsed($vid); + if($vdata['wood'] > $vdata['maxstore']) { $wood = $vdata['maxstore']; } else { $wood = $vdata['wood']; } + if($vdata['clay'] > $vdata['maxstore']) { $clay = $vdata['maxstore']; } else { $clay = $vdata['clay']; } + if($vdata['iron'] > $vdata['maxstore']) { $iron = $vdata['maxstore']; } else { $iron = $vdata['iron']; } + if($vdata['crop'] > $vdata['maxcrop'] ) { $crop = $vdata['maxcrop']; } else { $crop = $vdata['crop']; } + if($vdata['capital'] == 1){$class = 'hl';}else{$class = '';} + echo ' + + + + + + + + + '; + $woodSUM += $wood; + $claySUM += $clay; + $ironSUM += $iron; + $cropSUM += $crop; +} +?> + + + + + + + +
    Resources
    VillageMerchants
    '.$vdata['name'].''.number_format(round($wood)).''.number_format(round($clay)).''.number_format(round($iron)).''.number_format(round($crop)).''.($totalmerchants>0?'':'').$availmerchants.'/'.$totalmerchants.'
    Sum + 
    diff --git a/Templates/dorf3/3.tpl b/Templates/dorf3/3.tpl new file mode 100644 index 00000000..1c108f97 --- /dev/null +++ b/Templates/dorf3/3.tpl @@ -0,0 +1,121 @@ + + + + + + + + + + + +getProfileVillages($session->uid); +$timer = 1; +foreach($varray as $vil){ + $vid = $vil['wref']; + $vdata = $database->getVillage($vid); + $pop = $vdata['pop']; + $wood = floor($vdata['wood']); + $clay = floor($vdata['clay']); + $iron = floor($vdata['iron']); + $crop = floor($vdata['crop']); + $maxs = $vdata['maxstore']; + $maxc = $vdata['maxcrop']; + + $vresarray = $database->getResourceLevel($vid); + $prod_wood = $sawmill = 0; + $prod_clay = $claypit = 0; + $prod_iron = $foundry = 0; + $prod_crop = $grainmill = $bakery = 0; + $woodholder = array(); + $clayholder = array(); + $ironholder = array(); + $cropholder = array(); + for($i=1;$i<=38;$i++) { + if($vresarray['f'.$i.'t'] == 1) { + array_push($woodholder,'f'.$i); + } elseif($vresarray['f'.$i.'t'] == 5) { + $sawmill = $vresarray['f'.$i]; + } elseif($vresarray['f'.$i.'t'] == 2) { + array_push($clayholder,'f'.$i); + } elseif($vresarray['f'.$i.'t'] == 6) { + $claypit = $vresarray['f'.$i]; + } elseif($vresarray['f'.$i.'t'] == 3) { + array_push($ironholder,'f'.$i); + } elseif($vresarray['f'.$i.'t'] == 7) { + $foundry = $vresarray['f'.$i]; + } elseif($vresarray['f'.$i.'t'] == 4) { + array_push($cropholder,'f'.$i); + } elseif($vresarray['f'.$i.'t'] == 8) { + $grainmill = $vresarray['f'.$i]; + } elseif($vresarray['f'.$i.'t'] == 9) { + $bakery = $vresarray['f'.$i]; + } + } + for($i=0;$i<=count($woodholder)-1;$i++) { $prod_wood+= $bid1[$vresarray[$woodholder[$i]]]['prod']; } + for($i=0;$i<=count($clayholder)-1;$i++) { $prod_clay+= $bid2[$vresarray[$clayholder[$i]]]['prod']; } + for($i=0;$i<=count($ironholder)-1;$i++) { $prod_iron+= $bid3[$vresarray[$ironholder[$i]]]['prod']; } + for($i=0;$i<=count($cropholder)-1;$i++) { $prod_crop+= $bid4[$vresarray[$cropholder[$i]]]['prod']; } + if($sawmill >= 1) { + $prod_wood += $prod_wood /100 * $bid5[$sawmill]['attri']; + } + if($claypit >= 1) { + $prod_clay += $prod_clay /100 * $bid6[$claypit]['attri']; + } + if($foundry >= 1) { + $prod_iron += $prod_iron /100 * $bid7[$foundry]['attri']; + } + if ($grainmill >= 1 || $bakery >= 1) { + $prod_crop += $prod_crop /100 * ($bid8[$grainmill]['attri'] + $bid9[$bakery]['attri']); + } + $oasisowned = $database->getOasis($vid); + //more oasis logic required + if($session->plus) { + $prod_wood *= 1.25; + $prod_clay *= 1.25; + $prod_iron *= 1.25; + $prod_crop *= 1.25; + } + $prod_wood *= SPEED; + $prod_clay *= SPEED; + $prod_iron *= SPEED; + $prod_crop *= SPEED; + + $prod_crop -= $pop; + $prod_crop -= $technology->getUpkeep($technology->getAllUnits($vid),0); + + $percentW = floor($wood/($maxs/100)); + $percentC = floor($clay/($maxs/100)); + $percentI = floor($iron/($maxs/100)); + $percentCr = floor($crop/($maxc/100)); + + if($vdata['capital'] == 1) {$class = 'hl';} else {$class = '';} + $cr = 95; //warning percentage + if($percentW >= $cr) {$critW = 'crit';} else {$critW = '';} + if($percentC >= $cr) {$critC = 'crit';} else {$critC = '';} + if($percentI >= $cr) {$critI = 'crit';} else {$critI = '';} + if($percentCr >= $cr) {$critCR = 'crit';} else {$critCR = '';} + + $timerwood = floor(($maxs-$wood)/$prod_wood*3600); + $timerclay = floor(($maxs-$clay)/$prod_clay*3600); + $timeriron = floor(($maxs-$iron)/$prod_iron*3600); + $timer1 = $generator->getTimeFormat(min($timerwood,$timerclay,$timeriron)); + $timer2 = $generator->getTimeFormat(floor(($maxc-$crop)/$prod_crop*3600)); + + echo ' + + + + + '; + if($timer1 != "0:00:00") { $timer++; } + echo ' + + '; + if($timer2 != "0:00:00") { $timer++; } +} +?> +
    Warehouse
    VillageWoodClayIronClockCropClock
    '.$vdata['name'].''.$percentW.'%'.$percentC.'%'.$percentI.'%'.$timer1.''.$percentCr.'%'.$timer2.'
    diff --git a/Templates/dorf3/4.tpl b/Templates/dorf3/4.tpl new file mode 100644 index 00000000..fa7b7059 --- /dev/null +++ b/Templates/dorf3/4.tpl @@ -0,0 +1,79 @@ + + + + + + + +getProfileVillages($session->uid); +foreach($varray as $vil){ + $vid = $vil['wref']; + $cp = $database->getVillageField($vid, 'cp'); + $exp = 0; + for($i=1;$i<=3;$i++) { + ${'slot'.$i} = $database->getVillageField($vid, 'exp'.$i); + if(${'slot'.$i} != 0) { $exp++; } + } + $lvlTH = $building->getTypeLevel(24,$vid); + $lvlRes = $building->getTypeLevel(25,$vid); + $lvlPal = $building->getTypeLevel(26,$vid); + $maxslots = ($lvlRes>=10?floor($lvlRes/10):0)+($lvlPal>=10?floor(($lvlPal-5)/5):0); + $hasCel = $database->getVillageField($vid,'celebration'); + if ($hasCel <> 0) { $timer++; } + + if($vdata['capital'] == 1){$class = 'hl';}else{$class = '';} + + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + $gesexp = $gesexp + $exp; + $gesdorf = $gesdorf + $maxslots; + $gescp = $gescp + $cp; + $gessied = $gessied + $siedler; + $gessen = $gessen + $senator; + echo ''; +} +?> + + + + + + + + + + +
    Culture points
    VillageCP/dayCelebrationsTroopsSlots
    '.$vil['name'].''.$cp.''.($lvlTH>0?''.($hasCel<>0?''.$generator->getTimeFormat($hasCel-time()).'':'â—').'':' ').''; + $unit = $database->getUnit($vid); + $tribe = $session->tribe; + $siedler = $unit['u'.$tribe*10]; + $siedlerp = ''; + $senator = $unit['u'.($tribe-1)*10+9]; + $senatorp = ''; + $i=1; + while($i <=$siedler) { + echo $siedlerp; + $i++; + } + $s=1; + while($s <=$senator) { + echo $senatorp; + $s++; + } + + echo ''.$exp.'/'.$maxslots.'
    Sum  +
    diff --git a/Templates/dorf3/5.tpl b/Templates/dorf3/5.tpl new file mode 100644 index 00000000..1071a864 --- /dev/null +++ b/Templates/dorf3/5.tpl @@ -0,0 +1,59 @@ + + + +getProfileVillages($session->uid); +?> + +tribe-1)*10+1; $i<=($session->tribe)*10; $i++) { + echo ''; + $unit_total['u'.$i] = 0; + } + echo ''; +?> + +getEnforceVillage($vid,1); + array_unshift($units,$database->getUnit($vid)); + + echo ''; + + for ($i=($session->tribe-1)*10+1; $i<=($session->tribe)*10; $i++) { + $uni['u'.$i] = 0; + foreach($units as $unit) { + $uni['u'.$i] += $unit['u'.$i]; + $unit_total['u'.$i] += $unit['u'.$i]; + } + if($uni['u'.$i] !=0){$cl = '';}else{$cl = 'none';} + echo ''; + } + $uni['hero'] = 0; + foreach($units as $unit) { + $uni['hero'] += $unit['hero']; + $unit_total['hero'] += $unit['hero']; + } + if($uni['hero'] !=0){$cl = '';}else{$cl = 'none';} + echo ''; + echo ''; + } +?> + + + +tribe-1)*10+1; $i<=($session->tribe)*10; $i++) { + if($unit_total['u'.$i] !=0){$cl = '';}else{$cl = 'none';} + echo ''; + } + if($unit_total['hero'] !=0){$cl = '';}else{$cl = 'none';} + echo ''; + +?> +
    Own troops
    Village
    '.$vil['name'].''.$uni['u'.$i].''.$uni['hero'].'
    Sum'.$unit_total['u'.$i].''.$unit_total['hero'].'
    diff --git a/Templates/dorf3/menu.tpl b/Templates/dorf3/menu.tpl new file mode 100644 index 00000000..da4bef76 --- /dev/null +++ b/Templates/dorf3/menu.tpl @@ -0,0 +1,7 @@ +
    + Overview + | Resources + | Warehouse + | CP + | Troops +
    \ No newline at end of file diff --git a/Templates/dorf3/noplus.tpl b/Templates/dorf3/noplus.tpl new file mode 100644 index 00000000..008597ad --- /dev/null +++ b/Templates/dorf3/noplus.tpl @@ -0,0 +1,37 @@ +
    + Overview + | Resources + | Warehouse + | CP + | Troops +
    + + + + + + + + + + + +getProfileVillages($session->uid); +foreach($varray as $vil){ + $vid = $vil['wref']; + $vdata = $database->getVillage($vid); + if($vdata['capital'] == 1){$class = 'hl';}else{$class = '';} + echo ' + + + + + + + + '; +} +?> + +
    Overview
    VillageAttacksBuildingTroopsMerchants
    '.$vdata['name'].'????/?
    \ No newline at end of file diff --git a/Templates/field.tpl b/Templates/field.tpl new file mode 100644 index 00000000..551dce63 --- /dev/null +++ b/Templates/field.tpl @@ -0,0 +1,41 @@ +"101,33,28","165,32,28","224,46,28","46,63,28","138,74,28","203,94,28","262,86,28","31,117,28","83,110,28","214,142,28","269,146,28","42,171,28","93,164,28","160,184,28","239,199,28","87,217,28","140,231,28","190,232,28"); + +//Load level & type +$arrayVillage = $village->resarray; +?> + +procResType($arrayVillage['f'.$i.'t'])." Level ".$arrayVillage['f'.$i]."\"/>\r\n"; +} +?> + + + +
    +"; + } +} +?> + +
    \ No newline at end of file diff --git a/Templates/footer.tpl b/Templates/footer.tpl new file mode 100644 index 00000000..15b37c35 --- /dev/null +++ b/Templates/footer.tpl @@ -0,0 +1,37 @@ + + + + + \ No newline at end of file diff --git a/Templates/header.tpl b/Templates/header.tpl new file mode 100644 index 00000000..a9ec8e50 --- /dev/null +++ b/Templates/header.tpl @@ -0,0 +1,46 @@ + + \ No newline at end of file diff --git a/Templates/links.tpl b/Templates/links.tpl new file mode 100644 index 00000000..530bb414 --- /dev/null +++ b/Templates/links.tpl @@ -0,0 +1,37 @@ + ## +## License: TravianX Project ## +## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## ## +################################################################################# + +// Fetch all links +$query = $database->getLinks($session->uid); +if (mysql_num_rows($query) > 0){ +$links = array(); +while($data = mysql_fetch_assoc($query)) { + $links[] = $data; +} + +print '

    '; +foreach($links as $link) { + // Check, if the url is extern + if(substr($link['url'], -1, 1) == '*') { + $target = ' target="_blank"'; + $external = ''; + $link['url'] = str_replace('*', '', $link['url']); + } else { + $target = ''; + $external = ''; + } + + echo ''; +} +print '
    Links:
    â—
    '; +} +?> diff --git a/Templates/menu.tpl b/Templates/menu.tpl new file mode 100644 index 00000000..653fef93 --- /dev/null +++ b/Templates/menu.tpl @@ -0,0 +1,106 @@ +logged_in) { +?> + + + + + + + + + +
    + + +

    +
    + +
    + + + +

    access == MULTIHUNTER) { + + echo "Multihunter Panel"; + } ?> access == ADMIN) { + echo "Admin Panel"; + echo "Mass Message"; + echo "Update Top 10"; + echo "System message"; + echo "Create Natars"; + } ?>

    + + Game Rules +

    Travian Plus + Support +

    +
    + +
    +

    Announcement

    + +

    Hi username; ?>,

    +
    + + + +
    + +
    + +
    + +
    + + + +
    + +
    +
    +
    + Calculated in pageLoadTimeEnd()-$start)*1000); + ?> ms +
    + Server time: +
    +
    +
    + +
    + + diff --git a/Templates/movement.tpl b/Templates/movement.tpl new file mode 100644 index 00000000..132551e3 --- /dev/null +++ b/Templates/movement.tpl @@ -0,0 +1,147 @@ +getMovement(4,$village->wid,1))+count($database->getMovement(4,$village->wid,0))+count($database->getMovement(3,$village->wid,1))+count($database->getMovement(3,$village->wid,0))); +if($aantal > 0){ + echo ''; +} + +$NextArrival = array(); + +/* Units coming back from Reinf,attack,raid */ +$aantal = count($database->getMovement(4,$village->wid,1)); +$aantal2 = $database->getMovement(4,$village->wid,1); +if($aantal > 0){ + foreach($aantal2 as $receive) { + $action = 'def1'; + $aclass = 'd1'; + $title = ''.ARRIVING_REINF_TROOPS.''; + $short = ''.ARRIVING_REINF_TROOPS_SHORT.''; + $NextArrival[] = $receive['endtime']; + } + echo ' + '; + $timer += 1; +} + +/* attack/raid on you! */ +$aantal = count($database->getMovement(3,$village->wid,1)); +$aantal2 = $database->getMovement(3,$village->wid,1); +for($i=0;$i<$aantal;$i++){ + if($aantal2[$i]['attack_type'] == 2) { $aantal -= 1; } + if($aantal2[$i]['attack_type'] == 1) { $aantal -= 1; } +} +if($aantal > 0){ + if(!empty($NextArrival)) { reset($NextArrival); } + foreach($aantal2 as $receive) { + if ($receive['attack_type'] != 2) { + $action = 'att1'; + $aclass = 'a1'; + $title = ''.OWN_ATTACKING_TROOPS.''; + $short = ''.ATTACK.''; + $NextArrival[] = $receive['endtime']; + } + } + echo ' + '; + $timer += 1; +} + +/* on attack, raid */ +$aantal = count($database->getMovement(3,$village->wid,0)); +$aantal2 = $database->getMovement(3,$village->wid,0); +for($i=0;$i<$aantal;$i++){ + if($aantal2[$i]['attack_type'] == 2) { $aantal -= 1; } +} +if($aantal > 0){ + if(!empty($NextArrival)) { reset($NextArrival); } + foreach($aantal2 as $receive) { + if ($receive['attack_type'] != 2) { + $action = 'att2'; + $aclass = 'a2'; + $title = ''.OWN_ATTACKING_TROOPS.''; + $short = ''.ATTACK.''; + $NextArrival[] = $receive['endtime']; + } + } + echo ' + '; + $timer += 1; +} + +/* Units send to reinf. (to other town) */ +$aantal = count($database->getMovement(3,$village->wid,0)); +$lala=$aantal; +$aantal2 = $database->getMovement(3,$village->wid,0); +for($i=0;$i<$aantal;$i++){ + if(($aantal2[$i]['attack_type']==1) or ($aantal2[$i]['attack_type']==3) or ($aantal2[$i]['attack_type']==4)) { $lala -= 1; } +} +if($lala > 0){ + if(!empty($NextArrival)) { reset($NextArrival); } + foreach($aantal2 as $receive) { + if ($receive['attack_type'] == 2) { + $action = 'def2'; + $aclass = 'd2'; + $title = ''.OWN_REINFORCING_TROOPS.''; + $short = ''.ARRIVING_REINF_TROOPS_SHORT.''; + $NextArrival[] = $receive['endtime']; + } + } + echo ' + '; + $timer += 1; +} + +/* Units send to reinf. (to my town) */ +$aantal = count($database->getMovement(3,$village->wid,1)); $lala=$aantal; +$aantal2 = $database->getMovement(3,$village->wid,1); +for($i=0;$i<$aantal;$i++){ + if(($aantal2[$i]['attack_type']==1) or ($aantal2[$i]['attack_type']==3) or ($aantal2[$i]['attack_type']==4)) { $lala -= 1; } +} +if($lala > 0){ + if(!empty($NextArrival)) { reset($NextArrival); } + foreach($aantal2 as $receive) { + if ($receive['attack_type'] == 2) { + $action = 'def1'; + $aclass = 'd1'; + $title = ''.OWN_REINFORCING_TROOPS.''; + $short = ''.ARRIVING_REINF_TROOPS_SHORT.''; + $NextArrival[] = $receive['endtime']; + } + } + echo ' + '; + $timer += 1; +} + +/* Units coming back from ATTACK +$gettroops = $database->getMovement(3,$village->wid,1); +for($i=0;$i 0){ + if(!empty($NextArrival)) { reset($NextArrival); } + foreach($aantal2 as $receive) { + $action = 'att1'; + $aclass = 'a1'; + $title = 'Incoming troops'; + $short = 'Attack'; + $NextArrival[] = $receive['endtime']; + } + echo ' + '; + $timer += 1; +} +?> +
    '.TROOP_MOVEMENTS.'
    '.$title.'»
    '.$aantal.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival)-time()).' '.HOURS.'
    '.$title.'»
    '.$aantal.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival)-time()).' '.HOURS.'
    '.$title.'»
    '.$aantal.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival)-time()).' '.HOURS.'
    '.$title.'»
    '.$lala.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival)-time()).' '.HOURS.'
    '.$title.'»
    '.$lala.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival)-time()).' '.HOURS.'
    '.$title.'«
    '.$aantal.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival)-time()).' '.HOURS.'
    +*/ \ No newline at end of file diff --git a/Templates/multivillage.tpl b/Templates/multivillage.tpl new file mode 100644 index 00000000..f2c966f0 --- /dev/null +++ b/Templates/multivillage.tpl @@ -0,0 +1,27 @@ +villages) > 1){?> + + + getArrayMemberVillage($session->uid); + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + }?> + +
    :
    â—
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    + \ No newline at end of file diff --git a/Templates/news.tpl b/Templates/news.tpl new file mode 100644 index 00000000..bf6cbd13 --- /dev/null +++ b/Templates/news.tpl @@ -0,0 +1,22 @@ + + \ No newline at end of file diff --git a/Templates/production.tpl b/Templates/production.tpl new file mode 100644 index 00000000..1af2974e --- /dev/null +++ b/Templates/production.tpl @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    :
    <?php echo LUMBER; ?>:getProd("wood"); ?>
    <?php echo CLAY; ?>:getProd("clay"); ?>
    <?php echo IRON; ?>:getProd("iron"); ?>
    <?php echo CROP; ?>:getProd("crop"); ?>
    \ No newline at end of file diff --git a/Templates/quest.tpl b/Templates/quest.tpl new file mode 100644 index 00000000..6902f9de --- /dev/null +++ b/Templates/quest.tpl @@ -0,0 +1,35 @@ + + + +
    + + to the task + + to the task + +
    + + + diff --git a/Templates/res.tpl b/Templates/res.tpl new file mode 100644 index 00000000..285043a6 --- /dev/null +++ b/Templates/res.tpl @@ -0,0 +1,62 @@ + + +getProd("wood")); +$clay = round($village->getProd("clay")); +$iron = round($village->getProd("iron")); +$crop = round($village->getProd("crop")); +$totalproduction = $village->allcrop; // all crops + bakery + grain mill +?> + +
    +
    + + + + + + + + + + + + + + +
    <?php echo LUMBER; ?>awood)."/".$village->maxstore; ?><?php echo CLAY; ?>aclay)."/".$village->maxstore; ?><?php echo IRON; ?>airon)."/".$village->maxstore; ?><?php echo CROP; ?>acrop)."/".$village->maxcrop; ?><?php echo CROP_COM; ?>pop+$technology->getUpkeep($village->unitall,0))."/".$totalproduction.""; ?>
    + + + + + + + + + + + + + + +
                                                                        gold <= 1){ + echo 'Remaining gold '.$session->gold.' Gold'; + } + else if($session->gold >=2){ + echo 'Remaining gold '.$session->gold.' Gold'; + } + ?> +
    +
    +
    \ No newline at end of file diff --git a/Templates/rules.tpl b/Templates/rules.tpl new file mode 100644 index 00000000..953430c3 --- /dev/null +++ b/Templates/rules.tpl @@ -0,0 +1,138 @@ +

    Game rules

    +
    +

    + The following set of rules are in conjunction to the General Terms and Conditions of Travian. You should familiarize yourself with the General Terms and Conditions to verify what is allowed and what is prohibited, especially in case of an account that has been banned for a rule violation. +
    +
    + Inciting, manipulating, encouraging, assisting or conspiring with others to violate any of Travian Rules is impermissible. These rules apply for players that will delete their accounts or are currently deleting their accounts without exception. +

    +
      +
    • + §1 Password, Registration & ownership +
      + Each player may only own and play one account per server. +
        +
      • + §1.1 Registration +
        + The e-mail address used for the registration of an account must be under the personal and exclusive control of the person who registered the account. The person owning the e-mail address currently registered for an account is considered the owner of the account, regardless of any other personal or alliance agreements. The owner of an account is fully responsible for all actions taken by the account. +
      • +
      • + §1.2 Password +
        + The owner of an account may not transfer the password of an account to any person playing on the same game world (server). Additionally, knowingly choosing the same password on the same game world as another person is illegal; any of these actions is considered multiaccounting, as defined in these rules. +
        +
        + However, it is permissible to transfer the password of an account to a person or persons playing on a different game world (or not playing at all) in order to play a single account together. +
        +
        + There is no compensation for damages done by someone knowing the password of an account. The person receiving the password is subjected to the rules of Travian as well as the General Terms and Conditions. +
      • +
      • + §1.3 Email changes / account transfers +
        + In order to change the email address of your account or to transfer your account to another player NOT playing on the same server, go into your account profile (/spieler.php?s=3) and fill out the new email information. +
      • +
      • + §1.4 Switching accounts +
        + In order to switch an account with another person on the same game world, both persons must send an e-mail message to admin@travian.com from the e-mail address currently registered to the account. The e-mail must contain the following information: +
          +
            +
          1. The game world on which the account resides
          2. +
          3. The nickname of the account
          4. +
          5. The e-mail address of the new owner.
          6. +
          +
        + Afterwards, both parties must request the password for their new account via the password retrieval function. +
      • +
      +
    • +
    • + §2 Sitting & same pc usage +
      +
        +
      • + §2.1 Sitting +
        + Every player has the right to name two sitters who may play the account during the owner's absence. Sitters must play the account they are sitting to the account’s full benefit. Abuse of this function is punishable. +
        + The sitter of an account must sit the account using the ingame account sitting function. The sitter of an account may not tend to an account by logging in with the password of the account they are sitting (see §1.2). +
        + There is no compensation for damages done by a sitter. Account owners are fully responsible for the actions done by the chosen sitters of their account. In the event that sitters of an account do not follow these rules and the General Terms and Conditions of Travian, both the account owner and the sitter may be held responsible and punished. +
      • +
      • + §2.2 Same pc usage +
        + Players using the same computer and wanting to access each + other's account must use the sitter function. +
      • +
      +
    • +
    • + §3 Use of externals +
      + The game must be played with an unmodified internet browser. The use of scripts or bots which automate account actions is against the rules. +
    • +
    • + §4 Program errors +
      + Program errors (also called bugs) may not be used to one's benefit. Abuse can lead to a punishment of the account. +
    • +
    • + §5 Money transactions +
      + Any sales or purchases concerning real money regarding accounts, units, villages, resources, services or any other aspect of Travian are impermissible. The sale of Travian accounts as well as any indirect transfer (even as gifts) in connection with auction sites or other money transactions is impermissible. +
    • +
    • + §6 Netiquette +
      + Everyone must communicate in a polite, conversational tone. Multihunters may change inappropriate profiles and village names without warning. +
        +
      1. + Following behavior is punishable and applies to all descriptions, the account name, alliance names, village names and messages: +
        + Participation in abusive, defamatory, sexist, racist or profane language; disparaging any religion, race, nation, gender, age group, or sexual orientation; threatening a person with actions in real life. +
        + Posting or transmission of any material not suitable for + underage persons. +
        + Blackmailing players in a way that violates any of Travian's rules in accordance with the General Terms and Conditions. +
        + Displaying battle reports or messages in public without consent of both concerned parties. +
      2. +
      3. No real world politics are allowed in names, messages and descriptions.
      4. +
      5. English is the only language tolerated in messages and descriptions.
      6. +
      7. Impersonating officials or official positions is illegal in any way.
      8. +
      9. Advertisement of any kind that has not been permitted by the Travian Team is impermissible.
      10. +
      +
    • +
    • + §7 Punishments +
      + If there is an offence against these game rules, the Multihunters and, if necessary, the Administrators will ban the account(s) in question and decide on a proper punishment. Punishments will always exceed the gain of the violation of the rules. +
      + Resources, buildings, villages or troops lost during the time of suspension do not count as punishment and will not be replaced by the Travian Team. No player has the right to claim payment or replacement for Plus/Gold time lost due to suspension. +
      + There is no special treatment for Travian Plus/Gold users regarding the game rules neither in the time needed to deal with the case nor in the punishment. +
      +
      + Players may talk to the Multihunter who banned them or an Administrator either via IGM (ingame message) or e-mail. Bans, punishments or deletions are not to be discussed in public (e.g. Chat or Forums). Appeals must be written in English. +
      + Additionally, the Travian Team will not provide information concerning bans to any person, other than the account owner. +
      +
      + Multiaccounts on the speed server and multiaccounts with less than 100 population may be deleted on sight with no prior warning. +
    • +
    • + §8 Changing of rules +
      + The Travian Team reserves the right to change the rules at any time. +
    • +
    • + §9 Correction clause +
      + If individual regulations of this set of rules should prove to be in any way ineffective, it does not affect the validity of the remaining regulations of this set of rules. The Administrators commit themselves to replace ineffective regulations with new regulations which replace the ineffective regulations as fast as possible. +
    • +
    +
    \ No newline at end of file diff --git a/Templates/text.tpl b/Templates/text.tpl new file mode 100644 index 00000000..cd277cec --- /dev/null +++ b/Templates/text.tpl @@ -0,0 +1,26 @@ +', $txt); +$txt = preg_replace("/\[\/b\]/is",'', $txt); +$txt = preg_replace("/\[i\]/is",'', $txt); +$txt = preg_replace("/\[\/i\]/is",'', $txt); +$txt = preg_replace("/\[u\]/is",'', $txt); +$txt = preg_replace("/\[\/u\]/is",'', $txt); + +//nl2br = enter +echo nl2br($txt); + +?> \ No newline at end of file diff --git a/Templates/text_format.tpl b/Templates/text_format.tpl new file mode 100644 index 00000000..bb4c52e6 --- /dev/null +++ b/Templates/text_format.tpl @@ -0,0 +1,26 @@ +', $txt); +$txt = preg_replace("/\[\/b\]/is",'', $txt); +$txt = preg_replace("/\[i\]/is",'', $txt); +$txt = preg_replace("/\[\/i\]/is",'', $txt); +$txt = preg_replace("/\[u\]/is",'', $txt); +$txt = preg_replace("/\[\/u\]/is",'', $txt); + +//nl2br = enter +echo nl2br($txt); + +?> \ No newline at end of file diff --git a/Templates/troops.tpl b/Templates/troops.tpl new file mode 100644 index 00000000..207917f9 --- /dev/null +++ b/Templates/troops.tpl @@ -0,0 +1,37 @@ + + + + + +getAllUnits($village->wid,True); +$TroopsPresent = False; +for($i=1;$i<=50;$i++) { + if($troops['u'.$i] > 0) { + echo ""; + echo ""; + $TroopsPresent = True; + } +} +if($troops['hero'] > 0) { + echo ""; + echo ""; + $TroopsPresent = True; +} +$units = $technology->getUnitList($village->wid); +if(!$TroopsPresent) { + echo ""; +} +?> +
    \"".$technology-getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />".$troops['u'.$i]."".$technology->getUnitName($i)."
    \"Hero\"".$troops['hero']."Hero
    none
    + diff --git a/a2b.php b/a2b.php new file mode 100644 index 00000000..d89c4de9 --- /dev/null +++ b/a2b.php @@ -0,0 +1,196 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +else { +$building->procBuild($_GET); +} + +if(isset($_GET['id'])) { + $id = $_GET['id']; +} +if(isset($_GET['w'])) { + $w = $_GET['w']; +} +if(isset($_GET['r'])) { + $r = $_GET['r']; +} +if(isset($_GET['o'])) { + $o = $_GET['o']; + $oid = $_GET['z']; + $too = $database->getOasisField($oid,"conqured"); + if($too['conqured'] == 0){$disabledr ="disabled=disabled";}else{ + $disabledr =""; + } + $disabled ="disabled=disabled"; + $checked ="checked=checked"; +} + $process = $units->procUnits($_POST); + +?> + + + + + <?php + + echo SERVER_NAME + +?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + +?> + + + + + +
    + +
    +
    + +
    + +
    +getEnforceArray($w, 0); + if($enforce['vref'] == $village->wid) { + $to = $database->getVillage($enforce['from']); + $ckey = $w; + include ("Templates/a2b/sendback_" . $database->getUserField($to['owner'], 'tribe', 0) . ".tpl"); + } else { + include ("Templates/a2b/units_" . $session->tribe . ".tpl"); + include ("Templates/a2b/search.tpl"); + } + } else + if(isset($r)) { + $enforce = $database->getEnforceArray($r, 0); + if($enforce['from'] == $village->wid) { + $to = $database->getVillage($enforce['from']); + $ckey = $r; + include ("Templates/a2b/sendback_" . $database->getUserField($to['owner'], 'tribe', 0) . ".tpl"); + } else { + include ("Templates/a2b/units_" . $session->tribe . ".tpl"); + include ("Templates/a2b/search.tpl"); + } + } else { + if(isset($process['0'])) { + $coor = $database->getCoor($process['0']); + include ("Templates/a2b/attack.tpl"); + } else { + include ("Templates/a2b/units_" . $session->tribe . ".tpl"); + include ("Templates/a2b/search.tpl"); + } + } + +?> + +
    + +
    +
    +
    + +
    + +
    +
    +
    + pageLoadTimeEnd() - $start) * 1000); + +?> ms + +
    +
    +
    +
    +
    + + \ No newline at end of file diff --git a/activate.php b/activate.php new file mode 100644 index 00000000..926cfd72 --- /dev/null +++ b/activate.php @@ -0,0 +1,108 @@ + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    + +
    +getActivateField($_GET['id'],"email",0); + if($_GET['c'] == $generator->encodeStr($c,5)){ + include("Templates/activate/delete.tpl"); + } else { include("Templates/activate/activate.tpl"); } +} else { +include("Templates/activate/activate.tpl"); +} + +/*if(isset($_GET['e'])) { + switch($_GET['e']) { + case 1: + include("Templates/activate/delete.tpl"); + break; + case 2: + include("Templates/activate/activated.tpl"); + break; + case 3: + include("Templates/activate/cantfind.tpl"); + break; + } +} else +if(isset($_GET['id']) && isset($_GET['c']) && $_GET['c'] == $generator->encodeStr($_COOKIE['COOKEMAIL'],5)) { + include("Templates/activate/delete.tpl"); +} else +if(isset($_GET['id']) && !isset($_GET['c']) && !isset($_GET['e'])) { + include("Templates/activate/activate.tpl"); +} +else if(isset($_GET['usr']) && !isset($_GET['c']) && !isset($_GET['e'])) { + $_COOKIE['COOKUSR'] = $_GET['usr']; + $_COOKIE['COOKEMAIL'] = $database->getUserField($_GET['usr'],"email",1); + include("Templates/activate/activate.tpl"); +} else +if(isset($_GET['npw'])) { +} else { + +}*/ + +?> +
    +
    +
    + +
    +
    + + +
    + + +
    + + \ No newline at end of file diff --git a/ajax.php b/ajax.php new file mode 100644 index 00000000..9bddd094 --- /dev/null +++ b/ajax.php @@ -0,0 +1,45 @@ + \ No newline at end of file diff --git a/allianz.php b/allianz.php new file mode 100644 index 00000000..a5253bb8 --- /dev/null +++ b/allianz.php @@ -0,0 +1,267 @@ + +| +| This script is property of TravianX Project. You are allowed to change +| its source and release it under own name, not under name `TravianX`. +| You have no rights to remove copyright notices. +| +| TravianX All rights reserved +| +*/ + + include ("GameEngine/Village.php"); + include ("GameEngine/Chat.php"); + $start = $generator->pageLoadTimeStart(); + $alliance->procAlliance($_GET); +if($_GET['aid']!=0 or $session->alliance!=0){ +?> + + + + <?php + + echo SERVER_NAME + +?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + +?> + + + + + +
    + +
    +
    + +
    +'; + } else { + echo '
    '; + } + + if(isset($_GET['s'])) { + switch($_GET['s']) { + case 2: + include ("Templates/Alliance/forum.tpl"); + break; + case 3: + include ("Templates/Alliance/attacks.tpl"); + break; + case 4: + include ("Templates/Alliance/news.tpl"); + break; + case 5: + include ("Templates/Alliance/option.tpl"); + break; + case 6: + include ("Templates/Alliance/chat.tpl"); + break; + case 1: + default: + include ("Templates/Alliance/overview.tpl"); + break; + } + // Options + } elseif(isset($_POST['o'])) { + switch($_POST['o']) { + case 1: + if(isset($_POST['s']) == 5 && isset($_POST['a_user'])) { + $alliance->procAlliForm($_POST); + //echo "Funcion para el cambio de nombre de la alianza"; + include ("Templates/Alliance/changepos.tpl"); + } else { + include ("Templates/Alliance/assignpos.tpl"); + } + break; + case 2: + if(isset($_POST['s']) == 5 && isset($_POST['a']) == 2) { + $alliance->procAlliForm($_POST); + include ("Templates/Alliance/kick.tpl"); + } else { + include ("Templates/Alliance/kick.tpl"); + } + break; + case 3: + if(isset($_POST['s']) == 5 && isset($_POST['a']) == 3) { + $alliance->procAlliForm($_POST); + //echo "Funcion para el cambio de nombre de la alianza"; + include ("Templates/Alliance/allidesc.tpl"); + } else { + include ("Templates/Alliance/allidesc.tpl"); + } + break; + case 4: + if(isset($_POST['s']) == 5 && isset($_POST['a']) == 4) { + $alliance->procAlliForm($_POST); + //echo "Funcion para el cambio de nombre de la alianza"; + include ("Templates/Alliance/invite.tpl"); + } else { + include ("Templates/Alliance/invite.tpl"); + } + break; + case 5: + include ("Templates/Alliance/linkforum.tpl"); + break; + case 6: + if(isset($_POST['dipl']) and isset($_POST['a_name'])) { + $alliance->procAlliForm($_POST); + include ("Templates/Alliance/chgdiplo.tpl"); + } else { + include ("Templates/Alliance/chgdiplo.tpl"); + } + break; + case 11: + if(isset($_POST['s']) == 5 && isset($_POST['a']) == 11) { + $alliance->procAlliForm($_POST); + //echo "Funcion para el cambio de nombre de la alianza"; + include ("Templates/Alliance/quitalli.tpl"); + } else { + include ("Templates/Alliance/quitalli.tpl"); + } + break; + default: + include ("Templates/Alliance/option.tpl"); + break; + case 100: + if(isset($_POST['s']) == 5 && isset($_POST['a']) == 100) { + $alliance->procAlliForm($_POST); + //echo "Funcion para el cambio de nombre de la alianza"; + include ("Templates/Alliance/changename.tpl"); + } else { + include ("Templates/Alliance/changename.tpl"); + } + break; + case 101: + $post = $_POST['id']; + $database->diplomacyCancelOffer($post); + include ("Templates/Alliance/chgdiplo.tpl"); + break; + case 102: + $post = $_POST['id']; + $post2 = $_POST['alli2']; + $database->diplomacyInviteDenied($post, $post2); + include ("Templates/Alliance/chgdiplo.tpl"); + break; + case 103: + $post = $_POST['id']; + $post2 = $_POST['alli2']; + $database->diplomacyInviteAccept($post, $post2); + include ("Templates/Alliance/chgdiplo.tpl"); + break; + case 104: + $post = $_POST['id']; + $post2 = $_POST['alli2']; + $database->diplomacyCancelExistingRelationship($post, $post2); + include ("Templates/Alliance/chgdiplo.tpl"); + } + } else { + + include ("Templates/Alliance/overview.tpl"); + } + +?> +
    +
    + +
    +
    +
    + +
    + + +
    +
    +
    + pageLoadTimeEnd() - $start) * 1000); + +?> ms + +
    +
    +
    +
    + +
    + + + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + +
    +
    + +
    + + + + + + + + + +
    + +
    + + +

    Manual

    + + + + + + + + + + + + + + + +
    + +
    + +
    + + + +
    + + + + + + + +
    + +Close + +

    Anleitung

    + + + +
    + +
    + + + +
    + + + +
    + + + + + + \ No newline at end of file diff --git a/anmelden.php b/anmelden.php new file mode 100644 index 00000000..6aea740f --- /dev/null +++ b/anmelden.php @@ -0,0 +1,135 @@ + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    + + +
    + +
    + +
    +
    + + +
    + + +
    + + \ No newline at end of file diff --git a/banned.php b/banned.php new file mode 100644 index 00000000..b0cdbf4a --- /dev/null +++ b/banned.php @@ -0,0 +1,96 @@ +pageLoadTimeStart(); + +if($session->access == BANNED){ +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    + +
    +
    + +
    +
    +
    + +
    + + +
    +
    +
    + pageLoadTimeEnd()-$start)*1000); +?> ms + +
    +
    +
    +
    + +
    + + + diff --git a/berichte.php b/berichte.php new file mode 100644 index 00000000..82f7756a --- /dev/null +++ b/berichte.php @@ -0,0 +1,116 @@ +pageLoadTimeStart(); +$message->noticeType($_GET); +$message->procNotice($_POST); +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    +

    Reports

    +
    + >All + | >Trade + | >Reinforcement + | >Attacks + | >Miscellaneous + plus) { + echo "| Archive"; + } + ?> +
    +readingNotice['ntype'] == 5)? $message->readingNotice['archive'] : $message->readingNotice['ntype']; + include("Templates/Notice/".$type.".tpl"); +} +else { + include("Templates/Notice/all.tpl"); +} +?> +
    + +
    + +
    +
    +
    + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    + +
    + + \ No newline at end of file diff --git a/build.php b/build.php new file mode 100644 index 00000000..a833bf31 --- /dev/null +++ b/build.php @@ -0,0 +1,168 @@ +pageLoadTimeStart(); +$alliance->procAlliForm($_POST); +$technology->procTech($_POST); +$market->procMarket($_POST); +if(isset($_GET['gid'])) { + $_GET['id'] = strval($building->getTypeField($_GET['gid'])); +} else if(isset($_POST['id'])) { + $_GET['id'] = $_POST['id']; +} +if(isset($_POST['t'])){ + $_GET['t'] = $_POST['t']; +} +if(isset($_GET['id'])) { + if (!ctype_digit($_GET['id'])){ + $_GET['id'] = "1"; + } + if($village->resarray['f'.$_GET['id'].'t'] == 17) { + $market->procRemove($_GET); + } + if($village->resarray['f'.$_GET['id'].'t'] == 18) { + $alliance->procAlliance($_GET); + } + if($village->resarray['f'.$_GET['id'].'t'] == 12 || $village->resarray['f'.$_GET['id'].'t'] == 13 || $village->resarray['f'.$_GET['id'].'t'] == 22) { + $technology->procTechno($_GET); + } +} + +if (isset($_POST['a']) == 533374 && isset($_POST['id']) == 39){ + $units->Settlers($_POST); +} +?> + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    +resarray['f99t'] == 40){ + include("Templates/Build/ww.tpl"); + } else + if($village->resarray['f'.$_GET['id'].'t'] == 0 && $_GET['id'] >= 19) { + include("Templates/Build/avaliable.tpl"); + } + else { + if(isset($_GET['t'])) { + if($_GET['t'] == 1) { + $_SESSION['loadMarket'] = 1; + } + include("Templates/Build/".$village->resarray['f'.$_GET['id'].'t']."_".$_GET['t'].".tpl"); + } else + if(isset($_GET['s'])) { + include("Templates/Build/".$village->resarray['f'.$_GET['id'].'t']."_".$_GET['s'].".tpl"); + } + else { + include("Templates/Build/".$village->resarray['f'.$_GET['id'].'t'].".tpl"); + } + } +} +?> + +
    + +
    + +
    +
    + + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    + +
    + + diff --git a/celebration.php b/celebration.php new file mode 100644 index 00000000..0ae3262e --- /dev/null +++ b/celebration.php @@ -0,0 +1,40 @@ +resarray['f'.$_GET['id'].'t'] == 24 and $village->currentcel == 0){ + if(!empty($_GET['type']) && $_GET['type'] == 1){ + if(6400 < $village->awood || 6650 < $village->aclay || 5940 < $village->airon || 1340 < $village->acrop){ + $endtime = ($sc[$village->resarray['f'.$_GET['id']]]/ SPEED) + time(); + $wood = 6400; + $clay = 6650; + $iron = 5940; + $crop = 1340; + $database->modifyResource($village->resarray['vref'],$wood,$clay,$iron,$crop,$mode); + $database->addCel($village->resarray['vref'],$endtime,$_GET['type']); + } + } + elseif(!empty($_GET['type']) && $_GET['type'] == 2){ + if(29700 < $village->awood || 33250 < $village->aclay || 32000 < $village->airon || 6700 < $village->acrop){ + $endtime = ($gc[$village->resarray['f'.$_GET['id']]]/ SPEED) + time(); + $wood= 29700; + $clay= 33250; + $iron= 32000; + $crop= 6700; + $database->modifyResource($village->resarray['vref'],$wood,$clay,$iron,$crop,$mode); + $database->addCel($village->resarray['vref'],$endtime,$_GET['type']); + } + } +} +header("Location: build.php?id=".$_GET['id']); \ No newline at end of file diff --git a/create_account.php b/create_account.php new file mode 100644 index 00000000..974d4166 --- /dev/null +++ b/create_account.php @@ -0,0 +1,377 @@ +access < ADMIN) + die("Access Denied: You are not Admin!"); + +/** + * Functions + */ + function generateBase($kid, $uid, $username) { + global $database, $message; + if($kid == 0) { + $kid = rand(1, 4); + } else { + $kid = $_POST['kid']; + } + + $wid = $database->generateBase($kid); + $database->setFieldTaken($wid); + $database->addVillage($wid, $uid, $username, 1); + $database->addResourceFields($wid, $database->getVillageType($wid)); + $database->addUnits($wid); + $database->addTech($wid); + $database->addABTech($wid); + $database->updateUserField($uid, "access", USER, 1); + $message->sendWelcome($uid, $username); + } + +/** + * Creating account & capital village + */ + $username = "Natars"; + $password = md5('013ab00e4' . rand(999999999999, 9999999999999999999999999) . 'f248588ed'); + $email = "natars@travianx.com"; + $tribe = 5; + $desc = "******************** + [#natars] + ********************"; + + $q = "INSERT INTO " . TB_PREFIX . "users (id,username,password,access,email,timestamp,tribe,location,act,protect) VALUES (3, '$username', '$password', " . USER . ", '$email', ".time().", $tribe, '', '', 0)"; + mysql_query($q); + unset($q); + $uid = $database->getUserField($username, 'id', 1); + generateBase(0, $uid, $username); + $wid = mysql_fetch_assoc(mysql_query("SELECT * FROM " . TB_PREFIX . "vdata WHERE owner = $uid")); + $q = "UPDATE " . TB_PREFIX . "vdata SET pop = 834 WHERE owner = $uid"; + mysql_query($q) or die(mysql_error()); + $q2 = "UPDATE " . TB_PREFIX . "users SET access = 2 WHERE id = $uid"; + mysql_query($q2) or die(mysql_error()); + if(SPEED > 3) { + $speed = 5; + } else { + $speed = SPEED; + } + $q3 = "UPDATE " . TB_PREFIX . "units SET u41 = " . (64700 * $speed) . ", u42 = " . (295231 * $speed) . ", u43 = " . (180747 * $speed) . ", u44 = " . (7 * $speed) . ", u45 = " . (364401 * $speed) . ", u46 = " . (217602 * $speed) . ", u47 = " . (2034 * $speed) . ", u48 = " . (1040 * $speed) . " , u49 = " . (1 * $speed) . ", u50 = " . (9 * $speed) . " WHERE vref = " . $wid['wref'] . ""; + mysql_query($q3) or die(mysql_error()); + $q4 = "UPDATE " . TB_PREFIX . "users SET desc2 = '$desc' WHERE id = $uid"; + mysql_query($q4) or die(mysql_error()); + + +/** + * SMALL ARTEFACTS + */ + function Artefact($uid, $type, $size, $art_name, $village_name, $desc, $effect, $img) { + global $database; + $kid = rand(1, 4); + $wid = $database->generateBase($kid); + $database->addArtefact($wid, $uid, $type, $size, $art_name, $desc, $effect, $img); + $database->setFieldTaken($wid); + $database->addVillage($wid, $uid, $village_name, '0'); + $database->addResourceFields($wid, $database->getVillageType($wid)); + $database->addUnits($wid); + $database->addTech($wid); + $database->addABTech($wid); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET pop = 163 WHERE wref = $wid"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET name = '$village_name' WHERE wref = $wid"); + if(SPEED > 3) { + $speed = 5; + } else { + $speed = SPEED; + } + if($size == 1) { + mysql_query("UPDATE " . TB_PREFIX . "units SET u41 = " . (rand(1000, 2000) * $speed) . ", u42 = " . (rand(1500, 2000) * $speed) . ", u43 = " . (rand(2300, 2800) * $speed) . ", u44 = " . (rand(25, 75) * $speed) . ", u45 = " . (rand(1200, 1900) * $speed) . ", u46 = " . (rand(1500, 2000) * $speed) . ", u47 = " . (rand(500, 900) * $speed) . ", u48 = " . (rand(100, 300) * $speed) . " , u49 = " . (rand(1, 5) * $speed) . ", u50 = " . (rand(1, 5) * $speed) . " WHERE vref = " . $wid . ""); + mysql_query("UPDATE " . TB_PREFIX . "fdata SET f22t = 27, f22 = 10, f28t = 25, f28 = 10, f19t = 23, f19 = 10, f32t = 23, f32 = 10 WHERE vref = $wid"); + } elseif($size == 2) { + mysql_query("UPDATE " . TB_PREFIX . "units SET u41 = " . (rand(2000, 4000) * $speed) . ", u42 = " . (rand(3000, 4000) * $speed) . ", u43 = " . (rand(4600, 5600) * $speed) . ", u44 = " . (rand(50, 150) * $speed) . ", u45 = " . (rand(2400, 3800) * $speed) . ", u46 = " . (rand(3000, 4000) * $speed) . ", u47 = " . (rand(1000, 1800) * $speed) . ", u48 = " . (rand(200, 600) * $speed) . " , u49 = " . (rand(2, 10) * $speed) . ", u50 = " . (rand(2, 10) * $speed) . " WHERE vref = " . $wid . ""); + mysql_query("UPDATE " . TB_PREFIX . "fdata SET f22t = 27, f22 = 10, f28t = 25, f28 = 20, f19t = 23, f19 = 10, f32t = 23, f32 = 10 WHERE vref = $wid"); + } elseif($size == 3) { + mysql_query("UPDATE " . TB_PREFIX . "units SET u41 = " . (rand(4000, 8000) * $speed) . ", u42 = " . (rand(6000, 8000) * $speed) . ", u43 = " . (rand(9200, 11200) * $speed) . ", u44 = " . (rand(100, 300) * $speed) . ", u45 = " . (rand(4800, 7600) * $speed) . ", u46 = " . (rand(6000, 8000) * $speed) . ", u47 = " . (rand(2000, 3600) * $speed) . ", u48 = " . (rand(400, 1200) * $speed) . " , u49 = " . (rand(4, 20) * $speed) . ", u50 = " . (rand(4, 20) * $speed) . " WHERE vref = " . $wid . ""); + mysql_query("UPDATE " . TB_PREFIX . "fdata SET f22t = 27, f22 = 10, f28t = 25, f28 = 20, f19t = 23, f19 = 10, f32t = 23, f32 = 10 WHERE vref = $wid"); + } + } + +/** + * THE ARCHITECTS + */ + + $desc = 'All buildings in the area of effect are stronger. This means that you will need more catapults to damage buildings protected by this artifacts powers.'; + + + $vname = 'Diamond Chisel'; + $effect = '(4x)'; + for($i > 1; $i < 6; $i++) { + Artefact($uid, 1, 1, 'The architects slight secret', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type1.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Giant Marble Hammer'; + $effect = '(3x)'; + for($i > 1; $i < 4; $i++) { + Artefact($uid, 1, 2, 'The architects great secret', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type1.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Hemons Scrolls'; + $effect = '(5x)'; + for($i > 1; $i < 1; $i++) { + Artefact($uid, 1, 3, 'The architects unique secret', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type1.gif'); + } + +/** + * MILITARY HASTE + */ + + + $desc = 'All troops in the area of effect move faster.'; + + unset($i); + unset($vname); + unset($effect); + $vname = 'Opal Horseshoe'; + $effect = '(2x)'; + for($i > 1; $i < 6; $i++) { + Artefact($uid, 2, 1, 'The slight titan boots', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type2.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Golden Chariot'; + $effect = '(1.5x)'; + for($i > 1; $i < 4; $i++) { + Artefact($uid, 2, 2, 'The great titan boots', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type2.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Pheidippides Sandals'; + $effect = '(3x)'; + for($i > 1; $i < 1; $i++) { + Artefact($uid, 2, 3, 'The unique titan boots', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type2.gif'); + } + +/** + * HAWK'S EYESIGHT + */ + + + $desc = 'All spies (Scouts, Pathfinders, and Equites Legati) increase their spying ability. In addition, with all versions of this artifact you can see the incoming TYPE of troops but not how many there are.'; + + unset($i); + unset($vname); + unset($effect); + $vname = 'Tale of a Rat'; + $effect = '(5x)'; + for($i > 1; $i < 6; $i++) { + Artefact($uid, 3, 1, 'The eagles slight eyes', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Generals Letter'; + $effect = '(3x)'; + for($i > 1; $i < 4; $i++) { + Artefact($uid, 3, 2, 'The eagles great eyes', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Diary of Sun Tzu'; + $effect = '(10x)'; + for($i > 1; $i < 1; $i++) { + Artefact($uid, 3, 3, 'The eagles unique eyes', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type3.gif'); + } + +/** + * THE DIET + */ + + + $desc = 'All troops in the artifacts range consume less wheat, making it possible to maintain a larger army.'; + + unset($i); + unset($vname); + unset($effect); + $vname = 'Silver Platter'; + $effect = '(50%)'; + for($i > 1; $i < 6; $i++) { + Artefact($uid, 4, 1, 'Slight diet control', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type4.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Sacred Hunting Bow'; + $effect = '(25%)'; + for($i > 1; $i < 4; $i++) { + Artefact($uid, 4, 2, 'Great diet control', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type4.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'King Arthurs Chalice'; + $effect = '(50%)'; + for($i > 1; $i < 1; $i++) { + Artefact($uid, 4, 3, 'Unique diet control', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type4.gif'); + } + + +/** + * ACADEMIC ADVANCEMENT + */ + + + $desc = 'Troops are built a certain percentage faster within the scope of the artifact.'; + + unset($i); + unset($vname); + unset($effect); + $vname = 'Scribed Soldiers Oath'; + $effect = '(50%)'; + for($i > 1; $i < 6; $i++) { + Artefact($uid, 5, 1, 'The trainers slight talent', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type5.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Declaration of War'; + $effect = '(25%)'; + for($i > 1; $i < 4; $i++) { + Artefact($uid, 5, 2, 'The trainers great talent', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type5.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Memoirs of Alexander the Great'; + $effect = '(50%)'; + for($i > 1; $i < 1; $i++) { + Artefact($uid, 5, 3, 'The trainers unique talent', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type5.gif'); + } + + +/** + * STORAGE MASTER PLAN + */ + + + $desc = 'With this building plan you are able to build the Great Granary or Great Warehouse in the Village with the artifact, or the whole account depending on the artifact. As long as you posses that artifact you are able to build and enlarge those buildings.'; + + unset($i); + unset($vname); + unset($effect);; + $vname = 'Builders Sketch'; + $effect = ''; + for($i > 1; $i < 6; $i++) { + Artefact($uid, 6, 1, 'Slight storage masterplan', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type6.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Babylonian Tablet'; + $effect = ''; + for($i > 1; $i < 4; $i++) { + Artefact($uid, 6, 2, 'Great storage masterplan', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type6.gif'); + } + + +/** + * RIVAL'S CONFUSION + */ + + + $desc = 'Cranny capacity is increased by a certain amount for each type of artifact. Catapults can only shoot random on villages within this artifacts power. Exceptions are the WW which can always be targeted and the treasure chamber which can always be targeted, except with the unique artifact. When aiming at a resource field only random resource fields can be hit, when aiming at a building only random buildings can be hit.'; + + unset($i); + unset($vname); + unset($effect); + $vname = 'Map of the Hidden Caverns'; + $effect = '(200)'; + for($i > 1; $i < 6; $i++) { + Artefact($uid, 7, 1, 'Rivals slight confusion', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type7.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Bottomless Satchel'; + $effect = '(100)'; + for($i > 1; $i < 4; $i++) { + Artefact($uid, 7, 2, 'Rivals great confusion', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type7.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Trojan Horse'; + $effect = '(500)'; + for($i > 1; $i < 1; $i++) { + Artefact($uid, 7, 3, 'Rivals unique confusion', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type7.gif'); + } + + +/** + * ARTEFACT OF THE FOOL + */ + + + $desc = 'Every 24 hours it gets a random effect, bonus, or penalty (all are possible with the exception of great warehouse, great granary and WW building plans). They change effect AND scope every 24 hours. The unique artifact will always take positive bonuses.'; + + unset($i); + unset($vname); + unset($effect); + $vname = 'Pendant of Mischief'; + for($i > 1; $i < 5; $i++) { + Artefact($uid, 8, 1, 'Artefact of the slight fool', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Pendant of Mischief'; + for($i > 1; $i < 5; $i++) { + Artefact($uid, 8, 2, 'Artefact of the slight fool', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif'); + } + + unset($i); + unset($vname); + unset($effect); + $vname = 'Forbidden Manuscript'; + for($i > 1; $i < 1; $i++) { + Artefact($uid, 8, 3, 'Artefact of the unique fool', '' . $vname . '', '' . $desc . '', '' . $effect . '', 'type8.gif'); + } + + +/** + * Done? + */ + echo "Done"; \ No newline at end of file diff --git a/crop_finder.php b/crop_finder.php new file mode 100644 index 00000000..84d76bfe --- /dev/null +++ b/crop_finder.php @@ -0,0 +1,359 @@ + | +| Dzoki < dzoki.travian@gmail.com > | +| Copyright: TravianX Project All rights reserved | +\*-------------------------------------------------------*/ + + include ("GameEngine/Village.php"); + + if($session->plus == 0) { + header("Location: plus.php?id=3"); + } + + if($_POST['type'] == 15) { + header("Location: ".$_SERVER['PHP_SELF']."?s=1&x=" . $_POST['x'] . '&y=' . $_POST['y']); + } elseif($_POST['type'] == 9) { + header("Location: ".$_SERVER['PHP_SELF']."?s=2&x=" . $_POST['x'] . '&y=' . $_POST['y']); + } elseif($_POST['type'] == 'both') { + header("Location: ".$_SERVER['PHP_SELF']."?s=3&x=" . $_POST['x'] . '&y=' . $_POST['y']); + } + +?> + + + + <?php + + echo SERVER_NAME + +?> - Crop Finder + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } + else { + echo " + + "; + } + +?> + + + + + +
    + +
    +
    + +
    +wid; + $coor2 = $database->getCoor($wref2); + } + +?> +
    + +

    Crop Finder

    +
    + + +
    +

    +
    + + + + + + + + + + + +
    Search for: + /> 15 crop + /> 9 crop + /> both
    +
    Startposition:x: y: +
    +
    + +wid; + $coor = $database->getCoor($wref); + } + + function getDistance($coorx1, $coory1, $coorx2, $coory2) { + $max = 2 * WORLD_MAX + 1; + $x1 = intval($coorx1); + $y1 = intval($coory1); + $x2 = intval($coorx2); + $y2 = intval($coory2); + $distanceX = min(abs($x2 - $x1), abs($max - abs($x2 - $x1))); + $distanceY = min(abs($y2 - $y1), abs($max - abs($y2 - $y1))); + $dist = sqrt(pow($distanceX, 2) + pow($distanceY, 2)); + return round($dist, 1); + } + + if($_GET['s'] == 1) { + +?> + + + + + + + + + + + + + + + +
    + + $row) { + + echo ""; + echo ""; + if($row['occupied'] == 0) { + echo ""; + echo ""; + echo ""; + } else { + echo ""; + echo ""; + echo ""; + } + echo ""; + } + +?> + +
    Crop Finder - 15c
    TypeCoordinatesOwnerOccupiedDistance
    15c(".$row['x']."|".$row['y'].")-UnoccupiedgetMapCheck($row['id'])."\">".$database->getVillageField($row['id'], "name")." (".$row['x']."|".$row['y'].")getVillageField($row['id'], "owner")."\">".$database->getUserField($database->getVillageField($row['id'], "owner"), "username", 0)."Occupied
    ".getDistance($coor['x'], $coor['y'], $row['x'], $row['y'])."
    + + + + + + + + + + + + + + + + + +
    + $row) { + + + echo ""; + echo ""; + if($row['occupied'] == 0) { + echo ""; + echo ""; + echo ""; + } else { + echo ""; + echo ""; + echo ""; + } + echo ""; + } + +?> + +
    Crop Finder - 9c
    TypeCoordinatesOwnerOccupiedDistance
    9c(".$row['x']."|".$row['y'].")-UnoccupiedgetMapCheck($row['id'])."\">".$database->getVillageField($row['id'], "name")." (".$row['x']."|".$row['y'].")getVillageField($row['id'], "owner")."\">".$database->getUserField($database->getVillageField($row['id'], "owner"), "username", 0)."Occupied
    ".getDistance($coor['x'], $coor['y'], $row['x'], $row['y'])."
    + + + + + + + + + + + + + + + + + +
    + $row) { + + if($row['fieldtype'] == 1) { + $field = '9c'; + } elseif($row['fieldtype'] == 6) { + $field = '15c'; + } + + echo ""; + echo ""; + if($row['occupied'] == 0) { + echo ""; + echo ""; + echo ""; + } else { + echo ""; + echo ""; + echo ""; + } + echo ""; + } + +?> + +
    Crop Finder - 9c and 15c
    TypeCoordinatesOwnerOccupiedDistance
    " . $field . "(".$row['x']."|".$row['y'].")-UnoccupiedgetMapCheck($row['id'])."\">".$database->getVillageField($row['id'], "name")." (".$row['x']."|".$row['y'].")getVillageField($row['id'], "owner")."\">".$database->getUserField($database->getVillageField($row['id'], "owner"), "username", 0)."Occupied
    ".getDistance($coor['x'], $coor['y'], $row['x'], $row['y'])."
    + + +
    +
    + +
    +
    +
    + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd() - $start) * 1000); + +?> ms + +
    Server time: +
    +
    +
    + +
    + + diff --git a/dorf1.php b/dorf1.php new file mode 100644 index 00000000..328c7960 --- /dev/null +++ b/dorf1.php @@ -0,0 +1,113 @@ +pageLoadTimeStart(); +if(isset($_GET['ok'])){ + $database->updateUserField($session->username,'ok','0','0'); $_SESSION['ok'] = '0'; } +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +else { + $building->procBuild($_GET); +} +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    +

    vname; if($village->loyalty!='100'){ if($village->loyalty>'33'){ $color="gr"; }else{ $color="re"; } ?>
    loyalty); ?>%

    + +
    +NewBuilding) { + include("Templates/Building.tpl"); +} +?> +
    +
    + +
    +
    +
    + +
    + + +
    +
    +
    + pageLoadTimeEnd()-$start)*1000); +?> ms + +
    +
    +
    +
    + +
    + + diff --git a/dorf2.php b/dorf2.php new file mode 100644 index 00000000..a5904f18 --- /dev/null +++ b/dorf2.php @@ -0,0 +1,104 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +else { + $building->procBuild($_GET); +} +?> + + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    +

    vname; ?>

    + +NewBuilding) { + include("Templates/Building.tpl"); +} +?> +
    +
    + +
    +
    +
    + +
    + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    +
    + + \ No newline at end of file diff --git a/dorf3.php b/dorf3.php new file mode 100644 index 00000000..25d50a10 --- /dev/null +++ b/dorf3.php @@ -0,0 +1,114 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +?> + + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    + +plus){ + if(isset($_GET['s'])){ + if($_GET['s'] == 2){ + include("Templates/dorf3/2.tpl"); + }elseif($_GET['s'] == 3){ + include("Templates/dorf3/3.tpl"); + }elseif($_GET['s'] == 4){ + include("Templates/dorf3/4.tpl"); + }elseif($_GET['s'] == 5){ + include("Templates/dorf3/5.tpl"); + } + }else{ + include("Templates/dorf3/1.tpl"); + } +}else{ + include("Templates/dorf3/noplus.tpl"); +} +?> +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    +
    + + diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 00000000..f8529348 Binary files /dev/null and b/favicon.ico differ diff --git a/gpack/download/travian_default.zip b/gpack/download/travian_default.zip new file mode 100644 index 00000000..69469044 Binary files /dev/null and b/gpack/download/travian_default.zip differ diff --git a/gpack/travian/elements/country_sprite.gif b/gpack/travian/elements/country_sprite.gif new file mode 100644 index 00000000..6f4ab580 Binary files /dev/null and b/gpack/travian/elements/country_sprite.gif differ diff --git a/gpack/travian/flaggs.css b/gpack/travian/flaggs.css new file mode 100644 index 00000000..8edc57bd --- /dev/null +++ b/gpack/travian/flaggs.css @@ -0,0 +1,294 @@ +@CHARSET "UTF-8"; + +#flags { + position:absolute; + top: 0; + left: 0; + width: 100%; + text-align: center; +} + +#region_select { + color: white; + font-size: 10px; + text-transform: uppercase; + width:120px; + background-color: #535353; + border: 1px solid #777; + padding: 1px 0; + padding-left: 4px; + margin-right: 15px; + position: relative; + top: -2px; +} + +#flags div { + display: inline; +} + +#flag_box { + +} + +#flag_box img { + margin-top: 9px; + height: 11px; + width: 16px; + background-image: url("elements/country_sprite.gif"); +} + +#flag_box a { + margin: 4px; +} + +/** + * Flag sprite definition + */ +.flag_ad { background-position: 0px 0px; } +.flag_ae { background-position: -16px 0px; } +.flag_af { background-position: -32px 0px; } +.flag_ag { background-position: -48px 0px; } +.flag_ai { background-position: -64px 0px; } +.flag_al { background-position: -80px 0px; } +.flag_am { background-position: -96px 0px; } +.flag_an { background-position: -112px 0px; } +.flag_ao { background-position: -128px 0px; } +.flag_ar { background-position: -144px 0px; } +.flag_as { background-position: -160px 0px; } +.flag_at { background-position: -176px 0px; } +.flag_au { background-position: -192px 0px; } +.flag_aw { background-position: -208px 0px; } +.flag_ax { background-position: -224px 0px; } +.flag_az { background-position: -240px 0px; } +.flag_ba { background-position: -256px 0px; } +.flag_bb { background-position: -272px 0px; } +.flag_bd { background-position: -288px 0px; } +.flag_be { background-position: -304px 0px; } +.flag_bf { background-position: -320px 0px; } +.flag_bg { background-position: -336px 0px; } +.flag_bh { background-position: -352px 0px; } +.flag_bi { background-position: -368px 0px; } +.flag_bj { background-position: -384px 0px; } +.flag_bm { background-position: -400px 0px; } +.flag_bn { background-position: -416px 0px; } +.flag_bo { background-position: -432px 0px; } +.flag_br { background-position: -448px 0px; } +.flag_bs { background-position: -464px 0px; } +.flag_bt { background-position: -480px 0px; } +.flag_bv { background-position: -496px 0px; } +.flag_bw { background-position: -512px 0px; } +.flag_by { background-position: -528px 0px; } +.flag_bz { background-position: -544px 0px; } +.flag_ca { background-position: -560px 0px; } +.flag_catalonia { background-position: -576px 0px; } +.flag_cc { background-position: -592px 0px; } +.flag_cd { background-position: -608px 0px; } +.flag_cf { background-position: -624px 0px; } +.flag_cg { background-position: -640px 0px; } +.flag_ch { background-position: -656px 0px; } +.flag_ci { background-position: -672px 0px; } +.flag_ck { background-position: -688px 0px; } +.flag_cl { background-position: -704px 0px; } +.flag_cm { background-position: -720px 0px; } +.flag_cn { background-position: -736px 0px; } +.flag_co { background-position: -752px 0px; } +.flag_cr { background-position: -768px 0px; } +.flag_cs { background-position: -784px 0px; } +.flag_cu { background-position: -800px 0px; } +.flag_cv { background-position: -816px 0px; } +.flag_cx { background-position: -832px 0px; } +.flag_cy { background-position: -848px 0px; } +.flag_cz { background-position: -864px 0px; } +.flag_de { background-position: -880px 0px; } +.flag_dj { background-position: -896px 0px; } +.flag_dk { background-position: -912px 0px; } +.flag_dm { background-position: -928px 0px; } +.flag_do { background-position: -944px 0px; } +.flag_dz { background-position: -960px 0px; } +.flag_ec { background-position: -976px 0px; } +.flag_ee { background-position: -992px 0px; } +.flag_eg { background-position: -1008px 0px; } +.flag_eh { background-position: -1024px 0px; } +.flag_en { background-position: -1040px 0px; } +.flag_er { background-position: -1056px 0px; } +.flag_es, .flag_net { background-position: -1072px 0px; } +.flag_et { background-position: -1088px 0px; } +.flag_europeanunion { background-position: -1104px 0px; } +.flag_fam { background-position: -1120px 0px; } +.flag_fi { background-position: -1136px 0px; } +.flag_fj { background-position: -1152px 0px; } +.flag_fk { background-position: -1168px 0px; } +.flag_fm { background-position: -1184px 0px; } +.flag_fo { background-position: -1200px 0px; } +.flag_fr { background-position: -1216px 0px; } +.flag_ga { background-position: -1232px 0px; } +.flag_uk, .flag_gb { background-position: -1248px 0px; } +.flag_gd { background-position: -1264px 0px; } +.flag_ge { background-position: -1280px 0px; } +.flag_gf { background-position: -1296px 0px; } +.flag_gh { background-position: -1312px 0px; } +.flag_gi { background-position: -1328px 0px; } +.flag_gl { background-position: -1344px 0px; } +.flag_gm { background-position: -1360px 0px; } +.flag_gn { background-position: -1376px 0px; } +.flag_gp { background-position: -1392px 0px; } +.flag_gq { background-position: -1408px 0px; } +.flag_gr { background-position: -1424px 0px; } +.flag_gs { background-position: -1440px 0px; } +.flag_gt { background-position: -1456px 0px; } +.flag_gu { background-position: -1472px 0px; } +.flag_gw { background-position: -1488px 0px; } +.flag_gy { background-position: -1504px 0px; } +.flag_hk { background-position: -1520px 0px; } +.flag_hm { background-position: -1536px 0px; } +.flag_hn { background-position: -1552px 0px; } +.flag_hr { background-position: -1568px 0px; } +.flag_ht { background-position: -1584px 0px; } +.flag_hu { background-position: -1600px 0px; } +.flag_id { background-position: -1616px 0px; } +.flag_ie { background-position: -1632px 0px; } +.flag_il { background-position: -1648px 0px; } +.flag_in { background-position: -1664px 0px; } +.flag_io { background-position: -1680px 0px; } +.flag_iq { background-position: -1696px 0px; } +.flag_ir { background-position: -1712px 0px; } +.flag_is { background-position: -1728px 0px; } +.flag_it { background-position: -1744px 0px; } +.flag_jm { background-position: -1760px 0px; } +.flag_jo { background-position: -1776px 0px; } +.flag_jp { background-position: -1792px 0px; } +.flag_ke { background-position: -1808px 0px; } +.flag_kg { background-position: -1824px 0px; } +.flag_kh { background-position: -1840px 0px; } +.flag_ki { background-position: -1856px 0px; } +.flag_km { background-position: -1872px 0px; } +.flag_kn { background-position: -1888px 0px; } +.flag_kp { background-position: -1904px 0px; } +.flag_kr { background-position: -1920px 0px; } +.flag_kw { background-position: -1936px 0px; } +.flag_ky { background-position: -1952px 0px; } +.flag_kz { background-position: -1968px 0px; } +.flag_la { background-position: -1984px 0px; } +.flag_lb { background-position: -2000px 0px; } +.flag_lc { background-position: -2016px 0px; } +.flag_li { background-position: -2032px 0px; } +.flag_lk { background-position: -2048px 0px; } +.flag_lr { background-position: -2064px 0px; } +.flag_ls { background-position: -2080px 0px; } +.flag_lt { background-position: -2096px 0px; } +.flag_lu { background-position: -2112px 0px; } +.flag_lv { background-position: -2128px 0px; } +.flag_ly { background-position: -2144px 0px; } +.flag_ma { background-position: -2160px 0px; } +.flag_mc { background-position: -2176px 0px; } +.flag_md { background-position: -2192px 0px; } +.flag_me { background-position: -2208px 0px; } +.flag_mg { background-position: -2224px 0px; } +.flag_mh { background-position: -2240px 0px; } +.flag_mk { background-position: -2256px 0px; } +.flag_ml { background-position: -2272px 0px; } +.flag_mm { background-position: -2288px 0px; } +.flag_mn { background-position: -2304px 0px; } +.flag_mo { background-position: -2320px 0px; } +.flag_mp { background-position: -2336px 0px; } +.flag_mq { background-position: -2352px 0px; } +.flag_mr { background-position: -2368px 0px; } +.flag_ms { background-position: -2384px 0px; } +.flag_mt { background-position: -2400px 0px; } +.flag_mu { background-position: -2416px 0px; } +.flag_mv { background-position: -2432px 0px; } +.flag_mw { background-position: -2448px 0px; } +.flag_mx { background-position: -2464px 0px; } +.flag_my { background-position: -2480px 0px; } +.flag_mz { background-position: -2496px 0px; } +.flag_na { background-position: -2512px 0px; } +.flag_nc { background-position: -2528px 0px; } +.flag_ne { background-position: -2544px 0px; } +.flag_nf { background-position: -2560px 0px; } +.flag_ng { background-position: -2576px 0px; } +.flag_ni { background-position: -2592px 0px; } +.flag_nl { background-position: -2608px 0px; } +.flag_no { background-position: -2624px 0px; } +.flag_np { background-position: -2640px 0px; } +.flag_nr { background-position: -2656px 0px; } +.flag_nu { background-position: -2672px 0px; } +.flag_nz { background-position: -2688px 0px; } +.flag_om { background-position: -2704px 0px; } +.flag_pa { background-position: -2720px 0px; } +.flag_pe { background-position: -2736px 0px; } +.flag_pf { background-position: -2752px 0px; } +.flag_pg { background-position: -2768px 0px; } +.flag_ph { background-position: -2784px 0px; } +.flag_pk { background-position: -2800px 0px; } +.flag_pl { background-position: -2816px 0px; } +.flag_pm { background-position: -2832px 0px; } +.flag_pn { background-position: -2848px 0px; } +.flag_pr { background-position: -2864px 0px; } +.flag_ps { background-position: -2880px 0px; } +.flag_pt { background-position: -2896px 0px; } +.flag_pw { background-position: -2912px 0px; } +.flag_py { background-position: -2928px 0px; } +.flag_qa { background-position: -2944px 0px; } +.flag_re { background-position: -2960px 0px; } +.flag_ro { background-position: -2976px 0px; } +.flag_rs { background-position: -2992px 0px; } +.flag_ru { background-position: -3008px 0px; } +.flag_rw { background-position: -3024px 0px; } +.flag_sa { background-position: -3040px 0px; } +.flag_sb { background-position: -3056px 0px; } +.flag_sc { background-position: -3072px 0px; } +.flag_scotland { background-position: -3088px 0px; } +.flag_sd { background-position: -3104px 0px; } +.flag_se { background-position: -3120px 0px; } +.flag_sg { background-position: -3136px 0px; } +.flag_sh { background-position: -3152px 0px; } +.flag_si { background-position: -3168px 0px; } +.flag_sj { background-position: -3184px 0px; } +.flag_sk { background-position: -3200px 0px; } +.flag_sl { background-position: -3216px 0px; } +.flag_sm { background-position: -3232px 0px; } +.flag_sn { background-position: -3248px 0px; } +.flag_so { background-position: -3264px 0px; } +.flag_sr { background-position: -3280px 0px; } +.flag_st { background-position: -3296px 0px; } +.flag_sv { background-position: -3312px 0px; } +.flag_sy { background-position: -3328px 0px; } +.flag_sz { background-position: -3344px 0px; } +.flag_tc { background-position: -3360px 0px; } +.flag_td { background-position: -3376px 0px; } +.flag_tf { background-position: -3392px 0px; } +.flag_tg { background-position: -3408px 0px; } +.flag_th { background-position: -3424px 0px; } +.flag_tj { background-position: -3440px 0px; } +.flag_tk { background-position: -3456px 0px; } +.flag_tl { background-position: -3472px 0px; } +.flag_tm { background-position: -3488px 0px; } +.flag_tn { background-position: -3504px 0px; } +.flag_to { background-position: -3520px 0px; } +.flag_tr { background-position: -3536px 0px; } +.flag_tt { background-position: -3552px 0px; } +.flag_tv { background-position: -3568px 0px; } +.flag_tw { background-position: -3584px 0px; } +.flag_tz { background-position: -3600px 0px; } +.flag_ua { background-position: -3616px 0px; } +.flag_ug { background-position: -3632px 0px; } +.flag_um { background-position: -3648px 0px; } +.flag_us { background-position: -3664px 0px; } +.flag_uy { background-position: -3680px 0px; } +.flag_uz { background-position: -3696px 0px; } +.flag_va { background-position: -3712px 0px; } +.flag_vc { background-position: -3728px 0px; } +.flag_ve { background-position: -3744px 0px; } +.flag_vg { background-position: -3760px 0px; } +.flag_vi { background-position: -3776px 0px; } +.flag_vn { background-position: -3792px 0px; } +.flag_vu { background-position: -3808px 0px; } +.flag_wales { background-position: -3824px 0px; } +.flag_wf { background-position: -3840px 0px; } +.flag_ws { background-position: -3856px 0px; } +.flag_ye { background-position: -3872px 0px; } +.flag_yt { background-position: -3888px 0px; } +.flag_za { background-position: -3904px 0px; } +.flag_zm { background-position: -3920px 0px; } +.flag_zw { background-position: -3936px 0px; } +.flag_com { background-position: -3952px 0px; } diff --git a/gpack/travian/images/Thumbs.db b/gpack/travian/images/Thumbs.db new file mode 100644 index 00000000..6b258b1e Binary files /dev/null and b/gpack/travian/images/Thumbs.db differ diff --git a/gpack/travian/images/artwork.jpg b/gpack/travian/images/artwork.jpg new file mode 100644 index 00000000..5719683c Binary files /dev/null and b/gpack/travian/images/artwork.jpg differ diff --git a/gpack/travian/images/buttons_screenshots_next.gif b/gpack/travian/images/buttons_screenshots_next.gif new file mode 100644 index 00000000..09749a14 Binary files /dev/null and b/gpack/travian/images/buttons_screenshots_next.gif differ diff --git a/gpack/travian/images/buttons_screenshots_prev.gif b/gpack/travian/images/buttons_screenshots_prev.gif new file mode 100644 index 00000000..af022041 Binary files /dev/null and b/gpack/travian/images/buttons_screenshots_prev.gif differ diff --git a/gpack/travian/images/content_background.jpg b/gpack/travian/images/content_background.jpg new file mode 100644 index 00000000..39d8e8e6 Binary files /dev/null and b/gpack/travian/images/content_background.jpg differ diff --git a/gpack/travian/images/count_background.jpg b/gpack/travian/images/count_background.jpg new file mode 100644 index 00000000..b38bd67a Binary files /dev/null and b/gpack/travian/images/count_background.jpg differ diff --git a/gpack/travian/images/country_background.jpg b/gpack/travian/images/country_background.jpg new file mode 100644 index 00000000..759e8fda Binary files /dev/null and b/gpack/travian/images/country_background.jpg differ diff --git a/gpack/travian/images/footer_background.jpg b/gpack/travian/images/footer_background.jpg new file mode 100644 index 00000000..0fdb4286 Binary files /dev/null and b/gpack/travian/images/footer_background.jpg differ diff --git a/gpack/travian/images/info_background.jpg b/gpack/travian/images/info_background.jpg new file mode 100644 index 00000000..7c3125b3 Binary files /dev/null and b/gpack/travian/images/info_background.jpg differ diff --git a/gpack/travian/images/logo_background.jpg b/gpack/travian/images/logo_background.jpg new file mode 100644 index 00000000..c2efefd4 Binary files /dev/null and b/gpack/travian/images/logo_background.jpg differ diff --git a/gpack/travian/images/logo_traviangames.jpg b/gpack/travian/images/logo_traviangames.jpg new file mode 100644 index 00000000..a7dae142 Binary files /dev/null and b/gpack/travian/images/logo_traviangames.jpg differ diff --git a/gpack/travian/images/main_background_content.jpg b/gpack/travian/images/main_background_content.jpg new file mode 100644 index 00000000..9ded052b Binary files /dev/null and b/gpack/travian/images/main_background_content.jpg differ diff --git a/gpack/travian/images/main_background_front.jpg b/gpack/travian/images/main_background_front.jpg new file mode 100644 index 00000000..f7ddbe9c Binary files /dev/null and b/gpack/travian/images/main_background_front.jpg differ diff --git a/gpack/travian/images/nav_left.gif b/gpack/travian/images/nav_left.gif new file mode 100644 index 00000000..3e7dc1a2 Binary files /dev/null and b/gpack/travian/images/nav_left.gif differ diff --git a/gpack/travian/images/nav_right.gif b/gpack/travian/images/nav_right.gif new file mode 100644 index 00000000..eca17053 Binary files /dev/null and b/gpack/travian/images/nav_right.gif differ diff --git a/gpack/travian/images/news_background.jpg b/gpack/travian/images/news_background.jpg new file mode 100644 index 00000000..06d3a0af Binary files /dev/null and b/gpack/travian/images/news_background.jpg differ diff --git a/gpack/travian/images/news_footer.jpg b/gpack/travian/images/news_footer.jpg new file mode 100644 index 00000000..d36549cc Binary files /dev/null and b/gpack/travian/images/news_footer.jpg differ diff --git a/gpack/travian/images/news_header.jpg b/gpack/travian/images/news_header.jpg new file mode 100644 index 00000000..241d7f1d Binary files /dev/null and b/gpack/travian/images/news_header.jpg differ diff --git a/gpack/travian/images/news_spacer.jpg b/gpack/travian/images/news_spacer.jpg new file mode 100644 index 00000000..8c30b250 Binary files /dev/null and b/gpack/travian/images/news_spacer.jpg differ diff --git a/gpack/travian/images/screenshots_background.jpg b/gpack/travian/images/screenshots_background.jpg new file mode 100644 index 00000000..1bfa46a1 Binary files /dev/null and b/gpack/travian/images/screenshots_background.jpg differ diff --git a/gpack/travian/main.css b/gpack/travian/main.css new file mode 100644 index 00000000..8e467f2a --- /dev/null +++ b/gpack/travian/main.css @@ -0,0 +1,618 @@ +@CHARSET "UTF-8"; + +/* Allgemeines */ + +body { + background-color: #FFFFFF; + direction: ltr; + font-size: 13px; + line-height: 19px; + margin: 0; + text-align: left; +} + +html { + overflow-y: scroll; +} + +html, +body { + margin:0; + padding:0; + height:100%; +} + + +body, button, input, select, textarea {font-family: Arial, Verdana, Helvetica, sans-serif;} + +a {font-size: 13px; text-decoration: none;} +a, a:visited {color: #71D000;} +a:active {color: #FF8000;} +a:hover {color: #00BC00; text-decoration: underline;} + +#content a {font-weight: bold; } +#content a:hover {text-decoration: none;} + +img {border: 0;} +.clear {clear: both; display: block; font-size: 0; height: 0; line-height: 0; visibility: hidden;} + +ul.menu, div.menu ul {list-style-type: none; margin: 0; padding: 0;} +.menu li {float: left;} + +.wrapper {height: auto !important; height: 100%; min-height: 100%; min-width: 845px; position: relative; text-align: center;} +.wrapper #content {text-align: left;} + +img.dynamic_btn, img.dynamic_img {background-position:top; background-repeat: no-repeat;} +img.over {background-position:bottom;} +img.clicked {background-position:center;} + +/* Schriftgroesse */ +.f16 {font-size:16pt;} +.f10 {font-size:10pt;} +.f9 {font-size:9pt; line-height: 140%; font-weight:normal;} +.f8 {font-size:8pt;} +.f7 {font-size:7pt;} +.f6 {font-size:6pt;} + +/* e Schriftfarbe fuer Fehlermeldung Login/Anmeldung */ +.e {color:#FF8000;} + +/* Schriftfarbe fuer Inaktive Links */ +.c {color:#C0C0C0;} +.c0 {color:#000000;} +.c1 {color:#71D000;} +.c2 {color:#FF8000;} +.c3 {color:#228B22;} +.c4 {color:#F2C700;} +.c5 {color:#FF0000;} + +/* Dicke Schrift */ +.b {font-weight:bold} + +/* Dünne Schrift */ +.t {font-weight:normal;} + +h1, h2, h3, h4, h5, h6 { + +} + +h1 {margin:0;} + +body.contentPage h1 { + text-align: center; + padding-top: 70px; + margin-bottom: 40px; + font-size: 26px; +} +body.contentPage #content .characteristics, body.contentPage #content p, body.contentPage #content table, body.contentPage form { + margin: 15px 160px; +} + +body.contentPage .rules { + margin-left: 120px; + margin-right: 160px; +} + +body.contentPage ul { + margin-top: 15px; + margin-bottom: 15px; +} + +body.contentPage .rules strong { + color:#2A720B; +} + +body.contentPage .rules ul strong { + color:#3BAE18; +} + +body.contentPage form table { + margin: 0; +} + +body.contentPage table.table_data { + background-color: #C0C0C0; + text-align: center; +} + +body.contentPage table.table_data { + width: 550px; +} + +body.contentPage table.culture_points { + margin: 15px 110px; + width: 650px; +} + + +#tutorial_nav, body.contentPage table.tutorial_table { + table-layout: fixed; + background-color: #fff; + width: 550px; +} + +body.contentPage #content td li, body.contentPage #content td form { + margin:0px; +} + +body.contentPage #content td.beschreibung { + text-align: left; + padding-top: 50px; +} + +body.contentPage table.tutorial_table td.visual { + text-align: center; + font-size: 11px; + font-style: italic; +} + +body.contentPage table.tutorial_table td.visual img { + display:block; + margin: auto; +} + +#tutorial_nav td.nav_prev { + text-align: left; +} + +#tutorial_nav td.nav_next { + text-align: right; +} + + +body.contentPage table.table_data th { + background-color: #F5F5F5; +} + +body.contentPage table.table_data td { + background-color: #fff; +} + +body.contentPage table.middle { + table-layout: fixed; + width: 520px; +} + +body.contentPage table.middle input { + width: 80px; +} + +table.middle td.yes { + text-align: right; +} + +table.middle td.no { + text-align: left; +} + +td.text, th.text { + padding-left: 7px; + text-align: left; +} + +body.contentPage #content h2 { + font-size: 16px;color: #71d000;line-height: 20px; + margin: 50px 160px 10px; +} + +body.contentPage #content h3 { + margin: 15px 160px 5px; + font-size: 14px; line-height: 18px; +} + +body.contentPage #content table h3 { + margin: 3px; +} + + +body.contentPage #content ul { + margin-top: 5px; +} + + +#content .question { + padding-top: 30px; + font-style: italic; + color: #333; +} + +#content .answer { + +} + + +/* Layout */ + +body.indexPage {background: #fff url("images/main_background_front.jpg") repeat-x top;} +body.contentPage {background: #fff url("images/main_background_content.jpg") repeat-x top;} + +#header {position: absolute; margin: 0 auto;right: 0; left: 0; width: 100%;} +#header {top: 0px; z-index: 10;} + + + +body.indexPage #header {height: 389px; overflow: auto; background: transparent url("images/artwork.jpg") no-repeat top center;} +body.contentPage #header {height: 200px; background: transparent none;} + +#header h1 {display: none;} + +#country_select {position: absolute;top: 0;left: 0;width: 100%;height: 30px;z-index: 500;} +#country_select {background: #fff url("images/country_background.jpg") repeat-x top;} + +#navigation {position: absolute;top:52px;left: 50%;margin-left: -437px;width: 830px;height: 114px;z-index: 80;} +.contentPage #navigation {background: url("images/logo_background.jpg") no-repeat top left;} +#navigation .menu {} +#navigation table.menu {position: absolute; right: 25px;top: 30px;width: 500px;} +#navigation .menu td {text-align: center;} +#navigation .menu a {text-decoration: none; font-size: 14px;line-height: 20px;color: #333; text-shadow: 1px 1px 1px #fff;} +#navigation .menu a.mark {color: #a20327;} +#navigation a.home { + width: 250px; + height: 85px; + position: absolute; + left: 55px; + top:0px; +} + +#navigation .menu a {padding: 6px 10px 7px 0px;} +#navigation .menu a span {padding: 6px 0px 7px 10px;} + +#navigation .menu a:hover {background: transparent url("images/nav_right.gif") no-repeat scroll bottom right;} +#navigation .menu a:hover span {background: transparent url("images/nav_left.gif") no-repeat scroll bottom left;} + +.ie6 #navigation .menu a:hover, .ie7 #navigation .menu a:hover {background: transparent; } +.ie6 #navigation .menu a:hover span, .ie7 #navigation .menu a:hover span {background: transparent;} + +#navigation .menu a:active {background: transparent url("images/nav_right.gif") no-repeat scroll top right;} +#navigation .menu a:active span {background: transparent url("images/nav_left.gif") no-repeat scroll top left;} + +#register_now { + position: absolute; + left: 50%; + top: 277px; + margin-left: -151px; + color: #574b2e; + height: 50px; + width: 145px; + color: #574b2e; + font-weight: bold; + z-index: 250; +} + +#register_now a { + margin-top: 7px; + color: #574b2e; + font-size: 21px; + display: block; +} + +#register_now span { + font-size: 9px; +} + + +#t4play { + position: absolute; + left: 50%; + top: 109px; + margin-left: 30px; + + z-index: 250; +} + +#t4play img { + width: 460px; + height: 290px; +} + + + +#content {position: relative;z-index: 50;} + +body.indexPage #content {padding-top: 367px;padding-bottom: 120px;} +body.contentPage #content {padding-top: 177px;padding-bottom: 160px;} + +#content .grit {position: relative;margin: 0 auto;} + +body.indexPage #content .grit {width: 830px; background: transparent none;} +body.contentPage #content .grit {width: 840px; min-height: 400px; background: transparent url("images/content_background.jpg") no-repeat top left; } + +.grit .infobox { + float: left; + margin-right: 9px; + margin-left:15px; + min-height: 391px; + width: 378px; + background: transparent url("images/info_background.jpg") no-repeat top left; +} + +.grit .infobox div {padding-left: 43px;padding-right: 30px;} + +#what_is_travian {padding-top:5px;} +#what_is_travian p {margin: 0;} +#what_is_travian h2 {font-size: 18px;font-weight: normal;color: #71d000;line-height: 20px;margin-bottom: 10px; text-shadow: 0px 2px 1px #fff;} +#what_is_travian .play_now {margin: 10px 0;} + +#player_counter {position: relative; padding: 0;left: 23px;height: 98px;width: 330px;background: transparent url("images/count_background.jpg") no-repeat top left;} +#player_counter table {position: absolute;left: 135px;top: 20px;width: 165px;border-spacing: 0;} +#player_counter table th {font-weight: normal;} +#player_counter table td {font-weight: bold;} + +#about_the_game {} +#about_the_game h2 {font-size: 15px; line-height: 20px; margin-bottom: 5px;} +#about_the_game ul {margin: 0; padding: 0; margin-top: 5px; margin-left: 15px;} +#about_the_game li {line-height: 19px;} + + +#news_from_forum h2 {font-size: 15px; line-height: 20px; margin-bottom: 5px; cursor: pointer;} +#news_from_forum ul {margin: 0; padding: 0; margin-top: 5px; list-style: none; border-top: 1px solid #999; margin-right:10px;} +#news_from_forum li {line-height: 19px; border-bottom: 1px solid #999; padding: 3px 5px;} +#news_from_forum li a {font-weight: normal;} + + +.hide {display:none;} + +.grit .secondarybox { + float: left; + margin-top: 22px; + background: transparent url("images/news_background.jpg") repeat-y top left; + width: 397px; +} + + +.grit #screenshots { + position: relative; + height: 134px; + width: 397px; + background: transparent url("images/screenshots_background.jpg") no-repeat top left; +} + +.grit #screenshots .prev img { + display: none; +} + +#screenshots h2 { + margin:0px; + padding:23px 20px 0; + color: #fff; + font-size:13px; +} + +#screenshots_preview { + height: 73px; + width: 294px; + position: absolute; + overflow: hidden; + margin: 7px 53px; + padding: 0; +} + +#screenshot_list { + list-style: none; + height: 73px; + padding: 0; + margin: 0; +} + +#screenshots .navi img { + position:absolute; + width: 26px; + height: 26px; + top: 70px; +} + +#screenshots .next img { + right:7px; + background-image: url("images/buttons_screenshots_next.gif"); +} +#screenshots .prev img { + left: 10px; + background-image: url("images/buttons_screenshots_prev.gif"); +} + + +#screenshot_list li {float:left;} +#screenshot_list img { + width: 98px; + height: 73px; +} + + + + +#newsbox { + padding-bottom: 25px; + background: transparent url("images/news_footer.jpg") no-repeat bottom left; +} + +#newsbox h2 { + display: block; + padding: 7px 15px 0px; + height: 30px; + margin: 0px; + + font-size: 17px; + color: #4c4c4c; + background: transparent url("images/news_header.jpg") no-repeat top left; + +} + +#newsbox .news { + width: 397px; + padding-bottom: 0px; + padding-left: 15px; + background: transparent url("images/news_spacer.jpg") no-repeat bottom left; +} + +#newsbox .news h4 { + margin:0; + margin-top: 3px; +} +#newsbox .news p.date { + font-size: 11px; + color: #999; + padding-bottom: 0; +} + +#newsbox .news p { + margin: 0; + padding-bottom: 10px; + padding-right: 30px; +} + + +/* Footer */ +#footer {position: absolute; margin: 0 auto;right: 0; left: 0;bottom: 0; height: 90px;z-index: 80;} +#footer {background: #F1F1F1 url("images/footer_background.jpg") repeat-x top;} +#footer .logo_traviangames {background-image: url("images/logo_traviangames.jpg");height: 34px; width: 182px;} +#footer .logo {position: absolute;top:20px;left:6px;} +#footer li, #footer a {color: #787878; font-size: 11px; line-height: 20px;} +#footer .menu {position: absolute; top: 18px; right: 9px;} +#footer .container {margin: 0 auto; position: relative; width: 840px;} +#footer .copyright {direction: ltr; clear: left; position: absolute; right: 3px; top: 20px;} +#footer ul.menu a {padding: 0 3px;} + + + + + + +.overlay {position: absolute;top:0px;left:0px;right: 0px;bottom: 0px;z-index: 400;} + +.overlay .mask { + position: fixed; + background-color: #000; + opacity: 0.25; + filter:alpha(opacity=25); + + width: 100%;height: 100%; +} + +.overlay_content { + position: absolute; + top: 150px; + right: 50%; + z-index: 600; +} + +.overlay_content .closer img { + position: absolute; + right: 15px; + top: 15px; + background-image: url("images/popup_close.gif"); + height: 25px; + width: 25px; +} + +.overlay_content .footer { + clear:both; + height: 10px; +} + +.overlay_content h2, .overlay_content h4 { + margin:0px; + padding: 20px 20px 0; + font-size: 16px; + line-height: 20px; +} + +#screenshot_layer {display: none;} +#screenshot_layer h3 {display:none;} +#screenshot_layer .overlay_content { + width: 644px; + margin-right: -322px; + background: #fff url("images/screenshot_background.gif") repeat-y top left; + text-align: center; +} +#screenshot_layer #frame_box {margin: 0 20px;} +#screenshot_layer h4 {text-align: center ;background: transparent url("images/screenshot_header.jpg") no-repeat top left; padding-bottom:15px;} +#screenshot_layer #screen_desc { + margin: 20px 0; + font-size: 12px; + padding: 0 40px; +} + +.screenshot_view img { + border: 1px solid #ccc; +} + +#screenshot_nr1 { + +} + +#screenshot_layer .footer {background: transparent url("images/screenshot_footer.gif") no-repeat bottom left;} + +#screenshot_layer .navi img { + position:absolute; + width: 25px; + height: 25px; + top: 250px; +} + +#screenshot_layer .next img { + right:20px; + background-image: url("images/popup_next.gif"); +} +#screenshot_layer .prev img { + left: 20px; + background-image: url("images/popup_prev.gif"); +} + + +#iframe_layer {display: none;} +#iframe_layer .overlay_content { + width: 450px; + margin-right: -225px; + background: #fff url("images/anleitung_background.gif") repeat-y top left; +} +#iframe_layer #frame_box {margin: 0 20px;} +#iframe_layer h2 {background: transparent url("images/anleitung_header.gif") no-repeat top left; padding-bottom:15px;} +#iframe_layer .footer {background: transparent url("images/anleitung_footer.gif") no-repeat bottom left;} + + + + +#login_layer, #signup_layer {display: none;} +#login_layer .overlay_content, #signup_layer .overlay_content { + width: 384px; + margin-right: -192px; + background: #fff url("images/gameworld_background.jpg") repeat-y top left; +} +#login_layer h2, #signup_layer h2 { + color: #71d000; + background: transparent url("images/gameworld_header.jpg") no-repeat top left; +} +#login_layer .footer, #signup_layer .footer { + background: transparent url("images/gameworld_footer.jpg") no-repeat bottom left; +} + + +ul.world_list { + padding: 7px; + margin: 0px; + list-style: none; +} + +.world_list li {float: left;position:relative; margin: 4px 5px; background-repeat: no-repeat;} +.world_list li div {position: absolute;} +.world_list li img {position: absolute; z-index: 30;} + +.world_list .w_small .players {top: 5px; left: 123px;} +.world_list .w_small .online {top: 22px; left: 123px;} +.world_list .w_big .players {top: 15px;right: 20px;} +.world_list .w_big .online {top: 33px;right: 20px;} +.world_list .label_players {top: 15px;left: 235px;} +.world_list .label_online {top: 33px;left: 235px;} + +.world_list li.w_big {height: 64px;width: 361px;} +.world_list li.w_small {height: 46px;width: 175px;} + +.world_list .w_big img {height: 64px;width: 361px;} + +.world_list .w_small img {height: 46px;width: 175px;} + +.world_list .worldstart {top: 10px;right: 20px;} +.world_list .timer {bottom: 15px;right: 20px;} + + + diff --git a/gpack/travian_default/images/Thumbs.db b/gpack/travian_default/images/Thumbs.db new file mode 100644 index 00000000..5aac02d6 Binary files /dev/null and b/gpack/travian_default/images/Thumbs.db differ diff --git a/gpack/travian_default/images/artwork1-ltr.jpg b/gpack/travian_default/images/artwork1-ltr.jpg new file mode 100644 index 00000000..874c21ff Binary files /dev/null and b/gpack/travian_default/images/artwork1-ltr.jpg differ diff --git a/gpack/travian_default/images/artwork2-ltr.jpg b/gpack/travian_default/images/artwork2-ltr.jpg new file mode 100644 index 00000000..d800a7e3 Binary files /dev/null and b/gpack/travian_default/images/artwork2-ltr.jpg differ diff --git a/gpack/travian_default/images/footer_background.gif b/gpack/travian_default/images/footer_background.gif new file mode 100644 index 00000000..60d616d7 Binary files /dev/null and b/gpack/travian_default/images/footer_background.gif differ diff --git a/gpack/travian_default/images/footer_logo.gif b/gpack/travian_default/images/footer_logo.gif new file mode 100644 index 00000000..7a20d3d0 Binary files /dev/null and b/gpack/travian_default/images/footer_logo.gif differ diff --git a/gpack/travian_default/images/header_background.jpg b/gpack/travian_default/images/header_background.jpg new file mode 100644 index 00000000..a8718984 Binary files /dev/null and b/gpack/travian_default/images/header_background.jpg differ diff --git a/gpack/travian_default/images/m1-ltr.gif b/gpack/travian_default/images/m1-ltr.gif new file mode 100644 index 00000000..82a1bac4 Binary files /dev/null and b/gpack/travian_default/images/m1-ltr.gif differ diff --git a/gpack/travian_default/images/m2-ltr.gif b/gpack/travian_default/images/m2-ltr.gif new file mode 100644 index 00000000..a98bafaa Binary files /dev/null and b/gpack/travian_default/images/m2-ltr.gif differ diff --git a/gpack/travian_default/images/m3-ltr.gif b/gpack/travian_default/images/m3-ltr.gif new file mode 100644 index 00000000..24a41d0d Binary files /dev/null and b/gpack/travian_default/images/m3-ltr.gif differ diff --git a/gpack/travian_default/images/m4-ltr.gif b/gpack/travian_default/images/m4-ltr.gif new file mode 100644 index 00000000..359e0057 Binary files /dev/null and b/gpack/travian_default/images/m4-ltr.gif differ diff --git a/gpack/travian_default/images/menu-bg-ltr.gif b/gpack/travian_default/images/menu-bg-ltr.gif new file mode 100644 index 00000000..7949ae01 Binary files /dev/null and b/gpack/travian_default/images/menu-bg-ltr.gif differ diff --git a/gpack/travian_default/images/n1-ltr.gif b/gpack/travian_default/images/n1-ltr.gif new file mode 100644 index 00000000..8d6a53f5 Binary files /dev/null and b/gpack/travian_default/images/n1-ltr.gif differ diff --git a/gpack/travian_default/images/n2-ltr.gif b/gpack/travian_default/images/n2-ltr.gif new file mode 100644 index 00000000..e65feb41 Binary files /dev/null and b/gpack/travian_default/images/n2-ltr.gif differ diff --git a/gpack/travian_default/images/n3-ltr.gif b/gpack/travian_default/images/n3-ltr.gif new file mode 100644 index 00000000..1d887ac9 Binary files /dev/null and b/gpack/travian_default/images/n3-ltr.gif differ diff --git a/gpack/travian_default/images/n4-ltr.gif b/gpack/travian_default/images/n4-ltr.gif new file mode 100644 index 00000000..2a073b16 Binary files /dev/null and b/gpack/travian_default/images/n4-ltr.gif differ diff --git a/gpack/travian_default/images/plus_active-ltr.gif b/gpack/travian_default/images/plus_active-ltr.gif new file mode 100644 index 00000000..29058565 Binary files /dev/null and b/gpack/travian_default/images/plus_active-ltr.gif differ diff --git a/gpack/travian_default/images/plus_bg.gif b/gpack/travian_default/images/plus_bg.gif new file mode 100644 index 00000000..2354e7f0 Binary files /dev/null and b/gpack/travian_default/images/plus_bg.gif differ diff --git a/gpack/travian_default/images/plus_inactive-ltr.gif b/gpack/travian_default/images/plus_inactive-ltr.gif new file mode 100644 index 00000000..9a6f4e52 Binary files /dev/null and b/gpack/travian_default/images/plus_inactive-ltr.gif differ diff --git a/gpack/travian_default/images/plus_start-ltr.gif b/gpack/travian_default/images/plus_start-ltr.gif new file mode 100644 index 00000000..6c7aac69 Binary files /dev/null and b/gpack/travian_default/images/plus_start-ltr.gif differ diff --git a/gpack/travian_default/images/shadow-a-ltr.png b/gpack/travian_default/images/shadow-a-ltr.png new file mode 100644 index 00000000..be9a7c4a Binary files /dev/null and b/gpack/travian_default/images/shadow-a-ltr.png differ diff --git a/gpack/travian_default/images/shadow-b-ltr.png b/gpack/travian_default/images/shadow-b-ltr.png new file mode 100644 index 00000000..7e71b29c Binary files /dev/null and b/gpack/travian_default/images/shadow-b-ltr.png differ diff --git a/gpack/travian_default/img/a/Thumbs.db b/gpack/travian_default/img/a/Thumbs.db new file mode 100644 index 00000000..bdacc27d Binary files /dev/null and b/gpack/travian_default/img/a/Thumbs.db differ diff --git a/gpack/travian_default/img/a/acc.gif b/gpack/travian_default/img/a/acc.gif new file mode 100644 index 00000000..d9f435e0 Binary files /dev/null and b/gpack/travian_default/img/a/acc.gif differ diff --git a/gpack/travian_default/img/a/adr.gif b/gpack/travian_default/img/a/adr.gif new file mode 100644 index 00000000..bc719886 Binary files /dev/null and b/gpack/travian_default/img/a/adr.gif differ diff --git a/gpack/travian_default/img/a/adr_rtl.gif b/gpack/travian_default/img/a/adr_rtl.gif new file mode 100644 index 00000000..fc99e540 Binary files /dev/null and b/gpack/travian_default/img/a/adr_rtl.gif differ diff --git a/gpack/travian_default/img/a/anl.gif b/gpack/travian_default/img/a/anl.gif new file mode 100644 index 00000000..b4211c40 Binary files /dev/null and b/gpack/travian_default/img/a/anl.gif differ diff --git a/gpack/travian_default/img/a/anl_rtl.gif b/gpack/travian_default/img/a/anl_rtl.gif new file mode 100644 index 00000000..3b29046e Binary files /dev/null and b/gpack/travian_default/img/a/anl_rtl.gif differ diff --git a/gpack/travian_default/img/a/att1.gif b/gpack/travian_default/img/a/att1.gif new file mode 100644 index 00000000..bd9d830e Binary files /dev/null and b/gpack/travian_default/img/a/att1.gif differ diff --git a/gpack/travian_default/img/a/att2.gif b/gpack/travian_default/img/a/att2.gif new file mode 100644 index 00000000..d59c2ef1 Binary files /dev/null and b/gpack/travian_default/img/a/att2.gif differ diff --git a/gpack/travian_default/img/a/att3.gif b/gpack/travian_default/img/a/att3.gif new file mode 100644 index 00000000..50991f91 Binary files /dev/null and b/gpack/travian_default/img/a/att3.gif differ diff --git a/gpack/travian_default/img/a/att_all.gif b/gpack/travian_default/img/a/att_all.gif new file mode 100644 index 00000000..4cd910ca Binary files /dev/null and b/gpack/travian_default/img/a/att_all.gif differ diff --git a/gpack/travian_default/img/a/attack_symbol.gif b/gpack/travian_default/img/a/attack_symbol.gif new file mode 100644 index 00000000..f55f525a Binary files /dev/null and b/gpack/travian_default/img/a/attack_symbol.gif differ diff --git a/gpack/travian_default/img/a/b6.gif b/gpack/travian_default/img/a/b6.gif new file mode 100644 index 00000000..d9f435e0 Binary files /dev/null and b/gpack/travian_default/img/a/b6.gif differ diff --git a/gpack/travian_default/img/a/bau.gif b/gpack/travian_default/img/a/bau.gif new file mode 100644 index 00000000..282ce8b3 Binary files /dev/null and b/gpack/travian_default/img/a/bau.gif differ diff --git a/gpack/travian_default/img/a/btm.gif b/gpack/travian_default/img/a/btm.gif new file mode 100644 index 00000000..8a877475 Binary files /dev/null and b/gpack/travian_default/img/a/btm.gif differ diff --git a/gpack/travian_default/img/a/buildings.gif b/gpack/travian_default/img/a/buildings.gif new file mode 100644 index 00000000..743cb765 Binary files /dev/null and b/gpack/travian_default/img/a/buildings.gif differ diff --git a/gpack/travian_default/img/a/c2.gif b/gpack/travian_default/img/a/c2.gif new file mode 100644 index 00000000..7415f887 Binary files /dev/null and b/gpack/travian_default/img/a/c2.gif differ diff --git a/gpack/travian_default/img/a/c3.gif b/gpack/travian_default/img/a/c3.gif new file mode 100644 index 00000000..23a8baa9 Binary files /dev/null and b/gpack/travian_default/img/a/c3.gif differ diff --git a/gpack/travian_default/img/a/car.gif b/gpack/travian_default/img/a/car.gif new file mode 100644 index 00000000..16d83e59 Binary files /dev/null and b/gpack/travian_default/img/a/car.gif differ diff --git a/gpack/travian_default/img/a/clock-inactive.gif b/gpack/travian_default/img/a/clock-inactive.gif new file mode 100644 index 00000000..cd420370 Binary files /dev/null and b/gpack/travian_default/img/a/clock-inactive.gif differ diff --git a/gpack/travian_default/img/a/clock.gif b/gpack/travian_default/img/a/clock.gif new file mode 100644 index 00000000..2c082a44 Binary files /dev/null and b/gpack/travian_default/img/a/clock.gif differ diff --git a/gpack/travian_default/img/a/close.gif b/gpack/travian_default/img/a/close.gif new file mode 100644 index 00000000..ff500428 Binary files /dev/null and b/gpack/travian_default/img/a/close.gif differ diff --git a/gpack/travian_default/img/a/closed.gif b/gpack/travian_default/img/a/closed.gif new file mode 100644 index 00000000..c8da86b4 Binary files /dev/null and b/gpack/travian_default/img/a/closed.gif differ diff --git a/gpack/travian_default/img/a/def1.gif b/gpack/travian_default/img/a/def1.gif new file mode 100644 index 00000000..1baeea3e Binary files /dev/null and b/gpack/travian_default/img/a/def1.gif differ diff --git a/gpack/travian_default/img/a/def2.gif b/gpack/travian_default/img/a/def2.gif new file mode 100644 index 00000000..301a6095 Binary files /dev/null and b/gpack/travian_default/img/a/def2.gif differ diff --git a/gpack/travian_default/img/a/def3.gif b/gpack/travian_default/img/a/def3.gif new file mode 100644 index 00000000..48a4d1a9 Binary files /dev/null and b/gpack/travian_default/img/a/def3.gif differ diff --git a/gpack/travian_default/img/a/def_c.gif b/gpack/travian_default/img/a/def_c.gif new file mode 100644 index 00000000..64c8282e Binary files /dev/null and b/gpack/travian_default/img/a/def_c.gif differ diff --git a/gpack/travian_default/img/a/def_i.gif b/gpack/travian_default/img/a/def_i.gif new file mode 100644 index 00000000..9345cf80 Binary files /dev/null and b/gpack/travian_default/img/a/def_i.gif differ diff --git a/gpack/travian_default/img/a/del.gif b/gpack/travian_default/img/a/del.gif new file mode 100644 index 00000000..28eef24e Binary files /dev/null and b/gpack/travian_default/img/a/del.gif differ diff --git a/gpack/travian_default/img/a/del_g.gif b/gpack/travian_default/img/a/del_g.gif new file mode 100644 index 00000000..20c36d86 Binary files /dev/null and b/gpack/travian_default/img/a/del_g.gif differ diff --git a/gpack/travian_default/img/a/external.gif b/gpack/travian_default/img/a/external.gif new file mode 100644 index 00000000..007dcbf7 Binary files /dev/null and b/gpack/travian_default/img/a/external.gif differ diff --git a/gpack/travian_default/img/a/f1 Kopie.jpg b/gpack/travian_default/img/a/f1 Kopie.jpg new file mode 100644 index 00000000..805b7930 Binary files /dev/null and b/gpack/travian_default/img/a/f1 Kopie.jpg differ diff --git a/gpack/travian_default/img/a/firefox.gif b/gpack/travian_default/img/a/firefox.gif new file mode 100644 index 00000000..017b0c4e Binary files /dev/null and b/gpack/travian_default/img/a/firefox.gif differ diff --git a/gpack/travian_default/img/a/friends.gif b/gpack/travian_default/img/a/friends.gif new file mode 100644 index 00000000..a004983d Binary files /dev/null and b/gpack/travian_default/img/a/friends.gif differ diff --git a/gpack/travian_default/img/a/gold.gif b/gpack/travian_default/img/a/gold.gif new file mode 100644 index 00000000..4c11bf3f Binary files /dev/null and b/gpack/travian_default/img/a/gold.gif differ diff --git a/gpack/travian_default/img/a/gold_g.gif b/gpack/travian_default/img/a/gold_g.gif new file mode 100644 index 00000000..bb34b301 Binary files /dev/null and b/gpack/travian_default/img/a/gold_g.gif differ diff --git a/gpack/travian_default/img/a/gp.gif b/gpack/travian_default/img/a/gp.gif new file mode 100644 index 00000000..5461df83 Binary files /dev/null and b/gpack/travian_default/img/a/gp.gif differ diff --git a/gpack/travian_default/img/a/help.gif b/gpack/travian_default/img/a/help.gif new file mode 100644 index 00000000..268ddcf4 Binary files /dev/null and b/gpack/travian_default/img/a/help.gif differ diff --git a/gpack/travian_default/img/a/ie.gif b/gpack/travian_default/img/a/ie.gif new file mode 100644 index 00000000..bbd5ea45 Binary files /dev/null and b/gpack/travian_default/img/a/ie.gif differ diff --git a/gpack/travian_default/img/a/minus.gif b/gpack/travian_default/img/a/minus.gif new file mode 100644 index 00000000..9756dc5f Binary files /dev/null and b/gpack/travian_default/img/a/minus.gif differ diff --git a/gpack/travian_default/img/a/n.gif b/gpack/travian_default/img/a/n.gif new file mode 100644 index 00000000..2161d47c Binary files /dev/null and b/gpack/travian_default/img/a/n.gif differ diff --git a/gpack/travian_default/img/a/n12.gif b/gpack/travian_default/img/a/n12.gif new file mode 100644 index 00000000..f250225b Binary files /dev/null and b/gpack/travian_default/img/a/n12.gif differ diff --git a/gpack/travian_default/img/a/n_rtl.gif b/gpack/travian_default/img/a/n_rtl.gif new file mode 100644 index 00000000..f27fa87d Binary files /dev/null and b/gpack/travian_default/img/a/n_rtl.gif differ diff --git a/gpack/travian_default/img/a/navi.gif b/gpack/travian_default/img/a/navi.gif new file mode 100644 index 00000000..cd7e487f Binary files /dev/null and b/gpack/travian_default/img/a/navi.gif differ diff --git a/gpack/travian_default/img/a/npc.gif b/gpack/travian_default/img/a/npc.gif new file mode 100644 index 00000000..cfe65046 Binary files /dev/null and b/gpack/travian_default/img/a/npc.gif differ diff --git a/gpack/travian_default/img/a/online.gif b/gpack/travian_default/img/a/online.gif new file mode 100644 index 00000000..9f3572bf Binary files /dev/null and b/gpack/travian_default/img/a/online.gif differ diff --git a/gpack/travian_default/img/a/online1.gif b/gpack/travian_default/img/a/online1.gif new file mode 100644 index 00000000..d64775e7 Binary files /dev/null and b/gpack/travian_default/img/a/online1.gif differ diff --git a/gpack/travian_default/img/a/online2.gif b/gpack/travian_default/img/a/online2.gif new file mode 100644 index 00000000..2560caa6 Binary files /dev/null and b/gpack/travian_default/img/a/online2.gif differ diff --git a/gpack/travian_default/img/a/online3.gif b/gpack/travian_default/img/a/online3.gif new file mode 100644 index 00000000..8432c5ed Binary files /dev/null and b/gpack/travian_default/img/a/online3.gif differ diff --git a/gpack/travian_default/img/a/online4.gif b/gpack/travian_default/img/a/online4.gif new file mode 100644 index 00000000..0db2440c Binary files /dev/null and b/gpack/travian_default/img/a/online4.gif differ diff --git a/gpack/travian_default/img/a/online5.gif b/gpack/travian_default/img/a/online5.gif new file mode 100644 index 00000000..d62a2630 Binary files /dev/null and b/gpack/travian_default/img/a/online5.gif differ diff --git a/gpack/travian_default/img/a/online6.gif b/gpack/travian_default/img/a/online6.gif new file mode 100644 index 00000000..d9f435e0 Binary files /dev/null and b/gpack/travian_default/img/a/online6.gif differ diff --git a/gpack/travian_default/img/a/opened.gif b/gpack/travian_default/img/a/opened.gif new file mode 100644 index 00000000..bad52e13 Binary files /dev/null and b/gpack/travian_default/img/a/opened.gif differ diff --git a/gpack/travian_default/img/a/opera.gif b/gpack/travian_default/img/a/opera.gif new file mode 100644 index 00000000..c1e48afc Binary files /dev/null and b/gpack/travian_default/img/a/opera.gif differ diff --git a/gpack/travian_default/img/a/plus.gif b/gpack/travian_default/img/a/plus.gif new file mode 100644 index 00000000..7434be66 Binary files /dev/null and b/gpack/travian_default/img/a/plus.gif differ diff --git a/gpack/travian_default/img/a/rand.gif b/gpack/travian_default/img/a/rand.gif new file mode 100644 index 00000000..e6c345ac Binary files /dev/null and b/gpack/travian_default/img/a/rand.gif differ diff --git a/gpack/travian_default/img/a/report_icons.gif b/gpack/travian_default/img/a/report_icons.gif new file mode 100644 index 00000000..711defca Binary files /dev/null and b/gpack/travian_default/img/a/report_icons.gif differ diff --git a/gpack/travian_default/img/a/res2.gif b/gpack/travian_default/img/a/res2.gif new file mode 100644 index 00000000..f80bb6d9 Binary files /dev/null and b/gpack/travian_default/img/a/res2.gif differ diff --git a/gpack/travian_default/img/a/s.gif b/gpack/travian_default/img/a/s.gif new file mode 100644 index 00000000..af204376 Binary files /dev/null and b/gpack/travian_default/img/a/s.gif differ diff --git a/gpack/travian_default/img/a/troops.gif b/gpack/travian_default/img/a/troops.gif new file mode 100644 index 00000000..0b1305ec Binary files /dev/null and b/gpack/travian_default/img/a/troops.gif differ diff --git a/gpack/travian_default/img/a/unknown.gif b/gpack/travian_default/img/a/unknown.gif new file mode 100644 index 00000000..49fe1d42 Binary files /dev/null and b/gpack/travian_default/img/a/unknown.gif differ diff --git a/gpack/travian_default/img/a/w.gif b/gpack/travian_default/img/a/w.gif new file mode 100644 index 00000000..f32722af Binary files /dev/null and b/gpack/travian_default/img/a/w.gif differ diff --git a/gpack/travian_default/img/a/x.gif b/gpack/travian_default/img/a/x.gif new file mode 100644 index 00000000..c7bee69b Binary files /dev/null and b/gpack/travian_default/img/a/x.gif differ diff --git a/gpack/travian_default/img/artefact/Thumbs.db b/gpack/travian_default/img/artefact/Thumbs.db new file mode 100644 index 00000000..82f0948a Binary files /dev/null and b/gpack/travian_default/img/artefact/Thumbs.db differ diff --git a/gpack/travian_default/img/artefact/type1.gif b/gpack/travian_default/img/artefact/type1.gif new file mode 100644 index 00000000..9672f285 Binary files /dev/null and b/gpack/travian_default/img/artefact/type1.gif differ diff --git a/gpack/travian_default/img/artefact/type2.gif b/gpack/travian_default/img/artefact/type2.gif new file mode 100644 index 00000000..a33f53e9 Binary files /dev/null and b/gpack/travian_default/img/artefact/type2.gif differ diff --git a/gpack/travian_default/img/artefact/type3.gif b/gpack/travian_default/img/artefact/type3.gif new file mode 100644 index 00000000..25a62bd1 Binary files /dev/null and b/gpack/travian_default/img/artefact/type3.gif differ diff --git a/gpack/travian_default/img/artefact/type4.gif b/gpack/travian_default/img/artefact/type4.gif new file mode 100644 index 00000000..940dd03f Binary files /dev/null and b/gpack/travian_default/img/artefact/type4.gif differ diff --git a/gpack/travian_default/img/artefact/type5.gif b/gpack/travian_default/img/artefact/type5.gif new file mode 100644 index 00000000..7eb05357 Binary files /dev/null and b/gpack/travian_default/img/artefact/type5.gif differ diff --git a/gpack/travian_default/img/artefact/type6.gif b/gpack/travian_default/img/artefact/type6.gif new file mode 100644 index 00000000..9d47f532 Binary files /dev/null and b/gpack/travian_default/img/artefact/type6.gif differ diff --git a/gpack/travian_default/img/artefact/type7.gif b/gpack/travian_default/img/artefact/type7.gif new file mode 100644 index 00000000..9cdd1a4b Binary files /dev/null and b/gpack/travian_default/img/artefact/type7.gif differ diff --git a/gpack/travian_default/img/artefact/type8.gif b/gpack/travian_default/img/artefact/type8.gif new file mode 100644 index 00000000..8b282b90 Binary files /dev/null and b/gpack/travian_default/img/artefact/type8.gif differ diff --git a/gpack/travian_default/img/artefact/typeww.gif b/gpack/travian_default/img/artefact/typeww.gif new file mode 100644 index 00000000..2868af2d Binary files /dev/null and b/gpack/travian_default/img/artefact/typeww.gif differ diff --git a/gpack/travian_default/img/f/Thumbs.db b/gpack/travian_default/img/f/Thumbs.db new file mode 100644 index 00000000..e9c1de49 Binary files /dev/null and b/gpack/travian_default/img/f/Thumbs.db differ diff --git a/gpack/travian_default/img/f/c4.gif b/gpack/travian_default/img/f/c4.gif new file mode 100644 index 00000000..39f0b0a8 Binary files /dev/null and b/gpack/travian_default/img/f/c4.gif differ diff --git a/gpack/travian_default/img/f/del.gif b/gpack/travian_default/img/f/del.gif new file mode 100644 index 00000000..621fe68b Binary files /dev/null and b/gpack/travian_default/img/f/del.gif differ diff --git a/gpack/travian_default/img/f/down_arr.gif b/gpack/travian_default/img/f/down_arr.gif new file mode 100644 index 00000000..aab37dae Binary files /dev/null and b/gpack/travian_default/img/f/down_arr.gif differ diff --git a/gpack/travian_default/img/f/edit.gif b/gpack/travian_default/img/f/edit.gif new file mode 100644 index 00000000..1583645a Binary files /dev/null and b/gpack/travian_default/img/f/edit.gif differ diff --git a/gpack/travian_default/img/f/folder.gif b/gpack/travian_default/img/f/folder.gif new file mode 100644 index 00000000..d92c9240 Binary files /dev/null and b/gpack/travian_default/img/f/folder.gif differ diff --git a/gpack/travian_default/img/f/folder_lock.gif b/gpack/travian_default/img/f/folder_lock.gif new file mode 100644 index 00000000..64763088 Binary files /dev/null and b/gpack/travian_default/img/f/folder_lock.gif differ diff --git a/gpack/travian_default/img/f/folder_new.gif b/gpack/travian_default/img/f/folder_new.gif new file mode 100644 index 00000000..f79ea955 Binary files /dev/null and b/gpack/travian_default/img/f/folder_new.gif differ diff --git a/gpack/travian_default/img/f/folder_new_lock.gif b/gpack/travian_default/img/f/folder_new_lock.gif new file mode 100644 index 00000000..8b624533 Binary files /dev/null and b/gpack/travian_default/img/f/folder_new_lock.gif differ diff --git a/gpack/travian_default/img/f/folder_new_sticky.gif b/gpack/travian_default/img/f/folder_new_sticky.gif new file mode 100644 index 00000000..ee60c5ec Binary files /dev/null and b/gpack/travian_default/img/f/folder_new_sticky.gif differ diff --git a/gpack/travian_default/img/f/folder_new_sticky_lock.gif b/gpack/travian_default/img/f/folder_new_sticky_lock.gif new file mode 100644 index 00000000..10ffc0e1 Binary files /dev/null and b/gpack/travian_default/img/f/folder_new_sticky_lock.gif differ diff --git a/gpack/travian_default/img/f/folder_sticky.gif b/gpack/travian_default/img/f/folder_sticky.gif new file mode 100644 index 00000000..4796957f Binary files /dev/null and b/gpack/travian_default/img/f/folder_sticky.gif differ diff --git a/gpack/travian_default/img/f/folder_sticky_lock.gif b/gpack/travian_default/img/f/folder_sticky_lock.gif new file mode 100644 index 00000000..04b1f429 Binary files /dev/null and b/gpack/travian_default/img/f/folder_sticky_lock.gif differ diff --git a/gpack/travian_default/img/f/icon_latest_reply.gif b/gpack/travian_default/img/f/icon_latest_reply.gif new file mode 100644 index 00000000..b45e57ae Binary files /dev/null and b/gpack/travian_default/img/f/icon_latest_reply.gif differ diff --git a/gpack/travian_default/img/f/lock.gif b/gpack/travian_default/img/f/lock.gif new file mode 100644 index 00000000..68759c5e Binary files /dev/null and b/gpack/travian_default/img/f/lock.gif differ diff --git a/gpack/travian_default/img/f/mad.gif b/gpack/travian_default/img/f/mad.gif new file mode 100644 index 00000000..525df033 Binary files /dev/null and b/gpack/travian_default/img/f/mad.gif differ diff --git a/gpack/travian_default/img/f/pin.gif b/gpack/travian_default/img/f/pin.gif new file mode 100644 index 00000000..ea9db7e9 Binary files /dev/null and b/gpack/travian_default/img/f/pin.gif differ diff --git a/gpack/travian_default/img/f/plus.gif b/gpack/travian_default/img/f/plus.gif new file mode 100644 index 00000000..cda19f39 Binary files /dev/null and b/gpack/travian_default/img/f/plus.gif differ diff --git a/gpack/travian_default/img/f/smileys.gif b/gpack/travian_default/img/f/smileys.gif new file mode 100644 index 00000000..99fa1e54 Binary files /dev/null and b/gpack/travian_default/img/f/smileys.gif differ diff --git a/gpack/travian_default/img/f/stats_left.gif b/gpack/travian_default/img/f/stats_left.gif new file mode 100644 index 00000000..0b57e899 Binary files /dev/null and b/gpack/travian_default/img/f/stats_left.gif differ diff --git a/gpack/travian_default/img/f/stats_middle.gif b/gpack/travian_default/img/f/stats_middle.gif new file mode 100644 index 00000000..2bfdde15 Binary files /dev/null and b/gpack/travian_default/img/f/stats_middle.gif differ diff --git a/gpack/travian_default/img/f/stats_right.gif b/gpack/travian_default/img/f/stats_right.gif new file mode 100644 index 00000000..1a067cb9 Binary files /dev/null and b/gpack/travian_default/img/f/stats_right.gif differ diff --git a/gpack/travian_default/img/f/switch_admin.gif b/gpack/travian_default/img/f/switch_admin.gif new file mode 100644 index 00000000..c650b0ac Binary files /dev/null and b/gpack/travian_default/img/f/switch_admin.gif differ diff --git a/gpack/travian_default/img/f/unlock.gif b/gpack/travian_default/img/f/unlock.gif new file mode 100644 index 00000000..00165cd9 Binary files /dev/null and b/gpack/travian_default/img/f/unlock.gif differ diff --git a/gpack/travian_default/img/f/unpin.gif b/gpack/travian_default/img/f/unpin.gif new file mode 100644 index 00000000..4484b4bf Binary files /dev/null and b/gpack/travian_default/img/f/unpin.gif differ diff --git a/gpack/travian_default/img/f/up_arr.gif b/gpack/travian_default/img/f/up_arr.gif new file mode 100644 index 00000000..9a5eaecf Binary files /dev/null and b/gpack/travian_default/img/f/up_arr.gif differ diff --git a/gpack/travian_default/img/f/v_folder.gif b/gpack/travian_default/img/f/v_folder.gif new file mode 100644 index 00000000..eb665003 Binary files /dev/null and b/gpack/travian_default/img/f/v_folder.gif differ diff --git a/gpack/travian_default/img/f/v_folder_lock.gif b/gpack/travian_default/img/f/v_folder_lock.gif new file mode 100644 index 00000000..1b67a215 Binary files /dev/null and b/gpack/travian_default/img/f/v_folder_lock.gif differ diff --git a/gpack/travian_default/img/f/v_folder_new.gif b/gpack/travian_default/img/f/v_folder_new.gif new file mode 100644 index 00000000..a1383d08 Binary files /dev/null and b/gpack/travian_default/img/f/v_folder_new.gif differ diff --git a/gpack/travian_default/img/f/v_folder_new_lock.gif b/gpack/travian_default/img/f/v_folder_new_lock.gif new file mode 100644 index 00000000..04876205 Binary files /dev/null and b/gpack/travian_default/img/f/v_folder_new_lock.gif differ diff --git a/gpack/travian_default/img/f/v_folder_new_sticky.gif b/gpack/travian_default/img/f/v_folder_new_sticky.gif new file mode 100644 index 00000000..9c94c222 Binary files /dev/null and b/gpack/travian_default/img/f/v_folder_new_sticky.gif differ diff --git a/gpack/travian_default/img/f/v_folder_new_sticky_lock.gif b/gpack/travian_default/img/f/v_folder_new_sticky_lock.gif new file mode 100644 index 00000000..e2a71792 Binary files /dev/null and b/gpack/travian_default/img/f/v_folder_new_sticky_lock.gif differ diff --git a/gpack/travian_default/img/f/v_folder_sticky.gif b/gpack/travian_default/img/f/v_folder_sticky.gif new file mode 100644 index 00000000..41c282b3 Binary files /dev/null and b/gpack/travian_default/img/f/v_folder_sticky.gif differ diff --git a/gpack/travian_default/img/f/v_folder_sticky_lock.gif b/gpack/travian_default/img/f/v_folder_sticky_lock.gif new file mode 100644 index 00000000..c01f4013 Binary files /dev/null and b/gpack/travian_default/img/f/v_folder_sticky_lock.gif differ diff --git a/gpack/travian_default/img/g/Thumbs.db b/gpack/travian_default/img/g/Thumbs.db new file mode 100644 index 00000000..65eb5112 Binary files /dev/null and b/gpack/travian_default/img/g/Thumbs.db differ diff --git a/gpack/travian_default/img/g/bg0.jpg b/gpack/travian_default/img/g/bg0.jpg new file mode 100644 index 00000000..2c0d6497 Binary files /dev/null and b/gpack/travian_default/img/g/bg0.jpg differ diff --git a/gpack/travian_default/img/g/bg1.jpg b/gpack/travian_default/img/g/bg1.jpg new file mode 100644 index 00000000..67a1235e Binary files /dev/null and b/gpack/travian_default/img/g/bg1.jpg differ diff --git a/gpack/travian_default/img/g/bg11.jpg b/gpack/travian_default/img/g/bg11.jpg new file mode 100644 index 00000000..6b99cb83 Binary files /dev/null and b/gpack/travian_default/img/g/bg11.jpg differ diff --git a/gpack/travian_default/img/g/bg12.jpg b/gpack/travian_default/img/g/bg12.jpg new file mode 100644 index 00000000..7c2341fc Binary files /dev/null and b/gpack/travian_default/img/g/bg12.jpg differ diff --git a/gpack/travian_default/img/g/bg13.jpg b/gpack/travian_default/img/g/bg13.jpg new file mode 100644 index 00000000..67a1235e Binary files /dev/null and b/gpack/travian_default/img/g/bg13.jpg differ diff --git a/gpack/travian_default/img/g/f1.jpg b/gpack/travian_default/img/g/f1.jpg new file mode 100644 index 00000000..cde07652 Binary files /dev/null and b/gpack/travian_default/img/g/f1.jpg differ diff --git a/gpack/travian_default/img/g/f10.jpg b/gpack/travian_default/img/g/f10.jpg new file mode 100644 index 00000000..9adaf8a4 Binary files /dev/null and b/gpack/travian_default/img/g/f10.jpg differ diff --git a/gpack/travian_default/img/g/f11.jpg b/gpack/travian_default/img/g/f11.jpg new file mode 100644 index 00000000..66bfb0f5 Binary files /dev/null and b/gpack/travian_default/img/g/f11.jpg differ diff --git a/gpack/travian_default/img/g/f12.jpg b/gpack/travian_default/img/g/f12.jpg new file mode 100644 index 00000000..9a34c2fb Binary files /dev/null and b/gpack/travian_default/img/g/f12.jpg differ diff --git a/gpack/travian_default/img/g/f2.jpg b/gpack/travian_default/img/g/f2.jpg new file mode 100644 index 00000000..d4a004fa Binary files /dev/null and b/gpack/travian_default/img/g/f2.jpg differ diff --git a/gpack/travian_default/img/g/f3.jpg b/gpack/travian_default/img/g/f3.jpg new file mode 100644 index 00000000..143d32b4 Binary files /dev/null and b/gpack/travian_default/img/g/f3.jpg differ diff --git a/gpack/travian_default/img/g/f4.jpg b/gpack/travian_default/img/g/f4.jpg new file mode 100644 index 00000000..e158c055 Binary files /dev/null and b/gpack/travian_default/img/g/f4.jpg differ diff --git a/gpack/travian_default/img/g/f5.jpg b/gpack/travian_default/img/g/f5.jpg new file mode 100644 index 00000000..42e03a72 Binary files /dev/null and b/gpack/travian_default/img/g/f5.jpg differ diff --git a/gpack/travian_default/img/g/f6.jpg b/gpack/travian_default/img/g/f6.jpg new file mode 100644 index 00000000..05f0b956 Binary files /dev/null and b/gpack/travian_default/img/g/f6.jpg differ diff --git a/gpack/travian_default/img/g/f7.jpg b/gpack/travian_default/img/g/f7.jpg new file mode 100644 index 00000000..07452c29 Binary files /dev/null and b/gpack/travian_default/img/g/f7.jpg differ diff --git a/gpack/travian_default/img/g/f8.jpg b/gpack/travian_default/img/g/f8.jpg new file mode 100644 index 00000000..b8a95fe1 Binary files /dev/null and b/gpack/travian_default/img/g/f8.jpg differ diff --git a/gpack/travian_default/img/g/f9.jpg b/gpack/travian_default/img/g/f9.jpg new file mode 100644 index 00000000..3fbfb700 Binary files /dev/null and b/gpack/travian_default/img/g/f9.jpg differ diff --git a/gpack/travian_default/img/g/f99.jpg b/gpack/travian_default/img/g/f99.jpg new file mode 100644 index 00000000..e5f40c1b Binary files /dev/null and b/gpack/travian_default/img/g/f99.jpg differ diff --git a/gpack/travian_default/img/g/g1.gif b/gpack/travian_default/img/g/g1.gif new file mode 100644 index 00000000..674d0d48 Binary files /dev/null and b/gpack/travian_default/img/g/g1.gif differ diff --git a/gpack/travian_default/img/g/g10.gif b/gpack/travian_default/img/g/g10.gif new file mode 100644 index 00000000..e8026aa8 Binary files /dev/null and b/gpack/travian_default/img/g/g10.gif differ diff --git a/gpack/travian_default/img/g/g10b.gif b/gpack/travian_default/img/g/g10b.gif new file mode 100644 index 00000000..64705fcc Binary files /dev/null and b/gpack/travian_default/img/g/g10b.gif differ diff --git a/gpack/travian_default/img/g/g11.gif b/gpack/travian_default/img/g/g11.gif new file mode 100644 index 00000000..c485ba76 Binary files /dev/null and b/gpack/travian_default/img/g/g11.gif differ diff --git a/gpack/travian_default/img/g/g11b.gif b/gpack/travian_default/img/g/g11b.gif new file mode 100644 index 00000000..38532423 Binary files /dev/null and b/gpack/travian_default/img/g/g11b.gif differ diff --git a/gpack/travian_default/img/g/g12.gif b/gpack/travian_default/img/g/g12.gif new file mode 100644 index 00000000..4bb657bd Binary files /dev/null and b/gpack/travian_default/img/g/g12.gif differ diff --git a/gpack/travian_default/img/g/g12b.gif b/gpack/travian_default/img/g/g12b.gif new file mode 100644 index 00000000..2087f800 Binary files /dev/null and b/gpack/travian_default/img/g/g12b.gif differ diff --git a/gpack/travian_default/img/g/g13.gif b/gpack/travian_default/img/g/g13.gif new file mode 100644 index 00000000..3f198626 Binary files /dev/null and b/gpack/travian_default/img/g/g13.gif differ diff --git a/gpack/travian_default/img/g/g13b.gif b/gpack/travian_default/img/g/g13b.gif new file mode 100644 index 00000000..5efaea36 Binary files /dev/null and b/gpack/travian_default/img/g/g13b.gif differ diff --git a/gpack/travian_default/img/g/g14.gif b/gpack/travian_default/img/g/g14.gif new file mode 100644 index 00000000..028def71 Binary files /dev/null and b/gpack/travian_default/img/g/g14.gif differ diff --git a/gpack/travian_default/img/g/g14b.gif b/gpack/travian_default/img/g/g14b.gif new file mode 100644 index 00000000..0eb91edb Binary files /dev/null and b/gpack/travian_default/img/g/g14b.gif differ diff --git a/gpack/travian_default/img/g/g15.gif b/gpack/travian_default/img/g/g15.gif new file mode 100644 index 00000000..b3b38597 Binary files /dev/null and b/gpack/travian_default/img/g/g15.gif differ diff --git a/gpack/travian_default/img/g/g15b.gif b/gpack/travian_default/img/g/g15b.gif new file mode 100644 index 00000000..efaf119f Binary files /dev/null and b/gpack/travian_default/img/g/g15b.gif differ diff --git a/gpack/travian_default/img/g/g16.gif b/gpack/travian_default/img/g/g16.gif new file mode 100644 index 00000000..ced8bfbf Binary files /dev/null and b/gpack/travian_default/img/g/g16.gif differ diff --git a/gpack/travian_default/img/g/g16b.gif b/gpack/travian_default/img/g/g16b.gif new file mode 100644 index 00000000..41e9eeca Binary files /dev/null and b/gpack/travian_default/img/g/g16b.gif differ diff --git a/gpack/travian_default/img/g/g16e.gif b/gpack/travian_default/img/g/g16e.gif new file mode 100644 index 00000000..15194b3c Binary files /dev/null and b/gpack/travian_default/img/g/g16e.gif differ diff --git a/gpack/travian_default/img/g/g17.gif b/gpack/travian_default/img/g/g17.gif new file mode 100644 index 00000000..9cba03a2 Binary files /dev/null and b/gpack/travian_default/img/g/g17.gif differ diff --git a/gpack/travian_default/img/g/g17b.gif b/gpack/travian_default/img/g/g17b.gif new file mode 100644 index 00000000..c31afad6 Binary files /dev/null and b/gpack/travian_default/img/g/g17b.gif differ diff --git a/gpack/travian_default/img/g/g18.gif b/gpack/travian_default/img/g/g18.gif new file mode 100644 index 00000000..e22fc79c Binary files /dev/null and b/gpack/travian_default/img/g/g18.gif differ diff --git a/gpack/travian_default/img/g/g18b.gif b/gpack/travian_default/img/g/g18b.gif new file mode 100644 index 00000000..2ff14a79 Binary files /dev/null and b/gpack/travian_default/img/g/g18b.gif differ diff --git a/gpack/travian_default/img/g/g19.gif b/gpack/travian_default/img/g/g19.gif new file mode 100644 index 00000000..1594df89 Binary files /dev/null and b/gpack/travian_default/img/g/g19.gif differ diff --git a/gpack/travian_default/img/g/g19b.gif b/gpack/travian_default/img/g/g19b.gif new file mode 100644 index 00000000..570ae022 Binary files /dev/null and b/gpack/travian_default/img/g/g19b.gif differ diff --git a/gpack/travian_default/img/g/g2.gif b/gpack/travian_default/img/g/g2.gif new file mode 100644 index 00000000..14e9a8f3 Binary files /dev/null and b/gpack/travian_default/img/g/g2.gif differ diff --git a/gpack/travian_default/img/g/g20.gif b/gpack/travian_default/img/g/g20.gif new file mode 100644 index 00000000..53eb4b42 Binary files /dev/null and b/gpack/travian_default/img/g/g20.gif differ diff --git a/gpack/travian_default/img/g/g20b.gif b/gpack/travian_default/img/g/g20b.gif new file mode 100644 index 00000000..6c74c4bd Binary files /dev/null and b/gpack/travian_default/img/g/g20b.gif differ diff --git a/gpack/travian_default/img/g/g21.gif b/gpack/travian_default/img/g/g21.gif new file mode 100644 index 00000000..c28c96cf Binary files /dev/null and b/gpack/travian_default/img/g/g21.gif differ diff --git a/gpack/travian_default/img/g/g21b.gif b/gpack/travian_default/img/g/g21b.gif new file mode 100644 index 00000000..e32f34da Binary files /dev/null and b/gpack/travian_default/img/g/g21b.gif differ diff --git a/gpack/travian_default/img/g/g22.gif b/gpack/travian_default/img/g/g22.gif new file mode 100644 index 00000000..4644eca6 Binary files /dev/null and b/gpack/travian_default/img/g/g22.gif differ diff --git a/gpack/travian_default/img/g/g22b.gif b/gpack/travian_default/img/g/g22b.gif new file mode 100644 index 00000000..3ba5af78 Binary files /dev/null and b/gpack/travian_default/img/g/g22b.gif differ diff --git a/gpack/travian_default/img/g/g23.gif b/gpack/travian_default/img/g/g23.gif new file mode 100644 index 00000000..fb6efe09 Binary files /dev/null and b/gpack/travian_default/img/g/g23.gif differ diff --git a/gpack/travian_default/img/g/g23b.gif b/gpack/travian_default/img/g/g23b.gif new file mode 100644 index 00000000..6f7ecb20 Binary files /dev/null and b/gpack/travian_default/img/g/g23b.gif differ diff --git a/gpack/travian_default/img/g/g24.gif b/gpack/travian_default/img/g/g24.gif new file mode 100644 index 00000000..c4659f23 Binary files /dev/null and b/gpack/travian_default/img/g/g24.gif differ diff --git a/gpack/travian_default/img/g/g24b.gif b/gpack/travian_default/img/g/g24b.gif new file mode 100644 index 00000000..047430b8 Binary files /dev/null and b/gpack/travian_default/img/g/g24b.gif differ diff --git a/gpack/travian_default/img/g/g25.gif b/gpack/travian_default/img/g/g25.gif new file mode 100644 index 00000000..c67f4fe3 Binary files /dev/null and b/gpack/travian_default/img/g/g25.gif differ diff --git a/gpack/travian_default/img/g/g25b.gif b/gpack/travian_default/img/g/g25b.gif new file mode 100644 index 00000000..b643fa65 Binary files /dev/null and b/gpack/travian_default/img/g/g25b.gif differ diff --git a/gpack/travian_default/img/g/g26.gif b/gpack/travian_default/img/g/g26.gif new file mode 100644 index 00000000..6d370a18 Binary files /dev/null and b/gpack/travian_default/img/g/g26.gif differ diff --git a/gpack/travian_default/img/g/g26b.gif b/gpack/travian_default/img/g/g26b.gif new file mode 100644 index 00000000..cf67c329 Binary files /dev/null and b/gpack/travian_default/img/g/g26b.gif differ diff --git a/gpack/travian_default/img/g/g27.gif b/gpack/travian_default/img/g/g27.gif new file mode 100644 index 00000000..2c479d31 Binary files /dev/null and b/gpack/travian_default/img/g/g27.gif differ diff --git a/gpack/travian_default/img/g/g27b.gif b/gpack/travian_default/img/g/g27b.gif new file mode 100644 index 00000000..e6764192 Binary files /dev/null and b/gpack/travian_default/img/g/g27b.gif differ diff --git a/gpack/travian_default/img/g/g28.gif b/gpack/travian_default/img/g/g28.gif new file mode 100644 index 00000000..37a5ad5b Binary files /dev/null and b/gpack/travian_default/img/g/g28.gif differ diff --git a/gpack/travian_default/img/g/g28b.gif b/gpack/travian_default/img/g/g28b.gif new file mode 100644 index 00000000..5e3548a6 Binary files /dev/null and b/gpack/travian_default/img/g/g28b.gif differ diff --git a/gpack/travian_default/img/g/g29.gif b/gpack/travian_default/img/g/g29.gif new file mode 100644 index 00000000..863313d9 Binary files /dev/null and b/gpack/travian_default/img/g/g29.gif differ diff --git a/gpack/travian_default/img/g/g29b.gif b/gpack/travian_default/img/g/g29b.gif new file mode 100644 index 00000000..570ae022 Binary files /dev/null and b/gpack/travian_default/img/g/g29b.gif differ diff --git a/gpack/travian_default/img/g/g3.gif b/gpack/travian_default/img/g/g3.gif new file mode 100644 index 00000000..d2bf739b Binary files /dev/null and b/gpack/travian_default/img/g/g3.gif differ diff --git a/gpack/travian_default/img/g/g30.gif b/gpack/travian_default/img/g/g30.gif new file mode 100644 index 00000000..7422b9b6 Binary files /dev/null and b/gpack/travian_default/img/g/g30.gif differ diff --git a/gpack/travian_default/img/g/g30b.gif b/gpack/travian_default/img/g/g30b.gif new file mode 100644 index 00000000..6c74c4bd Binary files /dev/null and b/gpack/travian_default/img/g/g30b.gif differ diff --git a/gpack/travian_default/img/g/g34.gif b/gpack/travian_default/img/g/g34.gif new file mode 100644 index 00000000..b06f4805 Binary files /dev/null and b/gpack/travian_default/img/g/g34.gif differ diff --git a/gpack/travian_default/img/g/g34b.gif b/gpack/travian_default/img/g/g34b.gif new file mode 100644 index 00000000..559077f4 Binary files /dev/null and b/gpack/travian_default/img/g/g34b.gif differ diff --git a/gpack/travian_default/img/g/g35.gif b/gpack/travian_default/img/g/g35.gif new file mode 100644 index 00000000..b934965f Binary files /dev/null and b/gpack/travian_default/img/g/g35.gif differ diff --git a/gpack/travian_default/img/g/g35_tea.gif b/gpack/travian_default/img/g/g35_tea.gif new file mode 100644 index 00000000..7aeffa81 Binary files /dev/null and b/gpack/travian_default/img/g/g35_tea.gif differ diff --git a/gpack/travian_default/img/g/g35b.gif b/gpack/travian_default/img/g/g35b.gif new file mode 100644 index 00000000..59c20f7a Binary files /dev/null and b/gpack/travian_default/img/g/g35b.gif differ diff --git a/gpack/travian_default/img/g/g35b_tea.gif b/gpack/travian_default/img/g/g35b_tea.gif new file mode 100644 index 00000000..b3c5eabd Binary files /dev/null and b/gpack/travian_default/img/g/g35b_tea.gif differ diff --git a/gpack/travian_default/img/g/g36.gif b/gpack/travian_default/img/g/g36.gif new file mode 100644 index 00000000..3eb55117 Binary files /dev/null and b/gpack/travian_default/img/g/g36.gif differ diff --git a/gpack/travian_default/img/g/g36b.gif b/gpack/travian_default/img/g/g36b.gif new file mode 100644 index 00000000..1ee92976 Binary files /dev/null and b/gpack/travian_default/img/g/g36b.gif differ diff --git a/gpack/travian_default/img/g/g37.gif b/gpack/travian_default/img/g/g37.gif new file mode 100644 index 00000000..7a54ecf1 Binary files /dev/null and b/gpack/travian_default/img/g/g37.gif differ diff --git a/gpack/travian_default/img/g/g37b.gif b/gpack/travian_default/img/g/g37b.gif new file mode 100644 index 00000000..8e4b1b39 Binary files /dev/null and b/gpack/travian_default/img/g/g37b.gif differ diff --git a/gpack/travian_default/img/g/g38.gif b/gpack/travian_default/img/g/g38.gif new file mode 100644 index 00000000..2c55d044 Binary files /dev/null and b/gpack/travian_default/img/g/g38.gif differ diff --git a/gpack/travian_default/img/g/g38b.gif b/gpack/travian_default/img/g/g38b.gif new file mode 100644 index 00000000..7bcf55fa Binary files /dev/null and b/gpack/travian_default/img/g/g38b.gif differ diff --git a/gpack/travian_default/img/g/g39.gif b/gpack/travian_default/img/g/g39.gif new file mode 100644 index 00000000..cd9c81b0 Binary files /dev/null and b/gpack/travian_default/img/g/g39.gif differ diff --git a/gpack/travian_default/img/g/g39b.gif b/gpack/travian_default/img/g/g39b.gif new file mode 100644 index 00000000..97fc9331 Binary files /dev/null and b/gpack/travian_default/img/g/g39b.gif differ diff --git a/gpack/travian_default/img/g/g4.gif b/gpack/travian_default/img/g/g4.gif new file mode 100644 index 00000000..71c09f56 Binary files /dev/null and b/gpack/travian_default/img/g/g4.gif differ diff --git a/gpack/travian_default/img/g/g40.gif b/gpack/travian_default/img/g/g40.gif new file mode 100644 index 00000000..ac6c7efb Binary files /dev/null and b/gpack/travian_default/img/g/g40.gif differ diff --git a/gpack/travian_default/img/g/g40_1.gif b/gpack/travian_default/img/g/g40_1.gif new file mode 100644 index 00000000..9b5fa106 Binary files /dev/null and b/gpack/travian_default/img/g/g40_1.gif differ diff --git a/gpack/travian_default/img/g/g40_2.gif b/gpack/travian_default/img/g/g40_2.gif new file mode 100644 index 00000000..9503a4ff Binary files /dev/null and b/gpack/travian_default/img/g/g40_2.gif differ diff --git a/gpack/travian_default/img/g/g40_3.gif b/gpack/travian_default/img/g/g40_3.gif new file mode 100644 index 00000000..c9bd9358 Binary files /dev/null and b/gpack/travian_default/img/g/g40_3.gif differ diff --git a/gpack/travian_default/img/g/g40_4.gif b/gpack/travian_default/img/g/g40_4.gif new file mode 100644 index 00000000..78b9d35f Binary files /dev/null and b/gpack/travian_default/img/g/g40_4.gif differ diff --git a/gpack/travian_default/img/g/g40_5.gif b/gpack/travian_default/img/g/g40_5.gif new file mode 100644 index 00000000..31b8f7a7 Binary files /dev/null and b/gpack/travian_default/img/g/g40_5.gif differ diff --git a/gpack/travian_default/img/g/g41.gif b/gpack/travian_default/img/g/g41.gif new file mode 100644 index 00000000..db16aae4 Binary files /dev/null and b/gpack/travian_default/img/g/g41.gif differ diff --git a/gpack/travian_default/img/g/g41b.gif b/gpack/travian_default/img/g/g41b.gif new file mode 100644 index 00000000..03e6e951 Binary files /dev/null and b/gpack/travian_default/img/g/g41b.gif differ diff --git a/gpack/travian_default/img/g/g42.gif b/gpack/travian_default/img/g/g42.gif new file mode 100644 index 00000000..c28c96cf Binary files /dev/null and b/gpack/travian_default/img/g/g42.gif differ diff --git a/gpack/travian_default/img/g/g42b.gif b/gpack/travian_default/img/g/g42b.gif new file mode 100644 index 00000000..e32f34da Binary files /dev/null and b/gpack/travian_default/img/g/g42b.gif differ diff --git a/gpack/travian_default/img/g/g43.gif b/gpack/travian_default/img/g/g43.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travian_default/img/g/g43.gif differ diff --git a/gpack/travian_default/img/g/g43b.gif b/gpack/travian_default/img/g/g43b.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travian_default/img/g/g43b.gif differ diff --git a/gpack/travian_default/img/g/g44.gif b/gpack/travian_default/img/g/g44.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travian_default/img/g/g44.gif differ diff --git a/gpack/travian_default/img/g/g44b.gif b/gpack/travian_default/img/g/g44b.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travian_default/img/g/g44b.gif differ diff --git a/gpack/travian_default/img/g/g5.gif b/gpack/travian_default/img/g/g5.gif new file mode 100644 index 00000000..4a8aa69f Binary files /dev/null and b/gpack/travian_default/img/g/g5.gif differ diff --git a/gpack/travian_default/img/g/g5b.gif b/gpack/travian_default/img/g/g5b.gif new file mode 100644 index 00000000..5571545a Binary files /dev/null and b/gpack/travian_default/img/g/g5b.gif differ diff --git a/gpack/travian_default/img/g/g6.gif b/gpack/travian_default/img/g/g6.gif new file mode 100644 index 00000000..dc58f4bb Binary files /dev/null and b/gpack/travian_default/img/g/g6.gif differ diff --git a/gpack/travian_default/img/g/g6b.gif b/gpack/travian_default/img/g/g6b.gif new file mode 100644 index 00000000..3153df7c Binary files /dev/null and b/gpack/travian_default/img/g/g6b.gif differ diff --git a/gpack/travian_default/img/g/g7.gif b/gpack/travian_default/img/g/g7.gif new file mode 100644 index 00000000..81f4a840 Binary files /dev/null and b/gpack/travian_default/img/g/g7.gif differ diff --git a/gpack/travian_default/img/g/g7b.gif b/gpack/travian_default/img/g/g7b.gif new file mode 100644 index 00000000..1308afed Binary files /dev/null and b/gpack/travian_default/img/g/g7b.gif differ diff --git a/gpack/travian_default/img/g/g8.gif b/gpack/travian_default/img/g/g8.gif new file mode 100644 index 00000000..553d5ced Binary files /dev/null and b/gpack/travian_default/img/g/g8.gif differ diff --git a/gpack/travian_default/img/g/g8b.gif b/gpack/travian_default/img/g/g8b.gif new file mode 100644 index 00000000..cba48a3e Binary files /dev/null and b/gpack/travian_default/img/g/g8b.gif differ diff --git a/gpack/travian_default/img/g/g9.gif b/gpack/travian_default/img/g/g9.gif new file mode 100644 index 00000000..ad9c3bec Binary files /dev/null and b/gpack/travian_default/img/g/g9.gif differ diff --git a/gpack/travian_default/img/g/g9b.gif b/gpack/travian_default/img/g/g9b.gif new file mode 100644 index 00000000..5b5ac885 Binary files /dev/null and b/gpack/travian_default/img/g/g9b.gif differ diff --git a/gpack/travian_default/img/g/iso.gif b/gpack/travian_default/img/g/iso.gif new file mode 100644 index 00000000..5f5414f9 Binary files /dev/null and b/gpack/travian_default/img/g/iso.gif differ diff --git a/gpack/travian_default/img/g/s/Thumbs.db b/gpack/travian_default/img/g/s/Thumbs.db new file mode 100644 index 00000000..eb13ad67 Binary files /dev/null and b/gpack/travian_default/img/g/s/Thumbs.db differ diff --git a/gpack/travian_default/img/g/s/glvl.gif b/gpack/travian_default/img/g/s/glvl.gif new file mode 100644 index 00000000..e29c346e Binary files /dev/null and b/gpack/travian_default/img/g/s/glvl.gif differ diff --git a/gpack/travian_default/img/g/s/glvlm.gif b/gpack/travian_default/img/g/s/glvlm.gif new file mode 100644 index 00000000..6dec5842 Binary files /dev/null and b/gpack/travian_default/img/g/s/glvlm.gif differ diff --git a/gpack/travian_default/img/g/s/glvlp.gif b/gpack/travian_default/img/g/s/glvlp.gif new file mode 100644 index 00000000..96917e91 Binary files /dev/null and b/gpack/travian_default/img/g/s/glvlp.gif differ diff --git a/gpack/travian_default/img/g/s/lvl11_20.gif b/gpack/travian_default/img/g/s/lvl11_20.gif new file mode 100644 index 00000000..3e8ecad8 Binary files /dev/null and b/gpack/travian_default/img/g/s/lvl11_20.gif differ diff --git a/gpack/travian_default/img/g/s/lvl1_10.gif b/gpack/travian_default/img/g/s/lvl1_10.gif new file mode 100644 index 00000000..aead44f9 Binary files /dev/null and b/gpack/travian_default/img/g/s/lvl1_10.gif differ diff --git a/gpack/travian_default/img/g/s/lvl21_30.gif b/gpack/travian_default/img/g/s/lvl21_30.gif new file mode 100644 index 00000000..f354f006 Binary files /dev/null and b/gpack/travian_default/img/g/s/lvl21_30.gif differ diff --git a/gpack/travian_default/img/l/Thumbs.db b/gpack/travian_default/img/l/Thumbs.db new file mode 100644 index 00000000..c7675283 Binary files /dev/null and b/gpack/travian_default/img/l/Thumbs.db differ diff --git a/gpack/travian_default/img/l/ad0.jpg b/gpack/travian_default/img/l/ad0.jpg new file mode 100644 index 00000000..e0790976 Binary files /dev/null and b/gpack/travian_default/img/l/ad0.jpg differ diff --git a/gpack/travian_default/img/l/ad1.jpg b/gpack/travian_default/img/l/ad1.jpg new file mode 100644 index 00000000..009d8b59 Binary files /dev/null and b/gpack/travian_default/img/l/ad1.jpg differ diff --git a/gpack/travian_default/img/l/ad2.jpg b/gpack/travian_default/img/l/ad2.jpg new file mode 100644 index 00000000..84263e98 Binary files /dev/null and b/gpack/travian_default/img/l/ad2.jpg differ diff --git a/gpack/travian_default/img/l/bigsize_bg.jpg b/gpack/travian_default/img/l/bigsize_bg.jpg new file mode 100644 index 00000000..e942d01d Binary files /dev/null and b/gpack/travian_default/img/l/bigsize_bg.jpg differ diff --git a/gpack/travian_default/img/l/bigsize_bg_interia.jpg b/gpack/travian_default/img/l/bigsize_bg_interia.jpg new file mode 100644 index 00000000..f4a3a9fb Binary files /dev/null and b/gpack/travian_default/img/l/bigsize_bg_interia.jpg differ diff --git a/gpack/travian_default/img/l/day.gif b/gpack/travian_default/img/l/day.gif new file mode 100644 index 00000000..98cb5329 Binary files /dev/null and b/gpack/travian_default/img/l/day.gif differ diff --git a/gpack/travian_default/img/l/dyn_bg1.jpg b/gpack/travian_default/img/l/dyn_bg1.jpg new file mode 100644 index 00000000..fa994e6d Binary files /dev/null and b/gpack/travian_default/img/l/dyn_bg1.jpg differ diff --git a/gpack/travian_default/img/l/m1.gif b/gpack/travian_default/img/l/m1.gif new file mode 100644 index 00000000..89ffaf26 Binary files /dev/null and b/gpack/travian_default/img/l/m1.gif differ diff --git a/gpack/travian_default/img/l/m1_30.gif b/gpack/travian_default/img/l/m1_30.gif new file mode 100644 index 00000000..f23f12ee Binary files /dev/null and b/gpack/travian_default/img/l/m1_30.gif differ diff --git a/gpack/travian_default/img/l/m2.gif b/gpack/travian_default/img/l/m2.gif new file mode 100644 index 00000000..01f37d98 Binary files /dev/null and b/gpack/travian_default/img/l/m2.gif differ diff --git a/gpack/travian_default/img/l/m2_30.gif b/gpack/travian_default/img/l/m2_30.gif new file mode 100644 index 00000000..48e474f6 Binary files /dev/null and b/gpack/travian_default/img/l/m2_30.gif differ diff --git a/gpack/travian_default/img/l/m3.gif b/gpack/travian_default/img/l/m3.gif new file mode 100644 index 00000000..a9087119 Binary files /dev/null and b/gpack/travian_default/img/l/m3.gif differ diff --git a/gpack/travian_default/img/l/m3_30.gif b/gpack/travian_default/img/l/m3_30.gif new file mode 100644 index 00000000..244da4c7 Binary files /dev/null and b/gpack/travian_default/img/l/m3_30.gif differ diff --git a/gpack/travian_default/img/l/m4.gif b/gpack/travian_default/img/l/m4.gif new file mode 100644 index 00000000..ababfc30 Binary files /dev/null and b/gpack/travian_default/img/l/m4.gif differ diff --git a/gpack/travian_default/img/l/m4_30.gif b/gpack/travian_default/img/l/m4_30.gif new file mode 100644 index 00000000..fb76ac6e Binary files /dev/null and b/gpack/travian_default/img/l/m4_30.gif differ diff --git a/gpack/travian_default/img/l/mp.gif b/gpack/travian_default/img/l/mp.gif new file mode 100644 index 00000000..ded914cd Binary files /dev/null and b/gpack/travian_default/img/l/mp.gif differ diff --git a/gpack/travian_default/img/l/mw.gif b/gpack/travian_default/img/l/mw.gif new file mode 100644 index 00000000..eddc8288 Binary files /dev/null and b/gpack/travian_default/img/l/mw.gif differ diff --git a/gpack/travian_default/img/l/n1.gif b/gpack/travian_default/img/l/n1.gif new file mode 100644 index 00000000..ca2c7aba Binary files /dev/null and b/gpack/travian_default/img/l/n1.gif differ diff --git a/gpack/travian_default/img/l/n1_30.gif b/gpack/travian_default/img/l/n1_30.gif new file mode 100644 index 00000000..ee7db70d Binary files /dev/null and b/gpack/travian_default/img/l/n1_30.gif differ diff --git a/gpack/travian_default/img/l/n2.gif b/gpack/travian_default/img/l/n2.gif new file mode 100644 index 00000000..b49350a1 Binary files /dev/null and b/gpack/travian_default/img/l/n2.gif differ diff --git a/gpack/travian_default/img/l/n2_30.gif b/gpack/travian_default/img/l/n2_30.gif new file mode 100644 index 00000000..435aafb9 Binary files /dev/null and b/gpack/travian_default/img/l/n2_30.gif differ diff --git a/gpack/travian_default/img/l/n3.gif b/gpack/travian_default/img/l/n3.gif new file mode 100644 index 00000000..b58a79bc Binary files /dev/null and b/gpack/travian_default/img/l/n3.gif differ diff --git a/gpack/travian_default/img/l/n3_30.gif b/gpack/travian_default/img/l/n3_30.gif new file mode 100644 index 00000000..8dd91ef0 Binary files /dev/null and b/gpack/travian_default/img/l/n3_30.gif differ diff --git a/gpack/travian_default/img/l/n4.gif b/gpack/travian_default/img/l/n4.gif new file mode 100644 index 00000000..da3cf96f Binary files /dev/null and b/gpack/travian_default/img/l/n4.gif differ diff --git a/gpack/travian_default/img/l/n4_30.gif b/gpack/travian_default/img/l/n4_30.gif new file mode 100644 index 00000000..0df933e8 Binary files /dev/null and b/gpack/travian_default/img/l/n4_30.gif differ diff --git a/gpack/travian_default/img/l/navi.gif b/gpack/travian_default/img/l/navi.gif new file mode 100644 index 00000000..6a6f51c6 Binary files /dev/null and b/gpack/travian_default/img/l/navi.gif differ diff --git a/gpack/travian_default/img/l/night.gif b/gpack/travian_default/img/l/night.gif new file mode 100644 index 00000000..0b37fb5b Binary files /dev/null and b/gpack/travian_default/img/l/night.gif differ diff --git a/gpack/travian_default/img/l/skyscraper_bg.gif b/gpack/travian_default/img/l/skyscraper_bg.gif new file mode 100644 index 00000000..5a0cc6da Binary files /dev/null and b/gpack/travian_default/img/l/skyscraper_bg.gif differ diff --git a/gpack/travian_default/img/m/Thumbs.db b/gpack/travian_default/img/m/Thumbs.db new file mode 100644 index 00000000..9e8593ce Binary files /dev/null and b/gpack/travian_default/img/m/Thumbs.db differ diff --git a/gpack/travian_default/img/m/d00.gif b/gpack/travian_default/img/m/d00.gif new file mode 100644 index 00000000..a07c7fa6 Binary files /dev/null and b/gpack/travian_default/img/m/d00.gif differ diff --git a/gpack/travian_default/img/m/d01.gif b/gpack/travian_default/img/m/d01.gif new file mode 100644 index 00000000..96c930e5 Binary files /dev/null and b/gpack/travian_default/img/m/d01.gif differ diff --git a/gpack/travian_default/img/m/d02.gif b/gpack/travian_default/img/m/d02.gif new file mode 100644 index 00000000..d4fa8723 Binary files /dev/null and b/gpack/travian_default/img/m/d02.gif differ diff --git a/gpack/travian_default/img/m/d03.gif b/gpack/travian_default/img/m/d03.gif new file mode 100644 index 00000000..c74ee5ba Binary files /dev/null and b/gpack/travian_default/img/m/d03.gif differ diff --git a/gpack/travian_default/img/m/d04.gif b/gpack/travian_default/img/m/d04.gif new file mode 100644 index 00000000..6dad30f2 Binary files /dev/null and b/gpack/travian_default/img/m/d04.gif differ diff --git a/gpack/travian_default/img/m/d05.gif b/gpack/travian_default/img/m/d05.gif new file mode 100644 index 00000000..2c94be80 Binary files /dev/null and b/gpack/travian_default/img/m/d05.gif differ diff --git a/gpack/travian_default/img/m/d10.gif b/gpack/travian_default/img/m/d10.gif new file mode 100644 index 00000000..fcf8cbc9 Binary files /dev/null and b/gpack/travian_default/img/m/d10.gif differ diff --git a/gpack/travian_default/img/m/d11.gif b/gpack/travian_default/img/m/d11.gif new file mode 100644 index 00000000..c41d0d01 Binary files /dev/null and b/gpack/travian_default/img/m/d11.gif differ diff --git a/gpack/travian_default/img/m/d12.gif b/gpack/travian_default/img/m/d12.gif new file mode 100644 index 00000000..bb518236 Binary files /dev/null and b/gpack/travian_default/img/m/d12.gif differ diff --git a/gpack/travian_default/img/m/d13.gif b/gpack/travian_default/img/m/d13.gif new file mode 100644 index 00000000..2677ced6 Binary files /dev/null and b/gpack/travian_default/img/m/d13.gif differ diff --git a/gpack/travian_default/img/m/d14.gif b/gpack/travian_default/img/m/d14.gif new file mode 100644 index 00000000..be278344 Binary files /dev/null and b/gpack/travian_default/img/m/d14.gif differ diff --git a/gpack/travian_default/img/m/d15.gif b/gpack/travian_default/img/m/d15.gif new file mode 100644 index 00000000..9803f5b2 Binary files /dev/null and b/gpack/travian_default/img/m/d15.gif differ diff --git a/gpack/travian_default/img/m/d20.gif b/gpack/travian_default/img/m/d20.gif new file mode 100644 index 00000000..b0b5aefb Binary files /dev/null and b/gpack/travian_default/img/m/d20.gif differ diff --git a/gpack/travian_default/img/m/d21.gif b/gpack/travian_default/img/m/d21.gif new file mode 100644 index 00000000..c7e4de3d Binary files /dev/null and b/gpack/travian_default/img/m/d21.gif differ diff --git a/gpack/travian_default/img/m/d22.gif b/gpack/travian_default/img/m/d22.gif new file mode 100644 index 00000000..65e49cd9 Binary files /dev/null and b/gpack/travian_default/img/m/d22.gif differ diff --git a/gpack/travian_default/img/m/d23.gif b/gpack/travian_default/img/m/d23.gif new file mode 100644 index 00000000..1da8f894 Binary files /dev/null and b/gpack/travian_default/img/m/d23.gif differ diff --git a/gpack/travian_default/img/m/d24.gif b/gpack/travian_default/img/m/d24.gif new file mode 100644 index 00000000..10b4f806 Binary files /dev/null and b/gpack/travian_default/img/m/d24.gif differ diff --git a/gpack/travian_default/img/m/d25.gif b/gpack/travian_default/img/m/d25.gif new file mode 100644 index 00000000..5597e6fe Binary files /dev/null and b/gpack/travian_default/img/m/d25.gif differ diff --git a/gpack/travian_default/img/m/d30.gif b/gpack/travian_default/img/m/d30.gif new file mode 100644 index 00000000..a361e539 Binary files /dev/null and b/gpack/travian_default/img/m/d30.gif differ diff --git a/gpack/travian_default/img/m/d31.gif b/gpack/travian_default/img/m/d31.gif new file mode 100644 index 00000000..9e6ce3d6 Binary files /dev/null and b/gpack/travian_default/img/m/d31.gif differ diff --git a/gpack/travian_default/img/m/d32.gif b/gpack/travian_default/img/m/d32.gif new file mode 100644 index 00000000..033f9039 Binary files /dev/null and b/gpack/travian_default/img/m/d32.gif differ diff --git a/gpack/travian_default/img/m/d33.gif b/gpack/travian_default/img/m/d33.gif new file mode 100644 index 00000000..dcc884d3 Binary files /dev/null and b/gpack/travian_default/img/m/d33.gif differ diff --git a/gpack/travian_default/img/m/d34.gif b/gpack/travian_default/img/m/d34.gif new file mode 100644 index 00000000..0b3a7a83 Binary files /dev/null and b/gpack/travian_default/img/m/d34.gif differ diff --git a/gpack/travian_default/img/m/d35.gif b/gpack/travian_default/img/m/d35.gif new file mode 100644 index 00000000..8f813533 Binary files /dev/null and b/gpack/travian_default/img/m/d35.gif differ diff --git a/gpack/travian_default/img/m/dir.gif b/gpack/travian_default/img/m/dir.gif new file mode 100644 index 00000000..23aa42f8 Binary files /dev/null and b/gpack/travian_default/img/m/dir.gif differ diff --git a/gpack/travian_default/img/m/map.gif b/gpack/travian_default/img/m/map.gif new file mode 100644 index 00000000..d1746e3f Binary files /dev/null and b/gpack/travian_default/img/m/map.gif differ diff --git a/gpack/travian_default/img/m/map.jpg b/gpack/travian_default/img/m/map.jpg new file mode 100644 index 00000000..7ed399f2 Binary files /dev/null and b/gpack/travian_default/img/m/map.jpg differ diff --git a/gpack/travian_default/img/m/mapl.gif b/gpack/travian_default/img/m/mapl.gif new file mode 100644 index 00000000..9bc86c8f Binary files /dev/null and b/gpack/travian_default/img/m/mapl.gif differ diff --git a/gpack/travian_default/img/m/matt.gif b/gpack/travian_default/img/m/matt.gif new file mode 100644 index 00000000..63cc3afd Binary files /dev/null and b/gpack/travian_default/img/m/matt.gif differ diff --git a/gpack/travian_default/img/m/max.gif b/gpack/travian_default/img/m/max.gif new file mode 100644 index 00000000..bc6d143e Binary files /dev/null and b/gpack/travian_default/img/m/max.gif differ diff --git a/gpack/travian_default/img/m/mret.gif b/gpack/travian_default/img/m/mret.gif new file mode 100644 index 00000000..97b6f915 Binary files /dev/null and b/gpack/travian_default/img/m/mret.gif differ diff --git a/gpack/travian_default/img/m/mspy.gif b/gpack/travian_default/img/m/mspy.gif new file mode 100644 index 00000000..2a1d58e7 Binary files /dev/null and b/gpack/travian_default/img/m/mspy.gif differ diff --git a/gpack/travian_default/img/m/msup.gif b/gpack/travian_default/img/m/msup.gif new file mode 100644 index 00000000..214f71f9 Binary files /dev/null and b/gpack/travian_default/img/m/msup.gif differ diff --git a/gpack/travian_default/img/m/o1.gif b/gpack/travian_default/img/m/o1.gif new file mode 100644 index 00000000..f10a68db Binary files /dev/null and b/gpack/travian_default/img/m/o1.gif differ diff --git a/gpack/travian_default/img/m/o10.gif b/gpack/travian_default/img/m/o10.gif new file mode 100644 index 00000000..96cd2952 Binary files /dev/null and b/gpack/travian_default/img/m/o10.gif differ diff --git a/gpack/travian_default/img/m/o11.gif b/gpack/travian_default/img/m/o11.gif new file mode 100644 index 00000000..a8c3b26d Binary files /dev/null and b/gpack/travian_default/img/m/o11.gif differ diff --git a/gpack/travian_default/img/m/o12.gif b/gpack/travian_default/img/m/o12.gif new file mode 100644 index 00000000..ff730e5d Binary files /dev/null and b/gpack/travian_default/img/m/o12.gif differ diff --git a/gpack/travian_default/img/m/o2.gif b/gpack/travian_default/img/m/o2.gif new file mode 100644 index 00000000..e699d526 Binary files /dev/null and b/gpack/travian_default/img/m/o2.gif differ diff --git a/gpack/travian_default/img/m/o3.gif b/gpack/travian_default/img/m/o3.gif new file mode 100644 index 00000000..26466bb9 Binary files /dev/null and b/gpack/travian_default/img/m/o3.gif differ diff --git a/gpack/travian_default/img/m/o4.gif b/gpack/travian_default/img/m/o4.gif new file mode 100644 index 00000000..aae2d17c Binary files /dev/null and b/gpack/travian_default/img/m/o4.gif differ diff --git a/gpack/travian_default/img/m/o5.gif b/gpack/travian_default/img/m/o5.gif new file mode 100644 index 00000000..2eb9e20e Binary files /dev/null and b/gpack/travian_default/img/m/o5.gif differ diff --git a/gpack/travian_default/img/m/o6.gif b/gpack/travian_default/img/m/o6.gif new file mode 100644 index 00000000..c11d694f Binary files /dev/null and b/gpack/travian_default/img/m/o6.gif differ diff --git a/gpack/travian_default/img/m/o7.gif b/gpack/travian_default/img/m/o7.gif new file mode 100644 index 00000000..86c0c638 Binary files /dev/null and b/gpack/travian_default/img/m/o7.gif differ diff --git a/gpack/travian_default/img/m/o8.gif b/gpack/travian_default/img/m/o8.gif new file mode 100644 index 00000000..54dbf503 Binary files /dev/null and b/gpack/travian_default/img/m/o8.gif differ diff --git a/gpack/travian_default/img/m/o9.gif b/gpack/travian_default/img/m/o9.gif new file mode 100644 index 00000000..49fda3db Binary files /dev/null and b/gpack/travian_default/img/m/o9.gif differ diff --git a/gpack/travian_default/img/m/o99.gif b/gpack/travian_default/img/m/o99.gif new file mode 100644 index 00000000..09d5aafe Binary files /dev/null and b/gpack/travian_default/img/m/o99.gif differ diff --git a/gpack/travian_default/img/m/t0.gif b/gpack/travian_default/img/m/t0.gif new file mode 100644 index 00000000..1856143b Binary files /dev/null and b/gpack/travian_default/img/m/t0.gif differ diff --git a/gpack/travian_default/img/m/t1.gif b/gpack/travian_default/img/m/t1.gif new file mode 100644 index 00000000..82f62d33 Binary files /dev/null and b/gpack/travian_default/img/m/t1.gif differ diff --git a/gpack/travian_default/img/m/t2.gif b/gpack/travian_default/img/m/t2.gif new file mode 100644 index 00000000..534c054e Binary files /dev/null and b/gpack/travian_default/img/m/t2.gif differ diff --git a/gpack/travian_default/img/m/t3.gif b/gpack/travian_default/img/m/t3.gif new file mode 100644 index 00000000..bcadf65e Binary files /dev/null and b/gpack/travian_default/img/m/t3.gif differ diff --git a/gpack/travian_default/img/m/t4.gif b/gpack/travian_default/img/m/t4.gif new file mode 100644 index 00000000..53a2eebf Binary files /dev/null and b/gpack/travian_default/img/m/t4.gif differ diff --git a/gpack/travian_default/img/m/t5.gif b/gpack/travian_default/img/m/t5.gif new file mode 100644 index 00000000..b2e56459 Binary files /dev/null and b/gpack/travian_default/img/m/t5.gif differ diff --git a/gpack/travian_default/img/m/t6.gif b/gpack/travian_default/img/m/t6.gif new file mode 100644 index 00000000..0b9f5c25 Binary files /dev/null and b/gpack/travian_default/img/m/t6.gif differ diff --git a/gpack/travian_default/img/m/t7.gif b/gpack/travian_default/img/m/t7.gif new file mode 100644 index 00000000..54e776f2 Binary files /dev/null and b/gpack/travian_default/img/m/t7.gif differ diff --git a/gpack/travian_default/img/m/t8.gif b/gpack/travian_default/img/m/t8.gif new file mode 100644 index 00000000..0b9f5c25 Binary files /dev/null and b/gpack/travian_default/img/m/t8.gif differ diff --git a/gpack/travian_default/img/m/t9.gif b/gpack/travian_default/img/m/t9.gif new file mode 100644 index 00000000..82f62d33 Binary files /dev/null and b/gpack/travian_default/img/m/t9.gif differ diff --git a/gpack/travian_default/img/m/w1.jpg b/gpack/travian_default/img/m/w1.jpg new file mode 100644 index 00000000..5db3e33f Binary files /dev/null and b/gpack/travian_default/img/m/w1.jpg differ diff --git a/gpack/travian_default/img/m/w10.jpg b/gpack/travian_default/img/m/w10.jpg new file mode 100644 index 00000000..a8548b44 Binary files /dev/null and b/gpack/travian_default/img/m/w10.jpg differ diff --git a/gpack/travian_default/img/m/w11.jpg b/gpack/travian_default/img/m/w11.jpg new file mode 100644 index 00000000..8d6646d1 Binary files /dev/null and b/gpack/travian_default/img/m/w11.jpg differ diff --git a/gpack/travian_default/img/m/w12.jpg b/gpack/travian_default/img/m/w12.jpg new file mode 100644 index 00000000..ca6aa93b Binary files /dev/null and b/gpack/travian_default/img/m/w12.jpg differ diff --git a/gpack/travian_default/img/m/w2.jpg b/gpack/travian_default/img/m/w2.jpg new file mode 100644 index 00000000..e30bf719 Binary files /dev/null and b/gpack/travian_default/img/m/w2.jpg differ diff --git a/gpack/travian_default/img/m/w3.jpg b/gpack/travian_default/img/m/w3.jpg new file mode 100644 index 00000000..87543c04 Binary files /dev/null and b/gpack/travian_default/img/m/w3.jpg differ diff --git a/gpack/travian_default/img/m/w4.jpg b/gpack/travian_default/img/m/w4.jpg new file mode 100644 index 00000000..f2155fb7 Binary files /dev/null and b/gpack/travian_default/img/m/w4.jpg differ diff --git a/gpack/travian_default/img/m/w5.jpg b/gpack/travian_default/img/m/w5.jpg new file mode 100644 index 00000000..5bc99d42 Binary files /dev/null and b/gpack/travian_default/img/m/w5.jpg differ diff --git a/gpack/travian_default/img/m/w6.jpg b/gpack/travian_default/img/m/w6.jpg new file mode 100644 index 00000000..aeb4f0f8 Binary files /dev/null and b/gpack/travian_default/img/m/w6.jpg differ diff --git a/gpack/travian_default/img/m/w7.jpg b/gpack/travian_default/img/m/w7.jpg new file mode 100644 index 00000000..e7d44edf Binary files /dev/null and b/gpack/travian_default/img/m/w7.jpg differ diff --git a/gpack/travian_default/img/m/w8.jpg b/gpack/travian_default/img/m/w8.jpg new file mode 100644 index 00000000..78f5a7cb Binary files /dev/null and b/gpack/travian_default/img/m/w8.jpg differ diff --git a/gpack/travian_default/img/m/w9.jpg b/gpack/travian_default/img/m/w9.jpg new file mode 100644 index 00000000..dc3fc054 Binary files /dev/null and b/gpack/travian_default/img/m/w9.jpg differ diff --git a/gpack/travian_default/img/misc/403.gif b/gpack/travian_default/img/misc/403.gif new file mode 100644 index 00000000..ce452da9 Binary files /dev/null and b/gpack/travian_default/img/misc/403.gif differ diff --git a/gpack/travian_default/img/misc/404.gif b/gpack/travian_default/img/misc/404.gif new file mode 100644 index 00000000..fadee331 Binary files /dev/null and b/gpack/travian_default/img/misc/404.gif differ diff --git a/gpack/travian_default/img/misc/500.gif b/gpack/travian_default/img/misc/500.gif new file mode 100644 index 00000000..88d2ec2e Binary files /dev/null and b/gpack/travian_default/img/misc/500.gif differ diff --git a/gpack/travian_default/img/misc/Thumbs.db b/gpack/travian_default/img/misc/Thumbs.db new file mode 100644 index 00000000..40ac177f Binary files /dev/null and b/gpack/travian_default/img/misc/Thumbs.db differ diff --git a/gpack/travian_default/img/misc/artefacts.gif b/gpack/travian_default/img/misc/artefacts.gif new file mode 100644 index 00000000..8a664bcd Binary files /dev/null and b/gpack/travian_default/img/misc/artefacts.gif differ diff --git a/gpack/travian_default/img/misc/cropfinder.gif b/gpack/travian_default/img/misc/cropfinder.gif new file mode 100644 index 00000000..ca35e585 Binary files /dev/null and b/gpack/travian_default/img/misc/cropfinder.gif differ diff --git a/gpack/travian_default/img/misc/vip.gif b/gpack/travian_default/img/misc/vip.gif new file mode 100644 index 00000000..0393583f Binary files /dev/null and b/gpack/travian_default/img/misc/vip.gif differ diff --git a/gpack/travian_default/img/misc/xlo.gif b/gpack/travian_default/img/misc/xlo.gif new file mode 100644 index 00000000..0cc76c5b Binary files /dev/null and b/gpack/travian_default/img/misc/xlo.gif differ diff --git a/gpack/travian_default/img/msg/Thumbs.db b/gpack/travian_default/img/msg/Thumbs.db new file mode 100644 index 00000000..fb68d438 Binary files /dev/null and b/gpack/travian_default/img/msg/Thumbs.db differ diff --git a/gpack/travian_default/img/msg/bb_buttons.png b/gpack/travian_default/img/msg/bb_buttons.png new file mode 100644 index 00000000..1d17e39e Binary files /dev/null and b/gpack/travian_default/img/msg/bb_buttons.png differ diff --git a/gpack/travian_default/img/msg/block_bg.gif b/gpack/travian_default/img/msg/block_bg.gif new file mode 100644 index 00000000..78584291 Binary files /dev/null and b/gpack/travian_default/img/msg/block_bg.gif differ diff --git a/gpack/travian_default/img/msg/block_bg2.gif b/gpack/travian_default/img/msg/block_bg2.gif new file mode 100644 index 00000000..099b65cf Binary files /dev/null and b/gpack/travian_default/img/msg/block_bg2.gif differ diff --git a/gpack/travian_default/img/msg/block_bg21.gif b/gpack/travian_default/img/msg/block_bg21.gif new file mode 100644 index 00000000..558f5edc Binary files /dev/null and b/gpack/travian_default/img/msg/block_bg21.gif differ diff --git a/gpack/travian_default/img/msg/block_bg22.gif b/gpack/travian_default/img/msg/block_bg22.gif new file mode 100644 index 00000000..104bb144 Binary files /dev/null and b/gpack/travian_default/img/msg/block_bg22.gif differ diff --git a/gpack/travian_default/img/msg/block_bg23.gif b/gpack/travian_default/img/msg/block_bg23.gif new file mode 100644 index 00000000..206e2d69 Binary files /dev/null and b/gpack/travian_default/img/msg/block_bg23.gif differ diff --git a/gpack/travian_default/img/msg/block_bg25.gif b/gpack/travian_default/img/msg/block_bg25.gif new file mode 100644 index 00000000..e202ccdb Binary files /dev/null and b/gpack/travian_default/img/msg/block_bg25.gif differ diff --git a/gpack/travian_default/img/msg/line.gif b/gpack/travian_default/img/msg/line.gif new file mode 100644 index 00000000..f910ed3a Binary files /dev/null and b/gpack/travian_default/img/msg/line.gif differ diff --git a/gpack/travian_default/img/msg/underline.gif b/gpack/travian_default/img/msg/underline.gif new file mode 100644 index 00000000..806bd5b1 Binary files /dev/null and b/gpack/travian_default/img/msg/underline.gif differ diff --git a/gpack/travian_default/img/new/Thumbs.db b/gpack/travian_default/img/new/Thumbs.db new file mode 100644 index 00000000..31f2ec6c Binary files /dev/null and b/gpack/travian_default/img/new/Thumbs.db differ diff --git a/gpack/travian_default/img/new/adr.png b/gpack/travian_default/img/new/adr.png new file mode 100644 index 00000000..d5bb4a7c Binary files /dev/null and b/gpack/travian_default/img/new/adr.png differ diff --git a/gpack/travian_default/img/new/anl.png b/gpack/travian_default/img/new/anl.png new file mode 100644 index 00000000..627a1859 Binary files /dev/null and b/gpack/travian_default/img/new/anl.png differ diff --git a/gpack/travian_default/img/new/background.png b/gpack/travian_default/img/new/background.png new file mode 100644 index 00000000..33780d6d Binary files /dev/null and b/gpack/travian_default/img/new/background.png differ diff --git a/gpack/travian_default/img/new/background_a2b.png b/gpack/travian_default/img/new/background_a2b.png new file mode 100644 index 00000000..38fc16b5 Binary files /dev/null and b/gpack/travian_default/img/new/background_a2b.png differ diff --git a/gpack/travian_default/img/new/background_alliance_name.png b/gpack/travian_default/img/new/background_alliance_name.png new file mode 100644 index 00000000..2944f0a0 Binary files /dev/null and b/gpack/travian_default/img/new/background_alliance_name.png differ diff --git a/gpack/travian_default/img/new/background_map.png b/gpack/travian_default/img/new/background_map.png new file mode 100644 index 00000000..ad9be36e Binary files /dev/null and b/gpack/travian_default/img/new/background_map.png differ diff --git a/gpack/travian_default/img/new/background_messages.png b/gpack/travian_default/img/new/background_messages.png new file mode 100644 index 00000000..0a47d30e Binary files /dev/null and b/gpack/travian_default/img/new/background_messages.png differ diff --git a/gpack/travian_default/img/new/background_plus.png b/gpack/travian_default/img/new/background_plus.png new file mode 100644 index 00000000..bd059cac Binary files /dev/null and b/gpack/travian_default/img/new/background_plus.png differ diff --git a/gpack/travian_default/img/new/background_reports.png b/gpack/travian_default/img/new/background_reports.png new file mode 100644 index 00000000..ccc02b96 Binary files /dev/null and b/gpack/travian_default/img/new/background_reports.png differ diff --git a/gpack/travian_default/img/new/background_settings.png b/gpack/travian_default/img/new/background_settings.png new file mode 100644 index 00000000..95661a0e Binary files /dev/null and b/gpack/travian_default/img/new/background_settings.png differ diff --git a/gpack/travian_default/img/new/background_statistics.png b/gpack/travian_default/img/new/background_statistics.png new file mode 100644 index 00000000..98def54d Binary files /dev/null and b/gpack/travian_default/img/new/background_statistics.png differ diff --git a/gpack/travian_default/img/new/background_village_name.png b/gpack/travian_default/img/new/background_village_name.png new file mode 100644 index 00000000..a2af32a4 Binary files /dev/null and b/gpack/travian_default/img/new/background_village_name.png differ diff --git a/gpack/travian_default/img/new/background_warsim.png b/gpack/travian_default/img/new/background_warsim.png new file mode 100644 index 00000000..38a09cc8 Binary files /dev/null and b/gpack/travian_default/img/new/background_warsim.png differ diff --git a/gpack/travian_default/img/new/bb_buttons.png b/gpack/travian_default/img/new/bb_buttons.png new file mode 100644 index 00000000..1d17e39e Binary files /dev/null and b/gpack/travian_default/img/new/bb_buttons.png differ diff --git a/gpack/travian_default/img/new/building_border.png b/gpack/travian_default/img/new/building_border.png new file mode 100644 index 00000000..af8493c6 Binary files /dev/null and b/gpack/travian_default/img/new/building_border.png differ diff --git a/gpack/travian_default/img/new/c2.gif b/gpack/travian_default/img/new/c2.gif new file mode 100644 index 00000000..f96a0168 Binary files /dev/null and b/gpack/travian_default/img/new/c2.gif differ diff --git a/gpack/travian_default/img/new/cancel.gif b/gpack/travian_default/img/new/cancel.gif new file mode 100644 index 00000000..f36b098a Binary files /dev/null and b/gpack/travian_default/img/new/cancel.gif differ diff --git a/gpack/travian_default/img/new/clay_border.png b/gpack/travian_default/img/new/clay_border.png new file mode 100644 index 00000000..f5684887 Binary files /dev/null and b/gpack/travian_default/img/new/clay_border.png differ diff --git a/gpack/travian_default/img/new/clock.gif b/gpack/travian_default/img/new/clock.gif new file mode 100644 index 00000000..1fb0ea1e Binary files /dev/null and b/gpack/travian_default/img/new/clock.gif differ diff --git a/gpack/travian_default/img/new/closed.png b/gpack/travian_default/img/new/closed.png new file mode 100644 index 00000000..ac2d92eb Binary files /dev/null and b/gpack/travian_default/img/new/closed.png differ diff --git a/gpack/travian_default/img/new/crop_border.png b/gpack/travian_default/img/new/crop_border.png new file mode 100644 index 00000000..2a19bfa2 Binary files /dev/null and b/gpack/travian_default/img/new/crop_border.png differ diff --git a/gpack/travian_default/img/new/def.png b/gpack/travian_default/img/new/def.png new file mode 100644 index 00000000..4100942d Binary files /dev/null and b/gpack/travian_default/img/new/def.png differ diff --git a/gpack/travian_default/img/new/ff.png b/gpack/travian_default/img/new/ff.png new file mode 100644 index 00000000..018ff74e Binary files /dev/null and b/gpack/travian_default/img/new/ff.png differ diff --git a/gpack/travian_default/img/new/footer.png b/gpack/travian_default/img/new/footer.png new file mode 100644 index 00000000..e026f883 Binary files /dev/null and b/gpack/travian_default/img/new/footer.png differ diff --git a/gpack/travian_default/img/new/g22.gif b/gpack/travian_default/img/new/g22.gif new file mode 100644 index 00000000..4644eca6 Binary files /dev/null and b/gpack/travian_default/img/new/g22.gif differ diff --git a/gpack/travian_default/img/new/gaulwall_border.png b/gpack/travian_default/img/new/gaulwall_border.png new file mode 100644 index 00000000..ae314d85 Binary files /dev/null and b/gpack/travian_default/img/new/gaulwall_border.png differ diff --git a/gpack/travian_default/img/new/glvl.gif b/gpack/travian_default/img/new/glvl.gif new file mode 100644 index 00000000..e29c346e Binary files /dev/null and b/gpack/travian_default/img/new/glvl.gif differ diff --git a/gpack/travian_default/img/new/gold.gif b/gpack/travian_default/img/new/gold.gif new file mode 100644 index 00000000..33ea8834 Binary files /dev/null and b/gpack/travian_default/img/new/gold.gif differ diff --git a/gpack/travian_default/img/new/gold_g.gif b/gpack/travian_default/img/new/gold_g.gif new file mode 100644 index 00000000..b70183da Binary files /dev/null and b/gpack/travian_default/img/new/gold_g.gif differ diff --git a/gpack/travian_default/img/new/gp.png b/gpack/travian_default/img/new/gp.png new file mode 100644 index 00000000..89b2807d Binary files /dev/null and b/gpack/travian_default/img/new/gp.png differ diff --git a/gpack/travian_default/img/new/header-gold-grad.png b/gpack/travian_default/img/new/header-gold-grad.png new file mode 100644 index 00000000..ba0b3843 Binary files /dev/null and b/gpack/travian_default/img/new/header-gold-grad.png differ diff --git a/gpack/travian_default/img/new/header-grad.gif b/gpack/travian_default/img/new/header-grad.gif new file mode 100644 index 00000000..0c0d50ff Binary files /dev/null and b/gpack/travian_default/img/new/header-grad.gif differ diff --git a/gpack/travian_default/img/new/header-line.png b/gpack/travian_default/img/new/header-line.png new file mode 100644 index 00000000..c7d90746 Binary files /dev/null and b/gpack/travian_default/img/new/header-line.png differ diff --git a/gpack/travian_default/img/new/header.png b/gpack/travian_default/img/new/header.png new file mode 100644 index 00000000..44ebce32 Binary files /dev/null and b/gpack/travian_default/img/new/header.png differ diff --git a/gpack/travian_default/img/new/ie.png b/gpack/travian_default/img/new/ie.png new file mode 100644 index 00000000..eda81f09 Binary files /dev/null and b/gpack/travian_default/img/new/ie.png differ diff --git a/gpack/travian_default/img/new/iron_border.png b/gpack/travian_default/img/new/iron_border.png new file mode 100644 index 00000000..01a0697d Binary files /dev/null and b/gpack/travian_default/img/new/iron_border.png differ diff --git a/gpack/travian_default/img/new/level.png b/gpack/travian_default/img/new/level.png new file mode 100644 index 00000000..916fb72b Binary files /dev/null and b/gpack/travian_default/img/new/level.png differ diff --git a/gpack/travian_default/img/new/menu.png b/gpack/travian_default/img/new/menu.png new file mode 100644 index 00000000..69c6dd88 Binary files /dev/null and b/gpack/travian_default/img/new/menu.png differ diff --git a/gpack/travian_default/img/new/minus.png b/gpack/travian_default/img/new/minus.png new file mode 100644 index 00000000..91dd390d Binary files /dev/null and b/gpack/travian_default/img/new/minus.png differ diff --git a/gpack/travian_default/img/new/navi1.png b/gpack/travian_default/img/new/navi1.png new file mode 100644 index 00000000..e030549d Binary files /dev/null and b/gpack/travian_default/img/new/navi1.png differ diff --git a/gpack/travian_default/img/new/navi2.png b/gpack/travian_default/img/new/navi2.png new file mode 100644 index 00000000..eb41d35b Binary files /dev/null and b/gpack/travian_default/img/new/navi2.png differ diff --git a/gpack/travian_default/img/new/navi3.png b/gpack/travian_default/img/new/navi3.png new file mode 100644 index 00000000..4f11a963 Binary files /dev/null and b/gpack/travian_default/img/new/navi3.png differ diff --git a/gpack/travian_default/img/new/navi4.png b/gpack/travian_default/img/new/navi4.png new file mode 100644 index 00000000..29fc8a50 Binary files /dev/null and b/gpack/travian_default/img/new/navi4.png differ diff --git a/gpack/travian_default/img/new/navi5.png b/gpack/travian_default/img/new/navi5.png new file mode 100644 index 00000000..48e38813 Binary files /dev/null and b/gpack/travian_default/img/new/navi5.png differ diff --git a/gpack/travian_default/img/new/npc.png b/gpack/travian_default/img/new/npc.png new file mode 100644 index 00000000..1103a3fc Binary files /dev/null and b/gpack/travian_default/img/new/npc.png differ diff --git a/gpack/travian_default/img/new/off.png b/gpack/travian_default/img/new/off.png new file mode 100644 index 00000000..cf8c6c76 Binary files /dev/null and b/gpack/travian_default/img/new/off.png differ diff --git a/gpack/travian_default/img/new/opened.png b/gpack/travian_default/img/new/opened.png new file mode 100644 index 00000000..f7ea6cbe Binary files /dev/null and b/gpack/travian_default/img/new/opened.png differ diff --git a/gpack/travian_default/img/new/opera.png b/gpack/travian_default/img/new/opera.png new file mode 100644 index 00000000..a7ec2885 Binary files /dev/null and b/gpack/travian_default/img/new/opera.png differ diff --git a/gpack/travian_default/img/new/plus.png b/gpack/travian_default/img/new/plus.png new file mode 100644 index 00000000..dd0b5ca8 Binary files /dev/null and b/gpack/travian_default/img/new/plus.png differ diff --git a/gpack/travian_default/img/new/rallypoint_border.png b/gpack/travian_default/img/new/rallypoint_border.png new file mode 100644 index 00000000..25365b29 Binary files /dev/null and b/gpack/travian_default/img/new/rallypoint_border.png differ diff --git a/gpack/travian_default/img/new/romanwall_border.png b/gpack/travian_default/img/new/romanwall_border.png new file mode 100644 index 00000000..86b705ca Binary files /dev/null and b/gpack/travian_default/img/new/romanwall_border.png differ diff --git a/gpack/travian_default/img/new/switch_levels.png b/gpack/travian_default/img/new/switch_levels.png new file mode 100644 index 00000000..b5f5a83a Binary files /dev/null and b/gpack/travian_default/img/new/switch_levels.png differ diff --git a/gpack/travian_default/img/new/teutonwall_border.png b/gpack/travian_default/img/new/teutonwall_border.png new file mode 100644 index 00000000..6696e721 Binary files /dev/null and b/gpack/travian_default/img/new/teutonwall_border.png differ diff --git a/gpack/travian_default/img/new/textmenu.gif b/gpack/travian_default/img/new/textmenu.gif new file mode 100644 index 00000000..7b47f3e8 Binary files /dev/null and b/gpack/travian_default/img/new/textmenu.gif differ diff --git a/gpack/travian_default/img/new/tick.png b/gpack/travian_default/img/new/tick.png new file mode 100644 index 00000000..7d0c48b7 Binary files /dev/null and b/gpack/travian_default/img/new/tick.png differ diff --git a/gpack/travian_default/img/new/top10.png b/gpack/travian_default/img/new/top10.png new file mode 100644 index 00000000..8d6affc7 Binary files /dev/null and b/gpack/travian_default/img/new/top10.png differ diff --git a/gpack/travian_default/img/new/white.gif b/gpack/travian_default/img/new/white.gif new file mode 100644 index 00000000..5715b4b1 Binary files /dev/null and b/gpack/travian_default/img/new/white.gif differ diff --git a/gpack/travian_default/img/new/wood_border.png b/gpack/travian_default/img/new/wood_border.png new file mode 100644 index 00000000..697970e4 Binary files /dev/null and b/gpack/travian_default/img/new/wood_border.png differ diff --git a/gpack/travian_default/img/new/worldcup_background.png b/gpack/travian_default/img/new/worldcup_background.png new file mode 100644 index 00000000..83432687 Binary files /dev/null and b/gpack/travian_default/img/new/worldcup_background.png differ diff --git a/gpack/travian_default/img/p/Thumbs.db b/gpack/travian_default/img/p/Thumbs.db new file mode 100644 index 00000000..ae97754b Binary files /dev/null and b/gpack/travian_default/img/p/Thumbs.db differ diff --git a/gpack/travian_default/img/p/attack_marker.gif b/gpack/travian_default/img/p/attack_marker.gif new file mode 100644 index 00000000..71a10984 Binary files /dev/null and b/gpack/travian_default/img/p/attack_marker.gif differ diff --git a/gpack/travian_default/img/p/bau0.jpg b/gpack/travian_default/img/p/bau0.jpg new file mode 100644 index 00000000..091a6457 Binary files /dev/null and b/gpack/travian_default/img/p/bau0.jpg differ diff --git a/gpack/travian_default/img/p/def10.jpg b/gpack/travian_default/img/p/def10.jpg new file mode 100644 index 00000000..15b8a644 Binary files /dev/null and b/gpack/travian_default/img/p/def10.jpg differ diff --git a/gpack/travian_default/img/p/npc.jpg b/gpack/travian_default/img/p/npc.jpg new file mode 100644 index 00000000..6be65475 Binary files /dev/null and b/gpack/travian_default/img/p/npc.jpg differ diff --git a/gpack/travian_default/img/p/off10.jpg b/gpack/travian_default/img/p/off10.jpg new file mode 100644 index 00000000..9d52bf40 Binary files /dev/null and b/gpack/travian_default/img/p/off10.jpg differ diff --git a/gpack/travian_default/img/p/p1_25.jpg b/gpack/travian_default/img/p/p1_25.jpg new file mode 100644 index 00000000..f2f87e11 Binary files /dev/null and b/gpack/travian_default/img/p/p1_25.jpg differ diff --git a/gpack/travian_default/img/p/p2_25.jpg b/gpack/travian_default/img/p/p2_25.jpg new file mode 100644 index 00000000..7acc6e5c Binary files /dev/null and b/gpack/travian_default/img/p/p2_25.jpg differ diff --git a/gpack/travian_default/img/p/p3_25.jpg b/gpack/travian_default/img/p/p3_25.jpg new file mode 100644 index 00000000..8a56fc13 Binary files /dev/null and b/gpack/travian_default/img/p/p3_25.jpg differ diff --git a/gpack/travian_default/img/p/p4_25.jpg b/gpack/travian_default/img/p/p4_25.jpg new file mode 100644 index 00000000..447ed779 Binary files /dev/null and b/gpack/travian_default/img/p/p4_25.jpg differ diff --git a/gpack/travian_default/img/q/Thumbs.db b/gpack/travian_default/img/q/Thumbs.db new file mode 100644 index 00000000..6e8f57b7 Binary files /dev/null and b/gpack/travian_default/img/q/Thumbs.db differ diff --git a/gpack/travian_default/img/q/allres.jpg b/gpack/travian_default/img/q/allres.jpg new file mode 100644 index 00000000..aeada472 Binary files /dev/null and b/gpack/travian_default/img/q/allres.jpg differ diff --git a/gpack/travian_default/img/q/army.jpg b/gpack/travian_default/img/q/army.jpg new file mode 100644 index 00000000..8723b991 Binary files /dev/null and b/gpack/travian_default/img/q/army.jpg differ diff --git a/gpack/travian_default/img/q/barracks.jpg b/gpack/travian_default/img/q/barracks.jpg new file mode 100644 index 00000000..183c84bc Binary files /dev/null and b/gpack/travian_default/img/q/barracks.jpg differ diff --git a/gpack/travian_default/img/q/clay_iron.jpg b/gpack/travian_default/img/q/clay_iron.jpg new file mode 100644 index 00000000..93cf5ba9 Binary files /dev/null and b/gpack/travian_default/img/q/clay_iron.jpg differ diff --git a/gpack/travian_default/img/q/cost.jpg b/gpack/travian_default/img/q/cost.jpg new file mode 100644 index 00000000..a52b6382 Binary files /dev/null and b/gpack/travian_default/img/q/cost.jpg differ diff --git a/gpack/travian_default/img/q/farm.jpg b/gpack/travian_default/img/q/farm.jpg new file mode 100644 index 00000000..e215127d Binary files /dev/null and b/gpack/travian_default/img/q/farm.jpg differ diff --git a/gpack/travian_default/img/q/granary_rally.jpg b/gpack/travian_default/img/q/granary_rally.jpg new file mode 100644 index 00000000..7820994b Binary files /dev/null and b/gpack/travian_default/img/q/granary_rally.jpg differ diff --git a/gpack/travian_default/img/q/hide.jpg b/gpack/travian_default/img/q/hide.jpg new file mode 100644 index 00000000..4bc7d48e Binary files /dev/null and b/gpack/travian_default/img/q/hide.jpg differ diff --git a/gpack/travian_default/img/q/intro.jpg b/gpack/travian_default/img/q/intro.jpg new file mode 100644 index 00000000..46f8a0c0 Binary files /dev/null and b/gpack/travian_default/img/q/intro.jpg differ diff --git a/gpack/travian_default/img/q/l1.jpg b/gpack/travian_default/img/q/l1.jpg new file mode 100644 index 00000000..05a87836 Binary files /dev/null and b/gpack/travian_default/img/q/l1.jpg differ diff --git a/gpack/travian_default/img/q/l1g.jpg b/gpack/travian_default/img/q/l1g.jpg new file mode 100644 index 00000000..ce9eca3d Binary files /dev/null and b/gpack/travian_default/img/q/l1g.jpg differ diff --git a/gpack/travian_default/img/q/l2.jpg b/gpack/travian_default/img/q/l2.jpg new file mode 100644 index 00000000..adfc12a8 Binary files /dev/null and b/gpack/travian_default/img/q/l2.jpg differ diff --git a/gpack/travian_default/img/q/l2g.jpg b/gpack/travian_default/img/q/l2g.jpg new file mode 100644 index 00000000..0c05eedd Binary files /dev/null and b/gpack/travian_default/img/q/l2g.jpg differ diff --git a/gpack/travian_default/img/q/l3.jpg b/gpack/travian_default/img/q/l3.jpg new file mode 100644 index 00000000..cb8e4882 Binary files /dev/null and b/gpack/travian_default/img/q/l3.jpg differ diff --git a/gpack/travian_default/img/q/l3g.jpg b/gpack/travian_default/img/q/l3g.jpg new file mode 100644 index 00000000..afcef5d5 Binary files /dev/null and b/gpack/travian_default/img/q/l3g.jpg differ diff --git a/gpack/travian_default/img/q/main.jpg b/gpack/travian_default/img/q/main.jpg new file mode 100644 index 00000000..a9d047f4 Binary files /dev/null and b/gpack/travian_default/img/q/main.jpg differ diff --git a/gpack/travian_default/img/q/market.jpg b/gpack/travian_default/img/q/market.jpg new file mode 100644 index 00000000..d9b68ef9 Binary files /dev/null and b/gpack/travian_default/img/q/market.jpg differ diff --git a/gpack/travian_default/img/q/medal.jpg b/gpack/travian_default/img/q/medal.jpg new file mode 100644 index 00000000..664764a4 Binary files /dev/null and b/gpack/travian_default/img/q/medal.jpg differ diff --git a/gpack/travian_default/img/q/msg.jpg b/gpack/travian_default/img/q/msg.jpg new file mode 100644 index 00000000..1fc8fcae Binary files /dev/null and b/gpack/travian_default/img/q/msg.jpg differ diff --git a/gpack/travian_default/img/q/neighbour.jpg b/gpack/travian_default/img/q/neighbour.jpg new file mode 100644 index 00000000..7267febe Binary files /dev/null and b/gpack/travian_default/img/q/neighbour.jpg differ diff --git a/gpack/travian_default/img/q/new_village.jpg b/gpack/travian_default/img/q/new_village.jpg new file mode 100644 index 00000000..1f01b973 Binary files /dev/null and b/gpack/travian_default/img/q/new_village.jpg differ diff --git a/gpack/travian_default/img/q/rank.jpg b/gpack/travian_default/img/q/rank.jpg new file mode 100644 index 00000000..92704b4a Binary files /dev/null and b/gpack/travian_default/img/q/rank.jpg differ diff --git a/gpack/travian_default/img/q/units.jpg b/gpack/travian_default/img/q/units.jpg new file mode 100644 index 00000000..e240ff25 Binary files /dev/null and b/gpack/travian_default/img/q/units.jpg differ diff --git a/gpack/travian_default/img/q/village_name.jpg b/gpack/travian_default/img/q/village_name.jpg new file mode 100644 index 00000000..db957761 Binary files /dev/null and b/gpack/travian_default/img/q/village_name.jpg differ diff --git a/gpack/travian_default/img/q/warehouse.jpg b/gpack/travian_default/img/q/warehouse.jpg new file mode 100644 index 00000000..7d4f8159 Binary files /dev/null and b/gpack/travian_default/img/q/warehouse.jpg differ diff --git a/gpack/travian_default/img/q/wood.jpg b/gpack/travian_default/img/q/wood.jpg new file mode 100644 index 00000000..45915b01 Binary files /dev/null and b/gpack/travian_default/img/q/wood.jpg differ diff --git a/gpack/travian_default/img/r/1.gif b/gpack/travian_default/img/r/1.gif new file mode 100644 index 00000000..70ee8efb Binary files /dev/null and b/gpack/travian_default/img/r/1.gif differ diff --git a/gpack/travian_default/img/r/2.gif b/gpack/travian_default/img/r/2.gif new file mode 100644 index 00000000..55ef705a Binary files /dev/null and b/gpack/travian_default/img/r/2.gif differ diff --git a/gpack/travian_default/img/r/3.gif b/gpack/travian_default/img/r/3.gif new file mode 100644 index 00000000..9279abda Binary files /dev/null and b/gpack/travian_default/img/r/3.gif differ diff --git a/gpack/travian_default/img/r/4.gif b/gpack/travian_default/img/r/4.gif new file mode 100644 index 00000000..c75dbfe8 Binary files /dev/null and b/gpack/travian_default/img/r/4.gif differ diff --git a/gpack/travian_default/img/r/4b.gif b/gpack/travian_default/img/r/4b.gif new file mode 100644 index 00000000..a08e829c Binary files /dev/null and b/gpack/travian_default/img/r/4b.gif differ diff --git a/gpack/travian_default/img/r/5.gif b/gpack/travian_default/img/r/5.gif new file mode 100644 index 00000000..fc1550e5 Binary files /dev/null and b/gpack/travian_default/img/r/5.gif differ diff --git a/gpack/travian_default/img/r/5b.gif b/gpack/travian_default/img/r/5b.gif new file mode 100644 index 00000000..516c5c8f Binary files /dev/null and b/gpack/travian_default/img/r/5b.gif differ diff --git a/gpack/travian_default/img/r/6.gif b/gpack/travian_default/img/r/6.gif new file mode 100644 index 00000000..cf45c1cf Binary files /dev/null and b/gpack/travian_default/img/r/6.gif differ diff --git a/gpack/travian_default/img/r/7.gif b/gpack/travian_default/img/r/7.gif new file mode 100644 index 00000000..cf45c1cf Binary files /dev/null and b/gpack/travian_default/img/r/7.gif differ diff --git a/gpack/travian_default/img/r/Thumbs.db b/gpack/travian_default/img/r/Thumbs.db new file mode 100644 index 00000000..214fec01 Binary files /dev/null and b/gpack/travian_default/img/r/Thumbs.db differ diff --git a/gpack/travian_default/img/r/easter.gif b/gpack/travian_default/img/r/easter.gif new file mode 100644 index 00000000..fd6d6120 Binary files /dev/null and b/gpack/travian_default/img/r/easter.gif differ diff --git a/gpack/travian_default/img/r/newy.gif b/gpack/travian_default/img/r/newy.gif new file mode 100644 index 00000000..145d1bca Binary files /dev/null and b/gpack/travian_default/img/r/newy.gif differ diff --git a/gpack/travian_default/img/r/xmas.gif b/gpack/travian_default/img/r/xmas.gif new file mode 100644 index 00000000..5ede0dd1 Binary files /dev/null and b/gpack/travian_default/img/r/xmas.gif differ diff --git a/gpack/travian_default/img/s/Thumbs.db b/gpack/travian_default/img/s/Thumbs.db new file mode 100644 index 00000000..875133ea Binary files /dev/null and b/gpack/travian_default/img/s/Thumbs.db differ diff --git a/gpack/travian_default/img/s/def.gif b/gpack/travian_default/img/s/def.gif new file mode 100644 index 00000000..5a2b12ac Binary files /dev/null and b/gpack/travian_default/img/s/def.gif differ diff --git a/gpack/travian_default/img/s/off.gif b/gpack/travian_default/img/s/off.gif new file mode 100644 index 00000000..f8053850 Binary files /dev/null and b/gpack/travian_default/img/s/off.gif differ diff --git a/gpack/travian_default/img/s/top10.gif b/gpack/travian_default/img/s/top10.gif new file mode 100644 index 00000000..46f6f337 Binary files /dev/null and b/gpack/travian_default/img/s/top10.gif differ diff --git a/gpack/travian_default/img/s/v1.gif b/gpack/travian_default/img/s/v1.gif new file mode 100644 index 00000000..de2dc0f1 Binary files /dev/null and b/gpack/travian_default/img/s/v1.gif differ diff --git a/gpack/travian_default/img/s/v2.gif b/gpack/travian_default/img/s/v2.gif new file mode 100644 index 00000000..37a4aa54 Binary files /dev/null and b/gpack/travian_default/img/s/v2.gif differ diff --git a/gpack/travian_default/img/s/v3.gif b/gpack/travian_default/img/s/v3.gif new file mode 100644 index 00000000..37156878 Binary files /dev/null and b/gpack/travian_default/img/s/v3.gif differ diff --git a/gpack/travian_default/img/special/NewyearRocket_dark_1a.gif b/gpack/travian_default/img/special/NewyearRocket_dark_1a.gif new file mode 100644 index 00000000..4ec136dc Binary files /dev/null and b/gpack/travian_default/img/special/NewyearRocket_dark_1a.gif differ diff --git a/gpack/travian_default/img/special/NewyearRocket_green_1a.gif b/gpack/travian_default/img/special/NewyearRocket_green_1a.gif new file mode 100644 index 00000000..1b9a1ed6 Binary files /dev/null and b/gpack/travian_default/img/special/NewyearRocket_green_1a.gif differ diff --git a/gpack/travian_default/img/special/NewyearRocket_orange_1a.gif b/gpack/travian_default/img/special/NewyearRocket_orange_1a.gif new file mode 100644 index 00000000..6c081417 Binary files /dev/null and b/gpack/travian_default/img/special/NewyearRocket_orange_1a.gif differ diff --git a/gpack/travian_default/img/special/NewyearRocket_purple_1a.gif b/gpack/travian_default/img/special/NewyearRocket_purple_1a.gif new file mode 100644 index 00000000..215864f5 Binary files /dev/null and b/gpack/travian_default/img/special/NewyearRocket_purple_1a.gif differ diff --git a/gpack/travian_default/img/special/NewyearRocket_red_1a.gif b/gpack/travian_default/img/special/NewyearRocket_red_1a.gif new file mode 100644 index 00000000..9a768511 Binary files /dev/null and b/gpack/travian_default/img/special/NewyearRocket_red_1a.gif differ diff --git a/gpack/travian_default/img/special/NewyearRocket_turquoise_1a.gif b/gpack/travian_default/img/special/NewyearRocket_turquoise_1a.gif new file mode 100644 index 00000000..f3377290 Binary files /dev/null and b/gpack/travian_default/img/special/NewyearRocket_turquoise_1a.gif differ diff --git a/gpack/travian_default/img/special/NewyearRocket_yellow_1a.gif b/gpack/travian_default/img/special/NewyearRocket_yellow_1a.gif new file mode 100644 index 00000000..959c711c Binary files /dev/null and b/gpack/travian_default/img/special/NewyearRocket_yellow_1a.gif differ diff --git a/gpack/travian_default/img/special/Thumbs.db b/gpack/travian_default/img/special/Thumbs.db new file mode 100644 index 00000000..432083ca Binary files /dev/null and b/gpack/travian_default/img/special/Thumbs.db differ diff --git a/gpack/travian_default/img/t/Thumbs.db b/gpack/travian_default/img/t/Thumbs.db new file mode 100644 index 00000000..5791ad49 Binary files /dev/null and b/gpack/travian_default/img/t/Thumbs.db differ diff --git a/gpack/travian_default/img/t/a1_1.jpg b/gpack/travian_default/img/t/a1_1.jpg new file mode 100644 index 00000000..8fbdc944 Binary files /dev/null and b/gpack/travian_default/img/t/a1_1.jpg differ diff --git a/gpack/travian_default/img/t/a1_10.jpg b/gpack/travian_default/img/t/a1_10.jpg new file mode 100644 index 00000000..9b925863 Binary files /dev/null and b/gpack/travian_default/img/t/a1_10.jpg differ diff --git a/gpack/travian_default/img/t/a1_2.jpg b/gpack/travian_default/img/t/a1_2.jpg new file mode 100644 index 00000000..4c034256 Binary files /dev/null and b/gpack/travian_default/img/t/a1_2.jpg differ diff --git a/gpack/travian_default/img/t/a1_3.jpg b/gpack/travian_default/img/t/a1_3.jpg new file mode 100644 index 00000000..3a34e7e7 Binary files /dev/null and b/gpack/travian_default/img/t/a1_3.jpg differ diff --git a/gpack/travian_default/img/t/a1_4.jpg b/gpack/travian_default/img/t/a1_4.jpg new file mode 100644 index 00000000..ac16d2f9 Binary files /dev/null and b/gpack/travian_default/img/t/a1_4.jpg differ diff --git a/gpack/travian_default/img/t/a1_5.jpg b/gpack/travian_default/img/t/a1_5.jpg new file mode 100644 index 00000000..834c8b2a Binary files /dev/null and b/gpack/travian_default/img/t/a1_5.jpg differ diff --git a/gpack/travian_default/img/t/a1_6.jpg b/gpack/travian_default/img/t/a1_6.jpg new file mode 100644 index 00000000..d556a9c4 Binary files /dev/null and b/gpack/travian_default/img/t/a1_6.jpg differ diff --git a/gpack/travian_default/img/t/a1_7.jpg b/gpack/travian_default/img/t/a1_7.jpg new file mode 100644 index 00000000..d10bf7e8 Binary files /dev/null and b/gpack/travian_default/img/t/a1_7.jpg differ diff --git a/gpack/travian_default/img/t/a1_8.jpg b/gpack/travian_default/img/t/a1_8.jpg new file mode 100644 index 00000000..f2eefbd6 Binary files /dev/null and b/gpack/travian_default/img/t/a1_8.jpg differ diff --git a/gpack/travian_default/img/t/a1_9.jpg b/gpack/travian_default/img/t/a1_9.jpg new file mode 100644 index 00000000..87fef81b Binary files /dev/null and b/gpack/travian_default/img/t/a1_9.jpg differ diff --git a/gpack/travian_default/img/t/a2_1.jpg b/gpack/travian_default/img/t/a2_1.jpg new file mode 100644 index 00000000..1c33ee0f Binary files /dev/null and b/gpack/travian_default/img/t/a2_1.jpg differ diff --git a/gpack/travian_default/img/t/a2_10.jpg b/gpack/travian_default/img/t/a2_10.jpg new file mode 100644 index 00000000..b7c6168f Binary files /dev/null and b/gpack/travian_default/img/t/a2_10.jpg differ diff --git a/gpack/travian_default/img/t/a2_2.jpg b/gpack/travian_default/img/t/a2_2.jpg new file mode 100644 index 00000000..a20b9a75 Binary files /dev/null and b/gpack/travian_default/img/t/a2_2.jpg differ diff --git a/gpack/travian_default/img/t/a2_3.jpg b/gpack/travian_default/img/t/a2_3.jpg new file mode 100644 index 00000000..a2d4b45c Binary files /dev/null and b/gpack/travian_default/img/t/a2_3.jpg differ diff --git a/gpack/travian_default/img/t/a2_4.jpg b/gpack/travian_default/img/t/a2_4.jpg new file mode 100644 index 00000000..811e5860 Binary files /dev/null and b/gpack/travian_default/img/t/a2_4.jpg differ diff --git a/gpack/travian_default/img/t/a2_5.jpg b/gpack/travian_default/img/t/a2_5.jpg new file mode 100644 index 00000000..f116163a Binary files /dev/null and b/gpack/travian_default/img/t/a2_5.jpg differ diff --git a/gpack/travian_default/img/t/a2_6.jpg b/gpack/travian_default/img/t/a2_6.jpg new file mode 100644 index 00000000..66f8a167 Binary files /dev/null and b/gpack/travian_default/img/t/a2_6.jpg differ diff --git a/gpack/travian_default/img/t/a2_7.jpg b/gpack/travian_default/img/t/a2_7.jpg new file mode 100644 index 00000000..5ee666c9 Binary files /dev/null and b/gpack/travian_default/img/t/a2_7.jpg differ diff --git a/gpack/travian_default/img/t/a2_8.jpg b/gpack/travian_default/img/t/a2_8.jpg new file mode 100644 index 00000000..9af1bc16 Binary files /dev/null and b/gpack/travian_default/img/t/a2_8.jpg differ diff --git a/gpack/travian_default/img/t/a2_9.jpg b/gpack/travian_default/img/t/a2_9.jpg new file mode 100644 index 00000000..da8b69aa Binary files /dev/null and b/gpack/travian_default/img/t/a2_9.jpg differ diff --git a/gpack/travian_default/img/t/a3_1.jpg b/gpack/travian_default/img/t/a3_1.jpg new file mode 100644 index 00000000..422040e1 Binary files /dev/null and b/gpack/travian_default/img/t/a3_1.jpg differ diff --git a/gpack/travian_default/img/t/a3_10.jpg b/gpack/travian_default/img/t/a3_10.jpg new file mode 100644 index 00000000..1abebe6a Binary files /dev/null and b/gpack/travian_default/img/t/a3_10.jpg differ diff --git a/gpack/travian_default/img/t/a3_2.jpg b/gpack/travian_default/img/t/a3_2.jpg new file mode 100644 index 00000000..2719a03a Binary files /dev/null and b/gpack/travian_default/img/t/a3_2.jpg differ diff --git a/gpack/travian_default/img/t/a3_3.jpg b/gpack/travian_default/img/t/a3_3.jpg new file mode 100644 index 00000000..d358341f Binary files /dev/null and b/gpack/travian_default/img/t/a3_3.jpg differ diff --git a/gpack/travian_default/img/t/a3_4.jpg b/gpack/travian_default/img/t/a3_4.jpg new file mode 100644 index 00000000..fd8172c6 Binary files /dev/null and b/gpack/travian_default/img/t/a3_4.jpg differ diff --git a/gpack/travian_default/img/t/a3_5.jpg b/gpack/travian_default/img/t/a3_5.jpg new file mode 100644 index 00000000..eba8c885 Binary files /dev/null and b/gpack/travian_default/img/t/a3_5.jpg differ diff --git a/gpack/travian_default/img/t/a3_6.jpg b/gpack/travian_default/img/t/a3_6.jpg new file mode 100644 index 00000000..2d791b2e Binary files /dev/null and b/gpack/travian_default/img/t/a3_6.jpg differ diff --git a/gpack/travian_default/img/t/a3_7.jpg b/gpack/travian_default/img/t/a3_7.jpg new file mode 100644 index 00000000..d5089faa Binary files /dev/null and b/gpack/travian_default/img/t/a3_7.jpg differ diff --git a/gpack/travian_default/img/t/a3_8.jpg b/gpack/travian_default/img/t/a3_8.jpg new file mode 100644 index 00000000..e19418a7 Binary files /dev/null and b/gpack/travian_default/img/t/a3_8.jpg differ diff --git a/gpack/travian_default/img/t/a3_9.jpg b/gpack/travian_default/img/t/a3_9.jpg new file mode 100644 index 00000000..c65e263f Binary files /dev/null and b/gpack/travian_default/img/t/a3_9.jpg differ diff --git a/gpack/travian_default/img/t/a4_1.jpg b/gpack/travian_default/img/t/a4_1.jpg new file mode 100644 index 00000000..102ace33 Binary files /dev/null and b/gpack/travian_default/img/t/a4_1.jpg differ diff --git a/gpack/travian_default/img/t/a4_10.jpg b/gpack/travian_default/img/t/a4_10.jpg new file mode 100644 index 00000000..e8c28d45 Binary files /dev/null and b/gpack/travian_default/img/t/a4_10.jpg differ diff --git a/gpack/travian_default/img/t/a4_2.jpg b/gpack/travian_default/img/t/a4_2.jpg new file mode 100644 index 00000000..b0099d75 Binary files /dev/null and b/gpack/travian_default/img/t/a4_2.jpg differ diff --git a/gpack/travian_default/img/t/a4_3.jpg b/gpack/travian_default/img/t/a4_3.jpg new file mode 100644 index 00000000..b667b8be Binary files /dev/null and b/gpack/travian_default/img/t/a4_3.jpg differ diff --git a/gpack/travian_default/img/t/a4_4.jpg b/gpack/travian_default/img/t/a4_4.jpg new file mode 100644 index 00000000..de564994 Binary files /dev/null and b/gpack/travian_default/img/t/a4_4.jpg differ diff --git a/gpack/travian_default/img/t/a4_5.jpg b/gpack/travian_default/img/t/a4_5.jpg new file mode 100644 index 00000000..632c78ed Binary files /dev/null and b/gpack/travian_default/img/t/a4_5.jpg differ diff --git a/gpack/travian_default/img/t/a4_6.jpg b/gpack/travian_default/img/t/a4_6.jpg new file mode 100644 index 00000000..3c880e85 Binary files /dev/null and b/gpack/travian_default/img/t/a4_6.jpg differ diff --git a/gpack/travian_default/img/t/a4_7.jpg b/gpack/travian_default/img/t/a4_7.jpg new file mode 100644 index 00000000..d42a3edc Binary files /dev/null and b/gpack/travian_default/img/t/a4_7.jpg differ diff --git a/gpack/travian_default/img/t/a4_8.jpg b/gpack/travian_default/img/t/a4_8.jpg new file mode 100644 index 00000000..f9a676d7 Binary files /dev/null and b/gpack/travian_default/img/t/a4_8.jpg differ diff --git a/gpack/travian_default/img/t/a4_9.jpg b/gpack/travian_default/img/t/a4_9.jpg new file mode 100644 index 00000000..446fe9d7 Binary files /dev/null and b/gpack/travian_default/img/t/a4_9.jpg differ diff --git a/gpack/travian_default/img/t/t100_1.jpg b/gpack/travian_default/img/t/t100_1.jpg new file mode 100644 index 00000000..d01f7473 Binary files /dev/null and b/gpack/travian_default/img/t/t100_1.jpg differ diff --git a/gpack/travian_default/img/t/t101_1.jpg b/gpack/travian_default/img/t/t101_1.jpg new file mode 100644 index 00000000..48f563f3 Binary files /dev/null and b/gpack/travian_default/img/t/t101_1.jpg differ diff --git a/gpack/travian_default/img/t/t102_1.jpg b/gpack/travian_default/img/t/t102_1.jpg new file mode 100644 index 00000000..d04729e0 Binary files /dev/null and b/gpack/travian_default/img/t/t102_1.jpg differ diff --git a/gpack/travian_default/img/t/t10_1.jpg b/gpack/travian_default/img/t/t10_1.jpg new file mode 100644 index 00000000..6df932ef Binary files /dev/null and b/gpack/travian_default/img/t/t10_1.jpg differ diff --git a/gpack/travian_default/img/t/t10_2.jpg b/gpack/travian_default/img/t/t10_2.jpg new file mode 100644 index 00000000..ae0faf1d Binary files /dev/null and b/gpack/travian_default/img/t/t10_2.jpg differ diff --git a/gpack/travian_default/img/t/t110_1.jpg b/gpack/travian_default/img/t/t110_1.jpg new file mode 100644 index 00000000..e6941bb4 Binary files /dev/null and b/gpack/travian_default/img/t/t110_1.jpg differ diff --git a/gpack/travian_default/img/t/t111_1.jpg b/gpack/travian_default/img/t/t111_1.jpg new file mode 100644 index 00000000..c37c0dcd Binary files /dev/null and b/gpack/travian_default/img/t/t111_1.jpg differ diff --git a/gpack/travian_default/img/t/t112_1.jpg b/gpack/travian_default/img/t/t112_1.jpg new file mode 100644 index 00000000..4797a1e6 Binary files /dev/null and b/gpack/travian_default/img/t/t112_1.jpg differ diff --git a/gpack/travian_default/img/t/t120_1.jpg b/gpack/travian_default/img/t/t120_1.jpg new file mode 100644 index 00000000..9da7cc6c Binary files /dev/null and b/gpack/travian_default/img/t/t120_1.jpg differ diff --git a/gpack/travian_default/img/t/t121_1.jpg b/gpack/travian_default/img/t/t121_1.jpg new file mode 100644 index 00000000..d35a45aa Binary files /dev/null and b/gpack/travian_default/img/t/t121_1.jpg differ diff --git a/gpack/travian_default/img/t/t122_1.jpg b/gpack/travian_default/img/t/t122_1.jpg new file mode 100644 index 00000000..3733eb61 Binary files /dev/null and b/gpack/travian_default/img/t/t122_1.jpg differ diff --git a/gpack/travian_default/img/t/t130_1.jpg b/gpack/travian_default/img/t/t130_1.jpg new file mode 100644 index 00000000..6096a479 Binary files /dev/null and b/gpack/travian_default/img/t/t130_1.jpg differ diff --git a/gpack/travian_default/img/t/t131_1.jpg b/gpack/travian_default/img/t/t131_1.jpg new file mode 100644 index 00000000..bb7e833b Binary files /dev/null and b/gpack/travian_default/img/t/t131_1.jpg differ diff --git a/gpack/travian_default/img/t/t132_1.jpg b/gpack/travian_default/img/t/t132_1.jpg new file mode 100644 index 00000000..08dca00c Binary files /dev/null and b/gpack/travian_default/img/t/t132_1.jpg differ diff --git a/gpack/travian_default/img/t/t140_1.jpg b/gpack/travian_default/img/t/t140_1.jpg new file mode 100644 index 00000000..35456ba1 Binary files /dev/null and b/gpack/travian_default/img/t/t140_1.jpg differ diff --git a/gpack/travian_default/img/t/t141_1.jpg b/gpack/travian_default/img/t/t141_1.jpg new file mode 100644 index 00000000..9771e772 Binary files /dev/null and b/gpack/travian_default/img/t/t141_1.jpg differ diff --git a/gpack/travian_default/img/t/t142_1.jpg b/gpack/travian_default/img/t/t142_1.jpg new file mode 100644 index 00000000..b0dd21f3 Binary files /dev/null and b/gpack/travian_default/img/t/t142_1.jpg differ diff --git a/gpack/travian_default/img/t/t150_1.jpg b/gpack/travian_default/img/t/t150_1.jpg new file mode 100644 index 00000000..ce60e233 Binary files /dev/null and b/gpack/travian_default/img/t/t150_1.jpg differ diff --git a/gpack/travian_default/img/t/t151_1.jpg b/gpack/travian_default/img/t/t151_1.jpg new file mode 100644 index 00000000..746057e1 Binary files /dev/null and b/gpack/travian_default/img/t/t151_1.jpg differ diff --git a/gpack/travian_default/img/t/t152_1.jpg b/gpack/travian_default/img/t/t152_1.jpg new file mode 100644 index 00000000..61576a53 Binary files /dev/null and b/gpack/travian_default/img/t/t152_1.jpg differ diff --git a/gpack/travian_default/img/t/t160_1.jpg b/gpack/travian_default/img/t/t160_1.jpg new file mode 100644 index 00000000..1a209c75 Binary files /dev/null and b/gpack/travian_default/img/t/t160_1.jpg differ diff --git a/gpack/travian_default/img/t/t161_1.jpg b/gpack/travian_default/img/t/t161_1.jpg new file mode 100644 index 00000000..63c81b7e Binary files /dev/null and b/gpack/travian_default/img/t/t161_1.jpg differ diff --git a/gpack/travian_default/img/t/t162_1.jpg b/gpack/travian_default/img/t/t162_1.jpg new file mode 100644 index 00000000..cf68805a Binary files /dev/null and b/gpack/travian_default/img/t/t162_1.jpg differ diff --git a/gpack/travian_default/img/t/t170_1.jpg b/gpack/travian_default/img/t/t170_1.jpg new file mode 100644 index 00000000..d2912d16 Binary files /dev/null and b/gpack/travian_default/img/t/t170_1.jpg differ diff --git a/gpack/travian_default/img/t/t171_1.jpg b/gpack/travian_default/img/t/t171_1.jpg new file mode 100644 index 00000000..cc2c018d Binary files /dev/null and b/gpack/travian_default/img/t/t171_1.jpg differ diff --git a/gpack/travian_default/img/t/t172_1.jpg b/gpack/travian_default/img/t/t172_1.jpg new file mode 100644 index 00000000..c84d7c79 Binary files /dev/null and b/gpack/travian_default/img/t/t172_1.jpg differ diff --git a/gpack/travian_default/img/t/t180_1.jpg b/gpack/travian_default/img/t/t180_1.jpg new file mode 100644 index 00000000..26a13e53 Binary files /dev/null and b/gpack/travian_default/img/t/t180_1.jpg differ diff --git a/gpack/travian_default/img/t/t181_1.jpg b/gpack/travian_default/img/t/t181_1.jpg new file mode 100644 index 00000000..506f02eb Binary files /dev/null and b/gpack/travian_default/img/t/t181_1.jpg differ diff --git a/gpack/travian_default/img/t/t182_1.jpg b/gpack/travian_default/img/t/t182_1.jpg new file mode 100644 index 00000000..84b8582b Binary files /dev/null and b/gpack/travian_default/img/t/t182_1.jpg differ diff --git a/gpack/travian_default/img/t/t190_1.jpg b/gpack/travian_default/img/t/t190_1.jpg new file mode 100644 index 00000000..5804cd1e Binary files /dev/null and b/gpack/travian_default/img/t/t190_1.jpg differ diff --git a/gpack/travian_default/img/t/t191_1.jpg b/gpack/travian_default/img/t/t191_1.jpg new file mode 100644 index 00000000..9e87e8b5 Binary files /dev/null and b/gpack/travian_default/img/t/t191_1.jpg differ diff --git a/gpack/travian_default/img/t/t192_1.jpg b/gpack/travian_default/img/t/t192_1.jpg new file mode 100644 index 00000000..48e9a2b0 Binary files /dev/null and b/gpack/travian_default/img/t/t192_1.jpg differ diff --git a/gpack/travian_default/img/t/t1_1.jpg b/gpack/travian_default/img/t/t1_1.jpg new file mode 100644 index 00000000..53e09ec6 Binary files /dev/null and b/gpack/travian_default/img/t/t1_1.jpg differ diff --git a/gpack/travian_default/img/t/t1_10.jpg b/gpack/travian_default/img/t/t1_10.jpg new file mode 100644 index 00000000..82a37e15 Binary files /dev/null and b/gpack/travian_default/img/t/t1_10.jpg differ diff --git a/gpack/travian_default/img/t/t1_2.jpg b/gpack/travian_default/img/t/t1_2.jpg new file mode 100644 index 00000000..9dd1ed1a Binary files /dev/null and b/gpack/travian_default/img/t/t1_2.jpg differ diff --git a/gpack/travian_default/img/t/t1_3.jpg b/gpack/travian_default/img/t/t1_3.jpg new file mode 100644 index 00000000..7b7b4499 Binary files /dev/null and b/gpack/travian_default/img/t/t1_3.jpg differ diff --git a/gpack/travian_default/img/t/t1_4.jpg b/gpack/travian_default/img/t/t1_4.jpg new file mode 100644 index 00000000..9392805a Binary files /dev/null and b/gpack/travian_default/img/t/t1_4.jpg differ diff --git a/gpack/travian_default/img/t/t1_5.jpg b/gpack/travian_default/img/t/t1_5.jpg new file mode 100644 index 00000000..0904bac1 Binary files /dev/null and b/gpack/travian_default/img/t/t1_5.jpg differ diff --git a/gpack/travian_default/img/t/t1_6.jpg b/gpack/travian_default/img/t/t1_6.jpg new file mode 100644 index 00000000..09b0cb6a Binary files /dev/null and b/gpack/travian_default/img/t/t1_6.jpg differ diff --git a/gpack/travian_default/img/t/t1_7.jpg b/gpack/travian_default/img/t/t1_7.jpg new file mode 100644 index 00000000..176890b3 Binary files /dev/null and b/gpack/travian_default/img/t/t1_7.jpg differ diff --git a/gpack/travian_default/img/t/t1_8.jpg b/gpack/travian_default/img/t/t1_8.jpg new file mode 100644 index 00000000..5ace2435 Binary files /dev/null and b/gpack/travian_default/img/t/t1_8.jpg differ diff --git a/gpack/travian_default/img/t/t1_9.jpg b/gpack/travian_default/img/t/t1_9.jpg new file mode 100644 index 00000000..e4d17ad1 Binary files /dev/null and b/gpack/travian_default/img/t/t1_9.jpg differ diff --git a/gpack/travian_default/img/t/t200_1.jpg b/gpack/travian_default/img/t/t200_1.jpg new file mode 100644 index 00000000..8a094c95 Binary files /dev/null and b/gpack/travian_default/img/t/t200_1.jpg differ diff --git a/gpack/travian_default/img/t/t201_1.jpg b/gpack/travian_default/img/t/t201_1.jpg new file mode 100644 index 00000000..a123f18f Binary files /dev/null and b/gpack/travian_default/img/t/t201_1.jpg differ diff --git a/gpack/travian_default/img/t/t202_1.jpg b/gpack/travian_default/img/t/t202_1.jpg new file mode 100644 index 00000000..d2d5d710 Binary files /dev/null and b/gpack/travian_default/img/t/t202_1.jpg differ diff --git a/gpack/travian_default/img/t/t210_1.jpg b/gpack/travian_default/img/t/t210_1.jpg new file mode 100644 index 00000000..cebec4aa Binary files /dev/null and b/gpack/travian_default/img/t/t210_1.jpg differ diff --git a/gpack/travian_default/img/t/t211_1.jpg b/gpack/travian_default/img/t/t211_1.jpg new file mode 100644 index 00000000..fbba206b Binary files /dev/null and b/gpack/travian_default/img/t/t211_1.jpg differ diff --git a/gpack/travian_default/img/t/t212_1.jpg b/gpack/travian_default/img/t/t212_1.jpg new file mode 100644 index 00000000..88bedd3b Binary files /dev/null and b/gpack/travian_default/img/t/t212_1.jpg differ diff --git a/gpack/travian_default/img/t/t220_1.jpg b/gpack/travian_default/img/t/t220_1.jpg new file mode 100644 index 00000000..2f579bea Binary files /dev/null and b/gpack/travian_default/img/t/t220_1.jpg differ diff --git a/gpack/travian_default/img/t/t221_1.jpg b/gpack/travian_default/img/t/t221_1.jpg new file mode 100644 index 00000000..f78ba188 Binary files /dev/null and b/gpack/travian_default/img/t/t221_1.jpg differ diff --git a/gpack/travian_default/img/t/t222_1.jpg b/gpack/travian_default/img/t/t222_1.jpg new file mode 100644 index 00000000..a3c07b3d Binary files /dev/null and b/gpack/travian_default/img/t/t222_1.jpg differ diff --git a/gpack/travian_default/img/t/t2_1.jpg b/gpack/travian_default/img/t/t2_1.jpg new file mode 100644 index 00000000..e9e13462 Binary files /dev/null and b/gpack/travian_default/img/t/t2_1.jpg differ diff --git a/gpack/travian_default/img/t/t2_10.jpg b/gpack/travian_default/img/t/t2_10.jpg new file mode 100644 index 00000000..6e77a5cb Binary files /dev/null and b/gpack/travian_default/img/t/t2_10.jpg differ diff --git a/gpack/travian_default/img/t/t2_2.jpg b/gpack/travian_default/img/t/t2_2.jpg new file mode 100644 index 00000000..56d2d5ac Binary files /dev/null and b/gpack/travian_default/img/t/t2_2.jpg differ diff --git a/gpack/travian_default/img/t/t2_3.jpg b/gpack/travian_default/img/t/t2_3.jpg new file mode 100644 index 00000000..3408b474 Binary files /dev/null and b/gpack/travian_default/img/t/t2_3.jpg differ diff --git a/gpack/travian_default/img/t/t2_4.jpg b/gpack/travian_default/img/t/t2_4.jpg new file mode 100644 index 00000000..4eaa5d13 Binary files /dev/null and b/gpack/travian_default/img/t/t2_4.jpg differ diff --git a/gpack/travian_default/img/t/t2_5.jpg b/gpack/travian_default/img/t/t2_5.jpg new file mode 100644 index 00000000..1dd07c59 Binary files /dev/null and b/gpack/travian_default/img/t/t2_5.jpg differ diff --git a/gpack/travian_default/img/t/t2_6.jpg b/gpack/travian_default/img/t/t2_6.jpg new file mode 100644 index 00000000..88295661 Binary files /dev/null and b/gpack/travian_default/img/t/t2_6.jpg differ diff --git a/gpack/travian_default/img/t/t2_7.jpg b/gpack/travian_default/img/t/t2_7.jpg new file mode 100644 index 00000000..6f0463f8 Binary files /dev/null and b/gpack/travian_default/img/t/t2_7.jpg differ diff --git a/gpack/travian_default/img/t/t2_8.jpg b/gpack/travian_default/img/t/t2_8.jpg new file mode 100644 index 00000000..23750faa Binary files /dev/null and b/gpack/travian_default/img/t/t2_8.jpg differ diff --git a/gpack/travian_default/img/t/t2_9.jpg b/gpack/travian_default/img/t/t2_9.jpg new file mode 100644 index 00000000..79af89cf Binary files /dev/null and b/gpack/travian_default/img/t/t2_9.jpg differ diff --git a/gpack/travian_default/img/t/t3_1.jpg b/gpack/travian_default/img/t/t3_1.jpg new file mode 100644 index 00000000..d8c9d0aa Binary files /dev/null and b/gpack/travian_default/img/t/t3_1.jpg differ diff --git a/gpack/travian_default/img/t/t3_10.jpg b/gpack/travian_default/img/t/t3_10.jpg new file mode 100644 index 00000000..68484fdd Binary files /dev/null and b/gpack/travian_default/img/t/t3_10.jpg differ diff --git a/gpack/travian_default/img/t/t3_2.jpg b/gpack/travian_default/img/t/t3_2.jpg new file mode 100644 index 00000000..861d46f6 Binary files /dev/null and b/gpack/travian_default/img/t/t3_2.jpg differ diff --git a/gpack/travian_default/img/t/t3_3.jpg b/gpack/travian_default/img/t/t3_3.jpg new file mode 100644 index 00000000..4a6dcb65 Binary files /dev/null and b/gpack/travian_default/img/t/t3_3.jpg differ diff --git a/gpack/travian_default/img/t/t3_4.jpg b/gpack/travian_default/img/t/t3_4.jpg new file mode 100644 index 00000000..6fdea75a Binary files /dev/null and b/gpack/travian_default/img/t/t3_4.jpg differ diff --git a/gpack/travian_default/img/t/t3_5.jpg b/gpack/travian_default/img/t/t3_5.jpg new file mode 100644 index 00000000..9f07c692 Binary files /dev/null and b/gpack/travian_default/img/t/t3_5.jpg differ diff --git a/gpack/travian_default/img/t/t3_6.jpg b/gpack/travian_default/img/t/t3_6.jpg new file mode 100644 index 00000000..136283cd Binary files /dev/null and b/gpack/travian_default/img/t/t3_6.jpg differ diff --git a/gpack/travian_default/img/t/t3_7.jpg b/gpack/travian_default/img/t/t3_7.jpg new file mode 100644 index 00000000..abaa632b Binary files /dev/null and b/gpack/travian_default/img/t/t3_7.jpg differ diff --git a/gpack/travian_default/img/t/t3_8.jpg b/gpack/travian_default/img/t/t3_8.jpg new file mode 100644 index 00000000..e4095176 Binary files /dev/null and b/gpack/travian_default/img/t/t3_8.jpg differ diff --git a/gpack/travian_default/img/t/t3_9.jpg b/gpack/travian_default/img/t/t3_9.jpg new file mode 100644 index 00000000..3c5bd2c1 Binary files /dev/null and b/gpack/travian_default/img/t/t3_9.jpg differ diff --git a/gpack/travian_default/img/t/t4_1.jpg b/gpack/travian_default/img/t/t4_1.jpg new file mode 100644 index 00000000..57f10535 Binary files /dev/null and b/gpack/travian_default/img/t/t4_1.jpg differ diff --git a/gpack/travian_default/img/t/t4_10.jpg b/gpack/travian_default/img/t/t4_10.jpg new file mode 100644 index 00000000..993067ad Binary files /dev/null and b/gpack/travian_default/img/t/t4_10.jpg differ diff --git a/gpack/travian_default/img/t/t4_2.jpg b/gpack/travian_default/img/t/t4_2.jpg new file mode 100644 index 00000000..e000cbca Binary files /dev/null and b/gpack/travian_default/img/t/t4_2.jpg differ diff --git a/gpack/travian_default/img/t/t4_3.jpg b/gpack/travian_default/img/t/t4_3.jpg new file mode 100644 index 00000000..7b62df5a Binary files /dev/null and b/gpack/travian_default/img/t/t4_3.jpg differ diff --git a/gpack/travian_default/img/t/t4_4.jpg b/gpack/travian_default/img/t/t4_4.jpg new file mode 100644 index 00000000..ed7e2fd6 Binary files /dev/null and b/gpack/travian_default/img/t/t4_4.jpg differ diff --git a/gpack/travian_default/img/t/t4_5.jpg b/gpack/travian_default/img/t/t4_5.jpg new file mode 100644 index 00000000..fbf72632 Binary files /dev/null and b/gpack/travian_default/img/t/t4_5.jpg differ diff --git a/gpack/travian_default/img/t/t4_6.jpg b/gpack/travian_default/img/t/t4_6.jpg new file mode 100644 index 00000000..a18c11e4 Binary files /dev/null and b/gpack/travian_default/img/t/t4_6.jpg differ diff --git a/gpack/travian_default/img/t/t4_7.jpg b/gpack/travian_default/img/t/t4_7.jpg new file mode 100644 index 00000000..67b42448 Binary files /dev/null and b/gpack/travian_default/img/t/t4_7.jpg differ diff --git a/gpack/travian_default/img/t/t4_8.jpg b/gpack/travian_default/img/t/t4_8.jpg new file mode 100644 index 00000000..b84bea64 Binary files /dev/null and b/gpack/travian_default/img/t/t4_8.jpg differ diff --git a/gpack/travian_default/img/t/t4_9.jpg b/gpack/travian_default/img/t/t4_9.jpg new file mode 100644 index 00000000..f85fc9db Binary files /dev/null and b/gpack/travian_default/img/t/t4_9.jpg differ diff --git a/gpack/travian_default/img/t/t5_1.jpg b/gpack/travian_default/img/t/t5_1.jpg new file mode 100644 index 00000000..0de293c7 Binary files /dev/null and b/gpack/travian_default/img/t/t5_1.jpg differ diff --git a/gpack/travian_default/img/t/t5_10.jpg b/gpack/travian_default/img/t/t5_10.jpg new file mode 100644 index 00000000..6d3ca5db Binary files /dev/null and b/gpack/travian_default/img/t/t5_10.jpg differ diff --git a/gpack/travian_default/img/t/t5_2.jpg b/gpack/travian_default/img/t/t5_2.jpg new file mode 100644 index 00000000..4c7c4dbe Binary files /dev/null and b/gpack/travian_default/img/t/t5_2.jpg differ diff --git a/gpack/travian_default/img/t/t5_3.jpg b/gpack/travian_default/img/t/t5_3.jpg new file mode 100644 index 00000000..df35b10f Binary files /dev/null and b/gpack/travian_default/img/t/t5_3.jpg differ diff --git a/gpack/travian_default/img/t/t5_4.jpg b/gpack/travian_default/img/t/t5_4.jpg new file mode 100644 index 00000000..509fe073 Binary files /dev/null and b/gpack/travian_default/img/t/t5_4.jpg differ diff --git a/gpack/travian_default/img/t/t5_5.jpg b/gpack/travian_default/img/t/t5_5.jpg new file mode 100644 index 00000000..2beec63e Binary files /dev/null and b/gpack/travian_default/img/t/t5_5.jpg differ diff --git a/gpack/travian_default/img/t/t5_6.jpg b/gpack/travian_default/img/t/t5_6.jpg new file mode 100644 index 00000000..91b9eea6 Binary files /dev/null and b/gpack/travian_default/img/t/t5_6.jpg differ diff --git a/gpack/travian_default/img/t/t5_7.jpg b/gpack/travian_default/img/t/t5_7.jpg new file mode 100644 index 00000000..3ed3f2be Binary files /dev/null and b/gpack/travian_default/img/t/t5_7.jpg differ diff --git a/gpack/travian_default/img/t/t5_8.jpg b/gpack/travian_default/img/t/t5_8.jpg new file mode 100644 index 00000000..4f9d37d8 Binary files /dev/null and b/gpack/travian_default/img/t/t5_8.jpg differ diff --git a/gpack/travian_default/img/t/t5_9.jpg b/gpack/travian_default/img/t/t5_9.jpg new file mode 100644 index 00000000..6fc72d08 Binary files /dev/null and b/gpack/travian_default/img/t/t5_9.jpg differ diff --git a/gpack/travian_default/img/t/t6_1.jpg b/gpack/travian_default/img/t/t6_1.jpg new file mode 100644 index 00000000..a37270ce Binary files /dev/null and b/gpack/travian_default/img/t/t6_1.jpg differ diff --git a/gpack/travian_default/img/t/t6_1.png b/gpack/travian_default/img/t/t6_1.png new file mode 100644 index 00000000..896b9914 Binary files /dev/null and b/gpack/travian_default/img/t/t6_1.png differ diff --git a/gpack/travian_default/img/t/t6_10.jpg b/gpack/travian_default/img/t/t6_10.jpg new file mode 100644 index 00000000..2dd3153b Binary files /dev/null and b/gpack/travian_default/img/t/t6_10.jpg differ diff --git a/gpack/travian_default/img/t/t6_2.jpg b/gpack/travian_default/img/t/t6_2.jpg new file mode 100644 index 00000000..1942d041 Binary files /dev/null and b/gpack/travian_default/img/t/t6_2.jpg differ diff --git a/gpack/travian_default/img/t/t6_3.jpg b/gpack/travian_default/img/t/t6_3.jpg new file mode 100644 index 00000000..4634fac1 Binary files /dev/null and b/gpack/travian_default/img/t/t6_3.jpg differ diff --git a/gpack/travian_default/img/t/t6_4.jpg b/gpack/travian_default/img/t/t6_4.jpg new file mode 100644 index 00000000..1fdbc6bf Binary files /dev/null and b/gpack/travian_default/img/t/t6_4.jpg differ diff --git a/gpack/travian_default/img/t/t6_5.jpg b/gpack/travian_default/img/t/t6_5.jpg new file mode 100644 index 00000000..89ab9280 Binary files /dev/null and b/gpack/travian_default/img/t/t6_5.jpg differ diff --git a/gpack/travian_default/img/t/t6_6.jpg b/gpack/travian_default/img/t/t6_6.jpg new file mode 100644 index 00000000..bcc0dd4f Binary files /dev/null and b/gpack/travian_default/img/t/t6_6.jpg differ diff --git a/gpack/travian_default/img/t/t6_7.jpg b/gpack/travian_default/img/t/t6_7.jpg new file mode 100644 index 00000000..005a607a Binary files /dev/null and b/gpack/travian_default/img/t/t6_7.jpg differ diff --git a/gpack/travian_default/img/t/t6_8.jpg b/gpack/travian_default/img/t/t6_8.jpg new file mode 100644 index 00000000..a9ab1d04 Binary files /dev/null and b/gpack/travian_default/img/t/t6_8.jpg differ diff --git a/gpack/travian_default/img/t/t6_9.jpg b/gpack/travian_default/img/t/t6_9.jpg new file mode 100644 index 00000000..73b4cf86 Binary files /dev/null and b/gpack/travian_default/img/t/t6_9.jpg differ diff --git a/gpack/travian_default/img/t/tn.gif b/gpack/travian_default/img/t/tn.gif new file mode 100644 index 00000000..95b985ce Binary files /dev/null and b/gpack/travian_default/img/t/tn.gif differ diff --git a/gpack/travian_default/img/t/tnd.gif b/gpack/travian_default/img/t/tnd.gif new file mode 100644 index 00000000..441a30bd Binary files /dev/null and b/gpack/travian_default/img/t/tnd.gif differ diff --git a/gpack/travian_default/img/u/1.gif b/gpack/travian_default/img/u/1.gif new file mode 100644 index 00000000..2bef584e Binary files /dev/null and b/gpack/travian_default/img/u/1.gif differ diff --git a/gpack/travian_default/img/u/10.gif b/gpack/travian_default/img/u/10.gif new file mode 100644 index 00000000..39b4a796 Binary files /dev/null and b/gpack/travian_default/img/u/10.gif differ diff --git a/gpack/travian_default/img/u/11.gif b/gpack/travian_default/img/u/11.gif new file mode 100644 index 00000000..868e1b9a Binary files /dev/null and b/gpack/travian_default/img/u/11.gif differ diff --git a/gpack/travian_default/img/u/12.gif b/gpack/travian_default/img/u/12.gif new file mode 100644 index 00000000..51be68e2 Binary files /dev/null and b/gpack/travian_default/img/u/12.gif differ diff --git a/gpack/travian_default/img/u/13.gif b/gpack/travian_default/img/u/13.gif new file mode 100644 index 00000000..d49b48ee Binary files /dev/null and b/gpack/travian_default/img/u/13.gif differ diff --git a/gpack/travian_default/img/u/14.gif b/gpack/travian_default/img/u/14.gif new file mode 100644 index 00000000..ba9a0727 Binary files /dev/null and b/gpack/travian_default/img/u/14.gif differ diff --git a/gpack/travian_default/img/u/15.gif b/gpack/travian_default/img/u/15.gif new file mode 100644 index 00000000..c9717c6f Binary files /dev/null and b/gpack/travian_default/img/u/15.gif differ diff --git a/gpack/travian_default/img/u/16.gif b/gpack/travian_default/img/u/16.gif new file mode 100644 index 00000000..239dbedb Binary files /dev/null and b/gpack/travian_default/img/u/16.gif differ diff --git a/gpack/travian_default/img/u/17.gif b/gpack/travian_default/img/u/17.gif new file mode 100644 index 00000000..0044e2e0 Binary files /dev/null and b/gpack/travian_default/img/u/17.gif differ diff --git a/gpack/travian_default/img/u/18.gif b/gpack/travian_default/img/u/18.gif new file mode 100644 index 00000000..aac281dd Binary files /dev/null and b/gpack/travian_default/img/u/18.gif differ diff --git a/gpack/travian_default/img/u/19.gif b/gpack/travian_default/img/u/19.gif new file mode 100644 index 00000000..f3a4b4ab Binary files /dev/null and b/gpack/travian_default/img/u/19.gif differ diff --git a/gpack/travian_default/img/u/2.gif b/gpack/travian_default/img/u/2.gif new file mode 100644 index 00000000..36199a7d Binary files /dev/null and b/gpack/travian_default/img/u/2.gif differ diff --git a/gpack/travian_default/img/u/20.gif b/gpack/travian_default/img/u/20.gif new file mode 100644 index 00000000..5f6aa3f7 Binary files /dev/null and b/gpack/travian_default/img/u/20.gif differ diff --git a/gpack/travian_default/img/u/21.gif b/gpack/travian_default/img/u/21.gif new file mode 100644 index 00000000..03e41a78 Binary files /dev/null and b/gpack/travian_default/img/u/21.gif differ diff --git a/gpack/travian_default/img/u/22.gif b/gpack/travian_default/img/u/22.gif new file mode 100644 index 00000000..b2e6fdb8 Binary files /dev/null and b/gpack/travian_default/img/u/22.gif differ diff --git a/gpack/travian_default/img/u/23.gif b/gpack/travian_default/img/u/23.gif new file mode 100644 index 00000000..f8520f5e Binary files /dev/null and b/gpack/travian_default/img/u/23.gif differ diff --git a/gpack/travian_default/img/u/24.gif b/gpack/travian_default/img/u/24.gif new file mode 100644 index 00000000..125643cb Binary files /dev/null and b/gpack/travian_default/img/u/24.gif differ diff --git a/gpack/travian_default/img/u/25.gif b/gpack/travian_default/img/u/25.gif new file mode 100644 index 00000000..1acf5983 Binary files /dev/null and b/gpack/travian_default/img/u/25.gif differ diff --git a/gpack/travian_default/img/u/26.gif b/gpack/travian_default/img/u/26.gif new file mode 100644 index 00000000..786d3071 Binary files /dev/null and b/gpack/travian_default/img/u/26.gif differ diff --git a/gpack/travian_default/img/u/27.gif b/gpack/travian_default/img/u/27.gif new file mode 100644 index 00000000..3faca4f4 Binary files /dev/null and b/gpack/travian_default/img/u/27.gif differ diff --git a/gpack/travian_default/img/u/28.gif b/gpack/travian_default/img/u/28.gif new file mode 100644 index 00000000..13de492a Binary files /dev/null and b/gpack/travian_default/img/u/28.gif differ diff --git a/gpack/travian_default/img/u/29.gif b/gpack/travian_default/img/u/29.gif new file mode 100644 index 00000000..230423a5 Binary files /dev/null and b/gpack/travian_default/img/u/29.gif differ diff --git a/gpack/travian_default/img/u/3.gif b/gpack/travian_default/img/u/3.gif new file mode 100644 index 00000000..a01e870f Binary files /dev/null and b/gpack/travian_default/img/u/3.gif differ diff --git a/gpack/travian_default/img/u/30.gif b/gpack/travian_default/img/u/30.gif new file mode 100644 index 00000000..9e3d6209 Binary files /dev/null and b/gpack/travian_default/img/u/30.gif differ diff --git a/gpack/travian_default/img/u/31.gif b/gpack/travian_default/img/u/31.gif new file mode 100644 index 00000000..4914dbbf Binary files /dev/null and b/gpack/travian_default/img/u/31.gif differ diff --git a/gpack/travian_default/img/u/32.gif b/gpack/travian_default/img/u/32.gif new file mode 100644 index 00000000..391b1a55 Binary files /dev/null and b/gpack/travian_default/img/u/32.gif differ diff --git a/gpack/travian_default/img/u/33.gif b/gpack/travian_default/img/u/33.gif new file mode 100644 index 00000000..e62d8cc0 Binary files /dev/null and b/gpack/travian_default/img/u/33.gif differ diff --git a/gpack/travian_default/img/u/34.gif b/gpack/travian_default/img/u/34.gif new file mode 100644 index 00000000..1d00a9a5 Binary files /dev/null and b/gpack/travian_default/img/u/34.gif differ diff --git a/gpack/travian_default/img/u/35.gif b/gpack/travian_default/img/u/35.gif new file mode 100644 index 00000000..02609c1e Binary files /dev/null and b/gpack/travian_default/img/u/35.gif differ diff --git a/gpack/travian_default/img/u/36.gif b/gpack/travian_default/img/u/36.gif new file mode 100644 index 00000000..8d52248b Binary files /dev/null and b/gpack/travian_default/img/u/36.gif differ diff --git a/gpack/travian_default/img/u/37.gif b/gpack/travian_default/img/u/37.gif new file mode 100644 index 00000000..04e68f6e Binary files /dev/null and b/gpack/travian_default/img/u/37.gif differ diff --git a/gpack/travian_default/img/u/38.gif b/gpack/travian_default/img/u/38.gif new file mode 100644 index 00000000..3ccfd397 Binary files /dev/null and b/gpack/travian_default/img/u/38.gif differ diff --git a/gpack/travian_default/img/u/39.gif b/gpack/travian_default/img/u/39.gif new file mode 100644 index 00000000..1bd5f150 Binary files /dev/null and b/gpack/travian_default/img/u/39.gif differ diff --git a/gpack/travian_default/img/u/4.gif b/gpack/travian_default/img/u/4.gif new file mode 100644 index 00000000..8a0bf3f6 Binary files /dev/null and b/gpack/travian_default/img/u/4.gif differ diff --git a/gpack/travian_default/img/u/40.gif b/gpack/travian_default/img/u/40.gif new file mode 100644 index 00000000..23cb95f2 Binary files /dev/null and b/gpack/travian_default/img/u/40.gif differ diff --git a/gpack/travian_default/img/u/41.gif b/gpack/travian_default/img/u/41.gif new file mode 100644 index 00000000..2ddfb2d6 Binary files /dev/null and b/gpack/travian_default/img/u/41.gif differ diff --git a/gpack/travian_default/img/u/42.gif b/gpack/travian_default/img/u/42.gif new file mode 100644 index 00000000..da32203f Binary files /dev/null and b/gpack/travian_default/img/u/42.gif differ diff --git a/gpack/travian_default/img/u/43.gif b/gpack/travian_default/img/u/43.gif new file mode 100644 index 00000000..33a2a113 Binary files /dev/null and b/gpack/travian_default/img/u/43.gif differ diff --git a/gpack/travian_default/img/u/44.gif b/gpack/travian_default/img/u/44.gif new file mode 100644 index 00000000..27c961b7 Binary files /dev/null and b/gpack/travian_default/img/u/44.gif differ diff --git a/gpack/travian_default/img/u/45.gif b/gpack/travian_default/img/u/45.gif new file mode 100644 index 00000000..e17b793c Binary files /dev/null and b/gpack/travian_default/img/u/45.gif differ diff --git a/gpack/travian_default/img/u/46.gif b/gpack/travian_default/img/u/46.gif new file mode 100644 index 00000000..22d6f52a Binary files /dev/null and b/gpack/travian_default/img/u/46.gif differ diff --git a/gpack/travian_default/img/u/47.gif b/gpack/travian_default/img/u/47.gif new file mode 100644 index 00000000..d294eefe Binary files /dev/null and b/gpack/travian_default/img/u/47.gif differ diff --git a/gpack/travian_default/img/u/48.gif b/gpack/travian_default/img/u/48.gif new file mode 100644 index 00000000..e41682b2 Binary files /dev/null and b/gpack/travian_default/img/u/48.gif differ diff --git a/gpack/travian_default/img/u/49.gif b/gpack/travian_default/img/u/49.gif new file mode 100644 index 00000000..e99c2926 Binary files /dev/null and b/gpack/travian_default/img/u/49.gif differ diff --git a/gpack/travian_default/img/u/5.gif b/gpack/travian_default/img/u/5.gif new file mode 100644 index 00000000..fb6eaf44 Binary files /dev/null and b/gpack/travian_default/img/u/5.gif differ diff --git a/gpack/travian_default/img/u/50.gif b/gpack/travian_default/img/u/50.gif new file mode 100644 index 00000000..48322d8b Binary files /dev/null and b/gpack/travian_default/img/u/50.gif differ diff --git a/gpack/travian_default/img/u/51.gif b/gpack/travian_default/img/u/51.gif new file mode 100644 index 00000000..01a2307e Binary files /dev/null and b/gpack/travian_default/img/u/51.gif differ diff --git a/gpack/travian_default/img/u/52.gif b/gpack/travian_default/img/u/52.gif new file mode 100644 index 00000000..eaa60db5 Binary files /dev/null and b/gpack/travian_default/img/u/52.gif differ diff --git a/gpack/travian_default/img/u/53.gif b/gpack/travian_default/img/u/53.gif new file mode 100644 index 00000000..1bb44fee Binary files /dev/null and b/gpack/travian_default/img/u/53.gif differ diff --git a/gpack/travian_default/img/u/54.gif b/gpack/travian_default/img/u/54.gif new file mode 100644 index 00000000..919e9f35 Binary files /dev/null and b/gpack/travian_default/img/u/54.gif differ diff --git a/gpack/travian_default/img/u/55.gif b/gpack/travian_default/img/u/55.gif new file mode 100644 index 00000000..31988fbb Binary files /dev/null and b/gpack/travian_default/img/u/55.gif differ diff --git a/gpack/travian_default/img/u/56.gif b/gpack/travian_default/img/u/56.gif new file mode 100644 index 00000000..c41029f0 Binary files /dev/null and b/gpack/travian_default/img/u/56.gif differ diff --git a/gpack/travian_default/img/u/57.gif b/gpack/travian_default/img/u/57.gif new file mode 100644 index 00000000..eaa72593 Binary files /dev/null and b/gpack/travian_default/img/u/57.gif differ diff --git a/gpack/travian_default/img/u/58.gif b/gpack/travian_default/img/u/58.gif new file mode 100644 index 00000000..0cd312ab Binary files /dev/null and b/gpack/travian_default/img/u/58.gif differ diff --git a/gpack/travian_default/img/u/59.gif b/gpack/travian_default/img/u/59.gif new file mode 100644 index 00000000..a9ec8dd3 Binary files /dev/null and b/gpack/travian_default/img/u/59.gif differ diff --git a/gpack/travian_default/img/u/6.gif b/gpack/travian_default/img/u/6.gif new file mode 100644 index 00000000..42134f1d Binary files /dev/null and b/gpack/travian_default/img/u/6.gif differ diff --git a/gpack/travian_default/img/u/60.gif b/gpack/travian_default/img/u/60.gif new file mode 100644 index 00000000..4dd3194a Binary files /dev/null and b/gpack/travian_default/img/u/60.gif differ diff --git a/gpack/travian_default/img/u/7.gif b/gpack/travian_default/img/u/7.gif new file mode 100644 index 00000000..774985db Binary files /dev/null and b/gpack/travian_default/img/u/7.gif differ diff --git a/gpack/travian_default/img/u/8.gif b/gpack/travian_default/img/u/8.gif new file mode 100644 index 00000000..28c0b884 Binary files /dev/null and b/gpack/travian_default/img/u/8.gif differ diff --git a/gpack/travian_default/img/u/9.gif b/gpack/travian_default/img/u/9.gif new file mode 100644 index 00000000..73c8203e Binary files /dev/null and b/gpack/travian_default/img/u/9.gif differ diff --git a/gpack/travian_default/img/u/98.gif b/gpack/travian_default/img/u/98.gif new file mode 100644 index 00000000..4a2c78b1 Binary files /dev/null and b/gpack/travian_default/img/u/98.gif differ diff --git a/gpack/travian_default/img/u/99.gif b/gpack/travian_default/img/u/99.gif new file mode 100644 index 00000000..c4b57587 Binary files /dev/null and b/gpack/travian_default/img/u/99.gif differ diff --git a/gpack/travian_default/img/u/Thumbs.db b/gpack/travian_default/img/u/Thumbs.db new file mode 100644 index 00000000..1827ecea Binary files /dev/null and b/gpack/travian_default/img/u/Thumbs.db differ diff --git a/gpack/travian_default/img/u/point.gif b/gpack/travian_default/img/u/point.gif new file mode 100644 index 00000000..3edba9c5 Binary files /dev/null and b/gpack/travian_default/img/u/point.gif differ diff --git a/gpack/travian_default/img/u/specials.gif b/gpack/travian_default/img/u/specials.gif new file mode 100644 index 00000000..f5d35b0b Binary files /dev/null and b/gpack/travian_default/img/u/specials.gif differ diff --git a/gpack/travian_default/img/u/v1_romans2.gif b/gpack/travian_default/img/u/v1_romans2.gif new file mode 100644 index 00000000..0c126ae0 Binary files /dev/null and b/gpack/travian_default/img/u/v1_romans2.gif differ diff --git a/gpack/travian_default/img/u/v2_teutons2.gif b/gpack/travian_default/img/u/v2_teutons2.gif new file mode 100644 index 00000000..f456969a Binary files /dev/null and b/gpack/travian_default/img/u/v2_teutons2.gif differ diff --git a/gpack/travian_default/img/u/v3_gauls2.gif b/gpack/travian_default/img/u/v3_gauls2.gif new file mode 100644 index 00000000..d7ba7afd Binary files /dev/null and b/gpack/travian_default/img/u/v3_gauls2.gif differ diff --git a/gpack/travian_default/img/u/v4_nature2.gif b/gpack/travian_default/img/u/v4_nature2.gif new file mode 100644 index 00000000..8282f291 Binary files /dev/null and b/gpack/travian_default/img/u/v4_nature2.gif differ diff --git a/gpack/travian_default/img/u/v5_natars2.gif b/gpack/travian_default/img/u/v5_natars2.gif new file mode 100644 index 00000000..4c011982 Binary files /dev/null and b/gpack/travian_default/img/u/v5_natars2.gif differ diff --git a/gpack/travian_default/img/u/v6_monsters2.gif b/gpack/travian_default/img/u/v6_monsters2.gif new file mode 100644 index 00000000..66dc678a Binary files /dev/null and b/gpack/travian_default/img/u/v6_monsters2.gif differ diff --git a/gpack/travian_default/img/u2/Thumbs.db b/gpack/travian_default/img/u2/Thumbs.db new file mode 100644 index 00000000..20cf18c1 Binary files /dev/null and b/gpack/travian_default/img/u2/Thumbs.db differ diff --git a/gpack/travian_default/img/u2/u1.gif b/gpack/travian_default/img/u2/u1.gif new file mode 100644 index 00000000..f7133940 Binary files /dev/null and b/gpack/travian_default/img/u2/u1.gif differ diff --git a/gpack/travian_default/img/u2/u10.gif b/gpack/travian_default/img/u2/u10.gif new file mode 100644 index 00000000..12dd74af Binary files /dev/null and b/gpack/travian_default/img/u2/u10.gif differ diff --git a/gpack/travian_default/img/u2/u11.gif b/gpack/travian_default/img/u2/u11.gif new file mode 100644 index 00000000..d58d42aa Binary files /dev/null and b/gpack/travian_default/img/u2/u11.gif differ diff --git a/gpack/travian_default/img/u2/u12.gif b/gpack/travian_default/img/u2/u12.gif new file mode 100644 index 00000000..7985ecd9 Binary files /dev/null and b/gpack/travian_default/img/u2/u12.gif differ diff --git a/gpack/travian_default/img/u2/u13.gif b/gpack/travian_default/img/u2/u13.gif new file mode 100644 index 00000000..df048632 Binary files /dev/null and b/gpack/travian_default/img/u2/u13.gif differ diff --git a/gpack/travian_default/img/u2/u14.gif b/gpack/travian_default/img/u2/u14.gif new file mode 100644 index 00000000..bda7f594 Binary files /dev/null and b/gpack/travian_default/img/u2/u14.gif differ diff --git a/gpack/travian_default/img/u2/u15.gif b/gpack/travian_default/img/u2/u15.gif new file mode 100644 index 00000000..6331b35c Binary files /dev/null and b/gpack/travian_default/img/u2/u15.gif differ diff --git a/gpack/travian_default/img/u2/u16.gif b/gpack/travian_default/img/u2/u16.gif new file mode 100644 index 00000000..2b4e45bd Binary files /dev/null and b/gpack/travian_default/img/u2/u16.gif differ diff --git a/gpack/travian_default/img/u2/u17.gif b/gpack/travian_default/img/u2/u17.gif new file mode 100644 index 00000000..d2c24cef Binary files /dev/null and b/gpack/travian_default/img/u2/u17.gif differ diff --git a/gpack/travian_default/img/u2/u18.gif b/gpack/travian_default/img/u2/u18.gif new file mode 100644 index 00000000..d16b3fed Binary files /dev/null and b/gpack/travian_default/img/u2/u18.gif differ diff --git a/gpack/travian_default/img/u2/u19.gif b/gpack/travian_default/img/u2/u19.gif new file mode 100644 index 00000000..e540cb0c Binary files /dev/null and b/gpack/travian_default/img/u2/u19.gif differ diff --git a/gpack/travian_default/img/u2/u2.gif b/gpack/travian_default/img/u2/u2.gif new file mode 100644 index 00000000..2d4c7696 Binary files /dev/null and b/gpack/travian_default/img/u2/u2.gif differ diff --git a/gpack/travian_default/img/u2/u20.gif b/gpack/travian_default/img/u2/u20.gif new file mode 100644 index 00000000..2ffe6a86 Binary files /dev/null and b/gpack/travian_default/img/u2/u20.gif differ diff --git a/gpack/travian_default/img/u2/u21.gif b/gpack/travian_default/img/u2/u21.gif new file mode 100644 index 00000000..9af4b4d5 Binary files /dev/null and b/gpack/travian_default/img/u2/u21.gif differ diff --git a/gpack/travian_default/img/u2/u22.gif b/gpack/travian_default/img/u2/u22.gif new file mode 100644 index 00000000..2c45b9c6 Binary files /dev/null and b/gpack/travian_default/img/u2/u22.gif differ diff --git a/gpack/travian_default/img/u2/u23.gif b/gpack/travian_default/img/u2/u23.gif new file mode 100644 index 00000000..b9f64b77 Binary files /dev/null and b/gpack/travian_default/img/u2/u23.gif differ diff --git a/gpack/travian_default/img/u2/u24.gif b/gpack/travian_default/img/u2/u24.gif new file mode 100644 index 00000000..b7168178 Binary files /dev/null and b/gpack/travian_default/img/u2/u24.gif differ diff --git a/gpack/travian_default/img/u2/u25.gif b/gpack/travian_default/img/u2/u25.gif new file mode 100644 index 00000000..87aeb1cc Binary files /dev/null and b/gpack/travian_default/img/u2/u25.gif differ diff --git a/gpack/travian_default/img/u2/u26.gif b/gpack/travian_default/img/u2/u26.gif new file mode 100644 index 00000000..962d9349 Binary files /dev/null and b/gpack/travian_default/img/u2/u26.gif differ diff --git a/gpack/travian_default/img/u2/u27.gif b/gpack/travian_default/img/u2/u27.gif new file mode 100644 index 00000000..2021725a Binary files /dev/null and b/gpack/travian_default/img/u2/u27.gif differ diff --git a/gpack/travian_default/img/u2/u28.gif b/gpack/travian_default/img/u2/u28.gif new file mode 100644 index 00000000..dbf18e4f Binary files /dev/null and b/gpack/travian_default/img/u2/u28.gif differ diff --git a/gpack/travian_default/img/u2/u29.gif b/gpack/travian_default/img/u2/u29.gif new file mode 100644 index 00000000..8224f1a6 Binary files /dev/null and b/gpack/travian_default/img/u2/u29.gif differ diff --git a/gpack/travian_default/img/u2/u3.gif b/gpack/travian_default/img/u2/u3.gif new file mode 100644 index 00000000..46be53d3 Binary files /dev/null and b/gpack/travian_default/img/u2/u3.gif differ diff --git a/gpack/travian_default/img/u2/u30.gif b/gpack/travian_default/img/u2/u30.gif new file mode 100644 index 00000000..b174863f Binary files /dev/null and b/gpack/travian_default/img/u2/u30.gif differ diff --git a/gpack/travian_default/img/u2/u4.gif b/gpack/travian_default/img/u2/u4.gif new file mode 100644 index 00000000..da63c4e6 Binary files /dev/null and b/gpack/travian_default/img/u2/u4.gif differ diff --git a/gpack/travian_default/img/u2/u5.gif b/gpack/travian_default/img/u2/u5.gif new file mode 100644 index 00000000..9f3a537d Binary files /dev/null and b/gpack/travian_default/img/u2/u5.gif differ diff --git a/gpack/travian_default/img/u2/u6.gif b/gpack/travian_default/img/u2/u6.gif new file mode 100644 index 00000000..4f55d751 Binary files /dev/null and b/gpack/travian_default/img/u2/u6.gif differ diff --git a/gpack/travian_default/img/u2/u7.gif b/gpack/travian_default/img/u2/u7.gif new file mode 100644 index 00000000..fae2d2ce Binary files /dev/null and b/gpack/travian_default/img/u2/u7.gif differ diff --git a/gpack/travian_default/img/u2/u8.gif b/gpack/travian_default/img/u2/u8.gif new file mode 100644 index 00000000..93223168 Binary files /dev/null and b/gpack/travian_default/img/u2/u8.gif differ diff --git a/gpack/travian_default/img/u2/u9.gif b/gpack/travian_default/img/u2/u9.gif new file mode 100644 index 00000000..53511e42 Binary files /dev/null and b/gpack/travian_default/img/u2/u9.gif differ diff --git a/gpack/travian_default/img/u2rtl/Thumbs.db b/gpack/travian_default/img/u2rtl/Thumbs.db new file mode 100644 index 00000000..16e1bb4f Binary files /dev/null and b/gpack/travian_default/img/u2rtl/Thumbs.db differ diff --git a/gpack/travian_default/img/u2rtl/u1.gif b/gpack/travian_default/img/u2rtl/u1.gif new file mode 100644 index 00000000..427d2e83 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u1.gif differ diff --git a/gpack/travian_default/img/u2rtl/u10.gif b/gpack/travian_default/img/u2rtl/u10.gif new file mode 100644 index 00000000..2e589bcd Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u10.gif differ diff --git a/gpack/travian_default/img/u2rtl/u11.gif b/gpack/travian_default/img/u2rtl/u11.gif new file mode 100644 index 00000000..c1149c37 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u11.gif differ diff --git a/gpack/travian_default/img/u2rtl/u12.gif b/gpack/travian_default/img/u2rtl/u12.gif new file mode 100644 index 00000000..36cb169b Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u12.gif differ diff --git a/gpack/travian_default/img/u2rtl/u13.gif b/gpack/travian_default/img/u2rtl/u13.gif new file mode 100644 index 00000000..4c726a87 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u13.gif differ diff --git a/gpack/travian_default/img/u2rtl/u14.gif b/gpack/travian_default/img/u2rtl/u14.gif new file mode 100644 index 00000000..e31ca0d1 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u14.gif differ diff --git a/gpack/travian_default/img/u2rtl/u15.gif b/gpack/travian_default/img/u2rtl/u15.gif new file mode 100644 index 00000000..630cfa7e Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u15.gif differ diff --git a/gpack/travian_default/img/u2rtl/u16.gif b/gpack/travian_default/img/u2rtl/u16.gif new file mode 100644 index 00000000..44dcc5dd Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u16.gif differ diff --git a/gpack/travian_default/img/u2rtl/u17.gif b/gpack/travian_default/img/u2rtl/u17.gif new file mode 100644 index 00000000..b635ddb8 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u17.gif differ diff --git a/gpack/travian_default/img/u2rtl/u18.gif b/gpack/travian_default/img/u2rtl/u18.gif new file mode 100644 index 00000000..5c702572 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u18.gif differ diff --git a/gpack/travian_default/img/u2rtl/u19.gif b/gpack/travian_default/img/u2rtl/u19.gif new file mode 100644 index 00000000..6d8bdec7 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u19.gif differ diff --git a/gpack/travian_default/img/u2rtl/u2.gif b/gpack/travian_default/img/u2rtl/u2.gif new file mode 100644 index 00000000..88d2286d Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u2.gif differ diff --git a/gpack/travian_default/img/u2rtl/u20.gif b/gpack/travian_default/img/u2rtl/u20.gif new file mode 100644 index 00000000..7c022d09 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u20.gif differ diff --git a/gpack/travian_default/img/u2rtl/u21.gif b/gpack/travian_default/img/u2rtl/u21.gif new file mode 100644 index 00000000..4eed43b2 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u21.gif differ diff --git a/gpack/travian_default/img/u2rtl/u22.gif b/gpack/travian_default/img/u2rtl/u22.gif new file mode 100644 index 00000000..0fc0c7a6 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u22.gif differ diff --git a/gpack/travian_default/img/u2rtl/u23.gif b/gpack/travian_default/img/u2rtl/u23.gif new file mode 100644 index 00000000..2420fb72 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u23.gif differ diff --git a/gpack/travian_default/img/u2rtl/u24.gif b/gpack/travian_default/img/u2rtl/u24.gif new file mode 100644 index 00000000..eb7d7fa3 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u24.gif differ diff --git a/gpack/travian_default/img/u2rtl/u25.gif b/gpack/travian_default/img/u2rtl/u25.gif new file mode 100644 index 00000000..a5e17e6e Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u25.gif differ diff --git a/gpack/travian_default/img/u2rtl/u26.gif b/gpack/travian_default/img/u2rtl/u26.gif new file mode 100644 index 00000000..494bfee2 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u26.gif differ diff --git a/gpack/travian_default/img/u2rtl/u27.gif b/gpack/travian_default/img/u2rtl/u27.gif new file mode 100644 index 00000000..55d3e9aa Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u27.gif differ diff --git a/gpack/travian_default/img/u2rtl/u28.gif b/gpack/travian_default/img/u2rtl/u28.gif new file mode 100644 index 00000000..1ba3bb5d Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u28.gif differ diff --git a/gpack/travian_default/img/u2rtl/u29.gif b/gpack/travian_default/img/u2rtl/u29.gif new file mode 100644 index 00000000..9bb3b501 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u29.gif differ diff --git a/gpack/travian_default/img/u2rtl/u3.gif b/gpack/travian_default/img/u2rtl/u3.gif new file mode 100644 index 00000000..84a8531d Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u3.gif differ diff --git a/gpack/travian_default/img/u2rtl/u30.gif b/gpack/travian_default/img/u2rtl/u30.gif new file mode 100644 index 00000000..5e7990b9 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u30.gif differ diff --git a/gpack/travian_default/img/u2rtl/u4.gif b/gpack/travian_default/img/u2rtl/u4.gif new file mode 100644 index 00000000..81d95fcf Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u4.gif differ diff --git a/gpack/travian_default/img/u2rtl/u5.gif b/gpack/travian_default/img/u2rtl/u5.gif new file mode 100644 index 00000000..a85aba59 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u5.gif differ diff --git a/gpack/travian_default/img/u2rtl/u6.gif b/gpack/travian_default/img/u2rtl/u6.gif new file mode 100644 index 00000000..8e1634b0 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u6.gif differ diff --git a/gpack/travian_default/img/u2rtl/u7.gif b/gpack/travian_default/img/u2rtl/u7.gif new file mode 100644 index 00000000..63777248 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u7.gif differ diff --git a/gpack/travian_default/img/u2rtl/u8.gif b/gpack/travian_default/img/u2rtl/u8.gif new file mode 100644 index 00000000..65c50f9b Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u8.gif differ diff --git a/gpack/travian_default/img/u2rtl/u9.gif b/gpack/travian_default/img/u2rtl/u9.gif new file mode 100644 index 00000000..1ecde3c6 Binary files /dev/null and b/gpack/travian_default/img/u2rtl/u9.gif differ diff --git a/gpack/travian_default/img/wm/Thumbs.db b/gpack/travian_default/img/wm/Thumbs.db new file mode 100644 index 00000000..6b2062e5 Binary files /dev/null and b/gpack/travian_default/img/wm/Thumbs.db differ diff --git a/gpack/travian_default/img/wm/wm99.gif b/gpack/travian_default/img/wm/wm99.gif new file mode 100644 index 00000000..99955eed Binary files /dev/null and b/gpack/travian_default/img/wm/wm99.gif differ diff --git a/gpack/travian_default/lang/en/a/Thumbs.db b/gpack/travian_default/lang/en/a/Thumbs.db new file mode 100644 index 00000000..1ddb0b43 Binary files /dev/null and b/gpack/travian_default/lang/en/a/Thumbs.db differ diff --git a/gpack/travian_default/lang/en/a/plus.gif b/gpack/travian_default/lang/en/a/plus.gif new file mode 100644 index 00000000..c78dbfa5 Binary files /dev/null and b/gpack/travian_default/lang/en/a/plus.gif differ diff --git a/gpack/travian_default/lang/en/a/travian0.gif b/gpack/travian_default/lang/en/a/travian0.gif new file mode 100644 index 00000000..a9c97d7b Binary files /dev/null and b/gpack/travian_default/lang/en/a/travian0.gif differ diff --git a/gpack/travian_default/lang/en/a/travian1.gif b/gpack/travian_default/lang/en/a/travian1.gif new file mode 100644 index 00000000..10572710 Binary files /dev/null and b/gpack/travian_default/lang/en/a/travian1.gif differ diff --git a/gpack/travian_default/lang/en/b/Thumbs.db b/gpack/travian_default/lang/en/b/Thumbs.db new file mode 100644 index 00000000..fac96736 Binary files /dev/null and b/gpack/travian_default/lang/en/b/Thumbs.db differ diff --git a/gpack/travian_default/lang/en/b/archiv.gif b/gpack/travian_default/lang/en/b/archiv.gif new file mode 100644 index 00000000..16191b2d Binary files /dev/null and b/gpack/travian_default/lang/en/b/archiv.gif differ diff --git a/gpack/travian_default/lang/en/b/back.gif b/gpack/travian_default/lang/en/b/back.gif new file mode 100644 index 00000000..5d87d385 Binary files /dev/null and b/gpack/travian_default/lang/en/b/back.gif differ diff --git a/gpack/travian_default/lang/en/b/delete.gif b/gpack/travian_default/lang/en/b/delete.gif new file mode 100644 index 00000000..2eb68236 Binary files /dev/null and b/gpack/travian_default/lang/en/b/delete.gif differ diff --git a/gpack/travian_default/lang/en/b/demolish.gif b/gpack/travian_default/lang/en/b/demolish.gif new file mode 100644 index 00000000..af704dcf Binary files /dev/null and b/gpack/travian_default/lang/en/b/demolish.gif differ diff --git a/gpack/travian_default/lang/en/b/forward.gif b/gpack/travian_default/lang/en/b/forward.gif new file mode 100644 index 00000000..c2c7505a Binary files /dev/null and b/gpack/travian_default/lang/en/b/forward.gif differ diff --git a/gpack/travian_default/lang/en/b/login.gif b/gpack/travian_default/lang/en/b/login.gif new file mode 100644 index 00000000..03a68fdb Binary files /dev/null and b/gpack/travian_default/lang/en/b/login.gif differ diff --git a/gpack/travian_default/lang/en/b/ok.gif b/gpack/travian_default/lang/en/b/ok.gif new file mode 100644 index 00000000..f207a4e0 Binary files /dev/null and b/gpack/travian_default/lang/en/b/ok.gif differ diff --git a/gpack/travian_default/lang/en/b/reply.gif b/gpack/travian_default/lang/en/b/reply.gif new file mode 100644 index 00000000..6345447e Binary files /dev/null and b/gpack/travian_default/lang/en/b/reply.gif differ diff --git a/gpack/travian_default/lang/en/b/save.gif b/gpack/travian_default/lang/en/b/save.gif new file mode 100644 index 00000000..2b239eaf Binary files /dev/null and b/gpack/travian_default/lang/en/b/save.gif differ diff --git a/gpack/travian_default/lang/en/b/search.gif b/gpack/travian_default/lang/en/b/search.gif new file mode 100644 index 00000000..a90dfe90 Binary files /dev/null and b/gpack/travian_default/lang/en/b/search.gif differ diff --git a/gpack/travian_default/lang/en/b/send.gif b/gpack/travian_default/lang/en/b/send.gif new file mode 100644 index 00000000..31cbca93 Binary files /dev/null and b/gpack/travian_default/lang/en/b/send.gif differ diff --git a/gpack/travian_default/lang/en/b/signup.gif b/gpack/travian_default/lang/en/b/signup.gif new file mode 100644 index 00000000..a90d6513 Binary files /dev/null and b/gpack/travian_default/lang/en/b/signup.gif differ diff --git a/gpack/travian_default/lang/en/b/train.gif b/gpack/travian_default/lang/en/b/train.gif new file mode 100644 index 00000000..397d2036 Binary files /dev/null and b/gpack/travian_default/lang/en/b/train.gif differ diff --git a/gpack/travian_default/lang/en/b/zurueck.html b/gpack/travian_default/lang/en/b/zurueck.html new file mode 100644 index 00000000..bcd738b0 --- /dev/null +++ b/gpack/travian_default/lang/en/b/zurueck.html @@ -0,0 +1,100 @@ + + + + + Travian com4 + + + + + + + + + + + + + + +
    +
    +
    + + + +
    + +
    Nothing here! +

    Nothing here!

    +
    We looked 404 times already but can't find anything
    + +
    +
    +
    newsbox 1
    +
    +

    + +
    +
    newsbox 2
    +
    Dear players, +

    +Starting from next week Travian will get a new look. +

    +Here you find more information about the new layout. +

    +Regards
    +Tschena & Phanttis
    +
    newsbox 3
    +
    Dear players, +

    +s4.travian.com will start on August 23th as Travian version 3.6 server. +

    +The preregistration will be opened on August 20th. +

    +Here you find more information about the servers. +

    +Regards
    +Tschena & Phanttis
    +
    + +
    +
    + + +
    + + +
    +
    + + \ No newline at end of file diff --git a/gpack/travian_default/lang/en/compact.css b/gpack/travian_default/lang/en/compact.css new file mode 100644 index 00000000..22ce4c9e --- /dev/null +++ b/gpack/travian_default/lang/en/compact.css @@ -0,0 +1,9007 @@ +body { + background-color: #FFFFFF; + direction: ltr; + margin: 0; + text-align: left; +} +img { + border: 0 none; +} +h1, h2, span, form, img, li { + margin: 0; + padding: 0; +} +h1 { + margin-bottom: 8px; +} +p { + margin: 14px 0; + padding: 0; +} +label { + white-space: nowrap; +} +#msfilter { + height: 1px; + position: absolute; + width: 1px; + z-index: 99; +} +.hide { + display: none; +} +div#header { + height: 67px; + min-width: 980px; + width: 100%; +} +div#mid { + float: left; + margin-bottom: 15px; + min-width: 980px; + width: 100%; +} +div#content { + float: left; + min-height: 450px; + overflow: hidden; + position: relative; +} +div.universal { + padding: 0 25px; + width: 502px; +} +div.login { + padding: 0 25px; + width: 502px; +} +div.logout { + padding: 0 25px; + width: 502px; +} +div.signup { + padding: 0 25px; + width: 502px; +} +div.activate { + padding: 0 25px; + width: 502px; +} +div.banned_cn { + padding: 0 25px; + width: 502px; +} +div.player { + padding: 43px 25px 0; + width: 502px; +} +div.alliance { + padding: 43px 25px 0; + width: 502px; +} +div.forum { + padding: 43px 25px 0; + width: 502px; +} +div.statistics { + padding: 43px 25px 0; + width: 502px; +} +div.cropfinder { + padding: 43px 25px 0; + width: 502px; +} +div.reports { + padding: 43px 25px 0; + width: 502px; +} +div.messages { + padding: 43px 25px 0; + width: 502px; +} +div.a2b { + padding: 43px 25px 0; + width: 502px; +} +div.village3 { + padding: 43px 25px 0; + width: 502px; +} +div.plus { + padding: 43px 25px 0; + width: 502px; +} +div.warsim { + padding: 43px 25px 0; + width: 502px; +} +div.map { + padding: 43px 0 0; + width: 552px; +} +div.support { + padding: 15px 25px 0; + width: 502px; +} +div.village1 { + padding: 43px 0 0 15px; + width: 537px; +} +div.village2 { + padding: 43px 6px 0; + width: 540px; +} +div.build { + width: 552px; +} +div#build { + padding: 43px 25px 0; + width: 502px; +} +div.error_site { + padding: 0; + width: 552px; +} +p.btn { + text-align: center; +} +div#textmenu { + margin: 14px 0; +} +div.clear { + clear: both; + height: 0; + width: 0; +} +table { + margin: 0; +} +td.aligned_coords { + padding: 2px 0; + white-space: nowrap; + width: 84px; +} +td.aligned_coords div { + float: left; +} +td.aligned_coords div.cox { + text-align: right; + width: 38px; +} +td.aligned_coords div.pi { + text-align: center; + width: 8px; +} +td.aligned_coords div.coy { + text-align: left; + width: 38px; +} +span.dur { + white-space: nowrap; +} +div#sysmsg { + margin: auto; + width: 502px; +} +div#ce { + left: 0; + position: fixed; + top: 0; + z-index: 999; +} +div.popup_map { + border: 0 solid #000; + display: inline; + padding-left: 80px; + padding-right: 80px; + padding-top: 31px; + position:relative; + top: 99px; + z-index: 80; +} +div.popup_map div#drag { + /* background-color: #F3F3F3;*/ + cursor: move; + height: 30px; + left: 80px; + position: absolute; + top: -525px; + width: 968px; + z-index: 2; +} +div.popup_map div#drag2 { + cursor:pointer; + height: 20px; + left: 1050px; + position: absolute; + top: -525px; + width: 20px; + z-index: 2; +} +div.popup_map a.popup_map_close { + background-color: #000; + border: 1 solid #000; + height: 30px; + position: absolute; + /*left: 990px;*/ + /*top: -520;*/ + width: 30px; + z-index: 81; +} + +div.popup3 { + border: 0 solid #000000; + display: inline; + height: 456px; + left: 180px; + padding-bottom: 0; + padding-left: 20px; + padding-top: 31px; + position: absolute; + top: 99px; + width: 430px; + z-index: 80; +} +div.popup3 div#drag { + background-color: #F3F3F3; + cursor: move; + height: 20px; + left: 11px; + position: absolute; + top: 11px; + width: 408px; + z-index: 2; +} +img.popup4 { + border: 0 solid #000000; + height: 30px; + position: absolute; + right: 0; + top: 0; + width: 30px; + z-index: 81; +} +div#ltime { + height: 15px; + left: 5px; + position: absolute; + top: 42px; + width: 220px; + z-index: 3; +} +div#dynamic_header { + background-color: #747273; + height: 28px; + min-width: 980px; + overflow: hidden; + width: 100%; +} +body.mod1 div#dynamic_header { + height: 70px; +} +body.mod1 div#dynamic_header div.dyn1 { + float: left; + height: 70px; + width: 780px; +} +body.mod1 div#dynamic_header div.dyn2 { + float: right; + height: 70px; + width: 151px; +} +body.mod1 iframe#ad_iframe { + height: 60px; + left: 168px; + position: absolute; + width: 468px; + z-index: 10; +} +body.mod1 div#ltime { + top: 83px; +} +body.mod1 div#res { + top: 137px; +} +body.mod2 div#dynamic_header { + height: 100px; +} +body.mod2 div#dynamic_header div.dyn1 { + height: 100px; + min-width: 900px; + width: 100%; +} +body.mod2 iframe#ad_iframe { + height: 90px; + left: 82px; + position: absolute; + top: 0; + width: 728px; + z-index: 10; +} +body.mod2 div#ltime { + top: 113px; +} +body.mod2 div#res { + top: 167px; +} +body.mod3 div#dynamic_header div.dyn1 { + height: 604px; + left: 692px; + position: absolute; + top: 6px; + width: 127px; + z-index: 5; +} +body.mod3 iframe#ad_iframe { + height: 600px; + left: 696px; + position: absolute; + top: 10px; + width: 120px; + z-index: 10; +} +body.mod3 div#mtop { + width: 692px; +} +body.mod3 div#plus_div { + margin-left: 237px; +} +body.mod3 div#content { + min-height: 469px; +} +body.mod3 div#side_info { + margin-left: 132px; +} +div#mtop { + height: 67px; + left: 231px; + position: relative; + top: -7px; + width: 570px; +} +div#mtop a#n1, div#mtop a#n2, div#mtop a#n3, div#mtop a#n4, div#mtop div#n5 { + float: left; + margin: 0; + padding: 0; +} +div#mtop div#n5 a { + float: left; +} +div#mtop a#plus { + float: left; + margin-left: 115px; + padding: 0; +} +div#mtop a#plus span { + display: none; +} +div#side_navi { + float: left; + position: relative; + width: 130px; +} +div#side_navi p { + line-height: 20px; + margin: 0 0 28px; +} +div#side_navi p a { + display: block; + padding-left: 12px; +} +div#side_navi p.deltimer { + margin-left: 5px; + width: 120px; +} +div#side_navi p.deltimer a { + padding: 0; + text-align: center; +} +div#side_info { + float: left; + padding-left: 10px; + padding-top: 5px; + position: relative; +} +div#side_info h5 { + margin-left: 10px; +} +div#side_info h6 { + margin: 0; + padding: 0; +} +div#side_info div.news { + border: 1px dashed Silver; + margin-bottom: 25px; + margin-left: 10px; + padding: 6px; + width: 186px; +} +div#side_info div.news h5 { + margin-bottom: 10px; + margin-left: 0; + margin-top: 0; +} +div#side_info span.time { + display: block; + margin-bottom: 10px; +} +div#side_info div.news ul { + margin-left: 15px; + padding: 0; +} +div#side_info table#llist { + margin-top: 25px; +} +div#footer { + clear: both; + width: 100%; +} +div#footer div#mfoot { + padding-bottom: 30px; + padding-top: 15px; + text-align: center; + width: 812px; +} +div#footer div#mfoot div.copyright { + direction: ltr; +} +div#res { + height: 20px; + left: 130px; + position: absolute; + top: 100px; + width: 552px; + z-index: 3; +} +div#res table { + background-color: #FFFFFF; + margin: auto; + width: auto; +} +div#res table td { + padding: 1px; +} +div#res table img { + margin-left: 5px; +} +div.login h1 { + text-align: center; +} +div.login p { + line-height: 17px; +} +div.login p.error_box { + border: 1px dashed #C0C0C0; + padding: 6px; +} +div.logout img.roman { + float: right; +} +div.signup h1 { + text-align: center; +} +div.signup p { + line-height: 17px; +} +div.signup p.info { + text-align: center; +} +div.signup img.roman { + float: right; +} +div.signup table#sign_input { + margin-bottom: 15px; +} +div.signup div#activation { + float: left; + margin-top: 15px; + width: 40%; +} +div.signup div#not_yet { + text-align: center; +} +div.signup div#no_mail { + float: right; + margin-top: 15px; + width: 60%; +} +div.signup .timer, div.signup .timer #timer1 { + text-align: center; +} +div.activate h1 { + text-align: center; +} +div.activate h6 { + margin: 0; +} +div.activate p { + line-height: 17px; +} +div.activate p.info { + text-align: center; +} +div.activate ul { + margin: 14px 0 20px; + padding-left: 20px; +} +div.village1 h1 { + height: 29px; + left: 10px; + position: relative; + z-index: 500; +} +div.village1 h1 div { + float: left; +} +div.village1 h1 div#loyality { + position: absolute; + top: 30px; +} +div.village1 div#village_map { + float: left; + height: 264px; + margin-bottom: 15px; + position: relative; + width: 300px; +} +div.village1 img#resfeld { + height: 264px; + left: 0; + position: absolute; + width: 300px; + z-index: 20; +} +div.village1 img.reslevel { + height: 12px; + position: absolute; + width: 17px; + z-index: 10; +} +div.village1 img.rf1 { + left: 93px; + top: 27px; +} +div.village1 img.rf2 { + left: 156px; + top: 26px; +} +div.village1 img.rf3 { + left: 216px; + top: 41px; +} +div.village1 img.rf4 { + left: 38px; + top: 59px; +} +div.village1 img.rf5 { + left: 130px; + top: 67px; +} +div.village1 img.rf6 { + left: 195px; + top: 87px; +} +div.village1 img.rf7 { + left: 253px; + top: 81px; +} +div.village1 img.rf8 { + left: 23px; + top: 111px; +} +div.village1 img.rf9 { + left: 74px; + top: 104px; +} +div.village1 img.rf10 { + left: 205px; + top: 136px; +} +div.village1 img.rf11 { + left: 260px; + top: 139px; +} +div.village1 img.rf12 { + left: 33px; + top: 165px; +} +div.village1 img.rf13 { + left: 84px; + top: 158px; +} +div.village1 img.rf14 { + left: 151px; + top: 178px; +} +div.village1 img.rf15 { + left: 230px; + top: 192px; +} +div.village1 img.rf16 { + left: 79px; + top: 211px; +} +div.village1 img.rf17 { + left: 132px; + top: 223px; +} +div.village1 img.rf18 { + left: 182px; + top: 227px; +} +div.village1 div#map_details { + float: right; + margin-right: 1px; + margin-top: -29px; + width: 229px; +} +div.village1 div#map_details table { + margin-bottom: 14px; +} +div.village1 table#building_contract { + clear: both; + margin: 0 25px; +} +div.village2 h1 { + left: 25px; + position: absolute; + z-index: 30; +} +div.village2 div#village_map { + height: 448px; + position: relative; + width: 540px; +} +div.village2 div#village_map img { + position: absolute; +} +div.village2 div#village_map img.ww { + left: 155px; + z-index: 20; +} +div.village2 div#village_map div#levels { + height: 370px; + left: 23px; + position: absolute; + top: 40px; + visibility: hidden; + width: 494px; + z-index: 97; +} +div.village2 div#village_map div#levels div { + height: 17px; + line-height: 17px; + position: absolute; + text-align: center; + visibility: hidden; + width: 17px; +} +div.village2 div#village_map div#levels.on { + visibility: visible; +} +div.village2 div#village_map div#levels.on div { + visibility: visible; +} +div.village2 img#lswitch { + cursor: pointer; + height: 17px; + left: 500px; + position: absolute; + top: 443px; + width: 18px; + z-index: 500; +} +div.village2 div#village_map .dx1 { + left: 316px; + top: 161px; + z-index: 5; +} +div.village2 div#village_map .d1 { + left: 115px; + top: 52px; + z-index: 6; +} +div.village2 div#village_map .d2 { + left: 198px; + top: 27px; + z-index: 9; +} +div.village2 div#village_map .d3 { + left: 258px; + top: 17px; + z-index: 8; +} +div.village2 div#village_map .d4 { + left: 332px; + top: 32px; + z-index: 9; +} +div.village2 div#village_map .d5 { + left: 388px; + top: 81px; + z-index: 10; +} +div.village2 div#village_map .d6 { + left: 80px; + top: 91px; + z-index: 11; +} +div.village2 div#village_map .d7 { + left: 161px; + top: 98px; + z-index: 12; +} +div.village2 div#village_map .d8 { + left: 247px; + top: 81px; + z-index: 13; +} +div.village2 div#village_map .d9 { + left: 395px; + top: 122px; + z-index: 14; +} +div.village2 div#village_map .d10 { + left: 66px; + top: 161px; + z-index: 15; +} +div.village2 div#village_map .d11 { + left: 192px; + top: 126px; + z-index: 16; +} +div.village2 div#village_map .d12 { + left: 155px; + top: 152px; + z-index: 17; +} +div.village2 div#village_map .d13 { + left: 402px; + top: 180px; + z-index: 18; +} +div.village2 div#village_map .d14 { + left: 84px; + top: 200px; + z-index: 19; +} +div.village2 div#village_map .d15 { + left: 227px; + top: 196px; + z-index: 20; +} +div.village2 div#village_map .d16 { + left: 354px; + top: 213px; + z-index: 21; +} +div.village2 div#village_map .d17 { + left: 158px; + top: 236px; + z-index: 22; +} +div.village2 div#village_map .d18 { + left: 286px; + top: 247px; + z-index: 23; +} +div.village2 div#village_map .d19 { + left: 144px; + top: 267px; + z-index: 24; +} +div.village2 div#village_map .d20 { + left: 262px; + top: 276px; + z-index: 25; +} +div.village2 div#village_map .g40 { + top: 138px; +} +div.village2 div#village_map .g40_1 { + top: 125px; +} +div.village2 div#village_map .g40_2 { + top: 99px; +} +div.village2 div#village_map .g40_3 { + top: 62px; +} +div.village2 div#village_map .g40_4 { + top: 53px; +} +div.village2 div#village_map .g40_5 { + top: -10px; +} +div.village2 div#village_map .l39 { + left: 320px; + top: 190px; +} +div.village2 div#village_map .l40 { + left: 240px; + top: 350px; +} +div.village2 img.map1 { + height: 448px; + width: 540px; + z-index: 98; +} +div.village2 img.map2 { + height: 339px; + left: 63px; + top: 40px; + width: 422px; + z-index: 99; +} +div.village2 div#village_map img.rocket { + height: 140px; + width: 75px; + z-index: 20; +} +div.village2 div#village_map img.tur { + left: 161px; + top: 168px; +} +div.village2 div#village_map img.purp { + left: 265px; + top: 148px; +} +div.village2 div#village_map img.yell { + left: 200px; + top: 248px; +} +div.village2 div#village_map img.oran { + left: 300px; + top: 0; +} +div.village2 div#village_map img.green { + left: 110px; + top: 230px; +} +div.village2 div#village_map img.red { + left: 328px; + top: 210px; +} +div.village2 table#building_contract { + margin: -40px 19px 0; + position: relative; + z-index: 150; +} +div.village3 table.vil_troops { + margin-bottom: 10px; +} +div#mbig { + border: 1px solid #5A595A; + height: 572px; + width: 997px; +} +div#mbig div#lightframe { + border: 2px solid #DEDFDE; + height: 554px; + left: 7px; + position: relative; + top: 7px; + width: 979px; +} +div#mbig div#darkframe { + border: 2px solid #9C9A9C; + height: 550px; + width: 975px; +} +div#mbig a#map_popclose { + position: absolute; + right: 0; + top: 0; + z-index: 30; +} +div.map h1 { + margin-left: 25px; +} +div#mbig h1 { + left: 10px; + position: absolute; + top: 10px; + z-index: 10; +} +div#map { + position: relative; +} +div.map div#map { + height: 375px; + top: -26px; + width: 552px; +} +div#mbig div#map { + height: 550px; + left: 0; + top: 0; + width: 975px; +} +div#map div#map_content { + position: relative; +} +div.map div#map div#map_content { + height: 316px; + left: 5px; + top: 33px; + width: 540px; +} +div#mbig div#map #map_content { + height: 550px; + left: 0; + top: 0; + width: 971px; +} +div#map div#map_content div { + height: 74px; + position: absolute; + width: 74px; +} +div#map div#map_content div span { + display: block; + left: 30px; + position: absolute; + top: 56px; + z-index: 49; +} +div#map div#map_content div span.m6 { + left: 32px; + top: 58px; +} +div#map a#map_makelarge { + left: 26px; + position: absolute; + top: 39px; + z-index: 50; +} +div#map img#map_links { + position: absolute; +} +div.map div#map img#map_links { + height: 316px; + left: 5px; + top: 33px; + width: 540px; + z-index: 50; +} +div#mbig div#map img#map_links { + height: 550px; + left: 0; + top: 0; + width: 971px; + z-index: 20; +} +div#map img#map_navibox { + position: absolute; + z-index: 50; +} +div#mbig div#map img#map_navibox { + bottom: 5px; + right: 32px; +} +div.map div#map img#map_navibox { + bottom: 0; + right: 20px; +} +div#map div#map_rulers { + position: absolute; +} +div#map div#map_rulers div { + height: 12px; + position: absolute; + text-align: center; + width: 35px; +} +div#map div#map_coords { + height: 30px; + line-height: 20px; + position: absolute; + vertical-align: top; + width: 180px; + z-index: 50; +} +div.map div#map div#map_coords { + bottom: 26px; + left: 30px; +} +div#mbig div#map div#map_coords { + bottom: 5px; + left: 10px; +} +div#map div#map_coords span, div#map div#map_coords input { + float: left; + margin-right: 5px; +} +div#map div#map_coords input.text { + margin-right: 8px; + width: 28px; +} +div#map table#map_infobox { + position: absolute; + z-index: 50; +} +div.map div#map table#map_infobox { + right: 20px; + top: -7px; +} +div#mbig div#map table#map_infobox { + right: 50px; + top: 10px; +} +div.map div.cropfinder_icon { + left: 493px; + position: absolute; + top: 312px; + z-index: 100; +} +div.map div#map div#map_content div#i_0_0 { + left: 16px; + top: 104px; + z-index: 1; +} +div.map div#map div#map_content div#i_0_1 { + left: 52px; + top: 84px; + z-index: 2; +} +div.map div#map div#map_content div#i_0_2 { + left: 88px; + top: 64px; + z-index: 3; +} +div.map div#map div#map_content div#i_0_3 { + left: 124px; + top: 44px; + z-index: 4; +} +div.map div#map div#map_content div#i_0_4 { + left: 160px; + top: 24px; + z-index: 5; +} +div.map div#map div#map_content div#i_0_5 { + left: 196px; + top: 4px; + z-index: 6; +} +div.map div#map div#map_content div#i_0_6 { + left: 232px; + top: -16px; + z-index: 7; +} +div.map div#map div#map_content div#i_1_0 { + left: 53px; + top: 124px; + z-index: 2; +} +div.map div#map div#map_content div#i_1_1 { + left: 89px; + top: 104px; + z-index: 2; +} +div.map div#map div#map_content div#i_1_2 { + left: 125px; + top: 84px; + z-index: 3; +} +div.map div#map div#map_content div#i_1_3 { + left: 161px; + top: 64px; + z-index: 4; +} +div.map div#map div#map_content div#i_1_4 { + left: 197px; + top: 44px; + z-index: 5; +} +div.map div#map div#map_content div#i_1_5 { + left: 233px; + top: 24px; + z-index: 6; +} +div.map div#map div#map_content div#i_1_6 { + left: 269px; + top: 4px; + z-index: 7; +} +div.map div#map div#map_content div#i_2_0 { + left: 90px; + top: 144px; + z-index: 3; +} +div.map div#map div#map_content div#i_2_1 { + left: 126px; + top: 124px; + z-index: 3; +} +div.map div#map div#map_content div#i_2_2 { + left: 162px; + top: 104px; + z-index: 3; +} +div.map div#map div#map_content div#i_2_3 { + left: 198px; + top: 84px; + z-index: 4; +} +div.map div#map div#map_content div#i_2_4 { + left: 234px; + top: 64px; + z-index: 5; +} +div.map div#map div#map_content div#i_2_5 { + left: 270px; + top: 44px; + z-index: 6; +} +div.map div#map div#map_content div#i_2_6 { + left: 306px; + top: 24px; + z-index: 7; +} +div.map div#map div#map_content div#i_3_0 { + left: 127px; + top: 164px; + z-index: 4; +} +div.map div#map div#map_content div#i_3_1 { + left: 163px; + top: 144px; + z-index: 4; +} +div.map div#map div#map_content div#i_3_2 { + left: 199px; + top: 124px; + z-index: 4; +} +div.map div#map div#map_content div#i_3_3 { + left: 235px; + top: 104px; + z-index: 4; +} +div.map div#map div#map_content div#i_3_4 { + left: 271px; + top: 84px; + z-index: 5; +} +div.map div#map div#map_content div#i_3_5 { + left: 307px; + top: 64px; + z-index: 6; +} +div.map div#map div#map_content div#i_3_6 { + left: 343px; + top: 44px; + z-index: 7; +} +div.map div#map div#map_content div#i_4_0 { + left: 164px; + top: 184px; + z-index: 5; +} +div.map div#map div#map_content div#i_4_1 { + left: 200px; + top: 164px; + z-index: 5; +} +div.map div#map div#map_content div#i_4_2 { + left: 236px; + top: 144px; + z-index: 5; +} +div.map div#map div#map_content div#i_4_3 { + left: 272px; + top: 124px; + z-index: 5; +} +div.map div#map div#map_content div#i_4_4 { + left: 308px; + top: 104px; + z-index: 5; +} +div.map div#map div#map_content div#i_4_5 { + left: 344px; + top: 84px; + z-index: 6; +} +div.map div#map div#map_content div#i_4_6 { + left: 380px; + top: 64px; + z-index: 7; +} +div.map div#map div#map_content div#i_5_0 { + left: 201px; + top: 204px; + z-index: 6; +} +div.map div#map div#map_content div#i_5_1 { + left: 237px; + top: 184px; + z-index: 6; +} +div.map div#map div#map_content div#i_5_2 { + left: 273px; + top: 164px; + z-index: 6; +} +div.map div#map div#map_content div#i_5_3 { + left: 309px; + top: 144px; + z-index: 6; +} +div.map div#map div#map_content div#i_5_4 { + left: 345px; + top: 124px; + z-index: 6; +} +div.map div#map div#map_content div#i_5_5 { + left: 381px; + top: 104px; + z-index: 6; +} +div.map div#map div#map_content div#i_5_6 { + left: 417px; + top: 84px; + z-index: 7; +} +div.map div#map div#map_content div#i_6_0 { + left: 238px; + top: 224px; + z-index: 7; +} +div.map div#map div#map_content div#i_6_1 { + left: 274px; + top: 204px; + z-index: 7; +} +div.map div#map div#map_content div#i_6_2 { + left: 310px; + top: 184px; + z-index: 7; +} +div.map div#map div#map_content div#i_6_3 { + left: 346px; + top: 164px; + z-index: 7; +} +div.map div#map div#map_content div#i_6_4 { + left: 382px; + top: 144px; + z-index: 7; +} +div.map div#map div#map_content div#i_6_5 { + left: 418px; + top: 124px; + z-index: 7; +} +div.map div#map div#map_content div#i_6_6 { + left: 454px; + top: 104px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_0_0 { + left: 11px; + top: 220px; + z-index: 1; +} +div#mbig div#map div#map_content div#i_0_1 { + left: 47px; + top: 200px; + z-index: 2; +} +div#mbig div#map div#map_content div#i_0_2 { + left: 83px; + top: 180px; + z-index: 3; +} +div#mbig div#map div#map_content div#i_0_3 { + left: 119px; + top: 160px; + z-index: 4; +} +div#mbig div#map div#map_content div#i_0_4 { + left: 155px; + top: 140px; + z-index: 5; +} +div#mbig div#map div#map_content div#i_0_5 { + left: 191px; + top: 120px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_0_6 { + left: 227px; + top: 100px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_0_7 { + left: 263px; + top: 80px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_0_8 { + left: 299px; + top: 60px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_0_9 { + left: 335px; + top: 40px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_0_10 { + left: 371px; + top: 20px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_0_11 { + left: 407px; + top: 0; + z-index: 12; +} +div#mbig div#map div#map_content div#i_0_12 { + left: 443px; + top: -20px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_1_0 { + left: 48px; + top: 240px; + z-index: 2; +} +div#mbig div#map div#map_content div#i_1_1 { + left: 84px; + top: 220px; + z-index: 2; +} +div#mbig div#map div#map_content div#i_1_2 { + left: 120px; + top: 200px; + z-index: 3; +} +div#mbig div#map div#map_content div#i_1_3 { + left: 156px; + top: 180px; + z-index: 4; +} +div#mbig div#map div#map_content div#i_1_4 { + left: 192px; + top: 160px; + z-index: 5; +} +div#mbig div#map div#map_content div#i_1_5 { + left: 228px; + top: 140px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_1_6 { + left: 264px; + top: 120px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_1_7 { + left: 300px; + top: 100px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_1_8 { + left: 336px; + top: 80px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_1_9 { + left: 372px; + top: 60px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_1_10 { + left: 408px; + top: 40px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_1_11 { + left: 444px; + top: 20px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_1_12 { + left: 480px; + top: 0; + z-index: 13; +} +div#mbig div#map div#map_content div#i_2_0 { + left: 85px; + top: 260px; + z-index: 3; +} +div#mbig div#map div#map_content div#i_2_1 { + left: 121px; + top: 240px; + z-index: 3; +} +div#mbig div#map div#map_content div#i_2_2 { + left: 157px; + top: 220px; + z-index: 3; +} +div#mbig div#map div#map_content div#i_2_3 { + left: 193px; + top: 200px; + z-index: 4; +} +div#mbig div#map div#map_content div#i_2_4 { + left: 229px; + top: 180px; + z-index: 5; +} +div#mbig div#map div#map_content div#i_2_5 { + left: 265px; + top: 160px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_2_6 { + left: 301px; + top: 140px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_2_7 { + left: 337px; + top: 120px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_2_8 { + left: 373px; + top: 100px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_2_9 { + left: 409px; + top: 80px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_2_10 { + left: 445px; + top: 60px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_2_11 { + left: 481px; + top: 40px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_2_12 { + left: 517px; + top: 20px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_3_0 { + left: 122px; + top: 280px; + z-index: 4; +} +div#mbig div#map div#map_content div#i_3_1 { + left: 158px; + top: 260px; + z-index: 4; +} +div#mbig div#map div#map_content div#i_3_2 { + left: 194px; + top: 240px; + z-index: 4; +} +div#mbig div#map div#map_content div#i_3_3 { + left: 230px; + top: 220px; + z-index: 4; +} +div#mbig div#map div#map_content div#i_3_4 { + left: 266px; + top: 200px; + z-index: 5; +} +div#mbig div#map div#map_content div#i_3_5 { + left: 302px; + top: 180px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_3_6 { + left: 338px; + top: 160px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_3_7 { + left: 374px; + top: 140px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_3_8 { + left: 410px; + top: 120px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_3_9 { + left: 446px; + top: 100px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_3_10 { + left: 482px; + top: 80px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_3_11 { + left: 518px; + top: 60px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_3_12 { + left: 554px; + top: 40px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_4_0 { + left: 159px; + top: 300px; + z-index: 5; +} +div#mbig div#map div#map_content div#i_4_1 { + left: 195px; + top: 280px; + z-index: 5; +} +div#mbig div#map div#map_content div#i_4_2 { + left: 231px; + top: 260px; + z-index: 5; +} +div#mbig div#map div#map_content div#i_4_3 { + left: 267px; + top: 240px; + z-index: 5; +} +div#mbig div#map div#map_content div#i_4_4 { + left: 303px; + top: 220px; + z-index: 5; +} +div#mbig div#map div#map_content div#i_4_5 { + left: 339px; + top: 200px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_4_6 { + left: 375px; + top: 180px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_4_7 { + left: 411px; + top: 160px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_4_8 { + left: 447px; + top: 140px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_4_9 { + left: 483px; + top: 120px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_4_10 { + left: 519px; + top: 100px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_4_11 { + left: 555px; + top: 80px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_4_12 { + left: 591px; + top: 60px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_5_0 { + left: 196px; + top: 320px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_5_1 { + left: 232px; + top: 300px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_5_2 { + left: 268px; + top: 280px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_5_3 { + left: 304px; + top: 260px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_5_4 { + left: 340px; + top: 240px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_5_5 { + left: 376px; + top: 220px; + z-index: 6; +} +div#mbig div#map div#map_content div#i_5_6 { + left: 412px; + top: 200px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_5_7 { + left: 448px; + top: 180px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_5_8 { + left: 484px; + top: 160px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_5_9 { + left: 520px; + top: 140px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_5_10 { + left: 556px; + top: 120px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_5_11 { + left: 592px; + top: 100px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_5_12 { + left: 628px; + top: 80px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_6_0 { + left: 233px; + top: 340px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_6_1 { + left: 269px; + top: 320px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_6_2 { + left: 305px; + top: 300px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_6_3 { + left: 341px; + top: 280px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_6_4 { + left: 377px; + top: 260px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_6_5 { + left: 413px; + top: 240px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_6_6 { + left: 449px; + top: 220px; + z-index: 7; +} +div#mbig div#map div#map_content div#i_6_7 { + left: 485px; + top: 200px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_6_8 { + left: 521px; + top: 180px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_6_9 { + left: 557px; + top: 160px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_6_10 { + left: 593px; + top: 140px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_6_11 { + left: 629px; + top: 120px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_6_12 { + left: 665px; + top: 100px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_7_0 { + left: 270px; + top: 360px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_7_1 { + left: 306px; + top: 340px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_7_2 { + left: 342px; + top: 320px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_7_3 { + left: 378px; + top: 300px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_7_4 { + left: 414px; + top: 280px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_7_5 { + left: 450px; + top: 260px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_7_6 { + left: 486px; + top: 240px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_7_7 { + left: 522px; + top: 220px; + z-index: 8; +} +div#mbig div#map div#map_content div#i_7_8 { + left: 558px; + top: 200px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_7_9 { + left: 594px; + top: 180px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_7_10 { + left: 630px; + top: 160px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_7_11 { + left: 666px; + top: 140px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_7_12 { + left: 702px; + top: 120px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_8_0 { + left: 307px; + top: 380px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_8_1 { + left: 343px; + top: 360px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_8_2 { + left: 379px; + top: 340px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_8_3 { + left: 415px; + top: 320px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_8_4 { + left: 451px; + top: 300px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_8_5 { + left: 487px; + top: 280px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_8_6 { + left: 523px; + top: 260px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_8_7 { + left: 559px; + top: 240px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_8_8 { + left: 595px; + top: 220px; + z-index: 9; +} +div#mbig div#map div#map_content div#i_8_9 { + left: 631px; + top: 200px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_8_10 { + left: 667px; + top: 180px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_8_11 { + left: 703px; + top: 160px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_8_12 { + left: 739px; + top: 140px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_9_0 { + left: 344px; + top: 400px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_1 { + left: 380px; + top: 380px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_2 { + left: 416px; + top: 360px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_3 { + left: 452px; + top: 340px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_4 { + left: 488px; + top: 320px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_5 { + left: 524px; + top: 300px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_6 { + left: 560px; + top: 280px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_7 { + left: 596px; + top: 260px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_8 { + left: 632px; + top: 240px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_9 { + left: 668px; + top: 220px; + z-index: 10; +} +div#mbig div#map div#map_content div#i_9_10 { + left: 704px; + top: 200px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_9_11 { + left: 740px; + top: 180px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_9_12 { + left: 776px; + top: 160px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_10_0 { + left: 381px; + top: 420px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_1 { + left: 417px; + top: 400px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_2 { + left: 453px; + top: 380px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_3 { + left: 489px; + top: 360px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_4 { + left: 525px; + top: 340px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_5 { + left: 561px; + top: 320px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_6 { + left: 597px; + top: 300px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_7 { + left: 633px; + top: 280px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_8 { + left: 669px; + top: 260px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_9 { + left: 705px; + top: 240px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_10 { + left: 741px; + top: 220px; + z-index: 11; +} +div#mbig div#map div#map_content div#i_10_11 { + left: 777px; + top: 200px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_10_12 { + left: 813px; + top: 180px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_11_0 { + left: 418px; + top: 440px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_1 { + left: 454px; + top: 420px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_2 { + left: 490px; + top: 400px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_3 { + left: 526px; + top: 380px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_4 { + left: 562px; + top: 360px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_5 { + left: 598px; + top: 340px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_6 { + left: 634px; + top: 320px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_7 { + left: 670px; + top: 300px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_8 { + left: 706px; + top: 280px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_9 { + left: 742px; + top: 260px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_10 { + left: 778px; + top: 240px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_11 { + left: 814px; + top: 220px; + z-index: 12; +} +div#mbig div#map div#map_content div#i_11_12 { + left: 850px; + top: 200px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_0 { + left: 455px; + top: 460px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_1 { + left: 491px; + top: 440px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_2 { + left: 527px; + top: 420px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_3 { + left: 563px; + top: 400px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_4 { + left: 599px; + top: 380px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_5 { + left: 635px; + top: 360px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_6 { + left: 671px; + top: 340px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_7 { + left: 707px; + top: 320px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_8 { + left: 743px; + top: 300px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_9 { + left: 779px; + top: 280px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_10 { + left: 815px; + top: 260px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_11 { + left: 851px; + top: 240px; + z-index: 13; +} +div#mbig div#map div#map_content div#i_12_12 { + left: 887px; + top: 220px; + z-index: 13; +} +div.map div#map div#map_rulers { + height: 316px; + left: 5px; + top: 34px; + width: 540px; + z-index: 30; +} +div.map div#map div#map_rulers #mx0 { + left: 9px; + top: 172px; +} +div.map div#map div#map_rulers #mx1 { + left: 45px; + top: 192px; +} +div.map div#map div#map_rulers #mx2 { + left: 81px; + top: 212px; +} +div.map div#map div#map_rulers #mx3 { + left: 117px; + top: 232px; +} +div.map div#map div#map_rulers #mx4 { + left: 153px; + top: 252px; +} +div.map div#map div#map_rulers #mx5 { + left: 189px; + top: 272px; +} +div.map div#map div#map_rulers #mx6 { + left: 225px; + top: 292px; +} +div.map div#map div#map_rulers #my0 { + left: 9px; + top: 128px; +} +div.map div#map div#map_rulers #my1 { + left: 45px; + top: 108px; +} +div.map div#map div#map_rulers #my2 { + left: 81px; + top: 88px; +} +div.map div#map div#map_rulers #my3 { + left: 117px; + top: 68px; +} +div.map div#map div#map_rulers #my4 { + left: 153px; + top: 48px; +} +div.map div#map div#map_rulers #my5 { + left: 189px; + top: 28px; +} +div.map div#map div#map_rulers #my6 { + left: 225px; + top: 8px; +} +div#mbig div#map div#map_rulers { + height: 550px; + left: 0; + top: 0; + width: 971px; + z-index: 10; +} +div#mbig div#map div#map_rulers div#mx0 { + left: 4px; + top: 288px; +} +div#mbig div#map div#map_rulers div#mx1 { + left: 40px; + top: 308px; +} +div#mbig div#map div#map_rulers div#mx2 { + left: 76px; + top: 328px; +} +div#mbig div#map div#map_rulers div#mx3 { + left: 112px; + top: 348px; +} +div#mbig div#map div#map_rulers div#mx4 { + left: 148px; + top: 368px; +} +div#mbig div#map div#map_rulers div#mx5 { + left: 184px; + top: 388px; +} +div#mbig div#map div#map_rulers div#mx6 { + left: 220px; + top: 408px; +} +div#mbig div#map div#map_rulers div#mx7 { + left: 256px; + top: 428px; +} +div#mbig div#map div#map_rulers div#mx8 { + left: 292px; + top: 448px; +} +div#mbig div#map div#map_rulers div#mx9 { + left: 328px; + top: 469px; +} +div#mbig div#map div#map_rulers div#mx10 { + left: 364px; + top: 489px; +} +div#mbig div#map div#map_rulers div#mx11 { + left: 400px; + top: 509px; +} +div#mbig div#map div#map_rulers div#mx12 { + left: 436px; + top: 529px; +} +div#mbig div#map div#map_rulers div#my0 { + left: 4px; + top: 244px; +} +div#mbig div#map div#map_rulers div#my1 { + left: 40px; + top: 224px; +} +div#mbig div#map div#map_rulers div#my2 { + left: 76px; + top: 204px; +} +div#mbig div#map div#map_rulers div#my3 { + left: 112px; + top: 184px; +} +div#mbig div#map div#map_rulers div#my4 { + left: 148px; + top: 164px; +} +div#mbig div#map div#map_rulers div#my5 { + left: 184px; + top: 144px; +} +div#mbig div#map div#map_rulers div#my6 { + left: 220px; + top: 124px; +} +div#mbig div#map div#map_rulers div#my7 { + left: 256px; + top: 104px; +} +div#mbig div#map div#map_rulers div#my8 { + left: 292px; + top: 84px; +} +div#mbig div#map div#map_rulers div#my9 { + left: 328px; + top: 64px; +} +div#mbig div#map div#map_rulers div#my10 { + left: 364px; + top: 43px; +} +div#mbig div#map div#map_rulers div#my11 { + left: 400px; + top: 23px; +} +div#mbig div#map div#map_rulers div#my12 { + left: 436px; + top: 3px; +} +div#mbig div#map div#map_rulers div#mapa { + height: 548px; + width: 960px; +} +div.map h1 div { + float: left; +} +div.map div#dmain { + left: 25px; + margin-bottom: -16px; + position: relative; + top: -7px; + z-index: 100; +} +div.map img#detailed_map { + float: left; + left: 15px; + margin-bottom: 15px; + position: relative; +} +div.map div#map_details { + float: right; + margin-right: 3px; + margin-top: 25px; +} +div.map div#map_details table { + margin-bottom: 15px; +} +div.map table#options { + clear: both; + margin: 0 25px; +} +div.map table#raidFavs { + margin: 0 auto; +} +div.map table#raidDetails { + margin: 25px auto 0; +} +div.player table { + margin-top: 25px; +} +div.player table#profile { + margin-top: 0; +} +div.player table#edit { + margin-top: 0; +} +div.player table#links { + margin-top: 0; +} +div.player table#change_pass { + margin-top: 0; +} +div.player table#gpack { + margin-top: 0; +} +div.player div#gpack_popup { + border: 0 solid #000000; + height: 290px; + padding: 30px; + position: absolute; + top: 80px; + width: 442px; + z-index: 80; +} +div.player div#gpack_popup img.logo { + float: left; + margin-right: 20px; +} +div.player div#gpack_popup ul { + margin-left: 0; + margin-top: 20px; + padding-left: 25px; +} +div.player div#gpack_popup div.btn { + bottom: 20px; + position: absolute; + text-align: center; + width: 442px; +} +div.player div#gpack_popup div#gpack_activate { + display: none; +} +div.player div#gpack_popup div#gpack_activate img#preview { + margin: 10px 0; +} +div.player p.ie_notice { + border: 1px dashed #C0C0C0; + padding: 6px; +} +div.alliance table#member { + margin-top: 25px; +} +div.alliance table#rights { + margin-top: 10px; +} +div.alliance table#medals { + margin-top: 25px; +} +div.alliance table#own { + margin-top: 25px; +} +div.alliance table#chat_input { + background-color: white; +} +div.alliance div#rooms img.del { + position: relative; + top: 3px; +} +div.alliance span.roomselector { + background-color: #FFFFFF; + border: 1px solid #C0C0C0; + float: left; + height: 17px; + padding: 3px; + width: 140px; +} +div.alliance span.roomselectorActive { + background-color: #F0FFF0; + border: 1px solid #71D000; + float: left; + height: 17px; + padding: 3px; + width: 140px; +} +div.alliance div.chatHeader { + background-color: #FFFFFF; + border: 1px solid #C0C0C0; + height: 16px; + padding: 2px; + text-align: center; + width: 496px; +} +div.alliance table.dipl, div.alliance div#box { + float: left; +} +div.alliance table.infos { + float: right; +} +div.alliance table#own { + margin-top: 25px; +} +div.alliance table#foreign { + margin-top: 10px; +} +div.alliance table#existing { + margin-top: 10px; +} +div.alliance table#tip { + margin-top: 25px; +} +div.alliance div#submenu { + position: absolute; + right: 29px; + top: 104px; +} +div.alliance div#submenu img { + float: right; + margin-left: 5px; +} +div.forum a.mad { + left: -15px; + margin-left: 50%; + position: relative; + top: 50px; +} +div.forum img.switch_admin { + margin-left: 5px; +} +div.forum h4 { + margin: 0 0 15px 5px; +} +div.forum table#public, div.forum table#confederation, div.forum table#alliance, div.forum table#closed { + margin-top: 10px; +} +div.forum table#conf_list, div.forum table#ally_list, div.forum table#user_list, div.forum table#non_conf_list, div.forum table#open_user { + margin-top: 15px; +} +div.statistics table { + margin-top: 5px; +} +div.statistics div#submenu { + position: absolute; + right: 29px; + top: 107px; +} +div.statistics div#submenu img { + float: right; + margin-left: 5px; +} +div.statistics div#submenu2 { + left: 29px; + position: absolute; + top: 107px; +} +div.statistics div#submenu2 img { + float: left; + margin-right: 5px; +} +div.statistics table.top10 { + margin-bottom: 5px; + margin-top: 10px; +} +div.statistics div.graph { + height: 220px; + padding-left: 60px; + padding-top: 20px; + width: 430px; +} +div.statistics div.legende { + background-color: #EBEBEB; + border: 1px solid black; + float: left; + line-height: 17px; + padding: 3px 5px; +} +div.statistics div.legende div.box { + border: 1px solid black; + float: left; + font-size: 0; + height: 9px; + margin: 4px 4px 0; + width: 9px; +} +div.reports td.report_content table { + margin-bottom: 15px; +} +div.messages div.msg_head { + height: 41px; + width: 440px; +} +div.messages div.msg_content { + padding-top: 3px; + position: relative; + width: 440px; +} +div.messages div.msg_content img#label { + float: left; + margin-left: 12px; +} +div.messages div.msg_content div#heading { + float: left; + padding-left: 8px; +} +div.messages div.msg_content div#heading * { + height: 19px; + margin: 0; + padding: 0; +} +div.messages div.msg_content div.line { + height: 30px; + width: 440px; +} +div.messages div.msg_content p.btn { + margin: 7px 0 0; + text-align: center; +} +div.messages div.msg_foot { + height: 18px; + width: 440px; +} +div.messages div#read_content div#heading div { + width: 250px; +} +div.messages div#read_content div#time { + float: right; + margin-top: 2px; + padding-right: 12px; +} +div.messages div#read_content div#time div { + height: 19px; + margin: 0; + padding: 0; + text-align: right; +} +div.messages div.message { + border: medium none; + line-height: 16px; + margin-left: 12px; + min-height: 256px; + overflow-x: auto; + overflow-y: hidden; + padding: 0 0 20px; + width: 412px; +} +div.messages #write_content div#heading input { + border: medium none; + width: 267px; +} +div.messages #write_content a#adbook { + display: block; + float: right; + height: 29px; + margin: 7px 12px 0; + width: 48px; +} +div.messages #write_content textarea { + border: medium none; + height: 258px; + line-height: 16px; + margin-left: 12px; + padding: 0; + width: 412px; +} +div.messages div#adressbook { + bottom: -9px; + height: 273px; + left: 1px; + padding: 15px; + position: absolute; + text-align: center; + width: 405px; + z-index: 80; +} +div.messages div#adressbook img#close { + border: 0 solid #000000; + height: 20px; + left: 404px; + position: absolute; + top: 9px; + width: 20px; + z-index: 81; +} +div.messages div#adressbook span.enough { + margin-top: 6px; + text-align: center; +} +div.messages table#friendlist { + margin-top: 5px; +} +div.messages div#block { + height: 419px; + margin: 0 auto; + position: relative; + width: 430px; +} +div.messages div#block textarea { + border: medium none; + height: 256px; + left: 80px; + line-height: 16px; + padding: 0; + position: absolute; + top: 40px; + width: 265px; +} +div.messages div#block p.btn { + position: relative; + top: 305px; +} +div#build p.switch { + text-align: right; +} +div#build h2 { + margin: 15px 0 10px; +} +div#build a.build_logo img { + margin-left: 5px; + position: absolute; + right: 13px; + top: 35px; +} +div#build p.build_desc { + padding-right: 70px; +} +div#build table.under_progress { + margin-top: 15px; +} +div#build.gid0 h1 { + margin-bottom: 25px; +} +div#build.gid0 h2 { + margin-bottom: 15px; +} +div#build.gid0 table.new_building { + margin-bottom: 25px; +} +div#build.gid15 h2 { + margin-top: 25px; +} +div#build.gid15 select.dropdown { + width: 200px; +} +div#build.gid15 input#btn_demolish { + margin-left: 15px; + position: relative; + top: 5px; +} +div#build a.build_logo img.g16 { + top: 45px; +} +div#build.gid16 div#textmenu { + position: relative; + white-space: nowrap; +} +div#build.gid16 div#textmenu a { + background-color: #FFFFFF; +} +div#build.gid16 h4 { + margin-top: 20px; +} +div#build.gid16 table.troop_details { + margin-bottom: 15px; +} +div#build.gid16 table#raidList { + margin-bottom: 10px; +} +div#build.gid17 table.send_res { + float: left; +} +div#build.gid17 table.res_target { + float: left; + margin-left: 20px; +} +div#build.gid17 table.buy_select { + float: left; +} +div#build.gid17 table#ratio_select { + margin-left: 20px; +} +div#build.gid17 table#bid_select { + margin-left: 20px; +} +div#build.gid17 table#range { + margin-top: 20px; +} +div#build.gid17 p#submitText { + display: block; + margin-top: 5px; +} +div#build.gid17 p#submitButton { + display: none; + margin-top: 5px; +} +div#build.gid17 table.traders { + margin-bottom: 15px; +} +div#build.gid17 p.info { + margin-top: 5px; +} +div#build.gid17 p.info img { + margin-right: 2px; +} +div#build.gid26 table#main { + margin-top: 15px; +} +div#build.gid27 table#near { + margin-top: 20px; +} +div#build.gid40 p.build_desc { + padding-right: 200px; +} +div#build.gid40 p.nam { + text-align: center; +} +body.manual img.troops { + position: absolute; + right: 10px; + top: 80px; +} +body.manual img.buildings { + position: absolute; + right: 10px; + top: 170px; +} +body.manual img.navi { + left: 145px; + position: absolute; + top: 420px; + z-index: 82; +} +body.manual table#troop_info { + margin: 6px 0 30px 2px; +} +body.manual div#t_desc { + margin-top: 30px; +} +body.manual img#big_unit { + left: 260px; + position: absolute; + top: 95px; +} +body.manual div#prereqs { + margin-top: 15px; +} +body.manual img.building { + float: right; + margin: -40px 25px 10px 10px; +} +body.manual img.g16 { + margin: 0 25px 10px 10px; +} +body.manual img.g40 { + margin: -20px 15px 10px 10px; +} +body.manual p.medals { + text-align: center; +} +body.manual ul.goldclub { + margin-top: 0; + padding-left: 25px; +} +div#side_info div#anm { + border: 1px solid #555555; + position: absolute; + z-index: 1000; +} +div#side_info div#qge { + padding: 4px; +} +div#side_info div#qge img { + cursor: pointer; + display: block; + position: relative; +} +div.quest div#qstd { + position: relative; + width: 415px; + z-index: 10; +} +div.quest div#qstd span#qst_accpt a.qle, div.quest div#qstd span#qst_accept a.qri { + display: block; +} +div.quest div#qstd span#qst_accpt a.qle { + float: left; + text-align: left; +} +div.quest div#qstd span#qst_accpt a.qri { + float: right; + text-align: right; +} +div.quest div#qstd span.qcoords input { + width: 60px; +} +div.quest div.rew p.ta_aw { + margin: 0 0 5px; +} +div.quest div#qstd input.qb1 { + float: left; + margin: 0 12px; +} +div.quest div#qstd input.qb2 { + float: right; + margin: 0 12px; +} +div.a2b p.btn { + text-align: left; +} +div.a2b .slots { + margin-bottom: 10px; + margin-top: 5px; +} +div.a2b table#troops { + margin-top: 5px; +} +div.a2b table#coords { + margin: 25px 0 10px 5px; +} +div.a2b table.troop_details { + margin: 15px 0; +} +div.cropfinder div.cropfinder_input { + margin: 15px 0; + padding: 5px; +} +div.cropfinder div.cropfinder_input div.row { + height: 19px; + line-height: 19px; + margin: 10px 0; + vertical-align: middle; +} +div.cropfinder div.cropfinder_input div.row span.cropfinder_head { + display: block; + float: left; + width: 250px; +} +div.cropfinder div.cropfinder_input div.row input.text { + margin: 0 5px; + width: 50px; +} +div.cropfinder div.cropfinder_input div.row input.radio { + margin-right: 1px; + position: relative; + top: 1px; +} +body.presto div.cropfinder div.cropfinder_input div.row input.radio { + top: 0; +} +body.ie6 div.cropfinder div.cropfinder_input div.row input.radio, body.ie7 div.cropfinder div.cropfinder_input div.row input.radio { + top: -2px; +} +div.cropfinder div.cropfinder_input div.row input.check { + position: relative; + top: 2px; +} +div.cropfinder div.cropfinder_input p.btn { + margin-top: 20px; + text-align: left; +} +div.plus table.lang_ltr { + direction: ltr; +} +div.plus table.lang_rtl { + direction: rtl; +} +div.plus .none { + text-align: center; +} +div.plus p.btn { + text-align: left; +} +div.plus img.gold { + margin-right: 2px; +} +div.plus p#product_selection { + margin: 2px 0; + text-align: right; +} +div.plus p#product_selection select.dropdown { + padding: 2px 3px; +} +div.plus p#orders_link { + margin: 2px 0; + text-align: right; +} +div.plus div#products { + margin-left: -6px; + width: 512px; +} +div.plus div#products table.product { + margin: 10px 6px 5px; +} +body.ie6 div.plus div#products table.product { + margin: 10px 5px 5px; +} +div.plus div#products table.lang_ltr { + float: left; +} +div.plus div#products table.lang_rtl { + float: right; +} +div.plus p#plus_info { + padding-top: 30px; + text-align: center; +} +div.plus table.rate_details { + margin-bottom: 25px; + margin-top: 10px; +} +div.plus table#open_orders { + margin-top: 10px; +} +div.plus table#gold_features { + margin-top: 25px; +} +div.plus table.plusFunctions { + margin-bottom: 25px; +} +div.warsim table#select { + margin-top: 10px; +} +div.warsim table#attacker { + float: left; +} +div.warsim table#defender { + float: right; +} +div.warsim table.fill_in { + margin-bottom: 15px; +} +div.warsim table.results { + margin-top: 15px; +} +div.banned_cn table { + line-height: 16px; + margin-bottom: 15px; +} +div.banned_cn table th, div.banned_cn table td { + padding: 2px 3px; +} +div.banned_cn table td { + text-align: center; +} +div.banned_cn table .ra { + padding-right: 7px; + text-align: right; + white-space: nowrap; + width: 5%; +} +div.banned_cn table .pla { + padding-left: 7px; + text-align: left; +} +div.banned_cn table .rea, div.banned_cn table .dur, div.banned_cn table .al { + width: 25%; +} +div.banned_cn .no_info { + color: #C0C0C0; +} +#medal_mouseover { + background-color: #F5F5F5; + border: 1px solid #BBBBBB; + padding: 2px 5px; + position: absolute; + width: 250px; + z-index: 999; +} +#medal_mouseover table { + background: none repeat scroll 0 0 transparent; +} +#medal_mouseover table th, #medal_mouseover table td { + background: none repeat scroll 0 0 transparent; +} +#medal_mouseover table th { + padding-right: 10px; + width: 50px; +} +.left { + text-align: left; +} +.right { + text-align: right; +} +.center { + text-align: center; +} +.middle { + vertical-align: middle; +} +.nbr { + white-space: nowrap; +} +input.disable { + background-color: #EEEEEE; + border-color: #AAAAAA; +} +.f16 { + font-size: 16pt; +} +.f135 { + font-size: 13.5pt; +} +.f10 { + font-size: 10pt; +} +.f9 { + font-size: 9pt; + font-weight: normal; + line-height: 140%; +} +.f8 { + font-size: 8pt; +} +.f75 { + font-size: 7.5pt; +} +.f7 { + font-size: 7pt; +} +.f6 { + font-size: 6pt; +} +.b { + font-weight: bold; +} +.t { + font-weight: normal; +} +.e { + color: #FF8000; +} +.c { + color: #C0C0C0; +} +.c0 { + color: #000000; +} +.c1 { + color: #71D000; +} +.c2 { + color: #FF8000; +} +.c3 { + color: #228B22; +} +.c4 { + color: #F2C700; +} +.c5 { + color: #FF0000; +} +.c6 { + color: #B500A3; +} +.dashed { + border: 1px dashed #C0C0C0; + border-collapse: separate; +} +#lmid3 .nb { + background-color: #FFFFFF; + left: 580px; + position: absolute; + top: 63px; + width: 200px; + z-index: 5; +} +#igm { + border: 0 none; + font-family: Verdana,Arial,Helvetica,sans-serif; +} +input.std { + font-size: 8pt; + font-weight: bold; + height: 14pt; +} +.old_p1 { + border-color: #C0C0C0; + border-style: dashed; + border-width: 1px; + padding: 6px; +} +.p2 { + border-color: #C0C0C0; + border-style: dashed; + border-width: 1px; + padding: 3px; +} +.tbg { + background-color: #C0C0C0; + text-align: center; + width: 100%; +} +table.tbg tr { + background-color: #FFFFFF; +} +.rbg { + background-color: #FFFFFF; + background-image: url("../../img/a/c2.gif"); + font-weight: bold; +} +table.tbg tr.cbg1 td, td.cbg1 { + background-color: #F5F5F5; +} +td.cbg2 { + background-color: #71D000; +} +.dflags1 { + color: #FFFFFF; + float: right; + font-size: 6pt; + padding-left: 1px; + padding-right: 1px; + padding-top: 1px; + position: relative; + text-align: center; +} +.dflags2 { + padding-top: 1px; +} +.ddb { + float: left; +} +.desc2div { + overflow: hidden; + width: 235px; +} +div.activation_time { + padding-left: 5px; + padding-top: 5px; + text-align: center; +} +.facebooklink { + display: block; + height: 100px; +} +.facebooklink img.facebook100 { + border: 0 none; + float: left; + margin-right: 20px; +} +.facebooklink p { + color: black; + font-weight: normal; +} +.facebookteaser { + background: url("../../img/misc/goldrushteaser.gif") no-repeat scroll center bottom transparent; + border: 1px solid gray; + display: block; + height: 272px; + margin-left: 15px; + position: relative; + width: 110px; +} +div#side_navi .facebookteaser p { + margin: 0; + padding: 0 10px; + width: 90px; +} +div#side_navi .facebookteaser p.teaser2 { + display: block; + font-size: 14px; + font-weight: bold; + margin: 6px 0 10px; +} +div#side_navi .facebookteaser p.teaser3 { + font-size: 9px; + line-height: normal; +} +div#side_navi .facebookteaser p.teaser1 { + bottom: 4px; + display: block; + font-size: 12px; + height: 28px; + left: 0; + line-height: 12px; + margin: 0; + padding: 9px 5px 0; + position: absolute; + right: 0; + width: 100px; +} +.facebookteaser p { + color: black; + font-weight: normal; + text-align: center; + text-decoration: none; +} +div.fb_quest_info { + clear: both; + display: block; + font-size: 12px; + height: 90px; + padding-bottom: 10px; +} +div.fb_quest_info a { + color: black; + font-weight: normal; +} +div.fb_quest_info strong { + display: block; + padding-bottom: 8px; + padding-top: 3px; +} +input.text, select.dropdown, textarea { + border: 1px solid #71D000; + margin: 0; + padding: 2px 3px; +} +body.ie input.radio, body.gecko input.radio, body.webkit input.radio, body.ie input.check, body.gecko input.check, body.webkit input.check { + height: 13px; + margin: 0; + padding: 0; + width: 13px; +} +table { + background-color: #C0C0C0; + border-collapse: separate; + empty-cells: show; + line-height: 16px; + width: 100%; +} +table td, table th { + padding: 0; + vertical-align: middle; +} +table thead th, table tfoot th { + background-image: url("../../img/a/c2.gif"); + background-repeat: repeat; + text-align: center; +} +table thead td, table tfoot td { + background-color: #F3F3F3; + text-align: center; +} +table tbody th, table tbody td { + background-color: #FFFFFF; + text-align: left; +} +table tr.hl th, table tr.hl td { + background-color: #F0FFF0; + border-bottom: 1px solid #71D000; + border-top: 1px solid #71D000; +} +table tr.hl th.fc, table tr.hl td.fc { + border-left: 1px solid #71D000; +} +table tr.hl th.lc, table tr.hl td.lc { + border-right: 1px solid #71D000; +} +table td.empty { + height: 5px; + padding: 0; +} +div#side_info table { + background-color: #FFFFFF; + width: auto; +} +div#side_info table td { + line-height: 18px; + padding: 0; + text-align: left; + white-space: nowrap; +} +div#side_info table thead td { + background-color: #FFFFFF; + height: 22px; +} +div#side_info td.dot { + padding: 0 6px; + width: 10px; +} +div#side_info td.link { + padding-right: 10px; +} +div.login table { + background-color: #FFFFFF; + border: 1px dashed #C0C0C0; +} +div.login table tr.top th, div.login table tr.top td { + padding-bottom: 2px; + padding-top: 9px; +} +div.login table tr.btm th, div.login table tr.btm td { + padding-bottom: 9px; + padding-top: 2px; +} +div.login table th { + padding-left: 20px; + width: 38%; +} +div.login table td { + width: 62%; +} +div.login table td input.text { + width: 113px; +} +div.signup table { + background-color: #FFFFFF; + border: 1px dashed #C0C0C0; +} +div.signup table tr.top th, div.signup table tr.top td { + padding-bottom: 2px; + padding-top: 9px; +} +div.signup table tr.btm th, div.signup table tr.btm td { + padding-bottom: 9px; + padding-top: 2px; +} +div.signup table th, div.signup table td { + padding-bottom: 2px; + padding-top: 2px; +} +div.signup input.text { + width: 113px; +} +div.signup input.radio { + float: left; + margin-left: 5px; + position: relative; + top: 2px; +} +div.signup input.check { + float: left; + margin-right: 5px; + position: relative; + top: 2px; +} +div.signup table#sign_input th { + padding-left: 20px; + width: 38%; +} +div.signup table#sign_input td { + width: 62%; +} +div.signup table#sign_select { + line-height: 19px; +} +div.signup table#sign_select th, .signup #sign_select td { + padding-left: 10px; +} +div.signup table#sign_select td.nat { + width: 35%; +} +div.signup table#sign_select td.pos1 { + width: 20%; +} +div.signup table#sign_select td.pos2 { + width: 45%; +} +div.activate table { + background-color: #FFFFFF; + border: 1px dashed #C0C0C0; +} +div.activate table tr.top th, div.activate table tr.top td { + padding-bottom: 2px; + padding-top: 9px; +} +div.activate table tr.btm th, div.activate table tr.btm td { + padding-bottom: 9px; + padding-top: 2px; +} +div.activate table th { + padding-left: 20px; + width: 38%; +} +div.activate table td { + width: 62%; +} +div.village1 table { + background-color: #FFFFFF; + line-height: 19px; +} +div.village1 table thead th { + background-color: #FFFFFF; + background-image: none; + text-align: left; +} +div.village1 table tbody td { + padding: 1px 2px; +} +div.village1 table td.ico { + padding-left: 4px; + width: 18px; +} +div.village1 table td.num { + text-align: right; + white-space: nowrap; +} +div.village1 table#movements td { + padding: 1px 0; +} +div.village1 table#movements td.empty { + height: 38px; +} +div.village1 table#movements td.typ { + vertical-align: top; + width: 32px; +} +div.village1 table#movements td.typ img { + float: left; + margin: 0 1px 0 4px; + position: relative; + top: 3px; +} +div.village1 table#movements div.mov { + float: left; +} +div.village1 table#movements div.dur_r { + float: right; + padding-right: 2px; +} +div.village1 table#movements td.wrap { + line-height: 10px; +} +div.village1 table#movements div.dur_l { + float: left; + padding-bottom: 2px; +} +div.village1 table#production td.res { + width: 20%; +} +div.village1 table#production td.per { + width: 40%; +} +div.village1 table#troops td.un { + width: 80%; +} +div.village1 table#building_contract { + width: 502px; +} +div.village2 table#building_contract { + background: none repeat scroll 0 0 transparent; + line-height: 19px; + width: 502px; +} +div.village2 table#building_contract thead th { + background: none repeat scroll 0 0 transparent; + text-align: left; +} +div.village2 table#building_contract tbody td { + background: none repeat scroll 0 0 transparent; + padding: 1px 2px; +} +div.village2 table#building_contract td.ico { + padding-left: 4px; + width: 18px; +} +div.village3 table th, div.village3 table td { + padding: 2px 4px; +} +div.village3 table tbody td { + text-align: center; + white-space: nowrap; +} +div.village3 table tbody td.vil { + text-align: left; + white-space: normal; +} +div.village3 table#overview td { + white-space: normal; +} +div.village3 table#overview td.att { + width: 15%; +} +div.village3 table#overview td.bui { + width: 10%; +} +div.village3 table#overview td.tro { + width: 15%; +} +div.village3 table#overview td.tra { + white-space: nowrap; + width: 15%; +} +div.village3 table#ressources tbody td { + text-align: right; +} +div.village3 table#ressources td.vil { + text-align: left; +} +div.village3 table#ressources td.lum { + width: 15%; +} +div.village3 table#ressources td.clay { + width: 15%; +} +div.village3 table#ressources td.iron { + width: 15%; +} +div.village3 table#ressources td.crop { + width: 15%; +} +div.village3 table#ressources td.tra { + width: 10%; +} +div.village3 table#warehouse th, div.village3 table#warehouse td { + padding: 2px; +} +div.village3 table#warehouse td.vil { + padding-left: 4px; +} +div.village3 table#warehouse td.lum { + width: 10%; +} +div.village3 table#warehouse td.clay { + width: 10%; +} +div.village3 table#warehouse td.iron { + width: 10%; +} +div.village3 table#warehouse td.max123 { + width: 15%; +} +div.village3 table#warehouse td.crop { + width: 10%; +} +div.village3 table#warehouse td.max4 { + width: 15%; +} +div.village3 table#culture_points td.cps { + width: 15%; +} +div.village3 table#culture_points td.cel { + width: 20%; +} +div.village3 table#culture_points td.tro { + white-space: normal; + width: 20%; +} +div.village3 table#culture_points td.slo { + width: 10%; +} +div.village3 table.vil_troops th { + padding: 2px 7px; +} +div.village3 table.vil_troops tbody th { + width: 22%; +} +div.village3 table.vil_troops tbody td { + padding: 2px; +} +div.village3 table.vil_troops tbody.upkeep td { + padding-left: 7px; + text-align: left; +} +div.map table.tableNone { + background-color: #FFFFFF; +} +div.map table.tableNone thead th { + background-color: #FFFFFF; + background-image: none; + text-align: left; +} +div.map table.tableNone thead th div { + float: left; +} +div.map table.tableNone tbody td, div.map table.tableNone tbody th { + padding: 1px 4px; +} +div#map table#map_infobox { + line-height: 19px; + width: 170px; +} +div#map table#map_infobox th, div#map table#map_infobox td { + line-height: 15px; + padding: 1px 5px; +} +div#map table#map_infobox thead th { + text-align: center; +} +div#map table#map_infobox tbody th { + width: 45%; +} +div#map table.default, div#map table.empty, div#map table.oasis_empty { + background-color: #F0F0F0; +} +div#map table.village, div#map table.oasis { + background-color: #C0C0C0; +} +div#map table.default thead th, div#map table.empty thead th, div#map table.oasis_empty thead th { + background-color: #FFFFFF; + background-image: none; +} +div#map table.village thead th, div#map table.oasis thead th { + background-image: url("../../img/a/c2.gif"); + background-repeat: repeat; +} +div.map table#village_info { + width: 227px; +} +div.map table#village_info tbody th { + width: 50%; +} +div.map table#village_info tbody td { + font-weight: bold; +} +div.map table#troop_info { + width: 227px; +} +div.map table#troop_info .ico { + width: 10%; +} +div.map table#troop_info .val { + padding-left: 10px; + text-align: right; + width: 10%; +} +div.map table#troop_info .val { + font-weight: bold; +} +div.map table#troop_info ul { + margin: 0 0 0 2px; + padding-left: 12px; +} +div.map table#troop_info.rep tbody { + line-height: 16px; +} +div.map table#troop_info.rep img { + float: left; + margin-right: 5px; +} +div.map table#distribution { + width: 227px; +} +div.map table#distribution .ico { + width: 10%; +} +div.map table#distribution .val { + padding-left: 10px; + text-align: right; + width: 10%; +} +div.map table#distribution .val { + font-weight: bold; +} +div.map table#options { + width: 502px; +} +div.map table#options tbody td { + padding-left: 4px; +} +div.map table#raidFavs { + width: 502px; +} +div.map table#raidFavs thead td { + white-space: nowrap; +} +div.map table#raidFavs th, div.map table#raidFavs td { + padding: 2px 7px; + text-align: center; +} +div.map table#raidFavs td.del { + padding: 2px; + width: 4%; +} +div.map table#raidFavs td.vil { + text-align: left; +} +div.map table#raidFavs td.vil img { + float: right; +} +div.map table#raidFavs td.aligned_coords { + padding: 2px 0; + width: 94px; +} +div.map table#raidFavs td.aligned_coords div.cox, div.map table#raidFavs td.aligned_coords div.coy { + width: 42px; +} +div.map table#raidFavs td.rep { + text-align: left; + white-space: nowrap; + width: 20%; +} +div.map table#raidFavs td.rep img { + float: left; + margin-right: 3px; +} +div.map table#raidFavs td.goods { + width: 10%; +} +div.map table#raidFavs td.lost { + width: 10%; +} +div.map table#raidDetails { + width: 502px; +} +div.map table#raidDetails th, div.map table#raidDetails td { + padding: 2px 7px; + text-align: center; +} +div.map table#raidDetails td.day { + height: 100px; + width: 25px; +} +div.map table#raidDetails td.day div.booty, div.map table#raidDetails td.day div.lost { + height: 100px; + position: relative; + width: 12px; +} +div.map table#raidDetails td.day div.booty { + background-color: #CAFFC9; + float: left; +} +div.map table#raidDetails td.day div.booty div.value { + background-color: #00BC00; +} +div.map table#raidDetails td.day div.lost { + background-color: #FFD0B1; + float: right; +} +div.map table#raidDetails td.day div.lost div.value { + background-color: #FF6F0F; +} +div.map table#raidDetails td.day div.value { + bottom: 0; + font-size: 0; + height: 0; + left: 0; + line-height: 0; + position: absolute; + width: 100%; +} +div.map table#raidDetails td.balance { + text-align: left; +} +div.map table#raidDetails td.balance hr { + border-color: #C0C0C0; +} +div.map table#raidDetails td.day div.value.height100 { + height: 100px; +} +div.map table#raidDetails td.day div.value.height95 { + height: 95px; +} +div.map table#raidDetails td.day div.value.height90 { + height: 90px; +} +div.map table#raidDetails td.day div.value.height85 { + height: 85px; +} +div.map table#raidDetails td.day div.value.height80 { + height: 80px; +} +div.map table#raidDetails td.day div.value.height75 { + height: 75px; +} +div.map table#raidDetails td.day div.value.height70 { + height: 70px; +} +div.map table#raidDetails td.day div.value.height65 { + height: 65px; +} +div.map table#raidDetails td.day div.value.height60 { + height: 60px; +} +div.map table#raidDetails td.day div.value.height55 { + height: 55px; +} +div.map table#raidDetails td.day div.value.height50 { + height: 50px; +} +div.map table#raidDetails td.day div.value.height45 { + height: 45px; +} +div.map table#raidDetails td.day div.value.height40 { + height: 40px; +} +div.map table#raidDetails td.day div.value.height35 { + height: 35px; +} +div.map table#raidDetails td.day div.value.height30 { + height: 30px; +} +div.map table#raidDetails td.day div.value.height25 { + height: 25px; +} +div.map table#raidDetails td.day div.value.height20 { + height: 20px; +} +div.map table#raidDetails td.day div.value.height15 { + height: 15px; +} +div.map table#raidDetails td.day div.value.height10 { + height: 10px; +} +div.map table#raidDetails td.day div.value.height5 { + height: 5px; +} +div.map table#raidDetails td.day div.value.height0 { + height: 1px; +} +div.player table td, div.player table th { + padding: 2px 7px; +} +div.player tbody th { + text-align: left; +} +div.player td { + text-align: center; +} +div.player .none { + text-align: center; +} +div.player table#profile thead td { + width: 50%; +} +div.player table#profile td.details { + border-bottom: medium none; + height: 156px; + padding: 0; + vertical-align: top; + width: 50%; +} +div.player table#profile td.details table { + background-color: #FFFFFF; + border-collapse: collapse; + margin-top: 0; +} +div.player table#profile td.details table th { + border-bottom: 1px solid #C0C0C0; + border-right: 1px solid #C0C0C0; + width: 50%; +} +div.player table#profile td.details table td { + border-bottom: 1px solid #C0C0C0; + text-align: left; +} +div.player table#profile td.desc1 { + padding: 0 7px; + vertical-align: middle; + width: 50%; +} +div.player table#profile td.details table td.desc2 { + border-bottom: 0 solid transparent; + height: 100%; + text-align: center; + vertical-align: middle; +} +div.player table#villages td.nam { + text-align: left; +} +div.player table#villages td.hab { + width: 20%; +} +div.player table#edit thead td { + width: 50%; +} +div.player table#edit tbody th { + white-space: nowrap; + width: 20%; +} +div.player table#edit tbody td { + line-height: 19px; +} +div.player table#edit input.text { + width: 94%; +} +div.player table#edit td.birth input.day { + float: left; + width: 17px; +} +div.player table#edit td.birth select.dropdown { + float: left; + margin: auto 5px; + padding: 1px 2px; + width: 60px; +} +div.player table#edit td.birth input.year { + float: left; + width: 30px; +} +div.player table#edit td.gend { + text-align: left; +} +div.player table#edit td.gend input.radio { + margin-right: 2px; + position: relative; + top: 1px; +} +body.presto div.player table#edit td.gend input.radio { + top: 0; +} +body.ie6 div.player table#edit td.gend input.radio, body.ie7 div.player table#edit td.gend input.radio { + top: -2px; +} +div.player table#edit td.desc1, div.player table#edit td.desc2 { + padding: 0; +} +div.player table#edit td.desc1 textarea, div.player table#edit td.desc2 textarea { + overflow-x: hidden; + overflow-y: scroll; + padding: 0; + text-align: center; +} +div.player table#edit td.desc1 textarea { + height: 264px; + width: 249px; +} +div.player table#edit td.desc2 textarea { + height: 158px; + width: 248px; +} +div.player table#medals td.typ { + text-align: left; +} +div.player table#medals td.ra { + white-space: nowrap; + width: 15%; +} +div.player table#medals td.we { + width: 15%; +} +div.player table#medals td.bb { + width: 20%; +} +div.player table.set td.sel { + text-align: center; + width: 5%; +} +div.player table.set td { + text-align: left; +} +div.player table.set input.radio { + position: relative; + top: 1px; +} +body.presto div.player table.set input.radio { + top: 0; +} +body.ie6 div.player table.set input.radio, body.ie7 div.player table.set input.radio { + top: -2px; +} +div.player table#links td.nr input.text { + width: 25px; +} +div.player table#links td.nam input.text { + width: 150px; +} +div.player table#links td.link input.text { + width: 255px; +} +div.player table#time tbody th { + width: 25%; +} +div.player table#time select.dropdown { + width: 200px; +} +div.player table#adsettings tbody th { + width: 25%; +} +div.player table#adsettings span.note { + font-size: 10px; + margin-left: 10px; +} +div.player table.account tbody th { + width: 50%; +} +div.player table.account input.text { + width: 94%; +} +div.player table#change_pass td.note { + text-align: left; +} +div.player table.account table.sitter { + background-color: transparent; + margin: 0; +} +div.player table.account table.sitter td { + padding: 0; + vertical-align: top; +} +div.player table.account table.sitter td.flags { + text-align: left; +} +div.player table.account table.sitter td.name { + padding-bottom: 10px; +} +div.player table.account td.container { + padding: 0; + width: 50%; +} +div.player table.account input.text { + width: 50%; +} +div.player table.account span.count { + margin-left: 5px; +} +div.player table.account span.max { + margin-left: 5px; +} +div.player table#del_acc td.del_selection { + text-align: left; +} +div.player table#del_acc input.radio { + position: relative; + top: 1px; +} +body.presto div.player table#del_acc input.radio { + top: 0; +} +body.ie6 div.player table#del_acc input.radio, body.ie7 div.player table#del_acc input.radio { + top: -2px; +} +div.player table#gpack td { + height: 24px; + text-align: left; +} +div.player table#gpack th.empty { + background-color: #F3F3F3; + height: 5px; +} +div.player table#gpack td.info { + text-align: center; +} +div.player table#gpack td input.radio { + margin-left: 2px; + margin-right: 2px; + position: relative; + top: 1px; +} +body.presto div.player table#gpack td input.radio { + top: 0; +} +body.ie6 div.player table#gpack td input.radio, body.ie7 div.player table#gpack td input.radio { + top: -2px; +} +div.player table#gpack td input.text { + margin-left: 15px; + width: 220px; +} +div.player table#gpack td div.example { + margin-left: 22px; +} +div.player table#download thead td { + white-space: nowrap; +} +div.player table#download td.nam { + text-align: left; +} +div.player table#download td.size { + width: 22%; +} +div.player table#download td.act { + width: 22%; +} +div.player table#download td.down { + width: 22%; +} +div.alliance table td, div.alliance table th { + padding: 2px 7px; +} +div.alliance tbody th { + text-align: left; +} +div.alliance td { + text-align: center; +} +div.alliance .none { + text-align: center; +} +div.alliance td.abo { + width: 5%; +} +div.alliance table#profile thead td { + width: 50%; +} +div.alliance table#profile td.details { + border-bottom: medium none; + height: 156px; + padding: 0; + vertical-align: top; + width: 50%; +} +div.alliance table#profile td.details table { + background-color: #FFFFFF; + border-collapse: collapse; + margin-top: 0; +} +div.alliance table#profile td.details table th { + border-bottom: 1px solid #C0C0C0; + border-right: 1px solid #C0C0C0; + width: 50%; +} +div.alliance table#profile td.details table td { + border-bottom: 1px solid #C0C0C0; + text-align: left; +} +div.alliance table#profile td.desc1 { + padding: 0 7px; + vertical-align: middle; + width: 50%; +} +div.alliance table#profile td.details table td.desc2 { + border-bottom: 0 solid transparent; + height: 100%; + text-align: center; + vertical-align: middle; +} +div.alliance table#member td.ra { + text-align: right; + white-space: nowrap; + width: 5%; +} +div.alliance table#member td.pla { + text-align: left; +} +div.alliance table#member td.hab { + width: 25%; +} +div.alliance table#member td.vil { + width: 20%; +} +div.alliance table#member td.on { + width: 5%; +} +div.alliance table#offs td.sub { + text-align: left; +} +div.alliance table#offs td.sub img { + float: left; +} +div.alliance table#offs td.sub div { + padding-left: 24px; +} +div.alliance table#offs td.al { + white-space: nowrap; + width: 20%; +} +div.alliance table#offs td.dat { + white-space: nowrap; + width: 23%; +} +div.alliance table#events td.event { + text-align: left; +} +div.alliance table#events td.dat { + white-space: nowrap; + width: 25%; +} +div.alliance table.small_option { + width: 50%; +} +div.alliance table.small_option input.text { + width: 94%; +} +div.alliance table.small_option tbody th { + width: 30%; +} +div.alliance td.sel { + width: 15%; +} +div.alliance table#options td.val { + text-align: left; +} +div.alliance table#name td { + text-align: left; +} +div.alliance table#name input.tag { + width: 50%; +} +div.alliance table#edit thead td { + width: 50%; +} +div.alliance table#edit tbody th { + width: 30%; +} +div.alliance table#edit tbody td { + line-height: 19px; + text-align: left; +} +div.alliance table#edit input.text { + width: 94%; +} +div.alliance table#edit td.desc1, div.alliance table#edit td.desc2 { + padding: 0; +} +div.alliance table#edit td.desc1 textarea, div.alliance table#edit td.desc2 textarea { + overflow-x: hidden; + overflow-y: scroll; + padding: 0; + text-align: center; +} +div.alliance table#edit td.desc1 textarea { + height: 264px; + width: 249px; +} +div.alliance table#edit td.desc2 textarea { + height: 140px; + width: 248px; +} +div.alliance table#medals td.typ { + text-align: left; +} +div.alliance table#medals td.ra { + white-space: nowrap; + width: 15%; +} +div.alliance table#medals td.we { + width: 15%; +} +div.alliance table#medals td.bb { + width: 20%; +} +div.alliance table#invitations td { + text-align: left; +} +div.alliance table#invitations td.abo { + text-align: center; +} +div.alliance table.dipl, div.alliance div#box { + width: 60%; +} +div.alliance table.dipl td { + text-align: left; +} +div.alliance table.infos { + width: 37%; +} +div.alliance table.infos td { + padding: 2px; +} +div.alliance table td.none { + text-align: center; +} +div.alliance table td.acc { + text-align: center; + width: 25%; +} +div.alliance table#diplomacy input.text { + width: 94%; +} +div.alliance table#diplomacy input.radio { + margin: 3px; +} +div.alliance table#own td.wait { + width: 25%; +} +div.forum table { + width: 502px; +} +div.forum table td, div.forum table th { + padding: 2px 7px; +} +div.forum table td.ico { + padding: 5px; + text-align: center; + white-space: nowrap; + width: 32px; +} +div.forum table td.ico a img { + margin: 2px; +} +div.forum table td.tit { + padding: 5px; +} +div.forum table td.cou { + text-align: center; + width: 62px; +} +div.forum table td.last { + padding: 2px 5px 2px 2px; + text-align: right; + white-space: nowrap; + width: 120px; +} +div.forum table td.none { + text-align: center; +} +div.forum table td.navi_top, div.forum table td.navi_btm { + float: right; + margin-right: 20px; + text-align: right; +} +div.forum table td.navi_btm { + margin-top: 15px; +} +div.forum h4 { + margin: 0 0 15px 5px; +} +div.forum table#public, div.forum table#confederation, div.forum table#alliance, div.forum table#closed { + margin-top: 10px; +} +div.forum table#posts td.poll { + background-color: #FFFFFF; + padding: 5px 2px; +} +div.forum table#posts td.pinfo { + vertical-align: top; + width: 21%; +} +div.forum table#posts td.pcontent { + padding: 0; + vertical-align: top; +} +div.forum table#posts td.pcontent div { + vertical-align: top; +} +div.forum table#posts td.pcontent div.posted { + float: left; + padding: 2px 10px 0; +} +div.forum table#posts td.pcontent div.admin { + float: right; + padding: 2px 10px 0; +} +div.forum table#posts td.pcontent div.admin img { + margin-left: 3px; +} +div.forum table#posts td.pcontent div.dotted { + border-bottom: 1px dotted #C0C0C0; + height: 1px; + padding: 0; + width: 100%; +} +div.forum table#posts td.pcontent div.text { + min-height: 70px; + overflow-x: auto; + padding: 4px 10px 30px; + width: 376px; +} +div.forum table#posts td.pcontent div.edited { + border-top: 1px dotted #C0C0C0; + padding: 0 10px 2px; +} +div.forum table#new_forum tbody th, div.forum table#edit_forum tbody th { + width: 30%; +} +div.forum table#new_forum input.text, div.forum table#new_forum input.text { + width: 97%; +} +div.forum table#conf_list td.ally, div.forum table#user_list td.ally, div.forum table#non_conf_list td.ally { + width: 70%; +} +div.forum table#conf_list td.sel, div.forum table#non_conf_list td.sel, div.forum table#open_user td.sel { + text-align: center; + width: 5%; +} +div.forum table#conf_list td.tag, div.forum table#non_conf_list td.tag { + text-align: center; + width: 25%; +} +div.forum table#ally_list input.text, div.forum table#user_list input.text { + width: 95%; +} +div.forum table#ally_list tag.tag, div.forum table#ally_list tag.ally, div.forum table#user_list tag.id, div.forum table#user_list tag.pla { + width: 40%; +} +div.forum table#ally_list td.ad, div.forum table#user_list td.ad { + text-align: center; + width: 20%; +} +div.forum table#ally_list img.add, div.forum table#user_list img.add { + cursor: pointer; +} +div.forum table#new_topic tbody th, div.forum table#new_post tbody th, div.forum table#edit_post tbody th { + width: 87px; +} +div.forum table#edit_topic tbody th { + width: 30%; +} +div.forum table#new_topic td.input_icons, div.forum table#new_post td.input_icons, div.forum table#edit_post td.input_icons { + padding: 10px 3px 0; + text-align: center; + vertical-align: top; + width: 87px; +} +div.forum table#new_topic td.input_icons img, div.forum table#new_post td.input_icons img, div.forum table#edit_post td.input_icons img { + cursor: pointer; +} +div.forum table#new_topic td.input_icons img.smiley, div.forum table#new_post td.input_icons img.smiley, div.forum table#edit_post td.input_icons img.smiley { + margin: 3px 1px; +} +div.forum table#new_topic textarea, div.forum table#new_post textarea, div.forum table#edit_post textarea { + height: 250px; + overflow: auto; + width: 381px; +} +div.forum table#new_topic td.sel { + text-align: center; +} +div.forum table#new_topic table#options td { + padding-bottom: 0; +} +div.forum table#new_topic table#options input.text { + margin-bottom: 2px; +} +div.forum table#new_topic select.dropdown { + margin-right: 1px; +} +div.forum table#edit_topic select.dropdown { + width: 100%; +} +div.forum table#poll { + background-color: #FFFFFF; + width: 496px; +} +div.forum table#poll thead th { + padding: 4px; + text-align: center; +} +div.forum table#poll td { + text-align: center; +} +div.forum table#poll td.sel { + text-align: right; + white-space: nowrap; + width: 30%; +} +div.forum table#poll td.stat { + text-align: left; + width: 280px; +} +div.forum table#poll td.stat img { + float: left; +} +div.forum table#poll td.count { + text-align: center; +} +div.statistics table td, div.statistics table th { + padding: 2px 7px; + text-align: center; +} +div.statistics td.ra { + text-align: right; + white-space: nowrap; + width: 5%; +} +div.statistics td.pop { + width: 20%; +} +div.statistics td.al { + text-align: left; +} +div.statistics td.vil { + width: 10%; +} +div.statistics td.po { + width: 20%; +} +div.statistics td.pla { + width: 18%; +} +div.statistics td.av { + width: 18%; +} +div.statistics td.po { + width: 20%; +} +div.statistics table#player td.pla { + text-align: left; + width: auto; +} +div.statistics table#player td.al { + text-align: center; +} +div.statistics table#player_off td.pla { + text-align: left; + width: auto; +} +div.statistics table#player_def td.pla { + text-align: left; + width: auto; +} +div.statistics table#alliance td.al { + width: auto; +} +div.statistics table#alliance_off td.al { + width: auto; +} +div.statistics table#alliance_def td.al { + width: auto; +} +div.statistics table.top10 { + width: 246px; +} +div.statistics table.top10 td { + padding: 2px; +} +div.statistics table.top10 td.pla { + text-align: left; + width: auto; +} +div.statistics table.top10 td.val { + width: 10%; +} +div.statistics table.top10 tr.none td { + background-color: #EFEFEF; +} +div.statistics table.top10 tr.own.hl td.ra { + text-align: center; + white-space: nowrap; +} +div.statistics table#top10_offs, div.statistics table#top10_climbers { + float: left; +} +div.statistics table#top10_defs, div.statistics table#top10_raiders { + float: right; +} +div.statistics table#villages td.vil { + text-align: left; + width: auto; +} +div.statistics table#villages td.pla { + text-align: left; + width: 25%; +} +div.statistics table#villages td.hab { + width: 15%; +} +div.statistics table#villages td.aligned_coords { + padding: 2px 0; +} +div.statistics table#heroes td.hero { + text-align: left; +} +div.statistics table#heroes td.hero img { + margin: -2px; + position: relative; + top: 1px; +} +div.statistics table#heroes td.pla { + text-align: left; + width: 30%; +} +div.statistics table#heroes td.lev { + width: 10%; +} +div.statistics table#heroes td.xp { + width: 15%; +} +div.statistics table#world_tribes, div.statistics table#world_misc { + margin-top: 15px; +} +div.statistics table#world_player th { + width: 60%; +} +div.statistics table#world_tribes td, div.statistics table#world_misc td { + width: 33%; +} +div.statistics table#wonder td.nam { + width: 35%; +} +div.statistics table#wonder td.al { + width: 15%; +} +div.statistics table#wonder td.lev { + width: 10%; +} +div.statistics table#wonder td.at { + width: 2%; +} +div.statistics table#search_navi { + margin-top: 15px; +} +div.statistics table#search_navi div { + vertical-align: top; +} +div.statistics table#search_navi div.search { + float: left; + text-align: left; +} +div.statistics table#search_navi div.search span { + white-space: nowrap; +} +div.statistics table#search_navi div.search input { + margin-bottom: 2px; + margin-top: 2px; + vertical-align: middle; +} +div.statistics table#search_navi div.search input.ra { + margin-left: 4px; + width: 32px; +} +div.statistics table#search_navi div.search input.name { + margin-left: 4px; + width: 50px; +} +div.statistics table#search_navi div.search span.or { + margin: auto 8px; +} +div.statistics table#search_navi div.navi { + float: right; + line-height: 22px; + text-align: right; + white-space: nowrap; +} +div.reports table td, div.reports table th { + padding: 2px 7px; +} +div.reports .none { + text-align: center; +} +div.reports table#overview td, div.reports table#overview th { + line-height: 17px; + padding: 3px 7px; +} +div.reports table#overview tbody td { + vertical-align: top; +} +div.reports table#overview td.sel { + padding: 5px; + text-align: center; + width: 5%; +} +div.reports table#overview td.sub img { + float: left; +} +div.reports table#overview td.sub div { + padding-left: 24px; +} +div.reports table#overview td.dat { + padding: 3px 2px; + text-align: center; + white-space: nowrap; + width: 23%; +} +div.reports table#overview tfoot th.buttons { + text-align: left; +} +div.reports table#overview tfoot th.buttons input { + vertical-align: middle; +} +div.reports table#overview tfoot th.navi { + text-align: right; +} +div.reports table#report_surround thead th, div.reports table#report_surround thead td { + text-align: left; +} +div.reports table#report_surround thead td.sent { + width: 25%; +} +div.reports table#report_surround td.report_content { + padding: 15px 2px 0; +} +div.reports table#report_surround td.report_content table { + margin-bottom: 15px; +} +div.reports table#report_surround td.report_content table thead td { + background-color: #F3F3F3; + text-align: center; +} +div.reports table#report_surround td.report_content table tbody th { + text-align: left; + width: 20%; +} +div.reports table#report_surround td.report_content table tbody.units td { + padding: 2px; + text-align: center; + width: 7.2%; +} +div.reports table#report_surround td.report_content table tbody.infos th, div.reports table#report_surround td.report_content table tbody.infos td, div.reports table#report_surround td.report_content table tbody.goods th, div.reports table#report_surround td.report_content table tbody.goods td, div.reports table#report_surround td.report_content table tbody.res th, div.reports table#report_surround td.report_content table tbody.res td, div.reports table#report_surround td.report_content table tbody.regards th, div.reports table#report_surround td.report_content table tbody.regards td { + background-color: #F3F3F3; +} +div.reports table#report_surround td.report_content table tbody.infos td img { + display: inline; + margin-right: 2px; +} +div.reports td.report_content table#attacker tbody.goods div.res { + float: left; +} +div.reports td.report_content table#attacker tbody.goods div.carry { + float: right; + margin-left: 20px; +} +div.messages td.none { + text-align: center; +} +div.messages table#overview td, div.messages table#overview th { + line-height: 17px; + padding: 3px 7px; + text-align: center; +} +div.messages table#overview tr.sup td.sel { + background-color: #71D000; +} +div.messages table#overview tr.multi td.sel { + background-color: #FF6F0F; +} +div.messages table#overview td.sel { + width: 5%; +} +div.messages table#overview td.top { + text-align: left; +} +div.messages table#overview td.send { + width: 25%; +} +div.messages table#overview td.dat { + white-space: nowrap; + width: 22%; +} +div.messages table#overview th.buttons { + text-align: left; +} +div.messages table#overview th.buttons input { + vertical-align: middle; +} +div.messages table#overview th.navi { + text-align: right; +} +div.messages table#friendlist td { + height: 20px; + padding: 2px; + text-align: center; +} +.webkit div.messages table#friendlist td { + height: 16px; +} +div.messages table#friendlist td.end { + padding: 0; + width: 5%; +} +div.messages table#friendlist td.pla { + padding: 0; + width: 40%; +} +div.messages table#friendlist td.on { + padding: 0; + width: 5%; +} +div.messages table#friendlist td.pla input.text { + border: medium none; +} +div.messages table#friendlist img.del, div.messages table#friendlist img.accept { + cursor: pointer; +} +div#build table#build_value { + background-color: #FFFFFF; + line-height: 19px; + width: auto; +} +div#build table#build_value th, div#build table#build_value td { + white-space: nowrap; +} +div#build table#build_value th { + padding-right: 35px; +} +div#build table#build_value td { + text-align: right; +} +div#build table.build_details td { + padding: 2px 7px; +} +div#build table.build_details td.desc { + line-height: 19px; +} +div#build table.build_details td.desc div.tit img { + margin: 0 5px; + position: relative; + top: 3px; +} +div#build table.build_details td.desc div.details { + padding-left: 30px; +} +div#build table.build_details td.desc div.details span { + white-space: nowrap; +} +div#build table.build_details td.desc div.details span.none { + white-space: normal; +} +div#build table.build_details td.act { + text-align: center; + width: 29%; +} +div#build table.build_details td.val { + text-align: center; + width: 12%; +} +div#build table.build_details td.val input.text { + width: 30px; +} +div#build table.build_details td.max { + text-align: center; + width: 12%; +} +div#build table.under_progress { + margin-top: 15px; +} +div#build table.under_progress td { + padding: 2px 7px; + text-align: center; +} +div#build table.under_progress td.desc { + text-align: left; +} +div#build table.under_progress td.desc img { + margin: 0 5px; + position: relative; + top: 3px; +} +div#build table.under_progress div.val { + float: left; + padding-left: 5px; + text-align: right; +} +div#build table.under_progress td.dur { + width: 20%; +} +div#build table.under_progress td.fin { + width: 20%; +} +div#build table.under_progress tr.next td { + background-color: #F5F5F5; +} +div#build p#contract { + line-height: 19px; +} +div#build table#expansion td, div#build #expansion th { + padding: 2px 7px; +} +div#build table#expansion thead td { + padding: 2px; +} +div#build table#expansion td { + text-align: center; +} +div#build table#expansion td.ra { + text-align: right; + white-space: nowrap; + width: 2%; +} +div#build table#expansion td.vil { + text-align: left; +} +div#build table#expansion td.ha { + width: 16%; +} +div#build table#expansion td.dat { + white-space: nowrap; + width: 14%; +} +div#build.gid0 h1 { + margin-bottom: 25px; +} +div#build.gid0 h2 { + margin-bottom: 15px; +} +div#build.gid0 div.hide { + display: none; +} +div#build.gid0 table.new_building { + background-color: #FFFFFF; + margin-bottom: 25px; +} +div#build.gid0 table.new_building td.desc { + padding-bottom: 15px; +} +div#build.gid0 table.new_building td.bimg { + padding-left: 15px; + padding-right: 5px; + vertical-align: top; +} +div#build.gid0 table.new_building td.res { + padding-bottom: 3px; +} +div#build.gid0 table.new_building td.requ { + padding-bottom: 3px; +} +div#build.gid15 table#demolish { + background-color: #FFFFFF; +} +div#build.gid16 table.troop_details th, div#build.gid16 table.troop_details td { + padding: 2px 7px; +} +div#build.gid16 table.troop_details th { + width: 20%; +} +div#build.gid16 table.troop_details tbody.units td { + padding: 2px; + text-align: center; + width: 7.2%; +} +div#build.gid16 table.troop_details tbody.infos th, div#build.gid16 table.troop_details tbody.infos td { + background-color: #F3F3F3; +} +div#build.gid16 table.troop_details div { + float: left; + text-align: center; + width: 50%; +} +div#build.gid16 table.troop_details div.small { + width: 45%; +} +div#build.gid16 table.troop_details div.abort { + float: right; + text-align: right; + width: 5%; +} +div#build.gid16 table.troop_details div.abort img { + margin-top: 3px; +} +div#build.gid16 table.troop_details div.sup { + text-align: left; +} +div#build.gid16 table.troop_details div.sback { + text-align: right; +} +div#build.gid16 table.troop_details div.free { + text-align: right; +} +div#build.gid16 table.troop_details div.gback { + text-align: right; +} +div#build.gid16 table.troop_details div.diss { + text-align: right; +} +div#build.gid16 table.troop_details a.attack_marker { + float: right; + position: relative; + right: -1px; + top: 2px; +} +div#build.gid16 table#raidList thead td { + white-space: nowrap; +} +div#build.gid16 table#raidList th, div#build.gid16 table#raidList td { + padding: 2px 7px; + text-align: center; +} +div#build.gid16 table#raidList td.check { + padding: 2px; + width: 1%; +} +div#build.gid16 table#raidList td.check img { + float: left; +} +div#build.gid16 table#raidList td.vil { + text-align: left; +} +div#build.gid16 table#raidList td.vil img { + float: right; +} +div#build.gid16 table#raidList td.raids { + width: 10%; +} +div#build.gid16 table#raidList td.goods { + width: 10%; +} +div#build.gid16 table#raidList td.lost { + width: 10%; +} +div#build.gid16 table#raidList td.rep { + text-align: left; + white-space: nowrap; + width: 20%; +} +div#build.gid16 table#raidList td.rep img { + float: left; + margin-right: 3px; +} +div#build.gid16 table#raidTroops { + background-color: #FFFFFF; + border: 1px dashed #C0C0C0; +} +div#build.gid16 table#raidTroops td.column-first { + padding-left: 8px; +} +div#build.gid16 table#raidTroops td.column-last { + padding-right: 8px; +} +div#build.gid16 table#raidTroops td.line-first { + padding-top: 8px; +} +div#build.gid16 table#raidTroops td.line-last { + padding-bottom: 8px; +} +div#build.gid16 table#raidTroops td { + padding: 1px; + width: 25%; +} +div#build.gid16 table#raidTroops img { + bottom: 3px; + margin-right: 2px; + position: relative; + vertical-align: bottom; +} +div#build.gid16 table#raidTroops input.text { + width: 60px; +} +div#build.gid16 table#raidTroops input.disabled { + background-color: #EEEEEE; + border-color: #AAAAAA; +} +div#build.gid16 table#troopEscape thead td { + white-space: nowrap; +} +div#build.gid16 table#troopEscape th, div#build.gid16 table#troopEscape td { + padding: 2px 7px; + text-align: center; +} +div#build.gid16 table#troopEscape td.sel { + padding: 2px; + width: 5%; +} +div#build.gid16 table#troopEscape td.vil { + text-align: left; +} +div#build.gid16 table#troopEscape td.own { + width: 25%; +} +div#build.gid16 table#troopEscape td.rein { + width: 25%; +} +div#build.gid17 table.send_res { + background-color: #FFFFFF; + line-height: 24px; + width: 40%; +} +div#build.gid17 table.send_res td { + padding-right: 4px; + vertical-align: top; +} +div#build.gid17 table.send_res td.ico { + width: 5%; +} +div#build.gid17 table.send_res td.ico img { + position: relative; + top: 4px; +} +div#build.gid17 table.send_res td.nam { + width: 16%; +} +div#build.gid17 table.send_res td.val { + width: 12%; +} +div#build.gid17 table.send_res td.val input.text { + width: 39px; +} +div#build.gid17 table.send_res td.max { + width: 20%; +} +div#build.gid17 table.res_target { + background-color: #FFFFFF; + line-height: 21px; + width: 40%; +} +div#build.gid17 table.res_target th, div#build.gid17 table.res_target td { + vertical-align: top; +} +div#build.gid17 table.res_target th { + width: 30%; +} +div#build.gid17 table#target_select td.mer { + padding-bottom: 9px; +} +div#build.gid17 table#target_select td.vil *, div#build.gid17 table#target_select td.coo * { + float: left; +} +div#build.gid17 table#target_select td.vil input.text { + margin-left: 10px; + width: 100px; +} +div#build.gid17 table#target_select td.coo input.text { + margin: 0 10px; + width: 40px; +} +div#build.gid17 table#target_validate td.vil { + padding-bottom: 11px; +} +div#build.gid17 table.traders th, div#build.gid17 table.traders td { + padding: 2px 7px; +} +div#build.gid17 table.traders tr.res th, div#build.gid17 table.traders tr.res td { + background-color: #F5F5F5; +} +div#build.gid17 table.traders th { + width: 20%; +} +div#build.gid17 table.traders div.in { + float: left; + text-align: center; + width: 45%; +} +div#build.gid17 table.traders div.at { + float: right; + text-align: center; + width: 45%; +} +div#build.gid17 table.traders div.repeat { + float: right; + text-align: right; + width: 20px; +} +div#build.gid17 table.buy_select td { + height: 21px; + text-align: center; +} +div#build.gid17 table.buy_select td.hl { + background-color: #FFE4B5; +} +div#build.gid17 table#search_select { + width: 120px; +} +div#build.gid17 table#ratio_select { + width: 30px; +} +div#build.gid17 table#bid_select { + width: 120px; +} +div#build.gid17 table#range th, div#build.gid17 table#range td { + padding: 2px; + text-align: center; +} +div#build.gid17 table#range tfoot td { + padding-right: 7px; + text-align: right; +} +div#build.gid17 table#range td.val { + text-align: left; + white-space: nowrap; + width: 16%; +} +div#build.gid17 table#range td.dur { + white-space: nowrap; + width: 13%; +} +div#build.gid17 table#range td.act { + width: 35%; +} +div#build.gid17 table#summary th, div#build.gid17 table#summary td { + padding: 2px 7px; +} +div#build.gid17 table#summary td.desc { + background-color: #F3F3F3; + text-align: center; +} +div#build.gid17 table#summary td.ico { + padding-right: 2px; + width: 5%; +} +div#build.gid17 table#summary td.val { + padding-left: 2px; + white-space: nowrap; + width: 16%; +} +div#build.gid17 table#sell { + background-color: #FFFFFF; +} +div#build.gid17 table#sell th, div#build.gid17 table#sell td { + padding: 2px; +} +div#build.gid17 table#sell th { + width: 10%; +} +div#build.gid17 table#sell input.check { + position: relative; + top: 1px; +} +div#build.gid17 table#sell select.dropdown { + padding: 1px; +} +div#build.gid17 table#sell td.val { + width: 13%; +} +div#build.gid17 table#sell td.val input.text { + width: 50px; +} +div#build.gid17 table#sell td.res { + width: 20%; +} +div#build.gid17 table#sell td.res input.text { + width: 75px; +} +div#build.gid17 table#sell td.tra input.text { + width: 20px; +} +div#build.gid17 table#sell_overview th, div#build.gid17 table#sell_overview td { + padding: 2px 7px; + text-align: center; +} +div#build.gid17 table#sell_overview td.abo { + width: 5%; +} +div#build.gid17 table#sell_overview td.val { + text-align: left; + width: 22%; +} +div#build.gid17 table#npc th, div#build.gid17 table#npc td { + padding: 2px 7px; + text-align: center; +} +div#build.gid17 table#npc td.all { + width: 18%; +} +div#build.gid17 table#npc td.sum { + text-align: left; +} +div#build.gid17 table#trading_routes th { + padding: 4px 7px; +} +div#build.gid17 table#trading_routes tfoot th { + font-weight: normal; + text-align: left; +} +div#build.gid17 table#trading_routes td { + padding: 2px 7px; + text-align: center; +} +div#build.gid17 table#trading_routes td.desc { + text-align: left; +} +div#build.gid17 table#trading_routes td.sel { + padding: 5px; + vertical-align: top; + width: 5%; +} +div#build.gid17 table#trading_routes td.start { + white-space: nowrap; + width: 12%; +} +div#build.gid17 table#trading_routes td.trad { + width: 15%; +} +div#build.gid17 table#trading_routes td.dur { + width: 20%; +} +div#build.gid17 table#trading_edit th, div#build.gid17 table#trading_edit td { + padding: 2px 7px; +} +div#build.gid17 table#trading_edit tbody th, div#build.gid17 table#trading_edit tbody td { + line-height: 20px; +} +div#build.gid17 table#trading_edit tbody th { + width: 25%; +} +div#build.gid17 table#trading_edit select option { + padding-right: 10px; +} +div#build.gid17 table#trading_edit td.res { + white-space: nowrap; +} +div#build.gid17 table#trading_edit td.res input { + margin-right: 5px; +} +div#build.gid17 table#trading_edit td.res img { + margin-right: 3px; +} +div#build.gid18 table { + width: 60%; +} +div#build.gid18 table th, div#build.gid18 table td { + padding: 2px 7px; +} +div#build.gid18 table th { + width: 30%; +} +div#build.gid18 table#join th, div#build.gid18 #join td { + text-align: center; +} +div#build.gid18 table#join td.abo { + width: 5%; +} +div#build.gid18 table#join td.nam { + width: 30%; +} +div#build.gid18 table#found td.tag input.text { + width: 80px; +} +div#build.gid18 table#found td.nam input.text { + width: 160px; +} +div.build.gid22 table#researchFuture td.desc { + vertical-align: top; + white-space: nowrap; + width: 40%; +} +div.build.gid22 table#researchFuture td.cond { + line-height: 19px; +} +div#build.gid24 table.build_details td.desc div.details { + padding-left: 0; +} +div#build.gid26 table#main { + margin-top: 15px; +} +div#build.gid26 table#main th, div#build.gid26 #main td { + padding: 2px 7px; +} +div#build.gid26 table#main tbody th { + width: 50%; +} +div#build.gid26 table#main td.desc { + text-align: center; +} +div#build.gid26 table#main input.text { + width: 94%; +} +div#build.gid27 table#near { + margin-top: 20px; +} +div#build.gid27 table th, div#build.gid27 table td { + padding: 2px 7px; + text-align: center; +} +div#build.gid27 table td.nam { + text-align: left; +} +div#build.gid27 table div.man { + float: right; + width: 15px; +} +div#build.gid27 table td.pla { + width: 20%; +} +div#build.gid27 table#own td.vil { + width: 20%; +} +div#build.gid27 table#own td.cap { + width: 25%; +} +div#build.gid27 table#near td.dist { + width: 20%; +} +div#build.gid27 table#show_artefacts td.al { + width: 20%; +} +div#build.gid27 table#art_details tbody th { + width: 35%; +} +div#build.gid27 table.art_details { + margin-top: 25px; +} +div#build.gid35 table.build_details td.desc div.details { + padding-left: 0; +} +div#build.gid37 table th, div#build.gid37 table td { + padding: 2px 7px; +} +div#build.gid37 table td.nam { + text-align: left; + width: 30%; +} +div#build.gid37 table#rename { + width: 60%; +} +div#build.gid37 table#rename tbody th { + width: 40%; +} +div#build.gid37 table#rename input.text { + width: 94%; +} +div#build.gid37 table#distribution tbody th { + width: 26%; +} +div#build.gid37 table#distribution td.xp { + width: 205px; +} +div#build.gid37 table#distribution td.up { + text-align: center; + width: 7%; +} +div#build.gid37 table#distribution td.po { + text-align: center; + width: 7%; +} +div#build.gid37 table#distribution td.rem { + text-align: center; +} +div#build.gid37 table#oases td { + text-align: center; +} +div#build.gid37 table#oases thead td { + padding: 2px; +} +div#build.gid37 table#oases td.nam img { + position: relative; + top: 1px; +} +div#build.gid37 table#oases td.zp { + width: 14%; +} +div#build.gid37 table#leave thead td { + padding: 2px; +} +div#build.gid37 table#leave tbody td { + text-align: center; +} +div#build.gid40 table#rename { + width: 50%; +} +div#build.gid40 table#rename th, div#build.gid40 table#rename td { + padding: 2px 7px; +} +div#build.gid40 table#rename td { + text-align: center; +} +div#build.gid40 table#rename tbody th { + width: 25%; +} +div#build.gid40 table#rename input.text { + width: 94%; +} +body.manual table td, body.manual table th { + padding: 2px; +} +body.manual table#troop_info { + width: 406px; +} +body.manual table#troop_info td { + text-align: center; + width: 14.2%; +} +body.manual table#troop_details { + background-color: #FFFFFF; + width: 60%; +} +body.manual table#examples { + margin-left: 2px; + width: 406px; +} +body.manual table#examples tbody th { + width: 40%; +} +div.quest div#qstd table.altquest th, div.quest div#qstd table.altquest td { + padding: 2px; +} +div.quest div#qstd table.altquest td { + text-align: center; +} +div.quest div#qstd table.altquest td.ra { + width: 5%; +} +div.quest div#qstd table.altquest td.desc { + text-align: left; +} +div.a2b table th, div.a2b table td { + padding: 2px 7px; +} +div.a2b table#troops { + background-color: #FFFFFF; + border: 1px dashed #C0C0C0; +} +div.a2b table#troops td.column-first { + padding-left: 8px; +} +div.a2b table#troops td.column-last { + padding-right: 8px; +} +div.a2b table#troops td.line-first { + padding-top: 8px; +} +div.a2b table#troops td.line-last { + padding-bottom: 8px; +} +div.a2b table#troops td.large { + width: 26%; +} +div.a2b table#troops td.regular { + width: 25%; +} +div.a2b table#troops td.small { + width: 23%; +} +div.a2b table#troops img { + bottom: 3px; + margin-right: 2px; + position: relative; + vertical-align: bottom; +} +div.a2b table#troops input.text { + width: 30px; +} +div.a2b table#troops input.disabled { + background-color: #EEEEEE; + border-color: #AAAAAA; +} +div.a2b table#coords { + background-color: #FFFFFF; + line-height: 18px; +} +div.a2b table#coords td { + padding: 0; + vertical-align: top; +} +div.a2b table#coords td.sel { + white-space: nowrap; + width: 35%; +} +div.a2b table#coords td.sel input.radio { + position: relative; + top: 1px; +} +body.presto div.a2b table#coords td.sel input.radio { + top: -1px; +} +* html div.a2b table#coords td.sel input.radio { + top: -2px; +} +* + html div.a2b table#coords td.sel input.radio { + top: -2px; +} +div.a2b table#coords td.vil *, div.a2b table#coords td.target * { + float: left; + margin-right: 10px; +} +div.a2b table#coords td.vil input.text { + width: 100px; +} +div.a2b table#coords td.target input.text { + width: 40px; +} +div.a2b table#short_info { + background-color: #FFFFFF; +} +div.a2b table#short_info th { + padding-left: 0; + width: 15%; +} +div.a2b table.troop_details tbody th { + width: 20%; +} +div.a2b table.troop_details tbody.units td { + padding: 2px; + text-align: center; + width: 7.2%; +} +div.a2b table.troop_details tbody.units input.text { + width: 73%; +} +div.a2b table.troop_details tbody.options input.radio { + margin-right: 2px; + position: relative; + top: 2px; +} +body.presto div.a2b table.troop_details tbody.options input.radio { + top: 0; +} +body.ie6 div.a2b table.troop_details tbody.options input.radio, body.ie7 div.a2b table.troop_details tbody.options input.radio { + top: -2px; +} +div.a2b table.troop_details tbody.cata select.dropdown { + margin: 1px 0; +} +div.a2b table.troop_details tbody.infos th, div.a2b table.troop_details tbody.infos td { + background-color: #F5F5F5; +} +div.a2b table.troop_details tbody.infos div { + text-align: center; + width: 49%; +} +div.a2b table.troop_details tbody.infos div.in { + float: left; +} +div.a2b table.troop_details tbody.infos div.at { + float: right; +} +div.cropfinder table#croplist th, div.cropfinder table#croplist td { + padding: 2px 7px; +} +div.cropfinder table#croplist td.none { + text-align: center; +} +div.cropfinder table#croplist td.dist { + white-space: nowrap; + width: 12%; +} +div.cropfinder table#croplist td.typ { + width: 12%; +} +div.cropfinder table#croplist td.oase { + width: 18%; +} +div.cropfinder table#croplist td.footer { + text-align: right; +} +div.plus table.lang_ltr th, div.plus table.lang_ltr td { + text-align: left; +} +div.plus table.lang_rtl th, div.plus table.lang_rtl td { + text-align: right; +} +div.plus div#products table.product { + width: 116px; +} +div.plus div#products table.product td, div.plus div#products table.product th { + padding: 2px 7px; +} +div.plus div#products table.product th { + text-align: center; +} +div.plus div#products table.product td.pic { + padding: 2px; + text-align: center; +} +div.plus table.rate_details th, div.plus table.rate_details td { + padding: 3px 7px; +} +div.plus table.rate_details td.pic { + padding: 2px; + text-align: center; + vertical-align: top; + width: 120px; +} +div.plus table.rate_details td.pic img { + margin: 10px 0; +} +div.plus table.rate_details td.desc { + text-align: center; +} +div.plus table#open_orders { + background-color: #FFFFFF; + border-collapse: collapse; +} +div.plus table#open_orders th, div.plus table#open_orders td { + border-bottom: 1px solid #C0C0C0; + border-top: 1px solid #C0C0C0; + padding: 2px 7px; + text-align: center; +} +div.plus table#open_orders tr.dark td { + background-color: #EFEFEF; +} +div.plus table.features th, div.plus table.features td { + padding: 2px 7px; +} +div.plus table.features tbody th { + background-color: #F5F5F5; + text-align: center; +} +div.plus table.features td.preview { + padding: 0; + text-align: center; + width: 200px; +} +div.plus table.features td.text { + padding: 4px 7px; +} +div.plus table.plusFunctions th, div.plus table.plusFunctions td { + padding: 2px 7px; + text-align: center; +} +div.plus table.plusFunctions td.man { + padding: 0; + width: 4%; +} +div.plus table.plusFunctions td.desc { + text-align: left; +} +div.plus table.plusFunctions td.dur { + width: 15%; +} +div.plus table.plusFunctions td.cost { + white-space: nowrap; + width: 9%; +} +div.plus table.plusFunctions td.act { + width: 20%; +} +div.plus table#invite th, div.plus table#invite td { + padding: 2px 7px; +} +div.plus table#invite tbody.mails td { + background-color: #F5F5F5; +} +div.plus table#invite tbody.msg pre { + margin: 10px 5px; +} +div.plus table#invite tbody.msg th { + background-color: #F5F5F5; +} +div.plus table#invite tbody.msg textarea { + height: 200px; + width: 480px; +} +div.plus #brought_in th, div.plus #brought_in td { + padding: 2px 7px; +} +div.warsim table#select { + margin-top: 10px; +} +div.warsim table#select thead td { + padding: 2px 7px; +} +div.warsim table#select tbody td { + line-height: 20px; + padding: 5px 7px; + vertical-align: top; + width: 33%; +} +div.warsim table#select input.radio { + position: relative; + top: 1px; +} +body.presto div.warsim table#select input.radio { + top: 0; +} +body.ie6 div.warsim table#select input.radio, body.ie7 div.warsim table#select input.radio { + top: -2px; +} +div.warsim table.fill_in { + width: 49%; +} +div.warsim table.fill_in th { + padding: 2px; +} +div.warsim table.fill_in td { + padding: 1px; +} +div.warsim table.fill_in tbody th { + background-color: #F5F5F5; + text-align: center; +} +div.warsim table.fill_in td.details { + padding: 0; +} +div.warsim table.fill_in td.details table { + background-color: #FFFFFF; +} +div.warsim table.fill_in td.details table td.ico { + padding-left: 4px; + padding-right: 2px; + width: 16px; +} +div.warsim table.fill_in td.details table td.value { + width: 43px; +} +div.warsim table.fill_in td.details table td.value input.text { + width: 35px; +} +div.warsim table.fill_in td.details table td.research { + padding-right: 4px; + width: 23px; +} +div.warsim table.fill_in td.details table td.research input.text { + width: 15px; +} +div.warsim table.results th { + padding: 2px 7px; +} +div.warsim table.results td { + padding: 2px 1px; +} +div.warsim table.results tbody th { + width: 20%; +} +div.warsim table.results tbody td { + text-align: center; + width: 8%; +} +div.support table { + line-height: 16px; +} +div.support table th, div.support table td { + padding: 2px 3px; +} +div.support table td { + padding-left: 7px; +} +td.form_table_label { + white-space: pre; + width: 30%; +} +td.form_table_element { + width: 70%; +} +table.form_table { + background-color: transparent; +} +body { + color: #000000; + font-family: Verdana,Arial,Helvetica,sans-serif; + font-size: 13px; + font-weight: normal; +} +a { + color: #71D000; + font-weight: bold; + text-decoration: none; +} +a:visited { + color: #71D000; +} +a:active { + color: #FF8000; +} +a:hover { + color: #00BC00; +} +h1 { + font-size: 24px; +} +h2 { + font-size: 18px; +} +div#header { + font-size: 0; +} +table td, table th { + font-size: 13px; + font-weight: normal; +} +table thead th, table tfoot th { + font-weight: bold; +} +input.text, select.dropdown, textarea { + font-family: Verdana,Arial,Helvetica,sans-serif; + font-size: 11px; +} +div#textmenu { + font-size: 13px; + font-weight: normal; +} +div#textmenu span { + color: #C0C0C0; + font-weight: bold; +} +div#textmenu a.selected { + border-bottom: 1px dashed Silver; +} +.none { + color: #C0C0C0; +} +.error { + color: #FF8000; +} +span.plus_g { + color: #71D000; + font-weight: bold; +} +span.plus_o { + color: #FF6F0F; + font-weight: bold; +} +div#ltime { + color: #666666; + font-size: 10px; +} +div#mtop { + font-size: 0; +} +div#side_navi { + font-size: 13px; +} +div#side_navi p { + font-size: 12px; +} +div#side_navi p a { + color: #000000; + font-weight: normal; +} +div#side_navi p a:hover { + color: #00C000; +} +div#side_navi p.deltimer a { + font-weight: bold; +} +div#side_navi p.deltimer a span { + color: #FF8000; +} +div#side_info h6 { + color: #FF8000; + font-size: 13px; + font-weight: bold; +} +div#side_info table thead td a { + color: black; + font-weight: bold; +} +div#side_info table tbody td { + font-size: 11px; +} +div#side_info td.hl { + color: #FF8000; +} +div#side_info td.link { + font-size: 13px; +} +div#side_info span.time { + color: #999999; + font-size: 11px; + font-style: italic; +} +div#side_info div.news { + font-size: 12px; +} +div#side_info div.news h5 { + font-size: 13px; +} +div#footer div#mfoot { + color: #666666; + font-size: 11px; +} +div#footer div#mfoot a { + color: #666666; + font-weight: normal; + text-decoration: none; +} +div#footer div#mfoot a:visited, div#footer div#mfoot a:active { + color: #666666; +} +div#footer div#mfoot a:hover { + color: #00C000; +} +div.login p { + font-size: 12px; +} +div.login table th, div.login table td { + font-size: 11px; +} +div.signup table th, .signup table td { + font-size: 11px; +} +div.signup p { + font-size: 12px; +} +div.signup p.info { + color: #FF8000; +} +div.signup p.error2 { + color: #FF8000; +} +div.signup p#timer1 { + font-size: 20px; + font-weight: bold; +} +div.signup span.error { + font-size: 9px; +} +div.signup span.unavailable { + font-size: 24px; +} +div.signup .important { + color: #FF8000; + font-weight: bold; +} +div.activate h6 { + color: #FF8000; + font-size: 12px; + font-weight: bold; +} +div.activate table th, div.activate table td { + font-size: 11px; +} +div.activate td.name { + color: #FF8000; + font-weight: bold; +} +div.activate p { + font-size: 12px; +} +div.activate p.info { + color: #C0C0C0; + font-size: 24px; +} +div.activate p.info2 { + color: #FF8000; + font-weight: bold; +} +div.village1 h1 div#loyality { + font-size: 9px; + font-weight: bold; +} +div.village1 h1 div.re { + color: #FF0000; +} +div.village1 h1 div.gr { + color: #228B22; +} +div.village1 table td.num { + font-weight: bold; +} +div.village1 table#movements td.typ, div.village1 table#movements div.mov { + font-weight: bold; +} +div.village1 table#movements .a1 { + color: #FF0000; +} +div.village1 table#movements .d1 { + color: #228B22; +} +div.village1 table#movements .a2, div.village1 table#movements .d2 { + color: #F2C700; +} +div.village1 table#movements .a3, div.village1 table#movements .d3 { + color: #B500A3; +} +div.village2 div#village_map div#levels div { + font-family: Arial,Helvetica; + font-size: 9px; +} +div.village3 table tbody th { + font-weight: bold; +} +div.village3 table#ressources td.tra a { + color: black; + font-weight: normal; +} +div.village3 table#warehouse .crit { + color: red; +} +div.village3 table#culture_points span.dot { + color: #C0C0C0; + font-weight: bold; +} +div.village3 table#troops tr.small th, div.village3 div.village3 table#troops tr.small td { + font-size: 11px; +} +div.village3 table.vil_troops tbody th { + font-weight: normal; +} +div#map div#map_rulers div { + font-size: 10px; +} +div#map div#map_coords { + font-weight: bold; +} +div#map table#map_infobox th, div#map table#map_infobox td { + font-size: 11px; +} +div#map table.empty thead th, div#map table.oasis_empty thead th, div#map table.oasis thead th { + font-style: italic; + font-weight: normal; +} +div#map table.default th, div#map table.default td, div#map table.empty th, div#map table.empty td, div#map table.oasis_empty th, div#map table.oasis_empty td { + color: #C0C0C0; +} +div.map table#raidFavs td.none a { + color: #C0C0C0; + font-weight: normal; +} +div.map table#raidDetails td.balance div.booty { + color: #00BC00; +} +div.map div#dmain { + color: #C0C0C0; +} +div.map table#raidDetails td.balance div.booty { + color: #00BC00; +} +div.map table#raidDetails td.balance div.lost { + color: #FF6F0F; +} +div.map table#raidDetails td.balance div.sum { + font-weight: bold; +} +div.player span.none2 { + color: #C0C0C0; + font-weight: bold; +} +div.player span.none3 { + color: #C0C0C0; +} +div.player div#textmenu a.none { + color: #C0C0C0; +} +div.player table#edit td.desc1 textarea, div.player table#edit td.desc2 textarea { + font-size: 13px; +} +div.player #advertisement span.note { + font-size: 10px; +} +div.player td.note { + font-size: 11px; +} +div.player table#change_pass td.note { + font-size: 10px; +} +div.player table#change_pass td.generate span { + color: #C0C0C0; + font-size: 9px; +} +div.player table#change_mail th.process { + color: red; +} +div.player table.account span.count { + color: #C0C0C0; + font-size: 10px; +} +div.player table.account span.max { + color: red; + font-size: 10px; +} +div.player table#del_acc td.note { + text-align: center; +} +div.player table#del_acc td.count { + font-weight: bold; +} +div.player table#del_acc td.count span { + color: #FF8000; +} +div.player table#gpack td span.alert { + color: #FF0000; + font-weight: bold; +} +div.player table#gpack td.info { + font-size: 11px; +} +div.player table#gpack td div.example { + font-size: 11px; +} +div.player table#gpack td div.example span.path { + color: #FF8000; +} +div.player div#gpack_popup span.error { + font-weight: bold; +} +div.player div#gpack_popup span.info { + color: #228B22; + font-weight: bold; +} +div.player div#gpack_popup span.path { + color: #FF8000; +} +div.player div#gpack_popup ul { + font-size: 11px; +} +div.alliance .error2, div.alliance .error3 { + color: #FF8000; +} +div.alliance .error { + font-weight: bold; +} +div.alliance .error2 { + font-size: 9px; +} +div.alliance table#edit td.desc1 textarea, div.alliance table#edit td.desc2 textarea { + font-size: 13px; +} +div.alliance table#hint td, div.alliance table#tip td { + font-size: 12px; +} +div.alliance table#own td.wait { + color: #C0C0C0; +} +div.alliance div.chatHeader { + font-weight: bold; +} +div.alliance span.chatTime { + font-size: 10px; + font-weight: normal; +} +div.forum p.error { + font-weight: bold; +} +div.forum h4 { + font-size: 11px; + font-weight: normal; +} +div.forum table td.tit { + font-size: 11px; +} +div.forum table td.cou { + font-size: 10px; +} +div.forum table td.last { + font-size: 10px; +} +div.forum table td.navi_top, div.forum table td.navi_btm { + font-size: 11px; +} +div.forum table#posts td.pinfo { + font-size: 10px; +} +div.forum table#posts td.pinfo .name { + font-size: 11px; + font-weight: bold; +} +div.forum table#posts td.pinfo span.name { + color: #888888; +} +div.forum table#posts td.pcontent div.posted { + color: #888888; + font-size: 10px; +} +div.forum table#posts td.pcontent div.text { + font-size: 11px; +} +div.forum table#posts td.pcontent div.edited { + color: #888888; + font-size: 10px; +} +div.forum table#new_topic tbody th, div.forum table#new_post tbody th, div.forum table#edit_post tbody th { + font-size: 11px; + font-weight: bold; +} +div.forum table#edit_topic tbody th { + font-size: 11px; + font-weight: bold; + width: 30%; +} +div.forum table#poll thead th { + font-size: 12px; + font-weight: normal; +} +div.forum table#poll td { + font-size: 11px; +} +div.statistics p.error { + font-size: 9px; +} +div.statistics h4 { + color: #FF8000; + font-size: 13px; + font-weight: bold; +} +div.statistics table#wonder td.at { + color: #C0C0C0; +} +div.statistics table#search_navi div.search span.or { + font-style: italic; +} +div.statistics table#search_navi div.navi { + color: #C0C0C0; + font-weight: bold; +} +div.reports .none2 { + color: #C0C0C0; + font-weight: bold; +} +div.reports table#overview thead th.sent { + font-weight: bold; +} +div.reports table#overview thead th.sent a { + color: black; +} +div.reports table#overview tfoot th.navi { + color: #C0C0C0; + font-weight: bold; +} +div.reports table#report_surround thead td.sent { + font-weight: bold; +} +div.reports td.report_content thead td.role { + font-weight: bold; +} +div.reports td.report_content table#reinforcement td.role { + color: #71D000; +} +div.reports td.report_content table#attacker td.role { + color: #FF8000; +} +div.reports td.report_content table.defender td.role { + color: #71D000; +} +div.messages p.warning { + color: #FF0000; +} +div.messages table#overview th.sent a { + color: black; + font-weight: bold; +} +div.messages table#overview td.dat { + white-space: nowrap; +} +div.messages table#overview th.navi { + color: #C0C0C0; + font-weight: bold; +} +div.messages div#read_content div#time div { + font-size: 12px; +} +div.messages div.message { + font-size: 12px; +} +div.messages div#write_content textarea { + font-size: 12px; +} +div.messages div#adressbook span.enough { + color: red; + font-size: 13px; + font-weight: bold; +} +div.messages div#block textarea { + font-size: 12px; +} +div#build table.build_details td.desc span.info { + font-size: 11px; +} +div#build table.build_details td.max { + font-size: 10px; +} +div#build table.under_progress td.desc span.info { + color: #C0C0C0; + font-size: 11px; +} +div#build.gid0 table.new_building td.requ { + font-weight: bold; +} +div#build.gid15 input.btn { + font-size: 11px; +} +div#build.gid16 h4 { + font-size: 13px; + font-weight: bold; +} +div#build.gid16 p.info a { + color: black; + font-size: 21px; + font-weight: bold; +} +div#build.gid16 table.troop_details thead a { + color: black; +} +div#build.gid16 table#raidList thead a { + color: black; + font-weight: normal; +} +div.map table#raidFavs thead a { + color: black; + font-weight: normal; +} +div#build.gid17 div.error, div#build.gid17 p.error { + font-weight: bold; +} +div#build.gid17 p.error2 { + color: #FF8000; +} +div#build.gid17 p.note { + color: #228B22; + font-weight: bold; +} +div#build.gid17 table.send_res td.max { + font-size: 11px; +} +div#build.gid17 table#send_validate td.max { + color: #C0C0C0; + font-weight: bold; +} +div#build.gid17 table#target_select td.vil, div#build.gid17 table#target_select td.coo { + font-size: 18px; + font-weight: bold; +} +div#build.gid17 table#target_select td.or { + font-style: italic; +} +div#build.gid17 table#target_validate td.vil { + font-size: 18px; +} +div#build.gid17 table.traders thead td a { + color: black; +} +div#build.gid17 span.corr { + color: #FF4000; +} +div#build.gid17 p.info { + font-size: 11px; +} +div#build.gid18 table#found span.error { + font-size: 11px; +} +div#build.gid26 table#main td.desc { + font-size: 11px; +} +div#build.gid27 table span.bon { + font-size: 10px; +} +div#build.gid27 table div.info { + font-size: 11px; +} +div#build.gid27 table#own td.inactive, div#build.gid27 table#own td.inactive a { + color: #C0C0C0; +} +div#build.gid27 table#art_details td.desc { + font-size: 11px; +} +div#build.gid27 table#art_details td.desc span.detail { + font-style: italic; +} +div#build.gid37 table#distribution thead th a { + color: black; +} +div#build.gid37 table#distribution thead th span.info { + font-weight: normal; +} +div#build.gid37 table#distribution td.rem { + color: #228B22; + font-weight: bold; +} +div#build.gid40 p.info { + color: #C0C0C0; + font-size: 11px; +} +div#build.gid40 p.nam { + font-size: 27px; +} +body.manual h1 span.tribe { + color: #C0C0C0; + font-size: 12px; + font-weight: normal; +} +body.manual li span.info { + color: #C0C0C0; + font-size: 11px; +} +div.quest div#qstd span.qcoords { + font-size: 24px; + font-weight: bold; +} +div.quest div#qstd span.qcoords input { + font-size: 24px; + font-weight: bold; +} +div.quest div.rew p.ta_aw { + font-weight: bold; +} +div.quest div#qstd span.org { + font-style: normal; +} +div.a2b p.error { + font-weight: bold; +} +div.a2b span.info { + font-size: 11px; +} +div.a2b table#troops td { + font-size: 11px; +} +div.a2b table#troops span.none { + font-weight: bold; +} +div.a2b table#coords td.or { + font-style: italic; +} +div.a2b table#coords td.vil, div.a2b table#coords td.target { + font-size: 18px; + font-weight: bold; +} +div.a2b table.troop_details thead td { + font-weight: bold; +} +div.a2b table.troop_details thead td a { + color: black; +} +div.plus table th, div.plus table td { + font-family: Verdana,Arial,Helvetica,sans-serif; + font-size: 13px; +} +div.plus table.lang_ar th, div.plus table.lang_ar td { + font-family: Tahoma,Helvetica,Arial,Verdana,sans-serif; + font-size: 14px; +} +div.plus p#product_selection { + font-size: 10px; +} +div.plus p#product_selection label { + font-weight: bold; +} +div.plus p#product_selection select.dropdown { + font-size: 10px; +} +div.plus p#orders_link { + font-size: 10px; +} +div.plus table.rate_details td.pic div { + font-size: 10px; +} +div.plus table.rate_details td.desc span.alert { + color: red; + font-style: italic; +} +div.plus table#open_orders th, div.plus table#open_orders td { + font-size: 9px; +} +div.plus table.features tbody th { + font-weight: bold; +} +div.plus table.plusFunctions td.cost { + font-weight: bold; +} +div.plus table.plusFunctions span.none { + font-weight: normal; +} +div.plus table.plusFunctions span.run { + font-size: 11px; +} +div.plus span.mail, div.plus span.link { + font-family: Courier New; +} +div.plus span.notice { + color: #C0C0C0; + font-size: 11px; +} +div.plus p.report { + color: #71D000; + font-size: 21px; +} +div.plus #invite tbody.msg th, div.plus #invite tbody.msg td { + font-size: 11px; +} +div.plus #brought_in tr.more td { + color: #C0C0C0; +} +div.warsim table.attacker td.role { + color: #FF8000; + font-weight: bold; +} +div.warsim table.defender td.role { + color: #71D000; + font-weight: bold; +} +div.activation_time { + color: #FF8000; + font-size: 20px; +} +img, a, div { + background-position: left top; + background-repeat: no-repeat; +} +input.dynamic_img, img.dynamic_img { + background-position: center top; + height: 20px; +} +input.over, img.over { + background-position: center bottom; +} +input.clicked, img.clicked { + background-position: center center; +} +img.help { + background-image: url("../../img/a/help.gif"); + height: 12px; + width: 15px; +} +img.del { + background-image: url("../../img/a/del.gif"); + height: 12px; + width: 12px; +} +img.clock { + background-image: url("../../img/a/clock.gif"); + height: 12px; + width: 18px; +} +img.clock.inactive { + background-image: url("../../img/a/clock-inactive.gif"); +} +img.npc { + background-image: url("../../img/a/npc.gif"); + background-position: center top; + height: 12px; + width: 18px; +} +img.npc_inactive { + background-image: url("../../img/a/npc.gif"); + background-position: center bottom; + height: 12px; + width: 18px; +} +img.gold { + background-image: url("../../img/a/gold.gif"); + height: 12px; + width: 12px; +} +img.gold_g { + background-image: url("../../img/a/gold_g.gif"); + height: 12px; + width: 12px; +} +img.vip { + height: 1px; + width: 1px; +} +img.r1, img.r2, img.r3, img.r4, img.r5 { + background-image: url("../../img/a/res2.gif"); + height: 12px; + width: 18px; +} +img.r1 { + background-position: 0 0; +} +img.r2 { + background-position: -21px 0; +} +img.r3 { + background-position: -42px 0; +} +img.r4 { + background-position: -63px 0; +} +img.r5 { + background-position: -84px 0; +} +img.attack_symbol_grey, img.attack_symbol_green, img.attack_symbol_yellow, img.attack_symbol_red { + background-image: url("../../img/a/mark_attack.gif"); + height: 12px; + width: 12px; +} +img.attack_symbol_green { + background-position: 0 0; +} +img.attack_symbol_yellow { + background-position: -15px 0; +} +img.attack_symbol_red { + background-position: -30px 0; +} +img.attack_symbol_grey { + background-position: -45px 0; +} +img.unit { + height: 16px; + width: 16px; +} +img.unit_card_detail { + background: none no-repeat scroll 0 0 transparent; + margin-right: 5px; +} +img.u1, img.u2, img.u3, img.u4, img.u5, img.u6, img.u7, img.u8, img.u9, img.u10 { + background-image: url("../../img/u/v1_romans2.gif"); +} +img.u11, img.u12, img.u13, img.u14, img.u15, img.u16, img.u17, img.u18, img.u19, img.u20 { + background-image: url("../../img/u/v2_teutons2.gif"); +} +img.u21, img.u22, img.u23, img.u24, img.u25, img.u26, img.u27, img.u28, img.u29, img.u30 { + background-image: url("../../img/u/v3_gauls2.gif"); +} +img.u31, img.u32, img.u33, img.u34, img.u35, img.u36, img.u37, img.u38, img.u39, img.u40 { + background-image: url("../../img/u/v4_nature2.gif"); +} +img.u41, img.u42, img.u43, img.u44, img.u45, img.u46, img.u47, img.u48, img.u49, img.u50 { + background-image: url("../../img/u/v5_natars2.gif"); +} +img.u51, img.u52, img.u53, img.u54, img.u55, img.u56, img.u57, img.u58, img.u59, img.u60 { + background-image: url("../../img/u/v6_monsters2.gif"); +} +img.uhab, img.ucata, img.ustock, img.uwall, img.ubarr, img.upal, img.ugeb, img.uhero, img.uunits, img.app { + background-image: url("../../img/u/specials.gif"); +} +img.u1, img.u11, img.u21, img.u31, img.u41, img.u51, img.uhab { + background-position: 0 0; +} +img.u2, img.u12, img.u22, img.u32, img.u42, img.u52, img.ucata { + background-position: -19px 0; +} +img.u3, img.u13, img.u23, img.u33, img.u43, img.u53, img.ustock { + background-position: -38px 0; +} +img.u4, img.u14, img.u24, img.u34, img.u44, img.u54, img.uwall { + background-position: -57px 0; +} +img.u5, img.u15, img.u25, img.u35, img.u45, img.u55, img.ubarr { + background-position: -76px 0; +} +img.u6, img.u16, img.u26, img.u36, img.u46, img.u56, img.upal { + background-position: -95px 0; +} +img.u7, img.u17, img.u27, img.u37, img.u47, img.u57, img.ugeb { + background-position: -114px 0; +} +img.u8, img.u18, img.u28, img.u38, img.u48, img.u58, img.uhero { + background-position: -133px 0; +} +img.u9, img.u19, img.u29, img.u39, img.u49, img.u59, img.uunits { + background-position: -152px 0; +} +img.app { + background-position: -170px 0; +} +img.u10, img.u20, img.u30, img.u40, img.u50, img.u60 { + background-position: -171px 0; +} +img.u98 { + background-image: url("../../img/u/98.gif"); +} +img.u99 { + background-image: url("../../img/u/99.gif"); +} +span.tribe { + background-position: left center; + background-repeat: no-repeat; + height: 16px; + padding-left: 20px; +} +span.tribe1 { + background-image: url("../../img/u/9.gif"); +} +span.tribe2 { + background-image: url("../../img/u/19.gif"); +} +span.tribe3 { + background-image: url("../../img/u/29.gif"); +} +img.att_all { + background-image: url("../../img/a/att_all.gif"); + height: 16px; + width: 16px; +} +img.att1 { + background-image: url("../../img/a/att1.gif"); + height: 16px; + width: 16px; +} +img.att2 { + background-image: url("../../img/a/att2.gif"); + height: 16px; + width: 16px; +} +img.att3 { + background-image: url("../../img/a/att3.gif"); + height: 16px; + width: 16px; +} +img.def1 { + background-image: url("../../img/a/def1.gif"); + height: 16px; + width: 16px; +} +img.def2 { + background-image: url("../../img/a/def2.gif"); + height: 16px; + width: 16px; +} +img.def3 { + background-image: url("../../img/a/def3.gif"); + height: 16px; + width: 16px; +} +img.def_c { + background-image: url("../../img/a/def_c.gif"); + height: 16px; + width: 16px; +} +img.def_i { + background-image: url("../../img/a/def_i.gif"); + height: 16px; + width: 16px; +} +div#map div#map_content div span { + height: 16px; + width: 18px; +} +div#map div#map_content div span.m3 { + background-image: url("../../img/m/matt.gif"); +} +div#map div#map_content div span.m4 { + background-image: url("../../img/m/matt.gif"); +} +div#map div#map_content div span.m5 { + background-image: url("../../img/m/msup.gif"); +} +div#map div#map_content div span.m6 { + background-image: url("../../img/m/mspy.gif"); +} +div#map div#map_content div span.m9 { + background-image: url("../../img/m/mret.gif"); +} +img.iReport { + background-image: url("../../img/a/report_icons.gif"); + height: 17px; + width: 19px; +} +img.iReport0 { + background-position: 0 -3px; +} +img.iReport1 { + background-position: 0 -53px; +} +img.iReport2 { + background-position: 0 -103px; +} +img.iReport3 { + background-position: 0 -153px; +} +img.iReport4 { + background-position: 0 -203px; +} +img.iReport5 { + background-position: 0 -253px; +} +img.iReport6 { + background-position: 0 -303px; +} +img.iReport7 { + background-position: 0 -353px; +} +img.iReport8 { + background-position: 0 -403px; +} +img.iReport9 { + background-position: 0 -453px; +} +img.iReport10 { + background-position: 0 -503px; +} +img.iReport11 { + background-position: 0 -553px; +} +img.iReport12 { + background-position: 0 -603px; +} +img.iReport13 { + background-position: 0 -653px; +} +img.iReport14 { + background-position: 0 -703px; +} +img.iReport15 { + background-position: 0 -753px; +} +img.iReport16 { + background-position: 0 -803px; +} +img.iReport17 { + background-position: 0 -853px; +} +img.iReport18 { + background-position: 0 -903px; +} +img.iReport19 { + background-position: 0 -953px; +} +div#map a#map_makelarge img { + background-image: url("../../img/m/max.gif"); + + height: 25px; + width: 33px; +} +div#mbig a#map_popclose img { + background-image: url("../../img/a/close.gif"); + height: 22px; + width: 22px; +} +img.online1, img.online2, img.online3, img.online4, img.online5 { + background-image: url("../../img/a/online.gif"); + height: 12px; + width: 12px; +} +img.online1 { + background-position: 0 0; +} +img.online2 { + background-position: -15px 0; +} +img.online3 { + background-position: -30px 0; +} +img.online4 { + background-position: -45px 0; +} +img.online5 { + background-position: -60px 0; +} +h1 img.point { + background-image: url("../../img/u/point.gif"); + height: 16px; + width: 16px; +} +div#side_info table#llist img.external, body.manual img.external { + background-image: url("../../img/a/external.gif"); + height: 10px; + width: 10px; +} +div.reports div.carry img.car, #build.gid16 div.carry img.car { + background: url("../../img/a/car.gif") no-repeat scroll 0 0 transparent; + height: 12px; + width: 18px; +} +div.village3 table#overview td.bui img.bau { + background-image: url("../../img/a/bau.gif"); + height: 16px; + width: 10px; +} +div.player img.tn, div.player img.tnd { + height: 45px; + width: 65px; +} +div.player img.tn { + background-image: url("../../img/t/tn.gif"); +} +div.player img.tnd { + background-image: url("../../img/t/tnd.gif"); +} +div.player img.medal, div.alliance img.medal, body.manual img.medal { + height: 48px; + width: 35px; +} +div.player img.t1_1, body.manual img.t1_1 { + background-image: url("../../img/t/t1_1.jpg"); +} +div.player img.t1_2, body.manual img.t1_2 { + background-image: url("../../img/t/t1_2.jpg"); +} +div.player img.t1_3, body.manual img.t1_3 { + background-image: url("../../img/t/t1_3.jpg"); +} +div.player img.t1_4, body.manual img.t1_4 { + background-image: url("../../img/t/t1_4.jpg"); +} +div.player img.t1_5 { + background-image: url("../../img/t/t1_5.jpg"); +} +div.player img.t1_6 { + background-image: url("../../img/t/t1_6.jpg"); +} +div.player img.t1_7 { + background-image: url("../../img/t/t1_7.jpg"); +} +div.player img.t1_8 { + background-image: url("../../img/t/t1_8.jpg"); +} +div.player img.t1_9 { + background-image: url("../../img/t/t1_9.jpg"); +} +div.player img.t1_10 { + background-image: url("../../img/t/t1_10.jpg"); +} +div.player img.t100_1 { + background-image: url("../../img/t/t100_1.jpg"); +} +div.player img.t101_1 { + background-image: url("../../img/t/t101_1.jpg"); +} +div.player img.t102_1 { + background-image: url("../../img/t/t102_1.jpg"); +} +div.player img.t110_1 { + background-image: url("../../img/t/t110_1.jpg"); +} +div.player img.t111_1 { + background-image: url("../../img/t/t111_1.jpg"); +} +div.player img.t112_1 { + background-image: url("../../img/t/t112_1.jpg"); +} +div.player img.t120_1 { + background-image: url("../../img/t/t120_1.jpg"); +} +div.player img.t121_1 { + background-image: url("../../img/t/t121_1.jpg"); +} +div.player img.t122_1 { + background-image: url("../../img/t/t122_1.jpg"); +} +div.player img.t130_1 { + background-image: url("../../img/t/t130_1.jpg"); +} +div.player img.t131_1 { + background-image: url("../../img/t/t131_1.jpg"); +} +div.player img.t132_1 { + background-image: url("../../img/t/t132_1.jpg"); +} +div.player img.t140_1 { + background-image: url("../../img/t/t140_1.jpg"); +} +div.player img.t141_1 { + background-image: url("../../img/t/t141_1.jpg"); +} +div.player img.t142_1 { + background-image: url("../../img/t/t142_1.jpg"); +} +div.player img.t150_1 { + background-image: url("../../img/t/t150_1.jpg"); +} +div.player img.t151_1 { + background-image: url("../../img/t/t151_1.jpg"); +} +div.player img.t152_1 { + background-image: url("../../img/t/t152_1.jpg"); +} +div.player img.t160_1 { + background-image: url("../../img/t/t160_1.jpg"); +} +div.player img.t161_1 { + background-image: url("../../img/t/t161_1.jpg"); +} +div.player img.t162_1 { + background-image: url("../../img/t/t162_1.jpg"); +} +div.player img.t170_1 { + background-image: url("../../img/t/t170_1.jpg"); +} +div.player img.t171_1 { + background-image: url("../../img/t/t171_1.jpg"); +} +div.player img.t172_1 { + background-image: url("../../img/t/t172_1.jpg"); +} +div.player img.t180_1 { + background-image: url("../../img/t/t180_1.jpg"); +} +div.player img.t181_1 { + background-image: url("../../img/t/t181_1.jpg"); +} +div.player img.t182_1 { + background-image: url("../../img/t/t182_1.jpg"); +} +div.player img.t190_1 { + background-image: url("../../img/t/t190_1.jpg"); +} +div.player img.t191_1 { + background-image: url("../../img/t/t191_1.jpg"); +} +div.player img.t192_1 { + background-image: url("../../img/t/t192_1.jpg"); +} +div.player img.t2_1 { + background-image: url("../../img/t/t2_1.jpg"); +} +div.player img.t2_10 { + background-image: url("../../img/t/t2_10.jpg"); +} +div.player img.t2_2 { + background-image: url("../../img/t/t2_2.jpg"); +} +div.player img.t2_3 { + background-image: url("../../img/t/t2_3.jpg"); +} +div.player img.t2_4 { + background-image: url("../../img/t/t2_4.jpg"); +} +div.player img.t2_5 { + background-image: url("../../img/t/t2_5.jpg"); +} +div.player img.t2_6 { + background-image: url("../../img/t/t2_6.jpg"); +} +div.player img.t2_7 { + background-image: url("../../img/t/t2_7.jpg"); +} +div.player img.t2_8 { + background-image: url("../../img/t/t2_8.jpg"); +} +div.player img.t2_9 { + background-image: url("../../img/t/t2_9.jpg"); +} +div.player img.t200_1 { + background-image: url("../../img/t/t200_1.jpg"); +} +div.player img.t201_1 { + background-image: url("../../img/t/t201_1.jpg"); +} +div.player img.t202_1 { + background-image: url("../../img/t/t202_1.jpg"); +} +div.player img.t210_1 { + background-image: url("../../img/t/t210_1.jpg"); +} +div.player img.t211_1 { + background-image: url("../../img/t/t211_1.jpg"); +} +div.player img.t212_1 { + background-image: url("../../img/t/t212_1.jpg"); +} +div.player img.t220_1 { + background-image: url("../../img/t/t220_1.jpg"); +} +div.player img.t221_1 { + background-image: url("../../img/t/t221_1.jpg"); +} +div.player img.t222_1 { + background-image: url("../../img/t/t222_1.jpg"); +} +div.player img.t3_1 { + background-image: url("../../img/t/t3_1.jpg"); +} +div.player img.t3_10 { + background-image: url("../../img/t/t3_10.jpg"); +} +div.player img.t3_2 { + background-image: url("../../img/t/t3_2.jpg"); +} +div.player img.t3_3 { + background-image: url("../../img/t/t3_3.jpg"); +} +div.player img.t3_4 { + background-image: url("../../img/t/t3_4.jpg"); +} +div.player img.t3_5 { + background-image: url("../../img/t/t3_5.jpg"); +} +div.player img.t3_6 { + background-image: url("../../img/t/t3_6.jpg"); +} +div.player img.t3_7 { + background-image: url("../../img/t/t3_7.jpg"); +} +div.player img.t3_8 { + background-image: url("../../img/t/t3_8.jpg"); +} +div.player img.t3_9 { + background-image: url("../../img/t/t3_9.jpg"); +} +div.player img.t4_1 { + background-image: url("../../img/t/t4_1.jpg"); +} +div.player img.t4_10 { + background-image: url("../../img/t/t4_10.jpg"); +} +div.player img.t4_2 { + background-image: url("../../img/t/t4_2.jpg"); +} +div.player img.t4_3 { + background-image: url("../../img/t/t4_3.jpg"); +} +div.player img.t4_4 { + background-image: url("../../img/t/t4_4.jpg"); +} +div.player img.t4_5 { + background-image: url("../../img/t/t4_5.jpg"); +} +div.player img.t4_6 { + background-image: url("../../img/t/t4_6.jpg"); +} +div.player img.t4_7 { + background-image: url("../../img/t/t4_7.jpg"); +} +div.player img.t4_8 { + background-image: url("../../img/t/t4_8.jpg"); +} +div.player img.t4_9 { + background-image: url("../../img/t/t4_9.jpg"); +} +div.player img.t5_1 { + background-image: url("../../img/t/t5_1.jpg"); +} +div.player img.t5_10 { + background-image: url("../../img/t/t5_10.jpg"); +} +div.player img.t5_2 { + background-image: url("../../img/t/t5_2.jpg"); +} +div.player img.t5_3 { + background-image: url("../../img/t/t5_3.jpg"); +} +div.player img.t5_4 { + background-image: url("../../img/t/t5_4.jpg"); +} +div.player img.t5_5 { + background-image: url("../../img/t/t5_5.jpg"); +} +div.player img.t5_6 { + background-image: url("../../img/t/t5_6.jpg"); +} +div.player img.t5_7 { + background-image: url("../../img/t/t5_7.jpg"); +} +div.player img.t5_8 { + background-image: url("../../img/t/t5_8.jpg"); +} +div.player img.t5_9 { + background-image: url("../../img/t/t5_9.jpg"); +} +div.player img.t6_1 { + background-image: url("../../img/t/t6_1.jpg"); +} +div.player img.t6_10 { + background-image: url("../../img/t/t6_10.jpg"); +} +div.player img.t6_2 { + background-image: url("../../img/t/t6_2.jpg"); +} +div.player img.t6_3 { + background-image: url("../../img/t/t6_3.jpg"); +} +div.player img.t6_4 { + background-image: url("../../img/t/t6_4.jpg"); +} +div.player img.t6_5 { + background-image: url("../../img/t/t6_5.jpg"); +} +div.player img.t6_6 { + background-image: url("../../img/t/t6_6.jpg"); +} +div.player img.t6_7 { + background-image: url("../../img/t/t6_7.jpg"); +} +div.player img.t6_8 { + background-image: url("../../img/t/t6_8.jpg"); +} +div.player img.t6_9 { + background-image: url("../../img/t/t6_9.jpg"); +} +div.player img.t10_1 { + background-image: url("../../img/t/t10_1.jpg"); +} +div.player img.t10_2 { + background-image: url("../../img/t/t10_2.jpg"); + height: 195px; + width: 247px; +} +div.alliance img.a1_1, body.manual img.a1_1 { + background-image: url("../../img/t/a1_1.jpg"); +} +div.alliance img.a1_2, body.manual img.a1_2 { + background-image: url("../../img/t/a1_2.jpg"); +} +div.alliance img.a1_3, body.manual img.a1_3 { + background-image: url("../../img/t/a1_3.jpg"); +} +div.alliance img.a1_4, body.manual img.a1_4 { + background-image: url("../../img/t/a1_4.jpg"); +} +div.alliance img.a1_5 { + background-image: url("../../img/t/a1_5.jpg"); +} +div.alliance img.a1_6 { + background-image: url("../../img/t/a1_6.jpg"); +} +div.alliance img.a1_7 { + background-image: url("../../img/t/a1_7.jpg"); +} +div.alliance img.a1_8 { + background-image: url("../../img/t/a1_8.jpg"); +} +div.alliance img.a1_9 { + background-image: url("../../img/t/a1_9.jpg"); +} +div.alliance img.a1_10 { + background-image: url("../../img/t/a1_10.jpg"); +} +div.alliance img.a2_1 { + background-image: url("../../img/t/a2_1.jpg"); +} +div.alliance img.a2_2 { + background-image: url("../../img/t/a2_2.jpg"); +} +div.alliance img.a2_3 { + background-image: url("../../img/t/a2_3.jpg"); +} +div.alliance img.a2_4 { + background-image: url("../../img/t/a2_4.jpg"); +} +div.alliance img.a2_5 { + background-image: url("../../img/t/a2_5.jpg"); +} +div.alliance img.a2_6 { + background-image: url("../../img/t/a2_6.jpg"); +} +div.alliance img.a2_7 { + background-image: url("../../img/t/a2_7.jpg"); +} +div.alliance img.a2_8 { + background-image: url("../../img/t/a2_8.jpg"); +} +div.alliance img.a2_9 { + background-image: url("../../img/t/a2_9.jpg"); +} +div.alliance img.a2_10 { + background-image: url("../../img/t/a2_10.jpg"); +} +div.alliance img.a3_1 { + background-image: url("../../img/t/a3_1.jpg"); +} +div.alliance img.a3_2 { + background-image: url("../../img/t/a3_2.jpg"); +} +div.alliance img.a3_3 { + background-image: url("../../img/t/a3_3.jpg"); +} +div.alliance img.a3_4 { + background-image: url("../../img/t/a3_4.jpg"); +} +div.alliance img.a3_5 { + background-image: url("../../img/t/a3_5.jpg"); +} +div.alliance img.a3_6 { + background-image: url("../../img/t/a3_6.jpg"); +} +div.alliance img.a3_7 { + background-image: url("../../img/t/a3_7.jpg"); +} +div.alliance img.a3_8 { + background-image: url("../../img/t/a3_8.jpg"); +} +div.alliance img.a3_9 { + background-image: url("../../img/t/a3_9.jpg"); +} +div.alliance img.a3_10 { + background-image: url("../../img/t/a3_10.jpg"); +} +div.alliance img.a4_1 { + background-image: url("../../img/t/a4_1.jpg"); +} +div.alliance img.a4_2 { + background-image: url("../../img/t/a4_2.jpg"); +} +div.alliance img.a4_3 { + background-image: url("../../img/t/a4_3.jpg"); +} +div.alliance img.a4_4 { + background-image: url("../../img/t/a4_4.jpg"); +} +div.alliance img.a4_5 { + background-image: url("../../img/t/a4_5.jpg"); +} +div.alliance img.a4_6 { + background-image: url("../../img/t/a4_6.jpg"); +} +div.alliance img.a4_7 { + background-image: url("../../img/t/a4_7.jpg"); +} +div.alliance img.a4_8 { + background-image: url("../../img/t/a4_8.jpg"); +} +div.alliance img.a4_9 { + background-image: url("../../img/t/a4_9.jpg"); +} +div.alliance img.a4_10 { + background-image: url("../../img/t/a4_10.jpg"); +} +div.messages table#overview td.send img.acp { + background-image: url("../../img/a/external.gif"); + height: 10px; + width: 10px; +} +div.messages table#friendlist img.accept { + background-image: url("../../img/a/acc.gif"); + height: 12px; + width: 12px; +} +div.reports td.report_content img.easter { + background-image: url("../../img/r/easter.gif"); + height: 18px; + width: 44px; +} +div.reports td.report_content img.xmas { + background-image: url("../../img/r/xmas.gif"); + height: 24px; + width: 21px; +} +div.reports td.report_content img.newy { + background-image: url("../../img/r/newy.gif"); + height: 24px; + width: 28px; +} +div.forum img.add { + background-image: url("../../img/f/plus.gif"); + height: 16px; + width: 16px; +} +div.forum a.mad img { + background-image: url("../../img/f/mad.gif"); + height: 29px; + width: 31px; +} +div.forum table td.ico img { + height: 25px; + width: 26px; +} +div.forum table td.ico a img, div.forum table td.pcontent div.admin a img { + height: 12px; + width: 12px; +} +div.forum table td.ico a.edit img, div.forum table td.pcontent div.admin a.edit img { + background-image: url("../../img/f/edit.gif"); +} +div.forum table td.ico a.fdel img, div.forum table td.pcontent div.admin a.fdel img { + background-image: url("../../img/f/del.gif"); +} +div.forum table td.ico a.down_arr img { + background-image: url("../../img/f/down_arr.gif"); +} +div.forum table td.ico a.up_arr img { + background-image: url("../../img/f/up_arr.gif"); +} +div.forum table td.ico a.unlock img { + background-image: url("../../img/f/unlock.gif"); +} +div.forum table td.ico a.lock img { + background-image: url("../../img/f/lock.gif"); +} +div.forum table td.ico a.pin img { + background-image: url("../../img/f/pin.gif"); +} +div.forum table td.ico a.unpin img { + background-image: url("../../img/f/unpin.gif"); +} +div.forum table td.ico img.folder { + background-image: url("../../img/f/folder.gif"); +} +div.forum table td.ico img.folder_lock { + background-image: url("../../img/f/folder_lock.gif"); +} +div.forum table td.ico img.folder_new { + background-image: url("../../img/f/folder_new.gif"); +} +div.forum table td.ico img.folder_new_lock { + background-image: url("../../img/f/folder_new_lock.gif"); +} +div.forum table td.ico img.folder_sticky { + background-image: url("../../img/f/folder_sticky.gif"); +} +div.forum table td.ico img.folder_sticky_lock { + background-image: url("../../img/f/folder_sticky_lock.gif"); +} +div.forum table td.ico img.folder_new_sticky { + background-image: url("../../img/f/folder_new_sticky.gif"); +} +div.forum table td.ico img.folder_new_sticky_lock { + background-image: url("../../img/f/folder_new_sticky_lock.gif"); +} +div.forum table td.ico img.v_folder { + background-image: url("../../img/f/v_folder.gif"); +} +div.forum table td.ico img.v_folder_lock { + background-image: url("../../img/f/v_folder_lock.gif"); +} +div.forum table td.ico img.v_folder_new { + background-image: url("../../img/f/v_folder_new.gif"); +} +div.forum table td.ico img.v_folder_new_lock { + background-image: url("../../img/f/v_folder_new_lock.gif"); +} +div.forum table td.ico img.v_folder_sticky { + background-image: url("../../img/f/v_folder_sticky.gif"); +} +div.forum table td.ico img.v_folder_sticky_lock { + background-image: url("../../img/f/v_folder_sticky_lock.gif"); +} +div.forum table td.ico img.v_folder_new_sticky { + background-image: url("../../img/f/v_folder_new_sticky.gif"); +} +div.forum table td.ico img.v_folder_new_sticky_lock { + background-image: url("../../img/f/v_folder_new_sticky_lock.gif"); +} +div.forum table#topics td.last img.latest_reply { + background-image: url("../../img/f/icon_latest_reply.gif"); + height: 9px; + width: 18px; +} +div#build.gid27 table td.icon img { + background-image: url("../../img/misc/artefacts.gif"); + height: 16px; + width: 16px; +} +div#build.gid27 table td.icon img.artefact_icon_ww { + background-position: 0 0; +} +div#build.gid27 table td.icon img.artefact_icon_1 { + background-position: -16px 0; +} +div#build.gid27 table td.icon img.artefact_icon_2 { + background-position: -32px 0; +} +div#build.gid27 table td.icon img.artefact_icon_3 { + background-position: -48px 0; +} +div#build.gid27 table td.icon img.artefact_icon_4 { + background-position: -64px 0; +} +div#build.gid27 table td.icon img.artefact_icon_5 { + background-position: -80px 0; +} +div#build.gid27 table td.icon img.artefact_icon_6 { + background-position: -96px 0; +} +div#build.gid27 table td.icon img.artefact_icon_7 { + background-position: -112px 0; +} +div#build.gid27 table td.icon img.artefact_icon_8 { + background-position: -128px 0; +} +img.cropfinder_icon { + background-image: url("../../img/misc/cropfinder.gif"); + height: 20px; + width: 20px; +} +div#build.gid27 div.artefact { + background-position: center bottom; + background-repeat: no-repeat; +} +div#build.gid27 div.artefact.image-1 { + background-image: url("../../img/artefact/type-1.gif"); + padding-bottom: 160px; +} +div#build.gid27 div.artefact.image-2 { + background-image: url("../../img/artefact/type-2.gif"); + padding-bottom: 223px; +} +div#build.gid27 div.artefact.image-4 { + background-image: url("../../img/artefact/type-4.gif"); + padding-bottom: 200px; +} +div#build.gid27 div.artefact.image-5 { + background-image: url("../../img/artefact/type-5.gif"); + padding-bottom: 157px; +} +div#build.gid27 div.artefact.image-6 { + background-image: url("../../img/artefact/type-6.gif"); + padding-bottom: 170px; +} +div#build.gid27 div.artefact.image-8 { + background-image: url("../../img/artefact/type-8.gif"); + padding-bottom: 160px; +} +div#build.gid27 div.artefact.image-9 { + background-image: url("../../img/artefact/type-9.gif"); + padding-bottom: 198px; +} +div#build.gid27 div.artefact.image-10 { + background-image: url("../../img/artefact/type-10.gif"); + padding-bottom: 161px; +} +div#build.gid27 div.artefact.image-fool { + background-image: url("../../img/artefact/type-fool.gif"); + padding-bottom: 252px; +} +div.forum table img.smiley, div.forum table#posts td.pcontent div.text img.smiley, div.messages img.smiley { + background-image: url("../../img/f/smileys.gif"); + height: 16px; + width: 19px; +} +div.forum table img.aha, div.forum table#posts td.pcontent div.text img.aha, div.messages img.aha { + background-position: 0 0; +} +div.forum img.angry, div.forum table#posts td.pcontent div.text img.angry, div.messages img.angry { + background-position: -22px 0; +} +div.forum img.cool, div.forum table#posts td.pcontent div.text img.cool, div.messages img.cool { + background-position: -44px 0; +} +div.forum img.cry, div.forum table#posts td.pcontent div.text img.cry, div.messages img.cry { + background-position: -66px 0; +} +div.forum img.cute, div.forum table#posts td.pcontent div.text img.cute, div.messages img.cute { + background-position: -88px 0; +} +div.forum img.depressed, div.forum table#posts td.pcontent div.text img.depressed, div.messages img.depressed { + background-position: -110px 0; +} +div.forum img.eek, div.forum table#posts td.pcontent div.text img.eek, div.messages img.eek { + background-position: -132px 0; +} +div.forum img.ehem, div.forum table#posts td.pcontent div.text img.ehem, div.messages img.ehem { + background-position: -154px 0; +} +div.forum img.emotional, div.forum table#posts td.pcontent div.text img.emotional, div.messages img.emotional { + background-position: -176px 0; +} +div.forum img.grin, div.forum table#posts td.pcontent div.text img.grin, div.messages img.grin { + background-position: -198px 0; +} +div.forum img.happy, div.forum table#posts td.pcontent div.text img.happy, div.messages img.happy { + background-position: -220px 0; +} +div.forum img.hit, div.forum table#posts td.pcontent div.text img.hit, div.messages img.hit { + background-position: -242px 0; +} +div.forum img.hmm, div.forum table#posts td.pcontent div.text img.hmm, div.messages img.hmm { + background-position: -264px 0; +} +div.forum img.hmpf, div.forum table#posts td.pcontent div.text img.hmpf, div.messages img.hmpf { + background-position: -286px 0; +} +div.forum img.hrhr, div.forum table#posts td.pcontent div.text img.hrhr, div.messages img.hrhr { + background-position: -308px 0; +} +div.forum img.huh, div.forum table#posts td.pcontent div.text img.huh, div.messages img.huh { + background-position: -330px 0; +} +div.forum img.lazy, div.forum table#posts td.pcontent div.text img.lazy, div.messages img.lazy { + background-position: -352px 0; +} +div.forum img.love, div.forum table#posts td.pcontent div.text img.love, div.messages img.love { + background-position: -374px 0; +} +div.forum img.nocomment, div.forum table#posts td.pcontent div.text img.nocomment, div.messages img.nocomment { + background-position: -396px 0; +} +div.forum img.noemotion, div.forum table#posts td.pcontent div.text img.noemotion, div.messages img.noemotion { + background-position: -418px 0; +} +div.forum img.notamused, div.forum table#posts td.pcontent div.text img.notamused, div.messages img.notamused { + background-position: -440px 0; +} +div.forum img.pout, div.forum table#posts td.pcontent div.text img.pout, div.messages img.pout { + background-position: -462px 0; +} +div.forum img.redface, div.forum table#posts td.pcontent div.text img.redface, div.messages img.redface { + background-position: -484px 0; +} +div.forum img.rolleyes, div.forum table#posts td.pcontent div.text img.rolleyes, div.messages img.rolleyes { + background-position: -506px 0; +} +div.forum img.sad, div.forum table#posts td.pcontent div.text img.sad, div.messages img.sad { + background-position: -528px 0; +} +div.forum img.shy, div.forum table#posts td.pcontent div.text img.shy, div.messages img.shy { + background-position: -550px 0; +} +div.forum img.smile, div.forum table#posts td.pcontent div.text img.smile, div.messages img.smile { + background-position: -572px 0; +} +div.forum img.tongue, div.forum table#posts td.pcontent div.text img.tongue, div.messages img.tongue { + background-position: -594px 0; +} +div.forum img.veryangry, div.forum table#posts td.pcontent div.text img.veryangry, div.messages img.veryangry { + background-position: -616px 0; +} +div.forum img.veryhappy, div.forum table#posts td.pcontent div.text img.veryhappy, div.messages img.veryhappy { + background-position: -638px 0; +} +div.forum img.wink, div.forum table#posts td.pcontent div.text img.wink { + background-position: -660px 0; +} +div#side_info table thead td img.tSwitch { + height: 13px; + width: 13px; +} +table#llist img.closed, table#vlist img.closed { + background-image: url("../../img/a/closed.gif"); +} +table#llist img.opened, table#vlist img.opened { + background-image: url("../../img/a/opened.gif"); +} +div.village2 img#lswitch { + background: url("../../img/g/s/glvlp.gif") repeat scroll 0 0 transparent; +} +div.village2 img#lswitch.on { + background: url("../../img/g/s/glvlm.gif") repeat scroll 0 0 transparent; +} +img.plus { + background-image: url("../../img/a/plus.gif"); + height: 13px; + width: 13px; +} +img.minus { + background-image: url("../../img/a/minus.gif"); + height: 13px; + width: 13px; +} +div.alliance div#submenu img, div.statistics div#submenu img { + background-position: 0 top; + height: 30px; + width: 30px; +} +div.alliance div#submenu img.active, div.statistics div#submenu img.active { + background-position: 0 bottom; +} +div.alliance div#submenu img.btn_def, div.statistics div#submenu img.btn_def { + background-image: url("../../img/s/def.gif"); +} +div.alliance div#submenu img.btn_off, div.statistics div#submenu img.btn_off { + background-image: url("../../img/s/off.gif"); +} +div.statistics div#submenu img.btn_top10 { + background-image: url("../../img/s/top10.gif"); +} +div.statistics div#submenu2 img { + background-position: 0 top; + height: 30px; + width: 30px; +} +div.statistics div#submenu2 img.active { + background-position: 0 bottom; +} +div.statistics div#submenu2 img.btn_v1 { + background-image: url("../../img/s/v1.gif"); +} +div.statistics div#submenu2 img.btn_v2 { + background-image: url("../../img/s/v2.gif"); +} +div.statistics div#submenu2 img.btn_v3 { + background-image: url("../../img/s/v3.gif"); +} +div.forum img.switch_admin { + background-image: url("../../img/f/switch_admin.gif"); + height: 20px; + width: 47px; +} +div#header { + background-image: url("../../img/l/mw.gif"); + background-position: 0 -28px; + background-repeat: repeat-x; +} +div#mid { + background-image: url("../../img/a/rand.gif"); + background-position: left 0; + background-repeat: repeat-y; +} +div#footer { + background-image: url("../../img/a/btm.gif"); + background-repeat: repeat-x; +} +div#side_navi p.deltimer a:hover { + background: none repeat scroll 0 0 transparent; + height: auto; + width: auto; +} +div#side_navi a:hover { + background-image: url("../../img/a/n12.gif"); + height: 20px; + width: 113px; +} +div.map div#map div#map_content { + background-image: url("../../img/m/map.jpg"); + background-position: 2px 0; +} +div#mbig { + background-color: #FFFFFF; +} +div#mbig div#map { + background-image: url("../../img/m/mapl.gif"); +} +div.messages div#read_head { + background-image: url("../../img/msg/block_bg21.gif"); + background-position: left top; +} +div.messages div#read_content { + background-image: url("../../img/msg/block_bg22.gif"); + background-position: left top; + background-repeat: repeat-y; +} +div.messages div#read_content #heading div { + background-image: url("../../img/msg/underline.gif"); + background-position: left -2px; + background-repeat: repeat-x; +} +div.messages div#read_content .line { + background-image: url("../../img/msg/block_bg25.gif"); + background-position: left bottom; +} +div.messages div.message { + background-image: url("../../img/msg/underline.gif"); + background-repeat: repeat; +} +div.messages div#read_foot { + background-image: url("../../img/msg/block_bg23.gif"); + background-position: left bottom; +} +div.messages div#write_head { + background-image: url("../../img/msg/block_bg21.gif"); + background-position: left top; +} +div.messages div#write_content { + background-image: url("../../img/msg/block_bg22.gif"); + background-position: left top; + background-repeat: repeat-y; +} +div.messages div#write_content .line { + background-image: url("../../img/msg/block_bg25.gif"); + background-position: left bottom; +} +div.messages div#write_content #heading input { + background-image: url("../../img/msg/underline.gif"); + background-position: left -2px; + background-repeat: repeat-x; +} +div.messages div#write_content textarea { + background-image: url("../../img/msg/underline.gif"); + background-repeat: repeat; +} +div.messages div#write_foot { + background-image: url("../../img/msg/block_bg23.gif"); + background-position: left bottom; +} +div.messages div#message_container div.bbButton, div#text_container div.bbButton { + background-image: url("../../img/msg/bb_buttons.png"); + float: left; + height: 25px; + margin: 1px; + width: 25px; +} +div.messages div#message_container div.bbBold, div#text_container div.bbBold { + background-position: 0 0; +} +div.messages div#message_container div.bbItalic, div#text_container div.bbItalic { + background-position: -27px 0; +} +div.messages div#message_container div.bbUnderscore, div#text_container div.bbUnderscore { + background-position: -54px 0; +} +div.messages div#message_container div.bbAlliance, div#text_container div.bbAlliance { + background-position: -81px 0; + margin-left: 8px; +} +div.messages div#message_container div.bbPlayer, div#text_container div.bbPlayer { + background-position: -108px 0; +} +div.messages div#message_container div.bbCoordinate, div#text_container div.bbCoordinate { + background-position: -135px 0; +} +div.messages div#message_container div.bbReport, div#text_container div.bbReport { + background-position: -162px 0; +} +div.messages div#message_container div.bbPreview, div#text_container div.bbPreview { + background-position: -189px 0; + float: right; +} +div.messages div#message_container div.bbResource, div#text_container div.bbResource { + background-position: -216px 0; + margin-left: 8px; +} +div.messages div#message_container div.bbSmilie, div#text_container div.bbSmilie { + background-position: -243px 0; +} +div.messages div#message_container div.bbTroop, div#text_container div.bbTroop { + background-position: -270px 0; +} +div.messages div#message_container .bbLine, div#text_container .bbLine { + background-position: 0 0; +} +div.messages div#message_container div#message_toolbar, div#text_container div#text_toolbar { + padding: 0 10px; +} +div.messages div#message_container div#message_preview, div#text_container div#text_preview { + height: 258px; + overflow-x: hidden; + overflow-y: auto; + padding: 0; +} +div.messages div#message_container div#message_toolbarWindows div, div#text_container div#text_toolbarWindows div { + background: none repeat scroll 0 0 #EFEFEF; + border: 1px solid #71D000; + display: none; + left: 180px; + margin-top: 5px; + max-width: 240px; + padding: 5px; + position: absolute; +} +div#text_container div#text_toolbarWindows div { + left: 290px; +} +div.messages div#message_container div#message_toolbar img, div#text_container div#text_toolbar img { + margin: 4px; +} +div.forum textarea#text, div.forum div#text_preview { + margin-top: 10px; + padding: 5px; + width: 400px; +} +div.messages .quote-body { + font-style: italic; +} +div.messages div#adressbook { + background-image: url("../../img/a/adr.gif"); +} +div.messages div#block { + background-image: url("../../img/msg/block_bg.gif"); +} +div.messages div#block textarea { + background-image: url("../../img/msg/underline.gif"); + background-repeat: repeat; +} +div#build.gid37 table#distribution td.xp img.bar { + background-image: url("../../img/a/c3.gif"); + background-repeat: repeat-x; + height: 10px; +} +div#dynamic_header { + background-image: url("../../img/l/dyn_bg1.jpg"); + background-position: -80px -50px; +} +body.mod1 div#dynamic_header, body.mod2 div#dynamic_header { + background-image: none; +} +body.mod1 div#dynamic_header div.dyn1 { + background-image: url("../../img/l/ad1.jpg"); + background-position: -20px 0; +} +body.mod1 div#dynamic_header div.dyn2 { + background-image: url("../../img/l/ad2.jpg"); +} +body.mod2 div#dynamic_header div.dyn1 { + background-image: url("../../img/l/bigsize_bg.jpg"); + background-position: -100px 0; +} +body.mod3 div#dynamic_header div.dyn1 { + background-image: url("../../img/l/skyscraper_bg.gif"); +} +div.forum table#poll thead th { + background-image: url("../../img/f/c4.gif"); + background-repeat: repeat; +} +div.alliance div.chatHeader { + background-image: url("../../img/a/c2.gif"); + background-repeat: repeat; +} +div.popup3 { + background-image: url("../../img/a/anl.gif"); +} +div.popup3 img.xlo { + background-image: url("../../img/misc/xlo.gif"); + height: 32px; + width: 32px; +} +div.player div#gpack_popup { + background-image: url("../../img/a/gp.gif"); +} +div#side_info div#qge img#qgei { + height: 174px; +} +div#side_info div#qge img.q_l1 { + background-image: url("../../img/q/l1.jpg"); + width: 125px; +} +div#side_info div#qge img.q_l1g { + background-image: url("../../img/q/l1g.jpg"); + width: 125px; +} +div#side_info div#qge img.q_l2 { + background-image: url("../../img/q/l2.jpg"); + width: 164px; +} +div#side_info div#qge img.q_l2g { + background-image: url("../../img/q/l2g.jpg"); + width: 164px; +} +div#side_info div#qge img.q_l3 { + background-image: url("../../img/q/l3.jpg"); + width: 146px; +} +div#side_info div#qge img.q_l3g { + background-image: url("../../img/q/l3g.jpg"); + width: 146px; +} +div.quest div#qstbg { + background-color: white; + background-position: center bottom; + height: 398px; + left: 11px; + position: absolute; + top: 75px; + width: 428px; + z-index: 1; +} +div.quest div.allres { + background-image: url("../../img/q/allres.jpg"); + height: 160px; +} +div.quest div.army { + background-image: url("../../img/q/army.jpg"); + height: 169px; +} +div.quest div.barracks { + background-image: url("../../img/q/barracks.jpg"); + height: 180px; +} +div.quest div.clay_iron { + background-image: url("../../img/q/clay_iron.jpg"); + height: 199px; +} +div.quest div.cost { + background-image: url("../../img/q/cost.jpg"); + height: 242px; +} +div.quest div.farm { + background-image: url("../../img/q/farm.jpg"); + height: 181px; +} +div.quest div.granary_rally { + background-image: url("../../img/q/granary_rally.jpg"); + height: 163px; +} +div.quest div.hide { + background-image: url("../../img/q/hide.jpg"); + display: block; + height: 179px; +} +div.quest div.intro { + background-image: url("../../img/q/intro.jpg"); + height: 165px; +} +div.quest div.main { + background-image: url("../../img/q/main.jpg"); + height: 234px; +} +div.quest div.market { + background-image: url("../../img/q/market.jpg"); + height: 165px; +} +div.quest div.medal { + background-image: url("../../img/q/medal.jpg"); + height: 214px; +} +div.quest div.msg { + background-image: url("../../img/q/msg.jpg"); + height: 167px; +} +div.quest div.neighbour { + background-image: url("../../img/q/neighbour.jpg"); + height: 160px; +} +div.quest div.new_village { + background-image: url("../../img/q/new_village.jpg"); + height: 208px; +} +div.quest div.rank { + background-image: url("../../img/q/rank.jpg"); + height: 238px; +} +div.quest div.units { + background-image: url("../../img/q/units.jpg"); + height: 166px; +} +div.quest div.village_name { + background-image: url("../../img/q/village_name.jpg"); + height: 160px; +} +div.quest div.warehouse { + background-image: url("../../img/q/warehouse.jpg"); + height: 179px; +} +div.quest div.wood { + background-image: url("../../img/q/wood.jpg"); + height: 237px; +} +a#n1 img, a#n2 img, a#n3 img, a#n4 img, div#n5 { + background-position: 0 -21px; + background-repeat: no-repeat; + height: 67px; + width: 70px; +} +body.v35 a#n1 img { + background-image: url("../../img/l/n1.gif"); +} +body.v35 a#n2 img { + background-image: url("../../img/l/n2.gif"); +} +body.v35 a#n3 img { + background-image: url("../../img/l/n3.gif"); +} +body.v35 a#n4 img { + background-image: url("../../img/l/n4.gif"); +} +body.v3 a#n1 img { + background-image: url("../../img/l/n1_30.gif"); +} +body.v3 a#n2 img { + background-image: url("../../img/l/n2_30.gif"); +} +body.v3 a#n3 img { + background-image: url("../../img/l/n3_30.gif"); +} +body.v3 a#n4 img { + background-image: url("../../img/l/n4_30.gif"); +} +a#n1:hover img, a#n2:hover img, a#n3:hover img, a#n4:hover img { + background-position: 0 -121px; +} +div#n5 img { + height: 67px; + width: 35px; +} +body.v35 div.i1 { + background-image: url("../../img/l/m1.gif"); +} +body.v35 div.i2 { + background-image: url("../../img/l/m2.gif"); +} +body.v35 div.i3 { + background-image: url("../../img/l/m3.gif"); +} +body.v35 div.i4 { + background-image: url("../../img/l/m4.gif"); +} +body.v3 div.i1 { + background-image: url("../../img/l/m1_30.gif"); +} +body.v3 div.i2 { + background-image: url("../../img/l/m2_30.gif"); +} +body.v3 div.i3 { + background-image: url("../../img/l/m3_30.gif"); +} +body.v3 div.i4 { + background-image: url("../../img/l/m4_30.gif"); +} +img.building { + height: 100px; + width: 75px; +} +img.g16, img.g16b, img.g16n, img.dx1 { + height: 120px; + width: 69px; +} +img.g40, img.ww { + width: 214px; +} +img.g1 { + background-image: url("../../img/g/g1.gif"); +} +img.g2 { + background-image: url("../../img/g/g2.gif"); +} +img.g3 { + background-image: url("../../img/g/g3.gif"); +} +img.g4 { + background-image: url("../../img/g/g4.gif"); +} +img.g5 { + background-image: url("../../img/g/g5.gif"); +} +img.g5b { + background-image: url("../../img/g/g5b.gif"); +} +img.g6 { + background-image: url("../../img/g/g6.gif"); +} +img.g6b { + background-image: url("../../img/g/g6b.gif"); +} +img.g7 { + background-image: url("../../img/g/g7.gif"); +} +img.g7b { + background-image: url("../../img/g/g7b.gif"); +} +img.g8 { + background-image: url("../../img/g/g8.gif"); +} +img.g8b { + background-image: url("../../img/g/g8b.gif"); +} +img.g9 { + background-image: url("../../img/g/g9.gif"); +} +img.g9b { + background-image: url("../../img/g/g9b.gif"); +} +img.g10 { + background-image: url("../../img/g/g10.gif"); +} +img.g10b { + background-image: url("../../img/g/g10b.gif"); +} +img.g11 { + background-image: url("../../img/g/g11.gif"); +} +img.g11b { + background-image: url("../../img/g/g11b.gif"); +} +img.g12 { + background-image: url("../../img/g/g12.gif"); +} +img.g12b { + background-image: url("../../img/g/g12b.gif"); +} +img.g13 { + background-image: url("../../img/g/g13.gif"); +} +img.g13b { + background-image: url("../../img/g/g13b.gif"); +} +img.g14 { + background-image: url("../../img/g/g14.gif"); +} +img.g14b { + background-image: url("../../img/g/g14b.gif"); +} +img.g15 { + background-image: url("../../img/g/g15.gif"); +} +img.g15b { + background-image: url("../../img/g/g15b.gif"); +} +img.g16 { + background-image: url("../../img/g/g16.gif"); +} +img.g16b { + background-image: url("../../img/g/g16b.gif"); +} +img.g16e { + background-image: url("../../img/g/g16e.gif"); +} +img.g17 { + background-image: url("../../img/g/g17.gif"); +} +img.g17b { + background-image: url("../../img/g/g17b.gif"); +} +img.g18 { + background-image: url("../../img/g/g18.gif"); +} +img.g18b { + background-image: url("../../img/g/g18b.gif"); +} +img.g19 { + background-image: url("../../img/g/g19.gif"); +} +img.g19b { + background-image: url("../../img/g/g19b.gif"); +} +img.g20 { + background-image: url("../../img/g/g20.gif"); +} +img.g20b { + background-image: url("../../img/g/g20b.gif"); +} +img.g21 { + background-image: url("../../img/g/g21.gif"); +} +img.g21b { + background-image: url("../../img/g/g21b.gif"); +} +img.g22 { + background-image: url("../../img/g/g22.gif"); +} +img.g22b { + background-image: url("../../img/g/g22b.gif"); +} +img.g23 { + background-image: url("../../img/g/g23.gif"); +} +img.g23b { + background-image: url("../../img/g/g23b.gif"); +} +img.g24 { + background-image: url("../../img/g/g24.gif"); +} +img.g24b { + background-image: url("../../img/g/g24b.gif"); +} +img.g25 { + background-image: url("../../img/g/g25.gif"); +} +img.g25b { + background-image: url("../../img/g/g25b.gif"); +} +img.g26 { + background-image: url("../../img/g/g26.gif"); +} +img.g26b { + background-image: url("../../img/g/g26b.gif"); +} +img.g27 { + background-image: url("../../img/g/g27.gif"); +} +img.g27b { + background-image: url("../../img/g/g27b.gif"); +} +img.g28 { + background-image: url("../../img/g/g28.gif"); +} +img.g28b { + background-image: url("../../img/g/g28b.gif"); +} +img.g29 { + background-image: url("../../img/g/g29.gif"); +} +img.g29b { + background-image: url("../../img/g/g29b.gif"); +} +img.g30 { + background-image: url("../../img/g/g30.gif"); +} +img.g30b { + background-image: url("../../img/g/g30b.gif"); +} +img.g34 { + background-image: url("../../img/g/g34.gif"); +} +img.g34b { + background-image: url("../../img/g/g34b.gif"); +} +img.g36 { + background-image: url("../../img/g/g36.gif"); +} +img.g36b { + background-image: url("../../img/g/g36b.gif"); +} +img.g37 { + background-image: url("../../img/g/g37.gif"); +} +img.g37b { + background-image: url("../../img/g/g37b.gif"); +} +img.g38 { + background-image: url("../../img/g/g38.gif"); +} +img.g38b { + background-image: url("../../img/g/g38b.gif"); +} +img.g39 { + background-image: url("../../img/g/g39.gif"); +} +img.g39b { + background-image: url("../../img/g/g39b.gif"); +} +img.g40 { + background-image: url("../../img/g/g40.gif"); + height: 154px; +} +img.g40_1 { + background-image: url("../../img/g/g40_1.gif"); + height: 167px; +} +img.g40_2 { + background-image: url("../../img/g/g40_2.gif"); + height: 193px; +} +img.g40_3 { + background-image: url("../../img/g/g40_3.gif"); + height: 230px; +} +img.g40_4 { + background-image: url("../../img/g/g40_4.gif"); + height: 239px; +} +img.g40_5 { + background-image: url("../../img/g/g40_5.gif"); + height: 302px; +} +img.g41 { + background-image: url("../../img/g/g41.gif"); +} +img.g41b { + background-image: url("../../img/g/g41b.gif"); +} +img.g42 { + background-image: url("../../img/g/g42.gif"); +} +img.g42b { + background-image: url("../../img/g/g42b.gif"); +} +img.g43 { + background-image: url("../../img/g/g43.gif"); +} +img.g43b { + background-image: url("../../img/g/g43b.gif"); +} +img.g44 { + background-image: url("../../img/g/g44.gif"); +} +img.g44b { + background-image: url("../../img/g/g44b.gif"); +} +div.village1 div.f1, div.map img.f1 { + background-image: url("../../img/g/f1.jpg"); +} +div.village1 div.f2, div.map img.f2 { + background-image: url("../../img/g/f2.jpg"); +} +div.village1 div.f3, div.map img.f3 { + background-image: url("../../img/g/f3.jpg"); +} +div.village1 div.f4, div.map img.f4 { + background-image: url("../../img/g/f4.jpg"); +} +div.village1 div.f5, div.map img.f5 { + background-image: url("../../img/g/f5.jpg"); +} +div.village1 div.f6, div.map img.f6 { + background-image: url("../../img/g/f6.jpg"); +} +div.village1 div.f7, div.map img.f7 { + background-image: url("../../img/g/f7.jpg"); +} +div.village1 div.f8, div.map img.f8 { + background-image: url("../../img/g/f8.jpg"); +} +div.village1 div.f9, div.map img.f9 { + background-image: url("../../img/g/f9.jpg"); +} +div.village1 div.f10, div.map img.f10 { + background-image: url("../../img/g/f10.jpg"); +} +div.village1 div.f11, div.map img.f11 { + background-image: url("../../img/g/f11.jpg"); +} +div.village1 div.f12, div.map img.f12 { + background-image: url("../../img/g/f12.jpg"); +} +div.village1 div.f99, div.map img.f99 { + background-image: url("../../img/g/f99.jpg"); +} +div.village1 div#village_map img.level1, div.village1 div#village_map img.level2, div.village1 div#village_map img.level3, div.village1 div#village_map img.level4, div.village1 div#village_map img.level5, div.village1 div#village_map img.level6, div.village1 div#village_map img.level7, div.village1 div#village_map img.level8, div.village1 div#village_map img.level9, div.village1 div#village_map img.level10 { + background-image: url("../../img/g/s/lvl1_10.gif"); +} +div.village1 div#village_map img.level11, div.village1 div#village_map img.level12, div.village1 div#village_map img.level13, div.village1 div#village_map img.level14, div.village1 div#village_map img.level15, div.village1 div#village_map img.level16, div.village1 div#village_map img.level17, div.village1 div#village_map img.level18, div.village1 div#village_map img.level19, div.village1 div#village_map img.level20 { + background-image: url("../../img/g/s/lvl11_20.gif"); +} +div.village1 div#village_map img.level21, div.village1 div#village_map img.level22, div.village1 div#village_map img.level23, div.village1 div#village_map img.level24, div.village1 div#village_map img.level25 { + background-image: url("../../img/g/s/lvl21_30.gif"); +} +div.village1 div#village_map img.level1, div.village1 div#village_map img.level11, div.village1 div#village_map img.level21 { + background-position: 0 0; +} +div.village1 div#village_map img.level2, div.village1 div#village_map img.level12, div.village1 div#village_map img.level22 { + background-position: -17px 0; +} +div.village1 div#village_map img.level3, div.village1 div#village_map img.level13, div.village1 div#village_map img.level23 { + background-position: -34px 0; +} +div.village1 div#village_map img.level4, div.village1 div#village_map img.level14, div.village1 div#village_map img.level24 { + background-position: -51px 0; +} +div.village1 div#village_map img.level5, div.village1 div#village_map img.level15, div.village1 div#village_map img.level25 { + background-position: -68px 0; +} +div.village1 div#village_map img.level6, div.village1 div#village_map img.level16 { + background-position: -85px 0; +} +div.village1 div#village_map img.level7, div.village1 div#village_map img.level17 { + background-position: -102px 0; +} +div.village1 div#village_map img.level8, div.village1 div#village_map img.level18 { + background-position: -119px 0; +} +div.village1 div#village_map img.level9, div.village1 div#village_map img.level19 { + background-position: -136px 0; +} +div.village1 div#village_map img.level10, div.village1 div#village_map img.level20 { + background-position: -153px 0; +} +div.map img#detailed_map { + height: 264px; + width: 300px; +} +div.map img.w1 { + background-image: url("../../img/m/w1.jpg"); +} +div.map img.w2 { + background-image: url("../../img/m/w2.jpg"); +} +div.map img.w3 { + background-image: url("../../img/m/w3.jpg"); +} +div.map img.w4 { + background-image: url("../../img/m/w4.jpg"); +} +div.map img.w5 { + background-image: url("../../img/m/w5.jpg"); +} +div.map img.w6 { + background-image: url("../../img/m/w6.jpg"); +} +div.map img.w7 { + background-image: url("../../img/m/w7.jpg"); +} +div.map img.w8 { + background-image: url("../../img/m/w8.jpg"); +} +div.map img.w9 { + background-image: url("../../img/m/w9.jpg"); +} +div.map img.w10 { + background-image: url("../../img/m/w10.jpg"); +} +div.map img.w11 { + background-image: url("../../img/m/w11.jpg"); +} +div.map img.w12 { + background-image: url("../../img/m/w12.jpg"); +} +div.village2 div.d2_0 { + background-image: url("../../img/g/bg0.jpg"); +} +div.village2 div.d2_1 { + background-image: url("../../img/g/bg1.jpg"); +} +div.village2 div.d2_11 { + background-image: url("../../img/g/bg11.jpg"); +} +div.village2 div.d2_12 { + background-image: url("../../img/g/bg12.jpg"); +} +div.village2 div#village_map img.iso { + background-image: url("../../img/g/iso.gif"); +} +div.village2 div#levels div { + background: url("../../img/g/s/glvl.gif") repeat scroll 0 0 transparent; +} +div.village2 div#village_map img.tur { + background-image: url("../../img/special/NewyearRocket_turquoise_1a.gif"); +} +div.village2 div#village_map img.purp { + background-image: url("../../img/special/NewyearRocket_purple_1a.gif"); +} +div.village2 div#village_map img.yell { + background-image: url("../../img/special/NewyearRocket_yellow_1a.gif"); +} +div.village2 div#village_map img.oran { + background-image: url("../../img/special/NewyearRocket_orange_1a.gif"); +} +div.village2 div#village_map img.green { + background-image: url("../../img/special/NewyearRocket_green_1a.gif"); +} +div.village2 div#village_map img.red { + background-image: url("../../img/special/NewyearRocket_red_1a.gif"); +} +div#map div#map_content div.b00 { + background-image: url("../../img/m/d00.gif"); +} +div#map div#map_content div.b01 { + background-image: url("../../img/m/d01.gif"); +} +div#map div#map_content div.b02 { + background-image: url("../../img/m/d02.gif"); +} +div#map div#map_content div.b03 { + background-image: url("../../img/m/d03.gif"); +} +div#map div#map_content div.b04 { + background-image: url("../../img/m/d04.gif"); +} +div#map div#map_content div.b05 { + background-image: url("../../img/m/d05.gif"); +} +div#map div#map_content div.b06 { + background-image: url("../../img/m/d06.gif"); +} +div#map div#map_content div.b07 { + background-image: url("../../img/m/d07.gif"); +} +div#map div#map_content div.b08 { + background-image: url("../../img/m/d08.gif"); +} +div#map div#map_content div.b09 { + background-image: url("../../img/m/d09.gif"); +} +div#map div#map_content div.b10 { + background-image: url("../../img/m/d10.gif"); +} +div#map div#map_content div.b11 { + background-image: url("../../img/m/d11.gif"); +} +div#map div#map_content div.b12 { + background-image: url("../../img/m/d12.gif"); +} +div#map div#map_content div.b13 { + background-image: url("../../img/m/d13.gif"); +} +div#map div#map_content div.b14 { + background-image: url("../../img/m/d14.gif"); +} +div#map div#map_content div.b15 { + background-image: url("../../img/m/d15.gif"); +} +div#map div#map_content div.b16 { + background-image: url("../../img/m/d16.gif"); +} +div#map div#map_content div.b17 { + background-image: url("../../img/m/d17.gif"); +} +div#map div#map_content div.b18 { + background-image: url("../../img/m/d18.gif"); +} +div#map div#map_content div.b19 { + background-image: url("../../img/m/d19.gif"); +} +div#map div#map_content div.b20 { + background-image: url("../../img/m/d20.gif"); +} +div#map div#map_content div.b21 { + background-image: url("../../img/m/d21.gif"); +} +div#map div#map_content div.b22 { + background-image: url("../../img/m/d22.gif"); +} +div#map div#map_content div.b23 { + background-image: url("../../img/m/d23.gif"); +} +div#map div#map_content div.b24 { + background-image: url("../../img/m/d24.gif"); +} +div#map div#map_content div.b25 { + background-image: url("../../img/m/d25.gif"); +} +div#map div#map_content div.b26 { + background-image: url("../../img/m/d26.gif"); +} +div#map div#map_content div.b27 { + background-image: url("../../img/m/d27.gif"); +} +div#map div#map_content div.b28 { + background-image: url("../../img/m/d28.gif"); +} +div#map div#map_content div.b29 { + background-image: url("../../img/m/d29.gif"); +} +div#map div#map_content div.b30 { + background-image: url("../../img/m/d30.gif"); +} +div#map div#map_content div.b31 { + background-image: url("../../img/m/d31.gif"); +} +div#map div#map_content div.b32 { + background-image: url("../../img/m/d32.gif"); +} +div#map div#map_content div.b33 { + background-image: url("../../img/m/d33.gif"); +} +div#map div#map_content div.b34 { + background-image: url("../../img/m/d34.gif"); +} +div#map div#map_content div.b35 { + background-image: url("../../img/m/d35.gif"); +} +div#map div#map_content div.o0 { + background-image: url("../../img/m/o0.gif"); +} +div#map div#map_content div.o1 { + background-image: url("../../img/m/o1.gif"); +} +div#map div#map_content div.o2 { + background-image: url("../../img/m/o2.gif"); +} +div#map div#map_content div.o3 { + background-image: url("../../img/m/o3.gif"); +} +div#map div#map_content div.o4 { + background-image: url("../../img/m/o4.gif"); +} +div#map div#map_content div.o5 { + background-image: url("../../img/m/o5.gif"); +} +div#map div#map_content div.o6 { + background-image: url("../../img/m/o6.gif"); +} +div#map div#map_content div.o7 { + background-image: url("../../img/m/o7.gif"); +} +div#map div#map_content div.o8 { + background-image: url("../../img/m/o8.gif"); +} +div#map div#map_content div.o9 { + background-image: url("../../img/m/o9.gif"); +} +div#map div#map_content div.o10 { + background-image: url("../../img/m/o10.gif"); +} +div#map div#map_content div.o11 { + background-image: url("../../img/m/o11.gif"); +} +div#map div#map_content div.o12 { + background-image: url("../../img/m/o12.gif"); +} +div#map div#map_content div.o99 { + background-image: url("../../img/m/o99.gif"); +} +div#map div#map_content div.t0 { + background-image: url("../../img/m/t0.gif"); +} +div#map div#map_content div.t1 { + background-image: url("../../img/m/t1.gif"); +} +div#map div#map_content div.t2 { + background-image: url("../../img/m/t2.gif"); +} +div#map div#map_content div.t3 { + background-image: url("../../img/m/t3.gif"); +} +div#map div#map_content div.t4 { + background-image: url("../../img/m/t4.gif"); +} +div#map div#map_content div.t5 { + background-image: url("../../img/m/t5.gif"); +} +div#map div#map_content div.t6 { + background-image: url("../../img/m/t6.gif"); +} +div#map div#map_content div.t7 { + background-image: url("../../img/m/t7.gif"); +} +div#map div#map_content div.t8 { + background-image: url("../../img/m/t8.gif"); +} +div#map div#map_content div.t9 { + background-image: url("../../img/m/t9.gif"); +} +div#map img#map_navibox { + background-image: url("../../img/m/dir.gif"); + height: 60px; + width: 100px; +} +div.forum table#poll td.stat img { + height: 12px; +} +div.forum table#poll td.stat img.stats-start { + background-image: url("../../img/f/stats_left.gif"); + width: 5px; +} +div.forum table#poll td.stat img.stats-middle { + background-image: url("../../img/f/stats_middle.gif"); + background-repeat: repeat-x; +} +div.forum table#poll td.stat img.stats-end { + background-image: url("../../img/f/stats_right.gif"); + width: 5px; +} +div.messages div#write_content a#adbook img { + background-image: url("../../img/a/friends.gif"); + height: 29px; + width: 48px; +} +div.player div#gpack_popup img.logo { + height: 40px; + width: 40px; +} +div.player div#gpack_popup img.firefox { + background-image: url("../../img/a/firefox.gif"); +} +div.player div#gpack_popup img.opera { + background-image: url("../../img/a/opera.gif"); +} +div.player div#gpack_popup img.ie { + background-image: url("../../img/a/ie.gif"); +} +div.player div#gpack_popup img.unknown { + background-image: url("../../img/a/unknown.gif"); +} +div.player div#gpack_popup div#gpack_activate img#preview { + background-image: none; + height: 0; + width: 0; +} +body.manual img.troops { + background-image: url("../../img/a/troops.gif"); + height: 89px; + width: 140px; +} +body.manual img.buildings { + background-image: url("../../img/a/buildings.gif"); + height: 89px; + width: 140px; +} +body.manual img.navi { + background-image: url("../../img/a/navi.gif"); + height: 18px; + width: 116px; +} +body.manual img#big_unit { + height: 120px; + width: 150px; +} +body.manual img.big_u1 { + background-image: url("../../img/u2/u1.gif"); +} +body.manual img.big_u2 { + background-image: url("../../img/u2/u2.gif"); +} +body.manual img.big_u3 { + background-image: url("../../img/u2/u3.gif"); +} +body.manual img.big_u4 { + background-image: url("../../img/u2/u4.gif"); +} +body.manual img.big_u5 { + background-image: url("../../img/u2/u5.gif"); +} +body.manual img.big_u6 { + background-image: url("../../img/u2/u6.gif"); +} +body.manual img.big_u7 { + background-image: url("../../img/u2/u7.gif"); +} +body.manual img.big_u8 { + background-image: url("../../img/u2/u8.gif"); +} +body.manual img.big_u9 { + background-image: url("../../img/u2/u9.gif"); +} +body.manual img.big_u10 { + background-image: url("../../img/u2/u10.gif"); +} +body.manual img.big_u11 { + background-image: url("../../img/u2/u11.gif"); +} +body.manual img.big_u12 { + background-image: url("../../img/u2/u12.gif"); +} +body.manual img.big_u13 { + background-image: url("../../img/u2/u13.gif"); +} +body.manual img.big_u14 { + background-image: url("../../img/u2/u14.gif"); +} +body.manual img.big_u15 { + background-image: url("../../img/u2/u15.gif"); +} +body.manual img.big_u16 { + background-image: url("../../img/u2/u16.gif"); +} +body.manual img.big_u17 { + background-image: url("../../img/u2/u17.gif"); +} +body.manual img.big_u18 { + background-image: url("../../img/u2/u18.gif"); +} +body.manual img.big_u19 { + background-image: url("../../img/u2/u19.gif"); +} +body.manual img.big_u20 { + background-image: url("../../img/u2/u20.gif"); +} +body.manual img.big_u21 { + background-image: url("../../img/u2/u21.gif"); +} +body.manual img.big_u22 { + background-image: url("../../img/u2/u22.gif"); +} +body.manual img.big_u23 { + background-image: url("../../img/u2/u23.gif"); +} +body.manual img.big_u24 { + background-image: url("../../img/u2/u24.gif"); +} +body.manual img.big_u25 { + background-image: url("../../img/u2/u25.gif"); +} +body.manual img.big_u26 { + background-image: url("../../img/u2/u26.gif"); +} +body.manual img.big_u27 { + background-image: url("../../img/u2/u27.gif"); +} +body.manual img.big_u28 { + background-image: url("../../img/u2/u28.gif"); +} +body.manual img.big_u29 { + background-image: url("../../img/u2/u29.gif"); +} +body.manual img.big_u30 { + background-image: url("../../img/u2/u30.gif"); +} +div.plus table#gold_features td.preview img { + height: 150px; + width: 150px; +} +div.plus table#gold_features td.preview img.p1_25 { + background-image: url("../../img/p/p1_25.jpg"); +} +div.plus table#gold_features td.preview img.p2_25 { + background-image: url("../../img/p/p2_25.jpg"); +} +div.plus table#gold_features td.preview img.p3_25 { + background-image: url("../../img/p/p3_25.jpg"); +} +div.plus table#gold_features td.preview img.p4_25 { + background-image: url("../../img/p/p4_25.jpg"); +} +div.plus table#gold_features td.preview img.off10 { + background-image: url("../../img/p/off10.jpg"); +} +div.plus table#gold_features td.preview img.def10 { + background-image: url("../../img/p/def10.jpg"); +} +div.plus table#gold_features td.preview img.bau0 { + background-image: url("../../img/p/bau0.jpg"); +} +div.plus table#gold_features td.preview img.npc { + background-image: url("../../img/p/npc.jpg"); +} +div.plus table#plus_features td.preview img.att_mark { + background-image: url("../../img/p/attack_marker.gif"); + height: 100px; + width: 200px; +} +div.logout img.roman, div.signup img.roman { + background-image: url("http://img.travian.org/img/de/temp/roemer.gif"); + height: 156px; + width: 129px; +} +div.error_site img.e403 { + background-image: url("../../img/misc/403.gif"); + height: 211px; + width: 165px; +} +div.error_site img.e404 { + background-image: url("../../img/misc/404.gif"); + height: 155px; + width: 190px; +} +div.error_site img.e500 { + background-image: url("../../img/misc/500.gif"); + height: 207px; + width: 254px; +} +div.peace { + font-size: 18pt; + left: 110px; + position: absolute; + top: -5px; + z-index: 999; +} +div.peace.active { + color: #FF8000; +} +div.peace.comming { + color: #C0C0C0; +} +img.day { + background-image: url("../../img/l/day.gif"); + height: 18px; + left: 104px; + position: absolute; + top: -5px; + width: 18px; +} +img.night { + background-image: url("../../img/l/night.gif"); + height: 18px; + left: 104px; + position: absolute; + top: -5px; + width: 18px; +} +img.facebook100 { + background-image: url("../../img/misc/facebook100.jpg"); + height: 102px; + width: 102px; +} +img.facebook75 { + background-image: url("../../img/misc/fb_friends_75.gif"); + float: left; + height: 75px; + padding-left: 10px; + width: 75px; +} +img.g35 { + background-image: url("../../img/g/g35.gif"); +} +img.g35b { + background-image: url("../../img/g/g35b.gif"); +} +div.plus div#payment table td { + border: medium none; +} +div.plus div#payment table table tr.rbg td { + background-image: url("../../img/a/c2.gif"); + background-repeat: repeat; + font-weight: bold; + text-align: center; +} +div.plus div#payment table { + border-collapse: separate; +} +div.plus div#payment table td { + padding: 2px; + text-align: center; +} +div.plus div#payment table tr.s7 td { + text-align: left; +} +div.plus div#payment table table td.th_bg { + background-image: url("../../img/a/c2.gif"); + background-repeat: repeat; +} +div.wmError { + color: #FF8000; + margin-top: 15px; +} +div.wmMsg { + color: #71D000; + margin-top: 15px; +} +table.tippTable { + background-color: transparent; + margin: 20px 0; +} +div.wmInfo { + float: left; + width: 80%; +} +img.wmInfo { + display: inline; + float: right; + width: 100px; +} +div#wmContent { + margin-top: 40px; +} +div#wmContent input.disabled { + background-position: center center; + cursor: default; + height: 20px; +} +div#side_navi img.wm_logo { + background: url("../../img/wm/wm99.gif") no-repeat scroll 0 0 transparent; + height: 33px; + left: 103px; + position: absolute; + top: -21px; + width: 33px; +} +td.wm_getippt { + background-color: #E2FFB9; +} +input.cancel{width:12px;height:12px;background-image:url(../../img/a/del.gif);} +input.accept{width:12px;height:12px;background-image:url(../../img/a/acc.gif);} diff --git a/gpack/travian_default/lang/en/f/Thumbs.db b/gpack/travian_default/lang/en/f/Thumbs.db new file mode 100644 index 00000000..e577196a Binary files /dev/null and b/gpack/travian_default/lang/en/f/Thumbs.db differ diff --git a/gpack/travian_default/lang/en/f/newforum.gif b/gpack/travian_default/lang/en/f/newforum.gif new file mode 100644 index 00000000..9c9195f3 Binary files /dev/null and b/gpack/travian_default/lang/en/f/newforum.gif differ diff --git a/gpack/travian_default/lang/en/f/post.gif b/gpack/travian_default/lang/en/f/post.gif new file mode 100644 index 00000000..0dfda4c9 Binary files /dev/null and b/gpack/travian_default/lang/en/f/post.gif differ diff --git a/gpack/travian_default/lang/en/f/reply.gif b/gpack/travian_default/lang/en/f/reply.gif new file mode 100644 index 00000000..199f100e Binary files /dev/null and b/gpack/travian_default/lang/en/f/reply.gif differ diff --git a/gpack/travian_default/lang/en/f/result.gif b/gpack/travian_default/lang/en/f/result.gif new file mode 100644 index 00000000..12b42aa7 Binary files /dev/null and b/gpack/travian_default/lang/en/f/result.gif differ diff --git a/gpack/travian_default/lang/en/f/vote.gif b/gpack/travian_default/lang/en/f/vote.gif new file mode 100644 index 00000000..20a1ea2c Binary files /dev/null and b/gpack/travian_default/lang/en/f/vote.gif differ diff --git a/gpack/travian_default/lang/en/f/voting.gif b/gpack/travian_default/lang/en/f/voting.gif new file mode 100644 index 00000000..ee68b11a Binary files /dev/null and b/gpack/travian_default/lang/en/f/voting.gif differ diff --git a/gpack/travian_default/lang/en/gp_check.css b/gpack/travian_default/lang/en/gp_check.css new file mode 100644 index 00000000..1d94b2be --- /dev/null +++ b/gpack/travian_default/lang/en/gp_check.css @@ -0,0 +1,11 @@ +@CHARSET "UTF-8"; +div.player +div#gpack_popup +div#gpack_error{display:none} +div.player +div#gpack_popup +div#gpack_activate{display:block} +div.player +div#gpack_popup +div#gpack_activate +img#preview{width:442px;height:150px;background-image:url(new/gp_preview.png)} \ No newline at end of file diff --git a/gpack/travian_default/lang/en/lang.css b/gpack/travian_default/lang/en/lang.css new file mode 100644 index 00000000..87c937f8 --- /dev/null +++ b/gpack/travian_default/lang/en/lang.css @@ -0,0 +1,18 @@ +@CHARSET "UTF-8"; + +/* + *------------------------------------------------------------------------------ + * LANG is used to define the language-specific images and settings. + * + * Contains: + * width, height, background-image, background-repeat, background-position + *------------------------------------------------------------------------------ + */ + +@import "../../modules/new_layout_ltr.css"; + +/* --- Colors ------------------------- */ +@import "../../modules/new_colors.css"; + +/* --- Icons, Images and Backgrounds ---------- */ +@import "../../modules/new_images.css"; input#btn_login {width:97px; background-image: url(b/login.gif);} input#btn_signup {width:97px; background-image: url(b/signup.gif);} input#btn_ok {width:47px; background-image: url(b/ok.gif);} input#btn_reply {width:97px; background-image: url(b/reply.gif);} input#btn_send {width:97px; background-image: url(b/send.gif);} input#btn_save {width:97px; background-image: url(b/save.gif);} input#btn_delete {width:97px; background-image: url(b/delete.gif);} input#btn_archiv {width:97px; background-image: url(b/archiv.gif);} input#btn_back {width:97px; background-image: url(b/zurueck.html);} input#btn_train {width:97px; background-image: url(b/train.gif);} input#btn_back {width:97px; background-image: url(b/back.gif);} input#btn_forward {width:97px; background-image: url(b/forward.gif);} input#btn_demolish {width:97px; background-image: url(b/demolish.gif);} input#btn_search {width:97px; background-image: url(b/search.gif);} /* Ally Forum */ div.forum input#fbtn_ok {width:47px; background-image:url(b/ok.gif);} div.forum input#fbtn_vote {width:97px; background-image:url(f/vote.gif);} div.forum input#fbtn_result {width:97px; background-image:url(f/result.gif);} div.forum input#fbtn_voting {width:97px; background-image:url(f/voting.gif);} div.forum img#fbtn_reply {width:97px; background-image:url(f/reply.gif);} div.forum img#fbtn_post {width:97px; background-image:url(f/post.gif);} div.forum img#fbtn_newforum {width:97px; background-image:url(f/newforum.gif);} /* ------------------- Texts ------------------- */ /* --------------------------------------------- */ /* news */ div#side_info h5 img {width:160px; height:15px;} /* login */ div.login h1 img.img_login {width:468px; height:60px; background-image:url(t1/login.gif);} div.login h5 img.img_u04 {width:160px; height:15px; background-image:url(t2/u04.gif);} /* signup */ div.signup h1 img.anmelden {width:468px; height:60px; background-image:url(t1/anmelden.gif);} div.signup h5 img.img_u05 {width:160px; height:15px; background-image:url(t2/u05.gif);} div.signup img.img_u06 {width:160px; height:15px; background-image:url(t2/u06.gif);} div.signup img.img_u07 {width:160px; height:15px; background-image:url(t2/u07.gif);} /* activate */ div.activate h1 img.passwort {width:468px; height:60px; background-image:url(t1/passwort.gif);} div.activate h5 img.img_u22 {width:160px; height:15px; background-image:url(t2/u22.gif);} /* read/write message */ div.messages div.msg_content img#label {width:77px; height:34px;} div.messages div.msg_content img.send {background-image:url(msg/block_bg24b.gif);} div.messages div.msg_content img.read {background-image:url(msg/block_bg24a.gif);} /* ------------------- Images ------------------- */ /* ---------------------------------------------- */ /* travian logo */ div#side_navi a#logo img {width:116px; height:60px; background-image:url(a/travian0.gif);} div#side_navi a#logo img.logo_plus {background-image:url(a/travian1.gif);} /* plus previews */ div.plus table#plus_features td.preview img.autovv {width:200px; height:56px; background-image:url(p/autovv.gif);} div.plus table#plus_features td.preview img.bfilter {width:200px; height:45px; background-image:url(p/bfilter.gif);} div.plus table#plus_features td.preview img.dorf3 {width:200px; height:186px; background-image:url(p/dorf3.jpg);} div.plus table#plus_features td.preview img.p1 {width:179px; height:29px; background-image:url(p/p1.gif);} div.plus table#plus_features td.preview img.p3 {width:163px; height:120px; background-image:url(p/p3.gif);} div.plus table#plus_features td.preview img.p4 {width:197px; height:41px; background-image:url(p/p4.gif);} div.plus table#plus_features td.preview img.p5 {width:132px; height:51px; background-image:url(p/p5.gif);} div.plus table#plus_features td.preview img.p6 {width:111px; height:29px; background-image:url(p/p6.gif);} div.plus table#plus_features td.preview img.p7 {width:61px; height:86px; background-image:url(p/p7.gif);} div.plus table#plus_features td.preview img.p8 {width:117px; height:121px; background-image:url(p/p8.gif);} div.plus table#plus_features td.preview img.sort {width:200px; height:38px; background-image:url(p/sort.jpg);} div.plus table#plus_features td.preview img.st1 {width:200px; height:90px; background-image:url(p/st1.gif);} div.plus table#plus_features td.preview img.xxl_map {width:146px; height:112px; background-image:url(p/xxl_map.gif);} input#btn_search {width:97px; background-image: url(b/search.gif);} diff --git a/gpack/travian_default/lang/en/msg/Thumbs.db b/gpack/travian_default/lang/en/msg/Thumbs.db new file mode 100644 index 00000000..8849e29f Binary files /dev/null and b/gpack/travian_default/lang/en/msg/Thumbs.db differ diff --git a/gpack/travian_default/lang/en/msg/block_bg24a.gif b/gpack/travian_default/lang/en/msg/block_bg24a.gif new file mode 100644 index 00000000..e389a4a4 Binary files /dev/null and b/gpack/travian_default/lang/en/msg/block_bg24a.gif differ diff --git a/gpack/travian_default/lang/en/msg/block_bg24b.gif b/gpack/travian_default/lang/en/msg/block_bg24b.gif new file mode 100644 index 00000000..dc039d1c Binary files /dev/null and b/gpack/travian_default/lang/en/msg/block_bg24b.gif differ diff --git a/gpack/travian_default/lang/en/new/gp_preview.png b/gpack/travian_default/lang/en/new/gp_preview.png new file mode 100644 index 00000000..6de495a1 Binary files /dev/null and b/gpack/travian_default/lang/en/new/gp_preview.png differ diff --git a/gpack/travian_default/lang/en/p/Thumbs.db b/gpack/travian_default/lang/en/p/Thumbs.db new file mode 100644 index 00000000..5df33705 Binary files /dev/null and b/gpack/travian_default/lang/en/p/Thumbs.db differ diff --git a/gpack/travian_default/lang/en/p/autovv.gif b/gpack/travian_default/lang/en/p/autovv.gif new file mode 100644 index 00000000..3ebc0d00 Binary files /dev/null and b/gpack/travian_default/lang/en/p/autovv.gif differ diff --git a/gpack/travian_default/lang/en/p/bfilter.gif b/gpack/travian_default/lang/en/p/bfilter.gif new file mode 100644 index 00000000..97942339 Binary files /dev/null and b/gpack/travian_default/lang/en/p/bfilter.gif differ diff --git a/gpack/travian_default/lang/en/p/dorf3.jpg b/gpack/travian_default/lang/en/p/dorf3.jpg new file mode 100644 index 00000000..ce88756b Binary files /dev/null and b/gpack/travian_default/lang/en/p/dorf3.jpg differ diff --git a/gpack/travian_default/lang/en/p/p1.gif b/gpack/travian_default/lang/en/p/p1.gif new file mode 100644 index 00000000..6f6d868a Binary files /dev/null and b/gpack/travian_default/lang/en/p/p1.gif differ diff --git a/gpack/travian_default/lang/en/p/p3.gif b/gpack/travian_default/lang/en/p/p3.gif new file mode 100644 index 00000000..eca80249 Binary files /dev/null and b/gpack/travian_default/lang/en/p/p3.gif differ diff --git a/gpack/travian_default/lang/en/p/p4.gif b/gpack/travian_default/lang/en/p/p4.gif new file mode 100644 index 00000000..113f4a27 Binary files /dev/null and b/gpack/travian_default/lang/en/p/p4.gif differ diff --git a/gpack/travian_default/lang/en/p/p5.gif b/gpack/travian_default/lang/en/p/p5.gif new file mode 100644 index 00000000..9dad5211 Binary files /dev/null and b/gpack/travian_default/lang/en/p/p5.gif differ diff --git a/gpack/travian_default/lang/en/p/p6.gif b/gpack/travian_default/lang/en/p/p6.gif new file mode 100644 index 00000000..cf63c4eb Binary files /dev/null and b/gpack/travian_default/lang/en/p/p6.gif differ diff --git a/gpack/travian_default/lang/en/p/p7.gif b/gpack/travian_default/lang/en/p/p7.gif new file mode 100644 index 00000000..2f558af3 Binary files /dev/null and b/gpack/travian_default/lang/en/p/p7.gif differ diff --git a/gpack/travian_default/lang/en/p/p8.gif b/gpack/travian_default/lang/en/p/p8.gif new file mode 100644 index 00000000..bc8e346b Binary files /dev/null and b/gpack/travian_default/lang/en/p/p8.gif differ diff --git a/gpack/travian_default/lang/en/p/sort.jpg b/gpack/travian_default/lang/en/p/sort.jpg new file mode 100644 index 00000000..baf9cdf4 Binary files /dev/null and b/gpack/travian_default/lang/en/p/sort.jpg differ diff --git a/gpack/travian_default/lang/en/p/st1.gif b/gpack/travian_default/lang/en/p/st1.gif new file mode 100644 index 00000000..f3cc7f32 Binary files /dev/null and b/gpack/travian_default/lang/en/p/st1.gif differ diff --git a/gpack/travian_default/lang/en/p/xxl_map.gif b/gpack/travian_default/lang/en/p/xxl_map.gif new file mode 100644 index 00000000..6b6ffc70 Binary files /dev/null and b/gpack/travian_default/lang/en/p/xxl_map.gif differ diff --git a/gpack/travian_default/lang/en/t1/Thumbs.db b/gpack/travian_default/lang/en/t1/Thumbs.db new file mode 100644 index 00000000..77fea1cd Binary files /dev/null and b/gpack/travian_default/lang/en/t1/Thumbs.db differ diff --git a/gpack/travian_default/lang/en/t1/anmelden.gif b/gpack/travian_default/lang/en/t1/anmelden.gif new file mode 100644 index 00000000..8850d263 Binary files /dev/null and b/gpack/travian_default/lang/en/t1/anmelden.gif differ diff --git a/gpack/travian_default/lang/en/t1/login.gif b/gpack/travian_default/lang/en/t1/login.gif new file mode 100644 index 00000000..db106b85 Binary files /dev/null and b/gpack/travian_default/lang/en/t1/login.gif differ diff --git a/gpack/travian_default/lang/en/t1/passwort.gif b/gpack/travian_default/lang/en/t1/passwort.gif new file mode 100644 index 00000000..193bae56 Binary files /dev/null and b/gpack/travian_default/lang/en/t1/passwort.gif differ diff --git a/gpack/travian_default/lang/en/t2/Thumbs.db b/gpack/travian_default/lang/en/t2/Thumbs.db new file mode 100644 index 00000000..823a9d53 Binary files /dev/null and b/gpack/travian_default/lang/en/t2/Thumbs.db differ diff --git a/gpack/travian_default/lang/en/t2/u04.gif b/gpack/travian_default/lang/en/t2/u04.gif new file mode 100644 index 00000000..531c70cc Binary files /dev/null and b/gpack/travian_default/lang/en/t2/u04.gif differ diff --git a/gpack/travian_default/lang/en/t2/u05.gif b/gpack/travian_default/lang/en/t2/u05.gif new file mode 100644 index 00000000..c4a64f25 Binary files /dev/null and b/gpack/travian_default/lang/en/t2/u05.gif differ diff --git a/gpack/travian_default/lang/en/t2/u06.gif b/gpack/travian_default/lang/en/t2/u06.gif new file mode 100644 index 00000000..d66e848b Binary files /dev/null and b/gpack/travian_default/lang/en/t2/u06.gif differ diff --git a/gpack/travian_default/lang/en/t2/u07.gif b/gpack/travian_default/lang/en/t2/u07.gif new file mode 100644 index 00000000..b76075fe Binary files /dev/null and b/gpack/travian_default/lang/en/t2/u07.gif differ diff --git a/gpack/travian_default/lang/en/t2/u22.gif b/gpack/travian_default/lang/en/t2/u22.gif new file mode 100644 index 00000000..699ed524 Binary files /dev/null and b/gpack/travian_default/lang/en/t2/u22.gif differ diff --git a/gpack/travian_default/modules/new_colors.css b/gpack/travian_default/modules/new_colors.css new file mode 100644 index 00000000..bf67b66d --- /dev/null +++ b/gpack/travian_default/modules/new_colors.css @@ -0,0 +1 @@ +@CHARSET "UTF-8"; \ No newline at end of file diff --git a/gpack/travian_default/modules/new_images.css b/gpack/travian_default/modules/new_images.css new file mode 100644 index 00000000..1a52c86c --- /dev/null +++ b/gpack/travian_default/modules/new_images.css @@ -0,0 +1,58 @@ +@CHARSET "UTF-8"; + +.wrapper {background: transparent url(../images/header_background.jpg) repeat-x left top;} + +div#footer {background: #F1F1F1 url(../images/footer_background.gif) repeat-x center top;} + +div#footer div#mfoot {background: transparent url(../images/footer_logo.gif) no-repeat 0px 21px;} + +div#dynamic_header, +body.mod1 div#dynamic_header, +body.mod3 div#dynamic_header {background: transparent url(../images/artwork1-ltr.jpg) no-repeat center top;} + +body.mod2 div#dynamic_header {background: transparent url(../images/artwork2-ltr.jpg) no-repeat center top;} + +div#header {background-image: none;} + +div#side_navi {background: transparent url(../images/shadow-a-ltr.png) no-repeat right top; margin-top: 30px;} +div#side_navi a:hover {background: transparent url(../images/menu-bg-ltr.gif) no-repeat left top;} + +body.v35 a#n1 img {background-image: url(../images/n1-ltr.gif);} +body.v35 a#n2 img {background-image: url(../images/n2-ltr.gif);} +body.v35 a#n3 img {background-image: url(../images/n3-ltr.gif);} +body.v35 a#n4 img {background-image: url(../images/n4-ltr.gif);} +body.v35 div.i1 {background-image:url(../images/m1-ltr.gif);} /* beide */ +body.v35 div.i2 {background-image:url(../images/m2-ltr.gif);} /* IGM */ +body.v35 div.i3 {background-image:url(../images/m3-ltr.gif);} /* Report */ +body.v35 div.i4 {background-image:url(../images/m4-ltr.gif);} /* none */ + + +div#mtop a#plus {background: transparent url(../images/plus_bg.gif) repeat-x 0 0px; margin-left:135px;} +div#mtop a#plus span.plus_text { + display: block; + background: transparent url(../images/plus_start-ltr.gif) no-repeat left top; + height: 29px; + padding: 6px 14px; + float:left; + cursor: pointer; +} +div#mtop a#plus span span {display: inline; cursor: pointer;} +div#mtop a#plus {display: block; font-size: 13px; height: 40px; margin-top:16px; position: relative;} +img#btn_plus { + background-position: left top; + background-repeat: no-repeat; + height: 29px; + width: 36px; + float:left; +} +#plus img.active {background-image: url(../images/plus_active-ltr.gif);} +#plus img.inactive {background-image: url(../images/plus_inactive-ltr.gif);} + + + +div#side_info, +body.mod1 div#side_info, +body.mod2 div#side_info, +body.mod3 div#side_info {background: transparent url(../images/shadow-b-ltr.png) no-repeat left top;} + + diff --git a/gpack/travian_default/modules/new_layout_ltr.css b/gpack/travian_default/modules/new_layout_ltr.css new file mode 100644 index 00000000..6a8a53d5 --- /dev/null +++ b/gpack/travian_default/modules/new_layout_ltr.css @@ -0,0 +1,189 @@ +@CHARSET "UTF-8"; + +/* --- Scrollbarantiwackler --- */ +body {overflow-y:scroll;} + +body.manual {overflow-y: hidden; } + + +/* Layout */ +html, body {height: 100%;} +.wrapper {height: auto !important; /* Important Regel für moderne Browser */ height: 100%; /* Mindesthöhe für den IE */ min-height: 100%; position: relative;} + +.ie6 .wrapper {text-align: center;} /* IE6 Hack damit das alles zentriert wird */ +.ie6 .wrapper * {text-align: left;} /* IE6 Hack im Content rückgängig machgen */ + +/* --- Table Row Highlight --- */ +table.row_table_data tr.hlight td {background-color: #fffaf0;} +table.row_table_data tr.marked td {background-color: #fff8dc;} + +/* Body */ +body {background-color: #FFFFFF;} +body.manual {background-image: none;} + + +div.popup3 { + left: 50%; + top:170px; + margin-left: -285px; +} +#ce { + width: 100%; + height: 0; +} + +/* --- Main Header --- */ +body.mod1 div#dynamic_header div.dyn1, +body.mod1 div#dynamic_header div.dyn2, +body.mod2 div#dynamic_header div.dyn1, +body.mod2 div#dynamic_header div.dyn2, +body.mod3 div#dynamic_header div.dyn1, +body.mod3 div#dynamic_header div.dyn2 {display: none;} + +body.mod2 div#dynamic_header { + height: 100px; +} + +body.mod2 div#dynamic_header #ad_iframe{ + left: 50%; + margin-left: -303px; +} + +div#dynamic_header, +body.mod1 div#dynamic_header, +body.mod2 div#dynamic_header, +body.mod3 div#dynamic_header { height: 100px;} + +/* Header Menu */ +div#header {height: 72px;} +div#mtop, +body.mod1 div#mtop, +body.mod2 div#mtop, +body.mod3 div#mtop {height: 72px; left: 50%; margin-left: -241px; z-index: 2; width: 700px;} +a#n1 img, a#n2 img, a#n3 img, a#n4 img, div#n5 {height: 72px;} +div#mtop div#n5 .reports {float: left;} +div#mtop div#n5 .messages {float: right;} + + +a#logo {display: none;} + +/* World Status Peace, Day Night */ +img.day, img.night, div.peace {left: 12px; top: -89px;} +div.peace {left: 12px; top: -98px;} + +/* Exe Time */ +div#stime {display: inline; height: 0; left: 0; top: 0; width: 0;} +div#ltime, +body.mod1 div#ltime, +body.mod2 div#ltime, +body.mod3 div#ltime {min-width: 980px; left: 0; top: 111px; width: 100%; z-index: 1;} +div#ltime div#ltimeWrap {margin: 0 auto 0 auto; width: 905px; position: relative;} +div#ltime div.devEvents {position: absolute; bottom: -25px; left: 0px;} + +/* Ressources */ +div#res, +body.mod1 div#res, +body.mod2 div#res, +body.mod3 div#res {left: 0; min-width: 980px; top: 175px; width: 100%; z-index: 2;} +div#resWrap {left: 50%; margin-left: -335px; position: relative; width: 552px;} +div#res table {background-color: transparent;} +div#res table td {background-color: transparent;} + +/* Content */ +div#mid {background-image: none; float: none; height: auto; margin: 0 auto; width: 980px;} +div#content, +body.mod1 div#content, +body.mod2 div#content, +body.mod3 div#content {height: auto !important; /* Important Regel für moderne Browser */ /* Mindesthöhe für den IE */ min-height: 450px;} + +.ie6div#content {padding-bottom: 5px;} +/* Content Menu */ +div#side_navi {height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ min-height: 453px; width: 155px;} + + +/* Content Villages & Links */ +div#side_info, +body.mod1 div#side_info, +body.mod2 div#side_info, +body.mod3 div#side_info { height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ margin-left: 0; min-height: 453px; padding-left: 16px; width: 257px; z-index: 3;} +div#side_info td.dot { + width: 8px; + +} +div#side_info td.link { + padding-right: 0px; + white-space: normal; + line-height: 18px; +} +div#side_info td { + vertical-align: top; +} + +/* Footer */ +.footer-stopper {float: left; margin-bottom: 100px;} /* Stoppt den Footer beim nach obenschieben */ +.ie6 .footer-stopper, .ie7 .footer-stopper {height: 100px;} /* IE 6 und IE7 Hack damit Footer nicht über dem Content steht */ +div#footer {bottom: 0px; height: 90px; left: 0; margin-top: 90px; min-width: 980px; position: absolute; right: 0; + font-size: 11px; line-height: 19px; +} +div#footer div#mfoot {height: 28px; margin: 0 auto; width: 905px;} +div#footer div.footer-menu {color: #797979; text-align: right;} +div#footer div#mfoot {text-align: right;} +div#footer div#mfoot a, div#footer div#mfoot a:visited, div#footer div#mfoot a:active {color: #797979;} +div#footer div#mfoot div.copyright {text-align: right; font-size: 11px;} + +/* Footer Menu */ +div#footer ul.menu {list-style-type: none; margin: 0; padding: 0; position: absolute; top: 31px;} +div#footer ul.menu.menu2 {right: 210px;} +div#footer ul.menu li {float: left; margin: 0 5px;} +div#footer ul.menu li a {color: #797979; margin: 0 3px;} +div#footer ul.menu li.copyright {direction: ltr;} + + +div#side_info table td { + +} + +#guide1 { + position: fixed; + width: 0; + border-left: 1px dashed red; + height: 100%; + left: 50%; + margin-left: -480px; + z-index: 9999; +} + +#guide2 { + position: fixed; + width: 0; + border-left: 1px dashed red; + height: 100%; + left: 50%; + margin-left: -336px; + z-index: 9999; +} + +#guide3 { + position: fixed; + width: 0; + border-right: 1px dashed red; + height: 100%; + right: 50%; + margin-right: -218px; + z-index: 9999; +} + +#guide4 { + position: fixed; + width: 0; + border-right: 1px dashed red; + height: 100%; + right: 50%; + margin-right: -480px; + z-index: 9999; +} + +div.player p.btn, div.login p.btn { + text-align: center; +} + diff --git a/gpack/travian_default/travian.css b/gpack/travian_default/travian.css new file mode 100644 index 00000000..62aaa48c --- /dev/null +++ b/gpack/travian_default/travian.css @@ -0,0 +1,7 @@ +@CHARSET "UTF-8"; + +/* Travian 3.6 Redesign Grafikpack */ +/* Version 1.05 */ + + + diff --git a/gpack/travianx_v1/images/Thumbs.db b/gpack/travianx_v1/images/Thumbs.db new file mode 100644 index 00000000..ff4dff8d Binary files /dev/null and b/gpack/travianx_v1/images/Thumbs.db differ diff --git a/gpack/travianx_v1/images/artwork1-ltr.jpg b/gpack/travianx_v1/images/artwork1-ltr.jpg new file mode 100644 index 00000000..874c21ff Binary files /dev/null and b/gpack/travianx_v1/images/artwork1-ltr.jpg differ diff --git a/gpack/travianx_v1/images/artwork2-ltr.jpg b/gpack/travianx_v1/images/artwork2-ltr.jpg new file mode 100644 index 00000000..d800a7e3 Binary files /dev/null and b/gpack/travianx_v1/images/artwork2-ltr.jpg differ diff --git a/gpack/travianx_v1/images/footer_background.gif b/gpack/travianx_v1/images/footer_background.gif new file mode 100644 index 00000000..60d616d7 Binary files /dev/null and b/gpack/travianx_v1/images/footer_background.gif differ diff --git a/gpack/travianx_v1/images/header_background.jpg b/gpack/travianx_v1/images/header_background.jpg new file mode 100644 index 00000000..a8718984 Binary files /dev/null and b/gpack/travianx_v1/images/header_background.jpg differ diff --git a/gpack/travianx_v1/images/m1-ltr.gif b/gpack/travianx_v1/images/m1-ltr.gif new file mode 100644 index 00000000..82a1bac4 Binary files /dev/null and b/gpack/travianx_v1/images/m1-ltr.gif differ diff --git a/gpack/travianx_v1/images/m2-ltr.gif b/gpack/travianx_v1/images/m2-ltr.gif new file mode 100644 index 00000000..a98bafaa Binary files /dev/null and b/gpack/travianx_v1/images/m2-ltr.gif differ diff --git a/gpack/travianx_v1/images/m3-ltr.gif b/gpack/travianx_v1/images/m3-ltr.gif new file mode 100644 index 00000000..24a41d0d Binary files /dev/null and b/gpack/travianx_v1/images/m3-ltr.gif differ diff --git a/gpack/travianx_v1/images/m4-ltr.gif b/gpack/travianx_v1/images/m4-ltr.gif new file mode 100644 index 00000000..359e0057 Binary files /dev/null and b/gpack/travianx_v1/images/m4-ltr.gif differ diff --git a/gpack/travianx_v1/images/menu-bg-ltr.gif b/gpack/travianx_v1/images/menu-bg-ltr.gif new file mode 100644 index 00000000..7949ae01 Binary files /dev/null and b/gpack/travianx_v1/images/menu-bg-ltr.gif differ diff --git a/gpack/travianx_v1/images/n1-ltr.gif b/gpack/travianx_v1/images/n1-ltr.gif new file mode 100644 index 00000000..8d6a53f5 Binary files /dev/null and b/gpack/travianx_v1/images/n1-ltr.gif differ diff --git a/gpack/travianx_v1/images/n2-ltr.gif b/gpack/travianx_v1/images/n2-ltr.gif new file mode 100644 index 00000000..e65feb41 Binary files /dev/null and b/gpack/travianx_v1/images/n2-ltr.gif differ diff --git a/gpack/travianx_v1/images/n3-ltr.gif b/gpack/travianx_v1/images/n3-ltr.gif new file mode 100644 index 00000000..1d887ac9 Binary files /dev/null and b/gpack/travianx_v1/images/n3-ltr.gif differ diff --git a/gpack/travianx_v1/images/n4-ltr.gif b/gpack/travianx_v1/images/n4-ltr.gif new file mode 100644 index 00000000..2a073b16 Binary files /dev/null and b/gpack/travianx_v1/images/n4-ltr.gif differ diff --git a/gpack/travianx_v1/images/plus_active-ltr.gif b/gpack/travianx_v1/images/plus_active-ltr.gif new file mode 100644 index 00000000..29058565 Binary files /dev/null and b/gpack/travianx_v1/images/plus_active-ltr.gif differ diff --git a/gpack/travianx_v1/images/plus_bg.gif b/gpack/travianx_v1/images/plus_bg.gif new file mode 100644 index 00000000..2354e7f0 Binary files /dev/null and b/gpack/travianx_v1/images/plus_bg.gif differ diff --git a/gpack/travianx_v1/images/plus_inactive-ltr.gif b/gpack/travianx_v1/images/plus_inactive-ltr.gif new file mode 100644 index 00000000..9a6f4e52 Binary files /dev/null and b/gpack/travianx_v1/images/plus_inactive-ltr.gif differ diff --git a/gpack/travianx_v1/images/plus_start-ltr.gif b/gpack/travianx_v1/images/plus_start-ltr.gif new file mode 100644 index 00000000..6c7aac69 Binary files /dev/null and b/gpack/travianx_v1/images/plus_start-ltr.gif differ diff --git a/gpack/travianx_v1/images/shadow-a-ltr.png b/gpack/travianx_v1/images/shadow-a-ltr.png new file mode 100644 index 00000000..be9a7c4a Binary files /dev/null and b/gpack/travianx_v1/images/shadow-a-ltr.png differ diff --git a/gpack/travianx_v1/images/shadow-b-ltr.png b/gpack/travianx_v1/images/shadow-b-ltr.png new file mode 100644 index 00000000..7e71b29c Binary files /dev/null and b/gpack/travianx_v1/images/shadow-b-ltr.png differ diff --git a/gpack/travianx_v1/img/a/Thumbs.db b/gpack/travianx_v1/img/a/Thumbs.db new file mode 100644 index 00000000..e40eb20c Binary files /dev/null and b/gpack/travianx_v1/img/a/Thumbs.db differ diff --git a/gpack/travianx_v1/img/a/acc.gif b/gpack/travianx_v1/img/a/acc.gif new file mode 100644 index 00000000..d9f435e0 Binary files /dev/null and b/gpack/travianx_v1/img/a/acc.gif differ diff --git a/gpack/travianx_v1/img/a/adr.gif b/gpack/travianx_v1/img/a/adr.gif new file mode 100644 index 00000000..bc719886 Binary files /dev/null and b/gpack/travianx_v1/img/a/adr.gif differ diff --git a/gpack/travianx_v1/img/a/adr_rtl.gif b/gpack/travianx_v1/img/a/adr_rtl.gif new file mode 100644 index 00000000..fc99e540 Binary files /dev/null and b/gpack/travianx_v1/img/a/adr_rtl.gif differ diff --git a/gpack/travianx_v1/img/a/anl.gif b/gpack/travianx_v1/img/a/anl.gif new file mode 100644 index 00000000..b4211c40 Binary files /dev/null and b/gpack/travianx_v1/img/a/anl.gif differ diff --git a/gpack/travianx_v1/img/a/anl_rtl.gif b/gpack/travianx_v1/img/a/anl_rtl.gif new file mode 100644 index 00000000..3b29046e Binary files /dev/null and b/gpack/travianx_v1/img/a/anl_rtl.gif differ diff --git a/gpack/travianx_v1/img/a/att1.gif b/gpack/travianx_v1/img/a/att1.gif new file mode 100644 index 00000000..076fd441 Binary files /dev/null and b/gpack/travianx_v1/img/a/att1.gif differ diff --git a/gpack/travianx_v1/img/a/att2.gif b/gpack/travianx_v1/img/a/att2.gif new file mode 100644 index 00000000..e5f7a645 Binary files /dev/null and b/gpack/travianx_v1/img/a/att2.gif differ diff --git a/gpack/travianx_v1/img/a/att3.gif b/gpack/travianx_v1/img/a/att3.gif new file mode 100644 index 00000000..f99c3392 Binary files /dev/null and b/gpack/travianx_v1/img/a/att3.gif differ diff --git a/gpack/travianx_v1/img/a/att_all.gif b/gpack/travianx_v1/img/a/att_all.gif new file mode 100644 index 00000000..9c88d055 Binary files /dev/null and b/gpack/travianx_v1/img/a/att_all.gif differ diff --git a/gpack/travianx_v1/img/a/attack_symbol.gif b/gpack/travianx_v1/img/a/attack_symbol.gif new file mode 100644 index 00000000..f55f525a Binary files /dev/null and b/gpack/travianx_v1/img/a/attack_symbol.gif differ diff --git a/gpack/travianx_v1/img/a/b6.gif b/gpack/travianx_v1/img/a/b6.gif new file mode 100644 index 00000000..d9f435e0 Binary files /dev/null and b/gpack/travianx_v1/img/a/b6.gif differ diff --git a/gpack/travianx_v1/img/a/bau.gif b/gpack/travianx_v1/img/a/bau.gif new file mode 100644 index 00000000..4c15e5b9 Binary files /dev/null and b/gpack/travianx_v1/img/a/bau.gif differ diff --git a/gpack/travianx_v1/img/a/btm.gif b/gpack/travianx_v1/img/a/btm.gif new file mode 100644 index 00000000..8a877475 Binary files /dev/null and b/gpack/travianx_v1/img/a/btm.gif differ diff --git a/gpack/travianx_v1/img/a/buildings.gif b/gpack/travianx_v1/img/a/buildings.gif new file mode 100644 index 00000000..743cb765 Binary files /dev/null and b/gpack/travianx_v1/img/a/buildings.gif differ diff --git a/gpack/travianx_v1/img/a/c2.gif b/gpack/travianx_v1/img/a/c2.gif new file mode 100644 index 00000000..7415f887 Binary files /dev/null and b/gpack/travianx_v1/img/a/c2.gif differ diff --git a/gpack/travianx_v1/img/a/c3.gif b/gpack/travianx_v1/img/a/c3.gif new file mode 100644 index 00000000..23a8baa9 Binary files /dev/null and b/gpack/travianx_v1/img/a/c3.gif differ diff --git a/gpack/travianx_v1/img/a/car.gif b/gpack/travianx_v1/img/a/car.gif new file mode 100644 index 00000000..16d83e59 Binary files /dev/null and b/gpack/travianx_v1/img/a/car.gif differ diff --git a/gpack/travianx_v1/img/a/clock-inactive.gif b/gpack/travianx_v1/img/a/clock-inactive.gif new file mode 100644 index 00000000..47fa4f11 Binary files /dev/null and b/gpack/travianx_v1/img/a/clock-inactive.gif differ diff --git a/gpack/travianx_v1/img/a/clock.gif b/gpack/travianx_v1/img/a/clock.gif new file mode 100644 index 00000000..9bcf5999 Binary files /dev/null and b/gpack/travianx_v1/img/a/clock.gif differ diff --git a/gpack/travianx_v1/img/a/close.gif b/gpack/travianx_v1/img/a/close.gif new file mode 100644 index 00000000..ff500428 Binary files /dev/null and b/gpack/travianx_v1/img/a/close.gif differ diff --git a/gpack/travianx_v1/img/a/closed.gif b/gpack/travianx_v1/img/a/closed.gif new file mode 100644 index 00000000..c8da86b4 Binary files /dev/null and b/gpack/travianx_v1/img/a/closed.gif differ diff --git a/gpack/travianx_v1/img/a/def1.gif b/gpack/travianx_v1/img/a/def1.gif new file mode 100644 index 00000000..bbb274b2 Binary files /dev/null and b/gpack/travianx_v1/img/a/def1.gif differ diff --git a/gpack/travianx_v1/img/a/def2.gif b/gpack/travianx_v1/img/a/def2.gif new file mode 100644 index 00000000..d43bcb28 Binary files /dev/null and b/gpack/travianx_v1/img/a/def2.gif differ diff --git a/gpack/travianx_v1/img/a/def3.gif b/gpack/travianx_v1/img/a/def3.gif new file mode 100644 index 00000000..5ce49988 Binary files /dev/null and b/gpack/travianx_v1/img/a/def3.gif differ diff --git a/gpack/travianx_v1/img/a/def_all.gif b/gpack/travianx_v1/img/a/def_all.gif new file mode 100644 index 00000000..796262bc Binary files /dev/null and b/gpack/travianx_v1/img/a/def_all.gif differ diff --git a/gpack/travianx_v1/img/a/def_c.gif b/gpack/travianx_v1/img/a/def_c.gif new file mode 100644 index 00000000..9d53b25c Binary files /dev/null and b/gpack/travianx_v1/img/a/def_c.gif differ diff --git a/gpack/travianx_v1/img/a/def_i.gif b/gpack/travianx_v1/img/a/def_i.gif new file mode 100644 index 00000000..51689239 Binary files /dev/null and b/gpack/travianx_v1/img/a/def_i.gif differ diff --git a/gpack/travianx_v1/img/a/del.gif b/gpack/travianx_v1/img/a/del.gif new file mode 100644 index 00000000..28eef24e Binary files /dev/null and b/gpack/travianx_v1/img/a/del.gif differ diff --git a/gpack/travianx_v1/img/a/del_g.gif b/gpack/travianx_v1/img/a/del_g.gif new file mode 100644 index 00000000..20c36d86 Binary files /dev/null and b/gpack/travianx_v1/img/a/del_g.gif differ diff --git a/gpack/travianx_v1/img/a/external.gif b/gpack/travianx_v1/img/a/external.gif new file mode 100644 index 00000000..007dcbf7 Binary files /dev/null and b/gpack/travianx_v1/img/a/external.gif differ diff --git a/gpack/travianx_v1/img/a/f1 Kopie.jpg b/gpack/travianx_v1/img/a/f1 Kopie.jpg new file mode 100644 index 00000000..805b7930 Binary files /dev/null and b/gpack/travianx_v1/img/a/f1 Kopie.jpg differ diff --git a/gpack/travianx_v1/img/a/firefox.gif b/gpack/travianx_v1/img/a/firefox.gif new file mode 100644 index 00000000..017b0c4e Binary files /dev/null and b/gpack/travianx_v1/img/a/firefox.gif differ diff --git a/gpack/travianx_v1/img/a/friends.gif b/gpack/travianx_v1/img/a/friends.gif new file mode 100644 index 00000000..a004983d Binary files /dev/null and b/gpack/travianx_v1/img/a/friends.gif differ diff --git a/gpack/travianx_v1/img/a/gold.gif b/gpack/travianx_v1/img/a/gold.gif new file mode 100644 index 00000000..8a51800f Binary files /dev/null and b/gpack/travianx_v1/img/a/gold.gif differ diff --git a/gpack/travianx_v1/img/a/gold_g.gif b/gpack/travianx_v1/img/a/gold_g.gif new file mode 100644 index 00000000..456c81a7 Binary files /dev/null and b/gpack/travianx_v1/img/a/gold_g.gif differ diff --git a/gpack/travianx_v1/img/a/gp.gif b/gpack/travianx_v1/img/a/gp.gif new file mode 100644 index 00000000..5461df83 Binary files /dev/null and b/gpack/travianx_v1/img/a/gp.gif differ diff --git a/gpack/travianx_v1/img/a/help.gif b/gpack/travianx_v1/img/a/help.gif new file mode 100644 index 00000000..268ddcf4 Binary files /dev/null and b/gpack/travianx_v1/img/a/help.gif differ diff --git a/gpack/travianx_v1/img/a/ie.gif b/gpack/travianx_v1/img/a/ie.gif new file mode 100644 index 00000000..bbd5ea45 Binary files /dev/null and b/gpack/travianx_v1/img/a/ie.gif differ diff --git a/gpack/travianx_v1/img/a/minus.gif b/gpack/travianx_v1/img/a/minus.gif new file mode 100644 index 00000000..9756dc5f Binary files /dev/null and b/gpack/travianx_v1/img/a/minus.gif differ diff --git a/gpack/travianx_v1/img/a/n.gif b/gpack/travianx_v1/img/a/n.gif new file mode 100644 index 00000000..2161d47c Binary files /dev/null and b/gpack/travianx_v1/img/a/n.gif differ diff --git a/gpack/travianx_v1/img/a/n12.gif b/gpack/travianx_v1/img/a/n12.gif new file mode 100644 index 00000000..f250225b Binary files /dev/null and b/gpack/travianx_v1/img/a/n12.gif differ diff --git a/gpack/travianx_v1/img/a/n_rtl.gif b/gpack/travianx_v1/img/a/n_rtl.gif new file mode 100644 index 00000000..f27fa87d Binary files /dev/null and b/gpack/travianx_v1/img/a/n_rtl.gif differ diff --git a/gpack/travianx_v1/img/a/navi.gif b/gpack/travianx_v1/img/a/navi.gif new file mode 100644 index 00000000..cd7e487f Binary files /dev/null and b/gpack/travianx_v1/img/a/navi.gif differ diff --git a/gpack/travianx_v1/img/a/npc.gif b/gpack/travianx_v1/img/a/npc.gif new file mode 100644 index 00000000..cfe65046 Binary files /dev/null and b/gpack/travianx_v1/img/a/npc.gif differ diff --git a/gpack/travianx_v1/img/a/online.gif b/gpack/travianx_v1/img/a/online.gif new file mode 100644 index 00000000..9f3572bf Binary files /dev/null and b/gpack/travianx_v1/img/a/online.gif differ diff --git a/gpack/travianx_v1/img/a/online1.gif b/gpack/travianx_v1/img/a/online1.gif new file mode 100644 index 00000000..d64775e7 Binary files /dev/null and b/gpack/travianx_v1/img/a/online1.gif differ diff --git a/gpack/travianx_v1/img/a/online2.gif b/gpack/travianx_v1/img/a/online2.gif new file mode 100644 index 00000000..2560caa6 Binary files /dev/null and b/gpack/travianx_v1/img/a/online2.gif differ diff --git a/gpack/travianx_v1/img/a/online3.gif b/gpack/travianx_v1/img/a/online3.gif new file mode 100644 index 00000000..8432c5ed Binary files /dev/null and b/gpack/travianx_v1/img/a/online3.gif differ diff --git a/gpack/travianx_v1/img/a/online4.gif b/gpack/travianx_v1/img/a/online4.gif new file mode 100644 index 00000000..0db2440c Binary files /dev/null and b/gpack/travianx_v1/img/a/online4.gif differ diff --git a/gpack/travianx_v1/img/a/online5.gif b/gpack/travianx_v1/img/a/online5.gif new file mode 100644 index 00000000..d62a2630 Binary files /dev/null and b/gpack/travianx_v1/img/a/online5.gif differ diff --git a/gpack/travianx_v1/img/a/online6.gif b/gpack/travianx_v1/img/a/online6.gif new file mode 100644 index 00000000..d9f435e0 Binary files /dev/null and b/gpack/travianx_v1/img/a/online6.gif differ diff --git a/gpack/travianx_v1/img/a/opened.gif b/gpack/travianx_v1/img/a/opened.gif new file mode 100644 index 00000000..bad52e13 Binary files /dev/null and b/gpack/travianx_v1/img/a/opened.gif differ diff --git a/gpack/travianx_v1/img/a/opera.gif b/gpack/travianx_v1/img/a/opera.gif new file mode 100644 index 00000000..c1e48afc Binary files /dev/null and b/gpack/travianx_v1/img/a/opera.gif differ diff --git a/gpack/travianx_v1/img/a/plus.gif b/gpack/travianx_v1/img/a/plus.gif new file mode 100644 index 00000000..7434be66 Binary files /dev/null and b/gpack/travianx_v1/img/a/plus.gif differ diff --git a/gpack/travianx_v1/img/a/rand.gif b/gpack/travianx_v1/img/a/rand.gif new file mode 100644 index 00000000..e6c345ac Binary files /dev/null and b/gpack/travianx_v1/img/a/rand.gif differ diff --git a/gpack/travianx_v1/img/a/report_icons.gif b/gpack/travianx_v1/img/a/report_icons.gif new file mode 100644 index 00000000..711defca Binary files /dev/null and b/gpack/travianx_v1/img/a/report_icons.gif differ diff --git a/gpack/travianx_v1/img/a/res2.gif b/gpack/travianx_v1/img/a/res2.gif new file mode 100644 index 00000000..f80bb6d9 Binary files /dev/null and b/gpack/travianx_v1/img/a/res2.gif differ diff --git a/gpack/travianx_v1/img/a/s.gif b/gpack/travianx_v1/img/a/s.gif new file mode 100644 index 00000000..af204376 Binary files /dev/null and b/gpack/travianx_v1/img/a/s.gif differ diff --git a/gpack/travianx_v1/img/a/troops.gif b/gpack/travianx_v1/img/a/troops.gif new file mode 100644 index 00000000..0b1305ec Binary files /dev/null and b/gpack/travianx_v1/img/a/troops.gif differ diff --git a/gpack/travianx_v1/img/a/unknown.gif b/gpack/travianx_v1/img/a/unknown.gif new file mode 100644 index 00000000..49fe1d42 Binary files /dev/null and b/gpack/travianx_v1/img/a/unknown.gif differ diff --git a/gpack/travianx_v1/img/a/w.gif b/gpack/travianx_v1/img/a/w.gif new file mode 100644 index 00000000..f32722af Binary files /dev/null and b/gpack/travianx_v1/img/a/w.gif differ diff --git a/gpack/travianx_v1/img/a/x.gif b/gpack/travianx_v1/img/a/x.gif new file mode 100644 index 00000000..c7bee69b Binary files /dev/null and b/gpack/travianx_v1/img/a/x.gif differ diff --git a/gpack/travianx_v1/img/artefact/Thumbs.db b/gpack/travianx_v1/img/artefact/Thumbs.db new file mode 100644 index 00000000..22d31d9c Binary files /dev/null and b/gpack/travianx_v1/img/artefact/Thumbs.db differ diff --git a/gpack/travianx_v1/img/artefact/type-1.gif b/gpack/travianx_v1/img/artefact/type-1.gif new file mode 100644 index 00000000..ca5322bb Binary files /dev/null and b/gpack/travianx_v1/img/artefact/type-1.gif differ diff --git a/gpack/travianx_v1/img/artefact/type-10.gif b/gpack/travianx_v1/img/artefact/type-10.gif new file mode 100644 index 00000000..be259efe Binary files /dev/null and b/gpack/travianx_v1/img/artefact/type-10.gif differ diff --git a/gpack/travianx_v1/img/artefact/type-2.gif b/gpack/travianx_v1/img/artefact/type-2.gif new file mode 100644 index 00000000..cca12681 Binary files /dev/null and b/gpack/travianx_v1/img/artefact/type-2.gif differ diff --git a/gpack/travianx_v1/img/artefact/type-4.gif b/gpack/travianx_v1/img/artefact/type-4.gif new file mode 100644 index 00000000..279b87bc Binary files /dev/null and b/gpack/travianx_v1/img/artefact/type-4.gif differ diff --git a/gpack/travianx_v1/img/artefact/type-5.gif b/gpack/travianx_v1/img/artefact/type-5.gif new file mode 100644 index 00000000..36f2ac3f Binary files /dev/null and b/gpack/travianx_v1/img/artefact/type-5.gif differ diff --git a/gpack/travianx_v1/img/artefact/type-6.gif b/gpack/travianx_v1/img/artefact/type-6.gif new file mode 100644 index 00000000..4fac61de Binary files /dev/null and b/gpack/travianx_v1/img/artefact/type-6.gif differ diff --git a/gpack/travianx_v1/img/artefact/type-8.gif b/gpack/travianx_v1/img/artefact/type-8.gif new file mode 100644 index 00000000..6fe885d3 Binary files /dev/null and b/gpack/travianx_v1/img/artefact/type-8.gif differ diff --git a/gpack/travianx_v1/img/artefact/type-9.gif b/gpack/travianx_v1/img/artefact/type-9.gif new file mode 100644 index 00000000..63580fde Binary files /dev/null and b/gpack/travianx_v1/img/artefact/type-9.gif differ diff --git a/gpack/travianx_v1/img/artefact/type-fool.gif b/gpack/travianx_v1/img/artefact/type-fool.gif new file mode 100644 index 00000000..17480d7b Binary files /dev/null and b/gpack/travianx_v1/img/artefact/type-fool.gif differ diff --git a/gpack/travianx_v1/img/f/Thumbs.db b/gpack/travianx_v1/img/f/Thumbs.db new file mode 100644 index 00000000..87d13f2e Binary files /dev/null and b/gpack/travianx_v1/img/f/Thumbs.db differ diff --git a/gpack/travianx_v1/img/f/c4.gif b/gpack/travianx_v1/img/f/c4.gif new file mode 100644 index 00000000..39f0b0a8 Binary files /dev/null and b/gpack/travianx_v1/img/f/c4.gif differ diff --git a/gpack/travianx_v1/img/f/del.gif b/gpack/travianx_v1/img/f/del.gif new file mode 100644 index 00000000..621fe68b Binary files /dev/null and b/gpack/travianx_v1/img/f/del.gif differ diff --git a/gpack/travianx_v1/img/f/down_arr.gif b/gpack/travianx_v1/img/f/down_arr.gif new file mode 100644 index 00000000..aab37dae Binary files /dev/null and b/gpack/travianx_v1/img/f/down_arr.gif differ diff --git a/gpack/travianx_v1/img/f/edit.gif b/gpack/travianx_v1/img/f/edit.gif new file mode 100644 index 00000000..1583645a Binary files /dev/null and b/gpack/travianx_v1/img/f/edit.gif differ diff --git a/gpack/travianx_v1/img/f/folder.gif b/gpack/travianx_v1/img/f/folder.gif new file mode 100644 index 00000000..d92c9240 Binary files /dev/null and b/gpack/travianx_v1/img/f/folder.gif differ diff --git a/gpack/travianx_v1/img/f/folder_lock.gif b/gpack/travianx_v1/img/f/folder_lock.gif new file mode 100644 index 00000000..64763088 Binary files /dev/null and b/gpack/travianx_v1/img/f/folder_lock.gif differ diff --git a/gpack/travianx_v1/img/f/folder_new.gif b/gpack/travianx_v1/img/f/folder_new.gif new file mode 100644 index 00000000..f79ea955 Binary files /dev/null and b/gpack/travianx_v1/img/f/folder_new.gif differ diff --git a/gpack/travianx_v1/img/f/folder_new_lock.gif b/gpack/travianx_v1/img/f/folder_new_lock.gif new file mode 100644 index 00000000..8b624533 Binary files /dev/null and b/gpack/travianx_v1/img/f/folder_new_lock.gif differ diff --git a/gpack/travianx_v1/img/f/folder_new_sticky.gif b/gpack/travianx_v1/img/f/folder_new_sticky.gif new file mode 100644 index 00000000..ee60c5ec Binary files /dev/null and b/gpack/travianx_v1/img/f/folder_new_sticky.gif differ diff --git a/gpack/travianx_v1/img/f/folder_new_sticky_lock.gif b/gpack/travianx_v1/img/f/folder_new_sticky_lock.gif new file mode 100644 index 00000000..10ffc0e1 Binary files /dev/null and b/gpack/travianx_v1/img/f/folder_new_sticky_lock.gif differ diff --git a/gpack/travianx_v1/img/f/folder_sticky.gif b/gpack/travianx_v1/img/f/folder_sticky.gif new file mode 100644 index 00000000..4796957f Binary files /dev/null and b/gpack/travianx_v1/img/f/folder_sticky.gif differ diff --git a/gpack/travianx_v1/img/f/folder_sticky_lock.gif b/gpack/travianx_v1/img/f/folder_sticky_lock.gif new file mode 100644 index 00000000..04b1f429 Binary files /dev/null and b/gpack/travianx_v1/img/f/folder_sticky_lock.gif differ diff --git a/gpack/travianx_v1/img/f/icon_latest_reply.gif b/gpack/travianx_v1/img/f/icon_latest_reply.gif new file mode 100644 index 00000000..b45e57ae Binary files /dev/null and b/gpack/travianx_v1/img/f/icon_latest_reply.gif differ diff --git a/gpack/travianx_v1/img/f/lock.gif b/gpack/travianx_v1/img/f/lock.gif new file mode 100644 index 00000000..68759c5e Binary files /dev/null and b/gpack/travianx_v1/img/f/lock.gif differ diff --git a/gpack/travianx_v1/img/f/mad.gif b/gpack/travianx_v1/img/f/mad.gif new file mode 100644 index 00000000..525df033 Binary files /dev/null and b/gpack/travianx_v1/img/f/mad.gif differ diff --git a/gpack/travianx_v1/img/f/pin.gif b/gpack/travianx_v1/img/f/pin.gif new file mode 100644 index 00000000..ea9db7e9 Binary files /dev/null and b/gpack/travianx_v1/img/f/pin.gif differ diff --git a/gpack/travianx_v1/img/f/plus.gif b/gpack/travianx_v1/img/f/plus.gif new file mode 100644 index 00000000..cda19f39 Binary files /dev/null and b/gpack/travianx_v1/img/f/plus.gif differ diff --git a/gpack/travianx_v1/img/f/smileys.gif b/gpack/travianx_v1/img/f/smileys.gif new file mode 100644 index 00000000..99fa1e54 Binary files /dev/null and b/gpack/travianx_v1/img/f/smileys.gif differ diff --git a/gpack/travianx_v1/img/f/stats_left.gif b/gpack/travianx_v1/img/f/stats_left.gif new file mode 100644 index 00000000..0b57e899 Binary files /dev/null and b/gpack/travianx_v1/img/f/stats_left.gif differ diff --git a/gpack/travianx_v1/img/f/stats_middle.gif b/gpack/travianx_v1/img/f/stats_middle.gif new file mode 100644 index 00000000..2bfdde15 Binary files /dev/null and b/gpack/travianx_v1/img/f/stats_middle.gif differ diff --git a/gpack/travianx_v1/img/f/stats_right.gif b/gpack/travianx_v1/img/f/stats_right.gif new file mode 100644 index 00000000..1a067cb9 Binary files /dev/null and b/gpack/travianx_v1/img/f/stats_right.gif differ diff --git a/gpack/travianx_v1/img/f/switch_admin.gif b/gpack/travianx_v1/img/f/switch_admin.gif new file mode 100644 index 00000000..c650b0ac Binary files /dev/null and b/gpack/travianx_v1/img/f/switch_admin.gif differ diff --git a/gpack/travianx_v1/img/f/unlock.gif b/gpack/travianx_v1/img/f/unlock.gif new file mode 100644 index 00000000..00165cd9 Binary files /dev/null and b/gpack/travianx_v1/img/f/unlock.gif differ diff --git a/gpack/travianx_v1/img/f/unpin.gif b/gpack/travianx_v1/img/f/unpin.gif new file mode 100644 index 00000000..4484b4bf Binary files /dev/null and b/gpack/travianx_v1/img/f/unpin.gif differ diff --git a/gpack/travianx_v1/img/f/up_arr.gif b/gpack/travianx_v1/img/f/up_arr.gif new file mode 100644 index 00000000..9a5eaecf Binary files /dev/null and b/gpack/travianx_v1/img/f/up_arr.gif differ diff --git a/gpack/travianx_v1/img/f/v_folder.gif b/gpack/travianx_v1/img/f/v_folder.gif new file mode 100644 index 00000000..eb665003 Binary files /dev/null and b/gpack/travianx_v1/img/f/v_folder.gif differ diff --git a/gpack/travianx_v1/img/f/v_folder_lock.gif b/gpack/travianx_v1/img/f/v_folder_lock.gif new file mode 100644 index 00000000..1b67a215 Binary files /dev/null and b/gpack/travianx_v1/img/f/v_folder_lock.gif differ diff --git a/gpack/travianx_v1/img/f/v_folder_new.gif b/gpack/travianx_v1/img/f/v_folder_new.gif new file mode 100644 index 00000000..a1383d08 Binary files /dev/null and b/gpack/travianx_v1/img/f/v_folder_new.gif differ diff --git a/gpack/travianx_v1/img/f/v_folder_new_lock.gif b/gpack/travianx_v1/img/f/v_folder_new_lock.gif new file mode 100644 index 00000000..04876205 Binary files /dev/null and b/gpack/travianx_v1/img/f/v_folder_new_lock.gif differ diff --git a/gpack/travianx_v1/img/f/v_folder_new_sticky.gif b/gpack/travianx_v1/img/f/v_folder_new_sticky.gif new file mode 100644 index 00000000..9c94c222 Binary files /dev/null and b/gpack/travianx_v1/img/f/v_folder_new_sticky.gif differ diff --git a/gpack/travianx_v1/img/f/v_folder_new_sticky_lock.gif b/gpack/travianx_v1/img/f/v_folder_new_sticky_lock.gif new file mode 100644 index 00000000..e2a71792 Binary files /dev/null and b/gpack/travianx_v1/img/f/v_folder_new_sticky_lock.gif differ diff --git a/gpack/travianx_v1/img/f/v_folder_sticky.gif b/gpack/travianx_v1/img/f/v_folder_sticky.gif new file mode 100644 index 00000000..41c282b3 Binary files /dev/null and b/gpack/travianx_v1/img/f/v_folder_sticky.gif differ diff --git a/gpack/travianx_v1/img/f/v_folder_sticky_lock.gif b/gpack/travianx_v1/img/f/v_folder_sticky_lock.gif new file mode 100644 index 00000000..c01f4013 Binary files /dev/null and b/gpack/travianx_v1/img/f/v_folder_sticky_lock.gif differ diff --git a/gpack/travianx_v1/img/g/Thumbs.db b/gpack/travianx_v1/img/g/Thumbs.db new file mode 100644 index 00000000..2c6cbf23 Binary files /dev/null and b/gpack/travianx_v1/img/g/Thumbs.db differ diff --git a/gpack/travianx_v1/img/g/bg0.jpg b/gpack/travianx_v1/img/g/bg0.jpg new file mode 100644 index 00000000..2c0d6497 Binary files /dev/null and b/gpack/travianx_v1/img/g/bg0.jpg differ diff --git a/gpack/travianx_v1/img/g/bg1.jpg b/gpack/travianx_v1/img/g/bg1.jpg new file mode 100644 index 00000000..67a1235e Binary files /dev/null and b/gpack/travianx_v1/img/g/bg1.jpg differ diff --git a/gpack/travianx_v1/img/g/bg11.jpg b/gpack/travianx_v1/img/g/bg11.jpg new file mode 100644 index 00000000..6b99cb83 Binary files /dev/null and b/gpack/travianx_v1/img/g/bg11.jpg differ diff --git a/gpack/travianx_v1/img/g/bg12.jpg b/gpack/travianx_v1/img/g/bg12.jpg new file mode 100644 index 00000000..7c2341fc Binary files /dev/null and b/gpack/travianx_v1/img/g/bg12.jpg differ diff --git a/gpack/travianx_v1/img/g/bg13.jpg b/gpack/travianx_v1/img/g/bg13.jpg new file mode 100644 index 00000000..67a1235e Binary files /dev/null and b/gpack/travianx_v1/img/g/bg13.jpg differ diff --git a/gpack/travianx_v1/img/g/f1.jpg b/gpack/travianx_v1/img/g/f1.jpg new file mode 100644 index 00000000..cde07652 Binary files /dev/null and b/gpack/travianx_v1/img/g/f1.jpg differ diff --git a/gpack/travianx_v1/img/g/f10.jpg b/gpack/travianx_v1/img/g/f10.jpg new file mode 100644 index 00000000..9adaf8a4 Binary files /dev/null and b/gpack/travianx_v1/img/g/f10.jpg differ diff --git a/gpack/travianx_v1/img/g/f11.jpg b/gpack/travianx_v1/img/g/f11.jpg new file mode 100644 index 00000000..66bfb0f5 Binary files /dev/null and b/gpack/travianx_v1/img/g/f11.jpg differ diff --git a/gpack/travianx_v1/img/g/f12.jpg b/gpack/travianx_v1/img/g/f12.jpg new file mode 100644 index 00000000..9a34c2fb Binary files /dev/null and b/gpack/travianx_v1/img/g/f12.jpg differ diff --git a/gpack/travianx_v1/img/g/f2.jpg b/gpack/travianx_v1/img/g/f2.jpg new file mode 100644 index 00000000..d4a004fa Binary files /dev/null and b/gpack/travianx_v1/img/g/f2.jpg differ diff --git a/gpack/travianx_v1/img/g/f3.jpg b/gpack/travianx_v1/img/g/f3.jpg new file mode 100644 index 00000000..143d32b4 Binary files /dev/null and b/gpack/travianx_v1/img/g/f3.jpg differ diff --git a/gpack/travianx_v1/img/g/f4.jpg b/gpack/travianx_v1/img/g/f4.jpg new file mode 100644 index 00000000..e158c055 Binary files /dev/null and b/gpack/travianx_v1/img/g/f4.jpg differ diff --git a/gpack/travianx_v1/img/g/f5.jpg b/gpack/travianx_v1/img/g/f5.jpg new file mode 100644 index 00000000..42e03a72 Binary files /dev/null and b/gpack/travianx_v1/img/g/f5.jpg differ diff --git a/gpack/travianx_v1/img/g/f6.jpg b/gpack/travianx_v1/img/g/f6.jpg new file mode 100644 index 00000000..05f0b956 Binary files /dev/null and b/gpack/travianx_v1/img/g/f6.jpg differ diff --git a/gpack/travianx_v1/img/g/f7.jpg b/gpack/travianx_v1/img/g/f7.jpg new file mode 100644 index 00000000..07452c29 Binary files /dev/null and b/gpack/travianx_v1/img/g/f7.jpg differ diff --git a/gpack/travianx_v1/img/g/f8.jpg b/gpack/travianx_v1/img/g/f8.jpg new file mode 100644 index 00000000..b8a95fe1 Binary files /dev/null and b/gpack/travianx_v1/img/g/f8.jpg differ diff --git a/gpack/travianx_v1/img/g/f9.jpg b/gpack/travianx_v1/img/g/f9.jpg new file mode 100644 index 00000000..3fbfb700 Binary files /dev/null and b/gpack/travianx_v1/img/g/f9.jpg differ diff --git a/gpack/travianx_v1/img/g/f99.jpg b/gpack/travianx_v1/img/g/f99.jpg new file mode 100644 index 00000000..e5f40c1b Binary files /dev/null and b/gpack/travianx_v1/img/g/f99.jpg differ diff --git a/gpack/travianx_v1/img/g/g1.gif b/gpack/travianx_v1/img/g/g1.gif new file mode 100644 index 00000000..333da9eb Binary files /dev/null and b/gpack/travianx_v1/img/g/g1.gif differ diff --git a/gpack/travianx_v1/img/g/g10.gif b/gpack/travianx_v1/img/g/g10.gif new file mode 100644 index 00000000..9bc298ef Binary files /dev/null and b/gpack/travianx_v1/img/g/g10.gif differ diff --git a/gpack/travianx_v1/img/g/g10b.gif b/gpack/travianx_v1/img/g/g10b.gif new file mode 100644 index 00000000..64705fcc Binary files /dev/null and b/gpack/travianx_v1/img/g/g10b.gif differ diff --git a/gpack/travianx_v1/img/g/g11.gif b/gpack/travianx_v1/img/g/g11.gif new file mode 100644 index 00000000..8bbbbbb9 Binary files /dev/null and b/gpack/travianx_v1/img/g/g11.gif differ diff --git a/gpack/travianx_v1/img/g/g11b.gif b/gpack/travianx_v1/img/g/g11b.gif new file mode 100644 index 00000000..38532423 Binary files /dev/null and b/gpack/travianx_v1/img/g/g11b.gif differ diff --git a/gpack/travianx_v1/img/g/g12.gif b/gpack/travianx_v1/img/g/g12.gif new file mode 100644 index 00000000..4bb657bd Binary files /dev/null and b/gpack/travianx_v1/img/g/g12.gif differ diff --git a/gpack/travianx_v1/img/g/g12b.gif b/gpack/travianx_v1/img/g/g12b.gif new file mode 100644 index 00000000..2087f800 Binary files /dev/null and b/gpack/travianx_v1/img/g/g12b.gif differ diff --git a/gpack/travianx_v1/img/g/g13.gif b/gpack/travianx_v1/img/g/g13.gif new file mode 100644 index 00000000..3f198626 Binary files /dev/null and b/gpack/travianx_v1/img/g/g13.gif differ diff --git a/gpack/travianx_v1/img/g/g13b.gif b/gpack/travianx_v1/img/g/g13b.gif new file mode 100644 index 00000000..5efaea36 Binary files /dev/null and b/gpack/travianx_v1/img/g/g13b.gif differ diff --git a/gpack/travianx_v1/img/g/g14.gif b/gpack/travianx_v1/img/g/g14.gif new file mode 100644 index 00000000..69050b25 Binary files /dev/null and b/gpack/travianx_v1/img/g/g14.gif differ diff --git a/gpack/travianx_v1/img/g/g14b.gif b/gpack/travianx_v1/img/g/g14b.gif new file mode 100644 index 00000000..0eb91edb Binary files /dev/null and b/gpack/travianx_v1/img/g/g14b.gif differ diff --git a/gpack/travianx_v1/img/g/g15.gif b/gpack/travianx_v1/img/g/g15.gif new file mode 100644 index 00000000..4584b1cd Binary files /dev/null and b/gpack/travianx_v1/img/g/g15.gif differ diff --git a/gpack/travianx_v1/img/g/g15b.gif b/gpack/travianx_v1/img/g/g15b.gif new file mode 100644 index 00000000..efaf119f Binary files /dev/null and b/gpack/travianx_v1/img/g/g15b.gif differ diff --git a/gpack/travianx_v1/img/g/g16.gif b/gpack/travianx_v1/img/g/g16.gif new file mode 100644 index 00000000..ced8bfbf Binary files /dev/null and b/gpack/travianx_v1/img/g/g16.gif differ diff --git a/gpack/travianx_v1/img/g/g16b.gif b/gpack/travianx_v1/img/g/g16b.gif new file mode 100644 index 00000000..41e9eeca Binary files /dev/null and b/gpack/travianx_v1/img/g/g16b.gif differ diff --git a/gpack/travianx_v1/img/g/g16e.gif b/gpack/travianx_v1/img/g/g16e.gif new file mode 100644 index 00000000..15194b3c Binary files /dev/null and b/gpack/travianx_v1/img/g/g16e.gif differ diff --git a/gpack/travianx_v1/img/g/g17.gif b/gpack/travianx_v1/img/g/g17.gif new file mode 100644 index 00000000..e076db30 Binary files /dev/null and b/gpack/travianx_v1/img/g/g17.gif differ diff --git a/gpack/travianx_v1/img/g/g17b.gif b/gpack/travianx_v1/img/g/g17b.gif new file mode 100644 index 00000000..c31afad6 Binary files /dev/null and b/gpack/travianx_v1/img/g/g17b.gif differ diff --git a/gpack/travianx_v1/img/g/g18.gif b/gpack/travianx_v1/img/g/g18.gif new file mode 100644 index 00000000..50e15199 Binary files /dev/null and b/gpack/travianx_v1/img/g/g18.gif differ diff --git a/gpack/travianx_v1/img/g/g18b.gif b/gpack/travianx_v1/img/g/g18b.gif new file mode 100644 index 00000000..2ff14a79 Binary files /dev/null and b/gpack/travianx_v1/img/g/g18b.gif differ diff --git a/gpack/travianx_v1/img/g/g19.gif b/gpack/travianx_v1/img/g/g19.gif new file mode 100644 index 00000000..1121301d Binary files /dev/null and b/gpack/travianx_v1/img/g/g19.gif differ diff --git a/gpack/travianx_v1/img/g/g19b.gif b/gpack/travianx_v1/img/g/g19b.gif new file mode 100644 index 00000000..570ae022 Binary files /dev/null and b/gpack/travianx_v1/img/g/g19b.gif differ diff --git a/gpack/travianx_v1/img/g/g2.gif b/gpack/travianx_v1/img/g/g2.gif new file mode 100644 index 00000000..c8821bd8 Binary files /dev/null and b/gpack/travianx_v1/img/g/g2.gif differ diff --git a/gpack/travianx_v1/img/g/g20.gif b/gpack/travianx_v1/img/g/g20.gif new file mode 100644 index 00000000..93e64009 Binary files /dev/null and b/gpack/travianx_v1/img/g/g20.gif differ diff --git a/gpack/travianx_v1/img/g/g20b.gif b/gpack/travianx_v1/img/g/g20b.gif new file mode 100644 index 00000000..6c74c4bd Binary files /dev/null and b/gpack/travianx_v1/img/g/g20b.gif differ diff --git a/gpack/travianx_v1/img/g/g21.gif b/gpack/travianx_v1/img/g/g21.gif new file mode 100644 index 00000000..44b61998 Binary files /dev/null and b/gpack/travianx_v1/img/g/g21.gif differ diff --git a/gpack/travianx_v1/img/g/g21b.gif b/gpack/travianx_v1/img/g/g21b.gif new file mode 100644 index 00000000..e32f34da Binary files /dev/null and b/gpack/travianx_v1/img/g/g21b.gif differ diff --git a/gpack/travianx_v1/img/g/g22.gif b/gpack/travianx_v1/img/g/g22.gif new file mode 100644 index 00000000..b2000d6b Binary files /dev/null and b/gpack/travianx_v1/img/g/g22.gif differ diff --git a/gpack/travianx_v1/img/g/g22b.gif b/gpack/travianx_v1/img/g/g22b.gif new file mode 100644 index 00000000..3ba5af78 Binary files /dev/null and b/gpack/travianx_v1/img/g/g22b.gif differ diff --git a/gpack/travianx_v1/img/g/g23.gif b/gpack/travianx_v1/img/g/g23.gif new file mode 100644 index 00000000..06a20e55 Binary files /dev/null and b/gpack/travianx_v1/img/g/g23.gif differ diff --git a/gpack/travianx_v1/img/g/g23b.gif b/gpack/travianx_v1/img/g/g23b.gif new file mode 100644 index 00000000..6f7ecb20 Binary files /dev/null and b/gpack/travianx_v1/img/g/g23b.gif differ diff --git a/gpack/travianx_v1/img/g/g24.gif b/gpack/travianx_v1/img/g/g24.gif new file mode 100644 index 00000000..846e8b3c Binary files /dev/null and b/gpack/travianx_v1/img/g/g24.gif differ diff --git a/gpack/travianx_v1/img/g/g24b.gif b/gpack/travianx_v1/img/g/g24b.gif new file mode 100644 index 00000000..047430b8 Binary files /dev/null and b/gpack/travianx_v1/img/g/g24b.gif differ diff --git a/gpack/travianx_v1/img/g/g25.gif b/gpack/travianx_v1/img/g/g25.gif new file mode 100644 index 00000000..c7d68e7c Binary files /dev/null and b/gpack/travianx_v1/img/g/g25.gif differ diff --git a/gpack/travianx_v1/img/g/g25b.gif b/gpack/travianx_v1/img/g/g25b.gif new file mode 100644 index 00000000..b643fa65 Binary files /dev/null and b/gpack/travianx_v1/img/g/g25b.gif differ diff --git a/gpack/travianx_v1/img/g/g26.gif b/gpack/travianx_v1/img/g/g26.gif new file mode 100644 index 00000000..6f5efe3e Binary files /dev/null and b/gpack/travianx_v1/img/g/g26.gif differ diff --git a/gpack/travianx_v1/img/g/g26b.gif b/gpack/travianx_v1/img/g/g26b.gif new file mode 100644 index 00000000..cf67c329 Binary files /dev/null and b/gpack/travianx_v1/img/g/g26b.gif differ diff --git a/gpack/travianx_v1/img/g/g27.gif b/gpack/travianx_v1/img/g/g27.gif new file mode 100644 index 00000000..e49678b9 Binary files /dev/null and b/gpack/travianx_v1/img/g/g27.gif differ diff --git a/gpack/travianx_v1/img/g/g27b.gif b/gpack/travianx_v1/img/g/g27b.gif new file mode 100644 index 00000000..e6764192 Binary files /dev/null and b/gpack/travianx_v1/img/g/g27b.gif differ diff --git a/gpack/travianx_v1/img/g/g28.gif b/gpack/travianx_v1/img/g/g28.gif new file mode 100644 index 00000000..ac83ae79 Binary files /dev/null and b/gpack/travianx_v1/img/g/g28.gif differ diff --git a/gpack/travianx_v1/img/g/g28b.gif b/gpack/travianx_v1/img/g/g28b.gif new file mode 100644 index 00000000..5e3548a6 Binary files /dev/null and b/gpack/travianx_v1/img/g/g28b.gif differ diff --git a/gpack/travianx_v1/img/g/g29.gif b/gpack/travianx_v1/img/g/g29.gif new file mode 100644 index 00000000..5c42e133 Binary files /dev/null and b/gpack/travianx_v1/img/g/g29.gif differ diff --git a/gpack/travianx_v1/img/g/g29b.gif b/gpack/travianx_v1/img/g/g29b.gif new file mode 100644 index 00000000..570ae022 Binary files /dev/null and b/gpack/travianx_v1/img/g/g29b.gif differ diff --git a/gpack/travianx_v1/img/g/g3.gif b/gpack/travianx_v1/img/g/g3.gif new file mode 100644 index 00000000..5c44e5fa Binary files /dev/null and b/gpack/travianx_v1/img/g/g3.gif differ diff --git a/gpack/travianx_v1/img/g/g30.gif b/gpack/travianx_v1/img/g/g30.gif new file mode 100644 index 00000000..c5b974ae Binary files /dev/null and b/gpack/travianx_v1/img/g/g30.gif differ diff --git a/gpack/travianx_v1/img/g/g30b.gif b/gpack/travianx_v1/img/g/g30b.gif new file mode 100644 index 00000000..6c74c4bd Binary files /dev/null and b/gpack/travianx_v1/img/g/g30b.gif differ diff --git a/gpack/travianx_v1/img/g/g34.gif b/gpack/travianx_v1/img/g/g34.gif new file mode 100644 index 00000000..45d53370 Binary files /dev/null and b/gpack/travianx_v1/img/g/g34.gif differ diff --git a/gpack/travianx_v1/img/g/g34b.gif b/gpack/travianx_v1/img/g/g34b.gif new file mode 100644 index 00000000..559077f4 Binary files /dev/null and b/gpack/travianx_v1/img/g/g34b.gif differ diff --git a/gpack/travianx_v1/img/g/g35.gif b/gpack/travianx_v1/img/g/g35.gif new file mode 100644 index 00000000..3502d640 Binary files /dev/null and b/gpack/travianx_v1/img/g/g35.gif differ diff --git a/gpack/travianx_v1/img/g/g35_tea.gif b/gpack/travianx_v1/img/g/g35_tea.gif new file mode 100644 index 00000000..4d9dea89 Binary files /dev/null and b/gpack/travianx_v1/img/g/g35_tea.gif differ diff --git a/gpack/travianx_v1/img/g/g35b.gif b/gpack/travianx_v1/img/g/g35b.gif new file mode 100644 index 00000000..59c20f7a Binary files /dev/null and b/gpack/travianx_v1/img/g/g35b.gif differ diff --git a/gpack/travianx_v1/img/g/g35b_tea.gif b/gpack/travianx_v1/img/g/g35b_tea.gif new file mode 100644 index 00000000..b3c5eabd Binary files /dev/null and b/gpack/travianx_v1/img/g/g35b_tea.gif differ diff --git a/gpack/travianx_v1/img/g/g36.gif b/gpack/travianx_v1/img/g/g36.gif new file mode 100644 index 00000000..1378f937 Binary files /dev/null and b/gpack/travianx_v1/img/g/g36.gif differ diff --git a/gpack/travianx_v1/img/g/g36b.gif b/gpack/travianx_v1/img/g/g36b.gif new file mode 100644 index 00000000..1ee92976 Binary files /dev/null and b/gpack/travianx_v1/img/g/g36b.gif differ diff --git a/gpack/travianx_v1/img/g/g37.gif b/gpack/travianx_v1/img/g/g37.gif new file mode 100644 index 00000000..77d00f95 Binary files /dev/null and b/gpack/travianx_v1/img/g/g37.gif differ diff --git a/gpack/travianx_v1/img/g/g37b.gif b/gpack/travianx_v1/img/g/g37b.gif new file mode 100644 index 00000000..8e4b1b39 Binary files /dev/null and b/gpack/travianx_v1/img/g/g37b.gif differ diff --git a/gpack/travianx_v1/img/g/g38.gif b/gpack/travianx_v1/img/g/g38.gif new file mode 100644 index 00000000..a608ca87 Binary files /dev/null and b/gpack/travianx_v1/img/g/g38.gif differ diff --git a/gpack/travianx_v1/img/g/g38b.gif b/gpack/travianx_v1/img/g/g38b.gif new file mode 100644 index 00000000..7bcf55fa Binary files /dev/null and b/gpack/travianx_v1/img/g/g38b.gif differ diff --git a/gpack/travianx_v1/img/g/g39.gif b/gpack/travianx_v1/img/g/g39.gif new file mode 100644 index 00000000..35677229 Binary files /dev/null and b/gpack/travianx_v1/img/g/g39.gif differ diff --git a/gpack/travianx_v1/img/g/g39b.gif b/gpack/travianx_v1/img/g/g39b.gif new file mode 100644 index 00000000..97fc9331 Binary files /dev/null and b/gpack/travianx_v1/img/g/g39b.gif differ diff --git a/gpack/travianx_v1/img/g/g4.gif b/gpack/travianx_v1/img/g/g4.gif new file mode 100644 index 00000000..f22571ce Binary files /dev/null and b/gpack/travianx_v1/img/g/g4.gif differ diff --git a/gpack/travianx_v1/img/g/g40.gif b/gpack/travianx_v1/img/g/g40.gif new file mode 100644 index 00000000..ac6c7efb Binary files /dev/null and b/gpack/travianx_v1/img/g/g40.gif differ diff --git a/gpack/travianx_v1/img/g/g40_1.gif b/gpack/travianx_v1/img/g/g40_1.gif new file mode 100644 index 00000000..9b5fa106 Binary files /dev/null and b/gpack/travianx_v1/img/g/g40_1.gif differ diff --git a/gpack/travianx_v1/img/g/g40_2.gif b/gpack/travianx_v1/img/g/g40_2.gif new file mode 100644 index 00000000..9503a4ff Binary files /dev/null and b/gpack/travianx_v1/img/g/g40_2.gif differ diff --git a/gpack/travianx_v1/img/g/g40_3.gif b/gpack/travianx_v1/img/g/g40_3.gif new file mode 100644 index 00000000..c9bd9358 Binary files /dev/null and b/gpack/travianx_v1/img/g/g40_3.gif differ diff --git a/gpack/travianx_v1/img/g/g40_4.gif b/gpack/travianx_v1/img/g/g40_4.gif new file mode 100644 index 00000000..78b9d35f Binary files /dev/null and b/gpack/travianx_v1/img/g/g40_4.gif differ diff --git a/gpack/travianx_v1/img/g/g40_5.gif b/gpack/travianx_v1/img/g/g40_5.gif new file mode 100644 index 00000000..31b8f7a7 Binary files /dev/null and b/gpack/travianx_v1/img/g/g40_5.gif differ diff --git a/gpack/travianx_v1/img/g/g41.gif b/gpack/travianx_v1/img/g/g41.gif new file mode 100644 index 00000000..1363c38b Binary files /dev/null and b/gpack/travianx_v1/img/g/g41.gif differ diff --git a/gpack/travianx_v1/img/g/g41b.gif b/gpack/travianx_v1/img/g/g41b.gif new file mode 100644 index 00000000..03e6e951 Binary files /dev/null and b/gpack/travianx_v1/img/g/g41b.gif differ diff --git a/gpack/travianx_v1/img/g/g42.gif b/gpack/travianx_v1/img/g/g42.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travianx_v1/img/g/g42.gif differ diff --git a/gpack/travianx_v1/img/g/g42b.gif b/gpack/travianx_v1/img/g/g42b.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travianx_v1/img/g/g42b.gif differ diff --git a/gpack/travianx_v1/img/g/g43.gif b/gpack/travianx_v1/img/g/g43.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travianx_v1/img/g/g43.gif differ diff --git a/gpack/travianx_v1/img/g/g43b.gif b/gpack/travianx_v1/img/g/g43b.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travianx_v1/img/g/g43b.gif differ diff --git a/gpack/travianx_v1/img/g/g44.gif b/gpack/travianx_v1/img/g/g44.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travianx_v1/img/g/g44.gif differ diff --git a/gpack/travianx_v1/img/g/g44b.gif b/gpack/travianx_v1/img/g/g44b.gif new file mode 100644 index 00000000..b73a6032 Binary files /dev/null and b/gpack/travianx_v1/img/g/g44b.gif differ diff --git a/gpack/travianx_v1/img/g/g5.gif b/gpack/travianx_v1/img/g/g5.gif new file mode 100644 index 00000000..c6bd7bfd Binary files /dev/null and b/gpack/travianx_v1/img/g/g5.gif differ diff --git a/gpack/travianx_v1/img/g/g5b.gif b/gpack/travianx_v1/img/g/g5b.gif new file mode 100644 index 00000000..5571545a Binary files /dev/null and b/gpack/travianx_v1/img/g/g5b.gif differ diff --git a/gpack/travianx_v1/img/g/g6.gif b/gpack/travianx_v1/img/g/g6.gif new file mode 100644 index 00000000..5a46d91b Binary files /dev/null and b/gpack/travianx_v1/img/g/g6.gif differ diff --git a/gpack/travianx_v1/img/g/g6b.gif b/gpack/travianx_v1/img/g/g6b.gif new file mode 100644 index 00000000..3153df7c Binary files /dev/null and b/gpack/travianx_v1/img/g/g6b.gif differ diff --git a/gpack/travianx_v1/img/g/g7.gif b/gpack/travianx_v1/img/g/g7.gif new file mode 100644 index 00000000..ba1a529a Binary files /dev/null and b/gpack/travianx_v1/img/g/g7.gif differ diff --git a/gpack/travianx_v1/img/g/g7b.gif b/gpack/travianx_v1/img/g/g7b.gif new file mode 100644 index 00000000..1308afed Binary files /dev/null and b/gpack/travianx_v1/img/g/g7b.gif differ diff --git a/gpack/travianx_v1/img/g/g8.gif b/gpack/travianx_v1/img/g/g8.gif new file mode 100644 index 00000000..add25d93 Binary files /dev/null and b/gpack/travianx_v1/img/g/g8.gif differ diff --git a/gpack/travianx_v1/img/g/g8b.gif b/gpack/travianx_v1/img/g/g8b.gif new file mode 100644 index 00000000..cba48a3e Binary files /dev/null and b/gpack/travianx_v1/img/g/g8b.gif differ diff --git a/gpack/travianx_v1/img/g/g9.gif b/gpack/travianx_v1/img/g/g9.gif new file mode 100644 index 00000000..19f2e6e3 Binary files /dev/null and b/gpack/travianx_v1/img/g/g9.gif differ diff --git a/gpack/travianx_v1/img/g/g9b.gif b/gpack/travianx_v1/img/g/g9b.gif new file mode 100644 index 00000000..5b5ac885 Binary files /dev/null and b/gpack/travianx_v1/img/g/g9b.gif differ diff --git a/gpack/travianx_v1/img/g/iso.gif b/gpack/travianx_v1/img/g/iso.gif new file mode 100644 index 00000000..5f5414f9 Binary files /dev/null and b/gpack/travianx_v1/img/g/iso.gif differ diff --git a/gpack/travianx_v1/img/g/s/Thumbs.db b/gpack/travianx_v1/img/g/s/Thumbs.db new file mode 100644 index 00000000..ec574229 Binary files /dev/null and b/gpack/travianx_v1/img/g/s/Thumbs.db differ diff --git a/gpack/travianx_v1/img/g/s/glvl.gif b/gpack/travianx_v1/img/g/s/glvl.gif new file mode 100644 index 00000000..e29c346e Binary files /dev/null and b/gpack/travianx_v1/img/g/s/glvl.gif differ diff --git a/gpack/travianx_v1/img/g/s/glvlm.gif b/gpack/travianx_v1/img/g/s/glvlm.gif new file mode 100644 index 00000000..6dec5842 Binary files /dev/null and b/gpack/travianx_v1/img/g/s/glvlm.gif differ diff --git a/gpack/travianx_v1/img/g/s/glvlp.gif b/gpack/travianx_v1/img/g/s/glvlp.gif new file mode 100644 index 00000000..96917e91 Binary files /dev/null and b/gpack/travianx_v1/img/g/s/glvlp.gif differ diff --git a/gpack/travianx_v1/img/g/s/lvl11_20.gif b/gpack/travianx_v1/img/g/s/lvl11_20.gif new file mode 100644 index 00000000..3e8ecad8 Binary files /dev/null and b/gpack/travianx_v1/img/g/s/lvl11_20.gif differ diff --git a/gpack/travianx_v1/img/g/s/lvl1_10.gif b/gpack/travianx_v1/img/g/s/lvl1_10.gif new file mode 100644 index 00000000..aead44f9 Binary files /dev/null and b/gpack/travianx_v1/img/g/s/lvl1_10.gif differ diff --git a/gpack/travianx_v1/img/g/s/lvl21_30.gif b/gpack/travianx_v1/img/g/s/lvl21_30.gif new file mode 100644 index 00000000..f354f006 Binary files /dev/null and b/gpack/travianx_v1/img/g/s/lvl21_30.gif differ diff --git a/gpack/travianx_v1/img/l/Thumbs.db b/gpack/travianx_v1/img/l/Thumbs.db new file mode 100644 index 00000000..5fe9c540 Binary files /dev/null and b/gpack/travianx_v1/img/l/Thumbs.db differ diff --git a/gpack/travianx_v1/img/l/ad0.jpg b/gpack/travianx_v1/img/l/ad0.jpg new file mode 100644 index 00000000..e0790976 Binary files /dev/null and b/gpack/travianx_v1/img/l/ad0.jpg differ diff --git a/gpack/travianx_v1/img/l/ad1.jpg b/gpack/travianx_v1/img/l/ad1.jpg new file mode 100644 index 00000000..009d8b59 Binary files /dev/null and b/gpack/travianx_v1/img/l/ad1.jpg differ diff --git a/gpack/travianx_v1/img/l/ad2.jpg b/gpack/travianx_v1/img/l/ad2.jpg new file mode 100644 index 00000000..84263e98 Binary files /dev/null and b/gpack/travianx_v1/img/l/ad2.jpg differ diff --git a/gpack/travianx_v1/img/l/bigsize_bg.jpg b/gpack/travianx_v1/img/l/bigsize_bg.jpg new file mode 100644 index 00000000..e942d01d Binary files /dev/null and b/gpack/travianx_v1/img/l/bigsize_bg.jpg differ diff --git a/gpack/travianx_v1/img/l/bigsize_bg_interia.jpg b/gpack/travianx_v1/img/l/bigsize_bg_interia.jpg new file mode 100644 index 00000000..f4a3a9fb Binary files /dev/null and b/gpack/travianx_v1/img/l/bigsize_bg_interia.jpg differ diff --git a/gpack/travianx_v1/img/l/day.gif b/gpack/travianx_v1/img/l/day.gif new file mode 100644 index 00000000..98cb5329 Binary files /dev/null and b/gpack/travianx_v1/img/l/day.gif differ diff --git a/gpack/travianx_v1/img/l/dyn_bg1.jpg b/gpack/travianx_v1/img/l/dyn_bg1.jpg new file mode 100644 index 00000000..fa994e6d Binary files /dev/null and b/gpack/travianx_v1/img/l/dyn_bg1.jpg differ diff --git a/gpack/travianx_v1/img/l/m1.gif b/gpack/travianx_v1/img/l/m1.gif new file mode 100644 index 00000000..89ffaf26 Binary files /dev/null and b/gpack/travianx_v1/img/l/m1.gif differ diff --git a/gpack/travianx_v1/img/l/m1_30.gif b/gpack/travianx_v1/img/l/m1_30.gif new file mode 100644 index 00000000..f23f12ee Binary files /dev/null and b/gpack/travianx_v1/img/l/m1_30.gif differ diff --git a/gpack/travianx_v1/img/l/m2.gif b/gpack/travianx_v1/img/l/m2.gif new file mode 100644 index 00000000..01f37d98 Binary files /dev/null and b/gpack/travianx_v1/img/l/m2.gif differ diff --git a/gpack/travianx_v1/img/l/m2_30.gif b/gpack/travianx_v1/img/l/m2_30.gif new file mode 100644 index 00000000..48e474f6 Binary files /dev/null and b/gpack/travianx_v1/img/l/m2_30.gif differ diff --git a/gpack/travianx_v1/img/l/m3.gif b/gpack/travianx_v1/img/l/m3.gif new file mode 100644 index 00000000..a9087119 Binary files /dev/null and b/gpack/travianx_v1/img/l/m3.gif differ diff --git a/gpack/travianx_v1/img/l/m3_30.gif b/gpack/travianx_v1/img/l/m3_30.gif new file mode 100644 index 00000000..244da4c7 Binary files /dev/null and b/gpack/travianx_v1/img/l/m3_30.gif differ diff --git a/gpack/travianx_v1/img/l/m4.gif b/gpack/travianx_v1/img/l/m4.gif new file mode 100644 index 00000000..ababfc30 Binary files /dev/null and b/gpack/travianx_v1/img/l/m4.gif differ diff --git a/gpack/travianx_v1/img/l/m4_30.gif b/gpack/travianx_v1/img/l/m4_30.gif new file mode 100644 index 00000000..fb76ac6e Binary files /dev/null and b/gpack/travianx_v1/img/l/m4_30.gif differ diff --git a/gpack/travianx_v1/img/l/mp.gif b/gpack/travianx_v1/img/l/mp.gif new file mode 100644 index 00000000..ded914cd Binary files /dev/null and b/gpack/travianx_v1/img/l/mp.gif differ diff --git a/gpack/travianx_v1/img/l/mw.gif b/gpack/travianx_v1/img/l/mw.gif new file mode 100644 index 00000000..eddc8288 Binary files /dev/null and b/gpack/travianx_v1/img/l/mw.gif differ diff --git a/gpack/travianx_v1/img/l/n1.gif b/gpack/travianx_v1/img/l/n1.gif new file mode 100644 index 00000000..ca2c7aba Binary files /dev/null and b/gpack/travianx_v1/img/l/n1.gif differ diff --git a/gpack/travianx_v1/img/l/n1_30.gif b/gpack/travianx_v1/img/l/n1_30.gif new file mode 100644 index 00000000..ee7db70d Binary files /dev/null and b/gpack/travianx_v1/img/l/n1_30.gif differ diff --git a/gpack/travianx_v1/img/l/n2.gif b/gpack/travianx_v1/img/l/n2.gif new file mode 100644 index 00000000..b49350a1 Binary files /dev/null and b/gpack/travianx_v1/img/l/n2.gif differ diff --git a/gpack/travianx_v1/img/l/n2_30.gif b/gpack/travianx_v1/img/l/n2_30.gif new file mode 100644 index 00000000..435aafb9 Binary files /dev/null and b/gpack/travianx_v1/img/l/n2_30.gif differ diff --git a/gpack/travianx_v1/img/l/n3.gif b/gpack/travianx_v1/img/l/n3.gif new file mode 100644 index 00000000..b58a79bc Binary files /dev/null and b/gpack/travianx_v1/img/l/n3.gif differ diff --git a/gpack/travianx_v1/img/l/n3_30.gif b/gpack/travianx_v1/img/l/n3_30.gif new file mode 100644 index 00000000..8dd91ef0 Binary files /dev/null and b/gpack/travianx_v1/img/l/n3_30.gif differ diff --git a/gpack/travianx_v1/img/l/n4.gif b/gpack/travianx_v1/img/l/n4.gif new file mode 100644 index 00000000..da3cf96f Binary files /dev/null and b/gpack/travianx_v1/img/l/n4.gif differ diff --git a/gpack/travianx_v1/img/l/n4_30.gif b/gpack/travianx_v1/img/l/n4_30.gif new file mode 100644 index 00000000..0df933e8 Binary files /dev/null and b/gpack/travianx_v1/img/l/n4_30.gif differ diff --git a/gpack/travianx_v1/img/l/navi.gif b/gpack/travianx_v1/img/l/navi.gif new file mode 100644 index 00000000..6a6f51c6 Binary files /dev/null and b/gpack/travianx_v1/img/l/navi.gif differ diff --git a/gpack/travianx_v1/img/l/night.gif b/gpack/travianx_v1/img/l/night.gif new file mode 100644 index 00000000..0b37fb5b Binary files /dev/null and b/gpack/travianx_v1/img/l/night.gif differ diff --git a/gpack/travianx_v1/img/l/skyscraper_bg.gif b/gpack/travianx_v1/img/l/skyscraper_bg.gif new file mode 100644 index 00000000..5a0cc6da Binary files /dev/null and b/gpack/travianx_v1/img/l/skyscraper_bg.gif differ diff --git a/gpack/travianx_v1/img/m/Thumbs.db b/gpack/travianx_v1/img/m/Thumbs.db new file mode 100644 index 00000000..36a76541 Binary files /dev/null and b/gpack/travianx_v1/img/m/Thumbs.db differ diff --git a/gpack/travianx_v1/img/m/d00.gif b/gpack/travianx_v1/img/m/d00.gif new file mode 100644 index 00000000..a07c7fa6 Binary files /dev/null and b/gpack/travianx_v1/img/m/d00.gif differ diff --git a/gpack/travianx_v1/img/m/d01.gif b/gpack/travianx_v1/img/m/d01.gif new file mode 100644 index 00000000..96c930e5 Binary files /dev/null and b/gpack/travianx_v1/img/m/d01.gif differ diff --git a/gpack/travianx_v1/img/m/d02.gif b/gpack/travianx_v1/img/m/d02.gif new file mode 100644 index 00000000..d4fa8723 Binary files /dev/null and b/gpack/travianx_v1/img/m/d02.gif differ diff --git a/gpack/travianx_v1/img/m/d03.gif b/gpack/travianx_v1/img/m/d03.gif new file mode 100644 index 00000000..c74ee5ba Binary files /dev/null and b/gpack/travianx_v1/img/m/d03.gif differ diff --git a/gpack/travianx_v1/img/m/d04.gif b/gpack/travianx_v1/img/m/d04.gif new file mode 100644 index 00000000..6dad30f2 Binary files /dev/null and b/gpack/travianx_v1/img/m/d04.gif differ diff --git a/gpack/travianx_v1/img/m/d05.gif b/gpack/travianx_v1/img/m/d05.gif new file mode 100644 index 00000000..2c94be80 Binary files /dev/null and b/gpack/travianx_v1/img/m/d05.gif differ diff --git a/gpack/travianx_v1/img/m/d10.gif b/gpack/travianx_v1/img/m/d10.gif new file mode 100644 index 00000000..fcf8cbc9 Binary files /dev/null and b/gpack/travianx_v1/img/m/d10.gif differ diff --git a/gpack/travianx_v1/img/m/d11.gif b/gpack/travianx_v1/img/m/d11.gif new file mode 100644 index 00000000..c41d0d01 Binary files /dev/null and b/gpack/travianx_v1/img/m/d11.gif differ diff --git a/gpack/travianx_v1/img/m/d12.gif b/gpack/travianx_v1/img/m/d12.gif new file mode 100644 index 00000000..bb518236 Binary files /dev/null and b/gpack/travianx_v1/img/m/d12.gif differ diff --git a/gpack/travianx_v1/img/m/d13.gif b/gpack/travianx_v1/img/m/d13.gif new file mode 100644 index 00000000..2677ced6 Binary files /dev/null and b/gpack/travianx_v1/img/m/d13.gif differ diff --git a/gpack/travianx_v1/img/m/d14.gif b/gpack/travianx_v1/img/m/d14.gif new file mode 100644 index 00000000..be278344 Binary files /dev/null and b/gpack/travianx_v1/img/m/d14.gif differ diff --git a/gpack/travianx_v1/img/m/d15.gif b/gpack/travianx_v1/img/m/d15.gif new file mode 100644 index 00000000..9803f5b2 Binary files /dev/null and b/gpack/travianx_v1/img/m/d15.gif differ diff --git a/gpack/travianx_v1/img/m/d20.gif b/gpack/travianx_v1/img/m/d20.gif new file mode 100644 index 00000000..b0b5aefb Binary files /dev/null and b/gpack/travianx_v1/img/m/d20.gif differ diff --git a/gpack/travianx_v1/img/m/d21.gif b/gpack/travianx_v1/img/m/d21.gif new file mode 100644 index 00000000..c7e4de3d Binary files /dev/null and b/gpack/travianx_v1/img/m/d21.gif differ diff --git a/gpack/travianx_v1/img/m/d22.gif b/gpack/travianx_v1/img/m/d22.gif new file mode 100644 index 00000000..65e49cd9 Binary files /dev/null and b/gpack/travianx_v1/img/m/d22.gif differ diff --git a/gpack/travianx_v1/img/m/d23.gif b/gpack/travianx_v1/img/m/d23.gif new file mode 100644 index 00000000..1da8f894 Binary files /dev/null and b/gpack/travianx_v1/img/m/d23.gif differ diff --git a/gpack/travianx_v1/img/m/d24.gif b/gpack/travianx_v1/img/m/d24.gif new file mode 100644 index 00000000..10b4f806 Binary files /dev/null and b/gpack/travianx_v1/img/m/d24.gif differ diff --git a/gpack/travianx_v1/img/m/d25.gif b/gpack/travianx_v1/img/m/d25.gif new file mode 100644 index 00000000..5597e6fe Binary files /dev/null and b/gpack/travianx_v1/img/m/d25.gif differ diff --git a/gpack/travianx_v1/img/m/d30.gif b/gpack/travianx_v1/img/m/d30.gif new file mode 100644 index 00000000..a361e539 Binary files /dev/null and b/gpack/travianx_v1/img/m/d30.gif differ diff --git a/gpack/travianx_v1/img/m/d31.gif b/gpack/travianx_v1/img/m/d31.gif new file mode 100644 index 00000000..9e6ce3d6 Binary files /dev/null and b/gpack/travianx_v1/img/m/d31.gif differ diff --git a/gpack/travianx_v1/img/m/d32.gif b/gpack/travianx_v1/img/m/d32.gif new file mode 100644 index 00000000..033f9039 Binary files /dev/null and b/gpack/travianx_v1/img/m/d32.gif differ diff --git a/gpack/travianx_v1/img/m/d33.gif b/gpack/travianx_v1/img/m/d33.gif new file mode 100644 index 00000000..dcc884d3 Binary files /dev/null and b/gpack/travianx_v1/img/m/d33.gif differ diff --git a/gpack/travianx_v1/img/m/d34.gif b/gpack/travianx_v1/img/m/d34.gif new file mode 100644 index 00000000..0b3a7a83 Binary files /dev/null and b/gpack/travianx_v1/img/m/d34.gif differ diff --git a/gpack/travianx_v1/img/m/d35.gif b/gpack/travianx_v1/img/m/d35.gif new file mode 100644 index 00000000..8f813533 Binary files /dev/null and b/gpack/travianx_v1/img/m/d35.gif differ diff --git a/gpack/travianx_v1/img/m/dir.gif b/gpack/travianx_v1/img/m/dir.gif new file mode 100644 index 00000000..23aa42f8 Binary files /dev/null and b/gpack/travianx_v1/img/m/dir.gif differ diff --git a/gpack/travianx_v1/img/m/map.gif b/gpack/travianx_v1/img/m/map.gif new file mode 100644 index 00000000..d1746e3f Binary files /dev/null and b/gpack/travianx_v1/img/m/map.gif differ diff --git a/gpack/travianx_v1/img/m/map.jpg b/gpack/travianx_v1/img/m/map.jpg new file mode 100644 index 00000000..7ed399f2 Binary files /dev/null and b/gpack/travianx_v1/img/m/map.jpg differ diff --git a/gpack/travianx_v1/img/m/mapl.gif b/gpack/travianx_v1/img/m/mapl.gif new file mode 100644 index 00000000..9bc86c8f Binary files /dev/null and b/gpack/travianx_v1/img/m/mapl.gif differ diff --git a/gpack/travianx_v1/img/m/matt.gif b/gpack/travianx_v1/img/m/matt.gif new file mode 100644 index 00000000..63cc3afd Binary files /dev/null and b/gpack/travianx_v1/img/m/matt.gif differ diff --git a/gpack/travianx_v1/img/m/max.gif b/gpack/travianx_v1/img/m/max.gif new file mode 100644 index 00000000..bc6d143e Binary files /dev/null and b/gpack/travianx_v1/img/m/max.gif differ diff --git a/gpack/travianx_v1/img/m/mret.gif b/gpack/travianx_v1/img/m/mret.gif new file mode 100644 index 00000000..97b6f915 Binary files /dev/null and b/gpack/travianx_v1/img/m/mret.gif differ diff --git a/gpack/travianx_v1/img/m/mspy.gif b/gpack/travianx_v1/img/m/mspy.gif new file mode 100644 index 00000000..2a1d58e7 Binary files /dev/null and b/gpack/travianx_v1/img/m/mspy.gif differ diff --git a/gpack/travianx_v1/img/m/msup.gif b/gpack/travianx_v1/img/m/msup.gif new file mode 100644 index 00000000..214f71f9 Binary files /dev/null and b/gpack/travianx_v1/img/m/msup.gif differ diff --git a/gpack/travianx_v1/img/m/o1.gif b/gpack/travianx_v1/img/m/o1.gif new file mode 100644 index 00000000..f10a68db Binary files /dev/null and b/gpack/travianx_v1/img/m/o1.gif differ diff --git a/gpack/travianx_v1/img/m/o10.gif b/gpack/travianx_v1/img/m/o10.gif new file mode 100644 index 00000000..96cd2952 Binary files /dev/null and b/gpack/travianx_v1/img/m/o10.gif differ diff --git a/gpack/travianx_v1/img/m/o11.gif b/gpack/travianx_v1/img/m/o11.gif new file mode 100644 index 00000000..a8c3b26d Binary files /dev/null and b/gpack/travianx_v1/img/m/o11.gif differ diff --git a/gpack/travianx_v1/img/m/o12.gif b/gpack/travianx_v1/img/m/o12.gif new file mode 100644 index 00000000..ff730e5d Binary files /dev/null and b/gpack/travianx_v1/img/m/o12.gif differ diff --git a/gpack/travianx_v1/img/m/o2.gif b/gpack/travianx_v1/img/m/o2.gif new file mode 100644 index 00000000..e699d526 Binary files /dev/null and b/gpack/travianx_v1/img/m/o2.gif differ diff --git a/gpack/travianx_v1/img/m/o3.gif b/gpack/travianx_v1/img/m/o3.gif new file mode 100644 index 00000000..26466bb9 Binary files /dev/null and b/gpack/travianx_v1/img/m/o3.gif differ diff --git a/gpack/travianx_v1/img/m/o4.gif b/gpack/travianx_v1/img/m/o4.gif new file mode 100644 index 00000000..aae2d17c Binary files /dev/null and b/gpack/travianx_v1/img/m/o4.gif differ diff --git a/gpack/travianx_v1/img/m/o5.gif b/gpack/travianx_v1/img/m/o5.gif new file mode 100644 index 00000000..2eb9e20e Binary files /dev/null and b/gpack/travianx_v1/img/m/o5.gif differ diff --git a/gpack/travianx_v1/img/m/o6.gif b/gpack/travianx_v1/img/m/o6.gif new file mode 100644 index 00000000..c11d694f Binary files /dev/null and b/gpack/travianx_v1/img/m/o6.gif differ diff --git a/gpack/travianx_v1/img/m/o7.gif b/gpack/travianx_v1/img/m/o7.gif new file mode 100644 index 00000000..86c0c638 Binary files /dev/null and b/gpack/travianx_v1/img/m/o7.gif differ diff --git a/gpack/travianx_v1/img/m/o8.gif b/gpack/travianx_v1/img/m/o8.gif new file mode 100644 index 00000000..54dbf503 Binary files /dev/null and b/gpack/travianx_v1/img/m/o8.gif differ diff --git a/gpack/travianx_v1/img/m/o9.gif b/gpack/travianx_v1/img/m/o9.gif new file mode 100644 index 00000000..49fda3db Binary files /dev/null and b/gpack/travianx_v1/img/m/o9.gif differ diff --git a/gpack/travianx_v1/img/m/o99.gif b/gpack/travianx_v1/img/m/o99.gif new file mode 100644 index 00000000..09d5aafe Binary files /dev/null and b/gpack/travianx_v1/img/m/o99.gif differ diff --git a/gpack/travianx_v1/img/m/t0.gif b/gpack/travianx_v1/img/m/t0.gif new file mode 100644 index 00000000..1856143b Binary files /dev/null and b/gpack/travianx_v1/img/m/t0.gif differ diff --git a/gpack/travianx_v1/img/m/t1.gif b/gpack/travianx_v1/img/m/t1.gif new file mode 100644 index 00000000..82f62d33 Binary files /dev/null and b/gpack/travianx_v1/img/m/t1.gif differ diff --git a/gpack/travianx_v1/img/m/t2.gif b/gpack/travianx_v1/img/m/t2.gif new file mode 100644 index 00000000..534c054e Binary files /dev/null and b/gpack/travianx_v1/img/m/t2.gif differ diff --git a/gpack/travianx_v1/img/m/t3.gif b/gpack/travianx_v1/img/m/t3.gif new file mode 100644 index 00000000..bcadf65e Binary files /dev/null and b/gpack/travianx_v1/img/m/t3.gif differ diff --git a/gpack/travianx_v1/img/m/t4.gif b/gpack/travianx_v1/img/m/t4.gif new file mode 100644 index 00000000..53a2eebf Binary files /dev/null and b/gpack/travianx_v1/img/m/t4.gif differ diff --git a/gpack/travianx_v1/img/m/t5.gif b/gpack/travianx_v1/img/m/t5.gif new file mode 100644 index 00000000..b2e56459 Binary files /dev/null and b/gpack/travianx_v1/img/m/t5.gif differ diff --git a/gpack/travianx_v1/img/m/t6.gif b/gpack/travianx_v1/img/m/t6.gif new file mode 100644 index 00000000..0b9f5c25 Binary files /dev/null and b/gpack/travianx_v1/img/m/t6.gif differ diff --git a/gpack/travianx_v1/img/m/t7.gif b/gpack/travianx_v1/img/m/t7.gif new file mode 100644 index 00000000..54e776f2 Binary files /dev/null and b/gpack/travianx_v1/img/m/t7.gif differ diff --git a/gpack/travianx_v1/img/m/t8.gif b/gpack/travianx_v1/img/m/t8.gif new file mode 100644 index 00000000..0b9f5c25 Binary files /dev/null and b/gpack/travianx_v1/img/m/t8.gif differ diff --git a/gpack/travianx_v1/img/m/t9.gif b/gpack/travianx_v1/img/m/t9.gif new file mode 100644 index 00000000..82f62d33 Binary files /dev/null and b/gpack/travianx_v1/img/m/t9.gif differ diff --git a/gpack/travianx_v1/img/m/w1.jpg b/gpack/travianx_v1/img/m/w1.jpg new file mode 100644 index 00000000..c36414d0 Binary files /dev/null and b/gpack/travianx_v1/img/m/w1.jpg differ diff --git a/gpack/travianx_v1/img/m/w10.jpg b/gpack/travianx_v1/img/m/w10.jpg new file mode 100644 index 00000000..b0c9813b Binary files /dev/null and b/gpack/travianx_v1/img/m/w10.jpg differ diff --git a/gpack/travianx_v1/img/m/w11.jpg b/gpack/travianx_v1/img/m/w11.jpg new file mode 100644 index 00000000..0c0f19cf Binary files /dev/null and b/gpack/travianx_v1/img/m/w11.jpg differ diff --git a/gpack/travianx_v1/img/m/w12.jpg b/gpack/travianx_v1/img/m/w12.jpg new file mode 100644 index 00000000..0703a75b Binary files /dev/null and b/gpack/travianx_v1/img/m/w12.jpg differ diff --git a/gpack/travianx_v1/img/m/w2.jpg b/gpack/travianx_v1/img/m/w2.jpg new file mode 100644 index 00000000..4b3b53f1 Binary files /dev/null and b/gpack/travianx_v1/img/m/w2.jpg differ diff --git a/gpack/travianx_v1/img/m/w3.jpg b/gpack/travianx_v1/img/m/w3.jpg new file mode 100644 index 00000000..c613bf5d Binary files /dev/null and b/gpack/travianx_v1/img/m/w3.jpg differ diff --git a/gpack/travianx_v1/img/m/w4.jpg b/gpack/travianx_v1/img/m/w4.jpg new file mode 100644 index 00000000..e026f357 Binary files /dev/null and b/gpack/travianx_v1/img/m/w4.jpg differ diff --git a/gpack/travianx_v1/img/m/w5.jpg b/gpack/travianx_v1/img/m/w5.jpg new file mode 100644 index 00000000..67164f52 Binary files /dev/null and b/gpack/travianx_v1/img/m/w5.jpg differ diff --git a/gpack/travianx_v1/img/m/w6.jpg b/gpack/travianx_v1/img/m/w6.jpg new file mode 100644 index 00000000..b7ab2c68 Binary files /dev/null and b/gpack/travianx_v1/img/m/w6.jpg differ diff --git a/gpack/travianx_v1/img/m/w7.jpg b/gpack/travianx_v1/img/m/w7.jpg new file mode 100644 index 00000000..7fa928e9 Binary files /dev/null and b/gpack/travianx_v1/img/m/w7.jpg differ diff --git a/gpack/travianx_v1/img/m/w8.jpg b/gpack/travianx_v1/img/m/w8.jpg new file mode 100644 index 00000000..59dbf210 Binary files /dev/null and b/gpack/travianx_v1/img/m/w8.jpg differ diff --git a/gpack/travianx_v1/img/m/w9.jpg b/gpack/travianx_v1/img/m/w9.jpg new file mode 100644 index 00000000..cedb8302 Binary files /dev/null and b/gpack/travianx_v1/img/m/w9.jpg differ diff --git a/gpack/travianx_v1/img/misc/403.gif b/gpack/travianx_v1/img/misc/403.gif new file mode 100644 index 00000000..ce452da9 Binary files /dev/null and b/gpack/travianx_v1/img/misc/403.gif differ diff --git a/gpack/travianx_v1/img/misc/404.gif b/gpack/travianx_v1/img/misc/404.gif new file mode 100644 index 00000000..fadee331 Binary files /dev/null and b/gpack/travianx_v1/img/misc/404.gif differ diff --git a/gpack/travianx_v1/img/misc/500.gif b/gpack/travianx_v1/img/misc/500.gif new file mode 100644 index 00000000..88d2ec2e Binary files /dev/null and b/gpack/travianx_v1/img/misc/500.gif differ diff --git a/gpack/travianx_v1/img/misc/Thumbs.db b/gpack/travianx_v1/img/misc/Thumbs.db new file mode 100644 index 00000000..0f90c6c6 Binary files /dev/null and b/gpack/travianx_v1/img/misc/Thumbs.db differ diff --git a/gpack/travianx_v1/img/misc/artefacts.gif b/gpack/travianx_v1/img/misc/artefacts.gif new file mode 100644 index 00000000..8a664bcd Binary files /dev/null and b/gpack/travianx_v1/img/misc/artefacts.gif differ diff --git a/gpack/travianx_v1/img/misc/cropfinder.gif b/gpack/travianx_v1/img/misc/cropfinder.gif new file mode 100644 index 00000000..ca35e585 Binary files /dev/null and b/gpack/travianx_v1/img/misc/cropfinder.gif differ diff --git a/gpack/travianx_v1/img/misc/vip.gif b/gpack/travianx_v1/img/misc/vip.gif new file mode 100644 index 00000000..0393583f Binary files /dev/null and b/gpack/travianx_v1/img/misc/vip.gif differ diff --git a/gpack/travianx_v1/img/misc/xlo.gif b/gpack/travianx_v1/img/misc/xlo.gif new file mode 100644 index 00000000..0cc76c5b Binary files /dev/null and b/gpack/travianx_v1/img/misc/xlo.gif differ diff --git a/gpack/travianx_v1/img/msg/Thumbs.db b/gpack/travianx_v1/img/msg/Thumbs.db new file mode 100644 index 00000000..3e946109 Binary files /dev/null and b/gpack/travianx_v1/img/msg/Thumbs.db differ diff --git a/gpack/travianx_v1/img/msg/bb_buttons.png b/gpack/travianx_v1/img/msg/bb_buttons.png new file mode 100644 index 00000000..1d17e39e Binary files /dev/null and b/gpack/travianx_v1/img/msg/bb_buttons.png differ diff --git a/gpack/travianx_v1/img/msg/block_bg.gif b/gpack/travianx_v1/img/msg/block_bg.gif new file mode 100644 index 00000000..78584291 Binary files /dev/null and b/gpack/travianx_v1/img/msg/block_bg.gif differ diff --git a/gpack/travianx_v1/img/msg/block_bg2.gif b/gpack/travianx_v1/img/msg/block_bg2.gif new file mode 100644 index 00000000..099b65cf Binary files /dev/null and b/gpack/travianx_v1/img/msg/block_bg2.gif differ diff --git a/gpack/travianx_v1/img/msg/block_bg21.gif b/gpack/travianx_v1/img/msg/block_bg21.gif new file mode 100644 index 00000000..558f5edc Binary files /dev/null and b/gpack/travianx_v1/img/msg/block_bg21.gif differ diff --git a/gpack/travianx_v1/img/msg/block_bg22.gif b/gpack/travianx_v1/img/msg/block_bg22.gif new file mode 100644 index 00000000..104bb144 Binary files /dev/null and b/gpack/travianx_v1/img/msg/block_bg22.gif differ diff --git a/gpack/travianx_v1/img/msg/block_bg23.gif b/gpack/travianx_v1/img/msg/block_bg23.gif new file mode 100644 index 00000000..206e2d69 Binary files /dev/null and b/gpack/travianx_v1/img/msg/block_bg23.gif differ diff --git a/gpack/travianx_v1/img/msg/block_bg25.gif b/gpack/travianx_v1/img/msg/block_bg25.gif new file mode 100644 index 00000000..e202ccdb Binary files /dev/null and b/gpack/travianx_v1/img/msg/block_bg25.gif differ diff --git a/gpack/travianx_v1/img/msg/line.gif b/gpack/travianx_v1/img/msg/line.gif new file mode 100644 index 00000000..f910ed3a Binary files /dev/null and b/gpack/travianx_v1/img/msg/line.gif differ diff --git a/gpack/travianx_v1/img/msg/underline.gif b/gpack/travianx_v1/img/msg/underline.gif new file mode 100644 index 00000000..806bd5b1 Binary files /dev/null and b/gpack/travianx_v1/img/msg/underline.gif differ diff --git a/gpack/travianx_v1/img/new/Thumbs.db b/gpack/travianx_v1/img/new/Thumbs.db new file mode 100644 index 00000000..1a72fa55 Binary files /dev/null and b/gpack/travianx_v1/img/new/Thumbs.db differ diff --git a/gpack/travianx_v1/img/new/adr.png b/gpack/travianx_v1/img/new/adr.png new file mode 100644 index 00000000..d5bb4a7c Binary files /dev/null and b/gpack/travianx_v1/img/new/adr.png differ diff --git a/gpack/travianx_v1/img/new/anl.png b/gpack/travianx_v1/img/new/anl.png new file mode 100644 index 00000000..627a1859 Binary files /dev/null and b/gpack/travianx_v1/img/new/anl.png differ diff --git a/gpack/travianx_v1/img/new/background.png b/gpack/travianx_v1/img/new/background.png new file mode 100644 index 00000000..33780d6d Binary files /dev/null and b/gpack/travianx_v1/img/new/background.png differ diff --git a/gpack/travianx_v1/img/new/background_a2b.png b/gpack/travianx_v1/img/new/background_a2b.png new file mode 100644 index 00000000..38fc16b5 Binary files /dev/null and b/gpack/travianx_v1/img/new/background_a2b.png differ diff --git a/gpack/travianx_v1/img/new/background_alliance_name.png b/gpack/travianx_v1/img/new/background_alliance_name.png new file mode 100644 index 00000000..2944f0a0 Binary files /dev/null and b/gpack/travianx_v1/img/new/background_alliance_name.png differ diff --git a/gpack/travianx_v1/img/new/background_map.png b/gpack/travianx_v1/img/new/background_map.png new file mode 100644 index 00000000..ad9be36e Binary files /dev/null and b/gpack/travianx_v1/img/new/background_map.png differ diff --git a/gpack/travianx_v1/img/new/background_messages.png b/gpack/travianx_v1/img/new/background_messages.png new file mode 100644 index 00000000..0a47d30e Binary files /dev/null and b/gpack/travianx_v1/img/new/background_messages.png differ diff --git a/gpack/travianx_v1/img/new/background_plus.png b/gpack/travianx_v1/img/new/background_plus.png new file mode 100644 index 00000000..bd059cac Binary files /dev/null and b/gpack/travianx_v1/img/new/background_plus.png differ diff --git a/gpack/travianx_v1/img/new/background_reports.png b/gpack/travianx_v1/img/new/background_reports.png new file mode 100644 index 00000000..ccc02b96 Binary files /dev/null and b/gpack/travianx_v1/img/new/background_reports.png differ diff --git a/gpack/travianx_v1/img/new/background_settings.png b/gpack/travianx_v1/img/new/background_settings.png new file mode 100644 index 00000000..95661a0e Binary files /dev/null and b/gpack/travianx_v1/img/new/background_settings.png differ diff --git a/gpack/travianx_v1/img/new/background_statistics.png b/gpack/travianx_v1/img/new/background_statistics.png new file mode 100644 index 00000000..98def54d Binary files /dev/null and b/gpack/travianx_v1/img/new/background_statistics.png differ diff --git a/gpack/travianx_v1/img/new/background_village_name.png b/gpack/travianx_v1/img/new/background_village_name.png new file mode 100644 index 00000000..a2af32a4 Binary files /dev/null and b/gpack/travianx_v1/img/new/background_village_name.png differ diff --git a/gpack/travianx_v1/img/new/background_warsim.png b/gpack/travianx_v1/img/new/background_warsim.png new file mode 100644 index 00000000..38a09cc8 Binary files /dev/null and b/gpack/travianx_v1/img/new/background_warsim.png differ diff --git a/gpack/travianx_v1/img/new/bb_buttons.png b/gpack/travianx_v1/img/new/bb_buttons.png new file mode 100644 index 00000000..1d17e39e Binary files /dev/null and b/gpack/travianx_v1/img/new/bb_buttons.png differ diff --git a/gpack/travianx_v1/img/new/building_border.png b/gpack/travianx_v1/img/new/building_border.png new file mode 100644 index 00000000..af8493c6 Binary files /dev/null and b/gpack/travianx_v1/img/new/building_border.png differ diff --git a/gpack/travianx_v1/img/new/c2.gif b/gpack/travianx_v1/img/new/c2.gif new file mode 100644 index 00000000..f96a0168 Binary files /dev/null and b/gpack/travianx_v1/img/new/c2.gif differ diff --git a/gpack/travianx_v1/img/new/cancel.gif b/gpack/travianx_v1/img/new/cancel.gif new file mode 100644 index 00000000..f36b098a Binary files /dev/null and b/gpack/travianx_v1/img/new/cancel.gif differ diff --git a/gpack/travianx_v1/img/new/clay_border.png b/gpack/travianx_v1/img/new/clay_border.png new file mode 100644 index 00000000..f5684887 Binary files /dev/null and b/gpack/travianx_v1/img/new/clay_border.png differ diff --git a/gpack/travianx_v1/img/new/clock.gif b/gpack/travianx_v1/img/new/clock.gif new file mode 100644 index 00000000..1fb0ea1e Binary files /dev/null and b/gpack/travianx_v1/img/new/clock.gif differ diff --git a/gpack/travianx_v1/img/new/closed.png b/gpack/travianx_v1/img/new/closed.png new file mode 100644 index 00000000..ac2d92eb Binary files /dev/null and b/gpack/travianx_v1/img/new/closed.png differ diff --git a/gpack/travianx_v1/img/new/crop_border.png b/gpack/travianx_v1/img/new/crop_border.png new file mode 100644 index 00000000..2a19bfa2 Binary files /dev/null and b/gpack/travianx_v1/img/new/crop_border.png differ diff --git a/gpack/travianx_v1/img/new/def.png b/gpack/travianx_v1/img/new/def.png new file mode 100644 index 00000000..4100942d Binary files /dev/null and b/gpack/travianx_v1/img/new/def.png differ diff --git a/gpack/travianx_v1/img/new/ff.png b/gpack/travianx_v1/img/new/ff.png new file mode 100644 index 00000000..018ff74e Binary files /dev/null and b/gpack/travianx_v1/img/new/ff.png differ diff --git a/gpack/travianx_v1/img/new/footer.png b/gpack/travianx_v1/img/new/footer.png new file mode 100644 index 00000000..e026f883 Binary files /dev/null and b/gpack/travianx_v1/img/new/footer.png differ diff --git a/gpack/travianx_v1/img/new/g22.gif b/gpack/travianx_v1/img/new/g22.gif new file mode 100644 index 00000000..4644eca6 Binary files /dev/null and b/gpack/travianx_v1/img/new/g22.gif differ diff --git a/gpack/travianx_v1/img/new/gaulwall_border.png b/gpack/travianx_v1/img/new/gaulwall_border.png new file mode 100644 index 00000000..ae314d85 Binary files /dev/null and b/gpack/travianx_v1/img/new/gaulwall_border.png differ diff --git a/gpack/travianx_v1/img/new/glvl.gif b/gpack/travianx_v1/img/new/glvl.gif new file mode 100644 index 00000000..e29c346e Binary files /dev/null and b/gpack/travianx_v1/img/new/glvl.gif differ diff --git a/gpack/travianx_v1/img/new/gold.gif b/gpack/travianx_v1/img/new/gold.gif new file mode 100644 index 00000000..33ea8834 Binary files /dev/null and b/gpack/travianx_v1/img/new/gold.gif differ diff --git a/gpack/travianx_v1/img/new/gold_g.gif b/gpack/travianx_v1/img/new/gold_g.gif new file mode 100644 index 00000000..b70183da Binary files /dev/null and b/gpack/travianx_v1/img/new/gold_g.gif differ diff --git a/gpack/travianx_v1/img/new/gp.png b/gpack/travianx_v1/img/new/gp.png new file mode 100644 index 00000000..89b2807d Binary files /dev/null and b/gpack/travianx_v1/img/new/gp.png differ diff --git a/gpack/travianx_v1/img/new/header-gold-grad.png b/gpack/travianx_v1/img/new/header-gold-grad.png new file mode 100644 index 00000000..ba0b3843 Binary files /dev/null and b/gpack/travianx_v1/img/new/header-gold-grad.png differ diff --git a/gpack/travianx_v1/img/new/header-grad.gif b/gpack/travianx_v1/img/new/header-grad.gif new file mode 100644 index 00000000..0c0d50ff Binary files /dev/null and b/gpack/travianx_v1/img/new/header-grad.gif differ diff --git a/gpack/travianx_v1/img/new/header-line.png b/gpack/travianx_v1/img/new/header-line.png new file mode 100644 index 00000000..c7d90746 Binary files /dev/null and b/gpack/travianx_v1/img/new/header-line.png differ diff --git a/gpack/travianx_v1/img/new/header.png b/gpack/travianx_v1/img/new/header.png new file mode 100644 index 00000000..44ebce32 Binary files /dev/null and b/gpack/travianx_v1/img/new/header.png differ diff --git a/gpack/travianx_v1/img/new/ie.png b/gpack/travianx_v1/img/new/ie.png new file mode 100644 index 00000000..eda81f09 Binary files /dev/null and b/gpack/travianx_v1/img/new/ie.png differ diff --git a/gpack/travianx_v1/img/new/iron_border.png b/gpack/travianx_v1/img/new/iron_border.png new file mode 100644 index 00000000..01a0697d Binary files /dev/null and b/gpack/travianx_v1/img/new/iron_border.png differ diff --git a/gpack/travianx_v1/img/new/level.png b/gpack/travianx_v1/img/new/level.png new file mode 100644 index 00000000..916fb72b Binary files /dev/null and b/gpack/travianx_v1/img/new/level.png differ diff --git a/gpack/travianx_v1/img/new/menu.png b/gpack/travianx_v1/img/new/menu.png new file mode 100644 index 00000000..69c6dd88 Binary files /dev/null and b/gpack/travianx_v1/img/new/menu.png differ diff --git a/gpack/travianx_v1/img/new/minus.png b/gpack/travianx_v1/img/new/minus.png new file mode 100644 index 00000000..91dd390d Binary files /dev/null and b/gpack/travianx_v1/img/new/minus.png differ diff --git a/gpack/travianx_v1/img/new/navi1.png b/gpack/travianx_v1/img/new/navi1.png new file mode 100644 index 00000000..e030549d Binary files /dev/null and b/gpack/travianx_v1/img/new/navi1.png differ diff --git a/gpack/travianx_v1/img/new/navi2.png b/gpack/travianx_v1/img/new/navi2.png new file mode 100644 index 00000000..eb41d35b Binary files /dev/null and b/gpack/travianx_v1/img/new/navi2.png differ diff --git a/gpack/travianx_v1/img/new/navi3.png b/gpack/travianx_v1/img/new/navi3.png new file mode 100644 index 00000000..4f11a963 Binary files /dev/null and b/gpack/travianx_v1/img/new/navi3.png differ diff --git a/gpack/travianx_v1/img/new/navi4.png b/gpack/travianx_v1/img/new/navi4.png new file mode 100644 index 00000000..29fc8a50 Binary files /dev/null and b/gpack/travianx_v1/img/new/navi4.png differ diff --git a/gpack/travianx_v1/img/new/navi5.png b/gpack/travianx_v1/img/new/navi5.png new file mode 100644 index 00000000..48e38813 Binary files /dev/null and b/gpack/travianx_v1/img/new/navi5.png differ diff --git a/gpack/travianx_v1/img/new/npc.png b/gpack/travianx_v1/img/new/npc.png new file mode 100644 index 00000000..1103a3fc Binary files /dev/null and b/gpack/travianx_v1/img/new/npc.png differ diff --git a/gpack/travianx_v1/img/new/off.png b/gpack/travianx_v1/img/new/off.png new file mode 100644 index 00000000..cf8c6c76 Binary files /dev/null and b/gpack/travianx_v1/img/new/off.png differ diff --git a/gpack/travianx_v1/img/new/opened.png b/gpack/travianx_v1/img/new/opened.png new file mode 100644 index 00000000..f7ea6cbe Binary files /dev/null and b/gpack/travianx_v1/img/new/opened.png differ diff --git a/gpack/travianx_v1/img/new/opera.png b/gpack/travianx_v1/img/new/opera.png new file mode 100644 index 00000000..a7ec2885 Binary files /dev/null and b/gpack/travianx_v1/img/new/opera.png differ diff --git a/gpack/travianx_v1/img/new/plus.png b/gpack/travianx_v1/img/new/plus.png new file mode 100644 index 00000000..dd0b5ca8 Binary files /dev/null and b/gpack/travianx_v1/img/new/plus.png differ diff --git a/gpack/travianx_v1/img/new/rallypoint_border.png b/gpack/travianx_v1/img/new/rallypoint_border.png new file mode 100644 index 00000000..25365b29 Binary files /dev/null and b/gpack/travianx_v1/img/new/rallypoint_border.png differ diff --git a/gpack/travianx_v1/img/new/romanwall_border.png b/gpack/travianx_v1/img/new/romanwall_border.png new file mode 100644 index 00000000..86b705ca Binary files /dev/null and b/gpack/travianx_v1/img/new/romanwall_border.png differ diff --git a/gpack/travianx_v1/img/new/switch_levels.png b/gpack/travianx_v1/img/new/switch_levels.png new file mode 100644 index 00000000..b5f5a83a Binary files /dev/null and b/gpack/travianx_v1/img/new/switch_levels.png differ diff --git a/gpack/travianx_v1/img/new/teutonwall_border.png b/gpack/travianx_v1/img/new/teutonwall_border.png new file mode 100644 index 00000000..6696e721 Binary files /dev/null and b/gpack/travianx_v1/img/new/teutonwall_border.png differ diff --git a/gpack/travianx_v1/img/new/textmenu.gif b/gpack/travianx_v1/img/new/textmenu.gif new file mode 100644 index 00000000..7b47f3e8 Binary files /dev/null and b/gpack/travianx_v1/img/new/textmenu.gif differ diff --git a/gpack/travianx_v1/img/new/tick.png b/gpack/travianx_v1/img/new/tick.png new file mode 100644 index 00000000..7d0c48b7 Binary files /dev/null and b/gpack/travianx_v1/img/new/tick.png differ diff --git a/gpack/travianx_v1/img/new/top10.png b/gpack/travianx_v1/img/new/top10.png new file mode 100644 index 00000000..8d6affc7 Binary files /dev/null and b/gpack/travianx_v1/img/new/top10.png differ diff --git a/gpack/travianx_v1/img/new/white.gif b/gpack/travianx_v1/img/new/white.gif new file mode 100644 index 00000000..5715b4b1 Binary files /dev/null and b/gpack/travianx_v1/img/new/white.gif differ diff --git a/gpack/travianx_v1/img/new/wood_border.png b/gpack/travianx_v1/img/new/wood_border.png new file mode 100644 index 00000000..697970e4 Binary files /dev/null and b/gpack/travianx_v1/img/new/wood_border.png differ diff --git a/gpack/travianx_v1/img/new/worldcup_background.png b/gpack/travianx_v1/img/new/worldcup_background.png new file mode 100644 index 00000000..83432687 Binary files /dev/null and b/gpack/travianx_v1/img/new/worldcup_background.png differ diff --git a/gpack/travianx_v1/img/p/Thumbs.db b/gpack/travianx_v1/img/p/Thumbs.db new file mode 100644 index 00000000..69dfc4b8 Binary files /dev/null and b/gpack/travianx_v1/img/p/Thumbs.db differ diff --git a/gpack/travianx_v1/img/p/attack_marker.gif b/gpack/travianx_v1/img/p/attack_marker.gif new file mode 100644 index 00000000..71a10984 Binary files /dev/null and b/gpack/travianx_v1/img/p/attack_marker.gif differ diff --git a/gpack/travianx_v1/img/p/bau0.jpg b/gpack/travianx_v1/img/p/bau0.jpg new file mode 100644 index 00000000..091a6457 Binary files /dev/null and b/gpack/travianx_v1/img/p/bau0.jpg differ diff --git a/gpack/travianx_v1/img/p/def10.jpg b/gpack/travianx_v1/img/p/def10.jpg new file mode 100644 index 00000000..15b8a644 Binary files /dev/null and b/gpack/travianx_v1/img/p/def10.jpg differ diff --git a/gpack/travianx_v1/img/p/npc.jpg b/gpack/travianx_v1/img/p/npc.jpg new file mode 100644 index 00000000..6be65475 Binary files /dev/null and b/gpack/travianx_v1/img/p/npc.jpg differ diff --git a/gpack/travianx_v1/img/p/off10.jpg b/gpack/travianx_v1/img/p/off10.jpg new file mode 100644 index 00000000..9d52bf40 Binary files /dev/null and b/gpack/travianx_v1/img/p/off10.jpg differ diff --git a/gpack/travianx_v1/img/p/p1_25.jpg b/gpack/travianx_v1/img/p/p1_25.jpg new file mode 100644 index 00000000..f2f87e11 Binary files /dev/null and b/gpack/travianx_v1/img/p/p1_25.jpg differ diff --git a/gpack/travianx_v1/img/p/p2_25.jpg b/gpack/travianx_v1/img/p/p2_25.jpg new file mode 100644 index 00000000..7acc6e5c Binary files /dev/null and b/gpack/travianx_v1/img/p/p2_25.jpg differ diff --git a/gpack/travianx_v1/img/p/p3_25.jpg b/gpack/travianx_v1/img/p/p3_25.jpg new file mode 100644 index 00000000..8a56fc13 Binary files /dev/null and b/gpack/travianx_v1/img/p/p3_25.jpg differ diff --git a/gpack/travianx_v1/img/p/p4_25.jpg b/gpack/travianx_v1/img/p/p4_25.jpg new file mode 100644 index 00000000..447ed779 Binary files /dev/null and b/gpack/travianx_v1/img/p/p4_25.jpg differ diff --git a/gpack/travianx_v1/img/q/Thumbs.db b/gpack/travianx_v1/img/q/Thumbs.db new file mode 100644 index 00000000..ea609858 Binary files /dev/null and b/gpack/travianx_v1/img/q/Thumbs.db differ diff --git a/gpack/travianx_v1/img/q/allres.jpg b/gpack/travianx_v1/img/q/allres.jpg new file mode 100644 index 00000000..aeada472 Binary files /dev/null and b/gpack/travianx_v1/img/q/allres.jpg differ diff --git a/gpack/travianx_v1/img/q/army.jpg b/gpack/travianx_v1/img/q/army.jpg new file mode 100644 index 00000000..8723b991 Binary files /dev/null and b/gpack/travianx_v1/img/q/army.jpg differ diff --git a/gpack/travianx_v1/img/q/barracks.jpg b/gpack/travianx_v1/img/q/barracks.jpg new file mode 100644 index 00000000..183c84bc Binary files /dev/null and b/gpack/travianx_v1/img/q/barracks.jpg differ diff --git a/gpack/travianx_v1/img/q/clay_iron.jpg b/gpack/travianx_v1/img/q/clay_iron.jpg new file mode 100644 index 00000000..93cf5ba9 Binary files /dev/null and b/gpack/travianx_v1/img/q/clay_iron.jpg differ diff --git a/gpack/travianx_v1/img/q/cost.jpg b/gpack/travianx_v1/img/q/cost.jpg new file mode 100644 index 00000000..a52b6382 Binary files /dev/null and b/gpack/travianx_v1/img/q/cost.jpg differ diff --git a/gpack/travianx_v1/img/q/farm.jpg b/gpack/travianx_v1/img/q/farm.jpg new file mode 100644 index 00000000..e215127d Binary files /dev/null and b/gpack/travianx_v1/img/q/farm.jpg differ diff --git a/gpack/travianx_v1/img/q/granary_rally.jpg b/gpack/travianx_v1/img/q/granary_rally.jpg new file mode 100644 index 00000000..7820994b Binary files /dev/null and b/gpack/travianx_v1/img/q/granary_rally.jpg differ diff --git a/gpack/travianx_v1/img/q/hide.jpg b/gpack/travianx_v1/img/q/hide.jpg new file mode 100644 index 00000000..4bc7d48e Binary files /dev/null and b/gpack/travianx_v1/img/q/hide.jpg differ diff --git a/gpack/travianx_v1/img/q/intro.jpg b/gpack/travianx_v1/img/q/intro.jpg new file mode 100644 index 00000000..46f8a0c0 Binary files /dev/null and b/gpack/travianx_v1/img/q/intro.jpg differ diff --git a/gpack/travianx_v1/img/q/l1.jpg b/gpack/travianx_v1/img/q/l1.jpg new file mode 100644 index 00000000..05a87836 Binary files /dev/null and b/gpack/travianx_v1/img/q/l1.jpg differ diff --git a/gpack/travianx_v1/img/q/l1g.jpg b/gpack/travianx_v1/img/q/l1g.jpg new file mode 100644 index 00000000..ce9eca3d Binary files /dev/null and b/gpack/travianx_v1/img/q/l1g.jpg differ diff --git a/gpack/travianx_v1/img/q/l2.jpg b/gpack/travianx_v1/img/q/l2.jpg new file mode 100644 index 00000000..adfc12a8 Binary files /dev/null and b/gpack/travianx_v1/img/q/l2.jpg differ diff --git a/gpack/travianx_v1/img/q/l2g.jpg b/gpack/travianx_v1/img/q/l2g.jpg new file mode 100644 index 00000000..0c05eedd Binary files /dev/null and b/gpack/travianx_v1/img/q/l2g.jpg differ diff --git a/gpack/travianx_v1/img/q/l3.jpg b/gpack/travianx_v1/img/q/l3.jpg new file mode 100644 index 00000000..cb8e4882 Binary files /dev/null and b/gpack/travianx_v1/img/q/l3.jpg differ diff --git a/gpack/travianx_v1/img/q/l3g.jpg b/gpack/travianx_v1/img/q/l3g.jpg new file mode 100644 index 00000000..afcef5d5 Binary files /dev/null and b/gpack/travianx_v1/img/q/l3g.jpg differ diff --git a/gpack/travianx_v1/img/q/main.jpg b/gpack/travianx_v1/img/q/main.jpg new file mode 100644 index 00000000..a9d047f4 Binary files /dev/null and b/gpack/travianx_v1/img/q/main.jpg differ diff --git a/gpack/travianx_v1/img/q/market.jpg b/gpack/travianx_v1/img/q/market.jpg new file mode 100644 index 00000000..d9b68ef9 Binary files /dev/null and b/gpack/travianx_v1/img/q/market.jpg differ diff --git a/gpack/travianx_v1/img/q/medal.jpg b/gpack/travianx_v1/img/q/medal.jpg new file mode 100644 index 00000000..664764a4 Binary files /dev/null and b/gpack/travianx_v1/img/q/medal.jpg differ diff --git a/gpack/travianx_v1/img/q/msg.jpg b/gpack/travianx_v1/img/q/msg.jpg new file mode 100644 index 00000000..1fc8fcae Binary files /dev/null and b/gpack/travianx_v1/img/q/msg.jpg differ diff --git a/gpack/travianx_v1/img/q/neighbour.jpg b/gpack/travianx_v1/img/q/neighbour.jpg new file mode 100644 index 00000000..7267febe Binary files /dev/null and b/gpack/travianx_v1/img/q/neighbour.jpg differ diff --git a/gpack/travianx_v1/img/q/new_village.jpg b/gpack/travianx_v1/img/q/new_village.jpg new file mode 100644 index 00000000..1f01b973 Binary files /dev/null and b/gpack/travianx_v1/img/q/new_village.jpg differ diff --git a/gpack/travianx_v1/img/q/rank.jpg b/gpack/travianx_v1/img/q/rank.jpg new file mode 100644 index 00000000..92704b4a Binary files /dev/null and b/gpack/travianx_v1/img/q/rank.jpg differ diff --git a/gpack/travianx_v1/img/q/units.jpg b/gpack/travianx_v1/img/q/units.jpg new file mode 100644 index 00000000..e240ff25 Binary files /dev/null and b/gpack/travianx_v1/img/q/units.jpg differ diff --git a/gpack/travianx_v1/img/q/village_name.jpg b/gpack/travianx_v1/img/q/village_name.jpg new file mode 100644 index 00000000..db957761 Binary files /dev/null and b/gpack/travianx_v1/img/q/village_name.jpg differ diff --git a/gpack/travianx_v1/img/q/warehouse.jpg b/gpack/travianx_v1/img/q/warehouse.jpg new file mode 100644 index 00000000..7d4f8159 Binary files /dev/null and b/gpack/travianx_v1/img/q/warehouse.jpg differ diff --git a/gpack/travianx_v1/img/q/wood.jpg b/gpack/travianx_v1/img/q/wood.jpg new file mode 100644 index 00000000..45915b01 Binary files /dev/null and b/gpack/travianx_v1/img/q/wood.jpg differ diff --git a/gpack/travianx_v1/img/r/1.gif b/gpack/travianx_v1/img/r/1.gif new file mode 100644 index 00000000..4513be5d Binary files /dev/null and b/gpack/travianx_v1/img/r/1.gif differ diff --git a/gpack/travianx_v1/img/r/2.gif b/gpack/travianx_v1/img/r/2.gif new file mode 100644 index 00000000..f3c046aa Binary files /dev/null and b/gpack/travianx_v1/img/r/2.gif differ diff --git a/gpack/travianx_v1/img/r/3.gif b/gpack/travianx_v1/img/r/3.gif new file mode 100644 index 00000000..657b42c0 Binary files /dev/null and b/gpack/travianx_v1/img/r/3.gif differ diff --git a/gpack/travianx_v1/img/r/4.gif b/gpack/travianx_v1/img/r/4.gif new file mode 100644 index 00000000..c13bc3c4 Binary files /dev/null and b/gpack/travianx_v1/img/r/4.gif differ diff --git a/gpack/travianx_v1/img/r/4b.gif b/gpack/travianx_v1/img/r/4b.gif new file mode 100644 index 00000000..a08e829c Binary files /dev/null and b/gpack/travianx_v1/img/r/4b.gif differ diff --git a/gpack/travianx_v1/img/r/5.gif b/gpack/travianx_v1/img/r/5.gif new file mode 100644 index 00000000..02d2635f Binary files /dev/null and b/gpack/travianx_v1/img/r/5.gif differ diff --git a/gpack/travianx_v1/img/r/5b.gif b/gpack/travianx_v1/img/r/5b.gif new file mode 100644 index 00000000..516c5c8f Binary files /dev/null and b/gpack/travianx_v1/img/r/5b.gif differ diff --git a/gpack/travianx_v1/img/r/6.gif b/gpack/travianx_v1/img/r/6.gif new file mode 100644 index 00000000..cf45c1cf Binary files /dev/null and b/gpack/travianx_v1/img/r/6.gif differ diff --git a/gpack/travianx_v1/img/r/7.gif b/gpack/travianx_v1/img/r/7.gif new file mode 100644 index 00000000..cf45c1cf Binary files /dev/null and b/gpack/travianx_v1/img/r/7.gif differ diff --git a/gpack/travianx_v1/img/r/Thumbs.db b/gpack/travianx_v1/img/r/Thumbs.db new file mode 100644 index 00000000..04f30c46 Binary files /dev/null and b/gpack/travianx_v1/img/r/Thumbs.db differ diff --git a/gpack/travianx_v1/img/r/easter.gif b/gpack/travianx_v1/img/r/easter.gif new file mode 100644 index 00000000..fd6d6120 Binary files /dev/null and b/gpack/travianx_v1/img/r/easter.gif differ diff --git a/gpack/travianx_v1/img/r/newy.gif b/gpack/travianx_v1/img/r/newy.gif new file mode 100644 index 00000000..145d1bca Binary files /dev/null and b/gpack/travianx_v1/img/r/newy.gif differ diff --git a/gpack/travianx_v1/img/r/xmas.gif b/gpack/travianx_v1/img/r/xmas.gif new file mode 100644 index 00000000..5ede0dd1 Binary files /dev/null and b/gpack/travianx_v1/img/r/xmas.gif differ diff --git a/gpack/travianx_v1/img/s/Thumbs.db b/gpack/travianx_v1/img/s/Thumbs.db new file mode 100644 index 00000000..4ba10c2a Binary files /dev/null and b/gpack/travianx_v1/img/s/Thumbs.db differ diff --git a/gpack/travianx_v1/img/s/def.gif b/gpack/travianx_v1/img/s/def.gif new file mode 100644 index 00000000..5a2b12ac Binary files /dev/null and b/gpack/travianx_v1/img/s/def.gif differ diff --git a/gpack/travianx_v1/img/s/off.gif b/gpack/travianx_v1/img/s/off.gif new file mode 100644 index 00000000..f8053850 Binary files /dev/null and b/gpack/travianx_v1/img/s/off.gif differ diff --git a/gpack/travianx_v1/img/s/top10.gif b/gpack/travianx_v1/img/s/top10.gif new file mode 100644 index 00000000..46f6f337 Binary files /dev/null and b/gpack/travianx_v1/img/s/top10.gif differ diff --git a/gpack/travianx_v1/img/special/NewyearRocket_dark_1a.gif b/gpack/travianx_v1/img/special/NewyearRocket_dark_1a.gif new file mode 100644 index 00000000..4ec136dc Binary files /dev/null and b/gpack/travianx_v1/img/special/NewyearRocket_dark_1a.gif differ diff --git a/gpack/travianx_v1/img/special/NewyearRocket_green_1a.gif b/gpack/travianx_v1/img/special/NewyearRocket_green_1a.gif new file mode 100644 index 00000000..1b9a1ed6 Binary files /dev/null and b/gpack/travianx_v1/img/special/NewyearRocket_green_1a.gif differ diff --git a/gpack/travianx_v1/img/special/NewyearRocket_orange_1a.gif b/gpack/travianx_v1/img/special/NewyearRocket_orange_1a.gif new file mode 100644 index 00000000..6c081417 Binary files /dev/null and b/gpack/travianx_v1/img/special/NewyearRocket_orange_1a.gif differ diff --git a/gpack/travianx_v1/img/special/NewyearRocket_purple_1a.gif b/gpack/travianx_v1/img/special/NewyearRocket_purple_1a.gif new file mode 100644 index 00000000..215864f5 Binary files /dev/null and b/gpack/travianx_v1/img/special/NewyearRocket_purple_1a.gif differ diff --git a/gpack/travianx_v1/img/special/NewyearRocket_red_1a.gif b/gpack/travianx_v1/img/special/NewyearRocket_red_1a.gif new file mode 100644 index 00000000..9a768511 Binary files /dev/null and b/gpack/travianx_v1/img/special/NewyearRocket_red_1a.gif differ diff --git a/gpack/travianx_v1/img/special/NewyearRocket_turquoise_1a.gif b/gpack/travianx_v1/img/special/NewyearRocket_turquoise_1a.gif new file mode 100644 index 00000000..f3377290 Binary files /dev/null and b/gpack/travianx_v1/img/special/NewyearRocket_turquoise_1a.gif differ diff --git a/gpack/travianx_v1/img/special/NewyearRocket_yellow_1a.gif b/gpack/travianx_v1/img/special/NewyearRocket_yellow_1a.gif new file mode 100644 index 00000000..959c711c Binary files /dev/null and b/gpack/travianx_v1/img/special/NewyearRocket_yellow_1a.gif differ diff --git a/gpack/travianx_v1/img/special/Thumbs.db b/gpack/travianx_v1/img/special/Thumbs.db new file mode 100644 index 00000000..c50b3595 Binary files /dev/null and b/gpack/travianx_v1/img/special/Thumbs.db differ diff --git a/gpack/travianx_v1/img/t/Thumbs.db b/gpack/travianx_v1/img/t/Thumbs.db new file mode 100644 index 00000000..2326f092 Binary files /dev/null and b/gpack/travianx_v1/img/t/Thumbs.db differ diff --git a/gpack/travianx_v1/img/t/a1_1.jpg b/gpack/travianx_v1/img/t/a1_1.jpg new file mode 100644 index 00000000..8fbdc944 Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_1.jpg differ diff --git a/gpack/travianx_v1/img/t/a1_10.jpg b/gpack/travianx_v1/img/t/a1_10.jpg new file mode 100644 index 00000000..9b925863 Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_10.jpg differ diff --git a/gpack/travianx_v1/img/t/a1_2.jpg b/gpack/travianx_v1/img/t/a1_2.jpg new file mode 100644 index 00000000..4c034256 Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_2.jpg differ diff --git a/gpack/travianx_v1/img/t/a1_3.jpg b/gpack/travianx_v1/img/t/a1_3.jpg new file mode 100644 index 00000000..3a34e7e7 Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_3.jpg differ diff --git a/gpack/travianx_v1/img/t/a1_4.jpg b/gpack/travianx_v1/img/t/a1_4.jpg new file mode 100644 index 00000000..ac16d2f9 Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_4.jpg differ diff --git a/gpack/travianx_v1/img/t/a1_5.jpg b/gpack/travianx_v1/img/t/a1_5.jpg new file mode 100644 index 00000000..834c8b2a Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_5.jpg differ diff --git a/gpack/travianx_v1/img/t/a1_6.jpg b/gpack/travianx_v1/img/t/a1_6.jpg new file mode 100644 index 00000000..d556a9c4 Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_6.jpg differ diff --git a/gpack/travianx_v1/img/t/a1_7.jpg b/gpack/travianx_v1/img/t/a1_7.jpg new file mode 100644 index 00000000..d10bf7e8 Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_7.jpg differ diff --git a/gpack/travianx_v1/img/t/a1_8.jpg b/gpack/travianx_v1/img/t/a1_8.jpg new file mode 100644 index 00000000..f2eefbd6 Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_8.jpg differ diff --git a/gpack/travianx_v1/img/t/a1_9.jpg b/gpack/travianx_v1/img/t/a1_9.jpg new file mode 100644 index 00000000..87fef81b Binary files /dev/null and b/gpack/travianx_v1/img/t/a1_9.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_1.jpg b/gpack/travianx_v1/img/t/a2_1.jpg new file mode 100644 index 00000000..1c33ee0f Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_1.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_10.jpg b/gpack/travianx_v1/img/t/a2_10.jpg new file mode 100644 index 00000000..b7c6168f Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_10.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_2.jpg b/gpack/travianx_v1/img/t/a2_2.jpg new file mode 100644 index 00000000..a20b9a75 Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_2.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_3.jpg b/gpack/travianx_v1/img/t/a2_3.jpg new file mode 100644 index 00000000..a2d4b45c Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_3.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_4.jpg b/gpack/travianx_v1/img/t/a2_4.jpg new file mode 100644 index 00000000..811e5860 Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_4.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_5.jpg b/gpack/travianx_v1/img/t/a2_5.jpg new file mode 100644 index 00000000..f116163a Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_5.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_6.jpg b/gpack/travianx_v1/img/t/a2_6.jpg new file mode 100644 index 00000000..66f8a167 Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_6.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_7.jpg b/gpack/travianx_v1/img/t/a2_7.jpg new file mode 100644 index 00000000..5ee666c9 Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_7.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_8.jpg b/gpack/travianx_v1/img/t/a2_8.jpg new file mode 100644 index 00000000..9af1bc16 Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_8.jpg differ diff --git a/gpack/travianx_v1/img/t/a2_9.jpg b/gpack/travianx_v1/img/t/a2_9.jpg new file mode 100644 index 00000000..da8b69aa Binary files /dev/null and b/gpack/travianx_v1/img/t/a2_9.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_1.jpg b/gpack/travianx_v1/img/t/a3_1.jpg new file mode 100644 index 00000000..422040e1 Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_1.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_10.jpg b/gpack/travianx_v1/img/t/a3_10.jpg new file mode 100644 index 00000000..1abebe6a Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_10.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_2.jpg b/gpack/travianx_v1/img/t/a3_2.jpg new file mode 100644 index 00000000..2719a03a Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_2.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_3.jpg b/gpack/travianx_v1/img/t/a3_3.jpg new file mode 100644 index 00000000..d358341f Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_3.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_4.jpg b/gpack/travianx_v1/img/t/a3_4.jpg new file mode 100644 index 00000000..fd8172c6 Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_4.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_5.jpg b/gpack/travianx_v1/img/t/a3_5.jpg new file mode 100644 index 00000000..eba8c885 Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_5.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_6.jpg b/gpack/travianx_v1/img/t/a3_6.jpg new file mode 100644 index 00000000..2d791b2e Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_6.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_7.jpg b/gpack/travianx_v1/img/t/a3_7.jpg new file mode 100644 index 00000000..d5089faa Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_7.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_8.jpg b/gpack/travianx_v1/img/t/a3_8.jpg new file mode 100644 index 00000000..e19418a7 Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_8.jpg differ diff --git a/gpack/travianx_v1/img/t/a3_9.jpg b/gpack/travianx_v1/img/t/a3_9.jpg new file mode 100644 index 00000000..c65e263f Binary files /dev/null and b/gpack/travianx_v1/img/t/a3_9.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_1.jpg b/gpack/travianx_v1/img/t/a4_1.jpg new file mode 100644 index 00000000..102ace33 Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_1.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_10.jpg b/gpack/travianx_v1/img/t/a4_10.jpg new file mode 100644 index 00000000..e8c28d45 Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_10.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_2.jpg b/gpack/travianx_v1/img/t/a4_2.jpg new file mode 100644 index 00000000..b0099d75 Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_2.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_3.jpg b/gpack/travianx_v1/img/t/a4_3.jpg new file mode 100644 index 00000000..b667b8be Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_3.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_4.jpg b/gpack/travianx_v1/img/t/a4_4.jpg new file mode 100644 index 00000000..de564994 Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_4.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_5.jpg b/gpack/travianx_v1/img/t/a4_5.jpg new file mode 100644 index 00000000..632c78ed Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_5.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_6.jpg b/gpack/travianx_v1/img/t/a4_6.jpg new file mode 100644 index 00000000..3c880e85 Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_6.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_7.jpg b/gpack/travianx_v1/img/t/a4_7.jpg new file mode 100644 index 00000000..d42a3edc Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_7.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_8.jpg b/gpack/travianx_v1/img/t/a4_8.jpg new file mode 100644 index 00000000..f9a676d7 Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_8.jpg differ diff --git a/gpack/travianx_v1/img/t/a4_9.jpg b/gpack/travianx_v1/img/t/a4_9.jpg new file mode 100644 index 00000000..446fe9d7 Binary files /dev/null and b/gpack/travianx_v1/img/t/a4_9.jpg differ diff --git a/gpack/travianx_v1/img/t/t100_1.jpg b/gpack/travianx_v1/img/t/t100_1.jpg new file mode 100644 index 00000000..d01f7473 Binary files /dev/null and b/gpack/travianx_v1/img/t/t100_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t101_1.jpg b/gpack/travianx_v1/img/t/t101_1.jpg new file mode 100644 index 00000000..48f563f3 Binary files /dev/null and b/gpack/travianx_v1/img/t/t101_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t102_1.jpg b/gpack/travianx_v1/img/t/t102_1.jpg new file mode 100644 index 00000000..d04729e0 Binary files /dev/null and b/gpack/travianx_v1/img/t/t102_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t10_1.jpg b/gpack/travianx_v1/img/t/t10_1.jpg new file mode 100644 index 00000000..6df932ef Binary files /dev/null and b/gpack/travianx_v1/img/t/t10_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t10_2.jpg b/gpack/travianx_v1/img/t/t10_2.jpg new file mode 100644 index 00000000..ae0faf1d Binary files /dev/null and b/gpack/travianx_v1/img/t/t10_2.jpg differ diff --git a/gpack/travianx_v1/img/t/t110_1.jpg b/gpack/travianx_v1/img/t/t110_1.jpg new file mode 100644 index 00000000..e6941bb4 Binary files /dev/null and b/gpack/travianx_v1/img/t/t110_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t111_1.jpg b/gpack/travianx_v1/img/t/t111_1.jpg new file mode 100644 index 00000000..c37c0dcd Binary files /dev/null and b/gpack/travianx_v1/img/t/t111_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t112_1.jpg b/gpack/travianx_v1/img/t/t112_1.jpg new file mode 100644 index 00000000..4797a1e6 Binary files /dev/null and b/gpack/travianx_v1/img/t/t112_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t120_1.jpg b/gpack/travianx_v1/img/t/t120_1.jpg new file mode 100644 index 00000000..9da7cc6c Binary files /dev/null and b/gpack/travianx_v1/img/t/t120_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t121_1.jpg b/gpack/travianx_v1/img/t/t121_1.jpg new file mode 100644 index 00000000..d35a45aa Binary files /dev/null and b/gpack/travianx_v1/img/t/t121_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t122_1.jpg b/gpack/travianx_v1/img/t/t122_1.jpg new file mode 100644 index 00000000..3733eb61 Binary files /dev/null and b/gpack/travianx_v1/img/t/t122_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t130_1.jpg b/gpack/travianx_v1/img/t/t130_1.jpg new file mode 100644 index 00000000..6096a479 Binary files /dev/null and b/gpack/travianx_v1/img/t/t130_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t131_1.jpg b/gpack/travianx_v1/img/t/t131_1.jpg new file mode 100644 index 00000000..bb7e833b Binary files /dev/null and b/gpack/travianx_v1/img/t/t131_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t132_1.jpg b/gpack/travianx_v1/img/t/t132_1.jpg new file mode 100644 index 00000000..08dca00c Binary files /dev/null and b/gpack/travianx_v1/img/t/t132_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t140_1.jpg b/gpack/travianx_v1/img/t/t140_1.jpg new file mode 100644 index 00000000..35456ba1 Binary files /dev/null and b/gpack/travianx_v1/img/t/t140_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t141_1.jpg b/gpack/travianx_v1/img/t/t141_1.jpg new file mode 100644 index 00000000..9771e772 Binary files /dev/null and b/gpack/travianx_v1/img/t/t141_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t142_1.jpg b/gpack/travianx_v1/img/t/t142_1.jpg new file mode 100644 index 00000000..b0dd21f3 Binary files /dev/null and b/gpack/travianx_v1/img/t/t142_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t150_1.jpg b/gpack/travianx_v1/img/t/t150_1.jpg new file mode 100644 index 00000000..ce60e233 Binary files /dev/null and b/gpack/travianx_v1/img/t/t150_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t151_1.jpg b/gpack/travianx_v1/img/t/t151_1.jpg new file mode 100644 index 00000000..746057e1 Binary files /dev/null and b/gpack/travianx_v1/img/t/t151_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t152_1.jpg b/gpack/travianx_v1/img/t/t152_1.jpg new file mode 100644 index 00000000..61576a53 Binary files /dev/null and b/gpack/travianx_v1/img/t/t152_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t160_1.jpg b/gpack/travianx_v1/img/t/t160_1.jpg new file mode 100644 index 00000000..1a209c75 Binary files /dev/null and b/gpack/travianx_v1/img/t/t160_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t161_1.jpg b/gpack/travianx_v1/img/t/t161_1.jpg new file mode 100644 index 00000000..63c81b7e Binary files /dev/null and b/gpack/travianx_v1/img/t/t161_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t162_1.jpg b/gpack/travianx_v1/img/t/t162_1.jpg new file mode 100644 index 00000000..cf68805a Binary files /dev/null and b/gpack/travianx_v1/img/t/t162_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t170_1.jpg b/gpack/travianx_v1/img/t/t170_1.jpg new file mode 100644 index 00000000..d2912d16 Binary files /dev/null and b/gpack/travianx_v1/img/t/t170_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t171_1.jpg b/gpack/travianx_v1/img/t/t171_1.jpg new file mode 100644 index 00000000..cc2c018d Binary files /dev/null and b/gpack/travianx_v1/img/t/t171_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t172_1.jpg b/gpack/travianx_v1/img/t/t172_1.jpg new file mode 100644 index 00000000..c84d7c79 Binary files /dev/null and b/gpack/travianx_v1/img/t/t172_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t180_1.jpg b/gpack/travianx_v1/img/t/t180_1.jpg new file mode 100644 index 00000000..26a13e53 Binary files /dev/null and b/gpack/travianx_v1/img/t/t180_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t181_1.jpg b/gpack/travianx_v1/img/t/t181_1.jpg new file mode 100644 index 00000000..506f02eb Binary files /dev/null and b/gpack/travianx_v1/img/t/t181_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t182_1.jpg b/gpack/travianx_v1/img/t/t182_1.jpg new file mode 100644 index 00000000..84b8582b Binary files /dev/null and b/gpack/travianx_v1/img/t/t182_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t190_1.jpg b/gpack/travianx_v1/img/t/t190_1.jpg new file mode 100644 index 00000000..5804cd1e Binary files /dev/null and b/gpack/travianx_v1/img/t/t190_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t191_1.jpg b/gpack/travianx_v1/img/t/t191_1.jpg new file mode 100644 index 00000000..9e87e8b5 Binary files /dev/null and b/gpack/travianx_v1/img/t/t191_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t192_1.jpg b/gpack/travianx_v1/img/t/t192_1.jpg new file mode 100644 index 00000000..48e9a2b0 Binary files /dev/null and b/gpack/travianx_v1/img/t/t192_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_1.jpg b/gpack/travianx_v1/img/t/t1_1.jpg new file mode 100644 index 00000000..53e09ec6 Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_10.jpg b/gpack/travianx_v1/img/t/t1_10.jpg new file mode 100644 index 00000000..82a37e15 Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_10.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_2.jpg b/gpack/travianx_v1/img/t/t1_2.jpg new file mode 100644 index 00000000..9dd1ed1a Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_2.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_3.jpg b/gpack/travianx_v1/img/t/t1_3.jpg new file mode 100644 index 00000000..7b7b4499 Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_3.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_4.jpg b/gpack/travianx_v1/img/t/t1_4.jpg new file mode 100644 index 00000000..9392805a Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_4.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_5.jpg b/gpack/travianx_v1/img/t/t1_5.jpg new file mode 100644 index 00000000..0904bac1 Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_5.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_6.jpg b/gpack/travianx_v1/img/t/t1_6.jpg new file mode 100644 index 00000000..09b0cb6a Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_6.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_7.jpg b/gpack/travianx_v1/img/t/t1_7.jpg new file mode 100644 index 00000000..176890b3 Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_7.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_8.jpg b/gpack/travianx_v1/img/t/t1_8.jpg new file mode 100644 index 00000000..5ace2435 Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_8.jpg differ diff --git a/gpack/travianx_v1/img/t/t1_9.jpg b/gpack/travianx_v1/img/t/t1_9.jpg new file mode 100644 index 00000000..e4d17ad1 Binary files /dev/null and b/gpack/travianx_v1/img/t/t1_9.jpg differ diff --git a/gpack/travianx_v1/img/t/t200_1.jpg b/gpack/travianx_v1/img/t/t200_1.jpg new file mode 100644 index 00000000..8a094c95 Binary files /dev/null and b/gpack/travianx_v1/img/t/t200_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t201_1.jpg b/gpack/travianx_v1/img/t/t201_1.jpg new file mode 100644 index 00000000..a123f18f Binary files /dev/null and b/gpack/travianx_v1/img/t/t201_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t202_1.jpg b/gpack/travianx_v1/img/t/t202_1.jpg new file mode 100644 index 00000000..d2d5d710 Binary files /dev/null and b/gpack/travianx_v1/img/t/t202_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t210_1.jpg b/gpack/travianx_v1/img/t/t210_1.jpg new file mode 100644 index 00000000..cebec4aa Binary files /dev/null and b/gpack/travianx_v1/img/t/t210_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t211_1.jpg b/gpack/travianx_v1/img/t/t211_1.jpg new file mode 100644 index 00000000..fbba206b Binary files /dev/null and b/gpack/travianx_v1/img/t/t211_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t212_1.jpg b/gpack/travianx_v1/img/t/t212_1.jpg new file mode 100644 index 00000000..88bedd3b Binary files /dev/null and b/gpack/travianx_v1/img/t/t212_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t220_1.jpg b/gpack/travianx_v1/img/t/t220_1.jpg new file mode 100644 index 00000000..2f579bea Binary files /dev/null and b/gpack/travianx_v1/img/t/t220_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t221_1.jpg b/gpack/travianx_v1/img/t/t221_1.jpg new file mode 100644 index 00000000..f78ba188 Binary files /dev/null and b/gpack/travianx_v1/img/t/t221_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t222_1.jpg b/gpack/travianx_v1/img/t/t222_1.jpg new file mode 100644 index 00000000..a3c07b3d Binary files /dev/null and b/gpack/travianx_v1/img/t/t222_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_1.jpg b/gpack/travianx_v1/img/t/t2_1.jpg new file mode 100644 index 00000000..e9e13462 Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_10.jpg b/gpack/travianx_v1/img/t/t2_10.jpg new file mode 100644 index 00000000..6e77a5cb Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_10.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_2.jpg b/gpack/travianx_v1/img/t/t2_2.jpg new file mode 100644 index 00000000..56d2d5ac Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_2.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_3.jpg b/gpack/travianx_v1/img/t/t2_3.jpg new file mode 100644 index 00000000..3408b474 Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_3.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_4.jpg b/gpack/travianx_v1/img/t/t2_4.jpg new file mode 100644 index 00000000..4eaa5d13 Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_4.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_5.jpg b/gpack/travianx_v1/img/t/t2_5.jpg new file mode 100644 index 00000000..1dd07c59 Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_5.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_6.jpg b/gpack/travianx_v1/img/t/t2_6.jpg new file mode 100644 index 00000000..88295661 Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_6.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_7.jpg b/gpack/travianx_v1/img/t/t2_7.jpg new file mode 100644 index 00000000..6f0463f8 Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_7.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_8.jpg b/gpack/travianx_v1/img/t/t2_8.jpg new file mode 100644 index 00000000..23750faa Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_8.jpg differ diff --git a/gpack/travianx_v1/img/t/t2_9.jpg b/gpack/travianx_v1/img/t/t2_9.jpg new file mode 100644 index 00000000..79af89cf Binary files /dev/null and b/gpack/travianx_v1/img/t/t2_9.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_1.jpg b/gpack/travianx_v1/img/t/t3_1.jpg new file mode 100644 index 00000000..d8c9d0aa Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_10.jpg b/gpack/travianx_v1/img/t/t3_10.jpg new file mode 100644 index 00000000..68484fdd Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_10.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_2.jpg b/gpack/travianx_v1/img/t/t3_2.jpg new file mode 100644 index 00000000..861d46f6 Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_2.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_3.jpg b/gpack/travianx_v1/img/t/t3_3.jpg new file mode 100644 index 00000000..4a6dcb65 Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_3.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_4.jpg b/gpack/travianx_v1/img/t/t3_4.jpg new file mode 100644 index 00000000..6fdea75a Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_4.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_5.jpg b/gpack/travianx_v1/img/t/t3_5.jpg new file mode 100644 index 00000000..9f07c692 Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_5.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_6.jpg b/gpack/travianx_v1/img/t/t3_6.jpg new file mode 100644 index 00000000..136283cd Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_6.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_7.jpg b/gpack/travianx_v1/img/t/t3_7.jpg new file mode 100644 index 00000000..abaa632b Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_7.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_8.jpg b/gpack/travianx_v1/img/t/t3_8.jpg new file mode 100644 index 00000000..e4095176 Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_8.jpg differ diff --git a/gpack/travianx_v1/img/t/t3_9.jpg b/gpack/travianx_v1/img/t/t3_9.jpg new file mode 100644 index 00000000..3c5bd2c1 Binary files /dev/null and b/gpack/travianx_v1/img/t/t3_9.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_1.jpg b/gpack/travianx_v1/img/t/t4_1.jpg new file mode 100644 index 00000000..57f10535 Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_10.jpg b/gpack/travianx_v1/img/t/t4_10.jpg new file mode 100644 index 00000000..993067ad Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_10.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_2.jpg b/gpack/travianx_v1/img/t/t4_2.jpg new file mode 100644 index 00000000..e000cbca Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_2.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_3.jpg b/gpack/travianx_v1/img/t/t4_3.jpg new file mode 100644 index 00000000..7b62df5a Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_3.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_4.jpg b/gpack/travianx_v1/img/t/t4_4.jpg new file mode 100644 index 00000000..ed7e2fd6 Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_4.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_5.jpg b/gpack/travianx_v1/img/t/t4_5.jpg new file mode 100644 index 00000000..fbf72632 Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_5.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_6.jpg b/gpack/travianx_v1/img/t/t4_6.jpg new file mode 100644 index 00000000..a18c11e4 Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_6.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_7.jpg b/gpack/travianx_v1/img/t/t4_7.jpg new file mode 100644 index 00000000..67b42448 Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_7.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_8.jpg b/gpack/travianx_v1/img/t/t4_8.jpg new file mode 100644 index 00000000..b84bea64 Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_8.jpg differ diff --git a/gpack/travianx_v1/img/t/t4_9.jpg b/gpack/travianx_v1/img/t/t4_9.jpg new file mode 100644 index 00000000..f85fc9db Binary files /dev/null and b/gpack/travianx_v1/img/t/t4_9.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_1.jpg b/gpack/travianx_v1/img/t/t5_1.jpg new file mode 100644 index 00000000..0de293c7 Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_10.jpg b/gpack/travianx_v1/img/t/t5_10.jpg new file mode 100644 index 00000000..6d3ca5db Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_10.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_2.jpg b/gpack/travianx_v1/img/t/t5_2.jpg new file mode 100644 index 00000000..4c7c4dbe Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_2.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_3.jpg b/gpack/travianx_v1/img/t/t5_3.jpg new file mode 100644 index 00000000..df35b10f Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_3.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_4.jpg b/gpack/travianx_v1/img/t/t5_4.jpg new file mode 100644 index 00000000..509fe073 Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_4.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_5.jpg b/gpack/travianx_v1/img/t/t5_5.jpg new file mode 100644 index 00000000..2beec63e Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_5.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_6.jpg b/gpack/travianx_v1/img/t/t5_6.jpg new file mode 100644 index 00000000..91b9eea6 Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_6.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_7.jpg b/gpack/travianx_v1/img/t/t5_7.jpg new file mode 100644 index 00000000..3ed3f2be Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_7.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_8.jpg b/gpack/travianx_v1/img/t/t5_8.jpg new file mode 100644 index 00000000..4f9d37d8 Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_8.jpg differ diff --git a/gpack/travianx_v1/img/t/t5_9.jpg b/gpack/travianx_v1/img/t/t5_9.jpg new file mode 100644 index 00000000..6fc72d08 Binary files /dev/null and b/gpack/travianx_v1/img/t/t5_9.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_1.jpg b/gpack/travianx_v1/img/t/t6_1.jpg new file mode 100644 index 00000000..a37270ce Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_1.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_1.png b/gpack/travianx_v1/img/t/t6_1.png new file mode 100644 index 00000000..896b9914 Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_1.png differ diff --git a/gpack/travianx_v1/img/t/t6_10.jpg b/gpack/travianx_v1/img/t/t6_10.jpg new file mode 100644 index 00000000..2dd3153b Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_10.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_2.jpg b/gpack/travianx_v1/img/t/t6_2.jpg new file mode 100644 index 00000000..1942d041 Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_2.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_3.jpg b/gpack/travianx_v1/img/t/t6_3.jpg new file mode 100644 index 00000000..4634fac1 Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_3.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_4.jpg b/gpack/travianx_v1/img/t/t6_4.jpg new file mode 100644 index 00000000..1fdbc6bf Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_4.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_5.jpg b/gpack/travianx_v1/img/t/t6_5.jpg new file mode 100644 index 00000000..89ab9280 Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_5.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_6.jpg b/gpack/travianx_v1/img/t/t6_6.jpg new file mode 100644 index 00000000..bcc0dd4f Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_6.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_7.jpg b/gpack/travianx_v1/img/t/t6_7.jpg new file mode 100644 index 00000000..005a607a Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_7.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_8.jpg b/gpack/travianx_v1/img/t/t6_8.jpg new file mode 100644 index 00000000..a9ab1d04 Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_8.jpg differ diff --git a/gpack/travianx_v1/img/t/t6_9.jpg b/gpack/travianx_v1/img/t/t6_9.jpg new file mode 100644 index 00000000..73b4cf86 Binary files /dev/null and b/gpack/travianx_v1/img/t/t6_9.jpg differ diff --git a/gpack/travianx_v1/img/t/tn.gif b/gpack/travianx_v1/img/t/tn.gif new file mode 100644 index 00000000..95b985ce Binary files /dev/null and b/gpack/travianx_v1/img/t/tn.gif differ diff --git a/gpack/travianx_v1/img/t/tnd.gif b/gpack/travianx_v1/img/t/tnd.gif new file mode 100644 index 00000000..441a30bd Binary files /dev/null and b/gpack/travianx_v1/img/t/tnd.gif differ diff --git a/gpack/travianx_v1/img/u/1.gif b/gpack/travianx_v1/img/u/1.gif new file mode 100644 index 00000000..2bef584e Binary files /dev/null and b/gpack/travianx_v1/img/u/1.gif differ diff --git a/gpack/travianx_v1/img/u/10.gif b/gpack/travianx_v1/img/u/10.gif new file mode 100644 index 00000000..39b4a796 Binary files /dev/null and b/gpack/travianx_v1/img/u/10.gif differ diff --git a/gpack/travianx_v1/img/u/11.gif b/gpack/travianx_v1/img/u/11.gif new file mode 100644 index 00000000..868e1b9a Binary files /dev/null and b/gpack/travianx_v1/img/u/11.gif differ diff --git a/gpack/travianx_v1/img/u/12.gif b/gpack/travianx_v1/img/u/12.gif new file mode 100644 index 00000000..51be68e2 Binary files /dev/null and b/gpack/travianx_v1/img/u/12.gif differ diff --git a/gpack/travianx_v1/img/u/13.gif b/gpack/travianx_v1/img/u/13.gif new file mode 100644 index 00000000..d49b48ee Binary files /dev/null and b/gpack/travianx_v1/img/u/13.gif differ diff --git a/gpack/travianx_v1/img/u/14.gif b/gpack/travianx_v1/img/u/14.gif new file mode 100644 index 00000000..ba9a0727 Binary files /dev/null and b/gpack/travianx_v1/img/u/14.gif differ diff --git a/gpack/travianx_v1/img/u/15.gif b/gpack/travianx_v1/img/u/15.gif new file mode 100644 index 00000000..c9717c6f Binary files /dev/null and b/gpack/travianx_v1/img/u/15.gif differ diff --git a/gpack/travianx_v1/img/u/16.gif b/gpack/travianx_v1/img/u/16.gif new file mode 100644 index 00000000..239dbedb Binary files /dev/null and b/gpack/travianx_v1/img/u/16.gif differ diff --git a/gpack/travianx_v1/img/u/17.gif b/gpack/travianx_v1/img/u/17.gif new file mode 100644 index 00000000..0044e2e0 Binary files /dev/null and b/gpack/travianx_v1/img/u/17.gif differ diff --git a/gpack/travianx_v1/img/u/18.gif b/gpack/travianx_v1/img/u/18.gif new file mode 100644 index 00000000..aac281dd Binary files /dev/null and b/gpack/travianx_v1/img/u/18.gif differ diff --git a/gpack/travianx_v1/img/u/19.gif b/gpack/travianx_v1/img/u/19.gif new file mode 100644 index 00000000..f3a4b4ab Binary files /dev/null and b/gpack/travianx_v1/img/u/19.gif differ diff --git a/gpack/travianx_v1/img/u/2.gif b/gpack/travianx_v1/img/u/2.gif new file mode 100644 index 00000000..36199a7d Binary files /dev/null and b/gpack/travianx_v1/img/u/2.gif differ diff --git a/gpack/travianx_v1/img/u/20.gif b/gpack/travianx_v1/img/u/20.gif new file mode 100644 index 00000000..5f6aa3f7 Binary files /dev/null and b/gpack/travianx_v1/img/u/20.gif differ diff --git a/gpack/travianx_v1/img/u/21.gif b/gpack/travianx_v1/img/u/21.gif new file mode 100644 index 00000000..03e41a78 Binary files /dev/null and b/gpack/travianx_v1/img/u/21.gif differ diff --git a/gpack/travianx_v1/img/u/22.gif b/gpack/travianx_v1/img/u/22.gif new file mode 100644 index 00000000..b2e6fdb8 Binary files /dev/null and b/gpack/travianx_v1/img/u/22.gif differ diff --git a/gpack/travianx_v1/img/u/23.gif b/gpack/travianx_v1/img/u/23.gif new file mode 100644 index 00000000..f8520f5e Binary files /dev/null and b/gpack/travianx_v1/img/u/23.gif differ diff --git a/gpack/travianx_v1/img/u/24.gif b/gpack/travianx_v1/img/u/24.gif new file mode 100644 index 00000000..125643cb Binary files /dev/null and b/gpack/travianx_v1/img/u/24.gif differ diff --git a/gpack/travianx_v1/img/u/25.gif b/gpack/travianx_v1/img/u/25.gif new file mode 100644 index 00000000..1acf5983 Binary files /dev/null and b/gpack/travianx_v1/img/u/25.gif differ diff --git a/gpack/travianx_v1/img/u/26.gif b/gpack/travianx_v1/img/u/26.gif new file mode 100644 index 00000000..786d3071 Binary files /dev/null and b/gpack/travianx_v1/img/u/26.gif differ diff --git a/gpack/travianx_v1/img/u/27.gif b/gpack/travianx_v1/img/u/27.gif new file mode 100644 index 00000000..3faca4f4 Binary files /dev/null and b/gpack/travianx_v1/img/u/27.gif differ diff --git a/gpack/travianx_v1/img/u/28.gif b/gpack/travianx_v1/img/u/28.gif new file mode 100644 index 00000000..13de492a Binary files /dev/null and b/gpack/travianx_v1/img/u/28.gif differ diff --git a/gpack/travianx_v1/img/u/29.gif b/gpack/travianx_v1/img/u/29.gif new file mode 100644 index 00000000..230423a5 Binary files /dev/null and b/gpack/travianx_v1/img/u/29.gif differ diff --git a/gpack/travianx_v1/img/u/3.gif b/gpack/travianx_v1/img/u/3.gif new file mode 100644 index 00000000..a01e870f Binary files /dev/null and b/gpack/travianx_v1/img/u/3.gif differ diff --git a/gpack/travianx_v1/img/u/30.gif b/gpack/travianx_v1/img/u/30.gif new file mode 100644 index 00000000..9e3d6209 Binary files /dev/null and b/gpack/travianx_v1/img/u/30.gif differ diff --git a/gpack/travianx_v1/img/u/31.gif b/gpack/travianx_v1/img/u/31.gif new file mode 100644 index 00000000..4914dbbf Binary files /dev/null and b/gpack/travianx_v1/img/u/31.gif differ diff --git a/gpack/travianx_v1/img/u/32.gif b/gpack/travianx_v1/img/u/32.gif new file mode 100644 index 00000000..391b1a55 Binary files /dev/null and b/gpack/travianx_v1/img/u/32.gif differ diff --git a/gpack/travianx_v1/img/u/33.gif b/gpack/travianx_v1/img/u/33.gif new file mode 100644 index 00000000..e62d8cc0 Binary files /dev/null and b/gpack/travianx_v1/img/u/33.gif differ diff --git a/gpack/travianx_v1/img/u/34.gif b/gpack/travianx_v1/img/u/34.gif new file mode 100644 index 00000000..1d00a9a5 Binary files /dev/null and b/gpack/travianx_v1/img/u/34.gif differ diff --git a/gpack/travianx_v1/img/u/35.gif b/gpack/travianx_v1/img/u/35.gif new file mode 100644 index 00000000..02609c1e Binary files /dev/null and b/gpack/travianx_v1/img/u/35.gif differ diff --git a/gpack/travianx_v1/img/u/36.gif b/gpack/travianx_v1/img/u/36.gif new file mode 100644 index 00000000..8d52248b Binary files /dev/null and b/gpack/travianx_v1/img/u/36.gif differ diff --git a/gpack/travianx_v1/img/u/37.gif b/gpack/travianx_v1/img/u/37.gif new file mode 100644 index 00000000..04e68f6e Binary files /dev/null and b/gpack/travianx_v1/img/u/37.gif differ diff --git a/gpack/travianx_v1/img/u/38.gif b/gpack/travianx_v1/img/u/38.gif new file mode 100644 index 00000000..3ccfd397 Binary files /dev/null and b/gpack/travianx_v1/img/u/38.gif differ diff --git a/gpack/travianx_v1/img/u/39.gif b/gpack/travianx_v1/img/u/39.gif new file mode 100644 index 00000000..1bd5f150 Binary files /dev/null and b/gpack/travianx_v1/img/u/39.gif differ diff --git a/gpack/travianx_v1/img/u/4.gif b/gpack/travianx_v1/img/u/4.gif new file mode 100644 index 00000000..8a0bf3f6 Binary files /dev/null and b/gpack/travianx_v1/img/u/4.gif differ diff --git a/gpack/travianx_v1/img/u/40.gif b/gpack/travianx_v1/img/u/40.gif new file mode 100644 index 00000000..23cb95f2 Binary files /dev/null and b/gpack/travianx_v1/img/u/40.gif differ diff --git a/gpack/travianx_v1/img/u/41.gif b/gpack/travianx_v1/img/u/41.gif new file mode 100644 index 00000000..2ddfb2d6 Binary files /dev/null and b/gpack/travianx_v1/img/u/41.gif differ diff --git a/gpack/travianx_v1/img/u/42.gif b/gpack/travianx_v1/img/u/42.gif new file mode 100644 index 00000000..da32203f Binary files /dev/null and b/gpack/travianx_v1/img/u/42.gif differ diff --git a/gpack/travianx_v1/img/u/43.gif b/gpack/travianx_v1/img/u/43.gif new file mode 100644 index 00000000..33a2a113 Binary files /dev/null and b/gpack/travianx_v1/img/u/43.gif differ diff --git a/gpack/travianx_v1/img/u/44.gif b/gpack/travianx_v1/img/u/44.gif new file mode 100644 index 00000000..27c961b7 Binary files /dev/null and b/gpack/travianx_v1/img/u/44.gif differ diff --git a/gpack/travianx_v1/img/u/45.gif b/gpack/travianx_v1/img/u/45.gif new file mode 100644 index 00000000..e17b793c Binary files /dev/null and b/gpack/travianx_v1/img/u/45.gif differ diff --git a/gpack/travianx_v1/img/u/46.gif b/gpack/travianx_v1/img/u/46.gif new file mode 100644 index 00000000..22d6f52a Binary files /dev/null and b/gpack/travianx_v1/img/u/46.gif differ diff --git a/gpack/travianx_v1/img/u/47.gif b/gpack/travianx_v1/img/u/47.gif new file mode 100644 index 00000000..d294eefe Binary files /dev/null and b/gpack/travianx_v1/img/u/47.gif differ diff --git a/gpack/travianx_v1/img/u/48.gif b/gpack/travianx_v1/img/u/48.gif new file mode 100644 index 00000000..e41682b2 Binary files /dev/null and b/gpack/travianx_v1/img/u/48.gif differ diff --git a/gpack/travianx_v1/img/u/49.gif b/gpack/travianx_v1/img/u/49.gif new file mode 100644 index 00000000..e99c2926 Binary files /dev/null and b/gpack/travianx_v1/img/u/49.gif differ diff --git a/gpack/travianx_v1/img/u/5.gif b/gpack/travianx_v1/img/u/5.gif new file mode 100644 index 00000000..fb6eaf44 Binary files /dev/null and b/gpack/travianx_v1/img/u/5.gif differ diff --git a/gpack/travianx_v1/img/u/50.gif b/gpack/travianx_v1/img/u/50.gif new file mode 100644 index 00000000..48322d8b Binary files /dev/null and b/gpack/travianx_v1/img/u/50.gif differ diff --git a/gpack/travianx_v1/img/u/51.gif b/gpack/travianx_v1/img/u/51.gif new file mode 100644 index 00000000..e5465ea5 Binary files /dev/null and b/gpack/travianx_v1/img/u/51.gif differ diff --git a/gpack/travianx_v1/img/u/52.gif b/gpack/travianx_v1/img/u/52.gif new file mode 100644 index 00000000..eaa60db5 Binary files /dev/null and b/gpack/travianx_v1/img/u/52.gif differ diff --git a/gpack/travianx_v1/img/u/53.gif b/gpack/travianx_v1/img/u/53.gif new file mode 100644 index 00000000..1bb44fee Binary files /dev/null and b/gpack/travianx_v1/img/u/53.gif differ diff --git a/gpack/travianx_v1/img/u/54.gif b/gpack/travianx_v1/img/u/54.gif new file mode 100644 index 00000000..919e9f35 Binary files /dev/null and b/gpack/travianx_v1/img/u/54.gif differ diff --git a/gpack/travianx_v1/img/u/55.gif b/gpack/travianx_v1/img/u/55.gif new file mode 100644 index 00000000..31988fbb Binary files /dev/null and b/gpack/travianx_v1/img/u/55.gif differ diff --git a/gpack/travianx_v1/img/u/56.gif b/gpack/travianx_v1/img/u/56.gif new file mode 100644 index 00000000..c41029f0 Binary files /dev/null and b/gpack/travianx_v1/img/u/56.gif differ diff --git a/gpack/travianx_v1/img/u/57.gif b/gpack/travianx_v1/img/u/57.gif new file mode 100644 index 00000000..eaa72593 Binary files /dev/null and b/gpack/travianx_v1/img/u/57.gif differ diff --git a/gpack/travianx_v1/img/u/58.gif b/gpack/travianx_v1/img/u/58.gif new file mode 100644 index 00000000..0cd312ab Binary files /dev/null and b/gpack/travianx_v1/img/u/58.gif differ diff --git a/gpack/travianx_v1/img/u/59.gif b/gpack/travianx_v1/img/u/59.gif new file mode 100644 index 00000000..a9ec8dd3 Binary files /dev/null and b/gpack/travianx_v1/img/u/59.gif differ diff --git a/gpack/travianx_v1/img/u/6.gif b/gpack/travianx_v1/img/u/6.gif new file mode 100644 index 00000000..42134f1d Binary files /dev/null and b/gpack/travianx_v1/img/u/6.gif differ diff --git a/gpack/travianx_v1/img/u/60.gif b/gpack/travianx_v1/img/u/60.gif new file mode 100644 index 00000000..4dd3194a Binary files /dev/null and b/gpack/travianx_v1/img/u/60.gif differ diff --git a/gpack/travianx_v1/img/u/7.gif b/gpack/travianx_v1/img/u/7.gif new file mode 100644 index 00000000..774985db Binary files /dev/null and b/gpack/travianx_v1/img/u/7.gif differ diff --git a/gpack/travianx_v1/img/u/8.gif b/gpack/travianx_v1/img/u/8.gif new file mode 100644 index 00000000..28c0b884 Binary files /dev/null and b/gpack/travianx_v1/img/u/8.gif differ diff --git a/gpack/travianx_v1/img/u/9.gif b/gpack/travianx_v1/img/u/9.gif new file mode 100644 index 00000000..73c8203e Binary files /dev/null and b/gpack/travianx_v1/img/u/9.gif differ diff --git a/gpack/travianx_v1/img/u/98.gif b/gpack/travianx_v1/img/u/98.gif new file mode 100644 index 00000000..4a2c78b1 Binary files /dev/null and b/gpack/travianx_v1/img/u/98.gif differ diff --git a/gpack/travianx_v1/img/u/99.gif b/gpack/travianx_v1/img/u/99.gif new file mode 100644 index 00000000..c4b57587 Binary files /dev/null and b/gpack/travianx_v1/img/u/99.gif differ diff --git a/gpack/travianx_v1/img/u/Thumbs.db b/gpack/travianx_v1/img/u/Thumbs.db new file mode 100644 index 00000000..059bf449 Binary files /dev/null and b/gpack/travianx_v1/img/u/Thumbs.db differ diff --git a/gpack/travianx_v1/img/u/point.gif b/gpack/travianx_v1/img/u/point.gif new file mode 100644 index 00000000..3edba9c5 Binary files /dev/null and b/gpack/travianx_v1/img/u/point.gif differ diff --git a/gpack/travianx_v1/img/u/specials.gif b/gpack/travianx_v1/img/u/specials.gif new file mode 100644 index 00000000..2fad05ce Binary files /dev/null and b/gpack/travianx_v1/img/u/specials.gif differ diff --git a/gpack/travianx_v1/img/u/v1_romans2.gif b/gpack/travianx_v1/img/u/v1_romans2.gif new file mode 100644 index 00000000..63595402 Binary files /dev/null and b/gpack/travianx_v1/img/u/v1_romans2.gif differ diff --git a/gpack/travianx_v1/img/u/v2_teutons2.gif b/gpack/travianx_v1/img/u/v2_teutons2.gif new file mode 100644 index 00000000..f456969a Binary files /dev/null and b/gpack/travianx_v1/img/u/v2_teutons2.gif differ diff --git a/gpack/travianx_v1/img/u/v3_gauls2.gif b/gpack/travianx_v1/img/u/v3_gauls2.gif new file mode 100644 index 00000000..d7ba7afd Binary files /dev/null and b/gpack/travianx_v1/img/u/v3_gauls2.gif differ diff --git a/gpack/travianx_v1/img/u/v4_nature2.gif b/gpack/travianx_v1/img/u/v4_nature2.gif new file mode 100644 index 00000000..8282f291 Binary files /dev/null and b/gpack/travianx_v1/img/u/v4_nature2.gif differ diff --git a/gpack/travianx_v1/img/u/v5_natars2.gif b/gpack/travianx_v1/img/u/v5_natars2.gif new file mode 100644 index 00000000..4c011982 Binary files /dev/null and b/gpack/travianx_v1/img/u/v5_natars2.gif differ diff --git a/gpack/travianx_v1/img/u/v6_monsters2.gif b/gpack/travianx_v1/img/u/v6_monsters2.gif new file mode 100644 index 00000000..66dc678a Binary files /dev/null and b/gpack/travianx_v1/img/u/v6_monsters2.gif differ diff --git a/gpack/travianx_v1/img/u2/Thumbs.db b/gpack/travianx_v1/img/u2/Thumbs.db new file mode 100644 index 00000000..ba5eccb7 Binary files /dev/null and b/gpack/travianx_v1/img/u2/Thumbs.db differ diff --git a/gpack/travianx_v1/img/u2/u1.gif b/gpack/travianx_v1/img/u2/u1.gif new file mode 100644 index 00000000..f7133940 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u1.gif differ diff --git a/gpack/travianx_v1/img/u2/u10.gif b/gpack/travianx_v1/img/u2/u10.gif new file mode 100644 index 00000000..12dd74af Binary files /dev/null and b/gpack/travianx_v1/img/u2/u10.gif differ diff --git a/gpack/travianx_v1/img/u2/u11.gif b/gpack/travianx_v1/img/u2/u11.gif new file mode 100644 index 00000000..d58d42aa Binary files /dev/null and b/gpack/travianx_v1/img/u2/u11.gif differ diff --git a/gpack/travianx_v1/img/u2/u12.gif b/gpack/travianx_v1/img/u2/u12.gif new file mode 100644 index 00000000..7985ecd9 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u12.gif differ diff --git a/gpack/travianx_v1/img/u2/u13.gif b/gpack/travianx_v1/img/u2/u13.gif new file mode 100644 index 00000000..df048632 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u13.gif differ diff --git a/gpack/travianx_v1/img/u2/u14.gif b/gpack/travianx_v1/img/u2/u14.gif new file mode 100644 index 00000000..bda7f594 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u14.gif differ diff --git a/gpack/travianx_v1/img/u2/u15.gif b/gpack/travianx_v1/img/u2/u15.gif new file mode 100644 index 00000000..6331b35c Binary files /dev/null and b/gpack/travianx_v1/img/u2/u15.gif differ diff --git a/gpack/travianx_v1/img/u2/u16.gif b/gpack/travianx_v1/img/u2/u16.gif new file mode 100644 index 00000000..2b4e45bd Binary files /dev/null and b/gpack/travianx_v1/img/u2/u16.gif differ diff --git a/gpack/travianx_v1/img/u2/u17.gif b/gpack/travianx_v1/img/u2/u17.gif new file mode 100644 index 00000000..d2c24cef Binary files /dev/null and b/gpack/travianx_v1/img/u2/u17.gif differ diff --git a/gpack/travianx_v1/img/u2/u18.gif b/gpack/travianx_v1/img/u2/u18.gif new file mode 100644 index 00000000..d16b3fed Binary files /dev/null and b/gpack/travianx_v1/img/u2/u18.gif differ diff --git a/gpack/travianx_v1/img/u2/u19.gif b/gpack/travianx_v1/img/u2/u19.gif new file mode 100644 index 00000000..e540cb0c Binary files /dev/null and b/gpack/travianx_v1/img/u2/u19.gif differ diff --git a/gpack/travianx_v1/img/u2/u2.gif b/gpack/travianx_v1/img/u2/u2.gif new file mode 100644 index 00000000..2d4c7696 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u2.gif differ diff --git a/gpack/travianx_v1/img/u2/u20.gif b/gpack/travianx_v1/img/u2/u20.gif new file mode 100644 index 00000000..2ffe6a86 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u20.gif differ diff --git a/gpack/travianx_v1/img/u2/u21.gif b/gpack/travianx_v1/img/u2/u21.gif new file mode 100644 index 00000000..9af4b4d5 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u21.gif differ diff --git a/gpack/travianx_v1/img/u2/u22.gif b/gpack/travianx_v1/img/u2/u22.gif new file mode 100644 index 00000000..2c45b9c6 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u22.gif differ diff --git a/gpack/travianx_v1/img/u2/u23.gif b/gpack/travianx_v1/img/u2/u23.gif new file mode 100644 index 00000000..b9f64b77 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u23.gif differ diff --git a/gpack/travianx_v1/img/u2/u24.gif b/gpack/travianx_v1/img/u2/u24.gif new file mode 100644 index 00000000..b7168178 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u24.gif differ diff --git a/gpack/travianx_v1/img/u2/u25.gif b/gpack/travianx_v1/img/u2/u25.gif new file mode 100644 index 00000000..87aeb1cc Binary files /dev/null and b/gpack/travianx_v1/img/u2/u25.gif differ diff --git a/gpack/travianx_v1/img/u2/u26.gif b/gpack/travianx_v1/img/u2/u26.gif new file mode 100644 index 00000000..962d9349 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u26.gif differ diff --git a/gpack/travianx_v1/img/u2/u27.gif b/gpack/travianx_v1/img/u2/u27.gif new file mode 100644 index 00000000..2021725a Binary files /dev/null and b/gpack/travianx_v1/img/u2/u27.gif differ diff --git a/gpack/travianx_v1/img/u2/u28.gif b/gpack/travianx_v1/img/u2/u28.gif new file mode 100644 index 00000000..dbf18e4f Binary files /dev/null and b/gpack/travianx_v1/img/u2/u28.gif differ diff --git a/gpack/travianx_v1/img/u2/u29.gif b/gpack/travianx_v1/img/u2/u29.gif new file mode 100644 index 00000000..8224f1a6 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u29.gif differ diff --git a/gpack/travianx_v1/img/u2/u3.gif b/gpack/travianx_v1/img/u2/u3.gif new file mode 100644 index 00000000..46be53d3 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u3.gif differ diff --git a/gpack/travianx_v1/img/u2/u30.gif b/gpack/travianx_v1/img/u2/u30.gif new file mode 100644 index 00000000..b174863f Binary files /dev/null and b/gpack/travianx_v1/img/u2/u30.gif differ diff --git a/gpack/travianx_v1/img/u2/u4.gif b/gpack/travianx_v1/img/u2/u4.gif new file mode 100644 index 00000000..da63c4e6 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u4.gif differ diff --git a/gpack/travianx_v1/img/u2/u5.gif b/gpack/travianx_v1/img/u2/u5.gif new file mode 100644 index 00000000..9f3a537d Binary files /dev/null and b/gpack/travianx_v1/img/u2/u5.gif differ diff --git a/gpack/travianx_v1/img/u2/u6.gif b/gpack/travianx_v1/img/u2/u6.gif new file mode 100644 index 00000000..4f55d751 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u6.gif differ diff --git a/gpack/travianx_v1/img/u2/u7.gif b/gpack/travianx_v1/img/u2/u7.gif new file mode 100644 index 00000000..fae2d2ce Binary files /dev/null and b/gpack/travianx_v1/img/u2/u7.gif differ diff --git a/gpack/travianx_v1/img/u2/u8.gif b/gpack/travianx_v1/img/u2/u8.gif new file mode 100644 index 00000000..93223168 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u8.gif differ diff --git a/gpack/travianx_v1/img/u2/u9.gif b/gpack/travianx_v1/img/u2/u9.gif new file mode 100644 index 00000000..53511e42 Binary files /dev/null and b/gpack/travianx_v1/img/u2/u9.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/Thumbs.db b/gpack/travianx_v1/img/u2rtl/Thumbs.db new file mode 100644 index 00000000..dfc90a38 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/Thumbs.db differ diff --git a/gpack/travianx_v1/img/u2rtl/u1.gif b/gpack/travianx_v1/img/u2rtl/u1.gif new file mode 100644 index 00000000..427d2e83 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u1.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u10.gif b/gpack/travianx_v1/img/u2rtl/u10.gif new file mode 100644 index 00000000..2e589bcd Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u10.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u11.gif b/gpack/travianx_v1/img/u2rtl/u11.gif new file mode 100644 index 00000000..c1149c37 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u11.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u12.gif b/gpack/travianx_v1/img/u2rtl/u12.gif new file mode 100644 index 00000000..36cb169b Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u12.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u13.gif b/gpack/travianx_v1/img/u2rtl/u13.gif new file mode 100644 index 00000000..4c726a87 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u13.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u14.gif b/gpack/travianx_v1/img/u2rtl/u14.gif new file mode 100644 index 00000000..e31ca0d1 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u14.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u15.gif b/gpack/travianx_v1/img/u2rtl/u15.gif new file mode 100644 index 00000000..630cfa7e Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u15.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u16.gif b/gpack/travianx_v1/img/u2rtl/u16.gif new file mode 100644 index 00000000..44dcc5dd Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u16.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u17.gif b/gpack/travianx_v1/img/u2rtl/u17.gif new file mode 100644 index 00000000..b635ddb8 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u17.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u18.gif b/gpack/travianx_v1/img/u2rtl/u18.gif new file mode 100644 index 00000000..5c702572 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u18.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u19.gif b/gpack/travianx_v1/img/u2rtl/u19.gif new file mode 100644 index 00000000..6d8bdec7 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u19.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u2.gif b/gpack/travianx_v1/img/u2rtl/u2.gif new file mode 100644 index 00000000..88d2286d Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u2.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u20.gif b/gpack/travianx_v1/img/u2rtl/u20.gif new file mode 100644 index 00000000..7c022d09 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u20.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u21.gif b/gpack/travianx_v1/img/u2rtl/u21.gif new file mode 100644 index 00000000..4eed43b2 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u21.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u22.gif b/gpack/travianx_v1/img/u2rtl/u22.gif new file mode 100644 index 00000000..0fc0c7a6 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u22.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u23.gif b/gpack/travianx_v1/img/u2rtl/u23.gif new file mode 100644 index 00000000..2420fb72 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u23.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u24.gif b/gpack/travianx_v1/img/u2rtl/u24.gif new file mode 100644 index 00000000..eb7d7fa3 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u24.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u25.gif b/gpack/travianx_v1/img/u2rtl/u25.gif new file mode 100644 index 00000000..a5e17e6e Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u25.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u26.gif b/gpack/travianx_v1/img/u2rtl/u26.gif new file mode 100644 index 00000000..494bfee2 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u26.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u27.gif b/gpack/travianx_v1/img/u2rtl/u27.gif new file mode 100644 index 00000000..55d3e9aa Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u27.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u28.gif b/gpack/travianx_v1/img/u2rtl/u28.gif new file mode 100644 index 00000000..1ba3bb5d Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u28.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u29.gif b/gpack/travianx_v1/img/u2rtl/u29.gif new file mode 100644 index 00000000..9bb3b501 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u29.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u3.gif b/gpack/travianx_v1/img/u2rtl/u3.gif new file mode 100644 index 00000000..84a8531d Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u3.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u30.gif b/gpack/travianx_v1/img/u2rtl/u30.gif new file mode 100644 index 00000000..5e7990b9 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u30.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u4.gif b/gpack/travianx_v1/img/u2rtl/u4.gif new file mode 100644 index 00000000..81d95fcf Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u4.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u5.gif b/gpack/travianx_v1/img/u2rtl/u5.gif new file mode 100644 index 00000000..a85aba59 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u5.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u6.gif b/gpack/travianx_v1/img/u2rtl/u6.gif new file mode 100644 index 00000000..8e1634b0 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u6.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u7.gif b/gpack/travianx_v1/img/u2rtl/u7.gif new file mode 100644 index 00000000..63777248 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u7.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u8.gif b/gpack/travianx_v1/img/u2rtl/u8.gif new file mode 100644 index 00000000..65c50f9b Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u8.gif differ diff --git a/gpack/travianx_v1/img/u2rtl/u9.gif b/gpack/travianx_v1/img/u2rtl/u9.gif new file mode 100644 index 00000000..1ecde3c6 Binary files /dev/null and b/gpack/travianx_v1/img/u2rtl/u9.gif differ diff --git a/gpack/travianx_v1/img/wm/Thumbs.db b/gpack/travianx_v1/img/wm/Thumbs.db new file mode 100644 index 00000000..33fa7a18 Binary files /dev/null and b/gpack/travianx_v1/img/wm/Thumbs.db differ diff --git a/gpack/travianx_v1/img/wm/wm99.gif b/gpack/travianx_v1/img/wm/wm99.gif new file mode 100644 index 00000000..99955eed Binary files /dev/null and b/gpack/travianx_v1/img/wm/wm99.gif differ diff --git a/gpack/travianx_v1/lang/en/a/Thumbs.db b/gpack/travianx_v1/lang/en/a/Thumbs.db new file mode 100644 index 00000000..1ddb0b43 Binary files /dev/null and b/gpack/travianx_v1/lang/en/a/Thumbs.db differ diff --git a/gpack/travianx_v1/lang/en/a/plus.gif b/gpack/travianx_v1/lang/en/a/plus.gif new file mode 100644 index 00000000..c78dbfa5 Binary files /dev/null and b/gpack/travianx_v1/lang/en/a/plus.gif differ diff --git a/gpack/travianx_v1/lang/en/a/travian0.gif b/gpack/travianx_v1/lang/en/a/travian0.gif new file mode 100644 index 00000000..a9c97d7b Binary files /dev/null and b/gpack/travianx_v1/lang/en/a/travian0.gif differ diff --git a/gpack/travianx_v1/lang/en/a/travian1.gif b/gpack/travianx_v1/lang/en/a/travian1.gif new file mode 100644 index 00000000..10572710 Binary files /dev/null and b/gpack/travianx_v1/lang/en/a/travian1.gif differ diff --git a/gpack/travianx_v1/lang/en/b/Thumbs.db b/gpack/travianx_v1/lang/en/b/Thumbs.db new file mode 100644 index 00000000..fac96736 Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/Thumbs.db differ diff --git a/gpack/travianx_v1/lang/en/b/archiv.gif b/gpack/travianx_v1/lang/en/b/archiv.gif new file mode 100644 index 00000000..16191b2d Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/archiv.gif differ diff --git a/gpack/travianx_v1/lang/en/b/back.gif b/gpack/travianx_v1/lang/en/b/back.gif new file mode 100644 index 00000000..5d87d385 Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/back.gif differ diff --git a/gpack/travianx_v1/lang/en/b/delete.gif b/gpack/travianx_v1/lang/en/b/delete.gif new file mode 100644 index 00000000..2eb68236 Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/delete.gif differ diff --git a/gpack/travianx_v1/lang/en/b/demolish.gif b/gpack/travianx_v1/lang/en/b/demolish.gif new file mode 100644 index 00000000..af704dcf Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/demolish.gif differ diff --git a/gpack/travianx_v1/lang/en/b/forward.gif b/gpack/travianx_v1/lang/en/b/forward.gif new file mode 100644 index 00000000..c2c7505a Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/forward.gif differ diff --git a/gpack/travianx_v1/lang/en/b/login.gif b/gpack/travianx_v1/lang/en/b/login.gif new file mode 100644 index 00000000..03a68fdb Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/login.gif differ diff --git a/gpack/travianx_v1/lang/en/b/ok.gif b/gpack/travianx_v1/lang/en/b/ok.gif new file mode 100644 index 00000000..f207a4e0 Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/ok.gif differ diff --git a/gpack/travianx_v1/lang/en/b/reply.gif b/gpack/travianx_v1/lang/en/b/reply.gif new file mode 100644 index 00000000..6345447e Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/reply.gif differ diff --git a/gpack/travianx_v1/lang/en/b/save.gif b/gpack/travianx_v1/lang/en/b/save.gif new file mode 100644 index 00000000..2b239eaf Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/save.gif differ diff --git a/gpack/travianx_v1/lang/en/b/search.gif b/gpack/travianx_v1/lang/en/b/search.gif new file mode 100644 index 00000000..a90dfe90 Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/search.gif differ diff --git a/gpack/travianx_v1/lang/en/b/send.gif b/gpack/travianx_v1/lang/en/b/send.gif new file mode 100644 index 00000000..31cbca93 Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/send.gif differ diff --git a/gpack/travianx_v1/lang/en/b/signup.gif b/gpack/travianx_v1/lang/en/b/signup.gif new file mode 100644 index 00000000..a90d6513 Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/signup.gif differ diff --git a/gpack/travianx_v1/lang/en/b/train.gif b/gpack/travianx_v1/lang/en/b/train.gif new file mode 100644 index 00000000..397d2036 Binary files /dev/null and b/gpack/travianx_v1/lang/en/b/train.gif differ diff --git a/gpack/travianx_v1/lang/en/b/zurueck.html b/gpack/travianx_v1/lang/en/b/zurueck.html new file mode 100644 index 00000000..bcd738b0 --- /dev/null +++ b/gpack/travianx_v1/lang/en/b/zurueck.html @@ -0,0 +1,100 @@ + + + + + Travian com4 + + + + + + + + + + + + + + +
    +
    +
    + + + +
    + +
    Nothing here! +

    Nothing here!

    +
    We looked 404 times already but can't find anything
    + +
    +
    +
    newsbox 1
    +
    +

    + +
    +
    newsbox 2
    +
    Dear players, +

    +Starting from next week Travian will get a new look. +

    +Here you find more information about the new layout. +

    +Regards
    +Tschena & Phanttis
    +
    newsbox 3
    +
    Dear players, +

    +s4.travian.com will start on August 23th as Travian version 3.6 server. +

    +The preregistration will be opened on August 20th. +

    +Here you find more information about the servers. +

    +Regards
    +Tschena & Phanttis
    +
    + +
    +
    + + +
    + + +
    +
    + + \ No newline at end of file diff --git a/gpack/travianx_v1/lang/en/compact.css b/gpack/travianx_v1/lang/en/compact.css new file mode 100644 index 00000000..9cf0e807 --- /dev/null +++ b/gpack/travianx_v1/lang/en/compact.css @@ -0,0 +1,1414 @@ +@CHARSET "UTF-8";body{text-align:left;direction:ltr;margin:0;background-color:#FFF;} +img{border:0;}h1,h2,span,form,img,li{margin:0;padding:0;}h1{margin-bottom:8px;}p{margin:14px 0;padding:0;} +label{white-space:nowrap;}#msfilter{width:1px;height:1px;position:absolute;z-index:99;} +.hide{display:none;}div#header{width:100%;min-width:980px;height:67px;}div#mid{float:left;width:100%;min-width:980px;margin-bottom:15px;} +div#content{float:left;min-height:450px;position:relative;overflow:hidden;}div.universal{width:502px;padding:0 25px 0;} +div.login{width:502px;padding:0 25px 0;}div.logout{width:502px;padding:0 25px 0;} +div.signup{width:502px;padding:0 25px 0;}div.activate{width:502px;padding:0 25px 0;} +div.banned_cn{width:502px;padding:0 25px 0;}div.player{width:502px;padding:43px 25px 0;} +div.alliance{width:502px;padding:43px 25px 0;}div.forum{width:502px;padding:43px 25px 0;} +div.statistics{width:502px;padding:43px 25px 0;}div.cropfinder{width:502px;padding:43px 25px 0;} +div.reports{width:502px;padding:43px 25px 0;}div.messages{width:502px;padding:43px 25px 0;} +div.a2b{width:502px;padding:43px 25px 0;}div.village3{width:502px;padding:43px 25px 0;} +div.plus{width:502px;padding:43px 25px 0;}div.warsim{width:502px;padding:43px 25px 0;} +div.map{width:552px;padding:43px 0 0;}div.support{width:502px;padding:15px 25px 0;} +div.village1{width:537px;padding-top:43px;padding-right:0;padding-bottom:0;padding-left:15px;} +div.village2{width:540px;padding:43px 6px 0;}div.build{width:552px;}div#build{width:502px;padding:43px 25px 0;} +div.error_site{width:552px;padding:0;}p.btn{text-align:center;}div#textmenu{margin:14px 0;} +div.clear{clear:both;width:0;height:0;}table{margin:0;}td.aligned_coords{width:84px;padding:2px 0;white-space:nowrap;} +td.aligned_coords div{float:left;}td.aligned_coords div.cox{width:38px;text-align:right;} +td.aligned_coords div.pi{width:8px;text-align:center;}td.aligned_coords div.coy{width:38px;text-align:left;} +span.dur{white-space:nowrap;}div#sysmsg{width:502px;margin:auto;}div#ce{position:fixed;left:0;top:0;z-index:999;} +div.popup3{position:absolute;display:inline;width:430px;height:456px;z-index:80;border:0 solid #000;padding-top:31px;padding-bottom:0;padding-left:20px;left:180px;top:99px;} +div.popup3 div#drag{position:absolute;left:11px;top:11px;height:20px;width:408px;z-index:2;cursor:move;background-color:#F3F3F3;} +img.popup4{position:absolute;width:30px;height:30px;z-index:81;border:0 solid #000;right:0;top:0;} +div#ltime{width:220px;height:15px;position:absolute;top:42px;left:5px;z-index:3;} +div#dynamic_header{width:100%;min-width:980px;height:28px;background-color:#747273;overflow:hidden;} +body.mod1 div#dynamic_header{height:70px;}body.mod1 div#dynamic_header div.dyn1{float:left;width:780px;height:70px;} +body.mod1 div#dynamic_header div.dyn2{float:right;width:151px;height:70px;}body.mod1 iframe#ad_iframe{position:absolute;left:168px;width:468px;height:60px;z-index:10;} +body.mod1 div#ltime{top:83px;}body.mod1 div#res{top:137px;}body.mod2 div#dynamic_header{height:100px;} +body.mod2 div#dynamic_header div.dyn1{min-width:900px;width:100%;height:100px;}body.mod2 iframe#ad_iframe{position:absolute;left:82px;top:0;width:728px;height:90px;z-index:10;} +body.mod2 div#ltime{top:113px;}body.mod2 div#res{top:167px;}body.mod3 div#dynamic_header div.dyn1{width:127px;height:604px;position:absolute;left:692px;top:6px;z-index:5;} +body.mod3 iframe#ad_iframe{width:120px;height:600px;position:absolute;left:696px;top:10px;z-index:10;} +body.mod3 div#mtop{width:692px;}body.mod3 div#plus_div{margin-left:237px;}body.mod3 div#content{min-height:469px;} +body.mod3 div#side_info{margin-left:132px;}div#mtop{width:570px;height:67px;position:relative;left:231px;top:-7px;} +div#mtop a#n1,div#mtop a#n2,div#mtop a#n3,div#mtop a#n4,div#mtop div#n5{float:left;padding:0;margin:0;} +div#mtop div#n5 a{float:left;}div#mtop a#plus{float:left;padding:0;margin-left:115px;} +div#mtop a#plus span{display:none;}div#side_navi{float:left;width:130px;position:relative;} +div#side_navi p{margin:0 0 28px;line-height:20px;}div#side_navi p a{padding-left:12px;display:block;} +div#side_navi p.deltimer{width:120px;margin-left:5px;}div#side_navi p.deltimer a{text-align:center;padding:0;} +div#side_info{float:left;padding-left:10px;padding-top:5px;position:relative;}div#side_info h5{margin-left:10px;} +div#side_info h6{margin:0;padding:0;}div#side_info div.news{margin-left:10px;width:186px;padding:6px;border:dashed Silver 1px;} +div#side_info div.news ul{padding:0;margin-left:15px;}div#side_info table#llist{margin-top:25px;} +div#footer{width:100%;clear:both;}div#footer div#mfoot{width:812px;padding-top:15px;padding-bottom:30px;text-align:center;} +div#footer div#mfoot div.copyright{direction:ltr;}div#res{left:130px;height:20px;position:absolute;top:100px;width:552px;z-index:3;} +div#res table{background-color:#FFF;margin:auto;width:auto;}div#res table td{padding:1px;} +div#res table img{margin-left:5px;}div.login h1{text-align:center;}div.login p{line-height:17px;} +div.login p.error_box{padding:6px;border:1px dashed #C0C0C0;}div.logout img.roman{float:right;} +div.signup h1{text-align:center;}div.signup p{line-height:17px;}div.signup p.info{text-align:center;} +div.signup img.roman{float:right;}div.signup table#sign_input{margin-bottom:15px;} +div.signup div#activation{float:left;width:40%;margin-top:15px;}div.signup div#not_yet{text-align:center;} +div.signup div#no_mail{float:right;width:60%;margin-top:15px;}div.signup .timer,div.signup .timer #timer1{text-align:center;} +div.activate h1{text-align:center;}div.activate h6{margin:0;}div.activate p{line-height:17px;} +div.activate p.info{text-align:center;}div.activate ul{margin:14px 0 20px;padding-left:20px;} +div.village1 h1{position:relative;left:10px;height:29px;position:relative;z-index:500;} +div.village1 h1 div{float:left;}div.village1 h1 div#loyality{position:absolute;top:30px;} +div.village1 div#village_map{float:left;width:300px;height:264px;position:relative;margin-bottom:15px;} +div.village1 img#resfeld{width:300px;height:264px;position:absolute;z-index:20;left:0;} +div.village1 img.reslevel{position:absolute;z-index:10;width:17px;height:12px;}div.village1 img.rf1{left:93px;top:27px;} +div.village1 img.rf2{left:156px;top:26px;}div.village1 img.rf3{left:216px;top:41px;} +div.village1 img.rf4{left:38px;top:59px;}div.village1 img.rf5{left:130px;top:67px;} +div.village1 img.rf6{left:195px;top:87px;}div.village1 img.rf7{left:253px;top:81px;} +div.village1 img.rf8{left:23px;top:111px;}div.village1 img.rf9{left:74px;top:104px;} +div.village1 img.rf10{left:205px;top:136px;}div.village1 img.rf11{left:260px;top:139px;} +div.village1 img.rf12{left:33px;top:165px;}div.village1 img.rf13{left:84px;top:158px;} +div.village1 img.rf14{left:151px;top:178px;}div.village1 img.rf15{left:230px;top:192px;} +div.village1 img.rf16{left:79px;top:211px;}div.village1 img.rf17{left:132px;top:223px;} +div.village1 img.rf18{left:182px;top:227px;}div.village1 div#map_details{float:right;width:229px;margin-top:-29px;margin-right:1px;} +div.village1 div#map_details table{margin-bottom:14px;}div.village1 table#building_contract{clear:both;margin:0 25px;} +div.village2 h1{position:absolute;left:25px;z-index:30;}div.village2 div#village_map{width:540px;height:448px;position:relative;} +div.village2 div#village_map img{position:absolute;}div.village2 div#village_map img.ww{z-index:20;left:155px;} +div.village2 div#village_map div#levels{width:494px;height:370px;position:absolute;top:40px;left:23px;z-index:97;visibility:hidden;} +div.village2 div#village_map div#levels div{width:17px;height:17px;position:absolute;text-align:center;line-height:17px;visibility:hidden;} +div.village2 div#village_map div#levels.on{visibility:visible;}div.village2 div#village_map div#levels.on div{visibility:visible;} +div.village2 img#lswitch{width:18px;height:17px;position:absolute;top:443px;left:500px;cursor:pointer;z-index:500;} +div.village2 div#village_map .dx1{z-index:5;left:316px;top:161px;}div.village2 div#village_map .d1{z-index:6;left:115px;top:52px;} +div.village2 div#village_map .d2{z-index:9;left:198px;top:27px;}div.village2 div#village_map .d3{z-index:8;left:258px;top:17px;} +div.village2 div#village_map .d4{z-index:9;left:332px;top:32px;}div.village2 div#village_map .d5{z-index:10;left:388px;top:81px;} +div.village2 div#village_map .d6{z-index:11;left:80px;top:91px;}div.village2 div#village_map .d7{z-index:12;left:161px;top:98px;} +div.village2 div#village_map .d8{z-index:13;left:247px;top:81px;}div.village2 div#village_map .d9{z-index:14;left:395px;top:122px;} +div.village2 div#village_map .d10{z-index:15;left:66px;top:161px;}div.village2 div#village_map .d11{z-index:16;left:192px;top:126px;} +div.village2 div#village_map .d12{z-index:17;left:155px;top:152px;}div.village2 div#village_map .d13{z-index:18;left:402px;top:180px;} +div.village2 div#village_map .d14{z-index:19;left:84px;top:200px;}div.village2 div#village_map .d15{z-index:20;left:227px;top:196px;} +div.village2 div#village_map .d16{z-index:21;left:354px;top:213px;}div.village2 div#village_map .d17{z-index:22;left:158px;top:236px;} +div.village2 div#village_map .d18{z-index:23;left:286px;top:247px;}div.village2 div#village_map .d19{z-index:24;left:144px;top:267px;} +div.village2 div#village_map .d20{z-index:25;left:262px;top:276px;}div.village2 div#village_map .g40{top:138px;} +div.village2 div#village_map .g40_1{top:125px;}div.village2 div#village_map .g40_2{top:99px;} +div.village2 div#village_map .g40_3{top:62px;}div.village2 div#village_map .g40_4{top:53px;} +div.village2 div#village_map .g40_5{top:-10px;}div.village2 div#village_map .l39{left:320px;top:190px;} +div.village2 div#village_map .l40{left:240px;top:350px;}div.village2 img.map1{width:540px;height:448px;z-index:98;} +div.village2 img.map2{width:422px;height:339px;left:63px;top:40px;z-index:99;}div.village2 div#village_map img.rocket{z-index:20;width:75px;height:140px;} +div.village2 div#village_map img.tur{left:161px;top:168px;}div.village2 div#village_map img.purp{left:265px;top:148px;} +div.village2 div#village_map img.yell{left:200px;top:248px;}div.village2 div#village_map img.oran{left:300px;top:0;} +div.village2 div#village_map img.green{left:110px;top:230px;}div.village2 div#village_map img.red{left:328px;top:210px;} +div.village2 table#building_contract{position:relative;z-index:150;margin:-40px 19px 0;} +div.village3 table.vil_troops{margin-bottom:10px;}div#mbig{width:997px;height:572px;border:1px #5a595a solid;} +div#mbig div#lightframe{width:979px;height:554px;position:relative;left:7px;top:7px;border:2px #dedfde solid;} +div#mbig div#darkframe{width:975px;height:550px;border:2px #9c9a9c solid;}div#mbig a#map_popclose{position:absolute;top:0;right:0;z-index:30;} +div.map h1{margin-left:25px;}div#mbig h1{position:absolute;top:10px;left:10px;z-index:10;} +div#map{position:relative;}div.map div#map{width:552px;height:375px;top:-26px;}div#mbig div#map{width:975px;height:550px;top:0;left:0;} +div#map div#map_content{position:relative;}div.map div#map div#map_content{width:540px;height:316px;left:5px;top:33px;} +div#mbig div#map #map_content{width:971px;height:550px;top:0;left:0;}div#map div#map_content div{width:74px;height:74px;position:absolute;} +div#map div#map_content div span{display:block;position:absolute;top:56px;left:30px;z-index:49;} +div#map div#map_content div span.m6{top:58px;left:32px;}div#map a#map_makelarge{position:absolute;left:26px;top:39px;z-index:50;} +div#map img#map_links{position:absolute;}div.map div#map img#map_links{width:540px;height:316px;left:5px;top:33px;z-index:50;} +div#mbig div#map img#map_links{width:971px;height:550px;top:0;left:0;z-index:20;} +div#map img#map_navibox{position:absolute;z-index:50;}div#mbig div#map img#map_navibox{bottom:5px;right:32px;} +div.map div#map img#map_navibox{right:20px;bottom:0;}div#map div#map_rulers{position:absolute;} +div#map div#map_rulers div{width:35px;height:12px;text-align:center;position:absolute;} +div#map div#map_coords{width:180px;height:30px;position:absolute;line-height:20px;z-index:50;vertical-align:top;} +div.map div#map div#map_coords{bottom:26px;left:30px;}div#mbig div#map div#map_coords{bottom:5px;left:10px;} +div#map div#map_coords span,div#map div#map_coords input{float:left;margin-right:5px;} +div#map div#map_coords input.text{width:28px;margin-right:8px;}div#map table#map_infobox{position:absolute;z-index:50;} +div.map div#map table#map_infobox{top:-7px;right:20px;}div#mbig div#map table#map_infobox{top:10px;right:50px;} +div.map div.cropfinder_icon{z-index:100;position:absolute;left:493px;top:312px;} +div.map div#map div#map_content div#i_0_0{z-index:1;left:16px;top:104px;}div.map div#map div#map_content div#i_0_1{z-index:2;left:52px;top:84px;} +div.map div#map div#map_content div#i_0_2{z-index:3;left:88px;top:64px;}div.map div#map div#map_content div#i_0_3{z-index:4;left:124px;top:44px;} +div.map div#map div#map_content div#i_0_4{z-index:5;left:160px;top:24px;}div.map div#map div#map_content div#i_0_5{z-index:6;left:196px;top:4px;} +div.map div#map div#map_content div#i_0_6{z-index:7;left:232px;top:-16px;}div.map div#map div#map_content div#i_1_0{z-index:2;left:53px;top:124px;} +div.map div#map div#map_content div#i_1_1{z-index:2;left:89px;top:104px;}div.map div#map div#map_content div#i_1_2{z-index:3;left:125px;top:84px;} +div.map div#map div#map_content div#i_1_3{z-index:4;left:161px;top:64px;}div.map div#map div#map_content div#i_1_4{z-index:5;left:197px;top:44px;} +div.map div#map div#map_content div#i_1_5{z-index:6;left:233px;top:24px;}div.map div#map div#map_content div#i_1_6{z-index:7;left:269px;top:4px;} +div.map div#map div#map_content div#i_2_0{z-index:3;left:90px;top:144px;}div.map div#map div#map_content div#i_2_1{z-index:3;left:126px;top:124px;} +div.map div#map div#map_content div#i_2_2{z-index:3;left:162px;top:104px;}div.map div#map div#map_content div#i_2_3{z-index:4;left:198px;top:84px;} +div.map div#map div#map_content div#i_2_4{z-index:5;left:234px;top:64px;}div.map div#map div#map_content div#i_2_5{z-index:6;left:270px;top:44px;} +div.map div#map div#map_content div#i_2_6{z-index:7;left:306px;top:24px;}div.map div#map div#map_content div#i_3_0{z-index:4;left:127px;top:164px;} +div.map div#map div#map_content div#i_3_1{z-index:4;left:163px;top:144px;}div.map div#map div#map_content div#i_3_2{z-index:4;left:199px;top:124px;} +div.map div#map div#map_content div#i_3_3{z-index:4;left:235px;top:104px;}div.map div#map div#map_content div#i_3_4{z-index:5;left:271px;top:84px;} +div.map div#map div#map_content div#i_3_5{z-index:6;left:307px;top:64px;}div.map div#map div#map_content div#i_3_6{z-index:7;left:343px;top:44px;} +div.map div#map div#map_content div#i_4_0{z-index:5;left:164px;top:184px;}div.map div#map div#map_content div#i_4_1{z-index:5;left:200px;top:164px;} +div.map div#map div#map_content div#i_4_2{z-index:5;left:236px;top:144px;}div.map div#map div#map_content div#i_4_3{z-index:5;left:272px;top:124px;} +div.map div#map div#map_content div#i_4_4{z-index:5;left:308px;top:104px;}div.map div#map div#map_content div#i_4_5{z-index:6;left:344px;top:84px;} +div.map div#map div#map_content div#i_4_6{z-index:7;left:380px;top:64px;}div.map div#map div#map_content div#i_5_0{z-index:6;left:201px;top:204px;} +div.map div#map div#map_content div#i_5_1{z-index:6;left:237px;top:184px;}div.map div#map div#map_content div#i_5_2{z-index:6;left:273px;top:164px;} +div.map div#map div#map_content div#i_5_3{z-index:6;left:309px;top:144px;}div.map div#map div#map_content div#i_5_4{z-index:6;left:345px;top:124px;} +div.map div#map div#map_content div#i_5_5{z-index:6;left:381px;top:104px;}div.map div#map div#map_content div#i_5_6{z-index:7;left:417px;top:84px;} +div.map div#map div#map_content div#i_6_0{z-index:7;left:238px;top:224px;}div.map div#map div#map_content div#i_6_1{z-index:7;left:274px;top:204px;} +div.map div#map div#map_content div#i_6_2{z-index:7;left:310px;top:184px;}div.map div#map div#map_content div#i_6_3{z-index:7;left:346px;top:164px;} +div.map div#map div#map_content div#i_6_4{z-index:7;left:382px;top:144px;}div.map div#map div#map_content div#i_6_5{z-index:7;left:418px;top:124px;} +div.map div#map div#map_content div#i_6_6{z-index:7;left:454px;top:104px;}div#mbig div#map div#map_content div#i_0_0{z-index:1;left:11px;top:220px;} +div#mbig div#map div#map_content div#i_0_1{z-index:2;left:47px;top:200px;}div#mbig div#map div#map_content div#i_0_2{z-index:3;left:83px;top:180px;} +div#mbig div#map div#map_content div#i_0_3{z-index:4;left:119px;top:160px;}div#mbig div#map div#map_content div#i_0_4{z-index:5;left:155px;top:140px;} +div#mbig div#map div#map_content div#i_0_5{z-index:6;left:191px;top:120px;}div#mbig div#map div#map_content div#i_0_6{z-index:7;left:227px;top:100px;} +div#mbig div#map div#map_content div#i_0_7{z-index:8;left:263px;top:80px;}div#mbig div#map div#map_content div#i_0_8{z-index:9;left:299px;top:60px;} +div#mbig div#map div#map_content div#i_0_9{z-index:10;left:335px;top:40px;}div#mbig div#map div#map_content div#i_0_10{z-index:11;left:371px;top:20px;} +div#mbig div#map div#map_content div#i_0_11{z-index:12;left:407px;top:0;}div#mbig div#map div#map_content div#i_0_12{z-index:13;left:443px;top:-20px;} +div#mbig div#map div#map_content div#i_1_0{z-index:2;left:48px;top:240px;}div#mbig div#map div#map_content div#i_1_1{z-index:2;left:84px;top:220px;} +div#mbig div#map div#map_content div#i_1_2{z-index:3;left:120px;top:200px;}div#mbig div#map div#map_content div#i_1_3{z-index:4;left:156px;top:180px;} +div#mbig div#map div#map_content div#i_1_4{z-index:5;left:192px;top:160px;}div#mbig div#map div#map_content div#i_1_5{z-index:6;left:228px;top:140px;} +div#mbig div#map div#map_content div#i_1_6{z-index:7;left:264px;top:120px;}div#mbig div#map div#map_content div#i_1_7{z-index:8;left:300px;top:100px;} +div#mbig div#map div#map_content div#i_1_8{z-index:9;left:336px;top:80px;}div#mbig div#map div#map_content div#i_1_9{z-index:10;left:372px;top:60px;} +div#mbig div#map div#map_content div#i_1_10{z-index:11;left:408px;top:40px;}div#mbig div#map div#map_content div#i_1_11{z-index:12;left:444px;top:20px;} +div#mbig div#map div#map_content div#i_1_12{z-index:13;left:480px;top:0;}div#mbig div#map div#map_content div#i_2_0{z-index:3;left:85px;top:260px;} +div#mbig div#map div#map_content div#i_2_1{z-index:3;left:121px;top:240px;}div#mbig div#map div#map_content div#i_2_2{z-index:3;left:157px;top:220px;} +div#mbig div#map div#map_content div#i_2_3{z-index:4;left:193px;top:200px;}div#mbig div#map div#map_content div#i_2_4{z-index:5;left:229px;top:180px;} +div#mbig div#map div#map_content div#i_2_5{z-index:6;left:265px;top:160px;}div#mbig div#map div#map_content div#i_2_6{z-index:7;left:301px;top:140px;} +div#mbig div#map div#map_content div#i_2_7{z-index:8;left:337px;top:120px;}div#mbig div#map div#map_content div#i_2_8{z-index:9;left:373px;top:100px;} +div#mbig div#map div#map_content div#i_2_9{z-index:10;left:409px;top:80px;}div#mbig div#map div#map_content div#i_2_10{z-index:11;left:445px;top:60px;} +div#mbig div#map div#map_content div#i_2_11{z-index:12;left:481px;top:40px;}div#mbig div#map div#map_content div#i_2_12{z-index:13;left:517px;top:20px;} +div#mbig div#map div#map_content div#i_3_0{z-index:4;left:122px;top:280px;}div#mbig div#map div#map_content div#i_3_1{z-index:4;left:158px;top:260px;} +div#mbig div#map div#map_content div#i_3_2{z-index:4;left:194px;top:240px;}div#mbig div#map div#map_content div#i_3_3{z-index:4;left:230px;top:220px;} +div#mbig div#map div#map_content div#i_3_4{z-index:5;left:266px;top:200px;}div#mbig div#map div#map_content div#i_3_5{z-index:6;left:302px;top:180px;} +div#mbig div#map div#map_content div#i_3_6{z-index:7;left:338px;top:160px;}div#mbig div#map div#map_content div#i_3_7{z-index:8;left:374px;top:140px;} +div#mbig div#map div#map_content div#i_3_8{z-index:9;left:410px;top:120px;}div#mbig div#map div#map_content div#i_3_9{z-index:10;left:446px;top:100px;} +div#mbig div#map div#map_content div#i_3_10{z-index:11;left:482px;top:80px;}div#mbig div#map div#map_content div#i_3_11{z-index:12;left:518px;top:60px;} +div#mbig div#map div#map_content div#i_3_12{z-index:13;left:554px;top:40px;}div#mbig div#map div#map_content div#i_4_0{z-index:5;left:159px;top:300px;} +div#mbig div#map div#map_content div#i_4_1{z-index:5;left:195px;top:280px;}div#mbig div#map div#map_content div#i_4_2{z-index:5;left:231px;top:260px;} +div#mbig div#map div#map_content div#i_4_3{z-index:5;left:267px;top:240px;}div#mbig div#map div#map_content div#i_4_4{z-index:5;left:303px;top:220px;} +div#mbig div#map div#map_content div#i_4_5{z-index:6;left:339px;top:200px;}div#mbig div#map div#map_content div#i_4_6{z-index:7;left:375px;top:180px;} +div#mbig div#map div#map_content div#i_4_7{z-index:8;left:411px;top:160px;}div#mbig div#map div#map_content div#i_4_8{z-index:9;left:447px;top:140px;} +div#mbig div#map div#map_content div#i_4_9{z-index:10;left:483px;top:120px;}div#mbig div#map div#map_content div#i_4_10{z-index:11;left:519px;top:100px;} +div#mbig div#map div#map_content div#i_4_11{z-index:12;left:555px;top:80px;}div#mbig div#map div#map_content div#i_4_12{z-index:13;left:591px;top:60px;} +div#mbig div#map div#map_content div#i_5_0{z-index:6;left:196px;top:320px;}div#mbig div#map div#map_content div#i_5_1{z-index:6;left:232px;top:300px;} +div#mbig div#map div#map_content div#i_5_2{z-index:6;left:268px;top:280px;}div#mbig div#map div#map_content div#i_5_3{z-index:6;left:304px;top:260px;} +div#mbig div#map div#map_content div#i_5_4{z-index:6;left:340px;top:240px;}div#mbig div#map div#map_content div#i_5_5{z-index:6;left:376px;top:220px;} +div#mbig div#map div#map_content div#i_5_6{z-index:7;left:412px;top:200px;}div#mbig div#map div#map_content div#i_5_7{z-index:8;left:448px;top:180px;} +div#mbig div#map div#map_content div#i_5_8{z-index:9;left:484px;top:160px;}div#mbig div#map div#map_content div#i_5_9{z-index:10;left:520px;top:140px;} +div#mbig div#map div#map_content div#i_5_10{z-index:11;left:556px;top:120px;}div#mbig div#map div#map_content div#i_5_11{z-index:12;left:592px;top:100px;} +div#mbig div#map div#map_content div#i_5_12{z-index:13;left:628px;top:80px;}div#mbig div#map div#map_content div#i_6_0{z-index:7;left:233px;top:340px;} +div#mbig div#map div#map_content div#i_6_1{z-index:7;left:269px;top:320px;}div#mbig div#map div#map_content div#i_6_2{z-index:7;left:305px;top:300px;} +div#mbig div#map div#map_content div#i_6_3{z-index:7;left:341px;top:280px;}div#mbig div#map div#map_content div#i_6_4{z-index:7;left:377px;top:260px;} +div#mbig div#map div#map_content div#i_6_5{z-index:7;left:413px;top:240px;}div#mbig div#map div#map_content div#i_6_6{z-index:7;left:449px;top:220px;} +div#mbig div#map div#map_content div#i_6_7{z-index:8;left:485px;top:200px;}div#mbig div#map div#map_content div#i_6_8{z-index:9;left:521px;top:180px;} +div#mbig div#map div#map_content div#i_6_9{z-index:10;left:557px;top:160px;}div#mbig div#map div#map_content div#i_6_10{z-index:11;left:593px;top:140px;} +div#mbig div#map div#map_content div#i_6_11{z-index:12;left:629px;top:120px;}div#mbig div#map div#map_content div#i_6_12{z-index:13;left:665px;top:100px;} +div#mbig div#map div#map_content div#i_7_0{z-index:8;left:270px;top:360px;}div#mbig div#map div#map_content div#i_7_1{z-index:8;left:306px;top:340px;} +div#mbig div#map div#map_content div#i_7_2{z-index:8;left:342px;top:320px;}div#mbig div#map div#map_content div#i_7_3{z-index:8;left:378px;top:300px;} +div#mbig div#map div#map_content div#i_7_4{z-index:8;left:414px;top:280px;}div#mbig div#map div#map_content div#i_7_5{z-index:8;left:450px;top:260px;} +div#mbig div#map div#map_content div#i_7_6{z-index:8;left:486px;top:240px;}div#mbig div#map div#map_content div#i_7_7{z-index:8;left:522px;top:220px;} +div#mbig div#map div#map_content div#i_7_8{z-index:9;left:558px;top:200px;}div#mbig div#map div#map_content div#i_7_9{z-index:10;left:594px;top:180px;} +div#mbig div#map div#map_content div#i_7_10{z-index:11;left:630px;top:160px;}div#mbig div#map div#map_content div#i_7_11{z-index:12;left:666px;top:140px;} +div#mbig div#map div#map_content div#i_7_12{z-index:13;left:702px;top:120px;}div#mbig div#map div#map_content div#i_8_0{z-index:9;left:307px;top:380px;} +div#mbig div#map div#map_content div#i_8_1{z-index:9;left:343px;top:360px;}div#mbig div#map div#map_content div#i_8_2{z-index:9;left:379px;top:340px;} +div#mbig div#map div#map_content div#i_8_3{z-index:9;left:415px;top:320px;}div#mbig div#map div#map_content div#i_8_4{z-index:9;left:451px;top:300px;} +div#mbig div#map div#map_content div#i_8_5{z-index:9;left:487px;top:280px;}div#mbig div#map div#map_content div#i_8_6{z-index:9;left:523px;top:260px;} +div#mbig div#map div#map_content div#i_8_7{z-index:9;left:559px;top:240px;}div#mbig div#map div#map_content div#i_8_8{z-index:9;left:595px;top:220px;} +div#mbig div#map div#map_content div#i_8_9{z-index:10;left:631px;top:200px;}div#mbig div#map div#map_content div#i_8_10{z-index:11;left:667px;top:180px;} +div#mbig div#map div#map_content div#i_8_11{z-index:12;left:703px;top:160px;}div#mbig div#map div#map_content div#i_8_12{z-index:13;left:739px;top:140px;} +div#mbig div#map div#map_content div#i_9_0{z-index:10;left:344px;top:400px;}div#mbig div#map div#map_content div#i_9_1{z-index:10;left:380px;top:380px;} +div#mbig div#map div#map_content div#i_9_2{z-index:10;left:416px;top:360px;}div#mbig div#map div#map_content div#i_9_3{z-index:10;left:452px;top:340px;} +div#mbig div#map div#map_content div#i_9_4{z-index:10;left:488px;top:320px;}div#mbig div#map div#map_content div#i_9_5{z-index:10;left:524px;top:300px;} +div#mbig div#map div#map_content div#i_9_6{z-index:10;left:560px;top:280px;}div#mbig div#map div#map_content div#i_9_7{z-index:10;left:596px;top:260px;} +div#mbig div#map div#map_content div#i_9_8{z-index:10;left:632px;top:240px;}div#mbig div#map div#map_content div#i_9_9{z-index:10;left:668px;top:220px;} +div#mbig div#map div#map_content div#i_9_10{z-index:11;left:704px;top:200px;}div#mbig div#map div#map_content div#i_9_11{z-index:12;left:740px;top:180px;} +div#mbig div#map div#map_content div#i_9_12{z-index:13;left:776px;top:160px;}div#mbig div#map div#map_content div#i_10_0{z-index:11;left:381px;top:420px;} +div#mbig div#map div#map_content div#i_10_1{z-index:11;left:417px;top:400px;}div#mbig div#map div#map_content div#i_10_2{z-index:11;left:453px;top:380px;} +div#mbig div#map div#map_content div#i_10_3{z-index:11;left:489px;top:360px;}div#mbig div#map div#map_content div#i_10_4{z-index:11;left:525px;top:340px;} +div#mbig div#map div#map_content div#i_10_5{z-index:11;left:561px;top:320px;}div#mbig div#map div#map_content div#i_10_6{z-index:11;left:597px;top:300px;} +div#mbig div#map div#map_content div#i_10_7{z-index:11;left:633px;top:280px;}div#mbig div#map div#map_content div#i_10_8{z-index:11;left:669px;top:260px;} +div#mbig div#map div#map_content div#i_10_9{z-index:11;left:705px;top:240px;}div#mbig div#map div#map_content div#i_10_10{z-index:11;left:741px;top:220px;} +div#mbig div#map div#map_content div#i_10_11{z-index:12;left:777px;top:200px;}div#mbig div#map div#map_content div#i_10_12{z-index:13;left:813px;top:180px;} +div#mbig div#map div#map_content div#i_11_0{z-index:12;left:418px;top:440px;}div#mbig div#map div#map_content div#i_11_1{z-index:12;left:454px;top:420px;} +div#mbig div#map div#map_content div#i_11_2{z-index:12;left:490px;top:400px;}div#mbig div#map div#map_content div#i_11_3{z-index:12;left:526px;top:380px;} +div#mbig div#map div#map_content div#i_11_4{z-index:12;left:562px;top:360px;}div#mbig div#map div#map_content div#i_11_5{z-index:12;left:598px;top:340px;} +div#mbig div#map div#map_content div#i_11_6{z-index:12;left:634px;top:320px;}div#mbig div#map div#map_content div#i_11_7{z-index:12;left:670px;top:300px;} +div#mbig div#map div#map_content div#i_11_8{z-index:12;left:706px;top:280px;}div#mbig div#map div#map_content div#i_11_9{z-index:12;left:742px;top:260px;} +div#mbig div#map div#map_content div#i_11_10{z-index:12;left:778px;top:240px;}div#mbig div#map div#map_content div#i_11_11{z-index:12;left:814px;top:220px;} +div#mbig div#map div#map_content div#i_11_12{z-index:13;left:850px;top:200px;}div#mbig div#map div#map_content div#i_12_0{z-index:13;left:455px;top:460px;} +div#mbig div#map div#map_content div#i_12_1{z-index:13;left:491px;top:440px;}div#mbig div#map div#map_content div#i_12_2{z-index:13;left:527px;top:420px;} +div#mbig div#map div#map_content div#i_12_3{z-index:13;left:563px;top:400px;}div#mbig div#map div#map_content div#i_12_4{z-index:13;left:599px;top:380px;} +div#mbig div#map div#map_content div#i_12_5{z-index:13;left:635px;top:360px;}div#mbig div#map div#map_content div#i_12_6{z-index:13;left:671px;top:340px;} +div#mbig div#map div#map_content div#i_12_7{z-index:13;left:707px;top:320px;}div#mbig div#map div#map_content div#i_12_8{z-index:13;left:743px;top:300px;} +div#mbig div#map div#map_content div#i_12_9{z-index:13;left:779px;top:280px;}div#mbig div#map div#map_content div#i_12_10{z-index:13;left:815px;top:260px;} +div#mbig div#map div#map_content div#i_12_11{z-index:13;left:851px;top:240px;}div#mbig div#map div#map_content div#i_12_12{z-index:13;left:887px;top:220px;} +div.map div#map div#map_rulers{width:540px;height:316px;left:5px;top:34px;z-index:30;} +div.map div#map div#map_rulers #mx0{left:9px;top:172px;}div.map div#map div#map_rulers #mx1{left:45px;top:192px;} +div.map div#map div#map_rulers #mx2{left:81px;top:212px;}div.map div#map div#map_rulers #mx3{left:117px;top:232px;} +div.map div#map div#map_rulers #mx4{left:153px;top:252px;}div.map div#map div#map_rulers #mx5{left:189px;top:272px;} +div.map div#map div#map_rulers #mx6{left:225px;top:292px;}div.map div#map div#map_rulers #my0{left:9px;top:128px;} +div.map div#map div#map_rulers #my1{left:45px;top:108px;}div.map div#map div#map_rulers #my2{left:81px;top:88px;} +div.map div#map div#map_rulers #my3{left:117px;top:68px;}div.map div#map div#map_rulers #my4{left:153px;top:48px;} +div.map div#map div#map_rulers #my5{left:189px;top:28px;}div.map div#map div#map_rulers #my6{left:225px;top:8px;} +div#mbig div#map div#map_rulers{width:971px;height:550px;top:0;left:0;z-index:10;} +div#mbig div#map div#map_rulers div#mx0{left:4px;top:288px;}div#mbig div#map div#map_rulers div#mx1{left:40px;top:308px;} +div#mbig div#map div#map_rulers div#mx2{left:76px;top:328px;}div#mbig div#map div#map_rulers div#mx3{left:112px;top:348px;} +div#mbig div#map div#map_rulers div#mx4{left:148px;top:368px;}div#mbig div#map div#map_rulers div#mx5{left:184px;top:388px;} +div#mbig div#map div#map_rulers div#mx6{left:220px;top:408px;}div#mbig div#map div#map_rulers div#mx7{left:256px;top:428px;} +div#mbig div#map div#map_rulers div#mx8{left:292px;top:448px;}div#mbig div#map div#map_rulers div#mx9{left:328px;top:469px;} +div#mbig div#map div#map_rulers div#mx10{left:364px;top:489px;}div#mbig div#map div#map_rulers div#mx11{left:400px;top:509px;} +div#mbig div#map div#map_rulers div#mx12{left:436px;top:529px;}div#mbig div#map div#map_rulers div#my0{left:4px;top:244px;} +div#mbig div#map div#map_rulers div#my1{left:40px;top:224px;}div#mbig div#map div#map_rulers div#my2{left:76px;top:204px;} +div#mbig div#map div#map_rulers div#my3{left:112px;top:184px;}div#mbig div#map div#map_rulers div#my4{left:148px;top:164px;} +div#mbig div#map div#map_rulers div#my5{left:184px;top:144px;}div#mbig div#map div#map_rulers div#my6{left:220px;top:124px;} +div#mbig div#map div#map_rulers div#my7{left:256px;top:104px;}div#mbig div#map div#map_rulers div#my8{left:292px;top:84px;} +div#mbig div#map div#map_rulers div#my9{left:328px;top:64px;}div#mbig div#map div#map_rulers div#my10{left:364px;top:43px;} +div#mbig div#map div#map_rulers div#my11{left:400px;top:23px;}div#mbig div#map div#map_rulers div#my12{left:436px;top:3px;} +div#mbig div#map div#map_rulers div#mapa{width:960px;height:548px;}div.map h1 div{float:left;} +div.map div#dmain{position:relative;top:-7px;left:25px;z-index:100;margin-bottom:-16px;} +div.map img#detailed_map{float:left;position:relative;left:15px;margin-bottom:15px;} +div.map div#map_details{float:right;margin-top:25px;margin-right:3px;}div.map div#map_details table{margin-bottom:15px;} +div.map table#options{clear:both;margin:0 25px;}div.map table#raidFavs{margin:0 auto;} +div.map table#raidDetails{margin:25px auto 0;}div.player table{margin-top:25px;} +div.player table#profile{margin-top:0;}div.player table#edit{margin-top:0;}div.player table#links{margin-top:0;} +div.player table#change_pass{margin-top:0;}div.player table#gpack{margin-top:0;} +div.player div#gpack_popup{width:442px;height:290px;padding:30px;position:absolute;z-index:80;top:80px;border:0 solid #000;} +div.player div#gpack_popup img.logo{float:left;margin-right:20px;}div.player div#gpack_popup ul{margin-top:20px;margin-left:0;padding-left:25px;} +div.player div#gpack_popup div.btn{position:absolute;bottom:20px;width:442px;text-align:center;} +div.player div#gpack_popup div#gpack_activate{display:none;}div.player div#gpack_popup div#gpack_activate img#preview{margin:10px 0;} +div.player p.ie_notice{padding:6px;border:1px dashed #C0C0C0;}div.alliance table#member{margin-top:25px;} +div.alliance table#rights{margin-top:10px;}div.alliance table#medals{margin-top:25px;} +div.alliance table#own{margin-top:25px;}div.alliance table#chat_input{background-color:white;} +div.alliance div#rooms img.del{position:relative;top:3px;}div.alliance span.roomselector{float:left;width:140px;height:17px;padding:3px;border:1px solid #C0C0C0;background-color:#FFF;} +div.alliance span.roomselectorActive{float:left;width:140px;height:17px;padding:3px;border:1px solid #71D000;background-color:#F0FFF0;} +div.alliance div.chatHeader{border:1px solid #C0C0C0;width:496px;padding:2px;height:16px;background-color:#FFF;text-align:center;} +div.alliance table.dipl,div.alliance div#box{float:left;}div.alliance table.infos{float:right;} +div.alliance table#own{margin-top:25px;}div.alliance table#foreign{margin-top:10px;} +div.alliance table#existing{margin-top:10px;}div.alliance table#tip{margin-top:25px;} +div.alliance div#submenu{position:absolute;right:29px;top:104px;}div.alliance div#submenu img{float:right;margin-left:5px;} +div.forum a.mad{position:relative;left:-15px;top:50px;margin-left:50%;}div.forum img.switch_admin{margin-left:5px;} +div.forum h4{margin-top:0;margin-right:0;margin-bottom:15px;margin-left:5px;}div.forum table#public,div.forum table#confederation,div.forum table#alliance,div.forum table#closed{margin-top:10px;} +div.forum table#conf_list,div.forum table#ally_list,div.forum table#user_list,div.forum table#non_conf_list,div.forum table#open_user{margin-top:15px;} +div.statistics table{margin-top:5px;}div.statistics div#submenu{position:absolute;right:29px;top:107px;} +div.statistics div#submenu img{float:right;margin-left:5px;}div.statistics table.top10{margin-top:10px;margin-bottom:5px;} +div.statistics div.graph{padding-top:20px;padding-left:60px;width:430px;height:220px;} +div.statistics div.legende{border:solid black 1px;background-color:#ebebeb;padding:3px 5px;float:left;line-height:17px;} +div.statistics div.legende div.box{width:9px;height:9px;font-size:0;border:solid 1px black;float:left;margin:4px 4px 0;} +div.reports td.report_content table{margin-bottom:15px;}div.messages div.msg_head{width:440px;height:41px;} +div.messages div.msg_content{width:440px;padding-top:3px;position:relative;}div.messages div.msg_content img#label{float:left;margin-left:12px;} +div.messages div.msg_content div#heading{float:left;padding-left:8px;}div.messages div.msg_content div#heading *{padding:0;margin:0;height:19px;} +div.messages div.msg_content div.line{width:440px;height:30px;}div.messages div.msg_content p.btn{margin:7px 0 0;text-align:center;} +div.messages div.msg_foot{width:440px;height:18px;}div.messages div#read_content div#heading div{width:250px;} +div.messages div#read_content div#time{float:right;padding-right:12px;margin-top:2px;} +div.messages div#read_content div#time div{padding:0;margin:0;height:19px;text-align:right;} +div.messages div.message{width:412px;min-height:256px;border:none;padding:0 0 20px;margin-left:12px;overflow-x:auto;overflow-y:hidden;line-height:16px;} +div.messages #write_content div#heading input{border:none;width:267px;}div.messages #write_content a#adbook{width:48px;height:29px;float:right;display:block;margin:7px 12px 0;} +div.messages #write_content textarea{width:412px;height:258px;border:none;padding:0;margin-left:12px;line-height:16px;} +div.messages div#adressbook{width:405px;height:273px;position:absolute;left:1px;bottom:-9px;z-index:80;text-align:center;padding:15px;} +div.messages div#adressbook img#close{position:absolute;width:20px;height:20px;z-index:81;border:0 solid #000;left:404px;top:9px;} +div.messages div#adressbook span.enough{text-align:center;margin-top:6px;}div.messages table#friendlist{margin-top:5px;} +div.messages div#block{width:430px;height:419px;position:relative;margin:0 auto;} +div.messages div#block textarea{width:265px;height:256px;position:absolute;top:40px;left:80px;border:none;padding:0;line-height:16px;} +div.messages div#block p.btn{position:relative;top:305px;}div#build p.switch{text-align:right;} +div#build h2{margin:15px 0 10px;}div#build a.build_logo img{margin-left:5px;position:absolute;right:13px;top:35px;} +div#build p.build_desc{padding-right:70px;}div#build table.under_progress{margin-top:15px;} +div#build.gid0 h1{margin-bottom:25px;}div#build.gid0 h2{margin-bottom:15px;}div#build.gid0 table.new_building{margin-bottom:25px;} +div#build.gid15 h2{margin-top:25px;}div#build.gid15 select.dropdown{width:200px;} +div#build.gid15 input#btn_demolish{margin-left:15px;position:relative;top:5px;}div#build a.build_logo img.g16{top:45px;} +div#build.gid16 div#textmenu{white-space:nowrap;position:relative;}div#build.gid16 div#textmenu a{background-color:#FFF;} +div#build.gid16 h4{margin-top:20px;}div#build.gid16 table.troop_details{margin-bottom:15px;} +div#build.gid16 table#raidList{margin-bottom:10px;}div#build.gid17 table.send_res{float:left;} +div#build.gid17 table.res_target{float:left;margin-left:20px;}div#build.gid17 table.buy_select{float:left;} +div#build.gid17 table#ratio_select{margin-left:20px;}div#build.gid17 table#bid_select{margin-left:20px;} +div#build.gid17 table#range{margin-top:20px;}div#build.gid17 p#submitText{margin-top:5px;display:block;} +div#build.gid17 p#submitButton{margin-top:5px;display:none;}div#build.gid17 table.traders{margin-bottom:15px;} +div#build.gid17 p.info{margin-top:5px;}div#build.gid17 p.info img{margin-right:2px;} +div#build.gid26 table#main{margin-top:15px;}div#build.gid27 table#near{margin-top:20px;} +div#build.gid40 p.build_desc{padding-right:200px;}div#build.gid40 p.nam{text-align:center;} +body.manual img.troops{position:absolute;right:10px;top:80px;}body.manual img.buildings{position:absolute;right:10px;top:170px;} +body.manual img.navi{position:absolute;z-index:82;left:145px;top:420px;}body.manual table#troop_info{margin-top:6px;margin-right:0;margin-bottom:30px;margin-left:2px;} +body.manual div#t_desc{margin-top:30px;}body.manual img#big_unit{position:absolute;left:260px;top:95px;} +body.manual div#prereqs{margin-top:15px;}body.manual img.building{float:right;margin-top:-40px;margin-right:25px;margin-bottom:10px;margin-left:10px;} +body.manual img.g16{margin-top:0;margin-right:25px;margin-bottom:10px;margin-left:10px;} +body.manual img.g40{margin-top:-20px;margin-right:15px;margin-bottom:10px;margin-left:10px;} +body.manual p.medals{text-align:center;}body.manual ul.goldclub{padding-left:25px;margin-top:0;} +div#side_info div#anm{border:1px #555 solid;position:absolute;z-index:1000;}div#side_info div#qge{padding:4px;} +div#side_info div#qge img{display:block;cursor:pointer;position:relative;}div.quest div#qstd{width:415px;position:relative;z-index:10;} +div.quest div#qstd span#qst_accpt a.qle,div.quest div#qstd span#qst_accept a.qri{display:block;} +div.quest div#qstd span#qst_accpt a.qle{float:left;text-align:left;}div.quest div#qstd span#qst_accpt a.qri{float:right;text-align:right;} +div.quest div#qstd span.qcoords input{width:60px;}div.quest div.rew p.ta_aw{margin:0 0 5px;} +div.quest div#qstd input.qb1{float:left;margin:0 12px;}div.quest div#qstd input.qb2{float:right;margin:0 12px;} +div.a2b p.btn{text-align:left;}div.a2b .slots{margin-top:5px;margin-bottom:10px;} +div.a2b table#troops{margin-top:5px;}div.a2b table#coords{margin-top:25px;margin-right:0;margin-bottom:10px;margin-left:5px;} +div.a2b table.troop_details{margin:15px 0;}div.cropfinder div.cropfinder_input{margin:15px 0;padding:5px;} +div.cropfinder div.cropfinder_input div.row{height:19px;line-height:19px;margin:10px 0;vertical-align:middle;} +div.cropfinder div.cropfinder_input div.row span.cropfinder_head{width:250px;display:block;float:left;} +div.cropfinder div.cropfinder_input div.row input.text{margin:0 5px;width:50px;} +div.cropfinder div.cropfinder_input div.row input.radio{position:relative;top:1px;margin-right:1px;} +body.presto div.cropfinder div.cropfinder_input div.row input.radio{top:0;}body.ie6 div.cropfinder div.cropfinder_input div.row input.radio,body.ie7 div.cropfinder div.cropfinder_input div.row input.radio{top:-2px;} +div.cropfinder div.cropfinder_input div.row input.check{position:relative;top:2px;} +div.cropfinder div.cropfinder_input p.btn{margin-top:20px;text-align:left;}div.plus table.lang_ltr{direction:ltr;} +div.plus table.lang_rtl{direction:rtl;}div.plus .none{text-align:center;}div.plus p.btn{text-align:left;} +div.plus img.gold{margin-right:2px;}div.plus p#product_selection{text-align:right;margin:2px 0;} +div.plus p#product_selection select.dropdown{padding:2px 3px;}div.plus p#orders_link{text-align:right;margin:2px 0;} +div.plus div#products{width:512px;margin-left:-6px;}div.plus div#products table.product{margin:10px 6px 5px;} +body.ie6 div.plus div#products table.product{margin:10px 5px 5px;}div.plus div#products table.lang_ltr{float:left;} +div.plus div#products table.lang_rtl{float:right;}div.plus p#plus_info{padding-top:30px;text-align:center;} +div.plus table.rate_details{margin-top:10px;margin-bottom:25px;}div.plus table#open_orders{margin-top:10px;} +div.plus table#gold_features{margin-top:25px;}div.plus table.plusFunctions{margin-bottom:25px;} +div.warsim table#select{margin-top:10px;}div.warsim table#attacker{float:left;}div.warsim table#defender{float:right;} +div.warsim table.fill_in{margin-bottom:15px;}div.warsim table.results{margin-top:15px;} +div.banned_cn table{margin-bottom:15px;line-height:16px;}div.banned_cn table th,div.banned_cn table td{padding:2px 3px;} +div.banned_cn table td{text-align:center;}div.banned_cn table .ra{text-align:right;padding-right:7px;width:5%;white-space:nowrap;} +div.banned_cn table .pla{text-align:left;padding-left:7px;}div.banned_cn table .rea,div.banned_cn table .dur,div.banned_cn table .al{width:25%;} +div.banned_cn .no_info{color:#C0C0C0;}#medal_mouseover{width:250px;position:absolute;z-index:999;border:1px solid #BBB;padding:2px 5px;background-color:#F5F5F5;} +#medal_mouseover table{background:none;}#medal_mouseover table th,#medal_mouseover table td{background:none;} +#medal_mouseover table th{width:50px;padding-right:10px;}.left{text-align:left;} +.right{text-align:right;}.center{text-align:center;}.middle{vertical-align:middle;} +.nbr{white-space:nowrap;}input.disable{background-color:#EEE;border-color:#AAA;} +.f16{font-size:16pt;}.f135{font-size:13.5pt;}.f10{font-size:10pt;}.f9{font-size:9pt;line-height:140%;font-weight:normal;} +.f8{font-size:8pt;}.f75{font-size:7.5pt;}.f7{font-size:7pt;}.f6{font-size:6pt;}.b{font-weight:bold;} +.t{font-weight:normal;}.e{color:#FF8000;}.c{color:#C0C0C0;}.c0{color:#000;}.c1{color:#71D000;} +.c2{color:#FF8000;}.c3{color:#228B22;}.c4{color:#F2C700;}.c5{color:#F00;}.c6{color:#B500A3;} +.dashed{border:1px dashed #C0C0C0;border-collapse:separate;}#lmid3 .nb{position:absolute;width:200px;z-index:5;left:580px;top:63px;background-color:#fff;} +#igm{border:0;font-family:Verdana,Arial,Helvetica,sans-serif;}input.std{font-weight:bold;font-size:8pt;height:14pt;} +.old_p1{border-style:dashed;border-width:1px;border-color:#C0C0C0;padding:6px;}.p2{border-style:dashed;border-width:1px;border-color:#C0C0C0;padding:3px;} +.tbg{background-color:#C0C0C0;width:100%;text-align:center;}table.tbg tr{background-color:#FFF;} +.rbg{background-color:#FFF;font-weight:bold;background-image:url(../../img/a/c2.gif);} +table.tbg tr.cbg1 td,td.cbg1{background-color:#F5F5F5;}td.cbg2{background-color:#71D000;} +.dflags1{position:relative;float:right;text-align:center;font-size:6pt;color:#FFF;padding-left:1px;padding-right:1px;padding-top:1px;} +.dflags2{padding-top:1px;}.ddb{float:left;}.desc2div{overflow:hidden;width:235px;} +div.activation_time{text-align:center;padding-top:5px;padding-left:5px;}input.text,select.dropdown,textarea{border:1px solid #71D000;padding:2px 3px;margin:0;} +body.ie input.radio,body.gecko input.radio,body.webkit input.radio,body.ie input.check,body.gecko input.check,body.webkit input.check{margin:0;padding:0;width:13px;height:13px;} +table{border-collapse:separate;background-color:#C0C0C0;line-height:16px;width:100%;empty-cells:show;} +table td,table th{vertical-align:middle;padding:0;}table thead th,table tfoot th{background-image:url(../../img/a/c2.gif);background-repeat:repeat;text-align:center;} +table thead td,table tfoot td{background-color:#F3F3F3;text-align:center;}table tbody th,table tbody td{background-color:#FFF;text-align:left;} +table tr.hl th,table tr.hl td{background-color:#F0FFF0;border-top:1px solid #71D000;border-bottom:1px solid #71D000;} +table tr.hl th.fc,table tr.hl td.fc{border-left:1px solid #71D000;}table tr.hl th.lc,table tr.hl td.lc{border-right:1px solid #71D000;} +table td.empty{height:5px;padding:0;}div#side_info table{width:auto;background-color:#FFF;} +div#side_info table td{padding:0;line-height:18px;text-align:left;white-space:nowrap;} +div#side_info table thead td{background-color:#FFF;height:22px;}div#side_info td.dot{width:10px;padding:0 6px;} +div#side_info td.link{padding-right:10px;}div.login table{border:1px dashed #C0C0C0;background-color:#FFF;} +div.login table tr.top th,div.login table tr.top td{padding-top:9px;padding-bottom:2px;} +div.login table tr.btm th,div.login table tr.btm td{padding-top:2px;padding-bottom:9px;} +div.login table th{width:38%;padding-left:20px;}div.login table td{width:62%;}div.login table td input.text{width:113px;} +div.signup table{border:1px dashed #C0C0C0;background-color:#FFF;}div.signup table tr.top th,div.signup table tr.top td{padding-top:9px;padding-bottom:2px;} +div.signup table tr.btm th,div.signup table tr.btm td{padding-top:2px;padding-bottom:9px;} +div.signup table th,div.signup table td{padding-top:2px;padding-bottom:2px;}div.signup input.text{width:113px;} +div.signup input.radio{position:relative;top:2px;margin-left:5px;float:left;}div.signup input.check{position:relative;top:2px;margin-right:5px;float:left;} +div.signup table#sign_input th{width:38%;padding-left:20px;}div.signup table#sign_input td{width:62%;} +div.signup table#sign_select{line-height:19px;}div.signup table#sign_select th,.signup #sign_select td{padding-left:10px;} +div.signup table#sign_select td.nat{width:35%;}div.signup table#sign_select td.pos1{width:20%;} +div.signup table#sign_select td.pos2{width:45%;}div.activate table{border:1px dashed #C0C0C0;background-color:#FFF;} +div.activate table tr.top th,div.activate table tr.top td{padding-top:9px;padding-bottom:2px;} +div.activate table tr.btm th,div.activate table tr.btm td{padding-top:2px;padding-bottom:9px;} +div.activate table th{width:38%;padding-left:20px;}div.activate table td{width:62%;} +div.village1 table{line-height:19px;background-color:#FFF;}div.village1 table thead th{background-image:none;background-color:#FFF;text-align:left;} +div.village1 table tbody td{padding:1px 2px;}div.village1 table td.ico{width:18px;padding-left:4px;} +div.village1 table td.num{text-align:right;white-space:nowrap;}div.village1 table#movements td{padding:1px 0;} +div.village1 table#movements td.empty{height:38px;}div.village1 table#movements td.typ{width:32px;vertical-align:top;} +div.village1 table#movements td.typ img{float:left;position:relative;top:3px;margin-top:0;margin-right:1px;margin-bottom:0;margin-left:4px;} +div.village1 table#movements div.mov{float:left;}div.village1 table#movements div.dur_r{float:right;padding-right:2px;} +div.village1 table#movements td.wrap{line-height:10px;}div.village1 table#movements div.dur_l{float:left;padding-bottom:2px;} +div.village1 table#production td.res{width:20%;}div.village1 table#production td.per{width:40%;} +div.village1 table#troops td.un{width:80%;}div.village1 table#building_contract{width:502px;} +div.village2 table#building_contract{line-height:19px;width:502px;background:none;} +div.village2 table#building_contract thead th{background:none;text-align:left;}div.village2 table#building_contract tbody td{background:none;padding:1px 2px;} +div.village2 table#building_contract td.ico{width:18px;padding-left:4px;}div.village3 table th,div.village3 table td{padding:2px 4px;} +div.village3 table tbody td{white-space:nowrap;text-align:center;}div.village3 table tbody td.vil{white-space:normal;text-align:left;} +div.village3 table#overview td{white-space:normal;}div.village3 table#overview td.att{width:15%;} +div.village3 table#overview td.bui{width:10%;}div.village3 table#overview td.tro{width:15%;} +div.village3 table#overview td.tra{width:15%;white-space:nowrap;}div.village3 table#ressources tbody td{text-align:right;} +div.village3 table#ressources td.vil{text-align:left;}div.village3 table#ressources td.lum{width:15%;} +div.village3 table#ressources td.clay{width:15%;}div.village3 table#ressources td.iron{width:15%;} +div.village3 table#ressources td.crop{width:15%;}div.village3 table#ressources td.tra{width:10%;} +div.village3 table#warehouse th,div.village3 table#warehouse td{padding:2px;}div.village3 table#warehouse td.vil{padding-left:4px;} +div.village3 table#warehouse td.lum{width:10%;}div.village3 table#warehouse td.clay{width:10%;} +div.village3 table#warehouse td.iron{width:10%;}div.village3 table#warehouse td.max123{width:15%;} +div.village3 table#warehouse td.crop{width:10%;}div.village3 table#warehouse td.max4{width:15%;} +div.village3 table#culture_points td.cps{width:15%;}div.village3 table#culture_points td.cel{width:20%;} +div.village3 table#culture_points td.tro{width:20%;white-space:normal;}div.village3 table#culture_points td.slo{width:10%;} +div.village3 table.vil_troops th{padding:2px 7px;}div.village3 table.vil_troops tbody th{width:22%;} +div.village3 table.vil_troops tbody td{padding:2px;}div.village3 table.vil_troops tbody.upkeep td{text-align:left;padding-left:7px;} +div.map table.tableNone{background-color:#FFF;}div.map table.tableNone thead th{text-align:left;background-image:none;background-color:#FFF;} +div.map table.tableNone thead th div{float:left;}div.map table.tableNone tbody td,div.map table.tableNone tbody th{padding:1px 4px;} +div#map table#map_infobox{width:170px;line-height:19px;}div#map table#map_infobox th,div#map table#map_infobox td{line-height:15px;padding:1px 5px;} +div#map table#map_infobox thead th{text-align:center;}div#map table#map_infobox tbody th{width:45%;} +div#map table.default,div#map table.empty,div#map table.oasis_empty{background-color:#F0F0F0;} +div#map table.village,div#map table.oasis{background-color:#C0C0C0;}div#map table.default thead th,div#map table.empty thead th,div#map table.oasis_empty thead th{background-image:none;background-color:#FFF;} +div#map table.village thead th,div#map table.oasis thead th{background-image:url(../../img/a/c2.gif);background-repeat:repeat;} +div.map table#village_info{width:227px;}div.map table#village_info tbody th{width:50%;} +div.map table#village_info tbody td{font-weight:bold;}div.map table#troop_info{width:227px;} +div.map table#troop_info .ico{width:10%;}div.map table#troop_info .val{width:10%;text-align:right;padding-left:10px;} +div.map table#troop_info .val{font-weight:bold;}div.map table#troop_info ul{margin-top:0;margin-right:0;margin-bottom:0;margin-left:2px;padding-left:12px;} +div.map table#troop_info.rep tbody{line-height:16px;}div.map table#troop_info.rep img{float:left;margin-right:5px;} +div.map table#distribution{width:227px;}div.map table#distribution .ico{width:10%;} +div.map table#distribution .val{width:10%;text-align:right;padding-left:10px;}div.map table#distribution .val{font-weight:bold;} +div.map table#options{width:502px;}div.map table#options tbody td{padding-left:4px;} +div.map table#raidFavs{width:502px;}div.map table#raidFavs thead td{white-space:nowrap;} +div.map table#raidFavs th,div.map table#raidFavs td{padding:2px 7px;text-align:center;} +div.map table#raidFavs td.del{padding:2px;width:4%;}div.map table#raidFavs td.vil{text-align:left;} +div.map table#raidFavs td.vil img{float:right;}div.map table#raidFavs td.aligned_coords{width:94px;padding:2px 0;} +div.map table#raidFavs td.aligned_coords div.cox,div.map table#raidFavs td.aligned_coords div.coy{width:42px;} +div.map table#raidFavs td.rep{text-align:left;width:20%;white-space:nowrap;}div.map table#raidFavs td.rep img{float:left;margin-right:3px;} +div.map table#raidFavs td.goods{width:10%;}div.map table#raidFavs td.lost{width:10%;} +div.map table#raidDetails{width:502px;}div.map table#raidDetails th,div.map table#raidDetails td{padding:2px 7px;text-align:center;} +div.map table#raidDetails td.day{width:25px;height:100px;}div.map table#raidDetails td.day div.booty,div.map table#raidDetails td.day div.lost{position:relative;width:12px;height:100px;} +div.map table#raidDetails td.day div.booty{float:left;background-color:#CAFFC9;} +div.map table#raidDetails td.day div.booty div.value{background-color:#00BC00;}div.map table#raidDetails td.day div.lost{float:right;background-color:#FFD0B1;} +div.map table#raidDetails td.day div.lost div.value{background-color:#FF6F0F;}div.map table#raidDetails td.day div.value{width:100%;position:absolute;left:0;bottom:0;height:0;line-height:0;font-size:0;} +div.map table#raidDetails td.balance{text-align:left;}div.map table#raidDetails td.balance hr{border-color:#C0C0C0;} +div.map table#raidDetails td.day div.value.height100{height:100px;}div.map table#raidDetails td.day div.value.height95{height:95px;} +div.map table#raidDetails td.day div.value.height90{height:90px;}div.map table#raidDetails td.day div.value.height85{height:85px;} +div.map table#raidDetails td.day div.value.height80{height:80px;}div.map table#raidDetails td.day div.value.height75{height:75px;} +div.map table#raidDetails td.day div.value.height70{height:70px;}div.map table#raidDetails td.day div.value.height65{height:65px;} +div.map table#raidDetails td.day div.value.height60{height:60px;}div.map table#raidDetails td.day div.value.height55{height:55px;} +div.map table#raidDetails td.day div.value.height50{height:50px;}div.map table#raidDetails td.day div.value.height45{height:45px;} +div.map table#raidDetails td.day div.value.height40{height:40px;}div.map table#raidDetails td.day div.value.height35{height:35px;} +div.map table#raidDetails td.day div.value.height30{height:30px;}div.map table#raidDetails td.day div.value.height25{height:25px;} +div.map table#raidDetails td.day div.value.height20{height:20px;}div.map table#raidDetails td.day div.value.height15{height:15px;} +div.map table#raidDetails td.day div.value.height10{height:10px;}div.map table#raidDetails td.day div.value.height5{height:5px;} +div.map table#raidDetails td.day div.value.height0{height:1px;}div.player table td,div.player table th{padding:2px 7px;} +div.player tbody th{text-align:left;}div.player td{text-align:center;}div.player .none{text-align:center;} +div.player table#profile thead td{width:50%;}div.player table#profile td.details{width:50%;height:156px;padding:0;vertical-align:top;border-bottom:none;} +div.player table#profile td.details table{margin-top:0;background-color:#FFF;border-collapse:collapse;} +div.player table#profile td.details table th{width:50%;border-bottom:1px solid #C0C0C0;border-right:1px solid #C0C0C0;} +div.player table#profile td.details table td{text-align:left;border-bottom:1px solid #C0C0C0;} +div.player table#profile td.desc1{width:50%;padding:0 7px;vertical-align:middle;} +div.player table#profile td.details table td.desc2{border-bottom:0 solid transparent;vertical-align:middle;text-align:center;height:100%;} +div.player table#villages td.nam{text-align:left;}div.player table#villages td.hab{width:20%;} +div.player table#edit thead td{width:50%;}div.player table#edit tbody th{width:20%;white-space:nowrap;} +div.player table#edit tbody td{line-height:19px;}div.player table#edit input.text{width:94%;} +div.player table#edit td.birth input.day{float:left;width:17px;}div.player table#edit td.birth select.dropdown{float:left;width:60px;margin:auto 5px;padding:1px 2px;} +div.player table#edit td.birth input.year{float:left;width:30px;}div.player table#edit td.gend{text-align:left;} +div.player table#edit td.gend input.radio{position:relative;top:1px;margin-right:2px;} +body.presto div.player table#edit td.gend input.radio{top:0;}body.ie6 div.player table#edit td.gend input.radio,body.ie7 div.player table#edit td.gend input.radio{top:-2px;} +div.player table#edit td.desc1,div.player table#edit td.desc2{padding:0;}div.player table#edit td.desc1 textarea,div.player table#edit td.desc2 textarea{overflow-x:hidden;overflow-y:scroll;text-align:center;padding:0;} +div.player table#edit td.desc1 textarea{width:249px;height:264px;}div.player table#edit td.desc2 textarea{width:248px;height:158px;} +div.player table#medals td.typ{text-align:left;}div.player table#medals td.ra{width:15%;white-space:nowrap;} +div.player table#medals td.we{width:15%;}div.player table#medals td.bb{width:20%;} +div.player table.set td.sel{width:5%;text-align:center;}div.player table.set td{text-align:left;} +div.player table.set input.radio{position:relative;top:1px;}body.presto div.player table.set input.radio{top:0;} +body.ie6 div.player table.set input.radio,body.ie7 div.player table.set input.radio{top:-2px;} +div.player table#links td.nr input.text{width:25px;}div.player table#links td.nam input.text{width:150px;} +div.player table#links td.link input.text{width:255px;}div.player table#time tbody th{width:25%;} +div.player table#time select.dropdown{width:200px;}div.player table#adsettings tbody th{width:25%;} +div.player table#adsettings span.note{margin-left:10px;font-size:10px;}div.player table.account tbody th{width:50%;} +div.player table.account input.text{width:94%;}div.player table#change_pass td.note{text-align:left;} +div.player table.account table.sitter{background-color:transparent;margin:0;}div.player table.account table.sitter td{padding:0;vertical-align:top;} +div.player table.account table.sitter td.flags{text-align:left;}div.player table.account table.sitter td.name{padding-bottom:10px;} +div.player table.account td.container{padding:0;width:50%;}div.player table.account input.text{width:50%;} +div.player table.account span.count{margin-left:5px;}div.player table.account span.max{margin-left:5px;} +div.player table#del_acc td.del_selection{text-align:left;}div.player table#del_acc input.radio{position:relative;top:1px;} +body.presto div.player table#del_acc input.radio{top:0;}body.ie6 div.player table#del_acc input.radio,body.ie7 div.player table#del_acc input.radio{top:-2px;} +div.player table#gpack td{text-align:left;height:24px;}div.player table#gpack th.empty{height:5px;background-color:#f3f3f3;} +div.player table#gpack td.info{text-align:center;}div.player table#gpack td input.radio{position:relative;top:1px;margin-left:2px;margin-right:2px;} +body.presto div.player table#gpack td input.radio{top:0;}body.ie6 div.player table#gpack td input.radio,body.ie7 div.player table#gpack td input.radio{top:-2px;} +div.player table#gpack td input.text{margin-left:15px;width:220px;}div.player table#gpack td div.example{margin-left:22px;} +div.player table#download thead td{white-space:nowrap;}div.player table#download td.nam{text-align:left;} +div.player table#download td.size{width:22%;}div.player table#download td.act{width:22%;} +div.player table#download td.down{width:22%;}div.alliance table td,div.alliance table th{padding:2px 7px;} +div.alliance tbody th{text-align:left;}div.alliance td{text-align:center;}div.alliance .none{text-align:center;} +div.alliance td.abo{width:5%;}div.alliance table#profile thead td{width:50%;}div.alliance table#profile td.details{width:50%;height:156px;padding:0;vertical-align:top;border-bottom:none;} +div.alliance table#profile td.details table{margin-top:0;background-color:#FFF;border-collapse:collapse;} +div.alliance table#profile td.details table th{width:50%;border-bottom:1px solid #C0C0C0;border-right:1px solid #C0C0C0;} +div.alliance table#profile td.details table td{text-align:left;border-bottom:1px solid #C0C0C0;} +div.alliance table#profile td.desc1{width:50%;padding:0 7px;vertical-align:middle;} +div.alliance table#profile td.details table td.desc2{border-bottom:0 solid transparent;vertical-align:middle;text-align:center;height:100%;} +div.alliance table#member td.ra{width:5%;text-align:right;white-space:nowrap;}div.alliance table#member td.pla{text-align:left;} +div.alliance table#member td.hab{width:25%;}div.alliance table#member td.vil{width:20%;} +div.alliance table#member td.on{width:5%;}div.alliance table#offs td.sub{text-align:left;} +div.alliance table#offs td.sub img{float:left;}div.alliance table#offs td.sub div{padding-left:24px;} +div.alliance table#offs td.al{width:20%;white-space:nowrap;}div.alliance table#offs td.dat{width:23%;white-space:nowrap;} +div.alliance table#events td.event{text-align:left;}div.alliance table#events td.dat{width:25%;white-space:nowrap;} +div.alliance table.small_option{width:50%;}div.alliance table.small_option input.text{width:94%;} +div.alliance table.small_option tbody th{width:30%;}div.alliance td.sel{width:15%;} +div.alliance table#options td.val{text-align:left;}div.alliance table#name td{text-align:left;} +div.alliance table#name input.tag{width:50%;}div.alliance table#edit thead td{width:50%;} +div.alliance table#edit tbody th{width:30%;}div.alliance table#edit tbody td{line-height:19px;text-align:left;} +div.alliance table#edit input.text{width:94%;}div.alliance table#edit td.desc1,div.alliance table#edit td.desc2{padding:0;} +div.alliance table#edit td.desc1 textarea,div.alliance table#edit td.desc2 textarea{overflow-x:hidden;overflow-y:scroll;text-align:center;padding:0;} +div.alliance table#edit td.desc1 textarea{width:249px;height:264px;}div.alliance table#edit td.desc2 textarea{width:248px;height:140px;} +div.alliance table#medals td.typ{text-align:left;}div.alliance table#medals td.ra{width:15%;white-space:nowrap;} +div.alliance table#medals td.we{width:15%;}div.alliance table#medals td.bb{width:20%;} +div.alliance table#invitations td{text-align:left;}div.alliance table#invitations td.abo{text-align:center;} +div.alliance table.dipl,div.alliance div#box{width:60%;}div.alliance table.dipl td{text-align:left;} +div.alliance table.infos{width:37%;}div.alliance table.infos td{padding:2px;}div.alliance table td.none{text-align:center;} +div.alliance table td.acc{width:25%;text-align:center;}div.alliance table#diplomacy input.text{width:94%;} +div.alliance table#diplomacy input.radio{margin:3px;}div.alliance table#own td.wait{width:25%;} +td.wwrank{width:5%;text-align:center;white-space:nowrap;} +td.wwplayer{width:20%;text-align:center;white-space:nowrap;} +td.wwname{width:75%;text-align:center;white-space:nowrap;} +td.wwalliance{width:20%;text-align:center;white-space:nowrap;} +td.wwlevel{width:50%;text-align:center;white-space:nowrap;} +td.wwattack{width:50%;text-align:center;white-space:nowrap;} +div.forum table{width:502px;}div.forum table td,div.forum table th{padding:2px 7px;} +div.forum table td.ico{width:32px;text-align:center;padding:5px;white-space:nowrap;} +div.forum table td.ico a img{margin:2px;}div.forum table td.tit{padding:5px;}div.forum table td.cou{width:62px;text-align:center;} +div.forum table td.last{width:120px;text-align:right;padding-top:2px;padding-right:5px;padding-bottom:2px;padding-left:2px;white-space:nowrap;} +div.forum table td.none{text-align:center;}div.forum table td.navi_top,div.forum table td.navi_btm{float:right;text-align:right;margin-right:20px;} +div.forum table td.navi_btm{margin-top:15px;}div.forum h4{margin-top:0;margin-right:0;margin-bottom:15px;margin-left:5px;} +div.forum table#public,div.forum table#confederation,div.forum table#alliance,div.forum table#closed{margin-top:10px;} +div.forum table#posts td.poll{background-color:#FFF;padding:5px 2px;}div.forum table#posts td.pinfo{width:21%;vertical-align:top;} +div.forum table#posts td.pcontent{vertical-align:top;padding:0;}div.forum table#posts td.pcontent div{vertical-align:top;} +div.forum table#posts td.pcontent div.posted{float:left;padding:2px 10px 0;}div.forum table#posts td.pcontent div.admin{float:right;padding:2px 10px 0;} +div.forum table#posts td.pcontent div.admin img{margin-left:3px;}div.forum table#posts td.pcontent div.dotted{height:1px;width:100%;border-bottom:1px dotted #C0C0C0;padding:0;} +div.forum table#posts td.pcontent div.text{padding:4px 10px 30px;width:376px;min-height:70px;overflow-x:auto;} +div.forum table#posts td.pcontent div.edited{border-top:1px dotted #C0C0C0;padding:0 10px 2px;} +div.forum table#new_forum tbody th,div.forum table#edit_forum tbody th{width:30%;} +div.forum table#new_forum input.text,div.forum table#new_forum input.text{width:97%;} +div.forum table#conf_list td.ally,div.forum table#user_list td.ally,div.forum table#non_conf_list td.ally{width:70%;} +div.forum table#conf_list td.sel,div.forum table#non_conf_list td.sel,div.forum table#open_user td.sel{width:5%;text-align:center;} +div.forum table#conf_list td.tag,div.forum table#non_conf_list td.tag{width:25%;text-align:center;} +div.forum table#ally_list input.text,div.forum table#user_list input.text{width:95%;} +div.forum table#ally_list tag.tag,div.forum table#ally_list tag.ally,div.forum table#user_list tag.id,div.forum table#user_list tag.pla{width:40%;} +div.forum table#ally_list td.ad,div.forum table#user_list td.ad{width:20%;text-align:center;} +div.forum table#ally_list img.add,div.forum table#user_list img.add{cursor:pointer;} +div.forum table#new_topic tbody th,div.forum table#new_post tbody th,div.forum table#edit_post tbody th{width:87px;} +div.forum table#edit_topic tbody th{width:30%;}div.forum table#new_topic td.input_icons,div.forum table#new_post td.input_icons,div.forum table#edit_post td.input_icons{width:87px;text-align:center;vertical-align:top;padding:10px 3px 0;} +div.forum table#new_topic td.input_icons img,div.forum table#new_post td.input_icons img,div.forum table#edit_post td.input_icons img{cursor:pointer;} +div.forum table#new_topic td.input_icons img.smiley,div.forum table#new_post td.input_icons img.smiley,div.forum table#edit_post td.input_icons img.smiley{margin:3px 1px;} +div.forum table#new_topic textarea,div.forum table#new_post textarea,div.forum table#edit_post textarea{width:381px;height:250px;overflow:auto;} +div.forum table#new_topic td.sel{text-align:center;}div.forum table#new_topic table#options td{padding-bottom:0;} +div.forum table#new_topic table#options input.text{margin-bottom:2px;}div.forum table#new_topic select.dropdown{margin-right:1px;} +div.forum table#edit_topic select.dropdown{width:100%;}div.forum table#poll{background-color:#FFF;width:496px;} +div.forum table#poll thead th{text-align:center;padding:4px;}div.forum table#poll td{text-align:center;} +div.forum table#poll td.sel{width:30%;text-align:right;white-space:nowrap;}div.forum table#poll td.stat{width:280px;text-align:left;} +div.forum table#poll td.stat img{float:left;}div.forum table#poll td.count{text-align:center;} +div.statistics table td,div.statistics table th{padding:2px 7px;text-align:center;} +div.statistics td.ra{width:5%;text-align:right;white-space:nowrap;}div.statistics td.pop{width:20%;} +div.statistics td.al{text-align:left;}div.statistics td.vil{width:10%;}div.statistics td.po{width:20%;} +div.statistics td.pla{width:18%;}div.statistics td.av{width:18%;}div.statistics td.po{width:20%;} +div.statistics table#player td.pla{width:auto;text-align:left;}div.statistics table#player td.al{text-align:center;} +div.statistics table#player_off td.pla{width:auto;text-align:left;}div.statistics table#player_def td.pla{width:auto;text-align:left;} +div.statistics table#alliance td.al{width:auto;}div.statistics table#alliance_off td.al{width:auto;} +div.statistics table#alliance_def td.al{width:auto;}div.statistics table.top10{width:246px;} +div.statistics table.top10 td{padding:2px;}div.statistics table.top10 td.pla{width:auto;text-align:left;} +div.statistics table.top10 td.val{width:10%;}div.statistics table.top10 tr.none td{background-color:#EFEFEF;} +div.statistics table.top10 tr.own.hl td.ra{text-align:center;white-space:nowrap;} +div.statistics table#top10_offs,div.statistics table#top10_climbers{float:left;} +div.statistics table#top10_defs,div.statistics table#top10_raiders{float:right;} +div.statistics table#villages td.vil{width:auto;text-align:left;}div.statistics table#villages td.pla{width:25%;text-align:left;} +div.statistics table#villages td.hab{width:15%;}div.statistics table#villages td.aligned_coords{padding:2px 0;} +div.statistics table#heroes td.hero{text-align:left;}div.statistics table#heroes td.hero img{position:relative;top:1px;margin:-2px;} +div.statistics table#heroes td.pla{width:30%;text-align:left;}div.statistics table#heroes td.lev{width:10%;} +div.statistics table#heroes td.xp{width:15%;}div.statistics table#world_tribes,div.statistics table#world_misc{margin-top:15px;} +div.statistics table#world_player th{width:60%;}div.statistics table#world_tribes td,div.statistics table#world_misc td{width:33%;} +div.statistics table#wonder td.nam{width:35%;}div.statistics table#wonder td.al{width:15%;} +div.statistics table#wonder td.lev{width:10%;}div.statistics table#wonder td.at{width:2%;} +div.statistics table#search_navi{margin-top:15px;}div.statistics table#search_navi div{vertical-align:top;} +div.statistics table#search_navi div.search{float:left;text-align:left;}div.statistics table#search_navi div.search span{white-space:nowrap;} +div.statistics table#search_navi div.search input{vertical-align:middle;margin-top:2px;margin-bottom:2px;} +div.statistics table#search_navi div.search input.ra{margin-left:4px;width:32px;} +div.statistics table#search_navi div.search input.name{margin-left:4px;width:50px;} +div.statistics table#search_navi div.search span.or{margin:auto 8px;}div.statistics table#search_navi div.navi{float:right;text-align:right;line-height:22px;white-space:nowrap;} +div.reports table td,div.reports table th{padding:2px 7px;}div.reports .none{text-align:center;} +div.reports table#overview td,div.reports table#overview th{padding:3px 7px;line-height:17px;} +div.reports table#overview tbody td{vertical-align:top;}div.reports table#overview td.sel{width:5%;padding:5px;text-align:center;} +div.reports table#overview td.sub img{float:left;}div.reports table#overview td.sub div{padding-left:24px;} +div.reports table#overview td.dat{width:23%;text-align:center;white-space:nowrap;padding:3px 2px;} +div.reports table#overview tfoot th.buttons{text-align:left;}div.reports table#overview tfoot th.buttons input{vertical-align:middle;} +div.reports table#overview tfoot th.navi{text-align:right;}div.reports table#report_surround thead th,div.reports table#report_surround thead td{text-align:left;} +div.reports table#report_surround thead td.sent{width:25%;}div.reports table#report_surround td.report_content{padding:15px 2px 0;} +div.reports table#report_surround td.report_content table{margin-bottom:15px;}div.reports table#report_surround td.report_content table thead td{text-align:center;background-color:#F3F3F3;} +div.reports table#report_surround td.report_content table tbody th{text-align:center;width:20%;text-align:left;} +div.reports table#report_surround td.report_content table tbody.units td{width:7.2%;text-align:center;padding:2px;} +div.reports table#report_surround td.report_content table tbody.infos th,div.reports table#report_surround td.report_content table tbody.infos td,div.reports table#report_surround td.report_content table tbody.goods th,div.reports table#report_surround td.report_content table tbody.goods td,div.reports table#report_surround td.report_content table tbody.res th,div.reports table#report_surround td.report_content table tbody.res td,div.reports table#report_surround td.report_content table tbody.regards th,div.reports table#report_surround td.report_content table tbody.regards td{background-color:#F3F3F3;} +div.reports table#report_surround td.report_content table tbody.infos td img{display:inline;margin-right:2px;} +div.reports td.report_content table#attacker tbody.goods div.res{float:left;}div.reports td.report_content table#attacker tbody.goods div.carry{float:right;margin-left:20px;} +div.messages td.none{text-align:center;}div.messages table#overview td,div.messages table#overview th{padding:3px 7px;line-height:17px;text-align:center;} +div.messages table#overview tr.sup td.sel{background-color:#71D000;}div.messages table#overview tr.multi td.sel{background-color:#FF6F0F;} +div.messages table#overview td.sel{width:5%;}div.messages table#overview td.top{text-align:left;} +div.messages table#overview td.send{width:25%;}div.messages table#overview td.dat{width:22%;white-space:nowrap;} +div.messages table#overview th.buttons{text-align:left;}div.messages table#overview th.buttons input{vertical-align:middle;} +div.messages table#overview th.navi{text-align:right;}div.messages table#friendlist td{padding:2px;text-align:center;height:20px;} +.webkit div.messages table#friendlist td{height:16px;}div.messages table#friendlist td.end{width:5%;padding:0;} +div.messages table#friendlist td.pla{width:40%;padding:0;}div.messages table#friendlist td.on{width:5%;padding:0;} +div.messages table#friendlist td.pla input.text{border:none;}div.messages table#friendlist img.del,div.messages table#friendlist img.accept{cursor:pointer;} +div#build table#build_value{width:auto;line-height:19px;background-color:#FFF;}div#build table#build_value th,div#build table#build_value td{white-space:nowrap;} +div#build table#build_value th{padding-right:35px;}div#build table#build_value td{text-align:right;} +div#build table.build_details td{padding:2px 7px;}div#build table.build_details td.desc{line-height:19px;} +div#build table.build_details td.desc div.tit img{margin:0 5px;position:relative;top:3px;} +div#build table.build_details td.desc div.details{padding-left:30px;}div#build table.build_details td.desc div.details span{white-space:nowrap;} +div#build table.build_details td.desc div.details span.none{white-space:normal;} +div#build table.build_details td.act{width:29%;text-align:center;}div#build table.build_details td.val{width:12%;text-align:center;} +div#build table.build_details td.val input.text{width:30px;}div#build table.build_details td.max{width:12%;text-align:center;} +div#build table.under_progress{margin-top:15px;}div#build table.under_progress td{padding:2px 7px;text-align:center;} +div#build table.under_progress td.desc{text-align:left;}div#build table.under_progress td.desc img{margin:0 5px;position:relative;top:3px;} +div#build table.under_progress div.val{padding-left:5px;float:left;text-align:right;} +div#build table.under_progress td.dur{width:20%;}div#build table.under_progress td.fin{width:20%;} +div#build table.under_progress tr.next td{background-color:#F5F5F5;}div#build p#contract{line-height:19px;} +div#build table#expansion td,div#build #expansion th{padding:2px 7px;}div#build table#expansion thead td{padding:2px;} +div#build table#expansion td{text-align:center;}div#build table#expansion td.ra{width:2%;text-align:right;white-space:nowrap;} +div#build table#expansion td.vil{text-align:left;}div#build table#expansion td.ha{width:16%;} +div#build table#expansion td.dat{width:14%;white-space:nowrap;}div#build.gid0 h1{margin-bottom:25px;} +div#build.gid0 h2{margin-bottom:15px;}div#build.gid0 div.hide{display:none;}div#build.gid0 table.new_building{margin-bottom:25px;background-color:#FFF;} +div#build.gid0 table.new_building td.desc{padding-bottom:15px;}div#build.gid0 table.new_building td.bimg{padding-left:15px;padding-right:5px;vertical-align:top;} +div#build.gid0 table.new_building td.res{padding-bottom:3px;}div#build.gid0 table.new_building td.requ{padding-bottom:3px;} +div#build.gid15 table#demolish{background-color:#FFF;}div#build.gid16 table.troop_details th,div#build.gid16 table.troop_details td{padding:2px 7px;} +div#build.gid16 table.troop_details th{width:20%;}div#build.gid16 table.troop_details tbody.units td{text-align:center;width:7.2%;padding:2px;} +div#build.gid16 table.troop_details tbody.infos th,div#build.gid16 table.troop_details tbody.infos td{background-color:#F3F3F3;} +div#build.gid16 table.troop_details div{width:50%;float:left;text-align:center;} +div#build.gid16 table.troop_details div.small{width:45%;}div#build.gid16 table.troop_details div.abort{width:5%;float:right;text-align:right;} +div#build.gid16 table.troop_details div.abort img{margin-top:3px;}div#build.gid16 table.troop_details div.sup{text-align:left;} +div#build.gid16 table.troop_details div.sback{text-align:right;}div#build.gid16 table.troop_details div.free{text-align:right;} +div#build.gid16 table.troop_details div.gback{text-align:right;}div#build.gid16 table.troop_details div.diss{text-align:right;} +div#build.gid16 table.troop_details a.attack_marker{float:right;position:relative;top:2px;right:-1px;} +div#build.gid16 table#raidList thead td{white-space:nowrap;}div#build.gid16 table#raidList th,div#build.gid16 table#raidList td{padding:2px 7px;text-align:center;} +div#build.gid16 table#raidList td.check{padding:2px;width:1%;}div#build.gid16 table#raidList td.check img{float:left;} +div#build.gid16 table#raidList td.vil{text-align:left;}div#build.gid16 table#raidList td.vil img{float:right;} +div#build.gid16 table#raidList td.raids{width:10%;}div#build.gid16 table#raidList td.goods{width:10%;} +div#build.gid16 table#raidList td.lost{width:10%;}div#build.gid16 table#raidList td.rep{text-align:left;width:20%;white-space:nowrap;} +div#build.gid16 table#raidList td.rep img{float:left;margin-right:3px;}div#build.gid16 table#raidTroops{border:1px dashed #C0C0C0;background-color:#FFF;} +div#build.gid16 table#raidTroops td.column-first{padding-left:8px;}div#build.gid16 table#raidTroops td.column-last{padding-right:8px;} +div#build.gid16 table#raidTroops td.line-first{padding-top:8px;}div#build.gid16 table#raidTroops td.line-last{padding-bottom:8px;} +div#build.gid16 table#raidTroops td{width:25%;padding:1px;}div#build.gid16 table#raidTroops img{vertical-align:bottom;position:relative;bottom:3px;margin-right:2px;} +div#build.gid16 table#raidTroops input.text{width:60px;}div#build.gid16 table#raidTroops input.disabled{background-color:#EEE;border-color:#AAA;} +div#build.gid16 table#troopEscape thead td{white-space:nowrap;}div#build.gid16 table#troopEscape th,div#build.gid16 table#troopEscape td{padding:2px 7px;text-align:center;} +div#build.gid16 table#troopEscape td.sel{padding:2px;width:5%;}div#build.gid16 table#troopEscape td.vil{text-align:left;} +div#build.gid16 table#troopEscape td.own{width:25%;}div#build.gid16 table#troopEscape td.rein{width:25%;} +div#build.gid17 table.send_res{width:40%;line-height:24px;background-color:#FFF;} +div#build.gid17 table.send_res td{vertical-align:top;padding-right:4px;}div#build.gid17 table.send_res td.ico{width:5%;} +div#build.gid17 table.send_res td.ico img{position:relative;top:4px;}div#build.gid17 table.send_res td.nam{width:16%;} +div#build.gid17 table.send_res td.val{width:12%;}div#build.gid17 table.send_res td.val input.text{width:39px;} +div#build.gid17 table.send_res td.max{width:20%;}div#build.gid17 table.res_target{width:40%;line-height:21px;background-color:#FFF;} +div#build.gid17 table.res_target th,div#build.gid17 table.res_target td{vertical-align:top;} +div#build.gid17 table.res_target th{width:30%;}div#build.gid17 table#target_select td.mer{padding-bottom:9px;} +div#build.gid17 table#target_select td.vil *,div#build.gid17 table#target_select td.coo *{float:left;} +div#build.gid17 table#target_select td.vil input.text{width:100px;margin-left:10px;} +div#build.gid17 table#target_select td.coo input.text{width:40px;margin:0 10px;} +div#build.gid17 table#target_validate td.vil{padding-bottom:11px;}div#build.gid17 table.traders th,div#build.gid17 table.traders td{padding:2px 7px;} +div#build.gid17 table.traders tr.res th,div#build.gid17 table.traders tr.res td{background-color:#F5F5F5;} +div#build.gid17 table.traders th{width:20%;}div#build.gid17 table.traders div.in{text-align:center;width:45%;float:left;} +div#build.gid17 table.traders div.at{text-align:center;width:45%;float:right;}div#build.gid17 table.traders div.repeat{text-align:right;width:20px;float:right;} +div#build.gid17 table.buy_select td{text-align:center;height:21px;}div#build.gid17 table.buy_select td.hl{background-color:#ffe4b5;} +div#build.gid17 table#search_select{width:120px;}div#build.gid17 table#ratio_select{width:30px;} +div#build.gid17 table#bid_select{width:120px;}div#build.gid17 table#range th,div#build.gid17 table#range td{padding:2px;text-align:center;} +div#build.gid17 table#range tfoot td{text-align:right;padding-right:7px;}div#build.gid17 table#range td.val{width:16%;text-align:left;white-space:nowrap;} +div#build.gid17 table#range td.dur{width:13%;white-space:nowrap;}div#build.gid17 table#range td.act{width:35%;} +div#build.gid17 table#summary th,div#build.gid17 table#summary td{padding:2px 7px;} +div#build.gid17 table#summary td.desc{text-align:center;background-color:#F3F3F3;} +div#build.gid17 table#summary td.ico{width:5%;padding-right:2px;}div#build.gid17 table#summary td.val{width:16%;padding-left:2px;white-space:nowrap;} +div#build.gid17 table#sell{background-color:#FFF;}div#build.gid17 table#sell th,div#build.gid17 table#sell td{padding:2px;} +div#build.gid17 table#sell th{width:10%;}div#build.gid17 table#sell input.check{position:relative;top:1px;} +div#build.gid17 table#sell select.dropdown{padding:1px;}div#build.gid17 table#sell td.val{width:13%;} +div#build.gid17 table#sell td.val input.text{width:50px;}div#build.gid17 table#sell td.res{width:20%;} +div#build.gid17 table#sell td.res input.text{width:75px;}div#build.gid17 table#sell td.tra input.text{width:20px;} +div#build.gid17 table#sell_overview th,div#build.gid17 table#sell_overview td{padding:2px 7px;text-align:center;} +div#build.gid17 table#sell_overview td.abo{width:5%;}div#build.gid17 table#sell_overview td.val{width:22%;text-align:left;} +div#build.gid17 table#npc th,div#build.gid17 table#npc td{padding:2px 7px;text-align:center;} +div#build.gid17 table#npc td.all{width:18%;}div#build.gid17 table#npc td.sum{text-align:left;} +div#build.gid17 table#trading_routes th{padding:4px 7px;}div#build.gid17 table#trading_routes tfoot th{text-align:left;font-weight:normal;} +div#build.gid17 table#trading_routes td{padding:2px 7px;text-align:center;}div#build.gid17 table#trading_routes td.desc{text-align:left;} +div#build.gid17 table#trading_routes td.sel{width:5%;padding:5px;vertical-align:top;} +div#build.gid17 table#trading_routes td.start{width:12%;white-space:nowrap;}div#build.gid17 table#trading_routes td.trad{width:15%;} +div#build.gid17 table#trading_routes td.dur{width:20%;}div#build.gid17 table#trading_edit th,div#build.gid17 table#trading_edit td{padding:2px 7px;} +div#build.gid17 table#trading_edit tbody th,div#build.gid17 table#trading_edit tbody td{line-height:20px;} +div#build.gid17 table#trading_edit tbody th{width:25%;}div#build.gid17 table#trading_edit select option{padding-right:10px;} +div#build.gid17 table#trading_edit td.res{white-space:nowrap;}div#build.gid17 table#trading_edit td.res input{margin-right:5px;} +div#build.gid17 table#trading_edit td.res img{margin-right:3px;}div#build.gid18 table{width:60%;} +div#build.gid18 table th,div#build.gid18 table td{padding:2px 7px;}div#build.gid18 table th{width:30%;} +div#build.gid18 table#join th,div#build.gid18 #join td{text-align:center;}div#build.gid18 table#join td.abo{width:5%;} +div#build.gid18 table#join td.nam{width:30%;}div#build.gid18 table#found td.tag input.text{width:80px;} +div#build.gid18 table#found td.nam input.text{width:160px;}div.build.gid22 table#researchFuture td.desc{vertical-align:top;white-space:nowrap;width:40%;} +div.build.gid22 table#researchFuture td.cond{line-height:19px;}div#build.gid24 table.build_details td.desc div.details{padding-left:0;} +div#build.gid26 table#main{margin-top:15px;}div#build.gid26 table#main th,div#build.gid26 #main td{padding:2px 7px;} +div#build.gid26 table#main tbody th{width:50%;}div#build.gid26 table#main td.desc{text-align:center;} +div#build.gid26 table#main input.text{width:94%;}div#build.gid27 table#near{margin-top:20px;} +div#build.gid27 table th,div#build.gid27 table td{padding:2px 7px;text-align:center;} +div#build.gid27 table td.nam{text-align:left;}div#build.gid27 table div.man{float:right;width:15px;} +div#build.gid27 table td.pla{width:20%;}div#build.gid27 table#own td.vil{width:20%;} +div#build.gid27 table#own td.cap{width:25%;}div#build.gid27 table#near td.dist{width:20%;} +div#build.gid27 table#show_artefacts td.al{width:20%;}div#build.gid27 table#art_details tbody th{width:35%;} +div#build.gid27 table.art_details{margin-top:25px;}div#build.gid35 table.build_details td.desc div.details{padding-left:0;} +div#build.gid37 table th,div#build.gid37 table td{padding:2px 7px;}div#build.gid37 table td.nam{width:30%;text-align:left;} +div#build.gid37 table#rename{width:60%;}div#build.gid37 table#rename tbody th{width:40%;} +div#build.gid37 table#rename input.text{width:94%;}div#build.gid37 table#distribution tbody th{width:26%;} +div#build.gid37 table#distribution td.xp{width:205px;}div#build.gid37 table#distribution td.up{width:7%;text-align:center;} +div#build.gid37 table#distribution td.po{width:7%;text-align:center;}div#build.gid37 table#distribution td.rem{text-align:center;} +div#build.gid37 table#oases td{text-align:center;}div#build.gid37 table#oases thead td{padding:2px;} +div#build.gid37 table#oases td.nam img{position:relative;top:1px;}div#build.gid37 table#oases td.zp{width:14%;} +div#build.gid37 table#leave thead td{padding:2px;}div#build.gid37 table#leave tbody td{text-align:center;} +div#build.gid40 table#rename{width:50%;}div#build.gid40 table#rename th,div#build.gid40 table#rename td{padding:2px 7px;} +div#build.gid40 table#rename td{text-align:center;}div#build.gid40 table#rename tbody th{width:25%;} +div#build.gid40 table#rename input.text{width:94%;}body.manual table td,body.manual table th{padding:2px;} +body.manual table#troop_info{width:406px;}body.manual table#troop_info td{width:14.2%;text-align:center;} +body.manual table#troop_details{width:60%;background-color:#FFF;}body.manual table#examples{width:406px;margin-left:2px;} +body.manual table#examples tbody th{width:40%;}div.quest div#qstd table.altquest th,div.quest div#qstd table.altquest td{padding:2px;} +div.quest div#qstd table.altquest td{text-align:center;}div.quest div#qstd table.altquest td.ra{width:5%;} +div.quest div#qstd table.altquest td.desc{text-align:left;}div.a2b table th,div.a2b table td{padding:2px 7px;} +div.a2b table#troops{border:1px dashed #C0C0C0;background-color:#FFF;}div.a2b table#troops td.column-first{padding-left:8px;} +div.a2b table#troops td.column-last{padding-right:8px;}div.a2b table#troops td.line-first{padding-top:8px;} +div.a2b table#troops td.line-last{padding-bottom:8px;}div.a2b table#troops td.large{width:26%;} +div.a2b table#troops td.regular{width:25%;}div.a2b table#troops td.small{width:23%;} +div.a2b table#troops img{vertical-align:bottom;position:relative;bottom:3px;margin-right:2px;} +div.a2b table#troops input.text{width:30px;}div.a2b table#troops input.disabled{background-color:#EEE;border-color:#AAA;} +div.a2b table#coords{line-height:18px;background-color:#FFF;}div.a2b table#coords td{vertical-align:top;padding:0;} +div.a2b table#coords td.sel{width:35%;white-space:nowrap;}div.a2b table#coords td.sel input.radio{position:relative;top:1px;} +body.presto div.a2b table#coords td.sel input.radio{top:-1px;}* html div.a2b table#coords td.sel input.radio{top:-2px;} +*+html div.a2b table#coords td.sel input.radio{top:-2px;}div.a2b table#coords td.vil *,div.a2b table#coords td.target *{float:left;margin-right:10px;} +div.a2b table#coords td.vil input.text{width:100px;}div.a2b table#coords td.target input.text{width:40px;} +div.a2b table#short_info{background-color:#FFF;}div.a2b table#short_info th{width:15%;padding-left:0;} +div.a2b table.troop_details tbody th{width:20%;}div.a2b table.troop_details tbody.units td{width:7.2%;text-align:center;padding:2px;} +div.a2b table.troop_details tbody.units input.text{width:73%;}div.a2b table.troop_details tbody.options input.radio{position:relative;top:2px;margin-right:2px;} +body.presto div.a2b table.troop_details tbody.options input.radio{top:0;}body.ie6 div.a2b table.troop_details tbody.options input.radio,body.ie7 div.a2b table.troop_details tbody.options input.radio{top:-2px;} +div.a2b table.troop_details tbody.cata select.dropdown{margin:1px 0;}div.a2b table.troop_details tbody.infos th,div.a2b table.troop_details tbody.infos td{background-color:#F5F5F5;} +div.a2b table.troop_details tbody.infos div{width:49%;text-align:center;}div.a2b table.troop_details tbody.infos div.in{float:left;} +div.a2b table.troop_details tbody.infos div.at{float:right;}div.cropfinder table#croplist th,div.cropfinder table#croplist td{padding:2px 7px;} +div.cropfinder table#croplist td.none{text-align:center;}div.cropfinder table#croplist td.dist{width:12%;white-space:nowrap;} +div.cropfinder table#croplist td.typ{width:12%;}div.cropfinder table#croplist td.oase{width:18%;} +div.cropfinder table#croplist td.footer{text-align:right;}div.plus table.lang_ltr th,div.plus table.lang_ltr td{text-align:left;} +div.plus table.lang_rtl th,div.plus table.lang_rtl td{text-align:right;}div.plus div#products table.product{width:116px;} +div.plus div#products table.product td,div.plus div#products table.product th{padding:2px 7px;} +div.plus div#products table.product th{text-align:center;}div.plus div#products table.product td.pic{padding:2px;text-align:center;} +div.plus table.rate_details th,div.plus table.rate_details td{padding:3px 7px;}div.plus table.rate_details td.pic{width:120px;padding:2px;text-align:center;vertical-align:top;} +div.plus table.rate_details td.pic img{margin:10px 0;}div.plus table.rate_details td.desc{text-align:center;} +div.plus table#open_orders{background-color:#FFF;border-collapse:collapse;}div.plus table#open_orders th,div.plus table#open_orders td{padding:2px 7px;text-align:center;border-top:1px solid #C0C0C0;border-bottom:1px solid #C0C0C0;} +div.plus table#open_orders tr.dark td{background-color:#efefef;}div.plus table.features th,div.plus table.features td{padding:2px 7px;} +div.plus table.features tbody th{background-color:#F5F5F5;text-align:center;}div.plus table.features td.preview{text-align:center;width:200px;padding:0;} +div.plus table.features td.text{padding:4px 7px;}div.plus table.plusFunctions th,div.plus table.plusFunctions td{padding:2px 7px;text-align:center;} +div.plus table.plusFunctions td.man{width:4%;padding:0;}div.plus table.plusFunctions td.desc{text-align:left;} +div.plus table.plusFunctions td.dur{width:15%;}div.plus table.plusFunctions td.cost{width:9%;white-space:nowrap;} +div.plus table.plusFunctions td.act{width:20%;}div.plus table#invite th,div.plus table#invite td{padding:2px 7px;} +div.plus table#invite tbody.mails td{background-color:#F5F5F5;}div.plus table#invite tbody.msg pre{margin:10px 5px;} +div.plus table#invite tbody.msg th{background-color:#F5F5F5;}div.plus table#invite tbody.msg textarea{width:480px;height:200px;} +div.plus #brought_in th,div.plus #brought_in td{padding:2px 7px;}div.warsim table#select{margin-top:10px;} +div.warsim table#select thead td{padding:2px 7px;}div.warsim table#select tbody td{padding:5px 7px;vertical-align:top;line-height:20px;width:33%;} +div.warsim table#select input.radio{position:relative;top:1px;}body.presto div.warsim table#select input.radio{top:0;} +body.ie6 div.warsim table#select input.radio,body.ie7 div.warsim table#select input.radio{top:-2px;} +div.warsim table.fill_in{width:49%;}div.warsim table.fill_in th{padding:2px;}div.warsim table.fill_in td{padding:1px;} +div.warsim table.fill_in tbody th{text-align:center;background-color:#F5F5F5;}div.warsim table.fill_in td.details{padding:0;} +div.warsim table.fill_in td.details table{background-color:#FFF;}div.warsim table.fill_in td.details table td.ico{width:16px;padding-left:4px;padding-right:2px;} +div.warsim table.fill_in td.details table td.value{width:43px;}div.warsim table.fill_in td.details table td.value input.text{width:35px;} +div.warsim table.fill_in td.details table td.research{width:23px;padding-right:4px;} +div.warsim table.fill_in td.details table td.research input.text{width:15px;}div.warsim table.results th{padding:2px 7px;} +div.warsim table.results td{padding:2px 1px;}div.warsim table.results tbody th{width:20%;} +div.warsim table.results tbody td{width:8%;text-align:center;}div.support table{line-height:16px;} +div.support table th,div.support table td{padding:2px 3px;}div.support table td{padding-left:7px;} +td.form_table_label{width:30%;white-space:pre;}td.form_table_element{width:70%;} +table.form_table{background-color:transparent;}body{color:#000;font-size:13px;font-family:Verdana,Arial,Helvetica,sans-serif;font-weight:normal;} +a{text-decoration:none;font-weight:bold;color:#71D000;}a:visited{color:#71D000;} +a:active{color:#FF8000;}a:hover{color:#00BC00;}h1{font-size:24px;}h2{font-size:18px;} +div#header{font-size:0;}table td,table th{font-weight:normal;font-size:13px;}table thead th,table tfoot th{font-weight:bold;} +input.text,select.dropdown,textarea{font-size:11px;font-family:Verdana,Arial,Helvetica,sans-serif;} +div#textmenu{font-size:13px;font-weight:normal;}div#textmenu span{font-weight:bold;color:#C0C0C0;} +div#textmenu a.selected{border-bottom:dashed 1px Silver;}.none{color:#C0C0C0;}.error{color:#FF8000;} +span.plus_g{color:#71D000;font-weight:bold;}span.plus_o{color:#FF6F0F;font-weight:bold;} +div#ltime{color:#666;font-size:10px;}div#mtop{font-size:0;}div#side_navi{font-size:13px;} +div#side_navi p{font-size:12px;}div#side_navi p a{font-weight:normal;color:#000;} +div#side_navi p a:hover{color:#00C000;}div#side_navi p.deltimer a{font-weight:bold;} +div#side_navi p.deltimer a span{color:#FF8000;}div#side_info h6{font-size:13px;color:#FF8000;font-weight:bold;} +div#side_info table thead td a{font-weight:bold;color:black;}div#side_info table tbody td{font-size:11px;} +div#side_info td.hl{color:#FF8000;}div#side_info td.link{font-size:13px;}div#footer div#mfoot{font-size:11px;color:#666;} +div#footer div#mfoot a{color:#666;text-decoration:none;font-weight:normal;}div#footer div#mfoot a:visited,div#footer div#mfoot a:active{color:#666;} +div#footer div#mfoot a:hover{color:#00C000;}div.login p{font-size:12px;}div.login table th,div.login table td{font-size:11px;} +div.signup table th,.signup table td{font-size:11px;}div.signup p{font-size:12px;} +div.signup p.info{color:#FF8000;}div.signup p.error2{color:#FF8000;}div.signup p#timer1{font-weight:bold;font-size:20px;} +div.signup span.error{font-size:9px;}div.signup span.unavailable{font-size:24px;} +div.signup .important{color:#FF8000;font-weight:bold;}div.activate h6{font-size:12px;color:#FF8000;font-weight:bold;} +div.activate table th,div.activate table td{font-size:11px;}div.activate td.name{color:#FF8000;font-weight:bold;} +div.activate p{font-size:12px;}div.activate p.info{font-size:24px;color:#C0C0C0;} +div.activate p.info2{color:#FF8000;font-weight:bold;}div.village1 h1 div#loyality{font-weight:bold;font-size:9px;} +div.village1 h1 div.re{color:#F00;}div.village1 h1 div.gr{color:#228B22;}div.village1 table td.num{font-weight:bold;} +div.village1 table#movements td.typ,div.village1 table#movements div.mov{font-weight:bold;} +div.village1 table#movements .a1{color:#F00;}div.village1 table#movements .d1{color:#228B22;} +div.village1 table#movements .a2,div.village1 table#movements .d2{color:#F2C700;} +div.village1 table#movements .a3,div.village1 table#movements .d3{color:#B500A3;} +div.village2 div#village_map div#levels div{font-family:Arial,Helvetica;font-size:9px;} +div.village3 table tbody th{font-weight:bold;}div.village3 table#ressources td.tra a{color:black;font-weight:normal;} +div.village3 table#warehouse .crit{color:red;}div.village3 table#culture_points span.dot{color:#C0C0C0;font-weight:bold;} +div.village3 table#troops tr.small th,div.village3 div.village3 table#troops tr.small td{font-size:11px;} +div.village3 table.vil_troops tbody th{font-weight:normal;}div#map div#map_rulers div{font-size:10px;} +div#map div#map_coords{font-weight:bold;}div#map table#map_infobox th,div#map table#map_infobox td{font-size:11px;} +div#map table.empty thead th,div#map table.oasis_empty thead th,div#map table.oasis thead th{font-weight:normal;font-style:italic;} +div#map table.default th,div#map table.default td,div#map table.empty th,div#map table.empty td,div#map table.oasis_empty th,div#map table.oasis_empty td{color:#C0C0C0;} +div.map table#raidFavs td.none a{font-weight:normal;color:#C0C0C0;}div.map table#raidDetails td.balance div.booty{color:#00BC00;} +div.map div#dmain{color:#C0C0C0;}div.map table#raidDetails td.balance div.booty{color:#00BC00;} +div.map table#raidDetails td.balance div.lost{color:#FF6F0F;}div.map table#raidDetails td.balance div.sum{font-weight:bold;} +div.player span.none2{font-weight:bold;color:#C0C0C0;}div.player span.none3{color:#C0C0C0;} +div.player div#textmenu a.none{color:#C0C0C0;}div.player table#edit td.desc1 textarea,div.player table#edit td.desc2 textarea{font-size:13px;} +div.player #advertisement span.note{font-size:10px;}div.player td.note{font-size:11px;} +div.player table#change_pass td.note{font-size:10px;}div.player table#change_pass td.generate span{font-size:9px;color:#C0C0C0;} +div.player table#change_mail th.process{color:red;}div.player table.account span.count{font-size:10px;color:#C0C0C0;} +div.player table.account span.max{font-size:10px;color:red;}div.player table#del_acc td.note{text-align:center;} +div.player table#del_acc td.count{font-weight:bold;}div.player table#del_acc td.count span{color:#FF8000;} +div.player table#gpack td span.alert{color:#F00;font-weight:bold;}div.player table#gpack td.info{font-size:11px;} +div.player table#gpack td div.example{font-size:11px;}div.player table#gpack td div.example span.path{color:#FF8000;} +div.player div#gpack_popup span.error{font-weight:bold;}div.player div#gpack_popup span.info{color:#228B22;font-weight:bold;} +div.player div#gpack_popup span.path{color:#FF8000;}div.player div#gpack_popup ul{font-size:11px;} +div.alliance .error2,div.alliance .error3{color:#FF8000;}div.alliance .error{font-weight:bold;} +div.alliance .error2{font-size:9px;}div.alliance table#edit td.desc1 textarea,div.alliance table#edit td.desc2 textarea{font-size:13px;} +div.alliance table#hint td,div.alliance table#tip td{font-size:12px;}div.alliance table#own td.wait{color:#C0C0C0;} +div.alliance div.chatHeader{font-weight:bold;}div.alliance span.chatTime{font-weight:normal;font-size:10px;} +div.forum p.error{font-weight:bold;}div.forum h4{font-size:11px;font-weight:normal;} +div.forum table td.tit{font-size:11px;}div.forum table td.cou{font-size:10px;}div.forum table td.last{font-size:10px;} +div.forum table td.navi_top,div.forum table td.navi_btm{font-size:11px;}div.forum table#posts td.pinfo{font-size:10px;} +div.forum table#posts td.pinfo .name{font-size:11px;font-weight:bold;}div.forum table#posts td.pinfo span.name{color:#888;} +div.forum table#posts td.pcontent div.posted{font-size:10px;color:#888;}div.forum table#posts td.pcontent div.text{font-size:11px;} +div.forum table#posts td.pcontent div.edited{font-size:10px;color:#888;}div.forum table#new_topic tbody th,div.forum table#new_post tbody th,div.forum table#edit_post tbody th{font-weight:bold;font-size:11px;} +div.forum table#edit_topic tbody th{width:30%;font-weight:bold;font-size:11px;}div.forum table#poll thead th{font-size:12px;font-weight:normal;} +div.forum table#poll td{font-size:11px;}div.statistics p.error{font-size:9px;}div.statistics h4{font-size:13px;font-weight:bold;color:#FF8000;} +div.statistics table#wonder td.at{color:#C0C0C0;}div.statistics table#search_navi div.search span.or{font-style:italic;} +div.statistics table#search_navi div.navi{color:#C0C0C0;font-weight:bold;}div.reports .none2{color:#C0C0C0;font-weight:bold;} +div.reports table#overview thead th.sent{font-weight:bold;}div.reports table#overview thead th.sent a{color:black;} +div.reports table#overview tfoot th.navi{color:#C0C0C0;font-weight:bold;}div.reports table#report_surround thead td.sent{font-weight:bold;} +div.reports td.report_content thead td.role{font-weight:bold;}div.reports td.report_content table#reinforcement td.role{color:#71D000;} +div.reports td.report_content table#attacker td.role{color:#FF8000;}div.reports td.report_content table.defender td.role{color:#71D000;} +div.messages p.warning{color:#F00;}div.messages table#overview th.sent a{font-weight:bold;color:black;} +div.messages table#overview td.dat{white-space:nowrap;}div.messages table#overview th.navi{color:#C0C0C0;font-weight:bold;} +div.messages div#read_content div#time div{font-size:12px;}div.messages div.message{font-size:12px;} +div.messages div#write_content textarea{font-size:12px;}div.messages div#adressbook span.enough{font-size:13px;font-weight:bold;color:red;} +div.messages div#block textarea{font-size:12px;}div#build table.build_details td.desc span.info{font-size:11px;} +div#build table.build_details td.max{font-size:10px;}div#build table.under_progress td.desc span.info{font-size:11px;color:#C0C0C0;} +div#build.gid0 table.new_building td.requ{font-weight:bold;}div#build.gid15 input.btn{font-size:11px;} +div#build.gid16 h4{font-size:13px;font-weight:bold;}div#build.gid16 p.info a{font-weight:bold;font-size:21px;color:black;} +div#build.gid16 table.troop_details thead a{color:black;}div#build.gid16 table#raidList thead a{font-weight:normal;color:black;} +div.map table#raidFavs thead a{font-weight:normal;color:black;}div#build.gid17 div.error,div#build.gid17 p.error{font-weight:bold;} +div#build.gid17 p.error2{color:#FF8000;}div#build.gid17 p.note{font-weight:bold;color:#228B22;} +div#build.gid17 table.send_res td.max{font-size:11px;}div#build.gid17 table#send_validate td.max{font-weight:bold;color:#C0C0C0;} +div#build.gid17 table#target_select td.vil,div#build.gid17 table#target_select td.coo{font-size:18px;font-weight:bold;} +div#build.gid17 table#target_select td.or{font-style:italic;}div#build.gid17 table#target_validate td.vil{font-size:18px;} +div#build.gid17 table.traders thead td a{color:black;}div#build.gid17 span.corr{color:#FF4000;} +div#build.gid17 p.info{font-size:11px;}div#build.gid18 table#found span.error{font-size:11px;} +div#build.gid26 table#main td.desc{font-size:11px;}div#build.gid27 table span.bon{font-size:10px;} +div#build.gid27 table div.info{font-size:11px;}div#build.gid27 table#own td.inactive,div#build.gid27 table#own td.inactive a{color:#C0C0C0;} +div#build.gid27 table#art_details td.desc{font-size:11px;}div#build.gid27 table#art_details td.desc span.detail{font-style:italic;} +div#build.gid37 table#distribution thead th a{color:black;}div#build.gid37 table#distribution thead th span.info{font-weight:normal;} +div#build.gid37 table#distribution td.rem{color:#228B22;font-weight:bold;}div#build.gid40 p.info{font-size:11px;color:#C0C0C0;} +div#build.gid40 p.nam{font-size:27px;}body.manual h1 span.tribe{font-size:12px;color:#C0C0C0;font-weight:normal;} +body.manual li span.info{font-size:11px;color:#C0C0C0;}div.quest div#qstd span.qcoords{font-size:24px;font-weight:bold;} +div.quest div#qstd span.qcoords input{font-size:24px;font-weight:bold;}div.quest div.rew p.ta_aw{font-weight:bold;} +div.quest div#qstd span.org{font-style:normal;}div.a2b p.error{font-weight:bold;} +div.a2b span.info{font-size:11px;}div.a2b table#troops td{font-size:11px;}div.a2b table#troops span.none{font-weight:bold;} +div.a2b table#coords td.or{font-style:italic;}div.a2b table#coords td.vil,div.a2b table#coords td.target{font-size:18px;font-weight:bold;} +div.a2b table.troop_details thead td{font-weight:bold;}div.a2b table.troop_details thead td a{color:black;} +div.plus table th,div.plus table td{font-size:13px;font-family:Verdana,Arial,Helvetica,sans-serif;} +div.plus table.lang_ar th,div.plus table.lang_ar td{font-size:14px;font-family:Tahoma,Helvetica,Arial,Verdana,sans-serif;} +div.plus p#product_selection{font-size:10px;}div.plus p#product_selection label{font-weight:bold;} +div.plus p#product_selection select.dropdown{font-size:10px;}div.plus p#orders_link{font-size:10px;} +div.plus table.rate_details td.pic div{font-size:10px;}div.plus table.rate_details td.desc span.alert{color:red;font-style:italic;} +div.plus table#open_orders th,div.plus table#open_orders td{font-size:9px;}div.plus table.features tbody th{font-weight:bold;} +div.plus table.plusFunctions td.cost{font-weight:bold;}div.plus table.plusFunctions span.none{font-weight:normal;} +div.plus table.plusFunctions span.run{font-size:11px;}div.plus span.mail,div.plus span.link{font-family:Courier New;} +div.plus span.notice{font-size:11px;color:#C0C0C0;}div.plus p.report{color:#71D000;font-size:21px;} +div.plus #invite tbody.msg th,div.plus #invite tbody.msg td{font-size:11px;}div.plus #brought_in tr.more td{color:#C0C0C0;} +div.warsim table.attacker td.role{color:#FF8000;font-weight:bold;}div.warsim table.defender td.role{color:#71D000;font-weight:bold;} +div.activation_time{color:#FF8000;font-size:20px;}img,a,div{background-repeat:no-repeat;background-position:top left;} +input.dynamic_img,img.dynamic_img{background-position:top;height:20px;}input.over,img.over{background-position:bottom;} +input.clicked,img.clicked{background-position:center;}img.help{width:15px;height:12px;background-image:url(../../img/a/help.gif);} +img.del{width:12px;height:12px;background-image:url(../../img/a/del.gif);}img.clock{width:18px;height:12px;background-image:url(../../img/a/clock.gif);} +img.clock.inactive{background-image:url(../../img/a/clock-inactive.gif);}img.npc{width:18px;height:12px;background-image:url(../../img/a/npc.gif);background-position:top;} +img.npc_inactive{width:18px;height:12px;background-image:url(../../img/a/npc.gif);background-position:bottom;} +img.gold{width:12px;height:12px;background-image:url(../../img/a/gold.gif);}img.gold_g{width:12px;height:12px;background-image:url(../../img/a/gold_g.gif);} +img.vip{width:1px;height:1px;} + +/* RESOURCES */ +img.r1{width:18px;height:12px;background-image:url(../../img/r/1.gif);} +img.r2{width:18px;height:12px;background-image:url(../../img/r/2.gif);} +img.r3{width:18px;height:12px;background-image:url(../../img/r/3.gif);} +img.r4{width:18px;height:12px;background-image:url(../../img/r/4.gif);} +img.r5{width:18px;height:12px;background-image:url(../../img/r/5.gif);} + +img.attack_symbol_grey,img.attack_symbol_green,img.attack_symbol_yellow,img.attack_symbol_red{width:12px;height:12px;background-image:url(../../img/a/mark_attack.gif);} +img.attack_symbol_green{background-position:0 0;}img.attack_symbol_yellow{background-position:-15px 0;} +img.attack_symbol_red{background-position:-30px 0;}img.attack_symbol_grey{background-position:-45px 0;} +img.unit{width:16px;height:16px;}img.unit_card_detail{margin-right:5px;background:no-repeat;} +img.uhab,img.ucata,img.ustock,img.uwall,img.ubarr,img.upal,img.ugeb,img.uhero,img.uunits,img.app{background-image:url(../../img/u/specials.gif);} +img.uhab{background-position:0 0;} +img.ucata{background-position:-19px 0;} +img.ustock{background-position:-38px 0;} +img.uwall{background-position:-57px 0;} +img.ubarr{background-position:-76px 0;} +img.upal{background-position:-95px 0;} +img.ugeb{background-position:-114px 0;} +img.uhero{background-position:-133px 0;} +img.uunits{background-position:-152px 0;} +img.app{background-position:-170px 0;} +img.u98{background-image:url(../../img/u/98.gif);} +img.u99{background-image:url(../../img/u/99.gif);} + +/* UNITS */ +img.u1{width:16px;height:16px;background-image:url(../../img/u/1.gif);} +img.u2{width:16px;height:16px;background-image:url(../../img/u/2.gif);} +img.u3{width:16px;height:16px;background-image:url(../../img/u/3.gif);} +img.u4{width:16px;height:16px;background-image:url(../../img/u/4.gif);} +img.u5{width:16px;height:16px;background-image:url(../../img/u/5.gif);} +img.u6{width:16px;height:16px;background-image:url(../../img/u/6.gif);} +img.u7{width:16px;height:16px;background-image:url(../../img/u/7.gif);} +img.u8{width:16px;height:16px;background-image:url(../../img/u/8.gif);} +img.u9{width:16px;height:16px;background-image:url(../../img/u/9.gif);} +img.u10{width:16px;height:16px;background-image:url(../../img/u/10.gif);} +img.u11{width:16px;height:16px;background-image:url(../../img/u/11.gif);} +img.u12{width:16px;height:16px;background-image:url(../../img/u/12.gif);} +img.u13{width:16px;height:16px;background-image:url(../../img/u/13.gif);} +img.u14{width:16px;height:16px;background-image:url(../../img/u/14.gif);} +img.u15{width:16px;height:16px;background-image:url(../../img/u/15.gif);} +img.u16{width:16px;height:16px;background-image:url(../../img/u/16.gif);} +img.u17{width:16px;height:16px;background-image:url(../../img/u/17.gif);} +img.u18{width:16px;height:16px;background-image:url(../../img/u/18.gif);} +img.u19{width:16px;height:16px;background-image:url(../../img/u/19.gif);} +img.u20{width:16px;height:16px;background-image:url(../../img/u/20.gif);} +img.u21{width:16px;height:16px;background-image:url(../../img/u/21.gif);} +img.u22{width:16px;height:16px;background-image:url(../../img/u/22.gif);} +img.u23{width:16px;height:16px;background-image:url(../../img/u/23.gif);} +img.u24{width:16px;height:16px;background-image:url(../../img/u/24.gif);} +img.u25{width:16px;height:16px;background-image:url(../../img/u/25.gif);} +img.u26{width:16px;height:16px;background-image:url(../../img/u/26.gif);} +img.u27{width:16px;height:16px;background-image:url(../../img/u/27.gif);} +img.u28{width:16px;height:16px;background-image:url(../../img/u/28.gif);} +img.u29{width:16px;height:16px;background-image:url(../../img/u/29.gif);} +img.u30{width:16px;height:16px;background-image:url(../../img/u/30.gif);} +img.u31{width:16px;height:16px;background-image:url(../../img/u/31.gif);} +img.u32{width:16px;height:16px;background-image:url(../../img/u/32.gif);} +img.u33{width:16px;height:16px;background-image:url(../../img/u/33.gif);} +img.u34{width:16px;height:16px;background-image:url(../../img/u/34.gif);} +img.u35{width:16px;height:16px;background-image:url(../../img/u/35.gif);} +img.u36{width:16px;height:16px;background-image:url(../../img/u/36.gif);} +img.u37{width:16px;height:16px;background-image:url(../../img/u/37.gif);} +img.u38{width:16px;height:16px;background-image:url(../../img/u/38.gif);} +img.u39{width:16px;height:16px;background-image:url(../../img/u/39.gif);} +img.u40{width:16px;height:16px;background-image:url(../../img/u/40.gif);} +img.u41{width:16px;height:16px;background-image:url(../../img/u/41.gif);} +img.u42{width:16px;height:16px;background-image:url(../../img/u/42.gif);} +img.u43{width:16px;height:16px;background-image:url(../../img/u/43.gif);} +img.u44{width:16px;height:16px;background-image:url(../../img/u/44.gif);} +img.u45{width:16px;height:16px;background-image:url(../../img/u/45.gif);} +img.u46{width:16px;height:16px;background-image:url(../../img/u/46.gif);} +img.u47{width:16px;height:16px;background-image:url(../../img/u/47.gif);} +img.u48{width:16px;height:16px;background-image:url(../../img/u/48.gif);} +img.u49{width:16px;height:16px;background-image:url(../../img/u/49.gif);} +img.u50{width:16px;height:16px;background-image:url(../../img/u/50.gif);} +img.u51{width:16px;height:16px;background-image:url(../../img/u/51.gif);} +img.u52{width:16px;height:16px;background-image:url(../../img/u/52.gif);} +img.u53{width:16px;height:16px;background-image:url(../../img/u/53.gif);} +img.u54{width:16px;height:16px;background-image:url(../../img/u/54.gif);} +img.u55{width:16px;height:16px;background-image:url(../../img/u/55.gif);} +img.u56{width:16px;height:16px;background-image:url(../../img/u/56.gif);} +img.u57{width:16px;height:16px;background-image:url(../../img/u/57.gif);} +img.u58{width:16px;height:16px;background-image:url(../../img/u/58.gif);} +img.u59{width:16px;height:16px;background-image:url(../../img/u/59.gif);} +img.u60{width:16px;height:16px;background-image:url(../../img/u/60.gif);} + + +span.tribe{height:16px;background-repeat:no-repeat;background-position:left center;padding-left:20px;} +span.tribe1{background-image:url(../../img/u/9.gif);}span.tribe2{background-image:url(../../img/u/19.gif);} +span.tribe3{background-image:url(../../img/u/29.gif);}img.att_all{width:16px;height:16px;background-image:url(../../img/a/att_all.gif);} +img.att1{width:16px;height:16px;background-image:url(../../img/a/att1.gif);}img.att2{width:16px;height:16px;background-image:url(../../img/a/att2.gif);} +img.att3{width:16px;height:16px;background-image:url(../../img/a/att3.gif);}img.def1{width:16px;height:16px;background-image:url(../../img/a/def1.gif);} +img.def2{width:16px;height:16px;background-image:url(../../img/a/def2.gif);}img.def3{width:16px;height:16px;background-image:url(../../img/a/def3.gif);} +img.def_c{width:16px;height:16px;background-image:url(../../img/a/def_c.gif);}img.def_i{width:16px;height:16px;background-image:url(../../img/a/def_i.gif);} +div#map div#map_content div span{width:18px;height:16px;}div#map div#map_content div span.m3{background-image:url(../../img/m/matt.gif);} +div#map div#map_content div span.m4{background-image:url(../../img/m/matt.gif);} +div#map div#map_content div span.m5{background-image:url(../../img/m/msup.gif);} +div#map div#map_content div span.m6{background-image:url(../../img/m/mspy.gif);} +div#map div#map_content div span.m9{background-image:url(../../img/m/mret.gif);} +img.iReport{background-image:url(../../img/a/report_icons.gif);width:19px;height:17px;} +img.iReport0{background-position:0 -3px;}img.iReport1{background-position:0 -53px;} +img.iReport2{background-position:0 -103px;}img.iReport3{background-position:0 -153px;} +img.iReport4{background-position:0 -203px;}img.iReport5{background-position:0 -253px;} +img.iReport6{background-position:0 -303px;}img.iReport7{background-position:0 -353px;} +img.iReport8{background-position:0 -403px;}img.iReport9{background-position:0 -453px;} +img.iReport10{background-position:0 -503px;}img.iReport11{background-position:0 -553px;} +img.iReport12{background-position:0 -603px;}img.iReport13{background-position:0 -653px;} +img.iReport14{background-position:0 -703px;}img.iReport15{background-position:0 -753px;} +img.iReport16{background-position:0 -803px;}img.iReport17{background-position:0 -853px;} +img.iReport18{background-position:0 -903px;}img.iReport19{background-position:0 -953px;} +div#map a#map_makelarge img{width:33px;height:25px;background-image:url(../../img/m/max.gif);} +div#mbig a#map_popclose img{width:22px;height:22px;background-image:url(../../img/a/close.gif);} +img.online1,img.online2,img.online3,img.online4,img.online5{width:12px;height:12px;background-image:url(../../img/a/online.gif);} +img.online1{background-position:0 0;}img.online2{background-position:-15px 0;}img.online3{background-position:-30px 0;} +img.online4{background-position:-45px 0;}img.online5{background-position:-60px 0;} +h1 img.point{width:16px;height:16px;background-image:url(../../img/u/point.gif);} +div#side_info table#llist img.external,body.manual img.external{width:10px;height:10px;background-image:url(../../img/a/external.gif);} +div.reports div.carry img.car,#build.gid16 div.carry img.car{height:12px;width:18px;background:url(../../img/a/car.gif) no-repeat;} +div.village3 table#overview td.bui img.bau{width:10px;height:16px;background-image:url(../../img/a/bau.gif);} +div.player img.tn,div.player img.tnd{width:65px;height:45px;}div.player img.tn{background-image:url(../../img/t/tn.gif);} +div.player img.tnd{background-image:url(../../img/t/tnd.gif);}div.player img.medal,div.alliance img.medal,body.manual img.medal{width:35px;height:48px;} +div.player img.t1_1,body.manual img.t1_1{background-image:url(../../img/t/t1_1.jpg);} +div.player img.t1_2,body.manual img.t1_2{background-image:url(../../img/t/t1_2.jpg);} +div.player img.t1_3,body.manual img.t1_3{background-image:url(../../img/t/t1_3.jpg);} +div.player img.t1_4,body.manual img.t1_4{background-image:url(../../img/t/t1_4.jpg);} +div.player img.t1_5{background-image:url(../../img/t/t1_5.jpg);}div.player img.t1_6{background-image:url(../../img/t/t1_6.jpg);} +div.player img.t1_7{background-image:url(../../img/t/t1_7.jpg);}div.player img.t1_8{background-image:url(../../img/t/t1_8.jpg);} +div.player img.t1_9{background-image:url(../../img/t/t1_9.jpg);}div.player img.t1_10{background-image:url(../../img/t/t1_10.jpg);} +div.player img.t100_1{background-image:url(../../img/t/t100_1.jpg);}div.player img.t101_1{background-image:url(../../img/t/t101_1.jpg);} +div.player img.t102_1{background-image:url(../../img/t/t102_1.jpg);}div.player img.t110_1{background-image:url(../../img/t/t110_1.jpg);} +div.player img.t111_1{background-image:url(../../img/t/t111_1.jpg);}div.player img.t112_1{background-image:url(../../img/t/t112_1.jpg);} +div.player img.t120_1{background-image:url(../../img/t/t120_1.jpg);}div.player img.t121_1{background-image:url(../../img/t/t121_1.jpg);} +div.player img.t122_1{background-image:url(../../img/t/t122_1.jpg);}div.player img.t130_1{background-image:url(../../img/t/t130_1.jpg);} +div.player img.t131_1{background-image:url(../../img/t/t131_1.jpg);}div.player img.t132_1{background-image:url(../../img/t/t132_1.jpg);} +div.player img.t140_1{background-image:url(../../img/t/t140_1.jpg);}div.player img.t141_1{background-image:url(../../img/t/t141_1.jpg);} +div.player img.t142_1{background-image:url(../../img/t/t142_1.jpg);}div.player img.t150_1{background-image:url(../../img/t/t150_1.jpg);} +div.player img.t151_1{background-image:url(../../img/t/t151_1.jpg);}div.player img.t152_1{background-image:url(../../img/t/t152_1.jpg);} +div.player img.t160_1{background-image:url(../../img/t/t160_1.jpg);}div.player img.t161_1{background-image:url(../../img/t/t161_1.jpg);} +div.player img.t162_1{background-image:url(../../img/t/t162_1.jpg);}div.player img.t170_1{background-image:url(../../img/t/t170_1.jpg);} +div.player img.t171_1{background-image:url(../../img/t/t171_1.jpg);}div.player img.t172_1{background-image:url(../../img/t/t172_1.jpg);} +div.player img.t180_1{background-image:url(../../img/t/t180_1.jpg);}div.player img.t181_1{background-image:url(../../img/t/t181_1.jpg);} +div.player img.t182_1{background-image:url(../../img/t/t182_1.jpg);}div.player img.t190_1{background-image:url(../../img/t/t190_1.jpg);} +div.player img.t191_1{background-image:url(../../img/t/t191_1.jpg);}div.player img.t192_1{background-image:url(../../img/t/t192_1.jpg);} +div.player img.t2_1{background-image:url(../../img/t/t2_1.jpg);}div.player img.t2_10{background-image:url(../../img/t/t2_10.jpg);} +div.player img.t2_2{background-image:url(../../img/t/t2_2.jpg);}div.player img.t2_3{background-image:url(../../img/t/t2_3.jpg);} +div.player img.t2_4{background-image:url(../../img/t/t2_4.jpg);}div.player img.t2_5{background-image:url(../../img/t/t2_5.jpg);} +div.player img.t2_6{background-image:url(../../img/t/t2_6.jpg);}div.player img.t2_7{background-image:url(../../img/t/t2_7.jpg);} +div.player img.t2_8{background-image:url(../../img/t/t2_8.jpg);}div.player img.t2_9{background-image:url(../../img/t/t2_9.jpg);} +div.player img.t200_1{background-image:url(../../img/t/t200_1.jpg);}div.player img.t201_1{background-image:url(../../img/t/t201_1.jpg);} +div.player img.t202_1{background-image:url(../../img/t/t202_1.jpg);}div.player img.t210_1{background-image:url(../../img/t/t210_1.jpg);} +div.player img.t211_1{background-image:url(../../img/t/t211_1.jpg);}div.player img.t212_1{background-image:url(../../img/t/t212_1.jpg);} +div.player img.t220_1{background-image:url(../../img/t/t220_1.jpg);}div.player img.t221_1{background-image:url(../../img/t/t221_1.jpg);} +div.player img.t222_1{background-image:url(../../img/t/t222_1.jpg);}div.player img.t3_1{background-image:url(../../img/t/t3_1.jpg);} +div.player img.t3_10{background-image:url(../../img/t/t3_10.jpg);}div.player img.t3_2{background-image:url(../../img/t/t3_2.jpg);} +div.player img.t3_3{background-image:url(../../img/t/t3_3.jpg);}div.player img.t3_4{background-image:url(../../img/t/t3_4.jpg);} +div.player img.t3_5{background-image:url(../../img/t/t3_5.jpg);}div.player img.t3_6{background-image:url(../../img/t/t3_6.jpg);} +div.player img.t3_7{background-image:url(../../img/t/t3_7.jpg);}div.player img.t3_8{background-image:url(../../img/t/t3_8.jpg);} +div.player img.t3_9{background-image:url(../../img/t/t3_9.jpg);}div.player img.t4_1{background-image:url(../../img/t/t4_1.jpg);} +div.player img.t4_10{background-image:url(../../img/t/t4_10.jpg);}div.player img.t4_2{background-image:url(../../img/t/t4_2.jpg);} +div.player img.t4_3{background-image:url(../../img/t/t4_3.jpg);}div.player img.t4_4{background-image:url(../../img/t/t4_4.jpg);} +div.player img.t4_5{background-image:url(../../img/t/t4_5.jpg);}div.player img.t4_6{background-image:url(../../img/t/t4_6.jpg);} +div.player img.t4_7{background-image:url(../../img/t/t4_7.jpg);}div.player img.t4_8{background-image:url(../../img/t/t4_8.jpg);} +div.player img.t4_9{background-image:url(../../img/t/t4_9.jpg);}div.player img.t5_1{background-image:url(../../img/t/t5_1.jpg);} +div.player img.t5_10{background-image:url(../../img/t/t5_10.jpg);}div.player img.t5_2{background-image:url(../../img/t/t5_2.jpg);} +div.player img.t5_3{background-image:url(../../img/t/t5_3.jpg);}div.player img.t5_4{background-image:url(../../img/t/t5_4.jpg);} +div.player img.t5_5{background-image:url(../../img/t/t5_5.jpg);}div.player img.t5_6{background-image:url(../../img/t/t5_6.jpg);} +div.player img.t5_7{background-image:url(../../img/t/t5_7.jpg);}div.player img.t5_8{background-image:url(../../img/t/t5_8.jpg);} +div.player img.t5_9{background-image:url(../../img/t/t5_9.jpg);}div.player img.t6_1{background-image:url(../../img/t/t6_1.jpg);} +div.player img.t6_10{background-image:url(../../img/t/t6_10.jpg);}div.player img.t6_2{background-image:url(../../img/t/t6_2.jpg);} +div.player img.t6_3{background-image:url(../../img/t/t6_3.jpg);}div.player img.t6_4{background-image:url(../../img/t/t6_4.jpg);} +div.player img.t6_5{background-image:url(../../img/t/t6_5.jpg);}div.player img.t6_6{background-image:url(../../img/t/t6_6.jpg);} +div.player img.t6_7{background-image:url(../../img/t/t6_7.jpg);}div.player img.t6_8{background-image:url(../../img/t/t6_8.jpg);} +div.player img.t6_9{background-image:url(../../img/t/t6_9.jpg);}div.player img.t10_1{background-image:url(../../img/t/t10_1.jpg);} +div.player img.t10_2{width:247px;height:195px;background-image:url(../../img/t/t10_2.jpg);} +div.alliance img.a1_1,body.manual img.a1_1{background-image:url(../../img/t/a1_1.jpg);} +div.alliance img.a1_2,body.manual img.a1_2{background-image:url(../../img/t/a1_2.jpg);} +div.alliance img.a1_3,body.manual img.a1_3{background-image:url(../../img/t/a1_3.jpg);} +div.alliance img.a1_4,body.manual img.a1_4{background-image:url(../../img/t/a1_4.jpg);} +div.alliance img.a1_5{background-image:url(../../img/t/a1_5.jpg);}div.alliance img.a1_6{background-image:url(../../img/t/a1_6.jpg);} +div.alliance img.a1_7{background-image:url(../../img/t/a1_7.jpg);}div.alliance img.a1_8{background-image:url(../../img/t/a1_8.jpg);} +div.alliance img.a1_9{background-image:url(../../img/t/a1_9.jpg);}div.alliance img.a1_10{background-image:url(../../img/t/a1_10.jpg);} +div.alliance img.a2_1{background-image:url(../../img/t/a2_1.jpg);}div.alliance img.a2_2{background-image:url(../../img/t/a2_2.jpg);} +div.alliance img.a2_3{background-image:url(../../img/t/a2_3.jpg);}div.alliance img.a2_4{background-image:url(../../img/t/a2_4.jpg);} +div.alliance img.a2_5{background-image:url(../../img/t/a2_5.jpg);}div.alliance img.a2_6{background-image:url(../../img/t/a2_6.jpg);} +div.alliance img.a2_7{background-image:url(../../img/t/a2_7.jpg);}div.alliance img.a2_8{background-image:url(../../img/t/a2_8.jpg);} +div.alliance img.a2_9{background-image:url(../../img/t/a2_9.jpg);}div.alliance img.a2_10{background-image:url(../../img/t/a2_10.jpg);} +div.alliance img.a3_1{background-image:url(../../img/t/a3_1.jpg);}div.alliance img.a3_2{background-image:url(../../img/t/a3_2.jpg);} +div.alliance img.a3_3{background-image:url(../../img/t/a3_3.jpg);}div.alliance img.a3_4{background-image:url(../../img/t/a3_4.jpg);} +div.alliance img.a3_5{background-image:url(../../img/t/a3_5.jpg);}div.alliance img.a3_6{background-image:url(../../img/t/a3_6.jpg);} +div.alliance img.a3_7{background-image:url(../../img/t/a3_7.jpg);}div.alliance img.a3_8{background-image:url(../../img/t/a3_8.jpg);} +div.alliance img.a3_9{background-image:url(../../img/t/a3_9.jpg);}div.alliance img.a3_10{background-image:url(../../img/t/a3_10.jpg);} +div.alliance img.a4_1{background-image:url(../../img/t/a4_1.jpg);}div.alliance img.a4_2{background-image:url(../../img/t/a4_2.jpg);} +div.alliance img.a4_3{background-image:url(../../img/t/a4_3.jpg);}div.alliance img.a4_4{background-image:url(../../img/t/a4_4.jpg);} +div.alliance img.a4_5{background-image:url(../../img/t/a4_5.jpg);}div.alliance img.a4_6{background-image:url(../../img/t/a4_6.jpg);} +div.alliance img.a4_7{background-image:url(../../img/t/a4_7.jpg);}div.alliance img.a4_8{background-image:url(../../img/t/a4_8.jpg);} +div.alliance img.a4_9{background-image:url(../../img/t/a4_9.jpg);}div.alliance img.a4_10{background-image:url(../../img/t/a4_10.jpg);} +div.messages table#overview td.send img.acp{width:10px;height:10px;background-image:url(../../img/a/external.gif);} +div.messages table#friendlist img.accept{width:12px;height:12px;background-image:url(../../img/a/acc.gif);} +div.reports td.report_content img.easter{width:44px;height:18px;background-image:url(../../img/r/easter.gif);} +div.reports td.report_content img.xmas{width:21px;height:24px;background-image:url(../../img/r/xmas.gif);} +div.reports td.report_content img.newy{width:28px;height:24px;background-image:url(../../img/r/newy.gif);} +div.forum img.add{width:16px;height:16px;background-image:url(../../img/f/plus.gif);} +div.forum a.mad img{width:31px;height:29px;background-image:url(../../img/f/mad.gif);} +div.forum table td.ico img{width:26px;height:25px;}div.forum table td.ico a img,div.forum table td.pcontent div.admin a img{width:12px;height:12px;} +div.forum table td.ico a.edit img,div.forum table td.pcontent div.admin a.edit img{background-image:url(../../img/f/edit.gif);} +div.forum table td.ico a.fdel img,div.forum table td.pcontent div.admin a.fdel img{background-image:url(../../img/f/del.gif);} +div.forum table td.ico a.down_arr img{background-image:url(../../img/f/down_arr.gif);} +div.forum table td.ico a.up_arr img{background-image:url(../../img/f/up_arr.gif);} +div.forum table td.ico a.unlock img{background-image:url(../../img/f/unlock.gif);} +div.forum table td.ico a.lock img{background-image:url(../../img/f/lock.gif);}div.forum table td.ico a.pin img{background-image:url(../../img/f/pin.gif);} +div.forum table td.ico a.unpin img{background-image:url(../../img/f/unpin.gif);} +div.forum table td.ico img.folder{background-image:url(../../img/f/folder.gif);} +div.forum table td.ico img.folder_lock{background-image:url(../../img/f/folder_lock.gif);} +div.forum table td.ico img.folder_new{background-image:url(../../img/f/folder_new.gif);} +div.forum table td.ico img.folder_new_lock{background-image:url(../../img/f/folder_new_lock.gif);} +div.forum table td.ico img.folder_sticky{background-image:url(../../img/f/folder_sticky.gif);} +div.forum table td.ico img.folder_sticky_lock{background-image:url(../../img/f/folder_sticky_lock.gif);} +div.forum table td.ico img.folder_new_sticky{background-image:url(../../img/f/folder_new_sticky.gif);} +div.forum table td.ico img.folder_new_sticky_lock{background-image:url(../../img/f/folder_new_sticky_lock.gif);} +div.forum table td.ico img.v_folder{background-image:url(../../img/f/v_folder.gif);} +div.forum table td.ico img.v_folder_lock{background-image:url(../../img/f/v_folder_lock.gif);} +div.forum table td.ico img.v_folder_new{background-image:url(../../img/f/v_folder_new.gif);} +div.forum table td.ico img.v_folder_new_lock{background-image:url(../../img/f/v_folder_new_lock.gif);} +div.forum table td.ico img.v_folder_sticky{background-image:url(../../img/f/v_folder_sticky.gif);} +div.forum table td.ico img.v_folder_sticky_lock{background-image:url(../../img/f/v_folder_sticky_lock.gif);} +div.forum table td.ico img.v_folder_new_sticky{background-image:url(../../img/f/v_folder_new_sticky.gif);} +div.forum table td.ico img.v_folder_new_sticky_lock{background-image:url(../../img/f/v_folder_new_sticky_lock.gif);} +div.forum table#topics td.last img.latest_reply{width:18px;height:9px;background-image:url(../../img/f/icon_latest_reply.gif);} +div#build.gid27 table td.icon img{width:16px;height:16px;background-image:url(../../img/misc/artefacts.gif);} +div#build.gid27 table td.icon img.artefact_icon_1{background-position:0 0;}div#build.gid27 table td.icon img.artefact_icon_2{background-position:-16px 0;} +div#build.gid27 table td.icon img.artefact_icon_4{background-position:-32px 0;}div#build.gid27 table td.icon img.artefact_icon_5{background-position:-48px 0;} +div#build.gid27 table td.icon img.artefact_icon_6{background-position:-64px 0;}div#build.gid27 table td.icon img.artefact_icon_8{background-position:-80px 0;} +div#build.gid27 table td.icon img.artefact_icon_9{background-position:-96px 0;}div#build.gid27 table td.icon img.artefact_icon_10{background-position:-112px 0;} +div#build.gid27 table td.icon img.artefact_icon_fool{background-position:-128px 0;} +img.cropfinder_icon{width:20px;height:20px;background-image:url(../../img/misc/cropfinder.gif);} +div#build.gid27 div.artefact{background-position:center bottom;background-repeat:no-repeat;} +div#build.gid27 div.artefact.image-1{padding-bottom:160px;background-image:url(../../img/artefact/type-1.gif);} +div#build.gid27 div.artefact.image-2{padding-bottom:223px;background-image:url(../../img/artefact/type-2.gif);} +div#build.gid27 div.artefact.image-4{padding-bottom:200px;background-image:url(../../img/artefact/type-4.gif);} +div#build.gid27 div.artefact.image-5{padding-bottom:157px;background-image:url(../../img/artefact/type-5.gif);} +div#build.gid27 div.artefact.image-6{padding-bottom:170px;background-image:url(../../img/artefact/type-6.gif);} +div#build.gid27 div.artefact.image-8{padding-bottom:160px;background-image:url(../../img/artefact/type-8.gif);} +div#build.gid27 div.artefact.image-9{padding-bottom:198px;background-image:url(../../img/artefact/type-9.gif);} +div#build.gid27 div.artefact.image-10{padding-bottom:161px;background-image:url(../../img/artefact/type-10.gif);} +div#build.gid27 div.artefact.image-fool{padding-bottom:252px;background-image:url(../../img/artefact/type-fool.gif);} +div.forum table img.smiley,div.forum table#posts td.pcontent div.text img.smiley,div.messages img.smiley{width:19px;height:16px;background-image:url(../../img/f/smileys.gif);} +div.forum table img.aha,div.forum table#posts td.pcontent div.text img.aha,div.messages img.aha{background-position:0 0;} +div.forum img.angry,div.forum table#posts td.pcontent div.text img.angry,div.messages img.angry{background-position:-22px 0;} +div.forum img.cool,div.forum table#posts td.pcontent div.text img.cool,div.messages img.cool{background-position:-44px 0;} +div.forum img.cry,div.forum table#posts td.pcontent div.text img.cry,div.messages img.cry{background-position:-66px 0;} +div.forum img.cute,div.forum table#posts td.pcontent div.text img.cute,div.messages img.cute{background-position:-88px 0;} +div.forum img.depressed,div.forum table#posts td.pcontent div.text img.depressed,div.messages img.depressed{background-position:-110px 0;} +div.forum img.eek,div.forum table#posts td.pcontent div.text img.eek,div.messages img.eek{background-position:-132px 0;} +div.forum img.ehem,div.forum table#posts td.pcontent div.text img.ehem,div.messages img.ehem{background-position:-154px 0;} +div.forum img.emotional,div.forum table#posts td.pcontent div.text img.emotional,div.messages img.emotional{background-position:-176px 0;} +div.forum img.grin,div.forum table#posts td.pcontent div.text img.grin,div.messages img.grin{background-position:-198px 0;} +div.forum img.happy,div.forum table#posts td.pcontent div.text img.happy,div.messages img.happy{background-position:-220px 0;} +div.forum img.hit,div.forum table#posts td.pcontent div.text img.hit,div.messages img.hit{background-position:-242px 0;} +div.forum img.hmm,div.forum table#posts td.pcontent div.text img.hmm,div.messages img.hmm{background-position:-264px 0;} +div.forum img.hmpf,div.forum table#posts td.pcontent div.text img.hmpf,div.messages img.hmpf{background-position:-286px 0;} +div.forum img.hrhr,div.forum table#posts td.pcontent div.text img.hrhr,,div.messages img.hrhr{background-position:-308px 0;} +div.forum img.huh,div.forum table#posts td.pcontent div.text img.huh,div.messages img.huh{background-position:-330px 0;} +div.forum img.lazy,div.forum table#posts td.pcontent div.text img.lazy,div.messages img.lazy{background-position:-352px 0;} +div.forum img.love,div.forum table#posts td.pcontent div.text img.love,div.messages img.love{background-position:-374px 0;} +div.forum img.nocomment,div.forum table#posts td.pcontent div.text img.nocomment,div.messages img.nocomment{background-position:-396px 0;} +div.forum img.noemotion,div.forum table#posts td.pcontent div.text img.noemotion,div.messages img.noemotion{background-position:-418px 0;} +div.forum img.notamused,div.forum table#posts td.pcontent div.text img.notamused,div.messages img.notamused{background-position:-440px 0;} +div.forum img.pout,div.forum table#posts td.pcontent div.text img.pout,div.messages img.pout{background-position:-462px 0;} +div.forum img.redface,div.forum table#posts td.pcontent div.text img.redface,div.messages img.redface{background-position:-484px 0;} +div.forum img.rolleyes,div.forum table#posts td.pcontent div.text img.rolleyes,div.messages img.rolleyes{background-position:-506px 0;} +div.forum img.sad,div.forum table#posts td.pcontent div.text img.sad,div.messages img.sad{background-position:-528px 0;} +div.forum img.shy,div.forum table#posts td.pcontent div.text img.shy,div.messages img.shy{background-position:-550px 0;} +div.forum img.smile,div.forum table#posts td.pcontent div.text img.smile,div.messages img.smile{background-position:-572px 0;} +div.forum img.tongue,div.forum table#posts td.pcontent div.text img.tongue,div.messages img.tongue{background-position:-594px 0;} +div.forum img.veryangry,div.forum table#posts td.pcontent div.text img.veryangry,div.messages img.veryangry{background-position:-616px 0;} +div.forum img.veryhappy,div.forum table#posts td.pcontent div.text img.veryhappy,div.messages img.veryhappy{background-position:-638px 0;} +div.forum img.wink,div.forum table#posts td.pcontent div.text img.wink{background-position:-660px 0;} +div#side_info table thead td img.tSwitch{width:13px;height:13px;}table#llist img.closed,table#vlist img.closed{background-image:url(../../img/a/closed.gif);} +table#llist img.opened,table#vlist img.opened{background-image:url(../../img/a/opened.gif);} +div.village2 img#lswitch{background:url(../../img/g/s/glvlp.gif);}div.village2 img#lswitch.on{background:url(../../img/g/s/glvlm.gif);} +img.plus{width:13px;height:13px;background-image:url(../../img/a/plus.gif);}img.minus{width:13px;height:13px;background-image:url(../../img/a/minus.gif);} +div.alliance div#submenu img,div.statistics div#submenu img{background-position:0 top;width:30px;height:30px;} +div.alliance div#submenu img.active,div.statistics div#submenu img.active{background-position:0 bottom;} +div.alliance div#submenu img.btn_def,div.statistics div#submenu img.btn_def{background-image:url(../../img/s/def.gif);} +div.alliance div#submenu img.btn_off,div.statistics div#submenu img.btn_off{background-image:url(../../img/s/off.gif);} +div.statistics div#submenu img.btn_top10{background-image:url(../../img/s/top10.gif);} +div.forum img.switch_admin{background-image:url(../../img/f/switch_admin.gif);width:47px;height:20px;} +div#header{background-image:url(../../img/l/mw.gif);background-repeat:repeat-x;background-position:0 -28px;} +div#mid{background-image:url(../../img/a/rand.gif);background-repeat:repeat-y;background-position:left 0;} +div#footer{background-image:url(../../img/a/btm.gif);background-repeat:repeat-x;} +div#side_navi p.deltimer a:hover{background:none;width:auto;height:auto;}div#side_navi a:hover{background-image:url(../../img/a/n12.gif);width:113px;height:20px;} +div.map div#map div#map_content{background-image:url(../../img/m/map.jpg);background-position:2px 0;} +div#mbig{background-color:#fff;}div#mbig div#map{background-image:url(../../img/m/mapl.gif);} +div.messages div#read_head{background-image:url(../../img/msg/block_bg21.gif);background-position:top left;} +div.messages div#read_content{background-image:url(../../img/msg/block_bg22.gif);background-repeat:repeat-y;background-position:top left;} +div.messages div#read_content #heading div{background-image:url(../../img/msg/underline.gif);background-repeat:repeat-x;background-position:left -2px;} +div.messages div#read_content .line{background-image:url(../../img/msg/block_bg25.gif);background-position:bottom left;} +div.messages div.message{background-image:url(../../img/msg/underline.gif);background-repeat:repeat;} +div.messages div#read_foot{background-image:url(../../img/msg/block_bg23.gif);background-position:bottom left;} +div.messages div#write_head{background-image:url(../../img/msg/block_bg21.gif);background-position:top left;} +div.messages div#write_content{background-image:url(../../img/msg/block_bg22.gif);background-repeat:repeat-y;background-position:top left;} +div.messages div#write_content .line{background-image:url(../../img/msg/block_bg25.gif);background-position:bottom left;} +div.messages div#write_content #heading input{background-image:url(../../img/msg/underline.gif);background-repeat:repeat-x;background-position:left -2px;} +div.messages div#write_content textarea{background-image:url(../../img/msg/underline.gif);background-repeat:repeat;} +div.messages div#write_foot{background-image:url(../../img/msg/block_bg23.gif);background-position:bottom left;} +div.messages div#message_container div.bbButton,div#text_container div.bbButton{margin:1px;float:left;background-image:url(../../img/msg/bb_buttons.png);height:25px;width:25px;} +div.messages div#message_container div.bbBold,div#text_container div.bbBold{background-position:0 0;} +div.messages div#message_container div.bbItalic,div#text_container div.bbItalic{background-position:-27px 0;} +div.messages div#message_container div.bbUnderscore,div#text_container div.bbUnderscore{background-position:-54px 0;} +div.messages div#message_container div.bbAlliance,div#text_container div.bbAlliance{margin-left:8px;background-position:-81px 0;} +div.messages div#message_container div.bbPlayer,div#text_container div.bbPlayer{background-position:-108px 0;} +div.messages div#message_container div.bbCoordinate,div#text_container div.bbCoordinate{background-position:-135px 0;} +div.messages div#message_container div.bbReport,div#text_container div.bbReport{background-position:-162px 0;} +div.messages div#message_container div.bbPreview,div#text_container div.bbPreview{background-position:-189px 0;float:right;} +div.messages div#message_container div.bbResource,div#text_container div.bbResource{margin-left:8px;background-position:-216px 0;} +div.messages div#message_container div.bbSmilie,div#text_container div.bbSmilie{background-position:-243px 0;} +div.messages div#message_container div.bbTroop,div#text_container div.bbTroop{background-position:-270px 0;} +div.messages div#message_container .bbLine,div#text_container .bbLine{background-position:0 0;} +div.messages div#message_container div#message_toolbar,div#text_container div#text_toolbar{padding:0 10px;} +div.messages div#message_container div#message_preview,div#text_container div#text_preview{padding:0;height:258px;overflow-x:none;overflow-y:auto;} +div.messages div#message_container div#message_toolbarWindows div,div#text_container div#text_toolbarWindows div{position:absolute;left:180px;margin-top:5px;border:1px solid #71D000;padding:5px;background:#efefef;max-width:240px;display:none;} +div#text_container div#text_toolbarWindows div{left:290px;}div.messages div#message_container div#message_toolbar img,div#text_container div#text_toolbar img{margin:4px;} +div.forum textarea#text,div.forum div#text_preview{margin-top:10px;width:400px;padding:5px;} +div.messages .quote-body{font-style:italic;}div.messages div#adressbook{background-image:url(../../img/a/adr.gif);} +div.messages div#block{background-image:url(../../img/msg/block_bg.gif);}div.messages div#block textarea{background-image:url(../../img/msg/underline.gif);background-repeat:repeat;} +div#build.gid37 table#distribution td.xp img.bar{height:10px;background-image:url(../../img/a/c3.gif);background-repeat:repeat-x;} +div#dynamic_header{background-image:url(../../img/l/dyn_bg1.jpg);background-position:-80px -50px;} +body.mod1 div#dynamic_header,body.mod2 div#dynamic_header{background-image:none;} +body.mod1 div#dynamic_header div.dyn1{background-image:url(../../img/l/ad1.jpg);background-position:-20px 0;} +body.mod1 div#dynamic_header div.dyn2{background-image:url(../../img/l/ad2.jpg);} +body.mod2 div#dynamic_header div.dyn1{background-image:url(../../img/l/bigsize_bg.jpg);background-position:-100px 0;} +body.mod3 div#dynamic_header div.dyn1{background-image:url(../../img/l/skyscraper_bg.gif);} +div.forum table#poll thead th{background-image:url(../../img/f/c4.gif);background-repeat:repeat;} +div.alliance div.chatHeader{background-image:url(../../img/a/c2.gif);background-repeat:repeat;} +div.popup3{background-image:url(../../img/a/anl.gif);}div.popup3 img.xlo{width:32px;height:32px;background-image:url(../../img/misc/xlo.gif);} +div.player div#gpack_popup{background-image:url(../../img/a/gp.gif);}div#side_info div#qge img#qgei{height:174px;} +div#side_info div#qge img.q_l1{width:125px;background-image:url(../../img/q/l1.jpg);} +div#side_info div#qge img.q_l1g{width:125px;background-image:url(../../img/q/l1g.jpg);} +div#side_info div#qge img.q_l2{width:164px;background-image:url(../../img/q/l2.jpg);} +div#side_info div#qge img.q_l2g{width:164px;background-image:url(../../img/q/l2g.jpg);} +div#side_info div#qge img.q_l3{width:146px;background-image:url(../../img/q/l3.jpg);} +div#side_info div#qge img.q_l3g{width:146px;background-image:url(../../img/q/l3g.jpg);} +div.quest div#qstbg{height:398px;width:428px;position:absolute;left:11px;top:75px;z-index:1;background-position:bottom;background-color:white;} +div.quest div.allres{height:160px;background-image:url(../../img/q/allres.jpg);} +div.quest div.army{height:169px;background-image:url(../../img/q/army.jpg);}div.quest div.barracks{height:180px;background-image:url(../../img/q/barracks.jpg);} +div.quest div.clay_iron{height:199px;background-image:url(../../img/q/clay_iron.jpg);} +div.quest div.cost{height:242px;background-image:url(../../img/q/cost.jpg);}div.quest div.farm{height:181px;background-image:url(../../img/q/farm.jpg);} +div.quest div.granary_rally{height:163px;background-image:url(../../img/q/granary_rally.jpg);} +div.quest div.hide{height:179px;background-image:url(../../img/q/hide.jpg);display:block;} +div.quest div.intro{height:165px;background-image:url(../../img/q/intro.jpg);}div.quest div.main{height:234px;background-image:url(../../img/q/main.jpg);} +div.quest div.market{height:165px;background-image:url(../../img/q/market.jpg);} +div.quest div.medal{height:214px;background-image:url(../../img/q/medal.jpg);}div.quest div.msg{height:167px;background-image:url(../../img/q/msg.jpg);} +div.quest div.neighbour{height:160px;background-image:url(../../img/q/neighbour.jpg);} +div.quest div.new_village{height:208px;background-image:url(../../img/q/new_village.jpg);} +div.quest div.rank{height:238px;background-image:url(../../img/q/rank.jpg);}div.quest div.units{height:166px;background-image:url(../../img/q/units.jpg);} +div.quest div.village_name{height:160px;background-image:url(../../img/q/village_name.jpg);} +div.quest div.warehouse{height:179px;background-image:url(../../img/q/warehouse.jpg);} +div.quest div.wood{height:237px;background-image:url(../../img/q/wood.jpg);}a#n1 img,a#n2 img,a#n3 img,a#n4 img,div#n5{background-position:0 -21px;background-repeat:no-repeat;height:67px;width:70px;} +body.v35 a#n1 img{background-image:url(../../img/l/n1.gif);}body.v35 a#n2 img{background-image:url(../../img/l/n2.gif);} +body.v35 a#n3 img{background-image:url(../../img/l/n3.gif);}body.v35 a#n4 img{background-image:url(../../img/l/n4.gif);} +body.v3 a#n1 img{background-image:url(../../img/l/n1_30.gif);}body.v3 a#n2 img{background-image:url(../../img/l/n2_30.gif);} +body.v3 a#n3 img{background-image:url(../../img/l/n3_30.gif);}body.v3 a#n4 img{background-image:url(../../img/l/n4_30.gif);} +a#n1:hover img,a#n2:hover img,a#n3:hover img,a#n4:hover img{background-position:0 -121px;} +div#n5 img{height:67px;width:35px;}body.v35 div.i1{background-image:url(../../img/l/m1.gif);} +body.v35 div.i2{background-image:url(../../img/l/m2.gif);}body.v35 div.i3{background-image:url(../../img/l/m3.gif);} +body.v35 div.i4{background-image:url(../../img/l/m4.gif);}body.v3 div.i1{background-image:url(../../img/l/m1_30.gif);} +body.v3 div.i2{background-image:url(../../img/l/m2_30.gif);}body.v3 div.i3{background-image:url(../../img/l/m3_30.gif);} +body.v3 div.i4{background-image:url(../../img/l/m4_30.gif);}img.building{width:75px;height:100px;} +img.g16,img.g16b,img.g16n,img.dx1{width:69px;height:120px;}img.g40,img.ww{width:214px;} +img.g1{background-image:url(../../img/g/g1.gif);}img.g2{background-image:url(../../img/g/g2.gif);} +img.g3{background-image:url(../../img/g/g3.gif);}img.g4{background-image:url(../../img/g/g4.gif);} +img.g5{background-image:url(../../img/g/g5.gif);}img.g5b{background-image:url(../../img/g/g5b.gif);} +img.g6{background-image:url(../../img/g/g6.gif);}img.g6b{background-image:url(../../img/g/g6b.gif);} +img.g7{background-image:url(../../img/g/g7.gif);}img.g7b{background-image:url(../../img/g/g7b.gif);} +img.g8{background-image:url(../../img/g/g8.gif);}img.g8b{background-image:url(../../img/g/g8b.gif);} +img.g9{background-image:url(../../img/g/g9.gif);}img.g9b{background-image:url(../../img/g/g9b.gif);} +img.g10{background-image:url(../../img/g/g10.gif);}img.g10b{background-image:url(../../img/g/g10b.gif);} +img.g11{background-image:url(../../img/g/g11.gif);}img.g11b{background-image:url(../../img/g/g11b.gif);} +img.g12{background-image:url(../../img/g/g12.gif);}img.g12b{background-image:url(../../img/g/g12b.gif);} +img.g13{background-image:url(../../img/g/g13.gif);}img.g13b{background-image:url(../../img/g/g13b.gif);} +img.g14{background-image:url(../../img/g/g14.gif);}img.g14b{background-image:url(../../img/g/g14b.gif);} +img.g15{background-image:url(../../img/g/g15.gif);}img.g15b{background-image:url(../../img/g/g15b.gif);} +img.g16{background-image:url(../../img/g/g16.gif);}img.g16b{background-image:url(../../img/g/g16b.gif);} +img.g16e{background-image:url(../../img/g/g16e.gif);}img.g17{background-image:url(../../img/g/g17.gif);} +img.g17b{background-image:url(../../img/g/g17b.gif);}img.g18{background-image:url(../../img/g/g18.gif);} +img.g18b{background-image:url(../../img/g/g18b.gif);}img.g19{background-image:url(../../img/g/g19.gif);} +img.g19b{background-image:url(../../img/g/g19b.gif);}img.g20{background-image:url(../../img/g/g20.gif);} +img.g20b{background-image:url(../../img/g/g20b.gif);}img.g21{background-image:url(../../img/g/g21.gif);} +img.g21b{background-image:url(../../img/g/g21b.gif);}img.g22{background-image:url(../../img/g/g22.gif);} +img.g22b{background-image:url(../../img/g/g22b.gif);}img.g23{background-image:url(../../img/g/g23.gif);} +img.g23b{background-image:url(../../img/g/g23b.gif);}img.g24{background-image:url(../../img/g/g24.gif);} +img.g24b{background-image:url(../../img/g/g24b.gif);}img.g25{background-image:url(../../img/g/g25.gif);} +img.g25b{background-image:url(../../img/g/g25b.gif);}img.g26{background-image:url(../../img/g/g26.gif);} +img.g26b{background-image:url(../../img/g/g26b.gif);}img.g27{background-image:url(../../img/g/g27.gif);} +img.g27b{background-image:url(../../img/g/g27b.gif);}img.g28{background-image:url(../../img/g/g28.gif);} +img.g28b{background-image:url(../../img/g/g28b.gif);}img.g29{background-image:url(../../img/g/g29.gif);} +img.g29b{background-image:url(../../img/g/g29b.gif);}img.g30{background-image:url(../../img/g/g30.gif);} +img.g30b{background-image:url(../../img/g/g30b.gif);}img.g34{background-image:url(../../img/g/g34.gif);} +img.g34b{background-image:url(../../img/g/g34b.gif);}img.g36{background-image:url(../../img/g/g36.gif);} +img.g36b{background-image:url(../../img/g/g36b.gif);}img.g37{background-image:url(../../img/g/g37.gif);} +img.g37b{background-image:url(../../img/g/g37b.gif);}img.g38{background-image:url(../../img/g/g38.gif);} +img.g38b{background-image:url(../../img/g/g38b.gif);}img.g39{background-image:url(../../img/g/g39.gif);} +img.g39b{background-image:url(../../img/g/g39b.gif);}img.g40{background-image:url(../../img/g/g40.gif);height:154px;} +img.g40_1{background-image:url(../../img/g/g40_1.gif);height:167px;}img.g40_2{background-image:url(../../img/g/g40_2.gif);height:193px;} +img.g40_3{background-image:url(../../img/g/g40_3.gif);height:230px;}img.g40_4{background-image:url(../../img/g/g40_4.gif);height:239px;} +img.g40_5{background-image:url(../../img/g/g40_5.gif);height:302px;}img.g41{background-image:url(../../img/g/g41.gif);} +img.g41b{background-image:url(../../img/g/g41b.gif);}img.g42{background-image:url(../../img/g/g42.gif);} +img.g42b{background-image:url(../../img/g/g42b.gif);}img.g43{background-image:url(../../img/g/g43.gif);} +img.g43b{background-image:url(../../img/g/g43b.gif);}img.g44{background-image:url(../../img/g/g44.gif);} +img.g44b{background-image:url(../../img/g/g44b.gif);}div.village1 div.f1,div.map img.f1{background-image:url(../../img/g/f1.jpg);} +div.village1 div.f2,div.map img.f2{background-image:url(../../img/g/f2.jpg);}div.village1 div.f3,div.map img.f3{background-image:url(../../img/g/f3.jpg);} +div.village1 div.f4,div.map img.f4{background-image:url(../../img/g/f4.jpg);}div.village1 div.f5,div.map img.f5{background-image:url(../../img/g/f5.jpg);} +div.village1 div.f6,div.map img.f6{background-image:url(../../img/g/f6.jpg);}div.village1 div.f7,div.map img.f7{background-image:url(../../img/g/f7.jpg);} +div.village1 div.f8,div.map img.f8{background-image:url(../../img/g/f8.jpg);}div.village1 div.f9,div.map img.f9{background-image:url(../../img/g/f9.jpg);} +div.village1 div.f10,div.map img.f10{background-image:url(../../img/g/f10.jpg);} +div.village1 div.f11,div.map img.f11{background-image:url(../../img/g/f11.jpg);} +div.village1 div.f12,div.map img.f12{background-image:url(../../img/g/f12.jpg);} +div.village1 div.f99,div.map img.f99{background-image:url(../../img/g/f99.jpg);} +div.village1 div#village_map img.level1,div.village1 div#village_map img.level2,div.village1 div#village_map img.level3,div.village1 div#village_map img.level4,div.village1 div#village_map img.level5,div.village1 div#village_map img.level6,div.village1 div#village_map img.level7,div.village1 div#village_map img.level8,div.village1 div#village_map img.level9,div.village1 div#village_map img.level10{background-image:url(../../img/g/s/lvl1_10.gif);} +div.village1 div#village_map img.level11,div.village1 div#village_map img.level12,div.village1 div#village_map img.level13,div.village1 div#village_map img.level14,div.village1 div#village_map img.level15,div.village1 div#village_map img.level16,div.village1 div#village_map img.level17,div.village1 div#village_map img.level18,div.village1 div#village_map img.level19,div.village1 div#village_map img.level20{background-image:url(../../img/g/s/lvl11_20.gif);} +div.village1 div#village_map img.level21,div.village1 div#village_map img.level22,div.village1 div#village_map img.level23,div.village1 div#village_map img.level24,div.village1 div#village_map img.level25{background-image:url(../../img/g/s/lvl21_30.gif);} +div.village1 div#village_map img.level1,div.village1 div#village_map img.level11,div.village1 div#village_map img.level21{background-position:0 0;} +div.village1 div#village_map img.level2,div.village1 div#village_map img.level12,div.village1 div#village_map img.level22{background-position:-17px 0;} +div.village1 div#village_map img.level3,div.village1 div#village_map img.level13,div.village1 div#village_map img.level23{background-position:-34px 0;} +div.village1 div#village_map img.level4,div.village1 div#village_map img.level14,div.village1 div#village_map img.level24{background-position:-51px 0;} +div.village1 div#village_map img.level5,div.village1 div#village_map img.level15,div.village1 div#village_map img.level25{background-position:-68px 0;} +div.village1 div#village_map img.level6,div.village1 div#village_map img.level16{background-position:-85px 0;} +div.village1 div#village_map img.level7,div.village1 div#village_map img.level17{background-position:-102px 0;} +div.village1 div#village_map img.level8,div.village1 div#village_map img.level18{background-position:-119px 0;} +div.village1 div#village_map img.level9,div.village1 div#village_map img.level19{background-position:-136px 0;} +div.village1 div#village_map img.level10,div.village1 div#village_map img.level20{background-position:-153px 0;} +div.map img#detailed_map{width:300px;height:264px;}div.map img.w1{background-image:url(../../img/m/w1.jpg);} +div.map img.w2{background-image:url(../../img/m/w2.jpg);}div.map img.w3{background-image:url(../../img/m/w3.jpg);} +div.map img.w4{background-image:url(../../img/m/w4.jpg);}div.map img.w5{background-image:url(../../img/m/w5.jpg);} +div.map img.w6{background-image:url(../../img/m/w6.jpg);}div.map img.w7{background-image:url(../../img/m/w7.jpg);} +div.map img.w8{background-image:url(../../img/m/w8.jpg);}div.map img.w9{background-image:url(../../img/m/w9.jpg);} +div.map img.w10{background-image:url(../../img/m/w10.jpg);}div.map img.w11{background-image:url(../../img/m/w11.jpg);} +div.map img.w12{background-image:url(../../img/m/w12.jpg);}div.village2 div.d2_0{background-image:url(../../img/g/bg0.jpg);} +div.village2 div.d2_1{background-image:url(../../img/g/bg1.jpg);}div.village2 div.d2_11{background-image:url(../../img/g/bg11.jpg);} +div.village2 div.d2_12{background-image:url(../../img/g/bg12.jpg);}div.village2 div#village_map img.iso{background-image:url(../../img/g/iso.gif);} +div.village2 div#levels div{background:url(../../img/g/s/glvl.gif);}div.village2 div#village_map img.tur{background-image:url(../../img/special/NewyearRocket_turquoise_1a.gif);} +div.village2 div#village_map img.purp{background-image:url(../../img/special/NewyearRocket_purple_1a.gif);} +div.village2 div#village_map img.yell{background-image:url(../../img/special/NewyearRocket_yellow_1a.gif);} +div.village2 div#village_map img.oran{background-image:url(../../img/special/NewyearRocket_orange_1a.gif);} +div.village2 div#village_map img.green{background-image:url(../../img/special/NewyearRocket_green_1a.gif);} +div.village2 div#village_map img.red{background-image:url(../../img/special/NewyearRocket_red_1a.gif);} +div#map div#map_content div.b00{background-image:url(../../img/m/d00.gif);}div#map div#map_content div.b01{background-image:url(../../img/m/d01.gif);} +div#map div#map_content div.b02{background-image:url(../../img/m/d02.gif);}div#map div#map_content div.b03{background-image:url(../../img/m/d03.gif);} +div#map div#map_content div.b04{background-image:url(../../img/m/d04.gif);}div#map div#map_content div.b05{background-image:url(../../img/m/d05.gif);} +div#map div#map_content div.b06{background-image:url(../../img/m/d06.gif);}div#map div#map_content div.b07{background-image:url(../../img/m/d07.gif);} +div#map div#map_content div.b08{background-image:url(../../img/m/d08.gif);}div#map div#map_content div.b09{background-image:url(../../img/m/d09.gif);} +div#map div#map_content div.b10{background-image:url(../../img/m/d10.gif);}div#map div#map_content div.b11{background-image:url(../../img/m/d11.gif);} +div#map div#map_content div.b12{background-image:url(../../img/m/d12.gif);}div#map div#map_content div.b13{background-image:url(../../img/m/d13.gif);} +div#map div#map_content div.b14{background-image:url(../../img/m/d14.gif);}div#map div#map_content div.b15{background-image:url(../../img/m/d15.gif);} +div#map div#map_content div.b16{background-image:url(../../img/m/d16.gif);}div#map div#map_content div.b17{background-image:url(../../img/m/d17.gif);} +div#map div#map_content div.b18{background-image:url(../../img/m/d18.gif);}div#map div#map_content div.b19{background-image:url(../../img/m/d19.gif);} +div#map div#map_content div.b20{background-image:url(../../img/m/d20.gif);}div#map div#map_content div.b21{background-image:url(../../img/m/d21.gif);} +div#map div#map_content div.b22{background-image:url(../../img/m/d22.gif);}div#map div#map_content div.b23{background-image:url(../../img/m/d23.gif);} +div#map div#map_content div.b24{background-image:url(../../img/m/d24.gif);}div#map div#map_content div.b25{background-image:url(../../img/m/d25.gif);} +div#map div#map_content div.b26{background-image:url(../../img/m/d26.gif);}div#map div#map_content div.b27{background-image:url(../../img/m/d27.gif);} +div#map div#map_content div.b28{background-image:url(../../img/m/d28.gif);}div#map div#map_content div.b29{background-image:url(../../img/m/d29.gif);} +div#map div#map_content div.b30{background-image:url(../../img/m/d30.gif);}div#map div#map_content div.b31{background-image:url(../../img/m/d31.gif);} +div#map div#map_content div.b32{background-image:url(../../img/m/d32.gif);}div#map div#map_content div.b33{background-image:url(../../img/m/d33.gif);} +div#map div#map_content div.b34{background-image:url(../../img/m/d34.gif);}div#map div#map_content div.b35{background-image:url(../../img/m/d35.gif);} +div#map div#map_content div.o0{background-image:url(../../img/m/o0.gif);}div#map div#map_content div.o1{background-image:url(../../img/m/o1.gif);} +div#map div#map_content div.o2{background-image:url(../../img/m/o2.gif);}div#map div#map_content div.o3{background-image:url(../../img/m/o3.gif);} +div#map div#map_content div.o4{background-image:url(../../img/m/o4.gif);}div#map div#map_content div.o5{background-image:url(../../img/m/o5.gif);} +div#map div#map_content div.o6{background-image:url(../../img/m/o6.gif);}div#map div#map_content div.o7{background-image:url(../../img/m/o7.gif);} +div#map div#map_content div.o8{background-image:url(../../img/m/o8.gif);}div#map div#map_content div.o9{background-image:url(../../img/m/o9.gif);} +div#map div#map_content div.o10{background-image:url(../../img/m/o10.gif);}div#map div#map_content div.o11{background-image:url(../../img/m/o11.gif);} +div#map div#map_content div.o12{background-image:url(../../img/m/o12.gif);}div#map div#map_content div.o99{background-image:url(../../img/m/o99.gif);} +div#map div#map_content div.t0{background-image:url(../../img/m/t0.gif);}div#map div#map_content div.t1{background-image:url(../../img/m/t1.gif);} +div#map div#map_content div.t2{background-image:url(../../img/m/t2.gif);}div#map div#map_content div.t3{background-image:url(../../img/m/t3.gif);} +div#map div#map_content div.t4{background-image:url(../../img/m/t4.gif);}div#map div#map_content div.t5{background-image:url(../../img/m/t5.gif);} +div#map div#map_content div.t6{background-image:url(../../img/m/t6.gif);}div#map div#map_content div.t7{background-image:url(../../img/m/t7.gif);} +div#map div#map_content div.t8{background-image:url(../../img/m/t8.gif);}div#map div#map_content div.t9{background-image:url(../../img/m/t9.gif);} +div#map img#map_navibox{width:100px;height:60px;background-image:url(../../img/m/dir.gif);} +div.forum table#poll td.stat img{height:12px;}div.forum table#poll td.stat img.stats-start{width:5px;background-image:url(../../img/f/stats_left.gif);} +div.forum table#poll td.stat img.stats-middle{background-image:url(../../img/f/stats_middle.gif);background-repeat:repeat-x;} +div.forum table#poll td.stat img.stats-end{width:5px;background-image:url(../../img/f/stats_right.gif);} +div.messages div#write_content a#adbook img{width:48px;height:29px;background-image:url(../../img/a/friends.gif);} +div.player div#gpack_popup img.logo{width:40px;height:40px;}div.player div#gpack_popup img.firefox{background-image:url(../../img/a/firefox.gif);} +div.player div#gpack_popup img.opera{background-image:url(../../img/a/opera.gif);} +div.player div#gpack_popup img.ie{background-image:url(../../img/a/ie.gif);}div.player div#gpack_popup img.unknown{background-image:url(../../img/a/unknown.gif);} +div.player div#gpack_popup div#gpack_activate img#preview{width:0;height:0;background-image:none;} +body.manual img.troops{width:140px;height:89px;background-image:url(../../img/a/troops.gif);} +body.manual img.buildings{width:140px;height:89px;background-image:url(../../img/a/buildings.gif);} +body.manual img.navi{width:116px;height:18px;background-image:url(../../img/a/navi.gif);} +body.manual img#big_unit{width:150px;height:120px;}body.manual img.big_u1{background-image:url(../../img/u2/u1.gif);} +body.manual img.big_u2{background-image:url(../../img/u2/u2.gif);}body.manual img.big_u3{background-image:url(../../img/u2/u3.gif);} +body.manual img.big_u4{background-image:url(../../img/u2/u4.gif);}body.manual img.big_u5{background-image:url(../../img/u2/u5.gif);} +body.manual img.big_u6{background-image:url(../../img/u2/u6.gif);}body.manual img.big_u7{background-image:url(../../img/u2/u7.gif);} +body.manual img.big_u8{background-image:url(../../img/u2/u8.gif);}body.manual img.big_u9{background-image:url(../../img/u2/u9.gif);} +body.manual img.big_u10{background-image:url(../../img/u2/u10.gif);}body.manual img.big_u11{background-image:url(../../img/u2/u11.gif);} +body.manual img.big_u12{background-image:url(../../img/u2/u12.gif);}body.manual img.big_u13{background-image:url(../../img/u2/u13.gif);} +body.manual img.big_u14{background-image:url(../../img/u2/u14.gif);}body.manual img.big_u15{background-image:url(../../img/u2/u15.gif);} +body.manual img.big_u16{background-image:url(../../img/u2/u16.gif);}body.manual img.big_u17{background-image:url(../../img/u2/u17.gif);} +body.manual img.big_u18{background-image:url(../../img/u2/u18.gif);}body.manual img.big_u19{background-image:url(../../img/u2/u19.gif);} +body.manual img.big_u20{background-image:url(../../img/u2/u20.gif);}body.manual img.big_u21{background-image:url(../../img/u2/u21.gif);} +body.manual img.big_u22{background-image:url(../../img/u2/u22.gif);}body.manual img.big_u23{background-image:url(../../img/u2/u23.gif);} +body.manual img.big_u24{background-image:url(../../img/u2/u24.gif);}body.manual img.big_u25{background-image:url(../../img/u2/u25.gif);} +body.manual img.big_u26{background-image:url(../../img/u2/u26.gif);}body.manual img.big_u27{background-image:url(../../img/u2/u27.gif);} +body.manual img.big_u28{background-image:url(../../img/u2/u28.gif);}body.manual img.big_u29{background-image:url(../../img/u2/u29.gif);} +body.manual img.big_u30{background-image:url(../../img/u2/u30.gif);}div.plus table#gold_features td.preview img{width:150px;height:150px;} +div.plus table#gold_features td.preview img.p1_25{background-image:url(../../img/p/p1_25.jpg);} +div.plus table#gold_features td.preview img.p2_25{background-image:url(../../img/p/p2_25.jpg);} +div.plus table#gold_features td.preview img.p3_25{background-image:url(../../img/p/p3_25.jpg);} +div.plus table#gold_features td.preview img.p4_25{background-image:url(../../img/p/p4_25.jpg);} +div.plus table#gold_features td.preview img.off10{background-image:url(../../img/p/off10.jpg);} +div.plus table#gold_features td.preview img.def10{background-image:url(../../img/p/def10.jpg);} +div.plus table#gold_features td.preview img.bau0{background-image:url(../../img/p/bau0.jpg);} +div.plus table#gold_features td.preview img.npc{background-image:url(../../img/p/npc.jpg);} +div.plus table#plus_features td.preview img.att_mark{width:200px;height:100px;background-image:url(../../img/p/attack_marker.gif);} +div.logout img.roman,div.signup img.roman{width:129px;height:156px;background-image:url(http://img.travian.org/img/de/temp/roemer.gif);} +div.error_site img.e403{width:165px;height:211px;background-image:url(../../img/misc/403.gif);} +div.error_site img.e404{width:190px;height:155px;background-image:url(../../img/misc/404.gif);} +div.error_site img.e500{width:254px;height:207px;background-image:url(../../img/misc/500.gif);} +div.peace{font-size:18pt;left:110px;position:absolute;top:-5px;z-index:999;}div.peace.active{color:#FF8000;} +div.peace.comming{color:#C0C0C0;}img.day{width:18px;height:18px;position:absolute;left:104px;top:-5px;background-image:url(../../img/l/day.gif);} +img.night{width:18px;height:18px;position:absolute;left:104px;top:-5px;background-image:url(../../img/l/night.gif);} +img.g35{background-image:url(../../img/g/g35.gif);}img.g35b{background-image:url(../../img/g/g35b.gif);} +div.plus div#payment table td{border:none;}div.plus div#payment table table tr.rbg td{font-weight:bold;text-align:center;background-image:url(../../img/a/c2.gif);background-repeat:repeat;} +div.plus div#payment table{border-collapse:separate;}div.plus div#payment table td{padding:2px;text-align:center;} +div.plus div#payment table tr.s7 td{text-align:left;}div.plus div#payment table table td.th_bg{background-image:url(../../img/a/c2.gif);background-repeat:repeat;} +div.wmError{margin-top:15px;color:#FF8000;}div.wmMsg{margin-top:15px;color:#71D000;} +table.tippTable{margin:20px 0;background-color:transparent;}div.wmInfo{width:80%;float:left;} +img.wmInfo{width:100px;float:right;display:inline;}div#wmContent{margin-top:40px;} +div#wmContent input.disabled{cursor:default;height:20px;background-position:center center;} +div#side_navi img.wm_logo{background:url(../../img/wm/wm99.gif) no-repeat;width:33px;height:33px;position:absolute;left:103px;top:-21px;} +td.wm_getippt{background-color:#e2ffb9;} \ No newline at end of file diff --git a/gpack/travianx_v1/lang/en/f/Thumbs.db b/gpack/travianx_v1/lang/en/f/Thumbs.db new file mode 100644 index 00000000..e577196a Binary files /dev/null and b/gpack/travianx_v1/lang/en/f/Thumbs.db differ diff --git a/gpack/travianx_v1/lang/en/f/newforum.gif b/gpack/travianx_v1/lang/en/f/newforum.gif new file mode 100644 index 00000000..9c9195f3 Binary files /dev/null and b/gpack/travianx_v1/lang/en/f/newforum.gif differ diff --git a/gpack/travianx_v1/lang/en/f/post.gif b/gpack/travianx_v1/lang/en/f/post.gif new file mode 100644 index 00000000..0dfda4c9 Binary files /dev/null and b/gpack/travianx_v1/lang/en/f/post.gif differ diff --git a/gpack/travianx_v1/lang/en/f/reply.gif b/gpack/travianx_v1/lang/en/f/reply.gif new file mode 100644 index 00000000..199f100e Binary files /dev/null and b/gpack/travianx_v1/lang/en/f/reply.gif differ diff --git a/gpack/travianx_v1/lang/en/f/result.gif b/gpack/travianx_v1/lang/en/f/result.gif new file mode 100644 index 00000000..12b42aa7 Binary files /dev/null and b/gpack/travianx_v1/lang/en/f/result.gif differ diff --git a/gpack/travianx_v1/lang/en/f/vote.gif b/gpack/travianx_v1/lang/en/f/vote.gif new file mode 100644 index 00000000..20a1ea2c Binary files /dev/null and b/gpack/travianx_v1/lang/en/f/vote.gif differ diff --git a/gpack/travianx_v1/lang/en/f/voting.gif b/gpack/travianx_v1/lang/en/f/voting.gif new file mode 100644 index 00000000..ee68b11a Binary files /dev/null and b/gpack/travianx_v1/lang/en/f/voting.gif differ diff --git a/gpack/travianx_v1/lang/en/gp_check.css b/gpack/travianx_v1/lang/en/gp_check.css new file mode 100644 index 00000000..1d94b2be --- /dev/null +++ b/gpack/travianx_v1/lang/en/gp_check.css @@ -0,0 +1,11 @@ +@CHARSET "UTF-8"; +div.player +div#gpack_popup +div#gpack_error{display:none} +div.player +div#gpack_popup +div#gpack_activate{display:block} +div.player +div#gpack_popup +div#gpack_activate +img#preview{width:442px;height:150px;background-image:url(new/gp_preview.png)} \ No newline at end of file diff --git a/gpack/travianx_v1/lang/en/lang.css b/gpack/travianx_v1/lang/en/lang.css new file mode 100644 index 00000000..87c937f8 --- /dev/null +++ b/gpack/travianx_v1/lang/en/lang.css @@ -0,0 +1,18 @@ +@CHARSET "UTF-8"; + +/* + *------------------------------------------------------------------------------ + * LANG is used to define the language-specific images and settings. + * + * Contains: + * width, height, background-image, background-repeat, background-position + *------------------------------------------------------------------------------ + */ + +@import "../../modules/new_layout_ltr.css"; + +/* --- Colors ------------------------- */ +@import "../../modules/new_colors.css"; + +/* --- Icons, Images and Backgrounds ---------- */ +@import "../../modules/new_images.css"; input#btn_login {width:97px; background-image: url(b/login.gif);} input#btn_signup {width:97px; background-image: url(b/signup.gif);} input#btn_ok {width:47px; background-image: url(b/ok.gif);} input#btn_reply {width:97px; background-image: url(b/reply.gif);} input#btn_send {width:97px; background-image: url(b/send.gif);} input#btn_save {width:97px; background-image: url(b/save.gif);} input#btn_delete {width:97px; background-image: url(b/delete.gif);} input#btn_archiv {width:97px; background-image: url(b/archiv.gif);} input#btn_back {width:97px; background-image: url(b/zurueck.html);} input#btn_train {width:97px; background-image: url(b/train.gif);} input#btn_back {width:97px; background-image: url(b/back.gif);} input#btn_forward {width:97px; background-image: url(b/forward.gif);} input#btn_demolish {width:97px; background-image: url(b/demolish.gif);} input#btn_search {width:97px; background-image: url(b/search.gif);} /* Ally Forum */ div.forum input#fbtn_ok {width:47px; background-image:url(b/ok.gif);} div.forum input#fbtn_vote {width:97px; background-image:url(f/vote.gif);} div.forum input#fbtn_result {width:97px; background-image:url(f/result.gif);} div.forum input#fbtn_voting {width:97px; background-image:url(f/voting.gif);} div.forum img#fbtn_reply {width:97px; background-image:url(f/reply.gif);} div.forum img#fbtn_post {width:97px; background-image:url(f/post.gif);} div.forum img#fbtn_newforum {width:97px; background-image:url(f/newforum.gif);} /* ------------------- Texts ------------------- */ /* --------------------------------------------- */ /* news */ div#side_info h5 img {width:160px; height:15px;} /* login */ div.login h1 img.img_login {width:468px; height:60px; background-image:url(t1/login.gif);} div.login h5 img.img_u04 {width:160px; height:15px; background-image:url(t2/u04.gif);} /* signup */ div.signup h1 img.anmelden {width:468px; height:60px; background-image:url(t1/anmelden.gif);} div.signup h5 img.img_u05 {width:160px; height:15px; background-image:url(t2/u05.gif);} div.signup img.img_u06 {width:160px; height:15px; background-image:url(t2/u06.gif);} div.signup img.img_u07 {width:160px; height:15px; background-image:url(t2/u07.gif);} /* activate */ div.activate h1 img.passwort {width:468px; height:60px; background-image:url(t1/passwort.gif);} div.activate h5 img.img_u22 {width:160px; height:15px; background-image:url(t2/u22.gif);} /* read/write message */ div.messages div.msg_content img#label {width:77px; height:34px;} div.messages div.msg_content img.send {background-image:url(msg/block_bg24b.gif);} div.messages div.msg_content img.read {background-image:url(msg/block_bg24a.gif);} /* ------------------- Images ------------------- */ /* ---------------------------------------------- */ /* travian logo */ div#side_navi a#logo img {width:116px; height:60px; background-image:url(a/travian0.gif);} div#side_navi a#logo img.logo_plus {background-image:url(a/travian1.gif);} /* plus previews */ div.plus table#plus_features td.preview img.autovv {width:200px; height:56px; background-image:url(p/autovv.gif);} div.plus table#plus_features td.preview img.bfilter {width:200px; height:45px; background-image:url(p/bfilter.gif);} div.plus table#plus_features td.preview img.dorf3 {width:200px; height:186px; background-image:url(p/dorf3.jpg);} div.plus table#plus_features td.preview img.p1 {width:179px; height:29px; background-image:url(p/p1.gif);} div.plus table#plus_features td.preview img.p3 {width:163px; height:120px; background-image:url(p/p3.gif);} div.plus table#plus_features td.preview img.p4 {width:197px; height:41px; background-image:url(p/p4.gif);} div.plus table#plus_features td.preview img.p5 {width:132px; height:51px; background-image:url(p/p5.gif);} div.plus table#plus_features td.preview img.p6 {width:111px; height:29px; background-image:url(p/p6.gif);} div.plus table#plus_features td.preview img.p7 {width:61px; height:86px; background-image:url(p/p7.gif);} div.plus table#plus_features td.preview img.p8 {width:117px; height:121px; background-image:url(p/p8.gif);} div.plus table#plus_features td.preview img.sort {width:200px; height:38px; background-image:url(p/sort.jpg);} div.plus table#plus_features td.preview img.st1 {width:200px; height:90px; background-image:url(p/st1.gif);} div.plus table#plus_features td.preview img.xxl_map {width:146px; height:112px; background-image:url(p/xxl_map.gif);} input#btn_search {width:97px; background-image: url(b/search.gif);} diff --git a/gpack/travianx_v1/lang/en/msg/Thumbs.db b/gpack/travianx_v1/lang/en/msg/Thumbs.db new file mode 100644 index 00000000..8849e29f Binary files /dev/null and b/gpack/travianx_v1/lang/en/msg/Thumbs.db differ diff --git a/gpack/travianx_v1/lang/en/msg/block_bg24a.gif b/gpack/travianx_v1/lang/en/msg/block_bg24a.gif new file mode 100644 index 00000000..e389a4a4 Binary files /dev/null and b/gpack/travianx_v1/lang/en/msg/block_bg24a.gif differ diff --git a/gpack/travianx_v1/lang/en/msg/block_bg24b.gif b/gpack/travianx_v1/lang/en/msg/block_bg24b.gif new file mode 100644 index 00000000..dc039d1c Binary files /dev/null and b/gpack/travianx_v1/lang/en/msg/block_bg24b.gif differ diff --git a/gpack/travianx_v1/lang/en/new/gp_preview.png b/gpack/travianx_v1/lang/en/new/gp_preview.png new file mode 100644 index 00000000..6de495a1 Binary files /dev/null and b/gpack/travianx_v1/lang/en/new/gp_preview.png differ diff --git a/gpack/travianx_v1/lang/en/p/Thumbs.db b/gpack/travianx_v1/lang/en/p/Thumbs.db new file mode 100644 index 00000000..5df33705 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/Thumbs.db differ diff --git a/gpack/travianx_v1/lang/en/p/autovv.gif b/gpack/travianx_v1/lang/en/p/autovv.gif new file mode 100644 index 00000000..3ebc0d00 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/autovv.gif differ diff --git a/gpack/travianx_v1/lang/en/p/bfilter.gif b/gpack/travianx_v1/lang/en/p/bfilter.gif new file mode 100644 index 00000000..97942339 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/bfilter.gif differ diff --git a/gpack/travianx_v1/lang/en/p/dorf3.jpg b/gpack/travianx_v1/lang/en/p/dorf3.jpg new file mode 100644 index 00000000..ce88756b Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/dorf3.jpg differ diff --git a/gpack/travianx_v1/lang/en/p/p1.gif b/gpack/travianx_v1/lang/en/p/p1.gif new file mode 100644 index 00000000..6f6d868a Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/p1.gif differ diff --git a/gpack/travianx_v1/lang/en/p/p3.gif b/gpack/travianx_v1/lang/en/p/p3.gif new file mode 100644 index 00000000..eca80249 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/p3.gif differ diff --git a/gpack/travianx_v1/lang/en/p/p4.gif b/gpack/travianx_v1/lang/en/p/p4.gif new file mode 100644 index 00000000..113f4a27 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/p4.gif differ diff --git a/gpack/travianx_v1/lang/en/p/p5.gif b/gpack/travianx_v1/lang/en/p/p5.gif new file mode 100644 index 00000000..9dad5211 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/p5.gif differ diff --git a/gpack/travianx_v1/lang/en/p/p6.gif b/gpack/travianx_v1/lang/en/p/p6.gif new file mode 100644 index 00000000..cf63c4eb Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/p6.gif differ diff --git a/gpack/travianx_v1/lang/en/p/p7.gif b/gpack/travianx_v1/lang/en/p/p7.gif new file mode 100644 index 00000000..2f558af3 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/p7.gif differ diff --git a/gpack/travianx_v1/lang/en/p/p8.gif b/gpack/travianx_v1/lang/en/p/p8.gif new file mode 100644 index 00000000..bc8e346b Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/p8.gif differ diff --git a/gpack/travianx_v1/lang/en/p/sort.jpg b/gpack/travianx_v1/lang/en/p/sort.jpg new file mode 100644 index 00000000..baf9cdf4 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/sort.jpg differ diff --git a/gpack/travianx_v1/lang/en/p/st1.gif b/gpack/travianx_v1/lang/en/p/st1.gif new file mode 100644 index 00000000..f3cc7f32 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/st1.gif differ diff --git a/gpack/travianx_v1/lang/en/p/xxl_map.gif b/gpack/travianx_v1/lang/en/p/xxl_map.gif new file mode 100644 index 00000000..6b6ffc70 Binary files /dev/null and b/gpack/travianx_v1/lang/en/p/xxl_map.gif differ diff --git a/gpack/travianx_v1/lang/en/t1/Thumbs.db b/gpack/travianx_v1/lang/en/t1/Thumbs.db new file mode 100644 index 00000000..77fea1cd Binary files /dev/null and b/gpack/travianx_v1/lang/en/t1/Thumbs.db differ diff --git a/gpack/travianx_v1/lang/en/t1/anmelden.gif b/gpack/travianx_v1/lang/en/t1/anmelden.gif new file mode 100644 index 00000000..8850d263 Binary files /dev/null and b/gpack/travianx_v1/lang/en/t1/anmelden.gif differ diff --git a/gpack/travianx_v1/lang/en/t1/login.gif b/gpack/travianx_v1/lang/en/t1/login.gif new file mode 100644 index 00000000..db106b85 Binary files /dev/null and b/gpack/travianx_v1/lang/en/t1/login.gif differ diff --git a/gpack/travianx_v1/lang/en/t1/passwort.gif b/gpack/travianx_v1/lang/en/t1/passwort.gif new file mode 100644 index 00000000..193bae56 Binary files /dev/null and b/gpack/travianx_v1/lang/en/t1/passwort.gif differ diff --git a/gpack/travianx_v1/lang/en/t2/Thumbs.db b/gpack/travianx_v1/lang/en/t2/Thumbs.db new file mode 100644 index 00000000..823a9d53 Binary files /dev/null and b/gpack/travianx_v1/lang/en/t2/Thumbs.db differ diff --git a/gpack/travianx_v1/lang/en/t2/u04.gif b/gpack/travianx_v1/lang/en/t2/u04.gif new file mode 100644 index 00000000..531c70cc Binary files /dev/null and b/gpack/travianx_v1/lang/en/t2/u04.gif differ diff --git a/gpack/travianx_v1/lang/en/t2/u05.gif b/gpack/travianx_v1/lang/en/t2/u05.gif new file mode 100644 index 00000000..c4a64f25 Binary files /dev/null and b/gpack/travianx_v1/lang/en/t2/u05.gif differ diff --git a/gpack/travianx_v1/lang/en/t2/u06.gif b/gpack/travianx_v1/lang/en/t2/u06.gif new file mode 100644 index 00000000..d66e848b Binary files /dev/null and b/gpack/travianx_v1/lang/en/t2/u06.gif differ diff --git a/gpack/travianx_v1/lang/en/t2/u07.gif b/gpack/travianx_v1/lang/en/t2/u07.gif new file mode 100644 index 00000000..b76075fe Binary files /dev/null and b/gpack/travianx_v1/lang/en/t2/u07.gif differ diff --git a/gpack/travianx_v1/lang/en/t2/u22.gif b/gpack/travianx_v1/lang/en/t2/u22.gif new file mode 100644 index 00000000..699ed524 Binary files /dev/null and b/gpack/travianx_v1/lang/en/t2/u22.gif differ diff --git a/gpack/travianx_v1/modules/new_colors.css b/gpack/travianx_v1/modules/new_colors.css new file mode 100644 index 00000000..bf67b66d --- /dev/null +++ b/gpack/travianx_v1/modules/new_colors.css @@ -0,0 +1 @@ +@CHARSET "UTF-8"; \ No newline at end of file diff --git a/gpack/travianx_v1/modules/new_images.css b/gpack/travianx_v1/modules/new_images.css new file mode 100644 index 00000000..1a52c86c --- /dev/null +++ b/gpack/travianx_v1/modules/new_images.css @@ -0,0 +1,58 @@ +@CHARSET "UTF-8"; + +.wrapper {background: transparent url(../images/header_background.jpg) repeat-x left top;} + +div#footer {background: #F1F1F1 url(../images/footer_background.gif) repeat-x center top;} + +div#footer div#mfoot {background: transparent url(../images/footer_logo.gif) no-repeat 0px 21px;} + +div#dynamic_header, +body.mod1 div#dynamic_header, +body.mod3 div#dynamic_header {background: transparent url(../images/artwork1-ltr.jpg) no-repeat center top;} + +body.mod2 div#dynamic_header {background: transparent url(../images/artwork2-ltr.jpg) no-repeat center top;} + +div#header {background-image: none;} + +div#side_navi {background: transparent url(../images/shadow-a-ltr.png) no-repeat right top; margin-top: 30px;} +div#side_navi a:hover {background: transparent url(../images/menu-bg-ltr.gif) no-repeat left top;} + +body.v35 a#n1 img {background-image: url(../images/n1-ltr.gif);} +body.v35 a#n2 img {background-image: url(../images/n2-ltr.gif);} +body.v35 a#n3 img {background-image: url(../images/n3-ltr.gif);} +body.v35 a#n4 img {background-image: url(../images/n4-ltr.gif);} +body.v35 div.i1 {background-image:url(../images/m1-ltr.gif);} /* beide */ +body.v35 div.i2 {background-image:url(../images/m2-ltr.gif);} /* IGM */ +body.v35 div.i3 {background-image:url(../images/m3-ltr.gif);} /* Report */ +body.v35 div.i4 {background-image:url(../images/m4-ltr.gif);} /* none */ + + +div#mtop a#plus {background: transparent url(../images/plus_bg.gif) repeat-x 0 0px; margin-left:135px;} +div#mtop a#plus span.plus_text { + display: block; + background: transparent url(../images/plus_start-ltr.gif) no-repeat left top; + height: 29px; + padding: 6px 14px; + float:left; + cursor: pointer; +} +div#mtop a#plus span span {display: inline; cursor: pointer;} +div#mtop a#plus {display: block; font-size: 13px; height: 40px; margin-top:16px; position: relative;} +img#btn_plus { + background-position: left top; + background-repeat: no-repeat; + height: 29px; + width: 36px; + float:left; +} +#plus img.active {background-image: url(../images/plus_active-ltr.gif);} +#plus img.inactive {background-image: url(../images/plus_inactive-ltr.gif);} + + + +div#side_info, +body.mod1 div#side_info, +body.mod2 div#side_info, +body.mod3 div#side_info {background: transparent url(../images/shadow-b-ltr.png) no-repeat left top;} + + diff --git a/gpack/travianx_v1/modules/new_layout_ltr.css b/gpack/travianx_v1/modules/new_layout_ltr.css new file mode 100644 index 00000000..6a8a53d5 --- /dev/null +++ b/gpack/travianx_v1/modules/new_layout_ltr.css @@ -0,0 +1,189 @@ +@CHARSET "UTF-8"; + +/* --- Scrollbarantiwackler --- */ +body {overflow-y:scroll;} + +body.manual {overflow-y: hidden; } + + +/* Layout */ +html, body {height: 100%;} +.wrapper {height: auto !important; /* Important Regel für moderne Browser */ height: 100%; /* Mindesthöhe für den IE */ min-height: 100%; position: relative;} + +.ie6 .wrapper {text-align: center;} /* IE6 Hack damit das alles zentriert wird */ +.ie6 .wrapper * {text-align: left;} /* IE6 Hack im Content rückgängig machgen */ + +/* --- Table Row Highlight --- */ +table.row_table_data tr.hlight td {background-color: #fffaf0;} +table.row_table_data tr.marked td {background-color: #fff8dc;} + +/* Body */ +body {background-color: #FFFFFF;} +body.manual {background-image: none;} + + +div.popup3 { + left: 50%; + top:170px; + margin-left: -285px; +} +#ce { + width: 100%; + height: 0; +} + +/* --- Main Header --- */ +body.mod1 div#dynamic_header div.dyn1, +body.mod1 div#dynamic_header div.dyn2, +body.mod2 div#dynamic_header div.dyn1, +body.mod2 div#dynamic_header div.dyn2, +body.mod3 div#dynamic_header div.dyn1, +body.mod3 div#dynamic_header div.dyn2 {display: none;} + +body.mod2 div#dynamic_header { + height: 100px; +} + +body.mod2 div#dynamic_header #ad_iframe{ + left: 50%; + margin-left: -303px; +} + +div#dynamic_header, +body.mod1 div#dynamic_header, +body.mod2 div#dynamic_header, +body.mod3 div#dynamic_header { height: 100px;} + +/* Header Menu */ +div#header {height: 72px;} +div#mtop, +body.mod1 div#mtop, +body.mod2 div#mtop, +body.mod3 div#mtop {height: 72px; left: 50%; margin-left: -241px; z-index: 2; width: 700px;} +a#n1 img, a#n2 img, a#n3 img, a#n4 img, div#n5 {height: 72px;} +div#mtop div#n5 .reports {float: left;} +div#mtop div#n5 .messages {float: right;} + + +a#logo {display: none;} + +/* World Status Peace, Day Night */ +img.day, img.night, div.peace {left: 12px; top: -89px;} +div.peace {left: 12px; top: -98px;} + +/* Exe Time */ +div#stime {display: inline; height: 0; left: 0; top: 0; width: 0;} +div#ltime, +body.mod1 div#ltime, +body.mod2 div#ltime, +body.mod3 div#ltime {min-width: 980px; left: 0; top: 111px; width: 100%; z-index: 1;} +div#ltime div#ltimeWrap {margin: 0 auto 0 auto; width: 905px; position: relative;} +div#ltime div.devEvents {position: absolute; bottom: -25px; left: 0px;} + +/* Ressources */ +div#res, +body.mod1 div#res, +body.mod2 div#res, +body.mod3 div#res {left: 0; min-width: 980px; top: 175px; width: 100%; z-index: 2;} +div#resWrap {left: 50%; margin-left: -335px; position: relative; width: 552px;} +div#res table {background-color: transparent;} +div#res table td {background-color: transparent;} + +/* Content */ +div#mid {background-image: none; float: none; height: auto; margin: 0 auto; width: 980px;} +div#content, +body.mod1 div#content, +body.mod2 div#content, +body.mod3 div#content {height: auto !important; /* Important Regel für moderne Browser */ /* Mindesthöhe für den IE */ min-height: 450px;} + +.ie6div#content {padding-bottom: 5px;} +/* Content Menu */ +div#side_navi {height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ min-height: 453px; width: 155px;} + + +/* Content Villages & Links */ +div#side_info, +body.mod1 div#side_info, +body.mod2 div#side_info, +body.mod3 div#side_info { height: auto !important; /* Important Regel für moderne Browser */ height: 453px; /* Mindesthöhe für den IE */ margin-left: 0; min-height: 453px; padding-left: 16px; width: 257px; z-index: 3;} +div#side_info td.dot { + width: 8px; + +} +div#side_info td.link { + padding-right: 0px; + white-space: normal; + line-height: 18px; +} +div#side_info td { + vertical-align: top; +} + +/* Footer */ +.footer-stopper {float: left; margin-bottom: 100px;} /* Stoppt den Footer beim nach obenschieben */ +.ie6 .footer-stopper, .ie7 .footer-stopper {height: 100px;} /* IE 6 und IE7 Hack damit Footer nicht über dem Content steht */ +div#footer {bottom: 0px; height: 90px; left: 0; margin-top: 90px; min-width: 980px; position: absolute; right: 0; + font-size: 11px; line-height: 19px; +} +div#footer div#mfoot {height: 28px; margin: 0 auto; width: 905px;} +div#footer div.footer-menu {color: #797979; text-align: right;} +div#footer div#mfoot {text-align: right;} +div#footer div#mfoot a, div#footer div#mfoot a:visited, div#footer div#mfoot a:active {color: #797979;} +div#footer div#mfoot div.copyright {text-align: right; font-size: 11px;} + +/* Footer Menu */ +div#footer ul.menu {list-style-type: none; margin: 0; padding: 0; position: absolute; top: 31px;} +div#footer ul.menu.menu2 {right: 210px;} +div#footer ul.menu li {float: left; margin: 0 5px;} +div#footer ul.menu li a {color: #797979; margin: 0 3px;} +div#footer ul.menu li.copyright {direction: ltr;} + + +div#side_info table td { + +} + +#guide1 { + position: fixed; + width: 0; + border-left: 1px dashed red; + height: 100%; + left: 50%; + margin-left: -480px; + z-index: 9999; +} + +#guide2 { + position: fixed; + width: 0; + border-left: 1px dashed red; + height: 100%; + left: 50%; + margin-left: -336px; + z-index: 9999; +} + +#guide3 { + position: fixed; + width: 0; + border-right: 1px dashed red; + height: 100%; + right: 50%; + margin-right: -218px; + z-index: 9999; +} + +#guide4 { + position: fixed; + width: 0; + border-right: 1px dashed red; + height: 100%; + right: 50%; + margin-right: -480px; + z-index: 9999; +} + +div.player p.btn, div.login p.btn { + text-align: center; +} + diff --git a/gpack/travianx_v1/travian.css b/gpack/travianx_v1/travian.css new file mode 100644 index 00000000..62aaa48c --- /dev/null +++ b/gpack/travianx_v1/travian.css @@ -0,0 +1,7 @@ +@CHARSET "UTF-8"; + +/* Travian 3.6 Redesign Grafikpack */ +/* Version 1.05 */ + + + diff --git a/img/admin/Thumbs.db b/img/admin/Thumbs.db new file mode 100644 index 00000000..ddfdf0b5 Binary files /dev/null and b/img/admin/Thumbs.db differ diff --git a/img/admin/acp.css b/img/admin/acp.css new file mode 100644 index 00000000..da1c7cf5 --- /dev/null +++ b/img/admin/acp.css @@ -0,0 +1,264 @@ + +a.rn1 {} +table.rn1 {border: 1px solid #00BC00;} + +a.rn2 {color: #0070C0;} +table.rn2 {border: 1px solid #0070C0;} +input.rn2 {border: 1px solid #0070C0;} +span.rn2 {color: #0070C0;} + +a.rn3 {color: #FF8000;} +table.rn3 {border: 1px solid #FF8000;} +input.rn3 {border: 1px solid #FF8000;} +span.rn3 {color: #FF8000;} + +#btn_ok {width:50px; height:20px; background-image: url(b/ok1.gif);} + + +.z_TRUE {background-color:#CFC;} +.z_FALSE {background-color:#FCC;} + +td.gbg { + background: url(img/admin/c4.gif) top repeat-x; + font-weight: bold; +} + +tr.noedit td { + color: #808080; +} +td.cng { + background-color: #59D75A; +} + +div .acp_cat { + background-color: #000; + border: 2px solid #FF8000; + position: relative; + height: 8px; + width: 8px; + float: left; + margin-left: 2px; +} + +div .cat_plus { + background-color:#71D02B; +} + +#s_nav1,#s_nav2,#s_nav3,#s_nav4,#s_nav5 { + border: 1px solid #C0C0C0; + margin-bottom: 1px; + position: relative; + min-height: 20px; +} + +#s_nav1 { + padding: 2px 2px 0 5px; + height: 20px; +} + +#s_nav2 { + padding: 2px 2px 0 27px; + background: url(img/admin/icon/nav_arrow_gray.gif) no-repeat; + background-position: 6px 0px; +} + +.change { + position: absolute; + right: 3px; + bottom: 2px; + z-index: 5; +} +.change a { + color: #999; +} + +.change ul { + list-style: none; +} +.change ul li { + float: left; + width: 20px; + border: 1px solid #ccc; + text-align: center; + margin-left:3px; +} +.change ul li img { + display: block; +} + +table.artef td { + font-size: 0.8em; + font-weight: normal; +} + +table.artef td input { + font-size: 0.8em; + font-weight: normal; + width:80px; +} + +.artef_check { + font-size: 0.8em; + font-weight: normal; + color:green; + margin-left:50px; +} + +.artef_save { + font-size: 0.8em; + font-weight: normal; + color:red; +} + +.artef_small { + font-size: 0.6em; + font-weight: normal; +} + +.simple { + position: absolute; + font-size: 0.8em; + z-index: 30; + right: 30px; + font-weight: normal; +} +.simple a { + font-weight: normal; +} + +optgroup option { + background-color: #FCED90; +} + + +#s_nav3 { + padding: 2px 2px 0 27px; + background-position: 26px 0px; +} + +#s_nav4 { + padding: 2px 2px 0 47px; + background: url(img/admin/icon/nav_arrow_gray.gif) no-repeat; + background-position: 26px 0px; +} + +#s_nav5 { + padding: 2px 0 0 47px; + background-position: 26px 0px; +} + +div.navsub { + position: absolute; + top: 1px; + right: 2px; +} + +div.navsub a { + font-size: 0.8em; +} + +.h { + cursor: pointer; +} + +.c7 { + color: #666; +} + +td.deltext, +td.email { + text-align:left; +} + +td.email { + font-size: 9px; +} + + +/* --------------------- kampfberichte backport von den graphik packs ------------------------------------ */ +#report_content .none, #report_content .none2 {color:#C0C0C0;} +#report_content .none {text-align:center;} +#report_content .none2 {font-weight:bold;} + +#report_content .units th { + color:#000; + background-color:#fff; + background-image:none; +} + +#report_content .infos th, #report_content .goods th { + color:#000; + background-color:#f3f3f3; + background-image:none; +} + +#report_content table {border-collapse:collapse; line-height:20px; width:100%; margin:0px; text-align:left;} +#report_content table td, #report_content table th {padding:1px 2px; font-weight:normal; text-align:left; vertical-align:middle; border:1px solid silver; font-size:13px;} +#report_content table thead th, #report_content table tfoot th {font-weight:bold; text-align:center; background:url(un/a/c2.gif) repeat;} +#report_content table thead td, #report_content table tfoot td {text-align:center; background-color:#F3F3F3;} + +#report_content table td, #report_content, table th { + border:1px solid silver; + font-size:13px; + font-weight:normal; + text-align:left; + vertical-align:middle; +} + +/* read report - content */ +#report_content {padding:15px 2px 0px;} +#report_content table {margin-bottom:15px;} +#report_content thead td, .reports #report_surround .report_content tbody th {text-align:center;} +#report_content thead .role {font-weight:bold;} +#report_content tbody th {width:20%;} +#report_content tbody.units td {text-align:center;} +#report_content tbody.infos tr, + #report_content tbody.goods tr, + #report_content tbody.res tr, + #report_content tbody.regards tr {background:#F3F3F3;} + +/* report types */ +#reinforcement .role {color:#71D000;} +#attacker .role {color:#FF8000;} +#attacker tbody.goods .res {float:left;} +#attacker tbody.goods .car {height:12px; width:18px; background:url(../un/a/car.gif) no-repeat;} +#attacker tbody.goods .carry {float:right; margin-left:20px;} +.defender .role {color:#71D000;} + +/* units */ +.u1, .u2, .u3, .u4, .u5, .u6, .u7, .u8, .u9, .u10 {background-image:url(../un/u/v1_romans2.gif); background-repeat: no-repeat;} +.u11, .u12, .u13, .u14, .u15, .u16, .u17, .u18, .u19, .u20 {background-image:url(../un/u/v2_teutons2.gif); background-repeat: no-repeat;} +.u21, .u22, .u23, .u24, .u25, .u26, .u27, .u28, .u29, .u30 {background-image:url(../un/u/v3_gauls2.gif); background-repeat: no-repeat;} +.u31, .u32, .u33, .u34, .u35, .u36, .u37, .u38, .u39, .u40 {background-image:url(../un/u/v4_nature2.gif); background-repeat: no-repeat;} +.u41, .u42, .u43, .u44, .u45, .u46, .u47, .u48, .u49, .u50 {background-image:url(../un/u/v5_natars2.gif); background-repeat: no-repeat;} +.u51, .u52, .u53, .u54, .u55, .u56, .u57, .u58, .u59, .u60 {background-image:url(../un/u/v6_monsters2.gif); background-repeat: no-repeat;} +.uhab, .ucata, .ustock, .uwall, .ubarr, .upal, .ugeb, .uhero, .uunits +{background-image:url(../un/u/specials.gif); background-repeat: no-repeat;} + +.u1, .u11, .u21, .u31, .u41, .u51, .uhab {background-position: 0 0;} +.u2, .u12, .u22, .u32, .u42, .u52, .ucata {background-position: -19px 0;} +.u3, .u13, .u23, .u33, .u43, .u53, .ustock {background-position: -38px 0;} +.u4, .u14, .u24, .u34, .u44, .u54, .uwall {background-position: -57px 0;} +.u5, .u15, .u25, .u35, .u45, .u55, .ubarr {background-position: -76px 0;} +.u6, .u16, .u26, .u36, .u46, .u56, .upal {background-position: -95px 0;} +.u7, .u17, .u27, .u37, .u47, .u57, .ugeb {background-position: -114px 0;} +.u8, .u18, .u28, .u38, .u48, .u58, .uhero {background-position: -133px 0;} +.u9, .u19, .u29, .u39, .u49, .u59, .uunits {background-position: -152px 0;} +.u10, .u20, .u30, .u40, .u50, .u60 {background-position:-171px 0;} + +.u98 {background:url(../un/u/98.gif) no-repeat;} +.u99 {background:url(../un/u/99.gif) no-repeat;} + +/*ressources*/ +.r1, .r2, .r3, .r4, .r5 {height:12px; width:18px; background-image:url(../un/a/res2.gif); background-repeat: no-repeat;} +.r1 {background-position: 0 0;} +.r2 {background-position:-21px 0;} +.r3 {background-position:-42px 0;} +.r4 {background-position:-63px 0;} +.r5 {background-position:-84px 0;} + +input.give_gold{border:1px solid #71D000;width:45px;margin-right:8px;text-align:center;} +input.addTroops{border:1px solid #71D000;text-align:center;width:80px;margin-right:8px;} +table td.addTroops{width:150px;} +input.hidden{overflow:hidden;} +thead td.id{width:20px;} \ No newline at end of file diff --git a/img/admin/admin.css b/img/admin/admin.css new file mode 100644 index 00000000..569709a5 --- /dev/null +++ b/img/admin/admin.css @@ -0,0 +1,524 @@ +BODY +{ +COLOR: #000; +font-size:10pt; +background:#FFF; +margin-top:0px; +margin-bottom:0px; +margin-left:0px; +margin-right:0px; +font-family: Verdana, Arial, Helvetica, sans-serif; +} + +.none { + color:#C0C0C0; +} + +/*fix*/ +.online1, .online2, .online3, .online4, .online5 {width:12px; height:12px;} +/* Oberer Layer mit Menue ohne Werbung */ +#ltop1 {position:relative; width:100%; min-width:980px; height:100px; z-index:2; background-image:url(../un/l/mp.gif); background-repeat:repeat-x; left:0px; top:0px;} + +/* Oberer Layer mit Menue mit Werbung */ +#ltop2 {position:relative; width:100%; min-width:980px; height:100px; z-index:2; background-image:url(../un/l/mw.gif); background-repeat:repeat-x; left:0px; top:0px;} + +/* - VERALTET - Oberer Layer mit Mindestbreite fuer IE6 */ +/*#ltop3 {width:777px;} */ + +/* - VERALTET - Oberer Layer mit Mindestbreite fuer IE6 bei Skyscraper */ +#ltop4 {width:911px;} + +/* Den gesamten mittleren Teil umschliessendes Div */ +#lmidall {position:relative; min-width:980px;} + +/* Den gesamten mittleren Teil umschliessendes Div */ +#lmidlc {position:relative; min-width:682px; float:left;} + +/* Div mit linkem Menue */ +#lleft {position:relative; width:130px; height:450px; z-index:3; float:left; left:0px; top:-7px;} + +/* Mittlerer Layer */ +#lmid1 {position:relative; width:552px; float:left; border:0px;} + +/* Hilfslayer ohne float wegen Netscape Bug (InGame) */ +#lmid2 {padding-top:38px; min-height:380px;} + +/* Hilfslayer ohne float wegen Netscape Bug (OutGame) */ +#lmid3 {padding-top:0px; top:-7px; min-height:440px;} + +#lmid2,#lmid3 {position:relative; width:500px; background-image:url(../un/a/rand.gif); background-repeat:repeat-y; padding-bottom:10px; padding-left:26px; padding-right:26px;} + +/* Msgboxen */ + +#lmid3 .nb {position:absolute; width:200px; z-index:5; left:580px; top:63px; background-color:#fff;} + +/* Rechter Layer fuer Doerferliste und Direktlinks ohne Skyscraper */ +#lright1 {position:relative; width:200px; padding-left:18px; z-index:5; float:left;} + +/* Rechter Layer fuer Doerferliste und Direktlinks mit Skyscraper */ +#lright2 {position:relative; width:200px; padding-left:158px; z-index:5; float:left;} + +/* Unteres Div fuer Footer background-color:#0FF; */ +#lbottom {position:relative; width:100%; height:25px; z-index:1; clear:both;} + +/* Zusaetliches unteres Div (OutGame) */ +#lfooter1 {background-image:url(../un/a/btm.gif); background-repeat:repeat-x; width:100%; clear:both;} + +/* Div innerhalb von lfooter1 (OutGame) */ +#lfooter2 {padding-top:15px; font-size:8pt; color:#666; text-align:center; width:800px;} + +/* Div Layer fuer die Lageranzeige */ +#lres, #lres0, #lres1, #lres2 {position:absolute; width:612px; height:20px; text-align:center; z-index:2;} +#lres0 {left:100px; top:100px;} /* mit Skyscraprer oder ohne Ad */ +#lres1 {left:100px; top:142px;} /* mit Fullsize Ad */ +#lres2 {left:100px; top:172px;} /* mit Bigsize Ad */ + +/* Div Layer fuer die Zeitanzeige */ +#ltime {position:absolute; width:220px; height:15px; z-index:3; left:5px; top:0px; color:#FFF; font-size:10px;} + +/* Div fuer Truppenbewegungen*/ +#ltbw0, #ltbw1 {position:relative; width:230px; z-index:5; padding-top:5px; padding-bottom:5px; left:49px; top:0px; float:left;} +#ltbw1 {height:47px;} + +/* Div fuer die Anzeige der Rohstoffproduktion */ +#lrpr {position:relative; width:230px; padding-top:5px; padding-bottom:10px; left:49px; top:0px; float:left;} + +/* Div fuer die Anzeige der Truppen im Dorf */ +#ltrm {position:relative; width:230px; padding-top:10px; padding-bottom:0px; left:49px; top:0px; float:left;} + +/* Div fuer die Anzeige der Bauauftraege */ +#lbau1 {position:relative; width:500px; top:0px; clear:both;} +#lbau2 {position:relative; width:500px; z-index:20;} + +/* Platzhalter fuer Float und Ersatz fuer min-height im IE6 */ +#lplz1 {position:relative; width:250px; height:310px; float:left;} +#lplz2, #lplz3 {position:relative; height:400px; width:500px;} + + +/* Textmenue: Punkt1 | Punkt2 | Punkt3 */ +.txt_menue {font-size:10pt;} + +/* Alle Bilder per Default ohne Rahmen */ +img {border:0px;} + +/* Groesse der Bilder: Rohstoffe, Dauer, Truppen */ +img.res, img.clock {width:18px; height:12px;} +img.unit, tr.unit td img {width:16px; height:16px;} +img.logo {width:116px; height:60px;} + +/* Liste mit den Direktlinks */ +ul.dl {margin-left:0px; margin-top:0px; padding-left:20px; padding-top:3px;} +li.dl {margin-top:2px;} + +.left {text-align: left;} +.right {text-align: right;} +.center {text-align: center;} +.nbr {white-space:nowrap;} + +/* Navigation InGame */ +#n1, #n2, #n3, #n4, #n5 {width:70px; height:100px; background-repeat:no-repeat;} +#n1:hover,#n2:hover,#n3:hover,#n4:hover {background-position:bottom;} +#n1 {background-image:url(../un/l/n1.gif);} +#n2 {background-image:url(../un/l/n2.gif);} +#n3 {background-image:url(../un/l/n3.gif);} +#n4 {background-image:url(../un/l/n4.gif);} + + +/* - VERALTET - Abstand der oberen Navigation von Links */ +/* #navileft {margin-left:231px;} */ + +/* Schriftgroessen */ +.f16 {font-size:16pt;} +.f135 {font-size:13.5pt;} +.f10 {font-size:10pt;} +.f9 {font-size:9pt; line-height:140%; font-weight:normal;} +.f8 {font-size:8pt;} +.f75 {font-size:7.5pt;} +.f7 {font-size:7pt;} +.f6 {font-size:6pt;} + +/* e Schriftfarbe fuer Fehlermeldung Login/Anmeldung */ +.e {color:#FF8000;} + +/* Schriftfarbe fuer Inaktive Links */ +.c {color:#C0C0C0;} +.c0 {color:#000000;} +.c1 {color:#71D000;} +.c2 {color:#FF8000;} +.c3 {color:#228B22;} +.c4 {color:#F2C700;} +.c5 {color:#FF0000;} +.c6 {color:#B500A3;} + + +/* Dicke Schrift */ +.b {font-weight:bold} + +/* Duenne Schrift */ +.t {font-weight:normal;} + + +/* Links */ +a:link, a:visited { color: #71D000; text-decoration: none; font-weight:bold;} +a:active { color: #FF8000; text-decoration: none; font-weight:bold;} +a:hover {color: #00BC00; text-decoration: none; font-weight:bold;} + +a:link.clink, a:visited.clink, a:active.clink {color:#666; text-decoration:none; font-weight:normal;} +a:hover.clink {color:#00C000; text-decoration:none; font-weight:normal;} + + +/* Navi Table left */ +#navi_table {width:116px;} + +/* Navigation links */ +.menu {font-weight: normal; FONT-SIZE: 12px;} +.menu a,.menu a:link,.menu a:active,.menu a:visited {font-weight:normal; display:block; color:#000; padding-left:12px; FONT-SIZE:12px; padding-bottom:3px; padding-TOP:3px;} +.menu a:hover {color:#00C000; cursor:pointer; background-image:url(../un/a/n12.gif); background-repeat:no-repeat;} + + + + +h1, h2, h3, span, form, img, li {margin:0; padding:0;} +h1 {font-size:18pt;} +h2 {font-size:13.5pt;} + + + + + + + +/* Hintergrundbild fuer kleine Karte */ +.mbg {background-image:url(../un/m/map.jpg); z-index:1;} + +/* Positionsangabe fur Hintergrundbild und zwei transparente Ebenen darueber (Felder,ImgMap) */ +.mbg,.mdiv {position:absolute; width:540px; height:450px; left:5px; top:10px;} + +/* Div Layer fuer die Mouse Over Infobox (kleine Karte) */ +.map_infobox {position:absolute; width:170px; height:80px; z-index:50; left:360px; top:48px;} + +/* Div Layer fuer die Mouse Over Infobox (grosse Karte) */ +.map_infobox_xxl {position:absolute; width:170px; height:80px; z-index:500; right:20px; top:20px;} + +/* ausgegraute leere Tabelle */ +.map_infobox_grey {background-color:#F0F0F0; width:100%;} +table.map_infobox_grey tr {background-color: #FFF;} + +/* Link zur grossen Karte */ +.map_link_to_xxlmap {position:absolute; width:33px; height:25px; z-index:650; left:26px; top:88px;} + +/* Formular zur Direkteingabe von Koordinaten (kleine Karte) */ +.map_insert_xy {position:absolute; width:180px; height:80px; z-index:50; left:20px; top:365px;} + +/* Formular zur Direkteingabe von Koordinaten (grosse Karte) */ +.map_insert_xy_xxl {position:absolute; width:180px; height:80px; z-index:500; left:10px; top:465px;} + +/* Koordinatenanzeige auf kleiner Karte links oben */ +.map_show_xy {position:absolute; width:200px; height:80px; z-index:50; left:26px; top:38px;} + +/* Koordinatenanzeige auf grosser Karte links oben */ +.map_show_xy_xxl {position:absolute; width:200px; height:80px; z-index:500; left:10px; top:10px;} + + +/* Koordinaten xy der kleinen Karte */ +.mx1,.mx2,.mx3,.mx4,.mx5,.mx6,.mx7,.my1,.my2,.my3,.my4,.my5,.my6,.my7 {position:absolute; z-index:30; width:35px; height:12px; font-size:7pt; text-align:center;} + +.mx1{left:14px; top:255px;} +.mx2{left:50px; top:275px;} +.mx3{left:86px; top:295px;} +.mx4{left:122px; top:315px;} +.mx5{left:158px; top:335px;} +.mx6{left:194px; top:355px;} +.mx7{left:230px; top:375px;} + +.my7{left:14px; top:210px;} +.my6{left:50px; top:190px;} +.my5{left:86px; top:170px;} +.my4{left:122px; top:150px;} +.my3{left:158px; top:130px;} +.my2{left:194px; top:110px;} +.my1{left:230px; top:90px;} + + +/* Felder kleine Karte */ +.mt1{position:absolute; z-index:1; left:229px; top:57px;} +.mt2{position:absolute; z-index:2; left:266px; top:77px;} +.mt3{position:absolute; z-index:3; left:303px; top:97px;} +.mt4{position:absolute; z-index:4; left:340px; top:117px;} +.mt5{position:absolute; z-index:5; left:377px; top:137px;} +.mt6{position:absolute; z-index:6; left:414px; top:157px;} +.mt7{position:absolute; z-index:7; left:451px; top:177px;} + +.mt8{position:absolute; z-index:2; left:193px; top:77px;} +.mt9{position:absolute; z-index:3; left:230px; top:97px;} +.mt10{position:absolute; z-index:4; left:267px; top:117px;} +.mt11{position:absolute; z-index:5; left:304px; top:137px;} +.mt12{position:absolute; z-index:6; left:341px; top:157px;} +.mt13{position:absolute; z-index:7; left:378px; top:177px;} +.mt14{position:absolute; z-index:8; left:415px; top:197px;} + +.mt15{position:absolute; z-index:3; left:157px; top:97px;} +.mt16{position:absolute; z-index:4; left:194px; top:117px;} +.mt17{position:absolute; z-index:5; left:231px; top:137px;} +.mt18{position:absolute; z-index:6; left:268px; top:157px;} +.mt19{position:absolute; z-index:7; left:305px; top:177px;} +.mt20{position:absolute; z-index:8; left:342px; top:197px;} +.mt21{position:absolute; z-index:9; left:379px; top:217px;} + +.mt22{position:absolute; z-index:4; left:121px; top:117px;} +.mt23{position:absolute; z-index:5; left:158px; top:137px;} +.mt24{position:absolute; z-index:6; left:195px; top:157px;} +.mt25{position:absolute; z-index:7; left:232px; top:177px;} +.mt26{position:absolute; z-index:8; left:269px; top:197px;} +.mt27{position:absolute; z-index:9; left:306px; top:217px;} +.mt28{position:absolute; z-index:10; left:343px; top:237px;} + +.mt29{position:absolute; z-index:5; left:85px; top:137px;} +.mt30{position:absolute; z-index:6; left:122px; top:157px;} +.mt31{position:absolute; z-index:7; left:159px; top:177px;} +.mt32{position:absolute; z-index:8; left:196px; top:197px;} +.mt33{position:absolute; z-index:9; left:233px; top:217px;} +.mt34{position:absolute; z-index:10; left:270px; top:237px;} +.mt35{position:absolute; z-index:11; left:307px; top:257px;} + +.mt36{position:absolute; z-index:6; left:49px; top:157px;} +.mt37{position:absolute; z-index:7; left:86px; top:177px;} +.mt38{position:absolute; z-index:8; left:123px; top:197px;} +.mt39{position:absolute; z-index:9; left:160px; top:217px;} +.mt40{position:absolute; z-index:10; left:197px; top:237px;} +.mt41{position:absolute; z-index:11; left:234px; top:257px;} +.mt42{position:absolute; z-index:12; left:271px; top:277px;} + +.mt43{position:absolute; z-index:7; left:13px; top:177px;} +.mt44{position:absolute; z-index:8; left:50px; top:197px;} +.mt45{position:absolute; z-index:9; left:87px; top:217px;} +.mt46{position:absolute; z-index:10; left:124px; top:237px;} +.mt47{position:absolute; z-index:11; left:161px; top:257px;} +.mt48{position:absolute; z-index:12; left:198px; top:277px;} +.mt49{position:absolute; z-index:13; left:235px; top:297px;} + + +/* Div Layer fur die Details auf der rechten Seite */ +.map_details_right {position:absolute; width:230px; height:110px; z-index:3; left:325px; top:100px;} +/* Div Layer fur die Details auf der rechten Seite */ +.map_details_actions {position:absolute; width:500px; height:40px; z-index:5; left:30px; top:360px;} +/* Div Layer fur die Details auf der rechten Seite */ +.map_details_troops {position:absolute; width:220px; height:220px; z-index:3; left:325px; top:220px;} + +/* Dorfname fuer dorf1.php und dorf2.php */ +.dname {position:absolute; width:500px; height:40px; z-index:4; left:26px; top:38px;} + +/* Rohstofffelder Hintergrund */ +#f1,#f2,#f3,#f4,#f5,#f6,#f7,#f8,#f9,#f10 {position:absolute; width:300px; height:264px; left:15px; top:75px; background-repeat:no-repeat; z-index:1;} +#f1 {background-image:url(../un/g/f1.jpg);} +#f2 {background-image:url(../un/g/f2.jpg);} +#f3 {background-image:url(../un/g/f3.jpg);} +#f4 {background-image:url(../un/g/f4.jpg);} +#f5 {background-image:url(../un/g/f5.jpg);} +#f6 {background-image:url(../un/g/f6.jpg);} +#f7 {background-image:url(../un/g/f7.jpg);} +#f8 {background-image:url(../un/g/f8.jpg);} +#f9 {background-image:url(../un/g/f9.jpg);} +#f10 {background-image:url(../un/g/f10.jpg);} +#resfeld {position:absolute; width:300px; height:264px; left:15px; top:75px; z-index:3;} + +/* Rohstofffelder Stufe */ +.rf1,.rf2,.rf3,.rf4,.rf5,.rf6,.rf7,.rf8,.rf9,.rf10,.rf11,.rf12,.rf13,.rf14,.rf15,.rf16,.rf17,.rf18 {position:absolute; z-index:2;} +.rf1 {left: 93px; top:27px;} +.rf2 {left: 156px; top:26px;} +.rf3 {left: 216px; top:41px;} +.rf4 {left: 38px; top:59px;} +.rf5 {left: 130px; top:67px;} +.rf6 {left: 195px; top:87px;} +.rf7 {left: 253px; top:81px;} +.rf8 {left: 23px; top:111px;} +.rf9 {left: 74px; top:104px;} +.rf10 {left: 205px; top:136px;} +.rf11 {left: 260px; top:139px;} +.rf12 {left: 33px; top:165px;} +.rf13 {left: 84px; top:158px;} +.rf14 {left: 151px; top:178px;} +.rf15 {left: 230px; top:192px;} +.rf16 {left: 79px; top:211px;} +.rf17 {left: 132px; top:223px;} +.rf18 {left: 182px; top:227px;} + +/* Div Layer fuer Dorfhintergrund */ +.d2_x {position:absolute; width:540px; height:448px; z-index:1; left:5px; top:30px;} +.d2_0 {background-image:url(../un/g/bg0.jpg);} +.d2_1 {background-image:url(../un/g/bg1.jpg);} /* Palisade (Gallier) */ +.d2_11 {background-image:url(../un/g/bg11.jpg);} /* Stadtmauer (Roemer) */ +.d2_12 {background-image:url(../un/g/bg12.jpg);} /* Erdwall (Germanen) */ +.d2_2 {background-image:url(../un/g/bg2.jpg);} +.d2_3 {background-image:url(../un/g/bg3.jpg);} + +/* Position der Gebaeude im Dorfzentrum */ +.d1{position:absolute; z-index:6; left:121px; top:82px;} +.d2{position:absolute; z-index:9; left:204px; top:57px;} +.d3{position:absolute; z-index:8; left:264px; top:47px;} +.d4{position:absolute; z-index:9; left:338px; top:62px;} +.d5{position:absolute; z-index:10; left:394px; top:111px;} + +.d6{position:absolute; z-index:11; left:86px; top:121px;} +.d7{position:absolute; z-index:12; left:167px; top:128px;} +.d8{position:absolute; z-index:13; left:253px; top:111px;} +.d9{position:absolute; z-index:14; left:401px; top:152px;} +.d10{position:absolute; z-index:15; left:72px; top:191px;} + +.d11{position:absolute; z-index:16; left:198px; top:156px;} +.d12{position:absolute; z-index:17; left:161px; top:182px;} +.d13{position:absolute; z-index:18; left:408px; top:210px;} +.d14{position:absolute; z-index:19; left:90px; top:230px;} +.d15{position:absolute; z-index:20; left:233px; top:226px;} + +.d16{position:absolute; z-index:21; left:360px; top:243px;} +.d17{position:absolute; z-index:22; left:164px; top:266px;} +.d18{position:absolute; z-index:23; left:292px; top:277px;} +.d19{position:absolute; z-index:24; left:150px; top:297px;} +.d20{position:absolute; z-index:25; left:266px; top:306px;} +.dx1 {position:absolute; z-index:5; left:318px; top:232px;} + +/* ImgMap fuer Gebauedelinks */ +.dmap {position:absolute; width:422px; height:339px; z-index:30; left:68px; top:70px;} + +#ce {position:absolute; z-index:80;} +.popup3 {position:absolute; background-image:url(../un/a/anl.gif); background-repeat:no-repeat; display:inline; width:430px; height:456px; z-index:80; border: 0px solid #000000; padding-top:31px; padding-bottom:0px; padding-left:20px; left: 180px; top: 99px} + +.popup4 {position:absolute; width:30px; height:30px; z-index:81; border: 0px solid #000000; left: 600px; top: 115px} +.m_navi {position:absolute; width:116px; height:18px; z-index:82; left: 145px; top: 420px} + +/* Login und Anmeldeformular */ +.p1 {border-style:dashed; border-width:1px; border-color:#C0C0C0; padding:6px;} +.p2 {border-style:dashed; border-width:1px; border-color:#C0C0C0; padding:3px;} +label { +display: block; float: left; clear: left; width: 160px; font-size:8pt; padding-left:0.8em; padding-top:0.2em; padding-bottom:0.6em; +} + +#igm {border:0px; font-family: Verdana, Arial, Helvetica, sans-serif;} + +.fm {border:#71D000 solid; border-width:1px; font-size:8pt; padding-left:3px; padding-top:2px; padding-bottom:2px;} +textarea {border:#71D000 solid; border-width: 1px;} +.fm110 { width:110px;} +.fm60 { width:60px;} +.fm40 { width:40px;} +.fm25 { width:25px;} +.fm20 { width:20px;} +/*.fm_text {text-align:center}*/ + +input.f80 { width:80px;} +input.f30 { width:30px;} +input.std {font-weight:bold; font-size:8pt; height:14pt;} /* Berichte, Nachrichten verschieben */ + + +/* Rahmenfarbe der Tabelle */ +.tbg {background-color: #C0C0C0; width:100%; text-align:center; font-size:10pt;} + +/* Zellenfarbe der Tabelle */ +table.tbg tr {background-color: #FFFFFF;} + +/* Hintergrundbild für Tabellenkopf */ +.rbg {background-color: #FFFFFF; font-weight:bold; background-image: url(../un/a/c2.gif);} + + +/* Tabellenzeile Grau */ +table.tbg tr.cbg1 td, td.cbg1 {background-color:#F5F5F5} +table.tbg td.cbg2 {background-color:#71D000} + +/* Abstand links, in Tabellenzeile */ +table.tbg tr.s7 td, td.s7 {padding-left:7px; text-align:left} +table.tbg tr.r7 td, td.r7 {padding-right:7px; text-align:right} + +/* Abstand links und rechts in Tabellenzeile */ +.slr3 { padding-left:3px; padding-right:3px; text-align:center} + +/* Rahmen für Treffer in der Statistik */ +table.tbg td.ou {border-top:1px solid #71D000; border-bottom:1px solid #71D000; background-color:#F0FFF0; } +table.tbg td.li {border-left:1px solid #71D000 } +table.tbg td.re {border-right:1px solid #71D000} + +/* Dorfliste */ +.dtbl {width:73px; font-size:11px;} +.dlist1, .dlist3 {width:35px;} +.dlist2 {width:3px; font-size:10px;} + + +/* Allianz Forum */ +.forumline {background-color: #000000; border: 1px #c0c0c0 solid;} +.forum_h1 { font-weight: bold; font-size: 11px ; letter-spacing: 1px; color : #000000} + +.forumlink { font-weight: bold; font-size: 11px; color : #71D000;} +a.forumlink { text-decoration: none; color : #71D000; } +a.forumlink:hover{ text-decoration: underline; color : #00BC00; } + +td.rowpic { +background-color: #FFFFFF; +background-image: url(../un/a/c2.gif); +} + +.genmed { font-size : 11px; } +.gensmall { font-size : 10px; } +.gen,.genmed,.gensmall { color : #000000; } +a.gen,a.genmed,a.gensmall { color: #71D000; text-decoration: none; } +a.gen:hover,a.genmed:hover,a.gensmall:hover { color: #00BC00; text-decoration: underline; } + +th { +color: #FFFFFF; font-size: 11px; font-weight : bold; +background-color: #777777; height: 22px; +background-image: url(../un/a/c3.gif); +} + +td.row1 {background-color:#FFF;} +td.row11 {background-color:#FFF; PADDING-Left:4px;} +td.row12 {background-color:#FFF; PADDING-Left:6px; PADDING-RIGHT:6px;} +td.row2 {background-color:#FEFEFE; } + + +.maintitle { + font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; + text-decoration: none; line-height : 120%; color : #000000; +} +.postbody { font-size : 11px; line-height: 16px} +.name { font-size : 11px; color : #000000;} +.postdetails { font-size : 10px; color : #000000; } + +/* Check for valid Graphic pack (don't change it) */ +#show_gp_test_button {display:inline;} +#show_gp_activate_button {display:none;} +#show_gp_ok_message {display:none;} +#show_gp_error_message {display:inline;} + +/* Laenderflaggen */ +.dflags1 {position:relative; float:right; text-align:center; font-size:6pt; color:#FFF; padding-left:1px; padding-right:1px; padding-top:1px;} +.dflags2 {padding-top:1px;} + +img.flags {border:solid 1px #000000; width:21px; height:13px; +opacity:0.4; /* W3C-konform */ +-moz-opacity:0.4; /* Mozilla und Derivate */ +FILTER:progid:DXImageTransform.Microsoft.Alpha(opacity=40); /*IE*/ +} + +/* importiertes Allianzprofil */ +table#profile {border-collapse:collapse; line-height:16px; width:100%;} +table#profile td, table#profile th {vertical-align:middle; padding:2px 7px; border:1px solid silver; font-size:13px; color:black;} +table#profile thead th, table#profile tfoot th {background-image:url(../un/a/c2.gif); background-repeat:repeat; text-align:center; font-weight:bold;} +table#profile thead td, table#profile tfoot td {background-color:#F3F3F3; text-align:center; width:50%;} +table#profile tbody th, table#profile tbody td {text-align:left;} +table#profile td.details {width:50%; height:156px; padding:0px; vertical-align:top; border-bottom:none;} +table#profile td.details table {border-collapse:collapse; line-height:16px; margin-top:0px; width:100%;} +table#profile td.details table th {width:50%; border-left:none; border-top:none; background:none;} +table#profile td.details table td {border-right:none; border-left:none; border-top:none; text-align:left;} +table#profile td.desc1, table#profile td.desc2 {width:50%; padding:0px 7px; vertical-align:middle;} +table#profile td.desc2 {border-top:none; height:auto;} +table#profile td div {vertical-align:center; text-align:center; padding:2px 0px; margin:0px;} + +table#member {border-collapse:collapse; margin-top:25px; line-height:16px; width:100%;} +table#member td, table#member th {vertical-align:middle; padding:2px 7px; border:1px solid silver; font-size:13px; color:black;} +table#member thead th, table#member tfoot th {background-image:url(../un/a/c2.gif); background-repeat:repeat; text-align:center; font-weight:bold;} +table#member thead td, table#member tfoot td {background-color:#F3F3F3; text-align:center; width:50%;} +table#member tbody th, table#member tbody td {text-align:left;} +table#member td.ra {width:5%; text-align:right;} +table#member td.hab {width:25%; text-align:center;} +table#member td.vil {width:20%; text-align:center;} +table#member td.on {width:5%; text-align:center;} + + diff --git a/img/admin/admin.gif b/img/admin/admin.gif new file mode 100644 index 00000000..4ba4c4cf Binary files /dev/null and b/img/admin/admin.gif differ diff --git a/img/admin/b/Thumbs.db b/img/admin/b/Thumbs.db new file mode 100644 index 00000000..fd8e36e7 Binary files /dev/null and b/img/admin/b/Thumbs.db differ diff --git a/img/admin/b/l1.gif b/img/admin/b/l1.gif new file mode 100644 index 00000000..1e5075f5 Binary files /dev/null and b/img/admin/b/l1.gif differ diff --git a/img/admin/b/l2.gif b/img/admin/b/l2.gif new file mode 100644 index 00000000..121076a2 Binary files /dev/null and b/img/admin/b/l2.gif differ diff --git a/img/admin/b/ok1.gif b/img/admin/b/ok1.gif new file mode 100644 index 00000000..2a7b2bcd Binary files /dev/null and b/img/admin/b/ok1.gif differ diff --git a/img/admin/b/ok2.gif b/img/admin/b/ok2.gif new file mode 100644 index 00000000..cfe46368 Binary files /dev/null and b/img/admin/b/ok2.gif differ diff --git a/img/admin/c4.gif b/img/admin/c4.gif new file mode 100644 index 00000000..39f0b0a8 Binary files /dev/null and b/img/admin/c4.gif differ diff --git a/img/admin/del.gif b/img/admin/del.gif new file mode 100644 index 00000000..28eef24e Binary files /dev/null and b/img/admin/del.gif differ diff --git a/img/admin/del_g.gif b/img/admin/del_g.gif new file mode 100644 index 00000000..20c36d86 Binary files /dev/null and b/img/admin/del_g.gif differ diff --git a/img/admin/edit.gif b/img/admin/edit.gif new file mode 100644 index 00000000..1583645a Binary files /dev/null and b/img/admin/edit.gif differ diff --git a/img/admin/gold.gif b/img/admin/gold.gif new file mode 100644 index 00000000..8a51800f Binary files /dev/null and b/img/admin/gold.gif differ diff --git a/img/admin/gold_g.gif b/img/admin/gold_g.gif new file mode 100644 index 00000000..456c81a7 Binary files /dev/null and b/img/admin/gold_g.gif differ diff --git a/img/admin/icon/Thumbs.db b/img/admin/icon/Thumbs.db new file mode 100644 index 00000000..3f628144 Binary files /dev/null and b/img/admin/icon/Thumbs.db differ diff --git a/img/admin/icon/nav_arrow_gray.gif b/img/admin/icon/nav_arrow_gray.gif new file mode 100644 index 00000000..8674413d Binary files /dev/null and b/img/admin/icon/nav_arrow_gray.gif differ diff --git a/img/admin/r/1.gif b/img/admin/r/1.gif new file mode 100644 index 00000000..4513be5d Binary files /dev/null and b/img/admin/r/1.gif differ diff --git a/img/admin/r/2.gif b/img/admin/r/2.gif new file mode 100644 index 00000000..f3c046aa Binary files /dev/null and b/img/admin/r/2.gif differ diff --git a/img/admin/r/3.gif b/img/admin/r/3.gif new file mode 100644 index 00000000..657b42c0 Binary files /dev/null and b/img/admin/r/3.gif differ diff --git a/img/admin/r/4.gif b/img/admin/r/4.gif new file mode 100644 index 00000000..c13bc3c4 Binary files /dev/null and b/img/admin/r/4.gif differ diff --git a/img/admin/r/4b.gif b/img/admin/r/4b.gif new file mode 100644 index 00000000..a08e829c Binary files /dev/null and b/img/admin/r/4b.gif differ diff --git a/img/admin/r/5.gif b/img/admin/r/5.gif new file mode 100644 index 00000000..02d2635f Binary files /dev/null and b/img/admin/r/5.gif differ diff --git a/img/admin/r/5b.gif b/img/admin/r/5b.gif new file mode 100644 index 00000000..516c5c8f Binary files /dev/null and b/img/admin/r/5b.gif differ diff --git a/img/admin/r/6.gif b/img/admin/r/6.gif new file mode 100644 index 00000000..cf45c1cf Binary files /dev/null and b/img/admin/r/6.gif differ diff --git a/img/admin/r/7.gif b/img/admin/r/7.gif new file mode 100644 index 00000000..cf45c1cf Binary files /dev/null and b/img/admin/r/7.gif differ diff --git a/img/admin/r/Thumbs.db b/img/admin/r/Thumbs.db new file mode 100644 index 00000000..d5d10174 Binary files /dev/null and b/img/admin/r/Thumbs.db differ diff --git a/img/admin/r/easter.gif b/img/admin/r/easter.gif new file mode 100644 index 00000000..fd6d6120 Binary files /dev/null and b/img/admin/r/easter.gif differ diff --git a/img/admin/r/newy.gif b/img/admin/r/newy.gif new file mode 100644 index 00000000..145d1bca Binary files /dev/null and b/img/admin/r/newy.gif differ diff --git a/img/admin/r/xmas.gif b/img/admin/r/xmas.gif new file mode 100644 index 00000000..5ede0dd1 Binary files /dev/null and b/img/admin/r/xmas.gif differ diff --git a/img/admin/senator_roemer.png b/img/admin/senator_roemer.png new file mode 100644 index 00000000..5eceda8f Binary files /dev/null and b/img/admin/senator_roemer.png differ diff --git a/img/admin/x.gif b/img/admin/x.gif new file mode 100644 index 00000000..c7bee69b Binary files /dev/null and b/img/admin/x.gif differ diff --git a/img/admin/x1.gif b/img/admin/x1.gif new file mode 100644 index 00000000..dd077cce Binary files /dev/null and b/img/admin/x1.gif differ diff --git a/img/admin/x2.gif b/img/admin/x2.gif new file mode 100644 index 00000000..98df7bb3 Binary files /dev/null and b/img/admin/x2.gif differ diff --git a/img/admin/x3.gif b/img/admin/x3.gif new file mode 100644 index 00000000..869faf6f Binary files /dev/null and b/img/admin/x3.gif differ diff --git a/img/admin/x4.gif b/img/admin/x4.gif new file mode 100644 index 00000000..ef8c0ce4 Binary files /dev/null and b/img/admin/x4.gif differ diff --git a/img/admin/x5.gif b/img/admin/x5.gif new file mode 100644 index 00000000..8cfa7c35 Binary files /dev/null and b/img/admin/x5.gif differ diff --git a/img/en/a/Thumbs.db b/img/en/a/Thumbs.db new file mode 100644 index 00000000..f904633a Binary files /dev/null and b/img/en/a/Thumbs.db differ diff --git a/img/en/a/travian0.gif b/img/en/a/travian0.gif new file mode 100644 index 00000000..a9c97d7b Binary files /dev/null and b/img/en/a/travian0.gif differ diff --git a/img/en/s/s1.png b/img/en/s/s1.png new file mode 100644 index 00000000..2228ccd1 Binary files /dev/null and b/img/en/s/s1.png differ diff --git a/img/en/s/s2.png b/img/en/s/s2.png new file mode 100644 index 00000000..c3e9a4d0 Binary files /dev/null and b/img/en/s/s2.png differ diff --git a/img/en/s/s3.png b/img/en/s/s3.png new file mode 100644 index 00000000..51767419 Binary files /dev/null and b/img/en/s/s3.png differ diff --git a/img/en/s/s4.png b/img/en/s/s4.png new file mode 100644 index 00000000..3c613a1c Binary files /dev/null and b/img/en/s/s4.png differ diff --git a/img/en/s/s5.png b/img/en/s/s5.png new file mode 100644 index 00000000..d7f84308 Binary files /dev/null and b/img/en/s/s5.png differ diff --git a/img/en/t2/Thumbs.db b/img/en/t2/Thumbs.db new file mode 100644 index 00000000..933a3fcf Binary files /dev/null and b/img/en/t2/Thumbs.db differ diff --git a/img/en/t2/newsbox1.gif b/img/en/t2/newsbox1.gif new file mode 100644 index 00000000..0964c3f5 Binary files /dev/null and b/img/en/t2/newsbox1.gif differ diff --git a/img/en/t2/newsbox2.gif b/img/en/t2/newsbox2.gif new file mode 100644 index 00000000..1ee1033a Binary files /dev/null and b/img/en/t2/newsbox2.gif differ diff --git a/img/en/t2/newsbox3.gif b/img/en/t2/newsbox3.gif new file mode 100644 index 00000000..db9fdbe5 Binary files /dev/null and b/img/en/t2/newsbox3.gif differ diff --git a/img/img.css b/img/img.css new file mode 100644 index 00000000..6b55de08 --- /dev/null +++ b/img/img.css @@ -0,0 +1,499 @@ +@CHARSET "UTF-8"; + +#header {background:url(un/l/mw.gif) repeat-x 0px -28px;} +#mid {background:url(un/a/rand.gif) repeat-y 130px 0px;} +#footer {background:url(un/a/btm.gif) repeat-x;} + +/* general icons */ +.help {background:url(un/a/help.gif) no-repeat;} +.add {background:url(un/f/plus.gif) no-repeat;} +.mad img {background:url(un/f/mad.gif) no-repeat;} +.bau {background:url(un/a/bau.gif) no-repeat;} +.external {background:url(un/a/external.gif) no-repeat;} +.point {background:url(un/u/point.gif) no-repeat;} +.firefox {background:url(un/a/firefox.gif) no-repeat;} +.opera {background:url(un/a/opera.gif) no-repeat;} +.ie {background:url(un/a/ie.gif) no-repeat;} +.unknown {background:url(un/a/unknown.gif) no-repeat;} + +/* dynamic header */ +#dynamic_header {background-image:url(un/l/dyn_bg1.jpg); background-repeat: no-repeat; background-position: -80px -50px;} +.mod1 #dynamic_header, .mod2 #dynamic_header {background-image:none;} +.mod1 #dynamic_header div.dyn1 {background:url(un/l/ad1.jpg) no-repeat -20px 0;} +.mod1 #dynamic_header div.dyn2 {background:url(un/l/ad2.jpg) no-repeat;} +.mod2 #dynamic_header div.dyn1 {background:url(un/l/bigsize_bg.jpg) no-repeat -100px 0;;} +.mod3 #dynamic_header div.dyn1 {background:url(un/l/skyscraper_bg.gif) no-repeat;} + +/* navi_menue */ +#n1 img, #n2 img, #n3 img, #n4 img, #n5 {background-position:0px -21px; background-repeat:no-repeat;} +#n1 img {background-image:url(un/l/n1.gif);} +#n2 img {background-image:url(un/l/n2.gif);} +#n3 img {background-image:url(un/l/n3.gif);} +#n4 img {background-image:url(un/l/n4.gif);} +#n1:hover img, #n2:hover img, #n3:hover img, #n4:hover img {background-position:0px -121px;} +.i1 {background-image:url(un/l/m1.gif);} +.i2 {background-image:url(un/l/m2.gif);} +.i3 {background-image:url(un/l/m3.gif);} +.i4 {background-image:url(un/l/m4.gif);} +#plus img {background:url(de/a/plus.gif) no-repeat 0px -21px;} + +/* left menue */ +#sleft a:hover {background:url(un/a/n12.gif) no-repeat;} +#sleft #logo:hover {background:none;} + +/* right menue */ +#sright #vlswitch, #sright #llswitch {background:url(un/g/s/glvlm.gif) no-repeat;} +#sright #vlswitch.off, #sright #llswitch.off {background:url(un/g/s/glvlp.gif) no-repeat; } + +/* signup */ +.roman {background:url(http://img.travian.org/img/de/temp/roemer.gif) no-repeat;} + +/* manual */ +.popup3 {background:url(un/a/anl.gif) no-repeat;} +.manual .troops {background:url(un/a/troops.gif) no-repeat;} +.manual .buildings {background:url(un/a/buildings.gif) no-repeat;} +.manual .navi {background:url(un/a/navi.gif) no-repeat;} + + +/* plus features */ +.plus .p1_25 {background:url(un/p/p1_25.jpg) no-repeat;} +.plus .p2_25 {background:url(un/p/p2_25.jpg) no-repeat;} +.plus .p3_25 {background:url(un/p/p3_25.jpg) no-repeat;} +.plus .p4_25 {background:url(un/p/p4_25.jpg) no-repeat;} +.plus .off10 {background:url(un/p/off10.jpg) no-repeat;} +.plus .plus .def10 {background:url(un/p/def10.jpg) no-repeat;} +.plus .bau0 {background:url(un/p/bau0.jpg) no-repeat;} +.plus .npc {background:url(un/p/npc.jpg) no-repeat;} + + +/* medals & noob */ +.t1_1 {background:url(un/t/t1_1.jpg) no-repeat;} +.t1_2 {background:url(un/t/t1_2.jpg) no-repeat;} +.t1_3 {background:url(un/t/t1_3.jpg) no-repeat;} +.t1_4 {background:url(un/t/t1_4.jpg) no-repeat;} +.t1_5 {background:url(un/t/t1_5.jpg) no-repeat;} +.t1_6 {background:url(un/t/t1_6.jpg) no-repeat;} +.t1_7 {background:url(un/t/t1_7.jpg) no-repeat;} +.t1_8 {background:url(un/t/t1_8.jpg) no-repeat;} +.t1_9 {background:url(un/t/t1_9.jpg) no-repeat;} +.t1_10 {background:url(un/t/t1_10.jpg) no-repeat;} +.t100_1 {background:url(un/t/t100_1.jpg) no-repeat;} +.t101_1 {background:url(un/t/t101_1.jpg) no-repeat;} +.t102_1 {background:url(un/t/t102_1.jpg) no-repeat;} +.t110_1 {background:url(un/t/t110_1.jpg) no-repeat;} +.t111_1 {background:url(un/t/t111_1.jpg) no-repeat;} +.t112_1 {background:url(un/t/t112_1.jpg) no-repeat;} +.t120_1 {background:url(un/t/t120_1.jpg) no-repeat;} +.t121_1 {background:url(un/t/t121_1.jpg) no-repeat;} +.t122_1 {background:url(un/t/t122_1.jpg) no-repeat;} +.t130_1 {background:url(un/t/t130_1.jpg) no-repeat;} +.t131_1 {background:url(un/t/t131_1.jpg) no-repeat;} +.t132_1 {background:url(un/t/t132_1.jpg) no-repeat;} +.t140_1 {background:url(un/t/t140_1.jpg) no-repeat;} +.t141_1 {background:url(un/t/t141_1.jpg) no-repeat;} +.t142_1 {background:url(un/t/t142_1.jpg) no-repeat;} +.t150_1 {background:url(un/t/t150_1.jpg) no-repeat;} +.t151_1 {background:url(un/t/t151_1.jpg) no-repeat;} +.t152_1 {background:url(un/t/t152_1.jpg) no-repeat;} +.t160_1 {background:url(un/t/t160_1.jpg) no-repeat;} +.t161_1 {background:url(un/t/t161_1.jpg) no-repeat;} +.t162_1 {background:url(un/t/t162_1.jpg) no-repeat;} +.t170_1 {background:url(un/t/t170_1.jpg) no-repeat;} +.t171_1 {background:url(un/t/t171_1.jpg) no-repeat;} +.t172_1 {background:url(un/t/t172_1.jpg) no-repeat;} +.t180_1 {background:url(un/t/t180_1.jpg) no-repeat;} +.t181_1 {background:url(un/t/t181_1.jpg) no-repeat;} +.t182_1 {background:url(un/t/t182_1.jpg) no-repeat;} +.t190_1 {background:url(un/t/t190_1.jpg) no-repeat;} +.t191_1 {background:url(un/t/t191_1.jpg) no-repeat;} +.t192_1 {background:url(un/t/t192_1.jpg) no-repeat;} +.t2_1 {background:url(un/t/t2_1.jpg) no-repeat;} +.t2_2 {background:url(un/t/t2_2.jpg) no-repeat;} +.t2_3 {background:url(un/t/t2_3.jpg) no-repeat;} +.t2_4 {background:url(un/t/t2_4.jpg) no-repeat;} +.t2_5 {background:url(un/t/t2_5.jpg) no-repeat;} +.t2_6 {background:url(un/t/t2_6.jpg) no-repeat;} +.t2_7 {background:url(un/t/t2_7.jpg) no-repeat;} +.t2_8 {background:url(un/t/t2_8.jpg) no-repeat;} +.t2_9 {background:url(un/t/t2_9.jpg) no-repeat;} +.t2_10 {background:url(un/t/t2_10.jpg) no-repeat;} +.t200_1 {background:url(un/t/t200_1.jpg) no-repeat;} +.t201_1 {background:url(un/t/t201_1.jpg) no-repeat;} +.t202_1 {background:url(un/t/t202_1.jpg) no-repeat;} +.t210_1 {background:url(un/t/t210_1.jpg) no-repeat;} +.t211_1 {background:url(un/t/t211_1.jpg) no-repeat;} +.t212_1 {background:url(un/t/t212_1.jpg) no-repeat;} +.t220_1 {background:url(un/t/t220_1.jpg) no-repeat;} +.t221_1 {background:url(un/t/t221_1.jpg) no-repeat;} +.t222_1 {background:url(un/t/t222_1.jpg) no-repeat;} +.t3_1 {background:url(un/t/t3_1.jpg) no-repeat;} +.t3_2 {background:url(un/t/t3_2.jpg) no-repeat;} +.t3_3 {background:url(un/t/t3_3.jpg) no-repeat;} +.t3_4 {background:url(un/t/t3_4.jpg) no-repeat;} +.t3_5 {background:url(un/t/t3_5.jpg) no-repeat;} +.t3_6 {background:url(un/t/t3_6.jpg) no-repeat;} +.t3_7 {background:url(un/t/t3_7.jpg) no-repeat;} +.t3_8 {background:url(un/t/t3_8.jpg) no-repeat;} +.t3_9 {background:url(un/t/t3_9.jpg) no-repeat;} +.t3_10 {background:url(un/t/t3_10.jpg) no-repeat;} +.t4_1 {background:url(un/t/t4_1.jpg) no-repeat;} +.t4_2 {background:url(un/t/t4_2.jpg) no-repeat;} +.t4_3 {background:url(un/t/t4_3.jpg) no-repeat;} +.t4_4 {background:url(un/t/t4_4.jpg) no-repeat;} +.t4_5 {background:url(un/t/t4_5.jpg) no-repeat;} +.t4_6 {background:url(un/t/t4_6.jpg) no-repeat;} +.t4_7 {background:url(un/t/t4_7.jpg) no-repeat;} +.t4_8 {background:url(un/t/t4_8.jpg) no-repeat;} +.t4_9 {background:url(un/t/t4_9.jpg) no-repeat;} +.t4_10 {background:url(un/t/t4_10.jpg) no-repeat;} +.t5_1 {background:url(un/t/t5_1.jpg) no-repeat;} +.t5_2 {background:url(un/t/t5_2.jpg) no-repeat;} +.t5_3 {background:url(un/t/t5_3.jpg) no-repeat;} +.t5_4 {background:url(un/t/t5_4.jpg) no-repeat;} +.t5_5 {background:url(un/t/t5_5.jpg) no-repeat;} +.t5_6 {background:url(un/t/t5_6.jpg) no-repeat;} +.t5_7 {background:url(un/t/t5_7.jpg) no-repeat;} +.t5_8 {background:url(un/t/t5_8.jpg) no-repeat;} +.t5_9 {background:url(un/t/t5_9.jpg) no-repeat;} +.t5_10 {background:url(un/t/t5_10.jpg) no-repeat;} +.t6_1 {background:url(un/t/t6_1.jpg) no-repeat;} +.t6_2 {background:url(un/t/t6_2.jpg) no-repeat;} +.t6_3 {background:url(un/t/t6_3.jpg) no-repeat;} +.t6_4 {background:url(un/t/t6_4.jpg) no-repeat;} +.t6_5 {background:url(un/t/t6_5.jpg) no-repeat;} +.t6_6 {background:url(un/t/t6_6.jpg) no-repeat;} +.t6_7 {background:url(un/t/t6_7.jpg) no-repeat;} +.t6_8 {background:url(un/t/t6_8.jpg) no-repeat;} +.t6_9 {background:url(un/t/t6_9.jpg) no-repeat;} +.t6_10 {background:url(un/t/t6_10.jpg) no-repeat;} +.tn {background:url(un/t/tn.gif) no-repeat;} +.tnd {background:url(un/t/tnd.gif) no-repeat;} + +/* medals for allies */ +.a1_1 {background:url(un/t/a1_1.jpg) no-repeat;} +.a1_10 {background:url(un/t/a1_10.jpg) no-repeat;} +.a1_2 {background:url(un/t/a1_2.jpg) no-repeat;} +.a1_3 {background:url(un/t/a1_3.jpg) no-repeat;} +.a1_4 {background:url(un/t/a1_4.jpg) no-repeat;} +.a1_5 {background:url(un/t/a1_5.jpg) no-repeat;} +.a1_6 {background:url(un/t/a1_6.jpg) no-repeat;} +.a1_7 {background:url(un/t/a1_7.jpg) no-repeat;} +.a1_8 {background:url(un/t/a1_8.jpg) no-repeat;} +.a1_9 {background:url(un/t/a1_9.jpg) no-repeat;} +.a2_1 {background:url(un/t/a2_1.jpg) no-repeat;} +.a2_10 {background:url(un/t/a2_10.jpg) no-repeat;} +.a2_2 {background:url(un/t/a2_2.jpg) no-repeat;} +.a2_3 {background:url(un/t/a2_3.jpg) no-repeat;} +.a2_4 {background:url(un/t/a2_4.jpg) no-repeat;} +.a2_5 {background:url(un/t/a2_5.jpg) no-repeat;} +.a2_6 {background:url(un/t/a2_6.jpg) no-repeat;} +.a2_7 {background:url(un/t/a2_7.jpg) no-repeat;} +.a2_8 {background:url(un/t/a2_8.jpg) no-repeat;} +.a2_9 {background:url(un/t/a2_9.jpg) no-repeat;} +.a3_1 {background:url(un/t/a3_1.jpg) no-repeat;} +.a3_10 {background:url(un/t/a3_10.jpg) no-repeat;} +.a3_2 {background:url(un/t/a3_2.jpg) no-repeat;} +.a3_3 {background:url(un/t/a3_3.jpg) no-repeat;} +.a3_4 {background:url(un/t/a3_4.jpg) no-repeat;} +.a3_5 {background:url(un/t/a3_5.jpg) no-repeat;} +.a3_6 {background:url(un/t/a3_6.jpg) no-repeat;} +.a3_7 {background:url(un/t/a3_7.jpg) no-repeat;} +.a3_8 {background:url(un/t/a3_8.jpg) no-repeat;} +.a3_9 {background:url(un/t/a3_9.jpg) no-repeat;} +.a4_1 {background:url(un/t/a4_1.jpg) no-repeat;} +.a4_10 {background:url(un/t/a4_10.jpg) no-repeat;} +.a4_2 {background:url(un/t/a4_2.jpg) no-repeat;} +.a4_3 {background:url(un/t/a4_3.jpg) no-repeat;} +.a4_4 {background:url(un/t/a4_4.jpg) no-repeat;} +.a4_5 {background:url(un/t/a4_5.jpg) no-repeat;} +.a4_6 {background:url(un/t/a4_6.jpg) no-repeat;} +.a4_7 {background:url(un/t/a4_7.jpg) no-repeat;} +.a4_8 {background:url(un/t/a4_8.jpg) no-repeat;} +.a4_9 {background:url(un/t/a4_9.jpg) no-repeat;} + + + +/* ressource fields */ +.village1 .f1, .map .f1 {background:url(un/g/f1.jpg) no-repeat;} +.village1 .f2, .map .f2 {background:url(un/g/f2.jpg) no-repeat;} +.village1 .f3, .map .f3 {background:url(un/g/f3.jpg) no-repeat;} +.village1 .f4, .map .f4 {background:url(un/g/f4.jpg) no-repeat;} +.village1 .f5, .map .f5 {background:url(un/g/f5.jpg) no-repeat;} +.village1 .f6, .map .f6 {background:url(un/g/f6.jpg) no-repeat;} +.village1 .f7, .map .f7 {background:url(un/g/f7.jpg) no-repeat;} +.village1 .f8, .map .f8 {background:url(un/g/f8.jpg) no-repeat;} +.village1 .f9, .map .f9 {background:url(un/g/f9.jpg) no-repeat;} +.village1 .f10, .map .f10 {background:url(un/g/f10.jpg) no-repeat;} +.village1 .f11, .map .f11 {background:url(un/g/f11.jpg) no-repeat;} +.village1 .f12, .map .f12 {background:url(un/g/f12.jpg) no-repeat;} +.village1 .f99, .map .f99 {background:url(un/g/f99.jpg) no-repeat;} + +/* ressource level */ +.reslevel {background-repeat: no-repeat;} +.level1, .level2, .level3, .level4, .level5, .level6, .level7, .level8, .level9, .level10 {background-image:url(un/g/s/lvl1_10.gif);} +.level11, .level12, .level13, .level14, .level15, .level16, .level17, .level18, .level19, .level20 {background-image:url(un/g/s/lvl11_20.gif);} +.level21, .level22, .level23, .level24, .level25 {background-image:url(un/g/s/lvl21_30.gif);} + +.level1, .level11, .level21 {background-position: 0 0;} +.level2, .level12, .level22 {background-position: -17px 0;} +.level3, .level13, .level23 {background-position: -34px 0;} +.level4, .level14, .level24 {background-position: -51px 0;} +.level5, .level15, .level25 {background-position: -68px 0;} +.level6, .level16 {background-position: -85px 0;} +.level7, .level17 {background-position: -102px 0;} +.level8, .level18 {background-position: -119px 0;} +.level9, .level19 {background-position: -136px 0;} +.level10, .level20 {background-position: -153px 0;} + +/* oases */ +.map .w1 {background:url(un/m/w1.jpg) no-repeat;} +.map .w2 {background:url(un/m/w2.jpg) no-repeat;} +.map .w3 {background:url(un/m/w3.jpg) no-repeat;} +.map .w4 {background:url(un/m/w4.jpg) no-repeat;} +.map .w5 {background:url(un/m/w5.jpg) no-repeat;} +.map .w6 {background:url(un/m/w6.jpg) no-repeat;} +.map .w7 {background:url(un/m/w7.jpg) no-repeat;} +.map .w8 {background:url(un/m/w8.jpg) no-repeat;} +.map .w9 {background:url(un/m/w9.jpg) no-repeat;} +.map .w10 {background:url(un/m/w10.jpg) no-repeat;} +.map .w11 {background:url(un/m/w11.jpg) no-repeat;} +.map .w12 {background:url(un/m/w12.jpg) no-repeat;} + +/* village center map */ +.d2_0 {background:url(un/g/bg0.jpg) no-repeat;} +.d2_1 {background:url(un/g/bg1.jpg) no-repeat;} +.d2_11 {background:url(un/g/bg11.jpg) no-repeat;} +.d2_12 {background:url(un/g/bg12.jpg) no-repeat;} +.village2 #lswitch {background:url(un/g/s/glvlp.gif) no-repeat; } +.village2 #lswitch.on {background:url(un/g/s/glvlm.gif) no-repeat;} +.village2 #levels div {background:url(un/g/s/glvl.gif) no-repeat;} + +/* buildings */ +.iso {background:url(un/g/iso.gif) no-repeat;} +.g5 {background:url(un/g/g5.gif) no-repeat;} +.g5b {background:url(un/g/g5b.gif) no-repeat;} +.g6 {background:url(un/g/g6.gif) no-repeat;} +.g6b {background:url(un/g/g6b.gif) no-repeat;} +.g7 {background:url(un/g/g7.gif) no-repeat;} +.g7b {background:url(un/g/g7b.gif) no-repeat;} +.g8 {background:url(un/g/g8.gif) no-repeat;} +.g8b {background:url(un/g/g8b.gif) no-repeat;} +.g9 {background:url(un/g/g9.gif) no-repeat;} +.g9b {background:url(un/g/g9b.gif) no-repeat;} +.g10 {background:url(un/g/g10.gif) no-repeat;} +.g10b {background:url(un/g/g10b.gif) no-repeat;} +.g11 {background:url(un/g/g11.gif) no-repeat;} +.g11b {background:url(un/g/g11b.gif) no-repeat;} +.g12 {background:url(un/g/g12.gif) no-repeat;} +.g12b {background:url(un/g/g12b.gif) no-repeat;} +.g13 {background:url(un/g/g13.gif) no-repeat;} +.g13b {background:url(un/g/g13b.gif) no-repeat;} +.g14 {background:url(un/g/g14.gif) no-repeat;} +.g14b {background:url(un/g/g14b.gif) no-repeat;} +.g15 {background:url(un/g/g15.gif) no-repeat;} +.g15b {background:url(un/g/g15b.gif) no-repeat;} +.g16 {background:url(un/g/g16.gif) no-repeat;} +.g17 {background:url(un/g/g17.gif) no-repeat;} +.g17b {background:url(un/g/g17b.gif) no-repeat;} +.g18 {background:url(un/g/g18.gif) no-repeat;} +.g18b {background:url(un/g/g18b.gif) no-repeat;} +.g19 {background:url(un/g/g19.gif) no-repeat;} +.g19b {background:url(un/g/g19b.gif) no-repeat;} +.g20 {background:url(un/g/g20.gif) no-repeat;} +.g20b {background:url(un/g/g20b.gif) no-repeat;} +.g21 {background:url(un/g/g21.gif) no-repeat;} +.g21b {background:url(un/g/g21b.gif) no-repeat;} +.g22 {background:url(un/g/g22.gif) no-repeat;} +.g22b {background:url(un/g/g22b.gif) no-repeat;} +.g23 {background:url(un/g/g23.gif) no-repeat;} +.g23b {background:url(un/g/g23b.gif) no-repeat;} +.g24 {background:url(un/g/g24.gif) no-repeat;} +.g24b {background:url(un/g/g24b.gif) no-repeat;} +.g25 {background:url(un/g/g25.gif) no-repeat;} +.g25b {background:url(un/g/g25b.gif) no-repeat;} +.g26 {background:url(un/g/g26.gif) no-repeat;} +.g26b {background:url(un/g/g26b.gif) no-repeat;} +.g27 {background:url(un/g/g27.gif) no-repeat;} +.g27b {background:url(un/g/g27b.gif) no-repeat;} +.g28 {background:url(un/g/g28.gif) no-repeat;} +.g28b {background:url(un/g/g28b.gif) no-repeat;} +.g29 {background:url(un/g/g29.gif) no-repeat;} +.g29b {background:url(un/g/g29b.gif) no-repeat;} +.g30 {background:url(un/g/g30.gif) no-repeat;} +.g30b {background:url(un/g/g30b.gif) no-repeat;} +.g34 {background:url(un/g/g34.gif) no-repeat;} +.g34b {background:url(un/g/g34b.gif) no-repeat;} +.g35 {background:url(un/g/g35.gif) no-repeat;} +.g35b {background:url(un/g/g35b.gif) no-repeat;} +.g36 {background:url(un/g/g36.gif) no-repeat;} +.g36b {background:url(un/g/g36b.gif) no-repeat;} +.g37 {background:url(un/g/g37.gif) no-repeat;} +.g37b {background:url(un/g/g37b.gif) no-repeat;} +.g38 {background:url(un/g/g38.gif) no-repeat;} +.g38b {background:url(un/g/g38b.gif) no-repeat;} +.g39 {background:url(un/g/g39.gif) no-repeat;} +.g39b {background:url(un/g/g39b.gif) no-repeat;} +.g40 {background:url(un/g/g40.gif) no-repeat;} +.g40_1 {background:url(un/g/g40_1.gif) no-repeat;} +.g40_2 {background:url(un/g/g40_2.gif) no-repeat;} +.g40_3 {background:url(un/g/g40_3.gif) no-repeat;} +.g40_4 {background:url(un/g/g40_4.gif) no-repeat;} +.g40_5 {background:url(un/g/g40_5.gif) no-repeat;} +.g41 {background:url(un/g/g41.gif) no-repeat;} +.g41b {background:url(un/g/g41b.gif) no-repeat;} +.g42 {background:url(un/g/g42.gif) no-repeat;} +.g42b {background:url(un/g/g42b.gif) no-repeat;} +.g43 {background:url(un/g/g43.gif) no-repeat;} +.g43b {background:url(un/g/g43b.gif) no-repeat;} +.g44 {background:url(un/g/g44.gif) no-repeat;} +.g44b {background:url(un/g/g44b.gif) no-repeat;} + +/*hero's mansion*/ +.bar {background:url(un/a/c3.gif) repeat-x;} + +/* big units */ +#big_unit.u1 {background:url(un/u2/u1.gif) no-repeat;} +#big_unit.u2 {background:url(un/u2/u2.gif) no-repeat;} +#big_unit.u3 {background:url(un/u2/u3.gif) no-repeat;} +#big_unit.u4 {background:url(un/u2/u4.gif) no-repeat;} +#big_unit.u5 {background:url(un/u2/u5.gif) no-repeat;} +#big_unit.u6 {background:url(un/u2/u6.gif) no-repeat;} +#big_unit.u7 {background:url(un/u2/u7.gif) no-repeat;} +#big_unit.u8 {background:url(un/u2/u8.gif) no-repeat;} +#big_unit.u9 {background:url(un/u2/u9.gif) no-repeat;} +#big_unit.u10 {background:url(un/u2/u10.gif) no-repeat;} +#big_unit.u11 {background:url(un/u2/u11.gif) no-repeat;} +#big_unit.u12 {background:url(un/u2/u12.gif) no-repeat;} +#big_unit.u13 {background:url(un/u2/u13.gif) no-repeat;} +#big_unit.u14 {background:url(un/u2/u14.gif) no-repeat;} +#big_unit.u15 {background:url(un/u2/u15.gif) no-repeat;} +#big_unit.u16 {background:url(un/u2/u16.gif) no-repeat;} +#big_unit.u17 {background:url(un/u2/u17.gif) no-repeat;} +#big_unit.u18 {background:url(un/u2/u18.gif) no-repeat;} +#big_unit.u19 {background:url(un/u2/u19.gif) no-repeat;} +#big_unit.u20 {background:url(un/u2/u20.gif) no-repeat;} +#big_unit.u21 {background:url(un/u2/u21.gif) no-repeat;} +#big_unit.u22 {background:url(un/u2/u22.gif) no-repeat;} +#big_unit.u23 {background:url(un/u2/u23.gif) no-repeat;} +#big_unit.u24 {background:url(un/u2/u24.gif) no-repeat;} +#big_unit.u25 {background:url(un/u2/u25.gif) no-repeat;} +#big_unit.u26 {background:url(un/u2/u26.gif) no-repeat;} +#big_unit.u27 {background:url(un/u2/u27.gif) no-repeat;} +#big_unit.u28 {background:url(un/u2/u28.gif) no-repeat;} +#big_unit.u29 {background:url(un/u2/u29.gif) no-repeat;} +#big_unit.u30 {background:url(un/u2/u30.gif) no-repeat;} + +/* attack - def */ +.att_all {background:url(un/a/att_all.gif) no-repeat;} +.att1 {background:url(un/a/att1.gif) no-repeat;} +.att2 {background:url(un/a/att2.gif) no-repeat;} +.att3 {background:url(un/a/att3.gif) no-repeat;} +.def1 {background:url(un/a/def1.gif) no-repeat;} +.def2 {background:url(un/a/def2.gif) no-repeat;} +.def3 {background:url(un/a/def3.gif) no-repeat;} +.def_c {background:url(un/a/def_c.gif) no-repeat;} +.def_i {background:url(un/a/def_i.gif) no-repeat;} + +/* online buttons */ +.online1, .online2, .online3, .online4, .online5 {background-image:url(un/a/online.gif); background-repeat:no-repeat;} +.online1 {background-position: 0px 0px;} +.online2 {background-position:-15px 0px;} +.online3 {background-position:-30px 0px;} +.online4 {background-position:-45px 0px;} +.online5 {background-position:-60px 0px;} + +/* statistics */ +.statistics #submenu img {background-repeat:no-repeat; background-position:left 0px;} +.statistics #submenu .btn_def {background-image:url(un/s/def.gif);} +.statistics #submenu .btn_off {background-image:url(un/s/off.gif);} +.statistics #submenu .btn_top10 {background-image:url(un/s/top10.gif);} +.statistics #submenu .active {background-position:right 0px;} + +/* ------------------ map ------------------*/ +/* Overlay */ +#map_content .m3 {background:url(un/m/matt.gif) no-repeat;} +#map_content .m4 {background:url(un/m/matt.gif) no-repeat;} +#map_content .m5 {background:url(un/m/msup.gif) no-repeat;} +#map_content .m6 {background:url(un/m/mspy.gif?a) no-repeat;} +#map_content .m9 {background:url(un/m/mret.gif) no-repeat;} + +/* VillageFields */ +#map_content .b00 {background-image:url(un/m/d00.gif)} +#map_content .b01 {background-image:url(un/m/d01.gif)} +#map_content .b02 {background-image:url(un/m/d02.gif?a)} +#map_content .b03 {background-image:url(un/m/d03.gif)} +#map_content .b04 {background-image:url(un/m/d04.gif)} +#map_content .b05 {background-image:url(un/m/d05.gif)} +#map_content .b06 {background-image:url(un/m/d06.gif)} +#map_content .b07 {background-image:url(un/m/d07.gif)} +#map_content .b08 {background-image:url(un/m/d08.gif)} +#map_content .b09 {background-image:url(un/m/d09.gif)} +#map_content .b10 {background-image:url(un/m/d10.gif)} +#map_content .b11 {background-image:url(un/m/d11.gif)} +#map_content .b12 {background-image:url(un/m/d12.gif?a)} +#map_content .b13 {background-image:url(un/m/d13.gif)} +#map_content .b14 {background-image:url(un/m/d14.gif)} +#map_content .b15 {background-image:url(un/m/d15.gif)} +#map_content .b16 {background-image:url(un/m/d16.gif)} +#map_content .b17 {background-image:url(un/m/d17.gif)} +#map_content .b18 {background-image:url(un/m/d18.gif)} +#map_content .b19 {background-image:url(un/m/d19.gif)} +#map_content .b20 {background-image:url(un/m/d20.gif)} +#map_content .b21 {background-image:url(un/m/d21.gif)} +#map_content .b22 {background-image:url(un/m/d22.gif?a)} +#map_content .b23 {background-image:url(un/m/d23.gif)} +#map_content .b24 {background-image:url(un/m/d24.gif)} +#map_content .b25 {background-image:url(un/m/d25.gif)} +#map_content .b26 {background-image:url(un/m/d26.gif)} +#map_content .b27 {background-image:url(un/m/d27.gif)} +#map_content .b28 {background-image:url(un/m/d28.gif)} +#map_content .b29 {background-image:url(un/m/d29.gif)} +#map_content .b30 {background-image:url(un/m/d30.gif)} +#map_content .b31 {background-image:url(un/m/d31.gif)} +#map_content .b32 {background-image:url(un/m/d32.gif?a)} +#map_content .b33 {background-image:url(un/m/d33.gif)} +#map_content .b34 {background-image:url(un/m/d34.gif)} +#map_content .b35 {background-image:url(un/m/d35.gif)} + +/* OasisFields */ +#map_content .o0 {background-image:url(un/m/o0.gif)} +#map_content .o1 {background-image:url(un/m/o1.gif)} +#map_content .o2 {background-image:url(un/m/o2.gif)} +#map_content .o3 {background-image:url(un/m/o3.gif)} +#map_content .o4 {background-image:url(un/m/o4.gif)} +#map_content .o5 {background-image:url(un/m/o5.gif)} +#map_content .o6 {background-image:url(un/m/o6.gif)} +#map_content .o7 {background-image:url(un/m/o7.gif)} +#map_content .o8 {background-image:url(un/m/o8.gif)} +#map_content .o9 {background-image:url(un/m/o9.gif)} +#map_content .o10 {background-image:url(un/m/o10.gif)} +#map_content .o11 {background-image:url(un/m/o11.gif)} +#map_content .o12 {background-image:url(un/m/o12.gif)} +#map_content .o99 {background-image:url(un/m/o99.gif)} + +/* EmptyFields */ +#map_content .t0 {background-image:url(un/m/t0.gif)} +#map_content .t1 {background-image:url(un/m/t1.gif)} +#map_content .t2 {background-image:url(un/m/t2.gif)} +#map_content .t3 {background-image:url(un/m/t3.gif)} +#map_content .t4 {background-image:url(un/m/t4.gif)} +#map_content .t5 {background-image:url(un/m/t5.gif)} +#map_content .t6 {background-image:url(un/m/t6.gif)} +#map_content .t7 {background-image:url(un/m/t7.gif)} +#map_content .t8 {background-image:url(un/m/t8.gif)} +#map_content .t9 {background-image:url(un/m/t9.gif)} +/* ------------------ map ------------------*/ + +/* rockets */ +.tur {background:url(un/special/NewyearRocket_turquoise_1a.gif) no-repeat;} +.purp {background:url(un/special/NewyearRocket_purple_1a.gif) no-repeat;;} +.yell {background:url(un/special/NewyearRocket_yellow_1a.gif) no-repeat;;} +.oran {background:url(un/special/NewyearRocket_orange_1a.gif) no-repeat;;} +.green {background:url(un/special/NewyearRocket_green_1a.gif) no-repeat;;} +.red {background:url(un/special/NewyearRocket_red_1a.gif) no-repeat;;} + +/* error pages */ +.e403 {background:url(un/misc/403.gif) no-repeat;} +.e404 {background:url(un/misc/404.gif) no-repeat;} +.e500 {background:url(un/misc/500.gif) no-repeat;} + diff --git a/img/travian_basics.css b/img/travian_basics.css new file mode 100644 index 00000000..c1d82c1c --- /dev/null +++ b/img/travian_basics.css @@ -0,0 +1,5 @@ +@CHARSET "UTF-8"; + +/* ------------------- New CSS styles ------------------- */ +/* ------------------------------------------------------ */ + diff --git a/img/tutorial/elements/Thumbs.db b/img/tutorial/elements/Thumbs.db new file mode 100644 index 00000000..f4795cec Binary files /dev/null and b/img/tutorial/elements/Thumbs.db differ diff --git a/img/tutorial/elements/country_sprite.gif b/img/tutorial/elements/country_sprite.gif new file mode 100644 index 00000000..6f4ab580 Binary files /dev/null and b/img/tutorial/elements/country_sprite.gif differ diff --git a/img/tutorial/flaggs.css b/img/tutorial/flaggs.css new file mode 100644 index 00000000..8edc57bd --- /dev/null +++ b/img/tutorial/flaggs.css @@ -0,0 +1,294 @@ +@CHARSET "UTF-8"; + +#flags { + position:absolute; + top: 0; + left: 0; + width: 100%; + text-align: center; +} + +#region_select { + color: white; + font-size: 10px; + text-transform: uppercase; + width:120px; + background-color: #535353; + border: 1px solid #777; + padding: 1px 0; + padding-left: 4px; + margin-right: 15px; + position: relative; + top: -2px; +} + +#flags div { + display: inline; +} + +#flag_box { + +} + +#flag_box img { + margin-top: 9px; + height: 11px; + width: 16px; + background-image: url("elements/country_sprite.gif"); +} + +#flag_box a { + margin: 4px; +} + +/** + * Flag sprite definition + */ +.flag_ad { background-position: 0px 0px; } +.flag_ae { background-position: -16px 0px; } +.flag_af { background-position: -32px 0px; } +.flag_ag { background-position: -48px 0px; } +.flag_ai { background-position: -64px 0px; } +.flag_al { background-position: -80px 0px; } +.flag_am { background-position: -96px 0px; } +.flag_an { background-position: -112px 0px; } +.flag_ao { background-position: -128px 0px; } +.flag_ar { background-position: -144px 0px; } +.flag_as { background-position: -160px 0px; } +.flag_at { background-position: -176px 0px; } +.flag_au { background-position: -192px 0px; } +.flag_aw { background-position: -208px 0px; } +.flag_ax { background-position: -224px 0px; } +.flag_az { background-position: -240px 0px; } +.flag_ba { background-position: -256px 0px; } +.flag_bb { background-position: -272px 0px; } +.flag_bd { background-position: -288px 0px; } +.flag_be { background-position: -304px 0px; } +.flag_bf { background-position: -320px 0px; } +.flag_bg { background-position: -336px 0px; } +.flag_bh { background-position: -352px 0px; } +.flag_bi { background-position: -368px 0px; } +.flag_bj { background-position: -384px 0px; } +.flag_bm { background-position: -400px 0px; } +.flag_bn { background-position: -416px 0px; } +.flag_bo { background-position: -432px 0px; } +.flag_br { background-position: -448px 0px; } +.flag_bs { background-position: -464px 0px; } +.flag_bt { background-position: -480px 0px; } +.flag_bv { background-position: -496px 0px; } +.flag_bw { background-position: -512px 0px; } +.flag_by { background-position: -528px 0px; } +.flag_bz { background-position: -544px 0px; } +.flag_ca { background-position: -560px 0px; } +.flag_catalonia { background-position: -576px 0px; } +.flag_cc { background-position: -592px 0px; } +.flag_cd { background-position: -608px 0px; } +.flag_cf { background-position: -624px 0px; } +.flag_cg { background-position: -640px 0px; } +.flag_ch { background-position: -656px 0px; } +.flag_ci { background-position: -672px 0px; } +.flag_ck { background-position: -688px 0px; } +.flag_cl { background-position: -704px 0px; } +.flag_cm { background-position: -720px 0px; } +.flag_cn { background-position: -736px 0px; } +.flag_co { background-position: -752px 0px; } +.flag_cr { background-position: -768px 0px; } +.flag_cs { background-position: -784px 0px; } +.flag_cu { background-position: -800px 0px; } +.flag_cv { background-position: -816px 0px; } +.flag_cx { background-position: -832px 0px; } +.flag_cy { background-position: -848px 0px; } +.flag_cz { background-position: -864px 0px; } +.flag_de { background-position: -880px 0px; } +.flag_dj { background-position: -896px 0px; } +.flag_dk { background-position: -912px 0px; } +.flag_dm { background-position: -928px 0px; } +.flag_do { background-position: -944px 0px; } +.flag_dz { background-position: -960px 0px; } +.flag_ec { background-position: -976px 0px; } +.flag_ee { background-position: -992px 0px; } +.flag_eg { background-position: -1008px 0px; } +.flag_eh { background-position: -1024px 0px; } +.flag_en { background-position: -1040px 0px; } +.flag_er { background-position: -1056px 0px; } +.flag_es, .flag_net { background-position: -1072px 0px; } +.flag_et { background-position: -1088px 0px; } +.flag_europeanunion { background-position: -1104px 0px; } +.flag_fam { background-position: -1120px 0px; } +.flag_fi { background-position: -1136px 0px; } +.flag_fj { background-position: -1152px 0px; } +.flag_fk { background-position: -1168px 0px; } +.flag_fm { background-position: -1184px 0px; } +.flag_fo { background-position: -1200px 0px; } +.flag_fr { background-position: -1216px 0px; } +.flag_ga { background-position: -1232px 0px; } +.flag_uk, .flag_gb { background-position: -1248px 0px; } +.flag_gd { background-position: -1264px 0px; } +.flag_ge { background-position: -1280px 0px; } +.flag_gf { background-position: -1296px 0px; } +.flag_gh { background-position: -1312px 0px; } +.flag_gi { background-position: -1328px 0px; } +.flag_gl { background-position: -1344px 0px; } +.flag_gm { background-position: -1360px 0px; } +.flag_gn { background-position: -1376px 0px; } +.flag_gp { background-position: -1392px 0px; } +.flag_gq { background-position: -1408px 0px; } +.flag_gr { background-position: -1424px 0px; } +.flag_gs { background-position: -1440px 0px; } +.flag_gt { background-position: -1456px 0px; } +.flag_gu { background-position: -1472px 0px; } +.flag_gw { background-position: -1488px 0px; } +.flag_gy { background-position: -1504px 0px; } +.flag_hk { background-position: -1520px 0px; } +.flag_hm { background-position: -1536px 0px; } +.flag_hn { background-position: -1552px 0px; } +.flag_hr { background-position: -1568px 0px; } +.flag_ht { background-position: -1584px 0px; } +.flag_hu { background-position: -1600px 0px; } +.flag_id { background-position: -1616px 0px; } +.flag_ie { background-position: -1632px 0px; } +.flag_il { background-position: -1648px 0px; } +.flag_in { background-position: -1664px 0px; } +.flag_io { background-position: -1680px 0px; } +.flag_iq { background-position: -1696px 0px; } +.flag_ir { background-position: -1712px 0px; } +.flag_is { background-position: -1728px 0px; } +.flag_it { background-position: -1744px 0px; } +.flag_jm { background-position: -1760px 0px; } +.flag_jo { background-position: -1776px 0px; } +.flag_jp { background-position: -1792px 0px; } +.flag_ke { background-position: -1808px 0px; } +.flag_kg { background-position: -1824px 0px; } +.flag_kh { background-position: -1840px 0px; } +.flag_ki { background-position: -1856px 0px; } +.flag_km { background-position: -1872px 0px; } +.flag_kn { background-position: -1888px 0px; } +.flag_kp { background-position: -1904px 0px; } +.flag_kr { background-position: -1920px 0px; } +.flag_kw { background-position: -1936px 0px; } +.flag_ky { background-position: -1952px 0px; } +.flag_kz { background-position: -1968px 0px; } +.flag_la { background-position: -1984px 0px; } +.flag_lb { background-position: -2000px 0px; } +.flag_lc { background-position: -2016px 0px; } +.flag_li { background-position: -2032px 0px; } +.flag_lk { background-position: -2048px 0px; } +.flag_lr { background-position: -2064px 0px; } +.flag_ls { background-position: -2080px 0px; } +.flag_lt { background-position: -2096px 0px; } +.flag_lu { background-position: -2112px 0px; } +.flag_lv { background-position: -2128px 0px; } +.flag_ly { background-position: -2144px 0px; } +.flag_ma { background-position: -2160px 0px; } +.flag_mc { background-position: -2176px 0px; } +.flag_md { background-position: -2192px 0px; } +.flag_me { background-position: -2208px 0px; } +.flag_mg { background-position: -2224px 0px; } +.flag_mh { background-position: -2240px 0px; } +.flag_mk { background-position: -2256px 0px; } +.flag_ml { background-position: -2272px 0px; } +.flag_mm { background-position: -2288px 0px; } +.flag_mn { background-position: -2304px 0px; } +.flag_mo { background-position: -2320px 0px; } +.flag_mp { background-position: -2336px 0px; } +.flag_mq { background-position: -2352px 0px; } +.flag_mr { background-position: -2368px 0px; } +.flag_ms { background-position: -2384px 0px; } +.flag_mt { background-position: -2400px 0px; } +.flag_mu { background-position: -2416px 0px; } +.flag_mv { background-position: -2432px 0px; } +.flag_mw { background-position: -2448px 0px; } +.flag_mx { background-position: -2464px 0px; } +.flag_my { background-position: -2480px 0px; } +.flag_mz { background-position: -2496px 0px; } +.flag_na { background-position: -2512px 0px; } +.flag_nc { background-position: -2528px 0px; } +.flag_ne { background-position: -2544px 0px; } +.flag_nf { background-position: -2560px 0px; } +.flag_ng { background-position: -2576px 0px; } +.flag_ni { background-position: -2592px 0px; } +.flag_nl { background-position: -2608px 0px; } +.flag_no { background-position: -2624px 0px; } +.flag_np { background-position: -2640px 0px; } +.flag_nr { background-position: -2656px 0px; } +.flag_nu { background-position: -2672px 0px; } +.flag_nz { background-position: -2688px 0px; } +.flag_om { background-position: -2704px 0px; } +.flag_pa { background-position: -2720px 0px; } +.flag_pe { background-position: -2736px 0px; } +.flag_pf { background-position: -2752px 0px; } +.flag_pg { background-position: -2768px 0px; } +.flag_ph { background-position: -2784px 0px; } +.flag_pk { background-position: -2800px 0px; } +.flag_pl { background-position: -2816px 0px; } +.flag_pm { background-position: -2832px 0px; } +.flag_pn { background-position: -2848px 0px; } +.flag_pr { background-position: -2864px 0px; } +.flag_ps { background-position: -2880px 0px; } +.flag_pt { background-position: -2896px 0px; } +.flag_pw { background-position: -2912px 0px; } +.flag_py { background-position: -2928px 0px; } +.flag_qa { background-position: -2944px 0px; } +.flag_re { background-position: -2960px 0px; } +.flag_ro { background-position: -2976px 0px; } +.flag_rs { background-position: -2992px 0px; } +.flag_ru { background-position: -3008px 0px; } +.flag_rw { background-position: -3024px 0px; } +.flag_sa { background-position: -3040px 0px; } +.flag_sb { background-position: -3056px 0px; } +.flag_sc { background-position: -3072px 0px; } +.flag_scotland { background-position: -3088px 0px; } +.flag_sd { background-position: -3104px 0px; } +.flag_se { background-position: -3120px 0px; } +.flag_sg { background-position: -3136px 0px; } +.flag_sh { background-position: -3152px 0px; } +.flag_si { background-position: -3168px 0px; } +.flag_sj { background-position: -3184px 0px; } +.flag_sk { background-position: -3200px 0px; } +.flag_sl { background-position: -3216px 0px; } +.flag_sm { background-position: -3232px 0px; } +.flag_sn { background-position: -3248px 0px; } +.flag_so { background-position: -3264px 0px; } +.flag_sr { background-position: -3280px 0px; } +.flag_st { background-position: -3296px 0px; } +.flag_sv { background-position: -3312px 0px; } +.flag_sy { background-position: -3328px 0px; } +.flag_sz { background-position: -3344px 0px; } +.flag_tc { background-position: -3360px 0px; } +.flag_td { background-position: -3376px 0px; } +.flag_tf { background-position: -3392px 0px; } +.flag_tg { background-position: -3408px 0px; } +.flag_th { background-position: -3424px 0px; } +.flag_tj { background-position: -3440px 0px; } +.flag_tk { background-position: -3456px 0px; } +.flag_tl { background-position: -3472px 0px; } +.flag_tm { background-position: -3488px 0px; } +.flag_tn { background-position: -3504px 0px; } +.flag_to { background-position: -3520px 0px; } +.flag_tr { background-position: -3536px 0px; } +.flag_tt { background-position: -3552px 0px; } +.flag_tv { background-position: -3568px 0px; } +.flag_tw { background-position: -3584px 0px; } +.flag_tz { background-position: -3600px 0px; } +.flag_ua { background-position: -3616px 0px; } +.flag_ug { background-position: -3632px 0px; } +.flag_um { background-position: -3648px 0px; } +.flag_us { background-position: -3664px 0px; } +.flag_uy { background-position: -3680px 0px; } +.flag_uz { background-position: -3696px 0px; } +.flag_va { background-position: -3712px 0px; } +.flag_vc { background-position: -3728px 0px; } +.flag_ve { background-position: -3744px 0px; } +.flag_vg { background-position: -3760px 0px; } +.flag_vi { background-position: -3776px 0px; } +.flag_vn { background-position: -3792px 0px; } +.flag_vu { background-position: -3808px 0px; } +.flag_wales { background-position: -3824px 0px; } +.flag_wf { background-position: -3840px 0px; } +.flag_ws { background-position: -3856px 0px; } +.flag_ye { background-position: -3872px 0px; } +.flag_yt { background-position: -3888px 0px; } +.flag_za { background-position: -3904px 0px; } +.flag_zm { background-position: -3920px 0px; } +.flag_zw { background-position: -3936px 0px; } +.flag_com { background-position: -3952px 0px; } diff --git a/img/tutorial/images/Thumbs.db b/img/tutorial/images/Thumbs.db new file mode 100644 index 00000000..d14e00b8 Binary files /dev/null and b/img/tutorial/images/Thumbs.db differ diff --git a/img/tutorial/images/artwork.jpg b/img/tutorial/images/artwork.jpg new file mode 100644 index 00000000..079f035f Binary files /dev/null and b/img/tutorial/images/artwork.jpg differ diff --git a/img/tutorial/images/artwork1-ltr.jpg b/img/tutorial/images/artwork1-ltr.jpg new file mode 100644 index 00000000..b81ef4ae Binary files /dev/null and b/img/tutorial/images/artwork1-ltr.jpg differ diff --git a/img/tutorial/images/buttons_screenshots_next.gif b/img/tutorial/images/buttons_screenshots_next.gif new file mode 100644 index 00000000..09749a14 Binary files /dev/null and b/img/tutorial/images/buttons_screenshots_next.gif differ diff --git a/img/tutorial/images/buttons_screenshots_prev.gif b/img/tutorial/images/buttons_screenshots_prev.gif new file mode 100644 index 00000000..af022041 Binary files /dev/null and b/img/tutorial/images/buttons_screenshots_prev.gif differ diff --git a/img/tutorial/images/content_background.jpg b/img/tutorial/images/content_background.jpg new file mode 100644 index 00000000..39d8e8e6 Binary files /dev/null and b/img/tutorial/images/content_background.jpg differ diff --git a/img/tutorial/images/count_background.jpg b/img/tutorial/images/count_background.jpg new file mode 100644 index 00000000..b38bd67a Binary files /dev/null and b/img/tutorial/images/count_background.jpg differ diff --git a/img/tutorial/images/country_background.jpg b/img/tutorial/images/country_background.jpg new file mode 100644 index 00000000..759e8fda Binary files /dev/null and b/img/tutorial/images/country_background.jpg differ diff --git a/img/tutorial/images/footer_background.jpg b/img/tutorial/images/footer_background.jpg new file mode 100644 index 00000000..0fdb4286 Binary files /dev/null and b/img/tutorial/images/footer_background.jpg differ diff --git a/img/tutorial/images/info_background.jpg b/img/tutorial/images/info_background.jpg new file mode 100644 index 00000000..7c3125b3 Binary files /dev/null and b/img/tutorial/images/info_background.jpg differ diff --git a/img/tutorial/images/logo_background.jpg b/img/tutorial/images/logo_background.jpg new file mode 100644 index 00000000..c2efefd4 Binary files /dev/null and b/img/tutorial/images/logo_background.jpg differ diff --git a/img/tutorial/images/main_background_content.jpg b/img/tutorial/images/main_background_content.jpg new file mode 100644 index 00000000..9ded052b Binary files /dev/null and b/img/tutorial/images/main_background_content.jpg differ diff --git a/img/tutorial/images/main_background_front.jpg b/img/tutorial/images/main_background_front.jpg new file mode 100644 index 00000000..f7ddbe9c Binary files /dev/null and b/img/tutorial/images/main_background_front.jpg differ diff --git a/img/tutorial/images/nav_left.gif b/img/tutorial/images/nav_left.gif new file mode 100644 index 00000000..3e7dc1a2 Binary files /dev/null and b/img/tutorial/images/nav_left.gif differ diff --git a/img/tutorial/images/nav_right.gif b/img/tutorial/images/nav_right.gif new file mode 100644 index 00000000..eca17053 Binary files /dev/null and b/img/tutorial/images/nav_right.gif differ diff --git a/img/tutorial/images/news_background.jpg b/img/tutorial/images/news_background.jpg new file mode 100644 index 00000000..06d3a0af Binary files /dev/null and b/img/tutorial/images/news_background.jpg differ diff --git a/img/tutorial/images/news_footer.jpg b/img/tutorial/images/news_footer.jpg new file mode 100644 index 00000000..d36549cc Binary files /dev/null and b/img/tutorial/images/news_footer.jpg differ diff --git a/img/tutorial/images/news_header.jpg b/img/tutorial/images/news_header.jpg new file mode 100644 index 00000000..241d7f1d Binary files /dev/null and b/img/tutorial/images/news_header.jpg differ diff --git a/img/tutorial/images/news_spacer.jpg b/img/tutorial/images/news_spacer.jpg new file mode 100644 index 00000000..8c30b250 Binary files /dev/null and b/img/tutorial/images/news_spacer.jpg differ diff --git a/img/tutorial/images/screenshots_background.jpg b/img/tutorial/images/screenshots_background.jpg new file mode 100644 index 00000000..1bfa46a1 Binary files /dev/null and b/img/tutorial/images/screenshots_background.jpg differ diff --git a/img/tutorial/main.css b/img/tutorial/main.css new file mode 100644 index 00000000..8e467f2a --- /dev/null +++ b/img/tutorial/main.css @@ -0,0 +1,618 @@ +@CHARSET "UTF-8"; + +/* Allgemeines */ + +body { + background-color: #FFFFFF; + direction: ltr; + font-size: 13px; + line-height: 19px; + margin: 0; + text-align: left; +} + +html { + overflow-y: scroll; +} + +html, +body { + margin:0; + padding:0; + height:100%; +} + + +body, button, input, select, textarea {font-family: Arial, Verdana, Helvetica, sans-serif;} + +a {font-size: 13px; text-decoration: none;} +a, a:visited {color: #71D000;} +a:active {color: #FF8000;} +a:hover {color: #00BC00; text-decoration: underline;} + +#content a {font-weight: bold; } +#content a:hover {text-decoration: none;} + +img {border: 0;} +.clear {clear: both; display: block; font-size: 0; height: 0; line-height: 0; visibility: hidden;} + +ul.menu, div.menu ul {list-style-type: none; margin: 0; padding: 0;} +.menu li {float: left;} + +.wrapper {height: auto !important; height: 100%; min-height: 100%; min-width: 845px; position: relative; text-align: center;} +.wrapper #content {text-align: left;} + +img.dynamic_btn, img.dynamic_img {background-position:top; background-repeat: no-repeat;} +img.over {background-position:bottom;} +img.clicked {background-position:center;} + +/* Schriftgroesse */ +.f16 {font-size:16pt;} +.f10 {font-size:10pt;} +.f9 {font-size:9pt; line-height: 140%; font-weight:normal;} +.f8 {font-size:8pt;} +.f7 {font-size:7pt;} +.f6 {font-size:6pt;} + +/* e Schriftfarbe fuer Fehlermeldung Login/Anmeldung */ +.e {color:#FF8000;} + +/* Schriftfarbe fuer Inaktive Links */ +.c {color:#C0C0C0;} +.c0 {color:#000000;} +.c1 {color:#71D000;} +.c2 {color:#FF8000;} +.c3 {color:#228B22;} +.c4 {color:#F2C700;} +.c5 {color:#FF0000;} + +/* Dicke Schrift */ +.b {font-weight:bold} + +/* Dünne Schrift */ +.t {font-weight:normal;} + +h1, h2, h3, h4, h5, h6 { + +} + +h1 {margin:0;} + +body.contentPage h1 { + text-align: center; + padding-top: 70px; + margin-bottom: 40px; + font-size: 26px; +} +body.contentPage #content .characteristics, body.contentPage #content p, body.contentPage #content table, body.contentPage form { + margin: 15px 160px; +} + +body.contentPage .rules { + margin-left: 120px; + margin-right: 160px; +} + +body.contentPage ul { + margin-top: 15px; + margin-bottom: 15px; +} + +body.contentPage .rules strong { + color:#2A720B; +} + +body.contentPage .rules ul strong { + color:#3BAE18; +} + +body.contentPage form table { + margin: 0; +} + +body.contentPage table.table_data { + background-color: #C0C0C0; + text-align: center; +} + +body.contentPage table.table_data { + width: 550px; +} + +body.contentPage table.culture_points { + margin: 15px 110px; + width: 650px; +} + + +#tutorial_nav, body.contentPage table.tutorial_table { + table-layout: fixed; + background-color: #fff; + width: 550px; +} + +body.contentPage #content td li, body.contentPage #content td form { + margin:0px; +} + +body.contentPage #content td.beschreibung { + text-align: left; + padding-top: 50px; +} + +body.contentPage table.tutorial_table td.visual { + text-align: center; + font-size: 11px; + font-style: italic; +} + +body.contentPage table.tutorial_table td.visual img { + display:block; + margin: auto; +} + +#tutorial_nav td.nav_prev { + text-align: left; +} + +#tutorial_nav td.nav_next { + text-align: right; +} + + +body.contentPage table.table_data th { + background-color: #F5F5F5; +} + +body.contentPage table.table_data td { + background-color: #fff; +} + +body.contentPage table.middle { + table-layout: fixed; + width: 520px; +} + +body.contentPage table.middle input { + width: 80px; +} + +table.middle td.yes { + text-align: right; +} + +table.middle td.no { + text-align: left; +} + +td.text, th.text { + padding-left: 7px; + text-align: left; +} + +body.contentPage #content h2 { + font-size: 16px;color: #71d000;line-height: 20px; + margin: 50px 160px 10px; +} + +body.contentPage #content h3 { + margin: 15px 160px 5px; + font-size: 14px; line-height: 18px; +} + +body.contentPage #content table h3 { + margin: 3px; +} + + +body.contentPage #content ul { + margin-top: 5px; +} + + +#content .question { + padding-top: 30px; + font-style: italic; + color: #333; +} + +#content .answer { + +} + + +/* Layout */ + +body.indexPage {background: #fff url("images/main_background_front.jpg") repeat-x top;} +body.contentPage {background: #fff url("images/main_background_content.jpg") repeat-x top;} + +#header {position: absolute; margin: 0 auto;right: 0; left: 0; width: 100%;} +#header {top: 0px; z-index: 10;} + + + +body.indexPage #header {height: 389px; overflow: auto; background: transparent url("images/artwork.jpg") no-repeat top center;} +body.contentPage #header {height: 200px; background: transparent none;} + +#header h1 {display: none;} + +#country_select {position: absolute;top: 0;left: 0;width: 100%;height: 30px;z-index: 500;} +#country_select {background: #fff url("images/country_background.jpg") repeat-x top;} + +#navigation {position: absolute;top:52px;left: 50%;margin-left: -437px;width: 830px;height: 114px;z-index: 80;} +.contentPage #navigation {background: url("images/logo_background.jpg") no-repeat top left;} +#navigation .menu {} +#navigation table.menu {position: absolute; right: 25px;top: 30px;width: 500px;} +#navigation .menu td {text-align: center;} +#navigation .menu a {text-decoration: none; font-size: 14px;line-height: 20px;color: #333; text-shadow: 1px 1px 1px #fff;} +#navigation .menu a.mark {color: #a20327;} +#navigation a.home { + width: 250px; + height: 85px; + position: absolute; + left: 55px; + top:0px; +} + +#navigation .menu a {padding: 6px 10px 7px 0px;} +#navigation .menu a span {padding: 6px 0px 7px 10px;} + +#navigation .menu a:hover {background: transparent url("images/nav_right.gif") no-repeat scroll bottom right;} +#navigation .menu a:hover span {background: transparent url("images/nav_left.gif") no-repeat scroll bottom left;} + +.ie6 #navigation .menu a:hover, .ie7 #navigation .menu a:hover {background: transparent; } +.ie6 #navigation .menu a:hover span, .ie7 #navigation .menu a:hover span {background: transparent;} + +#navigation .menu a:active {background: transparent url("images/nav_right.gif") no-repeat scroll top right;} +#navigation .menu a:active span {background: transparent url("images/nav_left.gif") no-repeat scroll top left;} + +#register_now { + position: absolute; + left: 50%; + top: 277px; + margin-left: -151px; + color: #574b2e; + height: 50px; + width: 145px; + color: #574b2e; + font-weight: bold; + z-index: 250; +} + +#register_now a { + margin-top: 7px; + color: #574b2e; + font-size: 21px; + display: block; +} + +#register_now span { + font-size: 9px; +} + + +#t4play { + position: absolute; + left: 50%; + top: 109px; + margin-left: 30px; + + z-index: 250; +} + +#t4play img { + width: 460px; + height: 290px; +} + + + +#content {position: relative;z-index: 50;} + +body.indexPage #content {padding-top: 367px;padding-bottom: 120px;} +body.contentPage #content {padding-top: 177px;padding-bottom: 160px;} + +#content .grit {position: relative;margin: 0 auto;} + +body.indexPage #content .grit {width: 830px; background: transparent none;} +body.contentPage #content .grit {width: 840px; min-height: 400px; background: transparent url("images/content_background.jpg") no-repeat top left; } + +.grit .infobox { + float: left; + margin-right: 9px; + margin-left:15px; + min-height: 391px; + width: 378px; + background: transparent url("images/info_background.jpg") no-repeat top left; +} + +.grit .infobox div {padding-left: 43px;padding-right: 30px;} + +#what_is_travian {padding-top:5px;} +#what_is_travian p {margin: 0;} +#what_is_travian h2 {font-size: 18px;font-weight: normal;color: #71d000;line-height: 20px;margin-bottom: 10px; text-shadow: 0px 2px 1px #fff;} +#what_is_travian .play_now {margin: 10px 0;} + +#player_counter {position: relative; padding: 0;left: 23px;height: 98px;width: 330px;background: transparent url("images/count_background.jpg") no-repeat top left;} +#player_counter table {position: absolute;left: 135px;top: 20px;width: 165px;border-spacing: 0;} +#player_counter table th {font-weight: normal;} +#player_counter table td {font-weight: bold;} + +#about_the_game {} +#about_the_game h2 {font-size: 15px; line-height: 20px; margin-bottom: 5px;} +#about_the_game ul {margin: 0; padding: 0; margin-top: 5px; margin-left: 15px;} +#about_the_game li {line-height: 19px;} + + +#news_from_forum h2 {font-size: 15px; line-height: 20px; margin-bottom: 5px; cursor: pointer;} +#news_from_forum ul {margin: 0; padding: 0; margin-top: 5px; list-style: none; border-top: 1px solid #999; margin-right:10px;} +#news_from_forum li {line-height: 19px; border-bottom: 1px solid #999; padding: 3px 5px;} +#news_from_forum li a {font-weight: normal;} + + +.hide {display:none;} + +.grit .secondarybox { + float: left; + margin-top: 22px; + background: transparent url("images/news_background.jpg") repeat-y top left; + width: 397px; +} + + +.grit #screenshots { + position: relative; + height: 134px; + width: 397px; + background: transparent url("images/screenshots_background.jpg") no-repeat top left; +} + +.grit #screenshots .prev img { + display: none; +} + +#screenshots h2 { + margin:0px; + padding:23px 20px 0; + color: #fff; + font-size:13px; +} + +#screenshots_preview { + height: 73px; + width: 294px; + position: absolute; + overflow: hidden; + margin: 7px 53px; + padding: 0; +} + +#screenshot_list { + list-style: none; + height: 73px; + padding: 0; + margin: 0; +} + +#screenshots .navi img { + position:absolute; + width: 26px; + height: 26px; + top: 70px; +} + +#screenshots .next img { + right:7px; + background-image: url("images/buttons_screenshots_next.gif"); +} +#screenshots .prev img { + left: 10px; + background-image: url("images/buttons_screenshots_prev.gif"); +} + + +#screenshot_list li {float:left;} +#screenshot_list img { + width: 98px; + height: 73px; +} + + + + +#newsbox { + padding-bottom: 25px; + background: transparent url("images/news_footer.jpg") no-repeat bottom left; +} + +#newsbox h2 { + display: block; + padding: 7px 15px 0px; + height: 30px; + margin: 0px; + + font-size: 17px; + color: #4c4c4c; + background: transparent url("images/news_header.jpg") no-repeat top left; + +} + +#newsbox .news { + width: 397px; + padding-bottom: 0px; + padding-left: 15px; + background: transparent url("images/news_spacer.jpg") no-repeat bottom left; +} + +#newsbox .news h4 { + margin:0; + margin-top: 3px; +} +#newsbox .news p.date { + font-size: 11px; + color: #999; + padding-bottom: 0; +} + +#newsbox .news p { + margin: 0; + padding-bottom: 10px; + padding-right: 30px; +} + + +/* Footer */ +#footer {position: absolute; margin: 0 auto;right: 0; left: 0;bottom: 0; height: 90px;z-index: 80;} +#footer {background: #F1F1F1 url("images/footer_background.jpg") repeat-x top;} +#footer .logo_traviangames {background-image: url("images/logo_traviangames.jpg");height: 34px; width: 182px;} +#footer .logo {position: absolute;top:20px;left:6px;} +#footer li, #footer a {color: #787878; font-size: 11px; line-height: 20px;} +#footer .menu {position: absolute; top: 18px; right: 9px;} +#footer .container {margin: 0 auto; position: relative; width: 840px;} +#footer .copyright {direction: ltr; clear: left; position: absolute; right: 3px; top: 20px;} +#footer ul.menu a {padding: 0 3px;} + + + + + + +.overlay {position: absolute;top:0px;left:0px;right: 0px;bottom: 0px;z-index: 400;} + +.overlay .mask { + position: fixed; + background-color: #000; + opacity: 0.25; + filter:alpha(opacity=25); + + width: 100%;height: 100%; +} + +.overlay_content { + position: absolute; + top: 150px; + right: 50%; + z-index: 600; +} + +.overlay_content .closer img { + position: absolute; + right: 15px; + top: 15px; + background-image: url("images/popup_close.gif"); + height: 25px; + width: 25px; +} + +.overlay_content .footer { + clear:both; + height: 10px; +} + +.overlay_content h2, .overlay_content h4 { + margin:0px; + padding: 20px 20px 0; + font-size: 16px; + line-height: 20px; +} + +#screenshot_layer {display: none;} +#screenshot_layer h3 {display:none;} +#screenshot_layer .overlay_content { + width: 644px; + margin-right: -322px; + background: #fff url("images/screenshot_background.gif") repeat-y top left; + text-align: center; +} +#screenshot_layer #frame_box {margin: 0 20px;} +#screenshot_layer h4 {text-align: center ;background: transparent url("images/screenshot_header.jpg") no-repeat top left; padding-bottom:15px;} +#screenshot_layer #screen_desc { + margin: 20px 0; + font-size: 12px; + padding: 0 40px; +} + +.screenshot_view img { + border: 1px solid #ccc; +} + +#screenshot_nr1 { + +} + +#screenshot_layer .footer {background: transparent url("images/screenshot_footer.gif") no-repeat bottom left;} + +#screenshot_layer .navi img { + position:absolute; + width: 25px; + height: 25px; + top: 250px; +} + +#screenshot_layer .next img { + right:20px; + background-image: url("images/popup_next.gif"); +} +#screenshot_layer .prev img { + left: 20px; + background-image: url("images/popup_prev.gif"); +} + + +#iframe_layer {display: none;} +#iframe_layer .overlay_content { + width: 450px; + margin-right: -225px; + background: #fff url("images/anleitung_background.gif") repeat-y top left; +} +#iframe_layer #frame_box {margin: 0 20px;} +#iframe_layer h2 {background: transparent url("images/anleitung_header.gif") no-repeat top left; padding-bottom:15px;} +#iframe_layer .footer {background: transparent url("images/anleitung_footer.gif") no-repeat bottom left;} + + + + +#login_layer, #signup_layer {display: none;} +#login_layer .overlay_content, #signup_layer .overlay_content { + width: 384px; + margin-right: -192px; + background: #fff url("images/gameworld_background.jpg") repeat-y top left; +} +#login_layer h2, #signup_layer h2 { + color: #71d000; + background: transparent url("images/gameworld_header.jpg") no-repeat top left; +} +#login_layer .footer, #signup_layer .footer { + background: transparent url("images/gameworld_footer.jpg") no-repeat bottom left; +} + + +ul.world_list { + padding: 7px; + margin: 0px; + list-style: none; +} + +.world_list li {float: left;position:relative; margin: 4px 5px; background-repeat: no-repeat;} +.world_list li div {position: absolute;} +.world_list li img {position: absolute; z-index: 30;} + +.world_list .w_small .players {top: 5px; left: 123px;} +.world_list .w_small .online {top: 22px; left: 123px;} +.world_list .w_big .players {top: 15px;right: 20px;} +.world_list .w_big .online {top: 33px;right: 20px;} +.world_list .label_players {top: 15px;left: 235px;} +.world_list .label_online {top: 33px;left: 235px;} + +.world_list li.w_big {height: 64px;width: 361px;} +.world_list li.w_small {height: 46px;width: 175px;} + +.world_list .w_big img {height: 64px;width: 361px;} + +.world_list .w_small img {height: 46px;width: 175px;} + +.world_list .worldstart {top: 10px;right: 20px;} +.world_list .timer {bottom: 15px;right: 20px;} + + + diff --git a/img/un/a/98.gif b/img/un/a/98.gif new file mode 100644 index 00000000..4a2c78b1 Binary files /dev/null and b/img/un/a/98.gif differ diff --git a/img/un/a/99.gif b/img/un/a/99.gif new file mode 100644 index 00000000..c4b57587 Binary files /dev/null and b/img/un/a/99.gif differ diff --git a/img/un/a/Thumbs.db b/img/un/a/Thumbs.db new file mode 100644 index 00000000..8b97e823 Binary files /dev/null and b/img/un/a/Thumbs.db differ diff --git a/img/un/a/anl.gif b/img/un/a/anl.gif new file mode 100644 index 00000000..b4211c40 Binary files /dev/null and b/img/un/a/anl.gif differ diff --git a/img/un/a/btm.gif b/img/un/a/btm.gif new file mode 100644 index 00000000..8a877475 Binary files /dev/null and b/img/un/a/btm.gif differ diff --git a/img/un/a/c2.gif b/img/un/a/c2.gif new file mode 100644 index 00000000..7415f887 Binary files /dev/null and b/img/un/a/c2.gif differ diff --git a/img/un/a/car.gif b/img/un/a/car.gif new file mode 100644 index 00000000..16d83e59 Binary files /dev/null and b/img/un/a/car.gif differ diff --git a/img/un/a/n12.gif b/img/un/a/n12.gif new file mode 100644 index 00000000..f250225b Binary files /dev/null and b/img/un/a/n12.gif differ diff --git a/img/un/a/online.gif b/img/un/a/online.gif new file mode 100644 index 00000000..9f3572bf Binary files /dev/null and b/img/un/a/online.gif differ diff --git a/img/un/a/rand.gif b/img/un/a/rand.gif new file mode 100644 index 00000000..77f99eb7 Binary files /dev/null and b/img/un/a/rand.gif differ diff --git a/img/un/a/res2.gif b/img/un/a/res2.gif new file mode 100644 index 00000000..f80bb6d9 Binary files /dev/null and b/img/un/a/res2.gif differ diff --git a/img/un/a/specials.gif b/img/un/a/specials.gif new file mode 100644 index 00000000..2fad05ce Binary files /dev/null and b/img/un/a/specials.gif differ diff --git a/img/un/a/v1_romans2.gif b/img/un/a/v1_romans2.gif new file mode 100644 index 00000000..829976e1 Binary files /dev/null and b/img/un/a/v1_romans2.gif differ diff --git a/img/un/a/v2_teutons2.gif b/img/un/a/v2_teutons2.gif new file mode 100644 index 00000000..1f4cce39 Binary files /dev/null and b/img/un/a/v2_teutons2.gif differ diff --git a/img/un/a/v3_gauls2.gif b/img/un/a/v3_gauls2.gif new file mode 100644 index 00000000..2f428c06 Binary files /dev/null and b/img/un/a/v3_gauls2.gif differ diff --git a/img/un/a/v4_nature2.gif b/img/un/a/v4_nature2.gif new file mode 100644 index 00000000..8282f291 Binary files /dev/null and b/img/un/a/v4_nature2.gif differ diff --git a/img/un/a/v5_natars2.gif b/img/un/a/v5_natars2.gif new file mode 100644 index 00000000..4c011982 Binary files /dev/null and b/img/un/a/v5_natars2.gif differ diff --git a/img/un/a/v6_monsters2.gif b/img/un/a/v6_monsters2.gif new file mode 100644 index 00000000..66dc678a Binary files /dev/null and b/img/un/a/v6_monsters2.gif differ diff --git a/img/un/g/Thumbs.db b/img/un/g/Thumbs.db new file mode 100644 index 00000000..9272a0e1 Binary files /dev/null and b/img/un/g/Thumbs.db differ diff --git a/img/un/g/bg0.jpg b/img/un/g/bg0.jpg new file mode 100644 index 00000000..2c0d6497 Binary files /dev/null and b/img/un/g/bg0.jpg differ diff --git a/img/un/g/bg1.jpg b/img/un/g/bg1.jpg new file mode 100644 index 00000000..67a1235e Binary files /dev/null and b/img/un/g/bg1.jpg differ diff --git a/img/un/g/bg11.jpg b/img/un/g/bg11.jpg new file mode 100644 index 00000000..6b99cb83 Binary files /dev/null and b/img/un/g/bg11.jpg differ diff --git a/img/un/g/bg12.jpg b/img/un/g/bg12.jpg new file mode 100644 index 00000000..7c2341fc Binary files /dev/null and b/img/un/g/bg12.jpg differ diff --git a/img/un/g/f1.jpg b/img/un/g/f1.jpg new file mode 100644 index 00000000..cde07652 Binary files /dev/null and b/img/un/g/f1.jpg differ diff --git a/img/un/g/f10.jpg b/img/un/g/f10.jpg new file mode 100644 index 00000000..9adaf8a4 Binary files /dev/null and b/img/un/g/f10.jpg differ diff --git a/img/un/g/f2.jpg b/img/un/g/f2.jpg new file mode 100644 index 00000000..d4a004fa Binary files /dev/null and b/img/un/g/f2.jpg differ diff --git a/img/un/g/f3.jpg b/img/un/g/f3.jpg new file mode 100644 index 00000000..143d32b4 Binary files /dev/null and b/img/un/g/f3.jpg differ diff --git a/img/un/g/f4.jpg b/img/un/g/f4.jpg new file mode 100644 index 00000000..e158c055 Binary files /dev/null and b/img/un/g/f4.jpg differ diff --git a/img/un/g/f5.jpg b/img/un/g/f5.jpg new file mode 100644 index 00000000..42e03a72 Binary files /dev/null and b/img/un/g/f5.jpg differ diff --git a/img/un/g/f6.jpg b/img/un/g/f6.jpg new file mode 100644 index 00000000..05f0b956 Binary files /dev/null and b/img/un/g/f6.jpg differ diff --git a/img/un/g/f7.jpg b/img/un/g/f7.jpg new file mode 100644 index 00000000..07452c29 Binary files /dev/null and b/img/un/g/f7.jpg differ diff --git a/img/un/g/f8.jpg b/img/un/g/f8.jpg new file mode 100644 index 00000000..b8a95fe1 Binary files /dev/null and b/img/un/g/f8.jpg differ diff --git a/img/un/g/f9.jpg b/img/un/g/f9.jpg new file mode 100644 index 00000000..3fbfb700 Binary files /dev/null and b/img/un/g/f9.jpg differ diff --git a/img/un/h/Thumbs.db b/img/un/h/Thumbs.db new file mode 100644 index 00000000..17823232 Binary files /dev/null and b/img/un/h/Thumbs.db differ diff --git a/img/un/h/att_all.gif b/img/un/h/att_all.gif new file mode 100644 index 00000000..dd1d8aaf Binary files /dev/null and b/img/un/h/att_all.gif differ diff --git a/img/un/h/clock.gif b/img/un/h/clock.gif new file mode 100644 index 00000000..b55eee08 Binary files /dev/null and b/img/un/h/clock.gif differ diff --git a/img/un/h/def_c.gif b/img/un/h/def_c.gif new file mode 100644 index 00000000..f5b8eec2 Binary files /dev/null and b/img/un/h/def_c.gif differ diff --git a/img/un/h/def_i.gif b/img/un/h/def_i.gif new file mode 100644 index 00000000..2890dd72 Binary files /dev/null and b/img/un/h/def_i.gif differ diff --git a/img/un/h/faq_botschaft.jpg b/img/un/h/faq_botschaft.jpg new file mode 100644 index 00000000..127dcf82 Binary files /dev/null and b/img/un/h/faq_botschaft.jpg differ diff --git a/img/un/h/faq_vp.jpg b/img/un/h/faq_vp.jpg new file mode 100644 index 00000000..13da3e93 Binary files /dev/null and b/img/un/h/faq_vp.jpg differ diff --git a/img/un/h/gallier.jpg b/img/un/h/gallier.jpg new file mode 100644 index 00000000..0d9f94a7 Binary files /dev/null and b/img/un/h/gallier.jpg differ diff --git a/img/un/h/germane.jpg b/img/un/h/germane.jpg new file mode 100644 index 00000000..9aaaa614 Binary files /dev/null and b/img/un/h/germane.jpg differ diff --git a/img/un/h/gid10.gif b/img/un/h/gid10.gif new file mode 100644 index 00000000..3a4c78fb Binary files /dev/null and b/img/un/h/gid10.gif differ diff --git a/img/un/h/gid11.gif b/img/un/h/gid11.gif new file mode 100644 index 00000000..f9645fcd Binary files /dev/null and b/img/un/h/gid11.gif differ diff --git a/img/un/h/gid12.gif b/img/un/h/gid12.gif new file mode 100644 index 00000000..ac5b71f8 Binary files /dev/null and b/img/un/h/gid12.gif differ diff --git a/img/un/h/gid13.gif b/img/un/h/gid13.gif new file mode 100644 index 00000000..274e7e80 Binary files /dev/null and b/img/un/h/gid13.gif differ diff --git a/img/un/h/gid14.gif b/img/un/h/gid14.gif new file mode 100644 index 00000000..a81b6990 Binary files /dev/null and b/img/un/h/gid14.gif differ diff --git a/img/un/h/gid15.gif b/img/un/h/gid15.gif new file mode 100644 index 00000000..292ee2e2 Binary files /dev/null and b/img/un/h/gid15.gif differ diff --git a/img/un/h/gid16.gif b/img/un/h/gid16.gif new file mode 100644 index 00000000..af6aa04b Binary files /dev/null and b/img/un/h/gid16.gif differ diff --git a/img/un/h/gid17.gif b/img/un/h/gid17.gif new file mode 100644 index 00000000..2d6245b8 Binary files /dev/null and b/img/un/h/gid17.gif differ diff --git a/img/un/h/gid18.gif b/img/un/h/gid18.gif new file mode 100644 index 00000000..4a36c95c Binary files /dev/null and b/img/un/h/gid18.gif differ diff --git a/img/un/h/gid19.gif b/img/un/h/gid19.gif new file mode 100644 index 00000000..c9611b3f Binary files /dev/null and b/img/un/h/gid19.gif differ diff --git a/img/un/h/gid20.gif b/img/un/h/gid20.gif new file mode 100644 index 00000000..4f85ac3a Binary files /dev/null and b/img/un/h/gid20.gif differ diff --git a/img/un/h/gid21.gif b/img/un/h/gid21.gif new file mode 100644 index 00000000..496c2c4e Binary files /dev/null and b/img/un/h/gid21.gif differ diff --git a/img/un/h/gid22.gif b/img/un/h/gid22.gif new file mode 100644 index 00000000..df2cde84 Binary files /dev/null and b/img/un/h/gid22.gif differ diff --git a/img/un/h/gid23.gif b/img/un/h/gid23.gif new file mode 100644 index 00000000..663962ef Binary files /dev/null and b/img/un/h/gid23.gif differ diff --git a/img/un/h/gid25.gif b/img/un/h/gid25.gif new file mode 100644 index 00000000..8f9ea0b7 Binary files /dev/null and b/img/un/h/gid25.gif differ diff --git a/img/un/h/gid26.gif b/img/un/h/gid26.gif new file mode 100644 index 00000000..b5fc0019 Binary files /dev/null and b/img/un/h/gid26.gif differ diff --git a/img/un/h/gid28.gif b/img/un/h/gid28.gif new file mode 100644 index 00000000..90bf41a7 Binary files /dev/null and b/img/un/h/gid28.gif differ diff --git a/img/un/h/roemer.jpg b/img/un/h/roemer.jpg new file mode 100644 index 00000000..e5195cbd Binary files /dev/null and b/img/un/h/roemer.jpg differ diff --git a/img/un/l/Thumbs.db b/img/un/l/Thumbs.db new file mode 100644 index 00000000..5d66c7e9 Binary files /dev/null and b/img/un/l/Thumbs.db differ diff --git a/img/un/l/mp.gif b/img/un/l/mp.gif new file mode 100644 index 00000000..ded914cd Binary files /dev/null and b/img/un/l/mp.gif differ diff --git a/img/un/l/mw.gif b/img/un/l/mw.gif new file mode 100644 index 00000000..eddc8288 Binary files /dev/null and b/img/un/l/mw.gif differ diff --git a/img/un/l/n1.gif b/img/un/l/n1.gif new file mode 100644 index 00000000..ca2c7aba Binary files /dev/null and b/img/un/l/n1.gif differ diff --git a/img/un/l/n2.gif b/img/un/l/n2.gif new file mode 100644 index 00000000..b49350a1 Binary files /dev/null and b/img/un/l/n2.gif differ diff --git a/img/un/l/n3.gif b/img/un/l/n3.gif new file mode 100644 index 00000000..b58a79bc Binary files /dev/null and b/img/un/l/n3.gif differ diff --git a/img/un/l/n4.gif b/img/un/l/n4.gif new file mode 100644 index 00000000..da3cf96f Binary files /dev/null and b/img/un/l/n4.gif differ diff --git a/img/un/res/1.gif b/img/un/res/1.gif new file mode 100644 index 00000000..a73d19e5 Binary files /dev/null and b/img/un/res/1.gif differ diff --git a/img/un/res/2.gif b/img/un/res/2.gif new file mode 100644 index 00000000..c235a01a Binary files /dev/null and b/img/un/res/2.gif differ diff --git a/img/un/res/3.gif b/img/un/res/3.gif new file mode 100644 index 00000000..8fc2e379 Binary files /dev/null and b/img/un/res/3.gif differ diff --git a/img/un/res/4.gif b/img/un/res/4.gif new file mode 100644 index 00000000..cc7431bc Binary files /dev/null and b/img/un/res/4.gif differ diff --git a/img/un/res/5.gif b/img/un/res/5.gif new file mode 100644 index 00000000..3b865d94 Binary files /dev/null and b/img/un/res/5.gif differ diff --git a/img/un/res/Thumbs.db b/img/un/res/Thumbs.db new file mode 100644 index 00000000..745b605b Binary files /dev/null and b/img/un/res/Thumbs.db differ diff --git a/img/un/s/Thumbs.db b/img/un/s/Thumbs.db new file mode 100644 index 00000000..6b59b27e Binary files /dev/null and b/img/un/s/Thumbs.db differ diff --git a/img/un/s/s1s.jpg b/img/un/s/s1s.jpg new file mode 100644 index 00000000..918f079f Binary files /dev/null and b/img/un/s/s1s.jpg differ diff --git a/img/un/s/s2s.jpg b/img/un/s/s2s.jpg new file mode 100644 index 00000000..6be8b7db Binary files /dev/null and b/img/un/s/s2s.jpg differ diff --git a/img/un/s/s3s.jpg b/img/un/s/s3s.jpg new file mode 100644 index 00000000..4dc5dcad Binary files /dev/null and b/img/un/s/s3s.jpg differ diff --git a/img/un/s/s4s.jpg b/img/un/s/s4s.jpg new file mode 100644 index 00000000..c5f93e41 Binary files /dev/null and b/img/un/s/s4s.jpg differ diff --git a/img/un/s/s5s.jpg b/img/un/s/s5s.jpg new file mode 100644 index 00000000..6bd0a007 Binary files /dev/null and b/img/un/s/s5s.jpg differ diff --git a/img/un/s/s7s.jpg b/img/un/s/s7s.jpg new file mode 100644 index 00000000..d8b8e6b0 Binary files /dev/null and b/img/un/s/s7s.jpg differ diff --git a/img/un/s/s8s.jpg b/img/un/s/s8s.jpg new file mode 100644 index 00000000..76244a46 Binary files /dev/null and b/img/un/s/s8s.jpg differ diff --git a/img/un/u/1.gif b/img/un/u/1.gif new file mode 100644 index 00000000..2bef584e Binary files /dev/null and b/img/un/u/1.gif differ diff --git a/img/un/u/10.gif b/img/un/u/10.gif new file mode 100644 index 00000000..39b4a796 Binary files /dev/null and b/img/un/u/10.gif differ diff --git a/img/un/u/11.gif b/img/un/u/11.gif new file mode 100644 index 00000000..868e1b9a Binary files /dev/null and b/img/un/u/11.gif differ diff --git a/img/un/u/12.gif b/img/un/u/12.gif new file mode 100644 index 00000000..51be68e2 Binary files /dev/null and b/img/un/u/12.gif differ diff --git a/img/un/u/13.gif b/img/un/u/13.gif new file mode 100644 index 00000000..d49b48ee Binary files /dev/null and b/img/un/u/13.gif differ diff --git a/img/un/u/14.gif b/img/un/u/14.gif new file mode 100644 index 00000000..ba9a0727 Binary files /dev/null and b/img/un/u/14.gif differ diff --git a/img/un/u/15.gif b/img/un/u/15.gif new file mode 100644 index 00000000..c9717c6f Binary files /dev/null and b/img/un/u/15.gif differ diff --git a/img/un/u/16.gif b/img/un/u/16.gif new file mode 100644 index 00000000..239dbedb Binary files /dev/null and b/img/un/u/16.gif differ diff --git a/img/un/u/17.gif b/img/un/u/17.gif new file mode 100644 index 00000000..0044e2e0 Binary files /dev/null and b/img/un/u/17.gif differ diff --git a/img/un/u/18.gif b/img/un/u/18.gif new file mode 100644 index 00000000..aac281dd Binary files /dev/null and b/img/un/u/18.gif differ diff --git a/img/un/u/19.gif b/img/un/u/19.gif new file mode 100644 index 00000000..f3a4b4ab Binary files /dev/null and b/img/un/u/19.gif differ diff --git a/img/un/u/2.gif b/img/un/u/2.gif new file mode 100644 index 00000000..36199a7d Binary files /dev/null and b/img/un/u/2.gif differ diff --git a/img/un/u/20.gif b/img/un/u/20.gif new file mode 100644 index 00000000..5f6aa3f7 Binary files /dev/null and b/img/un/u/20.gif differ diff --git a/img/un/u/21.gif b/img/un/u/21.gif new file mode 100644 index 00000000..03e41a78 Binary files /dev/null and b/img/un/u/21.gif differ diff --git a/img/un/u/22.gif b/img/un/u/22.gif new file mode 100644 index 00000000..b2e6fdb8 Binary files /dev/null and b/img/un/u/22.gif differ diff --git a/img/un/u/23.gif b/img/un/u/23.gif new file mode 100644 index 00000000..f8520f5e Binary files /dev/null and b/img/un/u/23.gif differ diff --git a/img/un/u/24.gif b/img/un/u/24.gif new file mode 100644 index 00000000..125643cb Binary files /dev/null and b/img/un/u/24.gif differ diff --git a/img/un/u/25.gif b/img/un/u/25.gif new file mode 100644 index 00000000..1acf5983 Binary files /dev/null and b/img/un/u/25.gif differ diff --git a/img/un/u/26.gif b/img/un/u/26.gif new file mode 100644 index 00000000..786d3071 Binary files /dev/null and b/img/un/u/26.gif differ diff --git a/img/un/u/27.gif b/img/un/u/27.gif new file mode 100644 index 00000000..3faca4f4 Binary files /dev/null and b/img/un/u/27.gif differ diff --git a/img/un/u/28.gif b/img/un/u/28.gif new file mode 100644 index 00000000..13de492a Binary files /dev/null and b/img/un/u/28.gif differ diff --git a/img/un/u/29.gif b/img/un/u/29.gif new file mode 100644 index 00000000..230423a5 Binary files /dev/null and b/img/un/u/29.gif differ diff --git a/img/un/u/3.gif b/img/un/u/3.gif new file mode 100644 index 00000000..a01e870f Binary files /dev/null and b/img/un/u/3.gif differ diff --git a/img/un/u/30.gif b/img/un/u/30.gif new file mode 100644 index 00000000..9e3d6209 Binary files /dev/null and b/img/un/u/30.gif differ diff --git a/img/un/u/4.gif b/img/un/u/4.gif new file mode 100644 index 00000000..8a0bf3f6 Binary files /dev/null and b/img/un/u/4.gif differ diff --git a/img/un/u/5.gif b/img/un/u/5.gif new file mode 100644 index 00000000..fb6eaf44 Binary files /dev/null and b/img/un/u/5.gif differ diff --git a/img/un/u/6.gif b/img/un/u/6.gif new file mode 100644 index 00000000..42134f1d Binary files /dev/null and b/img/un/u/6.gif differ diff --git a/img/un/u/7.gif b/img/un/u/7.gif new file mode 100644 index 00000000..774985db Binary files /dev/null and b/img/un/u/7.gif differ diff --git a/img/un/u/8.gif b/img/un/u/8.gif new file mode 100644 index 00000000..28c0b884 Binary files /dev/null and b/img/un/u/8.gif differ diff --git a/img/un/u/9.gif b/img/un/u/9.gif new file mode 100644 index 00000000..73c8203e Binary files /dev/null and b/img/un/u/9.gif differ diff --git a/img/un/u/Thumbs.db b/img/un/u/Thumbs.db new file mode 100644 index 00000000..5983004a Binary files /dev/null and b/img/un/u/Thumbs.db differ diff --git a/img/un/u/v1_romans2.gif b/img/un/u/v1_romans2.gif new file mode 100644 index 00000000..63595402 Binary files /dev/null and b/img/un/u/v1_romans2.gif differ diff --git a/img/un/u/v2_teutons2.gif b/img/un/u/v2_teutons2.gif new file mode 100644 index 00000000..f456969a Binary files /dev/null and b/img/un/u/v2_teutons2.gif differ diff --git a/img/un/u/v3_gauls2.gif b/img/un/u/v3_gauls2.gif new file mode 100644 index 00000000..d7ba7afd Binary files /dev/null and b/img/un/u/v3_gauls2.gif differ diff --git a/img/un/u/v4_nature2.gif b/img/un/u/v4_nature2.gif new file mode 100644 index 00000000..8282f291 Binary files /dev/null and b/img/un/u/v4_nature2.gif differ diff --git a/img/un/u/v5_natars2.gif b/img/un/u/v5_natars2.gif new file mode 100644 index 00000000..4c011982 Binary files /dev/null and b/img/un/u/v5_natars2.gif differ diff --git a/img/un/u/v6_monsters2.gif b/img/un/u/v6_monsters2.gif new file mode 100644 index 00000000..66dc678a Binary files /dev/null and b/img/un/u/v6_monsters2.gif differ diff --git a/img/un/x.gif b/img/un/x.gif new file mode 100644 index 00000000..c7bee69b Binary files /dev/null and b/img/un/x.gif differ diff --git a/img/x.gif b/img/x.gif new file mode 100644 index 00000000..c7bee69b Binary files /dev/null and b/img/x.gif differ diff --git a/index.php b/index.php new file mode 100644 index 00000000..9b9fea82 --- /dev/null +++ b/index.php @@ -0,0 +1,369 @@ + + + + + + Powered by TravianX - <?php + + echo SERVER_NAME; + + ?> + + + + + + + + + + +
    + + + + + + +
    + +
    + +
    +
    +
    +
    +

    + +

    + +

    +
    + +
    + + + + + + + + + + + + + + + + + + + + +
    : 0")); + echo ($users)-3; + + ?>
    :
    :
    +
    + +
    +

    :

    + +
      +
    • + +
    • + +
    • +
    +
    +
    + +
    +
    +

    Screenshots

    + +
    +
      +
    • Screenshot
    • + +
    • Screenshot
    • + +
    • Screenshot
    • + +
    • Screenshot
    • + +
    • Screenshot
    • + +
    • Screenshot
    • + +
    • Screenshot
    • +
    +
    +
    + +
    +

    + +
    +

    [Release by: TravianX]

    + +

    Thank you for using our version!

    +
    +
    +
    +
    + +
    +
    + + +
    + +
    +
    + +
    +

    Choose your world

    Close + +
      +
    • + kr2 ??? + +
      + ????: +
      + +
      + ???: +
      + +
      + 470 +
      + +
      + 12 +
      +
    • +
    + + +
    +
    + +
    +
    + +
    +

    Choose your world

    Close + +
      +
    • + kr2 ?? + +
      + ????: +
      + +
      + ???: +
      + +
      + 470 +
      + +
      + 12 +
      +
    • +
    + + +
    +
    + +
    +
    + +
    + Close + +

    Anleitung

    + +
    + + +
    +
    + +
    +
    + +
    +

    Screenshots

    Close + +
    +

    Screenshot + +
    +
    + + +
    +
    + + diff --git a/install/data/constant_format.tpl b/install/data/constant_format.tpl new file mode 100644 index 00000000..babf50d8 --- /dev/null +++ b/install/data/constant_format.tpl @@ -0,0 +1,251 @@ + diff --git a/install/data/sql.sql b/install/data/sql.sql new file mode 100644 index 00000000..684fb935 --- /dev/null +++ b/install/data/sql.sql @@ -0,0 +1,1343 @@ +-- phpMyAdmin SQL Dump +-- version 3.3.9 +-- http://www.phpmyadmin.net +-- +-- Host: localhost +-- Generation Time: Jul 21, 2011 at 02:49 AM +-- Server version: 5.5.8 +-- PHP Version: 5.3.5 + +SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%a2b` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%a2b` ( + `id` int(255) unsigned NOT NULL AUTO_INCREMENT, + `ckey` varchar(255) NOT NULL, + `time_check` int(255) unsigned NOT NULL DEFAULT '0', + `to_vid` int(255) unsigned NOT NULL, + `u1` int(11) unsigned NOT NULL, + `u2` int(11) unsigned NOT NULL, + `u3` int(11) unsigned NOT NULL, + `u4` int(11) unsigned NOT NULL, + `u5` int(11) unsigned NOT NULL, + `u6` int(11) unsigned NOT NULL, + `u7` int(11) unsigned NOT NULL, + `u8` int(11) unsigned NOT NULL, + `u9` int(11) unsigned NOT NULL, + `u10` int(11) unsigned NOT NULL, + `u11` int(11) unsigned NOT NULL, + `type` smallint(1) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%a2b` +-- + +-- +-- Table structure for table `%PREFIX%links` +-- + +CREATE TABLE `%PREFIX%links` ( + `id` INT( 25 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , + `userid` INT( 25 ) NOT NULL , + `name` VARCHAR( 50 ) NOT NULL , + `url` VARCHAR( 150 ) NOT NULL , + `pos` INT( 10 ) NOT NULL +) ENGINE = MYISAM; + +-- +-- Dumping data for table `%PREFIX%links` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%abdata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%abdata` ( + `vref` int(10) unsigned NOT NULL AUTO_INCREMENT, + `a1` tinyint(2) unsigned NOT NULL DEFAULT '0', + `a2` tinyint(2) unsigned NOT NULL DEFAULT '0', + `a3` tinyint(2) unsigned NOT NULL DEFAULT '0', + `a4` tinyint(2) unsigned NOT NULL DEFAULT '0', + `a5` tinyint(2) unsigned NOT NULL DEFAULT '0', + `a6` tinyint(2) unsigned NOT NULL DEFAULT '0', + `a7` tinyint(2) unsigned NOT NULL DEFAULT '0', + `a8` tinyint(2) unsigned NOT NULL DEFAULT '0', + `b1` tinyint(2) unsigned NOT NULL DEFAULT '0', + `b2` tinyint(2) unsigned NOT NULL DEFAULT '0', + `b3` tinyint(2) unsigned NOT NULL DEFAULT '0', + `b4` tinyint(2) unsigned NOT NULL DEFAULT '0', + `b5` tinyint(2) unsigned NOT NULL DEFAULT '0', + `b6` tinyint(2) unsigned NOT NULL DEFAULT '0', + `b7` tinyint(2) unsigned NOT NULL DEFAULT '0', + `b8` tinyint(2) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`vref`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%abdata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%activate` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%activate` ( + `id` int(255) unsigned NOT NULL AUTO_INCREMENT, + `username` varchar(45) NOT NULL, + `password` varchar(45) NOT NULL, + `email` text NOT NULL, + `tribe` tinyint(1) unsigned NOT NULL, + `access` tinyint(1) unsigned NOT NULL DEFAULT '1', + `act` varchar(10) NOT NULL, + `timestamp` int(10) unsigned NOT NULL DEFAULT '0', + `location` text NOT NULL, + `act2` varchar(10) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%activate` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%active` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%active` ( + `username` varchar(15) NOT NULL, + `timestamp` int(11) unsigned NOT NULL, + PRIMARY KEY (`username`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `%PREFIX%active` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%admin_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%admin_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user` text NOT NULL, + `log` text NOT NULL, + `time` int(25) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=80 ; + +-- +-- Dumping data for table `%PREFIX%admin_log` +-- + + +-- -------------------------------------------------------- +-- +-- Table structure for table `%PREFIX%allimedal` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%allimedal` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `allyid` int(11) NOT NULL, + `categorie` int(11) NOT NULL, + `plaats` int(11) NOT NULL, + `week` int(11) NOT NULL, + `points` bigint(255) NOT NULL, + `img` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%artefacts` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%artefacts` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `vref` int(10) unsigned NOT NULL, + `owner` int(10) unsigned NOT NULL, + `type` int(3) unsigned NOT NULL, + `size` int(10) unsigned NOT NULL, + `conquered` int(10) unsigned NOT NULL, + `name` varchar(45) NOT NULL, + `desc` text NOT NULL, + `effect` varchar(45) NOT NULL, + `img` varchar(20) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Table structure for table `s1_artefacts` +-- +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%alidata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%alidata` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(25) NOT NULL, + `tag` varchar(8) NOT NULL, + `leader` int(10) unsigned NOT NULL, + `coor` int(10) unsigned NOT NULL, + `advisor` int(10) unsigned NOT NULL, + `recruiter` int(10) unsigned NOT NULL, + `notice` text NOT NULL, + `desc` text NOT NULL, + `max` tinyint(2) unsigned NOT NULL, + `ap` bigint(255) unsigned NOT NULL DEFAULT '0', + `dp` bigint(255) unsigned NOT NULL DEFAULT '0', + `Rc` bigint(255) unsigned NOT NULL DEFAULT '0', + `RR` bigint(255) NOT NULL DEFAULT '0', + `Aap` bigint(255) unsigned NOT NULL DEFAULT '0', + `Adp` bigint(255) unsigned NOT NULL DEFAULT '0', + `clp` bigint(255) NOT NULL DEFAULT '0', + `oldrank` bigint(255) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%alidata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%ali_invite` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%ali_invite` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(10) unsigned NOT NULL, + `alliance` int(10) unsigned NOT NULL, + `sender` int(10) NOT NULL, + `timestamp` int(11) NOT NULL, + `accept` int(1) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%ali_invite` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%ali_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%ali_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `aid` int(10) NOT NULL, + `comment` text NOT NULL, + `date` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%ali_log` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%ali_permission` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%ali_permission` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(10) unsigned NOT NULL, + `alliance` int(10) unsigned NOT NULL, + `rank` varchar(20) NOT NULL, + `opt1` int(1) unsigned NOT NULL DEFAULT '0', + `opt2` int(1) unsigned NOT NULL DEFAULT '0', + `opt3` int(1) unsigned NOT NULL DEFAULT '0', + `opt4` int(1) unsigned NOT NULL DEFAULT '0', + `opt5` int(1) unsigned NOT NULL DEFAULT '0', + `opt6` int(1) unsigned NOT NULL DEFAULT '0', + `opt7` int(1) unsigned NOT NULL DEFAULT '0', + `opt8` int(1) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%ali_permission` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%attacks` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%attacks` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `vref` int(11) unsigned NOT NULL, + `t1` int(11) unsigned NOT NULL, + `t2` int(11) unsigned NOT NULL, + `t3` int(11) unsigned NOT NULL, + `t4` int(11) unsigned NOT NULL, + `t5` int(11) unsigned NOT NULL, + `t6` int(11) unsigned NOT NULL, + `t7` int(11) unsigned NOT NULL, + `t8` int(11) unsigned NOT NULL, + `t9` int(11) unsigned NOT NULL, + `t10` int(11) unsigned NOT NULL, + `t11` int(11) unsigned NOT NULL, + `attack_type` tinyint(1) NOT NULL, + `ctar1` int(11) unsigned NOT NULL, + `ctar2` int(11) unsigned NOT NULL, + `spy` int(11) unsigned NOT NULL, + `b1` tinyint(1) unsigned NOT NULL, + `b2` tinyint(1) unsigned NOT NULL, + `b3` tinyint(1) unsigned NOT NULL, + `b4` tinyint(1) unsigned NOT NULL, + `b5` tinyint(1) unsigned NOT NULL, + `b6` tinyint(1) unsigned NOT NULL, + `b7` tinyint(1) unsigned NOT NULL, + `b8` tinyint(1) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%attacks` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%banlist` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%banlist` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `uid` int(10) NOT NULL, + `name` varchar(30) NOT NULL, + `reason` varchar(30) NOT NULL, + `time` int(10) NOT NULL, + `end` varchar(10) NOT NULL, + `admin` int(11) NOT NULL, + `active` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%banlist` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%bdata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%bdata` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(10) unsigned NOT NULL, + `field` tinyint(2) unsigned NOT NULL, + `type` tinyint(2) unsigned NOT NULL, + `loopcon` tinyint(1) unsigned NOT NULL, + `timestamp` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%bdata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%build_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%build_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(10) unsigned NOT NULL, + `log` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%build_log` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%chat` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%chat` ( + `id` int(20) unsigned NOT NULL AUTO_INCREMENT, + `id_user` int(10) NOT NULL, + `name` varchar(255) NOT NULL, + `alli` varchar(255) NOT NULL, + `date` varchar(255) NOT NULL, + `msg` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%chat` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%deleting` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%deleting` ( + `uid` int(10) unsigned NOT NULL, + `timestamp` int(10) unsigned NOT NULL, + PRIMARY KEY (`uid`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `%prefix%deleting` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%demolition` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%demolition` ( + `vref` int(10) unsigned NOT NULL AUTO_INCREMENT, + `buildnumber` int(10) unsigned NOT NULL DEFAULT '0', + `lvl` int(10) unsigned NOT NULL DEFAULT '0', + `timetofinish` int(11) NOT NULL, + PRIMARY KEY (`vref`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%demolition` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%destroy_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%destroy_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(10) unsigned NOT NULL, + `log` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%destroy_log` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%diplomacy` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%diplomacy` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `alli1` int(10) unsigned NOT NULL, + `alli2` int(10) unsigned NOT NULL, + `type` tinyint(1) unsigned NOT NULL, + `accepted` int(1) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; +-- +-- Dumping data for table `%prefix%diplomacy` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%enforcement` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%enforcement` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `u1` int(11) unsigned NOT NULL DEFAULT '0', + `u2` int(11) unsigned NOT NULL DEFAULT '0', + `u3` int(11) unsigned NOT NULL DEFAULT '0', + `u4` int(11) unsigned NOT NULL DEFAULT '0', + `u5` int(11) unsigned NOT NULL DEFAULT '0', + `u6` int(11) unsigned NOT NULL DEFAULT '0', + `u7` int(11) unsigned NOT NULL DEFAULT '0', + `u8` int(11) unsigned NOT NULL DEFAULT '0', + `u9` int(11) unsigned NOT NULL DEFAULT '0', + `u10` int(11) unsigned NOT NULL DEFAULT '0', + `u11` int(11) unsigned NOT NULL DEFAULT '0', + `u12` int(11) unsigned NOT NULL DEFAULT '0', + `u13` int(11) unsigned NOT NULL DEFAULT '0', + `u14` int(11) unsigned NOT NULL DEFAULT '0', + `u15` int(11) unsigned NOT NULL DEFAULT '0', + `u16` int(11) unsigned NOT NULL DEFAULT '0', + `u17` int(11) unsigned NOT NULL DEFAULT '0', + `u18` int(11) unsigned NOT NULL DEFAULT '0', + `u19` int(11) unsigned NOT NULL DEFAULT '0', + `u20` int(11) unsigned NOT NULL DEFAULT '0', + `u21` int(11) unsigned NOT NULL DEFAULT '0', + `u22` int(11) unsigned NOT NULL DEFAULT '0', + `u23` int(11) unsigned NOT NULL DEFAULT '0', + `u24` int(11) unsigned NOT NULL DEFAULT '0', + `u25` int(11) unsigned NOT NULL DEFAULT '0', + `u26` int(11) unsigned NOT NULL DEFAULT '0', + `u27` int(11) unsigned NOT NULL DEFAULT '0', + `u28` int(11) unsigned NOT NULL DEFAULT '0', + `u29` int(11) unsigned NOT NULL DEFAULT '0', + `u30` int(11) unsigned NOT NULL DEFAULT '0', + `u31` int(11) unsigned NOT NULL DEFAULT '0', + `u32` int(11) unsigned NOT NULL DEFAULT '0', + `u33` int(11) unsigned NOT NULL DEFAULT '0', + `u34` int(11) unsigned NOT NULL DEFAULT '0', + `u35` int(11) unsigned NOT NULL DEFAULT '0', + `u36` int(11) unsigned NOT NULL DEFAULT '0', + `u37` int(11) unsigned NOT NULL DEFAULT '0', + `u38` int(11) unsigned NOT NULL DEFAULT '0', + `u39` int(11) unsigned NOT NULL DEFAULT '0', + `u40` int(11) unsigned NOT NULL DEFAULT '0', + `u41` int(11) unsigned NOT NULL DEFAULT '0', + `u42` int(11) unsigned NOT NULL DEFAULT '0', + `u43` int(11) unsigned NOT NULL DEFAULT '0', + `u44` int(11) unsigned NOT NULL DEFAULT '0', + `u45` int(11) unsigned NOT NULL DEFAULT '0', + `u46` int(11) unsigned NOT NULL DEFAULT '0', + `u47` int(11) unsigned NOT NULL DEFAULT '0', + `u48` int(11) unsigned NOT NULL DEFAULT '0', + `u49` int(11) unsigned NOT NULL DEFAULT '0', + `u50` int(11) unsigned NOT NULL DEFAULT '0', + `hero` tinyint(1) unsigned NOT NULL DEFAULT '0', + `from` int(10) unsigned NOT NULL DEFAULT '0', + `vref` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%enforcement` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%fdata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%fdata` ( + `vref` int(10) unsigned NOT NULL, + `f1` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f1t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f2` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f2t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f3` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f3t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f4` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f4t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f5` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f5t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f6` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f6t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f7` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f7t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f8` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f8t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f9` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f9t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f10` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f10t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f11` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f11t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f12` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f12t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f13` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f13t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f14` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f14t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f15` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f15t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f16` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f16t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f17` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f17t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f18` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f18t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f19` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f19t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f20` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f20t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f21` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f21t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f22` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f22t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f23` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f23t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f24` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f24t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f25` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f25t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f26` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f26t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f27` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f27t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f28` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f28t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f29` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f29t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f30` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f30t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f31` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f31t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f32` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f32t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f33` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f33t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f34` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f34t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f35` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f35t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f36` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f36t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f37` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f37t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f38` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f38t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f39` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f39t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f40` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f40t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f99` tinyint(2) unsigned NOT NULL DEFAULT '0', + `f99t` tinyint(2) unsigned NOT NULL DEFAULT '0', + `wwname` varchar(25) NOT NULL DEFAULT 'World Wonder', + PRIMARY KEY (`vref`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED; + +-- +-- Dumping data for table `%prefix%fdata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%forum_cat` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%forum_cat` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `owner` varchar(255) NOT NULL, + `alliance` varchar(255) NOT NULL, + `forum_name` varchar(255) NOT NULL, + `forum_des` text NOT NULL, + `forum_area` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%forum_cat` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%forum_edit` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%forum_edit` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `alliance` varchar(255) NOT NULL, + `result` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%forum_edit` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%forum_post` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%forum_post` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `post` longtext NOT NULL, + `topic` varchar(255) NOT NULL, + `owner` varchar(255) NOT NULL, + `date` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%forum_post` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%forum_topic` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%forum_topic` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `title` varchar(255) NOT NULL, + `post` longtext NOT NULL, + `date` varchar(255) NOT NULL, + `post_date` varchar(255) NOT NULL, + `cat` varchar(255) NOT NULL, + `owner` varchar(255) NOT NULL, + `alliance` varchar(255) NOT NULL, + `ends` varchar(255) NOT NULL, + `close` varchar(255) NOT NULL, + `stick` varchar(255) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%forum_topic` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%gold_fin_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%gold_fin_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(10) unsigned NOT NULL, + `log` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%gold_fin_log` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%hero` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%hero` ( + `heroid` smallint(2) unsigned NOT NULL AUTO_INCREMENT, + `uid` smallint(2) unsigned NOT NULL, + `unit` smallint(2) unsigned NOT NULL, + `name` tinytext NOT NULL, + `wref` mediumint(3) unsigned NOT NULL, + `level` tinyint(1) unsigned NOT NULL, + `points` smallint(2) unsigned NOT NULL, + `experience` mediumint(3) NOT NULL, + `dead` tinyint(1) unsigned NOT NULL, + `health` float(12,9) unsigned NOT NULL, + `attack` tinyint(1) unsigned NOT NULL, + `defence` tinyint(1) unsigned NOT NULL, + `attackbonus` tinyint(1) unsigned NOT NULL, + `defencebonus` tinyint(1) unsigned NOT NULL, + `regeneration` tinyint(1) unsigned NOT NULL, + `autoregen` int(2) NOT NULL, + `trainingtime` mediumint(3) unsigned NOT NULL, + PRIMARY KEY (`heroid`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; + +-- +-- Dumping data for table `%prefix%hero` +-- + + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%illegal_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%illegal_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `user` int(10) unsigned NOT NULL, + `log` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%illegal_log` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%login_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%login_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(10) unsigned NOT NULL, + `ip` varchar(15) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%login_log` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%market` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%market` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `vref` int(11) unsigned NOT NULL, + `gtype` tinyint(1) unsigned NOT NULL, + `gamt` int(11) unsigned NOT NULL, + `wtype` tinyint(1) unsigned NOT NULL, + `wamt` int(11) unsigned NOT NULL, + `accept` tinyint(1) unsigned NOT NULL, + `maxtime` int(11) unsigned NOT NULL, + `alliance` int(11) unsigned NOT NULL, + `merchant` tinyint(2) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%market` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%market_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%market_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(10) unsigned NOT NULL, + `log` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%market_log` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%mdata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%mdata` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `target` int(10) unsigned NOT NULL, + `owner` int(10) unsigned NOT NULL, + `topic` varchar(45) NOT NULL, + `message` text NOT NULL, + `viewed` tinyint(1) unsigned NOT NULL, + `archived` tinyint(1) unsigned NOT NULL, + `send` tinyint(1) unsigned NOT NULL, + `time` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%mdata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%medal` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%medal` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `userid` int(10) unsigned NOT NULL, + `categorie` int(10) unsigned NOT NULL, + `plaats` int(10) unsigned NOT NULL, + `week` int(10) unsigned NOT NULL, + `points` varchar(15) NOT NULL, + `img` varchar(10) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%medal` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%movement` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%movement` ( + `moveid` int(10) unsigned NOT NULL AUTO_INCREMENT, + `sort_type` tinyint(4) unsigned NOT NULL DEFAULT '0', + `from` int(11) unsigned NOT NULL DEFAULT '0', + `to` int(11) unsigned NOT NULL DEFAULT '0', + `ref` int(11) unsigned NOT NULL DEFAULT '0', + `endtime` int(11) unsigned NOT NULL DEFAULT '0', + `proc` tinyint(1) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`moveid`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%movement` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%ndata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%ndata` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(10) unsigned NOT NULL, + `toWref` int(10) unsigned NOT NULL, + `ally` int(10) unsigned NOT NULL, + `topic` text NOT NULL, + `ntype` tinyint(1) unsigned NOT NULL, + `data` text NOT NULL, + `time` int(10) unsigned NOT NULL, + `viewed` tinyint(1) unsigned NOT NULL, + `archive` tinyint(1) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%ndata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%odata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%odata` ( + `wref` int(10) unsigned NOT NULL, + `type` tinyint(2) unsigned NOT NULL, + `conqured` int(10) unsigned NOT NULL, + `wood` int(10) unsigned NOT NULL, + `iron` int(10) unsigned NOT NULL, + `clay` int(10) unsigned NOT NULL, + `maxstore` int(10) unsigned NOT NULL, + `crop` int(10) unsigned NOT NULL, + `maxcrop` int(10) unsigned NOT NULL, + `lastupdated` int(10) unsigned NOT NULL, + `loyalty` int(10) NOT NULL DEFAULT '100', + `owner` int(10) unsigned NOT NULL DEFAULT '2', + `name` varchar(32) NOT NULL DEFAULT 'Unoccupied Oasis', + PRIMARY KEY (`wref`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `%prefix%odata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%online` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%online` ( + `name` varchar(32) NOT NULL, + `time` varchar(32) NOT NULL, + UNIQUE KEY `name` (`name`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `%prefix%online` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%research` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%research` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `vref` int(10) unsigned NOT NULL, + `tech` varchar(3) NOT NULL, + `timestamp` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%research` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%send` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%send` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wood` int(11) unsigned NOT NULL, + `clay` int(11) unsigned NOT NULL, + `iron` int(11) unsigned NOT NULL, + `crop` int(11) unsigned NOT NULL, + `merchant` tinyint(2) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%send` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%tdata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%tdata` ( + `vref` int(10) unsigned NOT NULL, + `t2` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t3` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t4` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t5` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t6` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t7` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t8` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t9` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t12` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t13` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t14` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t15` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t16` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t17` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t18` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t19` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t22` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t23` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t24` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t25` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t26` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t27` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t28` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t29` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t32` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t33` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t34` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t35` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t36` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t37` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t38` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t39` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t42` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t43` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t44` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t45` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t46` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t47` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t48` tinyint(1) unsigned NOT NULL DEFAULT '0', + `t49` tinyint(1) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`vref`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `%prefix%tdata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%tech_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%tech_log` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(10) unsigned NOT NULL, + `log` text NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%tech_log` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%training` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%training` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `vref` int(10) unsigned NOT NULL, + `unit` tinyint(2) unsigned NOT NULL, + `amt` int(10) unsigned NOT NULL, + `pop` int(10) unsigned NOT NULL, + `timestamp` int(10) unsigned NOT NULL, + `eachtime` int(10) unsigned NOT NULL, + `commence` int(10) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%training` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%units` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%units` ( + `vref` int(10) unsigned NOT NULL, + `u1` int(11) unsigned NOT NULL DEFAULT '0', + `u2` int(11) unsigned NOT NULL DEFAULT '0', + `u3` int(11) unsigned NOT NULL DEFAULT '0', + `u4` int(11) unsigned NOT NULL DEFAULT '0', + `u5` int(11) unsigned NOT NULL DEFAULT '0', + `u6` int(11) unsigned NOT NULL DEFAULT '0', + `u7` int(11) unsigned NOT NULL DEFAULT '0', + `u8` int(11) unsigned NOT NULL DEFAULT '0', + `u9` int(11) unsigned NOT NULL DEFAULT '0', + `u10` int(11) unsigned NOT NULL DEFAULT '0', + `u11` int(11) unsigned NOT NULL DEFAULT '0', + `u12` int(11) unsigned NOT NULL DEFAULT '0', + `u13` int(11) unsigned NOT NULL DEFAULT '0', + `u14` int(11) unsigned NOT NULL DEFAULT '0', + `u15` int(11) unsigned NOT NULL DEFAULT '0', + `u16` int(11) unsigned NOT NULL DEFAULT '0', + `u17` int(11) unsigned NOT NULL DEFAULT '0', + `u18` int(11) unsigned NOT NULL DEFAULT '0', + `u19` int(11) unsigned NOT NULL DEFAULT '0', + `u20` int(11) unsigned NOT NULL DEFAULT '0', + `u21` int(11) unsigned NOT NULL DEFAULT '0', + `u22` int(11) unsigned NOT NULL DEFAULT '0', + `u23` int(11) unsigned NOT NULL DEFAULT '0', + `u24` int(11) unsigned NOT NULL DEFAULT '0', + `u25` int(11) unsigned NOT NULL DEFAULT '0', + `u26` int(11) unsigned NOT NULL DEFAULT '0', + `u27` int(11) unsigned NOT NULL DEFAULT '0', + `u28` int(11) unsigned NOT NULL DEFAULT '0', + `u29` int(11) unsigned NOT NULL DEFAULT '0', + `u30` int(11) unsigned NOT NULL DEFAULT '0', + `u31` int(11) unsigned NOT NULL DEFAULT '0', + `u32` int(11) unsigned NOT NULL DEFAULT '0', + `u33` int(11) unsigned NOT NULL DEFAULT '0', + `u34` int(11) unsigned NOT NULL DEFAULT '0', + `u35` int(11) unsigned NOT NULL DEFAULT '0', + `u36` int(11) unsigned NOT NULL DEFAULT '0', + `u37` int(11) unsigned NOT NULL DEFAULT '0', + `u38` int(11) unsigned NOT NULL DEFAULT '0', + `u39` int(11) unsigned NOT NULL DEFAULT '0', + `u40` int(11) unsigned NOT NULL DEFAULT '0', + `u41` int(11) unsigned NOT NULL DEFAULT '0', + `u42` int(11) unsigned NOT NULL DEFAULT '0', + `u43` int(11) unsigned NOT NULL DEFAULT '0', + `u44` int(11) unsigned NOT NULL DEFAULT '0', + `u45` int(11) unsigned NOT NULL DEFAULT '0', + `u46` int(11) unsigned NOT NULL DEFAULT '0', + `u47` int(11) unsigned NOT NULL DEFAULT '0', + `u48` int(11) unsigned NOT NULL DEFAULT '0', + `u49` int(11) unsigned NOT NULL DEFAULT '0', + `u50` int(11) unsigned NOT NULL DEFAULT '0', + `hero` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`vref`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `%prefix%units` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%users` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%users` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `username` varchar(45) NOT NULL, + `password` varchar(45) NOT NULL, + `email` text NOT NULL, + `tribe` tinyint(1) unsigned NOT NULL, + `access` tinyint(1) unsigned NOT NULL DEFAULT '1', + `gold` int(9) unsigned NOT NULL DEFAULT '0', + `gender` tinyint(1) unsigned NOT NULL DEFAULT '0', + `birthday` date NOT NULL DEFAULT '0000-00-00', + `location` text NOT NULL, + `desc1` text NOT NULL, + `desc2` text NOT NULL, + `plus` int(10) unsigned NOT NULL DEFAULT '0', + `b1` int(10) unsigned NOT NULL DEFAULT '0', + `b2` int(10) unsigned NOT NULL DEFAULT '0', + `b3` int(10) unsigned NOT NULL DEFAULT '0', + `b4` int(10) unsigned NOT NULL DEFAULT '0', + `sit1` int(10) unsigned NOT NULL DEFAULT '0', + `sit2` int(10) unsigned NOT NULL DEFAULT '0', + `alliance` int(10) unsigned NOT NULL DEFAULT '0', + `sessid` varchar(45) NOT NULL, + `act` varchar(10) NOT NULL, + `timestamp` int(10) unsigned NOT NULL DEFAULT '0', + `ap` int(10) unsigned NOT NULL DEFAULT '0', + `apall` int(10) unsigned NOT NULL DEFAULT '0', + `dp` int(10) unsigned NOT NULL DEFAULT '0', + `dpall` int(10) unsigned NOT NULL DEFAULT '0', + `protect` int(10) unsigned NOT NULL, + `quest` tinyint(2) NOT NULL, + `gpack` varchar(255) NOT NULL DEFAULT 'gpack/travian_default/', + `cp` float(14,5) unsigned NOT NULL DEFAULT '1', + `lastupdate` int(11) unsigned NOT NULL, + `RR` int(255) NOT NULL DEFAULT '0', + `Rc` int(255) NOT NULL DEFAULT '0', + `ok` tinyint(1) unsigned NOT NULL DEFAULT '0', + `clp` bigint(255) NOT NULL DEFAULT '0', + `oldrank` bigint(255) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ; + +-- +-- Dumping data for table `%prefix%users` +-- + +INSERT INTO `%PREFIX%users` (`id`, `username`, `password`, `email`, `tribe`, `access`, `gold`, `gender`, `birthday`, `location`, `desc1`, `desc2`, `plus`, `b1`, `b2`, `b3`, `b4`, `sit1`, `sit2`, `alliance`, `sessid`, `act`, `timestamp`, `ap`, `apall`, `dp`, `dpall`, `protect`, `quest`, `gpack`, `cp`, `lastupdate`, `RR`, `Rc`, `ok`) VALUES +(5, 'Multihunter', '', 'multihunter@travianx.mail', 0, 9, 0, 0, '0000-00-00', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 'gpack/travian_default/', 1, 0, 0, 0, 0), +(1, 'Support', '', 'support@travianx.mail', 1, 8, 0, 0, '0000-00-00', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 'gpack/travian_default/', 1, 0, 0, 0, 0), +(2, 'Nature', '', 'support@travianx.mail', 4, 8, 0, 0, '0000-00-00', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 'gpack/travian_default/', 1, 0, 0, 0, 0), +(4, 'Taskmaster', '', 'support@travianx.mail', 1, 8, 0, 0, '0000-00-00', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0, 0, 0, 0, 0, 0, 0, 'gpack/travian_default/', 1, 0, 0, 0, 0); + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%vdata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%vdata` ( + `wref` int(10) unsigned NOT NULL, + `owner` int(10) unsigned NOT NULL, + `name` varchar(45) NOT NULL, + `capital` tinyint(1) unsigned NOT NULL, + `pop` int(10) unsigned NOT NULL, + `cp` int(10) unsigned NOT NULL, + `celebration` int(10) NOT NULL DEFAULT '0', + `type` int(10) NOT NULL DEFAULT '0', + `wood` float(12,2) NOT NULL, + `clay` float(12,2) NOT NULL, + `iron` float(12,2) NOT NULL, + `maxstore` int(10) unsigned NOT NULL, + `crop` float(12,2) NOT NULL, + `maxcrop` int(10) unsigned NOT NULL, + `lastupdate` int(11) unsigned NOT NULL, + `loyalty` float(9,6) unsigned NOT NULL DEFAULT '100', + `exp1` int(10) NOT NULL, + `exp2` int(10) NOT NULL, + `exp3` int(10) NOT NULL, + `created` int(11) NOT NULL, + PRIMARY KEY (`wref`), + KEY `wref` (`wref`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `%prefix%vdata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%wdata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%wdata` ( + `id` int(10) unsigned NOT NULL AUTO_INCREMENT, + `fieldtype` tinyint(2) unsigned NOT NULL, + `oasistype` tinyint(2) unsigned NOT NULL, + `x` int(11) NOT NULL, + `y` int(11) NOT NULL, + `occupied` tinyint(1) NOT NULL, + `image` varchar(3) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%wdata` +-- + +-- -------------------------------------------------------- +-- +-- Table structure for table `%prefix%password` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%password` ( + `uid` int(10) unsigned NOT NULL, + `npw` varchar(45) NOT NULL, + `cpw` varchar(45) NOT NULL, + `used` tinyint(1) NOT NULL DEFAULT '0', + `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`uid`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; \ No newline at end of file diff --git a/install/include/database.php b/install/include/database.php new file mode 100644 index 00000000..74830943 --- /dev/null +++ b/install/include/database.php @@ -0,0 +1,62 @@ +connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB) or die(mysqli_error()); + } + function query($query) { + return $this->connection->query($query); + } + +}; + +class MYSQL_DB { + + var $connection; + + function MYSQL_DB() { + $this->connection = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS) or die(mysql_error()); + mysql_select_db(SQL_DB, $this->connection) or die(mysql_error()); + } + + function mysql_exec_batch ($p_query, $p_transaction_safe = true) { + if ($p_transaction_safe) { + $p_query = 'START TRANSACTION;' . $p_query . '; COMMIT;'; + }; + $query_split = preg_split ("/[;]+/", $p_query); + foreach ($query_split as $command_line) { + $command_line = trim($command_line); + if ($command_line != '') { + $query_result = mysql_query($command_line); + if ($query_result == 0) { + break; + }; + }; + }; + return $query_result; +} + + function query($query) { + return mysql_query($query, $this->connection); + } +}; + +if(DB_TYPE) { + $database = new MYSQLi_DB; +} +else { + $database = new MYSQL_DB; +} +?> \ No newline at end of file diff --git a/install/include/multihunter.php b/install/include/multihunter.php new file mode 100644 index 00000000..ad0a914c --- /dev/null +++ b/install/include/multihunter.php @@ -0,0 +1,31 @@ +getWref(0, 0); + $uid = 5; + $status = $database->getVillageState($wid); + if($status == 0) { + $database->setFieldTaken($wid); + $database->addVillage($wid, $uid, 'Multihunter', '5'); + $database->addResourceFields($wid, $database->getVillageType($wid)); + $database->addUnits($wid); + $database->addTech($wid); + $database->addABTech($wid); + } + } + + + header("Location: ../index.php?s=5"); + +?> \ No newline at end of file diff --git a/install/include/oasis.php b/install/include/oasis.php new file mode 100644 index 00000000..df7aaeaf --- /dev/null +++ b/install/include/oasis.php @@ -0,0 +1,21 @@ +populateOasisdata(); + $database->populateOasis(); + $database->populateOasisUnitsHigh(); + + + + + header("Location: ../index.php?s=6"); + +?> \ No newline at end of file diff --git a/install/include/wdata.php b/install/include/wdata.php new file mode 100644 index 00000000..9e8dbab0 --- /dev/null +++ b/install/include/wdata.php @@ -0,0 +1,112 @@ += $rand){ + $typ='1'; + $otype='0'; + } else if("90" >= $rand){ + $typ='2'; + $otype='0'; + } else if("400" >= $rand){ + $typ='3'; + $otype='0'; + } else if("480" >= $rand){ + $typ='4'; + $otype='0'; + } else if("560" >= $rand){ + $typ='5'; + $otype='0'; + } else if("570" >= $rand){ + $typ='6'; + $otype='0'; + } else if("600" >= $rand){ + $typ='7'; + $otype='0'; + } else if("630" >= $rand){ + $typ='8'; + $otype='0'; + } else if("660" >= $rand){ + $typ='9'; + $otype='0'; + } else if("740" >= $rand){ + $typ='10'; + $otype='0'; + } else if("820" >= $rand){ + $typ='11'; + $otype='0'; + } else if("900" >= $rand){ + $typ='12'; + $otype='0'; + } else if("908" >= $rand){ + $typ='0'; + $otype='1'; + } else if("916" >= $rand){ + $typ='0'; + $otype='2'; + } else if("924" >= $rand){ + $typ='0'; + $otype='3'; + } else if("932" >= $rand){ + $typ='0'; + $otype='4'; + } else if("940" >= $rand){ + $typ='0'; + $otype='5'; + } else if("948" >= $rand){ + $typ='0'; + $otype='6'; + } else if("956" >= $rand){ + $typ='0'; + $otype='7'; + } else if("964" >= $rand){ + $typ='0'; + $otype='8'; + } else if("972" >= $rand){ + $typ='0'; + $otype='9'; + } else if("980" >= $rand){ + $typ='0'; + $otype='10'; + } else if("988" >= $rand){ + $typ='0'; + $otype='11'; + } else { + $typ='0'; + $otype='12'; + } + + //image pick + if($otype=='0'){ + $image="t".rand(0,9).""; + } else { + $image="o".$otype.""; + } + + //into database + $q = "INSERT into ".TB_PREFIX."wdata values (0,'".$typ."','".$otype."','".$x."','".$y."',0,'".$image."')"; + $database->query($q); + } +} + + header("Location: ../index.php?s=4"); + +?> \ No newline at end of file diff --git a/install/index.php b/install/index.php new file mode 100644 index 00000000..37306a89 --- /dev/null +++ b/install/index.php @@ -0,0 +1,113 @@ + + + + + + + TravianX Installation + + + + + + + + + + + + + + + +
    + + +
    + + + +
    +
    + +
    + + + + + +
    + + +
    + +
    + + \ No newline at end of file diff --git a/install/process.php b/install/process.php new file mode 100644 index 00000000..c61dbedd --- /dev/null +++ b/install/process.php @@ -0,0 +1,128 @@ +constForm(); + } else + if(isset($_POST['substruc'])) { + $this->createStruc(); + } else + if(isset($_POST['subwdata'])) { + $this->createWdata(); + } else + if(isset($_POST['subacc'])) { + $this->createAcc(); + } else { + header("Location: index.php"); + } + } + + function constForm() { + $myFile = "include/constant.php"; + $fh = fopen($myFile, 'w') or die("


    Can't open file: install\include\constant.php"); + $text = file_get_contents("data/constant_format.tpl"); + $text = preg_replace("'%SERVERNAME%'", $_POST['servername'], $text); + $text = preg_replace("'%LANG%'", $_POST['lang'], $text); + $text = preg_replace("'%SPEED%'", $_POST['speed'], $text); + $text = preg_replace("'%INCSPEED%'", $_POST['incspeed'], $text); + $text = preg_replace("'%TRADERCAP%'", $_POST['tradercap'], $text); + $text = preg_replace("'%STORAGE_MULTIPLIER%'", $_POST['storage_multiplier'], $text); + $text = preg_replace("'%UTRACK%'", $_POST['trackusers'], $text); + $text = preg_replace("'%UTOUT%'", $_POST['timeout'], $text); + $text = preg_replace("'%AUTOD%'", $_POST['autodel'], $text); + $text = preg_replace("'%AUTODT%'", $_POST['autodeltime'], $text); + $text = preg_replace("'%MAX%'", $_POST['wmax'], $text); + $text = preg_replace("'%GP%'", $_POST['gpack'], $text); + $text = preg_replace("'%SSERVER%'", $_POST['sserver'], $text); + $text = preg_replace("'%SUSER%'", $_POST['suser'], $text); + $text = preg_replace("'%SPASS%'", $_POST['spass'], $text); + $text = preg_replace("'%SDB%'", $_POST['sdb'], $text); + $text = preg_replace("'%PREFIX%'", $_POST['prefix'], $text); + $text = preg_replace("'%CONNECTT%'", $_POST['connectt'], $text); + $text = preg_replace("'%AEMAIL%'", $_POST['aemail'], $text); + $text = preg_replace("'%ANAME%'", $_POST['aname'], $text); + $text = preg_replace("'%SUBDOM%'", $_POST['subdom'], $text); + $text = preg_replace("'%LOGBUILD%'", $_POST['log_build'], $text); + $text = preg_replace("'%LOGTECH%'", $_POST['log_tech'], $text); + $text = preg_replace("'%LOGLOGIN%'", $_POST['log_login'], $text); + $text = preg_replace("'%LOGGOLDFIN%'", $_POST['log_gold_fin'], $text); + $text = preg_replace("'%LOGADMIN%'", $_POST['log_admin'], $text); + $text = preg_replace("'%LOGWAR%'", $_POST['log_war'], $text); + $text = preg_replace("'%LOGMARKET%'", $_POST['log_market'], $text); + $text = preg_replace("'%LOGILLEGAL%'", $_POST['log_illegal'], $text); + $text = preg_replace("'%MINUSERLENGTH%'", $_POST['userlength'], $text); + $text = preg_replace("'%MINPASSLENGTH%'", $_POST['passlength'], $text); + $text = preg_replace("'%SPECIALCHARS%'", $_POST['specialchars'], $text); + $text = preg_replace("'%ACTIVATE%'", $_POST['activate'], $text); + $text = preg_replace("'%ARANK%'", $_POST['admin_rank'], $text); + $text = preg_replace("'%QUEST%'", $_POST['quest'], $text); + $text = preg_replace("'%BEGINNER%'", $_POST['beginner'], $text); + $text = preg_replace("'%STARTTIME%'", time(), $text); + $text = preg_replace("'%DOMAIN%'", $_POST['domain'], $text); + $text = preg_replace("'%HOMEPAGE%'", $_POST['homepage'], $text); + $text = preg_replace("'%LIMIT_MAILBOX%'", $_POST['limit_mailbox'], $text); + $text = preg_replace("'%MAX_MAILS%'", $_POST['max_mails'], $text); + $text = preg_replace("'%DEMOLISH%'", $_POST['demolish'], $text); + $text = preg_replace("'%BOX1%'", $_POST['box1'], $text); + $text = preg_replace("'%BOX2%'", $_POST['box2'], $text); + $text = preg_replace("'%BOX3%'", $_POST['box3'], $text); + $text = preg_replace("'%VILLAGE_EXPAND%'", $_POST['village_expand'], $text); + $text = preg_replace("'%ERROR%'", $_POST['error'], $text); + $text = preg_replace("'%GP_LOCATE%'", $_POST['gp_locate'], $text); + $text = preg_replace("'%PLUS_TIME%'", $_POST['plus_time'], $text); + $text = preg_replace("'%PLUS_PRODUCTION%'", $_POST['plus_production'], $text); + $text = preg_replace("'%GREAT_WKS%'", $_POST['great_wks'], $text); + $text = preg_replace("'%TS_THRESHOLD%'", $_POST['ts_threshold'], $text); + $text = preg_replace("'%WW%'", $_POST['ww'], $text); + + fwrite($fh, $text); + + if(file_exists("include/constant.php")) { + header("Location: index.php?s=2"); + } else { + header("Location: index.php?s=1&c=1"); + } + + fclose($fh); + } + + function createStruc() { + global $database; + $str = file_get_contents("data/sql.sql"); + $str = preg_replace("'%PREFIX%'", TB_PREFIX, $str); + if(DB_TYPE) { + $result = $database->connection->multi_query($str); + } else { + $result = $database->mysql_exec_batch($str); + } + if($result) { + header("Location: index.php?s=3"); + } else { + header("Location: index.php?s=2&c=1"); + } + } + + function createWdata() { + header("Location: include/wdata.php"); + } + + } + ; + + $process = new Process; + +?> diff --git a/install/templates/config.tpl b/install/templates/config.tpl new file mode 100644 index 00000000..0248c8e3 --- /dev/null +++ b/install/templates/config.tpl @@ -0,0 +1,246 @@ +Error creating constant.php check cmod.

    "; +} +?> +
    + +

    + SERVER RELATED + + + + + + + + + + + + + + + +
    Server name:
    Server speed:
    Troop speed:
    Trader capacity (1 = 1x...):
    World size: + +
    Homepage:
    Language: + +
    Beginners protection length: + +
    Plus account length: + +
    +25% production length: + +
    Storage Multipler:
    Tourn Threshold:
    Great Workshop: + +
    ww: + +
    +

    + +

    + ADMIN ACCOUNT + + + + + +
    Admin name:
    Admin email:
    Show admin in stats: + +
    +

    + +

    + SQL RELATED + + + + + + + +
    Hostname:
    Username:
    Password:
    DB name:
    Prefix:
    Type:
    +

    + + + + + + + +

    + NEWSBOX OPTIONS + + + + +
    Newsbox 1:
    Newsbox 2:
    Newsbox 3:
    +

    + +

    + LOG RELATED + + + + + + + + + + + +
    Log Building:
    Log Tech:
    Log Login:
    Log Gold:
    Log Admin:
    Log War:
    Log Market:
    Log Illegal:
    Log :
    +

    + +

    + EXTRA OPTIONS + + + + + + + + + +
    Quest:
    Activate:
    Limit Mailbox:
    Max mails:
    Demolish - lvl required:
    Village Expand:
    Error Reporting:
    +

    + + +
    + +
    +
    + +
    diff --git a/install/templates/dataform.tpl b/install/templates/dataform.tpl new file mode 100644 index 00000000..ffc2788a --- /dev/null +++ b/install/templates/dataform.tpl @@ -0,0 +1,25 @@ +Error importing database. Check configuration.

    "; +} +?> +
    + + +

    + Create SQL Structure + + + +
    Warning: This can take some time. Do not click, just wait till the next page has been loaded!
    +

    +
    +
    \ No newline at end of file diff --git a/install/templates/end.tpl b/install/templates/end.tpl new file mode 100644 index 00000000..18e8ac66 --- /dev/null +++ b/install/templates/end.tpl @@ -0,0 +1,20 @@ + +

    +Thanks for installing TravianX. +

    Please remove/rename the installation folder.

    +All the files are placed. The database is created, so you can now start playing on your own Travian. +

    + + +

    +

    > My TravianX homepage <
    +

    +
    \ No newline at end of file diff --git a/install/templates/field.tpl b/install/templates/field.tpl new file mode 100644 index 00000000..60374858 --- /dev/null +++ b/install/templates/field.tpl @@ -0,0 +1,25 @@ +Error creating wdata. Check configuration or file.

    "; +} +?> +
    + + +

    + Create World Data + + + +
    Warning: This can take some time. Do not click, just wait till the next page has been loaded!
    +

    +
    +
    \ No newline at end of file diff --git a/install/templates/greet.tpl b/install/templates/greet.tpl new file mode 100644 index 00000000..c5f85c4a --- /dev/null +++ b/install/templates/greet.tpl @@ -0,0 +1,33 @@ + +
    + +

      Disclaimer

    + +
      +
    • Along with the installation/usage of this game, you shall be fully responsible for any legal results that may raised initiated by the owners of any unlicensed content you permit your copy of this game to publish.
    • + +
    • Neither the team that created this script nor the team that customised it to create this distribution/release shall be responsible for any damage done to your computer/server system.
    • + +
    • All code was confirmed to be running correctly by the creation team without any visible security risk they were aware of at the time the released it. Similarly for the customisation team who customised it to create this distribution/release.
    • + +
    • Users are asked to review the code on their own accord and behalf.
    • + +
    • Any customization to the source code are the property of each customisation's author, it is up to each author's discretion whether to share it by including it in free open source distributions such as this one.
    • + +
    • You have no rights to edit copyright notices or/and claim this script as your own.
    • + +
    • Last but not least, Enjoy.
    • +
    + +
    + TravianX Team +
    +
    + +
    +
    + +
    +
    + +
    diff --git a/install/templates/menu.tpl b/install/templates/menu.tpl new file mode 100644 index 00000000..8925d88c --- /dev/null +++ b/install/templates/menu.tpl @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/install/templates/multihunter.tpl b/install/templates/multihunter.tpl new file mode 100644 index 00000000..d5408212 --- /dev/null +++ b/install/templates/multihunter.tpl @@ -0,0 +1,29 @@ + + + + +
    + +

    + Create Multihunter account + + + + +
    Name:
    Password:
    Note: Rember this password! You need it for the ACP
    +

    + +
    +
    +
    + +
    \ No newline at end of file diff --git a/install/templates/oasis.tpl b/install/templates/oasis.tpl new file mode 100644 index 00000000..eeb1dacb --- /dev/null +++ b/install/templates/oasis.tpl @@ -0,0 +1,18 @@ + +
    +

    + Populate Oasis + + + +
    Warning: This can take some time. Do not click, just wait till the next page has been loaded!
    +

    +
    diff --git a/install/templates/script.tpl b/install/templates/script.tpl new file mode 100644 index 00000000..cfe34d61 --- /dev/null +++ b/install/templates/script.tpl @@ -0,0 +1,145 @@ + + +bar_id = uniqid('progressbar'); + $this->label = $label; + + $this->max_ticks = $max_ticks; + $this->ticks = 0; + } + + public function tick() { + $this->ticks++; + $this->draw_progress(); + } + + public function draw() { + $this->draw_bar(); + $this->draw_progress(); + } + + static public function draw_css() { + echo ' + + '; + } + + protected function draw_bar() { + echo ' +
    + +
    + +
    +
    + '; + echo ' + + '; + + $this->flush(); + } + + protected function draw_progress() { + + $width = round($this->ticks / $this->max_ticks * 100, 2); + $label = sprintf($this->label, $this->ticks, $this->max_ticks); + + echo ' + + + '; + $this->flush(); + } + + protected function flush() { + while(ob_get_level() > 0) { + ob_end_flush(); + } + + flush(); + } +} +?> \ No newline at end of file diff --git a/karte.php b/karte.php new file mode 100644 index 00000000..2d47fa89 --- /dev/null +++ b/karte.php @@ -0,0 +1,108 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +else { + $building->procBuild($_GET); +} +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    +getMapCheck($_GET['d']) == $_GET['c']) { + include("Templates/Map/vilview.tpl"); + } + else { + header("Location: dorf1.php"); + } +} +else { + include("Templates/Map/mapview.tpl"); +} +?> +
    + +
    +
    +
    + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    +
    + + \ No newline at end of file diff --git a/karte2.php b/karte2.php new file mode 100644 index 00000000..3797090c --- /dev/null +++ b/karte2.php @@ -0,0 +1,54 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +else { + $building->procBuild($_GET); +} +if($session->plus){ +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + + + +
    +
    +
    + Calculated in pageLoadTimeEnd()-$start)*1000);?> ms
    + Server time: +
    +
    +
    +
    + + + \ No newline at end of file diff --git a/login.php b/login.php new file mode 100644 index 00000000..dc8228a1 --- /dev/null +++ b/login.php @@ -0,0 +1,125 @@ + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    + + + +
    + +
    + +
    +
    + + +
    + + +
    + + diff --git a/logout.php b/logout.php new file mode 100644 index 00000000..93b18825 --- /dev/null +++ b/logout.php @@ -0,0 +1,91 @@ +pageLoadTimeStart(); +?> + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + + +
    + +
    +

    Logout successful.

    Thank you for your visit.

    + +

    If other people use this computer too, you should delete your cookies for your own safety:
    » delete cookies

    +
    + +
    + +
    +
    +
    + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    +
    + + \ No newline at end of file diff --git a/manual.php b/manual.php new file mode 100644 index 00000000..807847ee --- /dev/null +++ b/manual.php @@ -0,0 +1,69 @@ + + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + + + diff --git a/massmessage.php b/massmessage.php new file mode 100644 index 00000000..5adca53f --- /dev/null +++ b/massmessage.php @@ -0,0 +1,327 @@ +uid)) != '1') die("Hacking attemp!"); + +if (@$_POST['submit'] == "Send") +{ + unset ($_SESSION['m_message']); unset ($_SESSION['m_subject']); unset ($_SESSION['m_color']); + if (!$_POST['message']){die("You have to enter message");} + if (!$_POST['subject']){die("You have to enter subject");} + if (!$_POST['color']){$_SESSION['m_color'] = "black";} + $_SESSION['m_subject'] = $_POST['subject']; + if (!$_SESSION['m_color']){$_SESSION['m_color'] = $_POST['color'];} + $_SESSION['m_message'] = $_POST['message']; + $NextStep = true; +} + + +if (@isset($_POST['confirm'])) +{ + if ($_POST['confirm'] == 'Yes') $NextStep2 = true; + if ($_POST['confirm'] == 'No' ) $Interupt = true; +} + +$max_per_pass = 1000; + +if (isset($_GET['send']) && isset($_GET['from'])) +{ + $_SESSION['m_message'] = preg_replace("/\[img\]([a-z0-9\_\.\:\/\-]*)\[\/img\]/i","Corrupted image", $_SESSION['m_message']); + $_SESSION['m_message'] = preg_replace("/\[url\]([a-z0-9\_\.\:\/\-]*)\[\/url\]/i", "$1", $_SESSION['m_message']); + $_SESSION['m_message'] = preg_replace("/\[url\=([a-z0-9\_\.\:\/\-]*)\]([a-z0-9\_\.\:\/\-]*)\[\/url\]/i", "$2", $_SESSION['m_message']); + $_SESSION['m_message'] = preg_replace("/\*u([0-9]*)(left|right)\*/i", "unit$1", $_SESSION['m_message']); + + $users_count = mysql_fetch_assoc(mysql_query("SELECT count(*) as count FROM ".TB_PREFIX."users WHERE id != 0")); + $users_count = $users_count['count']; + if ($_GET['from'] + $max_per_pass <= $users_count) $plus = $max_per_pass; else $plus = $users_count - $_GET['from']; + $sql = "INSERT INTO ".TB_PREFIX."mdata (`target`, `owner`, `topic`, `message`, `viewed`, `archived`, `send`, `time`) VALUES "; + for($i = $_GET['from']; $i < ($_GET['from'] + $plus) ; $i++) { + if ($_SESSION['m_color']) + { + $sql .= "($i, 0, '{$_SESSION['m_subject']}', \"{$_SESSION['m_message']}\", 0, 0, 0, ".time()."),"; + } + else + { + $sql .= "($i, 0, '{$_SESSION['m_subject']}', \"{$_SESSION['m_message']}\", 0, 0, 0, ".time()."),"; + } + } + if ($_SESSION['m_color']) + { + $sql .= "($i, 0, '{$_SESSION['m_subject']}', \"{$_SESSION['m_message']}\", 0, 0, 0, ".time().")"; + } + else + { + $sql .= "($i, 0, '{$_SESSION['m_subject']}', \"{$_SESSION['m_message']}\", 0, 0, 0, ".time()."),"; + } + mysql_query($sql); + if (($users_count - $_GET['from']) > $max_per_pass) echo header("Location: massmessage.php?send=true&from=",$_GET['from'] + $max_per_pass); else $done = true; +} + +?> + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + + + +
    +
    + +
    +
    + + +
    + + +
    + + + diff --git a/medals.php b/medals.php new file mode 100644 index 00000000..9d4792f8 --- /dev/null +++ b/medals.php @@ -0,0 +1,558 @@ +uid)) != '1') die("Hacking attemp!"); + + //bepaal welke week we zitten + $q = "SELECT * FROM ".TB_PREFIX."medal order by week DESC LIMIT 0, 1"; + $result = mysql_query($q); + if(mysql_num_rows($result)) { + $row=mysql_fetch_assoc($result); + $week=($row['week']+1); + } else { + $week='1'; + } + + //Do same for ally week + $q = "SELECT * FROM ".TB_PREFIX."allimedal order by week DESC LIMIT 0, 1"; + $result = mysql_query($q); + if(mysql_num_rows($result)) { + $row=mysql_fetch_assoc($result); + $allyweek=($row['week']+1); + } else { + $allyweek='1'; + } + + //we mogen de lintjes weggeven + if(isset($_GET['giveout'])){ + + + //Aanvallers v/d Week + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY ap DESC Limit 10"); + $i=0; while($row = mysql_fetch_array($result)){ + $i++; $img="t2_".($i).""; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '1', '".($i)."', '".$week."', '".$row['ap']."', '".$img."')"; + $resul=mysql_query($quer); + } + + //Verdediger v/d Week + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY dp DESC Limit 10"); + $i=0; while($row = mysql_fetch_array($result)){ + $i++; $img="t3_".($i).""; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '2', '".($i)."', '".$week."', '".$row['dp']."', '".$img."')"; + $resul=mysql_query($quer); + } + + //Rank climbers of the week + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY clp DESC Limit 10"); + $i=0; while($row = mysql_fetch_array($result)){ + $i++; $img="t1_".($i).""; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '10', '".($i)."', '".$week."', '".$row['clp']."', '".$img."')"; + $resul=mysql_query($quer); + } + + //Overvallers v/d Week + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY RR DESC Limit 10"); + $i=0; while($row = mysql_fetch_array($result)){ + $i++; $img="t4_".($i).""; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '4', '".($i)."', '".$week."', '".$row['RR']."', '".$img."')"; + $resul=mysql_query($quer); + } + + //deel de bonus voor aanval+defence top 10 uit + //Pak de top10 aanvallers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY ap DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + //Pak de top10 verdedigers + $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY dp DESC Limit 10"); + while($row2 = mysql_fetch_array($result2)){ + if($row['id']==$row2['id']){ + + $query3="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 5"; + $result3=mysql_query($query3); + $row3=mysql_fetch_row($result3); + + //kijk welke kleur het lintje moet hebben + if($row3[0]<='2'){ + $img="t22".$row3[0]."_1"; + switch ($row3[0]) { + case "0": + $tekst=""; + break; + case "1": + $tekst="twice "; + break; + case "2": + $tekst="three times "; + break; + } + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '5', '0', '".$week."', '".$tekst."', '".$img."')"; + $resul=mysql_query($quer); + } + } + } + } + + //je staat voor 3e / 5e / 10e keer in de top 3 aanvallers + //Pak de top10 aanvallers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY ap DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 1 AND plaats<=3"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t120_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '6', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t121_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '6', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t122_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '6', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + + } + //je staat voor 3e / 5e / 10e keer in de top 10 aanvallers + //Pak de top10 aanvallers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY ap DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 1 AND plaats<=10"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t130_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '12', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t131_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '12', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t132_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '12', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + + } + //je staat voor 3e / 5e / 10e keer in de top 3 verdedigers + //Pak de top10 verdedigers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY dp DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 2 AND plaats<=3"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t140_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '7', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t141_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '7', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t142_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '7', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + + } + //je staat voor 3e / 5e / 10e keer in de top 3 verdedigers + //Pak de top10 verdedigers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY dp DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 2 AND plaats<=10"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t150_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '13', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t151_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '13', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t152_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '13', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + + } + + //je staat voor 3e / 5e / 10e keer in de top 3 klimmers + //Pak de top10 klimmers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY Rc DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 3 AND plaats<=3"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t100_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '8', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t101_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '8', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t102_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '8', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + }//je staat voor 3e / 5e / 10e keer in de top 3 klimmers + //Pak de top10 klimmers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY Rc DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 3 AND plaats<=10"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t110_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '14', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t111_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '14', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t112_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '14', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + } + + //je staat voor 3e / 5e / 10e keer in de top 3 klimmers + //Pak de top3 rank climbers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY clp DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 10 AND plaats<=3"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t200_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '11', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t201_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '11', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t202_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '11', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + } + //je staat voor 3e / 5e / 10e keer in de top 10klimmers + //Pak de top3 rank climbers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY clp DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 10 AND plaats<=10"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t210_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '16', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t211_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '16', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t212_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '16', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + } + + //je staat voor 3e / 5e / 10e keer in de top 10 overvallers + //Pak de top10 overvallers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY RR DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 4 AND plaats<=3"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t160_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '9', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t161_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '9', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t162_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '9', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + } //je staat voor 3e / 5e / 10e keer in de top 10 overvallers + //Pak de top10 overvallers + $result = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY RR DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT count(*) FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 4 AND plaats<=10"; + $result1=mysql_query($query1); + $row1=mysql_fetch_row($result1); + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1[0]=='3'){ + $img="t170_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '15', '0', '".$week."', 'Three', '".$img."')"; + $resul=mysql_query($quer); + } + //4x in gestaan, dit is 5e dus lintje (zilver) + if($row1[0]=='5'){ + $img="t171_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '15', '0', '".$week."', 'Five', '".$img."')"; + $resul=mysql_query($quer); + } + //9x in gestaan, dit is 10e dus lintje (goud) + if($row1[0]=='10'){ + $img="t172_1"; + $quer="insert into ".TB_PREFIX."medal(userid, categorie, plaats, week, points, img) values('".$row['id']."', '15', '0', '".$week."', 'Ten', '".$img."')"; + $resul=mysql_query($quer); + } + } + + //Zet alle waardens weer op 0 + $query="SELECT * FROM ".TB_PREFIX."users WHERE id > 3 ORDER BY id+0 DESC"; + $result=mysql_query($query); + for ($i=0; $row=mysql_fetch_row($result); $i++){ + mysql_query("UPDATE ".TB_PREFIX."users SET ap=0, dp=0,Rc=0,clp=0, RR=0 WHERE id = ".$row[0].""); + } + + //Start alliance Medals wooot + + //Aanvallers v/d Week + $result = mysql_query("SELECT * FROM ".TB_PREFIX."alidata ORDER BY ap DESC Limit 10"); + $i=0; while($row = mysql_fetch_array($result)){ + $i++; $img="a2_".($i).""; + $quer="insert into ".TB_PREFIX."allimedal(allyid, categorie, plaats, week, points, img) values('".$row['id']."', '1', '".($i)."', '".$allyweek."', '".$row['ap']."', '".$img."')"; + $resul=mysql_query($quer); + } + + //Verdediger v/d Week + $result = mysql_query("SELECT * FROM ".TB_PREFIX."alidata ORDER BY dp DESC Limit 10"); + $i=0; while($row = mysql_fetch_array($result)){ + $i++; $img="a3_".($i).""; + $quer="insert into ".TB_PREFIX."allimedal(allyid, categorie, plaats, week, points, img) values('".$row['id']."', '2', '".($i)."', '".$allyweek."', '".$row['dp']."', '".$img."')"; + $resul=mysql_query($quer); + } + + //Overvallers v/d Week + $result = mysql_query("SELECT * FROM ".TB_PREFIX."alidata ORDER BY RR DESC Limit 10"); + $i=0; while($row = mysql_fetch_array($result)){ + $i++; $img="a4_".($i).""; + $quer="insert into ".TB_PREFIX."allimedal(allyid, categorie, plaats, week, points, img) values('".$row['id']."', '4', '".($i)."', '".$allyweek."', '".$row['RR']."', '".$img."')"; + $resul=mysql_query($quer); + } + + //Rank climbers of the week + $result = mysql_query("SELECT * FROM ".TB_PREFIX."alidata ORDER BY clp DESC Limit 10"); + $i=0; while($row = mysql_fetch_array($result)){ + $i++; $img="a1_".($i).""; + $quer="insert into ".TB_PREFIX."allimedal(allyid, categorie, plaats, week, points, img) values('".$row['id']."', '3', '".($i)."', '".$allyweek."', '".$row['clp']."', '".$img."')"; + $resul=mysql_query($quer); + } + + + $query="SELECT * FROM ".TB_PREFIX."alidata ORDER BY id+0 DESC"; + $result=mysql_query($query); + for ($i=0; $row=mysql_fetch_row($result); $i++){ + mysql_query("UPDATE ".TB_PREFIX."alidata SET ap=0, dp=0, RR=0, clp=0 WHERE id = ".$row[0].""); + } + } + +?> + + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + +
    + +
    +
    + +
    + + + +
    +
    + +
    +
    + + +
    + + +
    + + + diff --git a/mt-core.js b/mt-core.js new file mode 100644 index 00000000..02324b1a --- /dev/null +++ b/mt-core.js @@ -0,0 +1,501 @@ +//MooTools, , My Object Oriented (JavaScript) Tools. Copyright (c) 2006-2009 Valerio Proietti, , MIT Style License. + +var MooTools={version:"1.2.4",build:"0d9113241a90b9cd5643b926795852a2026710d4"};var Native=function(k){k=k||{};var a=k.name;var i=k.legacy;var b=k.protect; +var c=k.implement;var h=k.generics;var f=k.initialize;var g=k.afterImplement||function(){};var d=f||i;h=h!==false;d.constructor=Native;d.$family={name:"native"}; +if(i&&f){d.prototype=i.prototype;}d.prototype.constructor=d;if(a){var e=a.toLowerCase();d.prototype.$family={name:e};Native.typize(d,e);}var j=function(n,l,o,m){if(!b||m||!n.prototype[l]){n.prototype[l]=o; +}if(h){Native.genericize(n,l,b);}g.call(n,l,o);return n;};d.alias=function(n,l,p){if(typeof n=="string"){var o=this.prototype[n];if((n=o)){return j(this,l,n,p); +}}for(var m in n){this.alias(m,n[m],l);}return this;};d.implement=function(m,l,o){if(typeof m=="string"){return j(this,m,l,o);}for(var n in m){j(this,n,m[n],l); +}return this;};if(c){d.implement(c);}return d;};Native.genericize=function(b,c,a){if((!a||!b[c])&&typeof b.prototype[c]=="function"){b[c]=function(){var d=Array.prototype.slice.call(arguments); +return b.prototype[c].apply(d.shift(),d);};}};Native.implement=function(d,c){for(var b=0,a=d.length;b-1:this.indexOf(a)>-1;},trim:function(){return this.replace(/^\s+|\s+$/g,"");},clean:function(){return this.replace(/\s+/g," ").trim(); +},camelCase:function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/[A-Z]/g,function(a){return("-"+a.charAt(0).toLowerCase()); +});},capitalize:function(){return this.replace(/\b[a-z]/g,function(a){return a.toUpperCase();});},escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1"); +},toInt:function(a){return parseInt(this,a||10);},toFloat:function(){return parseFloat(this);},hexToRgb:function(b){var a=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/); +return(a)?a.slice(1).hexToRgb(b):null;},rgbToHex:function(b){var a=this.match(/\d{1,3}/g);return(a)?a.rgbToHex(b):null;},stripScripts:function(b){var a=""; +var c=this.replace(/]*>([\s\S]*?)<\/script>/gi,function(){a+=arguments[1]+"\n";return"";});if(b===true){$exec(a);}else{if($type(b)=="function"){b(a,c); +}}return c;},substitute:function(a,b){return this.replace(b||(/\\?\{([^{}]+)\}/g),function(d,c){if(d.charAt(0)=="\\"){return d.slice(1);}return(a[c]!=undefined)?a[c]:""; +});}});Hash.implement({has:Object.prototype.hasOwnProperty,keyOf:function(b){for(var a in this){if(this.hasOwnProperty(a)&&this[a]===b){return a;}}return null; +},hasValue:function(a){return(Hash.keyOf(this,a)!==null);},extend:function(a){Hash.each(a||{},function(c,b){Hash.set(this,b,c);},this);return this;},combine:function(a){Hash.each(a||{},function(c,b){Hash.include(this,b,c); +},this);return this;},erase:function(a){if(this.hasOwnProperty(a)){delete this[a];}return this;},get:function(a){return(this.hasOwnProperty(a))?this[a]:null; +},set:function(a,b){if(!this[a]||this.hasOwnProperty(a)){this[a]=b;}return this;},empty:function(){Hash.each(this,function(b,a){delete this[a];},this); +return this;},include:function(a,b){if(this[a]==undefined){this[a]=b;}return this;},map:function(b,c){var a=new Hash;Hash.each(this,function(e,d){a.set(d,b.call(c,e,d,this)); +},this);return a;},filter:function(b,c){var a=new Hash;Hash.each(this,function(e,d){if(b.call(c,e,d,this)){a.set(d,e);}},this);return a;},every:function(b,c){for(var a in this){if(this.hasOwnProperty(a)&&!b.call(c,this[a],a)){return false; +}}return true;},some:function(b,c){for(var a in this){if(this.hasOwnProperty(a)&&b.call(c,this[a],a)){return true;}}return false;},getKeys:function(){var a=[]; +Hash.each(this,function(c,b){a.push(b);});return a;},getValues:function(){var a=[];Hash.each(this,function(b){a.push(b);});return a;},toQueryString:function(a){var b=[]; +Hash.each(this,function(f,e){if(a){e=a+"["+e+"]";}var d;switch($type(f)){case"object":d=Hash.toQueryString(f,e);break;case"array":var c={};f.each(function(h,g){c[g]=h; +});d=Hash.toQueryString(c,e);break;default:d=e+"="+encodeURIComponent(f);}if(f!=undefined){b.push(d);}});return b.join("&");}});Hash.alias({keyOf:"indexOf",hasValue:"contains"}); +var Event=new Native({name:"Event",initialize:function(a,f){f=f||window;var k=f.document;a=a||f.event;if(a.$extended){return a;}this.$extended=true;var j=a.type; +var g=a.target||a.srcElement;while(g&&g.nodeType==3){g=g.parentNode;}if(j.test(/key/)){var b=a.which||a.keyCode;var m=Event.Keys.keyOf(b);if(j=="keydown"){var d=b-111; +if(d>0&&d<13){m="f"+d;}}m=m||String.fromCharCode(b).toLowerCase();}else{if(j.match(/(click|mouse|menu)/i)){k=(!k.compatMode||k.compatMode=="CSS1Compat")?k.html:k.body; +var i={x:a.pageX||a.clientX+k.scrollLeft,y:a.pageY||a.clientY+k.scrollTop};var c={x:(a.pageX)?a.pageX-f.pageXOffset:a.clientX,y:(a.pageY)?a.pageY-f.pageYOffset:a.clientY}; +if(j.match(/DOMMouseScroll|mousewheel/)){var h=(a.wheelDelta)?a.wheelDelta/120:-(a.detail||0)/3;}var e=(a.which==3)||(a.button==2);var l=null;if(j.match(/over|out/)){switch(j){case"mouseover":l=a.relatedTarget||a.fromElement; +break;case"mouseout":l=a.relatedTarget||a.toElement;}if(!(function(){while(l&&l.nodeType==3){l=l.parentNode;}return true;}).create({attempt:Browser.Engine.gecko})()){l=false; +}}}}return $extend(this,{event:a,type:j,page:i,client:c,rightClick:e,wheel:h,relatedTarget:l,target:g,code:b,key:m,shift:a.shiftKey,control:a.ctrlKey,alt:a.altKey,meta:a.metaKey}); +}});Event.Keys=new Hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});Event.implement({stop:function(){return this.stopPropagation().preventDefault(); +},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation();}else{this.event.cancelBubble=true;}return this;},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault(); +}else{this.event.returnValue=false;}return this;}});function Class(b){if(b instanceof Function){b={initialize:b};}var a=function(){Object.reset(this);if(a._prototyping){return this; +}this._current=$empty;var c=(this.initialize)?this.initialize.apply(this,arguments):this;delete this._current;delete this.caller;return c;}.extend(this); +a.implement(b);a.constructor=Class;a.prototype.constructor=a;return a;}Function.prototype.protect=function(){this._protected=true;return this;};Object.reset=function(a,c){if(c==null){for(var e in a){Object.reset(a,e); +}return a;}delete a[c];switch($type(a[c])){case"object":var d=function(){};d.prototype=a[c];var b=new d;a[c]=Object.reset(b);break;case"array":a[c]=$unlink(a[c]); +break;}return a;};new Native({name:"Class",initialize:Class}).extend({instantiate:function(b){b._prototyping=true;var a=new b;delete b._prototyping;return a; +},wrap:function(a,b,c){if(c._origin){c=c._origin;}return function(){if(c._protected&&this._current==null){throw new Error('The method "'+b+'" cannot be called.'); +}var e=this.caller,f=this._current;this.caller=f;this._current=arguments.callee;var d=c.apply(this,arguments);this._current=f;this.caller=e;return d;}.extend({_owner:a,_origin:c,_name:b}); +}});Class.implement({implement:function(a,d){if($type(a)=="object"){for(var e in a){this.implement(e,a[e]);}return this;}var f=Class.Mutators[a];if(f){d=f.call(this,d); +if(d==null){return this;}}var c=this.prototype;switch($type(d)){case"function":if(d._hidden){return this;}c[a]=Class.wrap(this,a,d);break;case"object":var b=c[a]; +if($type(b)=="object"){$mixin(b,d);}else{c[a]=$unlink(d);}break;case"array":c[a]=$unlink(d);break;default:c[a]=d;}return this;}});Class.Mutators={Extends:function(a){this.parent=a; +this.prototype=Class.instantiate(a);this.implement("parent",function(){var b=this.caller._name,c=this.caller._owner.parent.prototype[b];if(!c){throw new Error('The method "'+b+'" has no parent.'); +}return c.apply(this,arguments);}.protect());},Implements:function(a){$splat(a).each(function(b){if(b instanceof Function){b=Class.instantiate(b);}this.implement(b); +},this);}};var Chain=new Class({$chain:[],chain:function(){this.$chain.extend(Array.flatten(arguments));return this;},callChain:function(){return(this.$chain.length)?this.$chain.shift().apply(this,arguments):false; +},clearChain:function(){this.$chain.empty();return this;}});var Events=new Class({$events:{},addEvent:function(c,b,a){c=Events.removeOn(c);if(b!=$empty){this.$events[c]=this.$events[c]||[]; +this.$events[c].include(b);if(a){b.internal=true;}}return this;},addEvents:function(a){for(var b in a){this.addEvent(b,a[b]);}return this;},fireEvent:function(c,b,a){c=Events.removeOn(c); +if(!this.$events||!this.$events[c]){return this;}this.$events[c].each(function(d){d.create({bind:this,delay:a,"arguments":b})();},this);return this;},removeEvent:function(b,a){b=Events.removeOn(b); +if(!this.$events[b]){return this;}if(!a.internal){this.$events[b].erase(a);}return this;},removeEvents:function(c){var d;if($type(c)=="object"){for(d in c){this.removeEvent(d,c[d]); +}return this;}if(c){c=Events.removeOn(c);}for(d in this.$events){if(c&&c!=d){continue;}var b=this.$events[d];for(var a=b.length;a--;a){this.removeEvent(d,b[a]); +}}return this;}});Events.removeOn=function(a){return a.replace(/^on([A-Z])/,function(b,c){return c.toLowerCase();});};var Options=new Class({setOptions:function(){this.options=$merge.run([this.options].extend(arguments)); +if(!this.addEvent){return this;}for(var a in this.options){if($type(this.options[a])!="function"||!(/^on[A-Z]/).test(a)){continue;}this.addEvent(a,this.options[a]); +delete this.options[a];}return this;}});var Element=new Native({name:"Element",legacy:window.Element,initialize:function(a,b){var c=Element.Constructors.get(a); +if(c){return c(b);}if(typeof a=="string"){return document.newElement(a,b);}return document.id(a).set(b);},afterImplement:function(a,b){Element.Prototype[a]=b; +if(Array[a]){return;}Elements.implement(a,function(){var c=[],g=true;for(var e=0,d=this.length;e";}return document.id(this.createElement(a)).set(b);},newTextNode:function(a){return this.createTextNode(a); +},getDocument:function(){return this;},getWindow:function(){return this.window;},id:(function(){var a={string:function(d,c,b){d=b.getElementById(d);return(d)?a.element(d,c):null; +},element:function(b,e){$uid(b);if(!e&&!b.$family&&!(/^object|embed$/i).test(b.tagName)){var c=Element.Prototype;for(var d in c){b[d]=c[d];}}return b;},object:function(c,d,b){if(c.toElement){return a.element(c.toElement(b),d); +}return null;}};a.textnode=a.whitespace=a.window=a.document=$arguments(0);return function(c,e,d){if(c&&c.$family&&c.uid){return c;}var b=$type(c);return(a[b])?a[b](c,e,d||document):null; +};})()});if(window.$==null){Window.implement({$:function(a,b){return document.id(a,b,this.document);}});}Window.implement({$$:function(a){if(arguments.length==1&&typeof a=="string"){return this.document.getElements(a); +}var f=[];var c=Array.flatten(arguments);for(var d=0,b=c.length;d1);a.each(function(e){var f=this.getElementsByTagName(e.trim());(b)?c.extend(f):c=f; +},this);return new Elements(c,{ddup:b,cash:!d});}});(function(){var h={},f={};var i={input:"checked",option:"selected",textarea:(Browser.Engine.webkit&&Browser.Engine.version<420)?"innerHTML":"value"}; +var c=function(l){return(f[l]||(f[l]={}));};var g=function(n,l){if(!n){return;}var m=n.uid;if(Browser.Engine.trident){if(n.clearAttributes){var q=l&&n.cloneNode(false); +n.clearAttributes();if(q){n.mergeAttributes(q);}}else{if(n.removeEvents){n.removeEvents();}}if((/object/i).test(n.tagName)){for(var o in n){if(typeof n[o]=="function"){n[o]=$empty; +}}Element.dispose(n);}}if(!m){return;}h[m]=f[m]=null;};var d=function(){Hash.each(h,g);if(Browser.Engine.trident){$A(document.getElementsByTagName("object")).each(g); +}if(window.CollectGarbage){CollectGarbage();}h=f=null;};var j=function(n,l,s,m,p,r){var o=n[s||l];var q=[];while(o){if(o.nodeType==1&&(!m||Element.match(o,m))){if(!p){return document.id(o,r); +}q.push(o);}o=o[l];}return(p)?new Elements(q,{ddup:false,cash:!r}):null;};var e={html:"innerHTML","class":"className","for":"htmlFor",defaultValue:"defaultValue",text:(Browser.Engine.trident||(Browser.Engine.webkit&&Browser.Engine.version<420))?"innerText":"textContent"}; +var b=["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"];var k=["value","type","defaultValue","accessKey","cellPadding","cellSpacing","colSpan","frameBorder","maxLength","readOnly","rowSpan","tabIndex","useMap"]; +b=b.associate(b);Hash.extend(e,b);Hash.extend(e,k.associate(k.map(String.toLowerCase)));var a={before:function(m,l){if(l.parentNode){l.parentNode.insertBefore(m,l); +}},after:function(m,l){if(!l.parentNode){return;}var n=l.nextSibling;(n)?l.parentNode.insertBefore(m,n):l.parentNode.appendChild(m);},bottom:function(m,l){l.appendChild(m); +},top:function(m,l){var n=l.firstChild;(n)?l.insertBefore(m,n):l.appendChild(m);}};a.inside=a.bottom;Hash.each(a,function(l,m){m=m.capitalize();Element.implement("inject"+m,function(n){l(this,document.id(n,true)); +return this;});Element.implement("grab"+m,function(n){l(document.id(n,true),this);return this;});});Element.implement({set:function(o,m){switch($type(o)){case"object":for(var n in o){this.set(n,o[n]); +}break;case"string":var l=Element.Properties.get(o);(l&&l.set)?l.set.apply(this,Array.slice(arguments,1)):this.setProperty(o,m);}return this;},get:function(m){var l=Element.Properties.get(m); +return(l&&l.get)?l.get.apply(this,Array.slice(arguments,1)):this.getProperty(m);},erase:function(m){var l=Element.Properties.get(m);(l&&l.erase)?l.erase.apply(this):this.removeProperty(m); +return this;},setProperty:function(m,n){var l=e[m];if(n==undefined){return this.removeProperty(m);}if(l&&b[m]){n=!!n;}(l)?this[l]=n:this.setAttribute(m,""+n); +return this;},setProperties:function(l){for(var m in l){this.setProperty(m,l[m]);}return this;},getProperty:function(m){var l=e[m];var n=(l)?this[l]:this.getAttribute(m,2); +return(b[m])?!!n:(l)?n:n||null;},getProperties:function(){var l=$A(arguments);return l.map(this.getProperty,this).associate(l);},removeProperty:function(m){var l=e[m]; +(l)?this[l]=(l&&b[m])?false:"":this.removeAttribute(m);return this;},removeProperties:function(){Array.each(arguments,this.removeProperty,this);return this; +},hasClass:function(l){return this.className.contains(l," ");},addClass:function(l){if(!this.hasClass(l)){this.className=(this.className+" "+l).clean(); +}return this;},removeClass:function(l){this.className=this.className.replace(new RegExp("(^|\\s)"+l+"(?:\\s|$)"),"$1");return this;},toggleClass:function(l){return this.hasClass(l)?this.removeClass(l):this.addClass(l); +},adopt:function(){Array.flatten(arguments).each(function(l){l=document.id(l,true);if(l){this.appendChild(l);}},this);return this;},appendText:function(m,l){return this.grab(this.getDocument().newTextNode(m),l); +},grab:function(m,l){a[l||"bottom"](document.id(m,true),this);return this;},inject:function(m,l){a[l||"bottom"](this,document.id(m,true));return this;},replaces:function(l){l=document.id(l,true); +l.parentNode.replaceChild(this,l);return this;},wraps:function(m,l){m=document.id(m,true);return this.replaces(m).grab(m,l);},getPrevious:function(l,m){return j(this,"previousSibling",null,l,false,m); +},getAllPrevious:function(l,m){return j(this,"previousSibling",null,l,true,m);},getNext:function(l,m){return j(this,"nextSibling",null,l,false,m);},getAllNext:function(l,m){return j(this,"nextSibling",null,l,true,m); +},getFirst:function(l,m){return j(this,"nextSibling","firstChild",l,false,m);},getLast:function(l,m){return j(this,"previousSibling","lastChild",l,false,m); +},getParent:function(l,m){return j(this,"parentNode",null,l,false,m);},getParents:function(l,m){return j(this,"parentNode",null,l,true,m);},getSiblings:function(l,m){return this.getParent().getChildren(l,m).erase(this); +},getChildren:function(l,m){return j(this,"nextSibling","firstChild",l,true,m);},getWindow:function(){return this.ownerDocument.window;},getDocument:function(){return this.ownerDocument; +},getElementById:function(o,n){var m=this.ownerDocument.getElementById(o);if(!m){return null;}for(var l=m.parentNode;l!=this;l=l.parentNode){if(!l){return null; +}}return document.id(m,n);},getSelected:function(){return new Elements($A(this.options).filter(function(l){return l.selected;}));},getComputedStyle:function(m){if(this.currentStyle){return this.currentStyle[m.camelCase()]; +}var l=this.getDocument().defaultView.getComputedStyle(this,null);return(l)?l.getPropertyValue([m.hyphenate()]):null;},toQueryString:function(){var l=[]; +this.getElements("input, select, textarea",true).each(function(m){if(!m.name||m.disabled||m.type=="submit"||m.type=="reset"||m.type=="file"){return;}var n=(m.tagName.toLowerCase()=="select")?Element.getSelected(m).map(function(o){return o.value; +}):((m.type=="radio"||m.type=="checkbox")&&!m.checked)?null:m.value;$splat(n).each(function(o){if(typeof o!="undefined"){l.push(m.name+"="+encodeURIComponent(o)); +}});});return l.join("&");},clone:function(o,l){o=o!==false;var r=this.cloneNode(o);var n=function(v,u){if(!l){v.removeAttribute("id");}if(Browser.Engine.trident){v.clearAttributes(); +v.mergeAttributes(u);v.removeAttribute("uid");if(v.options){var w=v.options,s=u.options;for(var t=w.length;t--;){w[t].selected=s[t].selected;}}}var x=i[u.tagName.toLowerCase()]; +if(x&&u[x]){v[x]=u[x];}};if(o){var p=r.getElementsByTagName("*"),q=this.getElementsByTagName("*");for(var m=p.length;m--;){n(p[m],q[m]);}}n(r,this);return document.id(r); +},destroy:function(){Element.empty(this);Element.dispose(this);g(this,true);return null;},empty:function(){$A(this.childNodes).each(function(l){Element.destroy(l); +});return this;},dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this;},hasChild:function(l){l=document.id(l,true);if(!l){return false; +}if(Browser.Engine.webkit&&Browser.Engine.version<420){return $A(this.getElementsByTagName(l.tagName)).contains(l);}return(this.contains)?(this!=l&&this.contains(l)):!!(this.compareDocumentPosition(l)&16); +},match:function(l){return(!l||(l==this)||(Element.get(this,"tag")==l));}});Native.implement([Element,Window,Document],{addListener:function(o,n){if(o=="unload"){var l=n,m=this; +n=function(){m.removeListener("unload",n);l();};}else{h[this.uid]=this;}if(this.addEventListener){this.addEventListener(o,n,false);}else{this.attachEvent("on"+o,n); +}return this;},removeListener:function(m,l){if(this.removeEventListener){this.removeEventListener(m,l,false);}else{this.detachEvent("on"+m,l);}return this; +},retrieve:function(m,l){var o=c(this.uid),n=o[m];if(l!=undefined&&n==undefined){n=o[m]=l;}return $pick(n);},store:function(m,l){var n=c(this.uid);n[m]=l; +return this;},eliminate:function(l){var m=c(this.uid);delete m[l];return this;}});window.addListener("unload",d);})();Element.Properties=new Hash;Element.Properties.style={set:function(a){this.style.cssText=a; +},get:function(){return this.style.cssText;},erase:function(){this.style.cssText="";}};Element.Properties.tag={get:function(){return this.tagName.toLowerCase(); +}};Element.Properties.html=(function(){var c=document.createElement("div");var a={table:[1,"","
    "],select:[1,""],tbody:[2,"","
    "],tr:[3,"","
    "]}; +a.thead=a.tfoot=a.tbody;var b={set:function(){var e=Array.flatten(arguments).join("");var f=Browser.Engine.trident&&a[this.get("tag")];if(f){var g=c;g.innerHTML=f[1]+e+f[2]; +for(var d=f[0];d--;){g=g.firstChild;}this.empty().adopt(g.childNodes);}else{this.innerHTML=e;}}};b.erase=b.set;return b;})();if(Browser.Engine.webkit&&Browser.Engine.version<420){Element.Properties.text={get:function(){if(this.innerText){return this.innerText; +}var a=this.ownerDocument.newElement("div",{html:this.innerHTML}).inject(this.ownerDocument.body);var b=a.innerText;a.destroy();return b;}};}Element.Properties.events={set:function(a){this.addEvents(a); +}};Native.implement([Element,Window,Document],{addEvent:function(e,g){var h=this.retrieve("events",{});h[e]=h[e]||{keys:[],values:[]};if(h[e].keys.contains(g)){return this; +}h[e].keys.push(g);var f=e,a=Element.Events.get(e),c=g,i=this;if(a){if(a.onAdd){a.onAdd.call(this,g);}if(a.condition){c=function(j){if(a.condition.call(this,j)){return g.call(this,j); +}return true;};}f=a.base||f;}var d=function(){return g.call(i);};var b=Element.NativeEvents[f];if(b){if(b==2){d=function(j){j=new Event(j,i.getWindow()); +if(c.call(i,j)===false){j.stop();}};}this.addListener(f,d);}h[e].values.push(d);return this;},removeEvent:function(c,b){var a=this.retrieve("events");if(!a||!a[c]){return this; +}var f=a[c].keys.indexOf(b);if(f==-1){return this;}a[c].keys.splice(f,1);var e=a[c].values.splice(f,1)[0];var d=Element.Events.get(c);if(d){if(d.onRemove){d.onRemove.call(this,b); +}c=d.base||c;}return(Element.NativeEvents[c])?this.removeListener(c,e):this;},addEvents:function(a){for(var b in a){this.addEvent(b,a[b]);}return this; +},removeEvents:function(a){var c;if($type(a)=="object"){for(c in a){this.removeEvent(c,a[c]);}return this;}var b=this.retrieve("events");if(!b){return this; +}if(!a){for(c in b){this.removeEvents(c);}this.eliminate("events");}else{if(b[a]){while(b[a].keys[0]){this.removeEvent(a,b[a].keys[0]);}b[a]=null;}}return this; +},fireEvent:function(d,b,a){var c=this.retrieve("events");if(!c||!c[d]){return this;}c[d].keys.each(function(e){e.create({bind:this,delay:a,"arguments":b})(); +},this);return this;},cloneEvents:function(d,a){d=document.id(d);var c=d.retrieve("events");if(!c){return this;}if(!a){for(var b in c){this.cloneEvents(d,b); +}}else{if(c[a]){c[a].keys.each(function(e){this.addEvent(a,e);},this);}}return this;}});Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:1,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1}; +(function(){var a=function(b){var c=b.relatedTarget;if(c==undefined){return true;}if(c===false){return false;}return($type(this)!="document"&&c!=this&&c.prefix!="xul"&&!this.hasChild(c)); +};Element.Events=new Hash({mouseenter:{base:"mouseover",condition:a},mouseleave:{base:"mouseout",condition:a},mousewheel:{base:(Browser.Engine.gecko)?"DOMMouseScroll":"mousewheel"}}); +})();Element.Properties.styles={set:function(a){this.setStyles(a);}};Element.Properties.opacity={set:function(a,b){if(!b){if(a==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden"; +}}else{if(this.style.visibility!="visible"){this.style.visibility="visible";}}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1;}if(Browser.Engine.trident){this.style.filter=(a==1)?"":"alpha(opacity="+a*100+")"; +}this.style.opacity=a;this.store("opacity",a);},get:function(){return this.retrieve("opacity",1);}};Element.implement({setOpacity:function(a){return this.set("opacity",a,true); +},getOpacity:function(){return this.get("opacity");},setStyle:function(b,a){switch(b){case"opacity":return this.set("opacity",parseFloat(a));case"float":b=(Browser.Engine.trident)?"styleFloat":"cssFloat"; +}b=b.camelCase();if($type(a)!="string"){var c=(Element.Styles.get(b)||"@").split(" ");a=$splat(a).map(function(e,d){if(!c[d]){return"";}return($type(e)=="number")?c[d].replace("@",Math.round(e)):e; +}).join(" ");}else{if(a==String(Number(a))){a=Math.round(a);}}this.style[b]=a;return this;},getStyle:function(g){switch(g){case"opacity":return this.get("opacity"); +case"float":g=(Browser.Engine.trident)?"styleFloat":"cssFloat";}g=g.camelCase();var a=this.style[g];if(!$chk(a)){a=[];for(var f in Element.ShortStyles){if(g!=f){continue; +}for(var e in Element.ShortStyles[f]){a.push(this.getStyle(e));}return a.join(" ");}a=this.getComputedStyle(g);}if(a){a=String(a);var c=a.match(/rgba?\([\d\s,]+\)/); +if(c){a=a.replace(c[0],c[0].rgbToHex());}}if(Browser.Engine.presto||(Browser.Engine.trident&&!$chk(parseInt(a,10)))){if(g.test(/^(height|width)$/)){var b=(g=="width")?["left","right"]:["top","bottom"],d=0; +b.each(function(h){d+=this.getStyle("border-"+h+"-width").toInt()+this.getStyle("padding-"+h).toInt();},this);return this["offset"+g.capitalize()]-d+"px"; +}if((Browser.Engine.presto)&&String(a).test("px")){return a;}if(g.test(/(border(.+)Width|margin|padding)/)){return"0px";}}return a;},setStyles:function(b){for(var a in b){this.setStyle(a,b[a]); +}return this;},getStyles:function(){var a={};Array.flatten(arguments).each(function(b){a[b]=this.getStyle(b);},this);return a;}});Element.Styles=new Hash({left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"}); +Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};["Top","Right","Bottom","Left"].each(function(g){var f=Element.ShortStyles; +var b=Element.Styles;["margin","padding"].each(function(h){var i=h+g;f[h][i]=b[i]="@px";});var e="border"+g;f.border[e]=b[e]="@px @ rgb(@, @, @)";var d=e+"Width",a=e+"Style",c=e+"Color"; +f[e]={};f.borderWidth[d]=f[e][d]=b[d]="@px";f.borderStyle[a]=f[e][a]=b[a]="@";f.borderColor[c]=f[e][c]=b[c]="rgb(@, @, @)";});(function(){Element.implement({scrollTo:function(h,i){if(b(this)){this.getWindow().scrollTo(h,i); +}else{this.scrollLeft=h;this.scrollTop=i;}return this;},getSize:function(){if(b(this)){return this.getWindow().getSize();}return{x:this.offsetWidth,y:this.offsetHeight}; +},getScrollSize:function(){if(b(this)){return this.getWindow().getScrollSize();}return{x:this.scrollWidth,y:this.scrollHeight};},getScroll:function(){if(b(this)){return this.getWindow().getScroll(); +}return{x:this.scrollLeft,y:this.scrollTop};},getScrolls:function(){var i=this,h={x:0,y:0};while(i&&!b(i)){h.x+=i.scrollLeft;h.y+=i.scrollTop;i=i.parentNode; +}return h;},getOffsetParent:function(){var h=this;if(b(h)){return null;}if(!Browser.Engine.trident){return h.offsetParent;}while((h=h.parentNode)&&!b(h)){if(d(h,"position")!="static"){return h; +}}return null;},getOffsets:function(){if(this.getBoundingClientRect){var j=this.getBoundingClientRect(),m=document.id(this.getDocument().documentElement),p=m.getScroll(),k=this.getScrolls(),i=this.getScroll(),h=(d(this,"position")=="fixed"); +return{x:j.left.toInt()+k.x-i.x+((h)?0:p.x)-m.clientLeft,y:j.top.toInt()+k.y-i.y+((h)?0:p.y)-m.clientTop};}var l=this,n={x:0,y:0};if(b(this)){return n; +}while(l&&!b(l)){n.x+=l.offsetLeft;n.y+=l.offsetTop;if(Browser.Engine.gecko){if(!f(l)){n.x+=c(l);n.y+=g(l);}var o=l.parentNode;if(o&&d(o,"overflow")!="visible"){n.x+=c(o); +n.y+=g(o);}}else{if(l!=this&&Browser.Engine.webkit){n.x+=c(l);n.y+=g(l);}}l=l.offsetParent;}if(Browser.Engine.gecko&&!f(this)){n.x-=c(this);n.y-=g(this); +}return n;},getPosition:function(k){if(b(this)){return{x:0,y:0};}var l=this.getOffsets(),i=this.getScrolls();var h={x:l.x-i.x,y:l.y-i.y};var j=(k&&(k=document.id(k)))?k.getPosition():{x:0,y:0}; +return{x:h.x-j.x,y:h.y-j.y};},getCoordinates:function(j){if(b(this)){return this.getWindow().getCoordinates();}var h=this.getPosition(j),i=this.getSize(); +var k={left:h.x,top:h.y,width:i.x,height:i.y};k.right=k.left+k.width;k.bottom=k.top+k.height;return k;},computePosition:function(h){return{left:h.x-e(this,"margin-left"),top:h.y-e(this,"margin-top")}; +},setPosition:function(h){return this.setStyles(this.computePosition(h));}});Native.implement([Document,Window],{getSize:function(){if(Browser.Engine.presto||Browser.Engine.webkit){var i=this.getWindow(); +return{x:i.innerWidth,y:i.innerHeight};}var h=a(this);return{x:h.clientWidth,y:h.clientHeight};},getScroll:function(){var i=this.getWindow(),h=a(this); +return{x:i.pageXOffset||h.scrollLeft,y:i.pageYOffset||h.scrollTop};},getScrollSize:function(){var i=a(this),h=this.getSize();return{x:Math.max(i.scrollWidth,h.x),y:Math.max(i.scrollHeight,h.y)}; +},getPosition:function(){return{x:0,y:0};},getCoordinates:function(){var h=this.getSize();return{top:0,left:0,bottom:h.y,right:h.x,height:h.y,width:h.x}; +}});var d=Element.getComputedStyle;function e(h,i){return d(h,i).toInt()||0;}function f(h){return d(h,"-moz-box-sizing")=="border-box";}function g(h){return e(h,"border-top-width"); +}function c(h){return e(h,"border-left-width");}function b(h){return(/^(?:body|html)$/i).test(h.tagName);}function a(h){var i=h.getDocument();return(!i.compatMode||i.compatMode=="CSS1Compat")?i.html:i.body; +}})();Element.alias("setPosition","position");Native.implement([Window,Document,Element],{getHeight:function(){return this.getSize().y;},getWidth:function(){return this.getSize().x; +},getScrollTop:function(){return this.getScroll().y;},getScrollLeft:function(){return this.getScroll().x;},getScrollHeight:function(){return this.getScrollSize().y; +},getScrollWidth:function(){return this.getScrollSize().x;},getTop:function(){return this.getPosition().y;},getLeft:function(){return this.getPosition().x; +}});Native.implement([Document,Element],{getElements:function(h,g){h=h.split(",");var c,e={};for(var d=0,b=h.length;d1),cash:!g});}});Element.implement({match:function(b){if(!b||(b==this)){return true; +}var d=Selectors.Utils.parseTagAndID(b);var a=d[0],e=d[1];if(!Selectors.Filters.byID(this,e)||!Selectors.Filters.byTag(this,a)){return false;}var c=Selectors.Utils.parseSelector(b); +return(c)?Selectors.Utils.filter(this,c,{}):true;}});var Selectors={Cache:{nth:{},parsed:{}}};Selectors.RegExps={id:(/#([\w-]+)/),tag:(/^(\w+|\*)/),quick:(/^(\w+|\*)$/),splitter:(/\s*([+>~\s])\s*([a-zA-Z#.*:\[])/g),combined:(/\.([\w-]+)|\[(\w+)(?:([!*^$~|]?=)(["']?)([^\4]*?)\4)?\]|:([\w-]+)(?:\(["']?(.*?)?["']?\)|$)/g)}; +Selectors.Utils={chk:function(b,c){if(!c){return true;}var a=$uid(b);if(!c[a]){return c[a]=true;}return false;},parseNthArgument:function(h){if(Selectors.Cache.nth[h]){return Selectors.Cache.nth[h]; +}var e=h.match(/^([+-]?\d*)?([a-z]+)?([+-]?\d*)?$/);if(!e){return false;}var g=parseInt(e[1],10);var d=(g||g===0)?g:1;var f=e[2]||false;var c=parseInt(e[3],10)||0; +if(d!=0){c--;while(c<1){c+=d;}while(c>=d){c-=d;}}else{d=c;f="index";}switch(f){case"n":e={a:d,b:c,special:"n"};break;case"odd":e={a:2,b:0,special:"n"}; +break;case"even":e={a:2,b:1,special:"n"};break;case"first":e={a:0,special:"index"};break;case"last":e={special:"last-child"};break;case"only":e={special:"only-child"}; +break;default:e={a:(d-1),special:"index"};}return Selectors.Cache.nth[h]=e;},parseSelector:function(e){if(Selectors.Cache.parsed[e]){return Selectors.Cache.parsed[e]; +}var d,h={classes:[],pseudos:[],attributes:[]};while((d=Selectors.RegExps.combined.exec(e))){var i=d[1],g=d[2],f=d[3],b=d[5],c=d[6],j=d[7];if(i){h.classes.push(i); +}else{if(c){var a=Selectors.Pseudo.get(c);if(a){h.pseudos.push({parser:a,argument:j});}else{h.attributes.push({name:c,operator:"=",value:j});}}else{if(g){h.attributes.push({name:g,operator:f,value:b}); +}}}}if(!h.classes.length){delete h.classes;}if(!h.attributes.length){delete h.attributes;}if(!h.pseudos.length){delete h.pseudos;}if(!h.classes&&!h.attributes&&!h.pseudos){h=null; +}return Selectors.Cache.parsed[e]=h;},parseTagAndID:function(b){var a=b.match(Selectors.RegExps.tag);var c=b.match(Selectors.RegExps.id);return[(a)?a[1]:"*",(c)?c[1]:false]; +},filter:function(f,c,e){var d;if(c.classes){for(d=c.classes.length;d--;d){var g=c.classes[d];if(!Selectors.Filters.byClass(f,g)){return false;}}}if(c.attributes){for(d=c.attributes.length; +d--;d){var b=c.attributes[d];if(!Selectors.Filters.byAttribute(f,b.name,b.operator,b.value)){return false;}}}if(c.pseudos){for(d=c.pseudos.length;d--;d){var a=c.pseudos[d]; +if(!Selectors.Filters.byPseudo(f,a.parser,a.argument,e)){return false;}}}return true;},getByTagAndID:function(b,a,d){if(d){var c=(b.getElementById)?b.getElementById(d,true):Element.getElementById(b,d,true); +return(c&&Selectors.Filters.byTag(c,a))?[c]:[];}else{return b.getElementsByTagName(a);}},search:function(o,h,t){var b=[];var c=h.trim().replace(Selectors.RegExps.splitter,function(k,j,i){b.push(j); +return":)"+i;}).split(":)");var p,e,A;for(var z=0,v=c.length;z":function(h,g,j,a,f){var c=Selectors.Utils.getByTagAndID(g,j,a);for(var e=0,d=c.length;ea){return false;}}return(c==a);},even:function(b,a){return Selectors.Pseudo["nth-child"].call(this,"2n+1",a); +},odd:function(b,a){return Selectors.Pseudo["nth-child"].call(this,"2n",a);},selected:function(){return this.selected;},enabled:function(){return(this.disabled===false); +}});Element.Events.domready={onAdd:function(a){if(Browser.loaded){a.call(this);}}};(function(){var b=function(){if(Browser.loaded){return;}Browser.loaded=true; +window.fireEvent("domready");document.fireEvent("domready");};window.addEvent("load",b);if(Browser.Engine.trident){var a=document.createElement("div"); +(function(){($try(function(){a.doScroll();return document.id(a).inject(document.body).set("html","temp").dispose();}))?b():arguments.callee.delay(50);})(); +}else{if(Browser.Engine.webkit&&Browser.Engine.version<525){(function(){(["loaded","complete"].contains(document.readyState))?b():arguments.callee.delay(50); +})();}else{document.addEvent("DOMContentLoaded",b);}}})();var JSON=new Hash(this.JSON&&{stringify:JSON.stringify,parse:JSON.parse}).extend({$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(a){return JSON.$specialChars[a]||"\\u00"+Math.floor(a.charCodeAt()/16).toString(16)+(a.charCodeAt()%16).toString(16); +},encode:function(b){switch($type(b)){case"string":return'"'+b.replace(/[\x00-\x1f\\"]/g,JSON.$replaceChars)+'"';case"array":return"["+String(b.map(JSON.encode).clean())+"]"; +case"object":case"hash":var a=[];Hash.each(b,function(e,d){var c=JSON.encode(e);if(c){a.push(JSON.encode(d)+":"+c);}});return"{"+a+"}";case"number":case"boolean":return String(b); +case false:return"null";}return null;},decode:function(string,secure){if($type(string)!="string"||!string.length){return null;}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null; +}return eval("("+string+")");}});Native.implement([Hash,Array,String,Number],{toJSON:function(){return JSON.encode(this);}});var Cookie=new Class({Implements:Options,options:{path:false,domain:false,duration:false,secure:false,document:document},initialize:function(b,a){this.key=b; +this.setOptions(a);},write:function(b){b=encodeURIComponent(b);if(this.options.domain){b+="; domain="+this.options.domain;}if(this.options.path){b+="; path="+this.options.path; +}if(this.options.duration){var a=new Date();a.setTime(a.getTime()+this.options.duration*24*60*60*1000);b+="; expires="+a.toGMTString();}if(this.options.secure){b+="; secure"; +}this.options.document.cookie=this.key+"="+b;return this;},read:function(){var a=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.escapeRegExp()+"=([^;]*)"); +return(a)?decodeURIComponent(a[1]):null;},dispose:function(){new Cookie(this.key,$merge(this.options,{duration:-1})).write("");return this;}});Cookie.write=function(b,c,a){return new Cookie(b,a).write(c); +};Cookie.read=function(a){return new Cookie(a).read();};Cookie.dispose=function(b,a){return new Cookie(b,a).dispose();};var Swiff=new Class({Implements:[Options],options:{id:null,height:1,width:1,container:null,properties:{},params:{quality:"high",allowScriptAccess:"always",wMode:"transparent",swLiveConnect:true},callBacks:{},vars:{}},toElement:function(){return this.object; +},initialize:function(l,m){this.instance="Swiff_"+$time();this.setOptions(m);m=this.options;var b=this.id=m.id||this.instance;var a=document.id(m.container); +Swiff.CallBacks[this.instance]={};var e=m.params,g=m.vars,f=m.callBacks;var h=$extend({height:m.height,width:m.width},m.properties);var k=this;for(var d in f){Swiff.CallBacks[this.instance][d]=(function(n){return function(){return n.apply(k.object,arguments); +};})(f[d]);g[d]="Swiff.CallBacks."+this.instance+"."+d;}e.flashVars=Hash.toQueryString(g);if(Browser.Engine.trident){h.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; +e.movie=l;}else{h.type="application/x-shockwave-flash";h.data=l;}var j=''; +}}j+="";this.object=((a)?a.empty():new Element("div")).set("html",j).firstChild;},replaces:function(a){a=document.id(a,true);a.parentNode.replaceChild(this.toElement(),a); +return this;},inject:function(a){document.id(a,true).appendChild(this.toElement());return this;},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].extend(arguments)); +}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction(''+__flash__argumentsToXML(arguments,2)+""); +return eval(rs);};var Fx=new Class({Implements:[Chain,Events,Options],options:{fps:50,unit:false,duration:500,link:"ignore"},initialize:function(a){this.subject=this.subject||this; +this.setOptions(a);this.options.duration=Fx.Durations[this.options.duration]||this.options.duration.toInt();var b=this.options.wait;if(b===false){this.options.link="cancel"; +}},getTransition:function(){return function(a){return -(Math.cos(Math.PI*a)-1)/2;};},step:function(){var a=$time();if(a=(7-4*d)/11){e=c*c-Math.pow((11-6*d-11*f)/4,2); +break;}}return e;},Elastic:function(b,a){return Math.pow(2,10*--b)*Math.cos(20*b*Math.PI*(a[0]||1)/3);}});["Quad","Cubic","Quart","Quint"].each(function(b,a){Fx.Transitions[b]=new Fx.Transition(function(c){return Math.pow(c,[a+2]); +});});var Request=new Class({Implements:[Chain,Events,Options],options:{url:"",data:"",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*"},async:true,format:false,method:"post",link:"ignore",isSuccess:null,emulation:true,urlEncoded:true,encoding:"utf-8",evalScripts:false,evalResponse:false,noCache:false},initialize:function(a){this.xhr=new Browser.Request(); +this.setOptions(a);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers=new Hash(this.options.headers);},onStateChange:function(){if(this.xhr.readyState!=4||!this.running){return; +}this.running=false;this.status=0;$try(function(){this.status=this.xhr.status;}.bind(this));this.xhr.onreadystatechange=$empty;if(this.options.isSuccess.call(this,this.status)){this.response={text:this.xhr.responseText,xml:this.xhr.responseXML}; +this.success(this.response.text,this.response.xml);}else{this.response={text:null,xml:null};this.failure();}},isSuccess:function(){return((this.status>=200)&&(this.status<300)); +},processScripts:function(a){if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){return $exec(a);}return a.stripScripts(this.options.evalScripts); +},success:function(b,a){this.onSuccess(this.processScripts(b),a);},onSuccess:function(){this.fireEvent("complete",arguments).fireEvent("success",arguments).callChain(); +},failure:function(){this.onFailure();},onFailure:function(){this.fireEvent("complete").fireEvent("failure",this.xhr);},setHeader:function(a,b){this.headers.set(a,b); +return this;},getHeader:function(a){return $try(function(){return this.xhr.getResponseHeader(a);}.bind(this));},check:function(){if(!this.running){return true; +}switch(this.options.link){case"cancel":this.cancel();return true;case"chain":this.chain(this.caller.bind(this,arguments));return false;}return false;},send:function(k){if(!this.check(k)){return this; +}this.running=true;var i=$type(k);if(i=="string"||i=="element"){k={data:k};}var d=this.options;k=$extend({data:d.data,url:d.url,method:d.method},k);var g=k.data,b=String(k.url),a=k.method.toLowerCase(); +switch($type(g)){case"element":g=document.id(g).toQueryString();break;case"object":case"hash":g=Hash.toQueryString(g);}if(this.options.format){var j="format="+this.options.format; +g=(g)?j+"&"+g:j;}if(this.options.emulation&&!["get","post"].contains(a)){var h="_method="+a;g=(g)?h+"&"+g:h;a="post";}if(this.options.urlEncoded&&a=="post"){var c=(this.options.encoding)?"; charset="+this.options.encoding:""; +this.headers.set("Content-type","application/x-www-form-urlencoded"+c);}if(this.options.noCache){var f="noCache="+new Date().getTime();g=(g)?f+"&"+g:f; +}var e=b.lastIndexOf("/");if(e>-1&&(e=b.indexOf("#"))>-1){b=b.substr(0,e);}if(g&&a=="get"){b=b+(b.contains("?")?"&":"?")+g;g=null;}this.xhr.open(a.toUpperCase(),b,this.options.async); +this.xhr.onreadystatechange=this.onStateChange.bind(this);this.headers.each(function(m,l){try{this.xhr.setRequestHeader(l,m);}catch(n){this.fireEvent("exception",[l,m]); +}},this);this.fireEvent("request");this.xhr.send(g);if(!this.options.async){this.onStateChange();}return this;},cancel:function(){if(!this.running){return this; +}this.running=false;this.xhr.abort();this.xhr.onreadystatechange=$empty;this.xhr=new Browser.Request();this.fireEvent("cancel");return this;}});(function(){var a={}; +["get","post","put","delete","GET","POST","PUT","DELETE"].each(function(b){a[b]=function(){var c=Array.link(arguments,{url:String.type,data:$defined}); +return this.send($extend(c,{method:b}));};});Request.implement(a);})();Element.Properties.send={set:function(a){var b=this.retrieve("send");if(b){b.cancel(); +}return this.eliminate("send").store("send:options",$extend({data:this,link:"cancel",method:this.get("method")||"post",url:this.get("action")},a));},get:function(a){if(a||!this.retrieve("send")){if(a||!this.retrieve("send:options")){this.set("send",a); +}this.store("send",new Request(this.retrieve("send:options")));}return this.retrieve("send");}};Element.implement({send:function(a){var b=this.get("send"); +b.send({data:this,url:a||b.options.url});return this;}});Request.HTML=new Class({Extends:Request,options:{update:false,append:false,evalScripts:true,filter:false},processHTML:function(c){var b=c.match(/]*>([\s\S]*?)<\/body>/i); +c=(b)?b[1]:c;var a=new Element("div");return $try(function(){var d=""+c+"",g;if(Browser.Engine.trident){g=new ActiveXObject("Microsoft.XMLDOM"); +g.async=false;g.loadXML(d);}else{g=new DOMParser().parseFromString(d,"text/xml");}d=g.getElementsByTagName("root")[0];if(!d){return null;}for(var f=0,e=d.childNodes.length; +f. Copyright (c) 2006-2009 Aaron Newton , Valerio Proietti & the MooTools team , MIT Style License. + +MooTools.More={version:"1.2.4.4",build:"6f6057dc645fdb7547689183b2311063bd653ddf"};(function(){var c=this;var b=function(){if(c.console&&console.log){try{console.log.apply(console,arguments); +}catch(d){console.log(Array.slice(arguments));}}else{Log.logged.push(arguments);}return this;};var a=function(){this.logged.push(arguments);return this; +};this.Log=new Class({logged:[],log:a,resetLog:function(){this.logged.empty();return this;},enableLog:function(){this.log=b;this.logged.each(function(d){this.log.apply(this,d); +},this);return this.resetLog();},disableLog:function(){this.log=a;return this;}});Log.extend(new Log).enableLog();Log.logger=function(){return this.log.apply(this,arguments); +};})();Array.implement({min:function(){return Math.min.apply(null,this);},max:function(){return Math.max.apply(null,this);},average:function(){return this.length?this.sum()/this.length:0; +},sum:function(){var a=0,b=this.length;if(b){do{a+=this[--b];}while(b);}return a;},unique:function(){return[].combine(this);},shuffle:function(){for(var b=this.length; +b&&--b;){var a=this[b],c=Math.floor(Math.random()*(b+1));this[b]=this[c];this[c]=a;}return this;}});Element.implement({measure:function(e){var g=function(h){return !!(!h||h.offsetHeight||h.offsetWidth); +};if(g(this)){return e.apply(this);}var d=this.getParent(),f=[],b=[];while(!g(d)&&d!=document.body){b.push(d.expose());d=d.getParent();}var c=this.expose(); +var a=e.apply(this);c();b.each(function(h){h();});return a;},expose:function(){if(this.getStyle("display")!="none"){return $empty;}var a=this.style.cssText; +this.setStyles({display:"block",position:"absolute",visibility:"hidden"});return function(){this.style.cssText=a;}.bind(this);},getDimensions:function(a){a=$merge({computeSize:false},a); +var f={};var d=function(g,e){return(e.computeSize)?g.getComputedSize(e):g.getSize();};var b=this.getParent("body");if(b&&this.getStyle("display")=="none"){f=this.measure(function(){return d(this,a); +});}else{if(b){try{f=d(this,a);}catch(c){}}else{f={x:0,y:0};}}return $chk(f.x)?$extend(f,{width:f.x,height:f.y}):$extend(f,{x:f.width,y:f.height});},getComputedSize:function(a){a=$merge({styles:["padding","border"],plains:{height:["top","bottom"],width:["left","right"]},mode:"both"},a); +var c={width:0,height:0};switch(a.mode){case"vertical":delete c.width;delete a.plains.width;break;case"horizontal":delete c.height;delete a.plains.height; +break;}var b=[];$each(a.plains,function(g,f){g.each(function(h){a.styles.each(function(i){b.push((i=="border")?i+"-"+h+"-width":i+"-"+h);});});});var e={}; +b.each(function(f){e[f]=this.getComputedStyle(f);},this);var d=[];$each(a.plains,function(g,f){var h=f.capitalize();c["total"+h]=c["computed"+h]=0;g.each(function(i){c["computed"+i.capitalize()]=0; +b.each(function(k,j){if(k.test(i)){e[k]=e[k].toInt()||0;c["total"+h]=c["total"+h]+e[k];c["computed"+i.capitalize()]=c["computed"+i.capitalize()]+e[k];}if(k.test(i)&&f!=k&&(k.test("border")||k.test("padding"))&&!d.contains(k)){d.push(k); +c["computed"+h]=c["computed"+h]-e[k];}});});});["Width","Height"].each(function(g){var f=g.toLowerCase();if(!$chk(c[f])){return;}c[f]=c[f]+this["offset"+g]+c["computed"+g]; +c["total"+g]=c[f]+c["total"+g];delete c["computed"+g];},this);return $extend(e,c);}});Element.implement({isDisplayed:function(){return this.getStyle("display")!="none"; +},isVisible:function(){var a=this.offsetWidth,b=this.offsetHeight;return(a==0&&b==0)?false:(a>0&&b>0)?true:this.isDisplayed();},toggle:function(){return this[this.isDisplayed()?"hide":"show"](); +},hide:function(){var b;try{b=this.getStyle("display");}catch(a){}return this.store("originalDisplay",b||"").setStyle("display","none");},show:function(a){a=a||this.retrieve("originalDisplay")||"block"; +return this.setStyle("display",(a=="none")?"block":a);},swapClass:function(a,b){return this.removeClass(a).addClass(b);}});Fx.Reveal=new Class({Extends:Fx.Morph,options:{link:"cancel",styles:["padding","border","margin"],transitionOpacity:!Browser.Engine.trident4,mode:"vertical",display:"block",hideInputs:Browser.Engine.trident?"select, input, textarea, object, embed":false},dissolve:function(){try{if(!this.hiding&&!this.showing){if(this.element.getStyle("display")!="none"){this.hiding=true; +this.showing=false;this.hidden=true;this.cssText=this.element.style.cssText;var d=this.element.getComputedSize({styles:this.options.styles,mode:this.options.mode}); +this.element.setStyle("display",this.options.display);if(this.options.transitionOpacity){d.opacity=1;}var b={};$each(d,function(f,e){b[e]=[f,0];},this); +this.element.setStyle("overflow","hidden");var a=this.options.hideInputs?this.element.getElements(this.options.hideInputs):null;this.$chain.unshift(function(){if(this.hidden){this.hiding=false; +$each(d,function(f,e){d[e]=f;},this);this.element.style.cssText=this.cssText;this.element.setStyle("display","none");if(a){a.setStyle("visibility","visible"); +}}this.fireEvent("hide",this.element);this.callChain();}.bind(this));if(a){a.setStyle("visibility","hidden");}this.start(b);}else{this.callChain.delay(10,this); +this.fireEvent("complete",this.element);this.fireEvent("hide",this.element);}}else{if(this.options.link=="chain"){this.chain(this.dissolve.bind(this)); +}else{if(this.options.link=="cancel"&&!this.hiding){this.cancel();this.dissolve();}}}}catch(c){this.hiding=false;this.element.setStyle("display","none"); +this.callChain.delay(10,this);this.fireEvent("complete",this.element);this.fireEvent("hide",this.element);}return this;},reveal:function(){try{if(!this.showing&&!this.hiding){if(this.element.getStyle("display")=="none"||this.element.getStyle("visiblity")=="hidden"||this.element.getStyle("opacity")==0){this.showing=true; +this.hiding=this.hidden=false;var d;this.cssText=this.element.style.cssText;this.element.measure(function(){d=this.element.getComputedSize({styles:this.options.styles,mode:this.options.mode}); +}.bind(this));$each(d,function(f,e){d[e]=f;});if($chk(this.options.heightOverride)){d.height=this.options.heightOverride.toInt();}if($chk(this.options.widthOverride)){d.width=this.options.widthOverride.toInt(); +}if(this.options.transitionOpacity){this.element.setStyle("opacity",0);d.opacity=1;}var b={height:0,display:this.options.display};$each(d,function(f,e){b[e]=0; +});this.element.setStyles($merge(b,{overflow:"hidden"}));var a=this.options.hideInputs?this.element.getElements(this.options.hideInputs):null;if(a){a.setStyle("visibility","hidden"); +}this.start(d);this.$chain.unshift(function(){this.element.style.cssText=this.cssText;this.element.setStyle("display",this.options.display);if(!this.hidden){this.showing=false; +}if(a){a.setStyle("visibility","visible");}this.callChain();this.fireEvent("show",this.element);}.bind(this));}else{this.callChain();this.fireEvent("complete",this.element); +this.fireEvent("show",this.element);}}else{if(this.options.link=="chain"){this.chain(this.reveal.bind(this));}else{if(this.options.link=="cancel"&&!this.showing){this.cancel(); +this.reveal();}}}}catch(c){this.element.setStyles({display:this.options.display,visiblity:"visible",opacity:1});this.showing=false;this.callChain.delay(10,this); +this.fireEvent("complete",this.element);this.fireEvent("show",this.element);}return this;},toggle:function(){if(this.element.getStyle("display")=="none"||this.element.getStyle("visiblity")=="hidden"||this.element.getStyle("opacity")==0){this.reveal(); +}else{this.dissolve();}return this;},cancel:function(){this.parent.apply(this,arguments);this.element.style.cssText=this.cssText;this.hidding=false;this.showing=false; +}});Element.Properties.reveal={set:function(a){var b=this.retrieve("reveal");if(b){b.cancel();}return this.eliminate("reveal").store("reveal:options",a); +},get:function(a){if(a||!this.retrieve("reveal")){if(a||!this.retrieve("reveal:options")){this.set("reveal",a);}this.store("reveal",new Fx.Reveal(this,this.retrieve("reveal:options"))); +}return this.retrieve("reveal");}};Element.Properties.dissolve=Element.Properties.reveal;Element.implement({reveal:function(a){this.get("reveal",a).reveal(); +return this;},dissolve:function(a){this.get("reveal",a).dissolve();return this;},nix:function(){var a=Array.link(arguments,{destroy:Boolean.type,options:Object.type}); +this.get("reveal",a.options).dissolve().chain(function(){this[a.destroy?"destroy":"dispose"]();}.bind(this));return this;},wink:function(){var b=Array.link(arguments,{duration:Number.type,options:Object.type}); +var a=this.get("reveal",b.options);a.reveal().chain(function(){(function(){a.dissolve();}).delay(b.duration||2000);});}});Fx.Scroll=new Class({Extends:Fx,options:{offset:{x:0,y:0},wheelStops:true},initialize:function(b,a){this.element=this.subject=document.id(b); +this.parent(a);var d=this.cancel.bind(this,false);if($type(this.element)!="element"){this.element=document.id(this.element.getDocument().body);}var c=this.element; +if(this.options.wheelStops){this.addEvent("start",function(){c.addEvent("mousewheel",d);},true);this.addEvent("complete",function(){c.removeEvent("mousewheel",d); +},true);}},set:function(){var a=Array.flatten(arguments);if(Browser.Engine.gecko){a=[Math.round(a[0]),Math.round(a[1])];}this.element.scrollTo(a[0],a[1]); +},compute:function(c,b,a){return[0,1].map(function(d){return Fx.compute(c[d],b[d],a);});},start:function(c,g){if(!this.check(c,g)){return this;}var e=this.element.getScrollSize(),b=this.element.getScroll(),d={x:c,y:g}; +for(var f in d){var a=e[f];if($chk(d[f])){d[f]=($type(d[f])=="number")?d[f]:a;}else{d[f]=b[f];}d[f]+=this.options.offset[f];}return this.parent([b.x,b.y],[d.x,d.y]); +},toTop:function(){return this.start(false,0);},toLeft:function(){return this.start(0,false);},toRight:function(){return this.start("right",false);},toBottom:function(){return this.start(false,"bottom"); +},toElement:function(b){var a=document.id(b).getPosition(this.element);return this.start(a.x,a.y);},scrollIntoView:function(c,e,d){e=e?$splat(e):["x","y"]; +var h={};c=document.id(c);var f=c.getPosition(this.element);var i=c.getSize();var g=this.element.getScroll();var a=this.element.getSize();var b={x:f.x+i.x,y:f.y+i.y}; +["x","y"].each(function(j){if(e.contains(j)){if(b[j]>g[j]+a[j]){h[j]=b[j]-a[j];}if(f[j]this.options.snap){this.cancel();this.document.addEvents({mousemove:this.bound.drag,mouseup:this.bound.stop});this.fireEvent("start",[this.element,a]).fireEvent("snap",this.element); +}},drag:function(a){if(this.options.preventDefault){a.preventDefault();}this.mouse.now=a.page;for(var b in this.options.modifiers){if(!this.options.modifiers[b]){continue; +}this.value.now[b]=this.mouse.now[b]-this.mouse.pos[b];if(this.options.invert){this.value.now[b]*=-1;}if(this.options.limit&&this.limit[b]){if($chk(this.limit[b][1])&&(this.value.now[b]>this.limit[b][1])){this.value.now[b]=this.limit[b][1]; +}else{if($chk(this.limit[b][0])&&(this.value.now[b]c.left&&a.xc.top);},checkDroppables:function(){var a=this.droppables.filter(this.checkAgainst,this).getLast(); +if(this.overed!=a){if(this.overed){this.fireEvent("leave",[this.element,this.overed]);}if(a){this.fireEvent("enter",[this.element,a]);}this.overed=a;}},drag:function(a){this.parent(a); +if(this.options.checkDroppables&&this.droppables.length){this.checkDroppables();}},stop:function(a){this.checkDroppables();this.fireEvent("drop",[this.element,this.overed,a]); +this.overed=null;return this.parent(a);}});Element.implement({makeDraggable:function(a){var b=new Drag.Move(this,a);this.store("dragger",b);return b;}}); +var Group=new Class({initialize:function(){this.instances=Array.flatten(arguments);this.events={};this.checker={};},addEvent:function(b,a){this.checker[b]=this.checker[b]||{}; +this.events[b]=this.events[b]||[];if(this.events[b].contains(a)){return false;}else{this.events[b].push(a);}this.instances.each(function(c,d){c.addEvent(b,this.check.bind(this,[b,c,d])); +},this);return this;},check:function(c,a,b){this.checker[c][b]=true;var d=this.instances.every(function(f,e){return this.checker[c][e]||false;},this);if(!d){return; +}this.checker[c]={};this.events[c].each(function(e){e.call(this,this.instances,a);},this);}});Hash.Cookie=new Class({Extends:Cookie,options:{autoSave:true},initialize:function(b,a){this.parent(b,a); +this.load();},save:function(){var a=JSON.encode(this.hash);if(!a||a.length>4096){return false;}if(a=="{}"){this.dispose();}else{this.write(a);}return true; +},load:function(){this.hash=new Hash(JSON.decode(this.read(),true));return this;}});Hash.each(Hash.prototype,function(b,a){if(typeof b=="function"){Hash.Cookie.implement(a,function(){var c=b.apply(this.hash,arguments); +if(this.options.autoSave){this.save();}return c;});}});(function(){var a=this.Keyboard=new Class({Extends:Events,Implements:[Options,Log],options:{defaultEventType:"keydown",active:false,events:{},nonParsedEvents:["activate","deactivate","onactivate","ondeactivate","changed","onchanged"]},initialize:function(f){this.setOptions(f); +this.setup();},setup:function(){this.addEvents(this.options.events);if(a.manager&&!this.manager){a.manager.manage(this);}if(this.options.active){this.activate(); +}},handle:function(h,g){if(h.preventKeyboardPropagation){return;}var f=!!this.manager;if(f&&this.activeKB){this.activeKB.handle(h,g);if(h.preventKeyboardPropagation){return; +}}this.fireEvent(g,h);if(!f&&this.activeKB){this.activeKB.handle(h,g);}},addEvent:function(h,g,f){return this.parent(a.parse(h,this.options.defaultEventType,this.options.nonParsedEvents),g,f); +},removeEvent:function(g,f){return this.parent(a.parse(g,this.options.defaultEventType,this.options.nonParsedEvents),f);},toggleActive:function(){return this[this.active?"deactivate":"activate"](); +},activate:function(f){if(f){if(f!=this.activeKB){this.previous=this.activeKB;}this.activeKB=f.fireEvent("activate");a.manager.fireEvent("changed");}else{if(this.manager){this.manager.activate(this); +}}return this;},deactivate:function(f){if(f){if(f===this.activeKB){this.activeKB=null;f.fireEvent("deactivate");a.manager.fireEvent("changed");}}else{if(this.manager){this.manager.deactivate(this); +}}return this;},relenquish:function(){if(this.previous){this.activate(this.previous);}},manage:function(f){if(f.manager){f.manager.drop(f);}this.instances.push(f); +f.manager=this;if(!this.activeKB){this.activate(f);}else{this._disable(f);}},_disable:function(f){if(this.activeKB==f){this.activeKB=null;}},drop:function(f){this._disable(f); +this.instances.erase(f);},instances:[],trace:function(){a.trace(this);},each:function(f){a.each(this,f);}});var b={};var c=["shift","control","alt","meta"]; +var e=/^(?:shift|control|ctrl|alt|meta)$/;a.parse=function(h,g,k){if(k&&k.contains(h.toLowerCase())){return h;}h=h.toLowerCase().replace(/^(keyup|keydown):/,function(m,l){g=l; +return"";});if(!b[h]){var f,j={};h.split("+").each(function(l){if(e.test(l)){j[l]=true;}else{f=l;}});j.control=j.control||j.ctrl;var i=[];c.each(function(l){if(j[l]){i.push(l); +}});if(f){i.push(f);}b[h]=i.join("+");}return g+":"+b[h];};a.each=function(f,g){var h=f||a.manager;while(h){g.run(h);h=h.activeKB;}};a.stop=function(f){f.preventKeyboardPropagation=true; +};a.manager=new a({active:true});a.trace=function(f){f=f||a.manager;f.enableLog();f.log("the following items have focus: ");a.each(f,function(g){f.log(document.id(g.widget)||g.wiget||g); +});};var d=function(g){var f=[];c.each(function(h){if(g[h]){f.push(h);}});if(!e.test(g.key)){f.push(g.key);}a.manager.handle(g,g.type+":"+f.join("+")); +};document.addEvents({keyup:d,keydown:d});Event.Keys.extend({shift:16,control:17,alt:18,capslock:20,pageup:33,pagedown:34,end:35,home:36,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":Browser.Engine.Gecko?109:189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222}); +})();Keyboard.prototype.options.nonParsedEvents.combine(["rebound","onrebound"]);Keyboard.implement({addShortcut:function(b,a){this.shortcuts=this.shortcuts||[]; +this.shortcutIndex=this.shortcutIndex||{};a.getKeyboard=$lambda(this);a.name=b;this.shortcutIndex[b]=a;this.shortcuts.push(a);if(a.keys){this.addEvent(a.keys,a.handler); +}return this;},addShortcuts:function(b){for(var a in b){this.addShortcut(a,b[a]);}return this;},getShortcuts:function(){return this.shortcuts||[];},getShortcut:function(a){return(this.shortcutIndex||{})[a]; +}});Keyboard.rebind=function(b,a){$splat(a).each(function(c){c.getKeyboard().removeEvent(c.keys,c.handler);c.getKeyboard().addEvent(b,c.handler);c.keys=b; +c.getKeyboard().fireEvent("rebound");});};Keyboard.getActiveShortcuts=function(b){var a=[],c=[];Keyboard.each(b,[].push.bind(a));a.each(function(d){c.extend(d.getShortcuts()); +});return c;};Keyboard.getShortcut=function(c,b,d){d=d||{};var a=d.many?[]:null,e=d.many?function(g){var f=g.getShortcut(c);if(f){a.push(f);}}:function(f){if(!a){a=f.getShortcut(c); +}};Keyboard.each(b,e);return a;};Keyboard.getShortcuts=function(b,a){return Keyboard.getShortcut(b,a,{many:true});};var Scroller=new Class({Implements:[Events,Options],options:{area:20,velocity:1,onChange:function(a,b){this.element.scrollTo(a,b); +},fps:50},initialize:function(b,a){this.setOptions(a);this.element=document.id(b);this.docBody=document.id(this.element.getDocument().body);this.listener=($type(this.element)!="element")?this.docBody:this.element; +this.timer=null;this.bound={attach:this.attach.bind(this),detach:this.detach.bind(this),getCoords:this.getCoords.bind(this)};},start:function(){this.listener.addEvents({mouseover:this.bound.attach,mouseout:this.bound.detach}); +},stop:function(){this.listener.removeEvents({mouseover:this.bound.attach,mouseout:this.bound.detach});this.detach();this.timer=$clear(this.timer);},attach:function(){this.listener.addEvent("mousemove",this.bound.getCoords); +},detach:function(){this.listener.removeEvent("mousemove",this.bound.getCoords);this.timer=$clear(this.timer);},getCoords:function(a){this.page=(this.listener.get("tag")=="body")?a.client:a.page; +if(!this.timer){this.timer=this.scroll.periodical(Math.round(1000/this.options.fps),this);}},scroll:function(){var b=this.element.getSize(),a=this.element.getScroll(),f=this.element!=this.docBody?this.element.getOffsets():{x:0,y:0},c=this.element.getScrollSize(),e={x:0,y:0}; +for(var d in this.page){if(this.page[d]<(this.options.area+f[d])&&a[d]!=0){e[d]=(this.page[d]-this.options.area-f[d])*this.options.velocity;}else{if(this.page[d]+this.options.area>(b[d]+f[d])&&a[d]+b[d]!=c[d]){e[d]=(this.page[d]-b[d]+this.options.area-f[d])*this.options.velocity; +}}}if(e.y||e.x){this.fireEvent("change",[a.x+e.x,a.y+e.y]);}}});(function(){var a=function(c,b){return(c)?($type(c)=="function"?c(b):b.get(c)):"";};this.Tips=new Class({Implements:[Events,Options],options:{onShow:function(){this.tip.setStyle("display","block"); +},onHide:function(){this.tip.setStyle("display","none");},title:"title",text:function(b){return b.get("rel")||b.get("href");},showDelay:100,hideDelay:100,className:"tip-wrap",offset:{x:16,y:16},windowPadding:{x:0,y:0},fixed:false},initialize:function(){var b=Array.link(arguments,{options:Object.type,elements:$defined}); +this.setOptions(b.options);if(b.elements){this.attach(b.elements);}this.container=new Element("div",{"class":"tip"});},toElement:function(){if(this.tip){return this.tip; +}return this.tip=new Element("div",{"class":this.options.className,styles:{position:"absolute",top:0,left:0}}).adopt(new Element("div",{"class":"tip-top"}),this.container,new Element("div",{"class":"tip-bottom"})).inject(document.body); +},attach:function(b){$$(b).each(function(d){var f=a(this.options.title,d),e=a(this.options.text,d);d.erase("title").store("tip:native",f).retrieve("tip:title",f); +d.retrieve("tip:text",e);this.fireEvent("attach",[d]);var c=["enter","leave"];if(!this.options.fixed){c.push("move");}c.each(function(h){var g=d.retrieve("tip:"+h); +if(!g){g=this["element"+h.capitalize()].bindWithEvent(this,d);}d.store("tip:"+h,g).addEvent("mouse"+h,g);},this);},this);return this;},detach:function(b){$$(b).each(function(d){["enter","leave","move"].each(function(e){d.removeEvent("mouse"+e,d.retrieve("tip:"+e)).eliminate("tip:"+e); +});this.fireEvent("detach",[d]);if(this.options.title=="title"){var c=d.retrieve("tip:native");if(c){d.set("title",c);}}},this);return this;},elementEnter:function(c,b){this.container.empty(); +["title","text"].each(function(e){var d=b.retrieve("tip:"+e);if(d){this.fill(new Element("div",{"class":"tip-"+e}).inject(this.container),d);}},this);$clear(this.timer); +this.timer=(function(){this.show(this,b);this.position((this.options.fixed)?{page:b.getPosition()}:c);}).delay(this.options.showDelay,this);},elementLeave:function(c,b){$clear(this.timer); +this.timer=this.hide.delay(this.options.hideDelay,this,b);this.fireForParent(c,b);},fireForParent:function(c,b){b=b.getParent();if(!b||b==document.body){return; +}if(b.retrieve("tip:enter")){b.fireEvent("mouseenter",c);}else{this.fireForParent(c,b);}},elementMove:function(c,b){this.position(c);},position:function(e){if(!this.tip){document.id(this); +}var c=window.getSize(),b=window.getScroll(),f={x:this.tip.offsetWidth,y:this.tip.offsetHeight},d={x:"left",y:"top"},g={};for(var h in d){g[d[h]]=e.page[h]+this.options.offset[h]; +if((g[d[h]]+f[h]-b[h])>c[h]-this.options.windowPadding[h]){g[d[h]]=e.page[h]-this.options.offset[h]-f[h];}}this.tip.setStyles(g);},fill:function(b,c){if(typeof c=="string"){b.set("html",c); +}else{b.adopt(c);}},show:function(b){if(!this.tip){document.id(this);}this.fireEvent("show",[this.tip,b]);},hide:function(b){if(!this.tip){document.id(this); +}this.fireEvent("hide",[this.tip,b]);}});})(); \ No newline at end of file diff --git a/mt-full.js b/mt-full.js new file mode 100644 index 00000000..2032274b --- /dev/null +++ b/mt-full.js @@ -0,0 +1,614 @@ +//MooTools, , My Object Oriented (JavaScript) Tools. Copyright (c) 2006-2009 Valerio Proietti, , MIT Style License. + +var MooTools={version:"1.2.4",build:"0d9113241a90b9cd5643b926795852a2026710d4"};var Native=function(k){k=k||{};var a=k.name;var i=k.legacy;var b=k.protect; +var c=k.implement;var h=k.generics;var f=k.initialize;var g=k.afterImplement||function(){};var d=f||i;h=h!==false;d.constructor=Native;d.$family={name:"native"}; +if(i&&f){d.prototype=i.prototype;}d.prototype.constructor=d;if(a){var e=a.toLowerCase();d.prototype.$family={name:e};Native.typize(d,e);}var j=function(n,l,o,m){if(!b||m||!n.prototype[l]){n.prototype[l]=o; +}if(h){Native.genericize(n,l,b);}g.call(n,l,o);return n;};d.alias=function(n,l,p){if(typeof n=="string"){var o=this.prototype[n];if((n=o)){return j(this,l,n,p); +}}for(var m in n){this.alias(m,n[m],l);}return this;};d.implement=function(m,l,o){if(typeof m=="string"){return j(this,m,l,o);}for(var n in m){j(this,n,m[n],l); +}return this;};if(c){d.implement(c);}return d;};Native.genericize=function(b,c,a){if((!a||!b[c])&&typeof b.prototype[c]=="function"){b[c]=function(){var d=Array.prototype.slice.call(arguments); +return b.prototype[c].apply(d.shift(),d);};}};Native.implement=function(d,c){for(var b=0,a=d.length;b-1:this.indexOf(a)>-1;},trim:function(){return this.replace(/^\s+|\s+$/g,"");},clean:function(){return this.replace(/\s+/g," ").trim(); +},camelCase:function(){return this.replace(/-\D/g,function(a){return a.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/[A-Z]/g,function(a){return("-"+a.charAt(0).toLowerCase()); +});},capitalize:function(){return this.replace(/\b[a-z]/g,function(a){return a.toUpperCase();});},escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1"); +},toInt:function(a){return parseInt(this,a||10);},toFloat:function(){return parseFloat(this);},hexToRgb:function(b){var a=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/); +return(a)?a.slice(1).hexToRgb(b):null;},rgbToHex:function(b){var a=this.match(/\d{1,3}/g);return(a)?a.rgbToHex(b):null;},stripScripts:function(b){var a=""; +var c=this.replace(/]*>([\s\S]*?)<\/script>/gi,function(){a+=arguments[1]+"\n";return"";});if(b===true){$exec(a);}else{if($type(b)=="function"){b(a,c); +}}return c;},substitute:function(a,b){return this.replace(b||(/\\?\{([^{}]+)\}/g),function(d,c){if(d.charAt(0)=="\\"){return d.slice(1);}return(a[c]!=undefined)?a[c]:""; +});}});Hash.implement({has:Object.prototype.hasOwnProperty,keyOf:function(b){for(var a in this){if(this.hasOwnProperty(a)&&this[a]===b){return a;}}return null; +},hasValue:function(a){return(Hash.keyOf(this,a)!==null);},extend:function(a){Hash.each(a||{},function(c,b){Hash.set(this,b,c);},this);return this;},combine:function(a){Hash.each(a||{},function(c,b){Hash.include(this,b,c); +},this);return this;},erase:function(a){if(this.hasOwnProperty(a)){delete this[a];}return this;},get:function(a){return(this.hasOwnProperty(a))?this[a]:null; +},set:function(a,b){if(!this[a]||this.hasOwnProperty(a)){this[a]=b;}return this;},empty:function(){Hash.each(this,function(b,a){delete this[a];},this); +return this;},include:function(a,b){if(this[a]==undefined){this[a]=b;}return this;},map:function(b,c){var a=new Hash;Hash.each(this,function(e,d){a.set(d,b.call(c,e,d,this)); +},this);return a;},filter:function(b,c){var a=new Hash;Hash.each(this,function(e,d){if(b.call(c,e,d,this)){a.set(d,e);}},this);return a;},every:function(b,c){for(var a in this){if(this.hasOwnProperty(a)&&!b.call(c,this[a],a)){return false; +}}return true;},some:function(b,c){for(var a in this){if(this.hasOwnProperty(a)&&b.call(c,this[a],a)){return true;}}return false;},getKeys:function(){var a=[]; +Hash.each(this,function(c,b){a.push(b);});return a;},getValues:function(){var a=[];Hash.each(this,function(b){a.push(b);});return a;},toQueryString:function(a){var b=[]; +Hash.each(this,function(f,e){if(a){e=a+"["+e+"]";}var d;switch($type(f)){case"object":d=Hash.toQueryString(f,e);break;case"array":var c={};f.each(function(h,g){c[g]=h; +});d=Hash.toQueryString(c,e);break;default:d=e+"="+encodeURIComponent(f);}if(f!=undefined){b.push(d);}});return b.join("&");}});Hash.alias({keyOf:"indexOf",hasValue:"contains"}); +var Event=new Native({name:"Event",initialize:function(a,f){f=f||window;var k=f.document;a=a||f.event;if(a.$extended){return a;}this.$extended=true;var j=a.type; +var g=a.target||a.srcElement;while(g&&g.nodeType==3){g=g.parentNode;}if(j.test(/key/)){var b=a.which||a.keyCode;var m=Event.Keys.keyOf(b);if(j=="keydown"){var d=b-111; +if(d>0&&d<13){m="f"+d;}}m=m||String.fromCharCode(b).toLowerCase();}else{if(j.match(/(click|mouse|menu)/i)){k=(!k.compatMode||k.compatMode=="CSS1Compat")?k.html:k.body; +var i={x:a.pageX||a.clientX+k.scrollLeft,y:a.pageY||a.clientY+k.scrollTop};var c={x:(a.pageX)?a.pageX-f.pageXOffset:a.clientX,y:(a.pageY)?a.pageY-f.pageYOffset:a.clientY}; +if(j.match(/DOMMouseScroll|mousewheel/)){var h=(a.wheelDelta)?a.wheelDelta/120:-(a.detail||0)/3;}var e=(a.which==3)||(a.button==2);var l=null;if(j.match(/over|out/)){switch(j){case"mouseover":l=a.relatedTarget||a.fromElement; +break;case"mouseout":l=a.relatedTarget||a.toElement;}if(!(function(){while(l&&l.nodeType==3){l=l.parentNode;}return true;}).create({attempt:Browser.Engine.gecko})()){l=false; +}}}}return $extend(this,{event:a,type:j,page:i,client:c,rightClick:e,wheel:h,relatedTarget:l,target:g,code:b,key:m,shift:a.shiftKey,control:a.ctrlKey,alt:a.altKey,meta:a.metaKey}); +}});Event.Keys=new Hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});Event.implement({stop:function(){return this.stopPropagation().preventDefault(); +},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation();}else{this.event.cancelBubble=true;}return this;},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault(); +}else{this.event.returnValue=false;}return this;}});function Class(b){if(b instanceof Function){b={initialize:b};}var a=function(){Object.reset(this);if(a._prototyping){return this; +}this._current=$empty;var c=(this.initialize)?this.initialize.apply(this,arguments):this;delete this._current;delete this.caller;return c;}.extend(this); +a.implement(b);a.constructor=Class;a.prototype.constructor=a;return a;}Function.prototype.protect=function(){this._protected=true;return this;};Object.reset=function(a,c){if(c==null){for(var e in a){Object.reset(a,e); +}return a;}delete a[c];switch($type(a[c])){case"object":var d=function(){};d.prototype=a[c];var b=new d;a[c]=Object.reset(b);break;case"array":a[c]=$unlink(a[c]); +break;}return a;};new Native({name:"Class",initialize:Class}).extend({instantiate:function(b){b._prototyping=true;var a=new b;delete b._prototyping;return a; +},wrap:function(a,b,c){if(c._origin){c=c._origin;}return function(){if(c._protected&&this._current==null){throw new Error('The method "'+b+'" cannot be called.'); +}var e=this.caller,f=this._current;this.caller=f;this._current=arguments.callee;var d=c.apply(this,arguments);this._current=f;this.caller=e;return d;}.extend({_owner:a,_origin:c,_name:b}); +}});Class.implement({implement:function(a,d){if($type(a)=="object"){for(var e in a){this.implement(e,a[e]);}return this;}var f=Class.Mutators[a];if(f){d=f.call(this,d); +if(d==null){return this;}}var c=this.prototype;switch($type(d)){case"function":if(d._hidden){return this;}c[a]=Class.wrap(this,a,d);break;case"object":var b=c[a]; +if($type(b)=="object"){$mixin(b,d);}else{c[a]=$unlink(d);}break;case"array":c[a]=$unlink(d);break;default:c[a]=d;}return this;}});Class.Mutators={Extends:function(a){this.parent=a; +this.prototype=Class.instantiate(a);this.implement("parent",function(){var b=this.caller._name,c=this.caller._owner.parent.prototype[b];if(!c){throw new Error('The method "'+b+'" has no parent.'); +}return c.apply(this,arguments);}.protect());},Implements:function(a){$splat(a).each(function(b){if(b instanceof Function){b=Class.instantiate(b);}this.implement(b); +},this);}};var Chain=new Class({$chain:[],chain:function(){this.$chain.extend(Array.flatten(arguments));return this;},callChain:function(){return(this.$chain.length)?this.$chain.shift().apply(this,arguments):false; +},clearChain:function(){this.$chain.empty();return this;}});var Events=new Class({$events:{},addEvent:function(c,b,a){c=Events.removeOn(c);if(b!=$empty){this.$events[c]=this.$events[c]||[]; +this.$events[c].include(b);if(a){b.internal=true;}}return this;},addEvents:function(a){for(var b in a){this.addEvent(b,a[b]);}return this;},fireEvent:function(c,b,a){c=Events.removeOn(c); +if(!this.$events||!this.$events[c]){return this;}this.$events[c].each(function(d){d.create({bind:this,delay:a,"arguments":b})();},this);return this;},removeEvent:function(b,a){b=Events.removeOn(b); +if(!this.$events[b]){return this;}if(!a.internal){this.$events[b].erase(a);}return this;},removeEvents:function(c){var d;if($type(c)=="object"){for(d in c){this.removeEvent(d,c[d]); +}return this;}if(c){c=Events.removeOn(c);}for(d in this.$events){if(c&&c!=d){continue;}var b=this.$events[d];for(var a=b.length;a--;a){this.removeEvent(d,b[a]); +}}return this;}});Events.removeOn=function(a){return a.replace(/^on([A-Z])/,function(b,c){return c.toLowerCase();});};var Options=new Class({setOptions:function(){this.options=$merge.run([this.options].extend(arguments)); +if(!this.addEvent){return this;}for(var a in this.options){if($type(this.options[a])!="function"||!(/^on[A-Z]/).test(a)){continue;}this.addEvent(a,this.options[a]); +delete this.options[a];}return this;}});var Element=new Native({name:"Element",legacy:window.Element,initialize:function(a,b){var c=Element.Constructors.get(a); +if(c){return c(b);}if(typeof a=="string"){return document.newElement(a,b);}return document.id(a).set(b);},afterImplement:function(a,b){Element.Prototype[a]=b; +if(Array[a]){return;}Elements.implement(a,function(){var c=[],g=true;for(var e=0,d=this.length;e";}return document.id(this.createElement(a)).set(b);},newTextNode:function(a){return this.createTextNode(a); +},getDocument:function(){return this;},getWindow:function(){return this.window;},id:(function(){var a={string:function(d,c,b){d=b.getElementById(d);return(d)?a.element(d,c):null; +},element:function(b,e){$uid(b);if(!e&&!b.$family&&!(/^object|embed$/i).test(b.tagName)){var c=Element.Prototype;for(var d in c){b[d]=c[d];}}return b;},object:function(c,d,b){if(c.toElement){return a.element(c.toElement(b),d); +}return null;}};a.textnode=a.whitespace=a.window=a.document=$arguments(0);return function(c,e,d){if(c&&c.$family&&c.uid){return c;}var b=$type(c);return(a[b])?a[b](c,e,d||document):null; +};})()});if(window.$==null){Window.implement({$:function(a,b){return document.id(a,b,this.document);}});}Window.implement({$$:function(a){if(arguments.length==1&&typeof a=="string"){return this.document.getElements(a); +}var f=[];var c=Array.flatten(arguments);for(var d=0,b=c.length;d1);a.each(function(e){var f=this.getElementsByTagName(e.trim());(b)?c.extend(f):c=f; +},this);return new Elements(c,{ddup:b,cash:!d});}});(function(){var h={},f={};var i={input:"checked",option:"selected",textarea:(Browser.Engine.webkit&&Browser.Engine.version<420)?"innerHTML":"value"}; +var c=function(l){return(f[l]||(f[l]={}));};var g=function(n,l){if(!n){return;}var m=n.uid;if(Browser.Engine.trident){if(n.clearAttributes){var q=l&&n.cloneNode(false); +n.clearAttributes();if(q){n.mergeAttributes(q);}}else{if(n.removeEvents){n.removeEvents();}}if((/object/i).test(n.tagName)){for(var o in n){if(typeof n[o]=="function"){n[o]=$empty; +}}Element.dispose(n);}}if(!m){return;}h[m]=f[m]=null;};var d=function(){Hash.each(h,g);if(Browser.Engine.trident){$A(document.getElementsByTagName("object")).each(g); +}if(window.CollectGarbage){CollectGarbage();}h=f=null;};var j=function(n,l,s,m,p,r){var o=n[s||l];var q=[];while(o){if(o.nodeType==1&&(!m||Element.match(o,m))){if(!p){return document.id(o,r); +}q.push(o);}o=o[l];}return(p)?new Elements(q,{ddup:false,cash:!r}):null;};var e={html:"innerHTML","class":"className","for":"htmlFor",defaultValue:"defaultValue",text:(Browser.Engine.trident||(Browser.Engine.webkit&&Browser.Engine.version<420))?"innerText":"textContent"}; +var b=["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"];var k=["value","type","defaultValue","accessKey","cellPadding","cellSpacing","colSpan","frameBorder","maxLength","readOnly","rowSpan","tabIndex","useMap"]; +b=b.associate(b);Hash.extend(e,b);Hash.extend(e,k.associate(k.map(String.toLowerCase)));var a={before:function(m,l){if(l.parentNode){l.parentNode.insertBefore(m,l); +}},after:function(m,l){if(!l.parentNode){return;}var n=l.nextSibling;(n)?l.parentNode.insertBefore(m,n):l.parentNode.appendChild(m);},bottom:function(m,l){l.appendChild(m); +},top:function(m,l){var n=l.firstChild;(n)?l.insertBefore(m,n):l.appendChild(m);}};a.inside=a.bottom;Hash.each(a,function(l,m){m=m.capitalize();Element.implement("inject"+m,function(n){l(this,document.id(n,true)); +return this;});Element.implement("grab"+m,function(n){l(document.id(n,true),this);return this;});});Element.implement({set:function(o,m){switch($type(o)){case"object":for(var n in o){this.set(n,o[n]); +}break;case"string":var l=Element.Properties.get(o);(l&&l.set)?l.set.apply(this,Array.slice(arguments,1)):this.setProperty(o,m);}return this;},get:function(m){var l=Element.Properties.get(m); +return(l&&l.get)?l.get.apply(this,Array.slice(arguments,1)):this.getProperty(m);},erase:function(m){var l=Element.Properties.get(m);(l&&l.erase)?l.erase.apply(this):this.removeProperty(m); +return this;},setProperty:function(m,n){var l=e[m];if(n==undefined){return this.removeProperty(m);}if(l&&b[m]){n=!!n;}(l)?this[l]=n:this.setAttribute(m,""+n); +return this;},setProperties:function(l){for(var m in l){this.setProperty(m,l[m]);}return this;},getProperty:function(m){var l=e[m];var n=(l)?this[l]:this.getAttribute(m,2); +return(b[m])?!!n:(l)?n:n||null;},getProperties:function(){var l=$A(arguments);return l.map(this.getProperty,this).associate(l);},removeProperty:function(m){var l=e[m]; +(l)?this[l]=(l&&b[m])?false:"":this.removeAttribute(m);return this;},removeProperties:function(){Array.each(arguments,this.removeProperty,this);return this; +},hasClass:function(l){return this.className.contains(l," ");},addClass:function(l){if(!this.hasClass(l)){this.className=(this.className+" "+l).clean(); +}return this;},removeClass:function(l){this.className=this.className.replace(new RegExp("(^|\\s)"+l+"(?:\\s|$)"),"$1");return this;},toggleClass:function(l){return this.hasClass(l)?this.removeClass(l):this.addClass(l); +},adopt:function(){Array.flatten(arguments).each(function(l){l=document.id(l,true);if(l){this.appendChild(l);}},this);return this;},appendText:function(m,l){return this.grab(this.getDocument().newTextNode(m),l); +},grab:function(m,l){a[l||"bottom"](document.id(m,true),this);return this;},inject:function(m,l){a[l||"bottom"](this,document.id(m,true));return this;},replaces:function(l){l=document.id(l,true); +l.parentNode.replaceChild(this,l);return this;},wraps:function(m,l){m=document.id(m,true);return this.replaces(m).grab(m,l);},getPrevious:function(l,m){return j(this,"previousSibling",null,l,false,m); +},getAllPrevious:function(l,m){return j(this,"previousSibling",null,l,true,m);},getNext:function(l,m){return j(this,"nextSibling",null,l,false,m);},getAllNext:function(l,m){return j(this,"nextSibling",null,l,true,m); +},getFirst:function(l,m){return j(this,"nextSibling","firstChild",l,false,m);},getLast:function(l,m){return j(this,"previousSibling","lastChild",l,false,m); +},getParent:function(l,m){return j(this,"parentNode",null,l,false,m);},getParents:function(l,m){return j(this,"parentNode",null,l,true,m);},getSiblings:function(l,m){return this.getParent().getChildren(l,m).erase(this); +},getChildren:function(l,m){return j(this,"nextSibling","firstChild",l,true,m);},getWindow:function(){return this.ownerDocument.window;},getDocument:function(){return this.ownerDocument; +},getElementById:function(o,n){var m=this.ownerDocument.getElementById(o);if(!m){return null;}for(var l=m.parentNode;l!=this;l=l.parentNode){if(!l){return null; +}}return document.id(m,n);},getSelected:function(){return new Elements($A(this.options).filter(function(l){return l.selected;}));},getComputedStyle:function(m){if(this.currentStyle){return this.currentStyle[m.camelCase()]; +}var l=this.getDocument().defaultView.getComputedStyle(this,null);return(l)?l.getPropertyValue([m.hyphenate()]):null;},toQueryString:function(){var l=[]; +this.getElements("input, select, textarea",true).each(function(m){if(!m.name||m.disabled||m.type=="submit"||m.type=="reset"||m.type=="file"){return;}var n=(m.tagName.toLowerCase()=="select")?Element.getSelected(m).map(function(o){return o.value; +}):((m.type=="radio"||m.type=="checkbox")&&!m.checked)?null:m.value;$splat(n).each(function(o){if(typeof o!="undefined"){l.push(m.name+"="+encodeURIComponent(o)); +}});});return l.join("&");},clone:function(o,l){o=o!==false;var r=this.cloneNode(o);var n=function(v,u){if(!l){v.removeAttribute("id");}if(Browser.Engine.trident){v.clearAttributes(); +v.mergeAttributes(u);v.removeAttribute("uid");if(v.options){var w=v.options,s=u.options;for(var t=w.length;t--;){w[t].selected=s[t].selected;}}}var x=i[u.tagName.toLowerCase()]; +if(x&&u[x]){v[x]=u[x];}};if(o){var p=r.getElementsByTagName("*"),q=this.getElementsByTagName("*");for(var m=p.length;m--;){n(p[m],q[m]);}}n(r,this);return document.id(r); +},destroy:function(){Element.empty(this);Element.dispose(this);g(this,true);return null;},empty:function(){$A(this.childNodes).each(function(l){Element.destroy(l); +});return this;},dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this;},hasChild:function(l){l=document.id(l,true);if(!l){return false; +}if(Browser.Engine.webkit&&Browser.Engine.version<420){return $A(this.getElementsByTagName(l.tagName)).contains(l);}return(this.contains)?(this!=l&&this.contains(l)):!!(this.compareDocumentPosition(l)&16); +},match:function(l){return(!l||(l==this)||(Element.get(this,"tag")==l));}});Native.implement([Element,Window,Document],{addListener:function(o,n){if(o=="unload"){var l=n,m=this; +n=function(){m.removeListener("unload",n);l();};}else{h[this.uid]=this;}if(this.addEventListener){this.addEventListener(o,n,false);}else{this.attachEvent("on"+o,n); +}return this;},removeListener:function(m,l){if(this.removeEventListener){this.removeEventListener(m,l,false);}else{this.detachEvent("on"+m,l);}return this; +},retrieve:function(m,l){var o=c(this.uid),n=o[m];if(l!=undefined&&n==undefined){n=o[m]=l;}return $pick(n);},store:function(m,l){var n=c(this.uid);n[m]=l; +return this;},eliminate:function(l){var m=c(this.uid);delete m[l];return this;}});window.addListener("unload",d);})();Element.Properties=new Hash;Element.Properties.style={set:function(a){this.style.cssText=a; +},get:function(){return this.style.cssText;},erase:function(){this.style.cssText="";}};Element.Properties.tag={get:function(){return this.tagName.toLowerCase(); +}};Element.Properties.html=(function(){var c=document.createElement("div");var a={table:[1,"","
    "],select:[1,""],tbody:[2,"","
    "],tr:[3,"","
    "]}; +a.thead=a.tfoot=a.tbody;var b={set:function(){var e=Array.flatten(arguments).join("");var f=Browser.Engine.trident&&a[this.get("tag")];if(f){var g=c;g.innerHTML=f[1]+e+f[2]; +for(var d=f[0];d--;){g=g.firstChild;}this.empty().adopt(g.childNodes);}else{this.innerHTML=e;}}};b.erase=b.set;return b;})();if(Browser.Engine.webkit&&Browser.Engine.version<420){Element.Properties.text={get:function(){if(this.innerText){return this.innerText; +}var a=this.ownerDocument.newElement("div",{html:this.innerHTML}).inject(this.ownerDocument.body);var b=a.innerText;a.destroy();return b;}};}Element.Properties.events={set:function(a){this.addEvents(a); +}};Native.implement([Element,Window,Document],{addEvent:function(e,g){var h=this.retrieve("events",{});h[e]=h[e]||{keys:[],values:[]};if(h[e].keys.contains(g)){return this; +}h[e].keys.push(g);var f=e,a=Element.Events.get(e),c=g,i=this;if(a){if(a.onAdd){a.onAdd.call(this,g);}if(a.condition){c=function(j){if(a.condition.call(this,j)){return g.call(this,j); +}return true;};}f=a.base||f;}var d=function(){return g.call(i);};var b=Element.NativeEvents[f];if(b){if(b==2){d=function(j){j=new Event(j,i.getWindow()); +if(c.call(i,j)===false){j.stop();}};}this.addListener(f,d);}h[e].values.push(d);return this;},removeEvent:function(c,b){var a=this.retrieve("events");if(!a||!a[c]){return this; +}var f=a[c].keys.indexOf(b);if(f==-1){return this;}a[c].keys.splice(f,1);var e=a[c].values.splice(f,1)[0];var d=Element.Events.get(c);if(d){if(d.onRemove){d.onRemove.call(this,b); +}c=d.base||c;}return(Element.NativeEvents[c])?this.removeListener(c,e):this;},addEvents:function(a){for(var b in a){this.addEvent(b,a[b]);}return this; +},removeEvents:function(a){var c;if($type(a)=="object"){for(c in a){this.removeEvent(c,a[c]);}return this;}var b=this.retrieve("events");if(!b){return this; +}if(!a){for(c in b){this.removeEvents(c);}this.eliminate("events");}else{if(b[a]){while(b[a].keys[0]){this.removeEvent(a,b[a].keys[0]);}b[a]=null;}}return this; +},fireEvent:function(d,b,a){var c=this.retrieve("events");if(!c||!c[d]){return this;}c[d].keys.each(function(e){e.create({bind:this,delay:a,"arguments":b})(); +},this);return this;},cloneEvents:function(d,a){d=document.id(d);var c=d.retrieve("events");if(!c){return this;}if(!a){for(var b in c){this.cloneEvents(d,b); +}}else{if(c[a]){c[a].keys.each(function(e){this.addEvent(a,e);},this);}}return this;}});Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:1,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1}; +(function(){var a=function(b){var c=b.relatedTarget;if(c==undefined){return true;}if(c===false){return false;}return($type(this)!="document"&&c!=this&&c.prefix!="xul"&&!this.hasChild(c)); +};Element.Events=new Hash({mouseenter:{base:"mouseover",condition:a},mouseleave:{base:"mouseout",condition:a},mousewheel:{base:(Browser.Engine.gecko)?"DOMMouseScroll":"mousewheel"}}); +})();Element.Properties.styles={set:function(a){this.setStyles(a);}};Element.Properties.opacity={set:function(a,b){if(!b){if(a==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden"; +}}else{if(this.style.visibility!="visible"){this.style.visibility="visible";}}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1;}if(Browser.Engine.trident){this.style.filter=(a==1)?"":"alpha(opacity="+a*100+")"; +}this.style.opacity=a;this.store("opacity",a);},get:function(){return this.retrieve("opacity",1);}};Element.implement({setOpacity:function(a){return this.set("opacity",a,true); +},getOpacity:function(){return this.get("opacity");},setStyle:function(b,a){switch(b){case"opacity":return this.set("opacity",parseFloat(a));case"float":b=(Browser.Engine.trident)?"styleFloat":"cssFloat"; +}b=b.camelCase();if($type(a)!="string"){var c=(Element.Styles.get(b)||"@").split(" ");a=$splat(a).map(function(e,d){if(!c[d]){return"";}return($type(e)=="number")?c[d].replace("@",Math.round(e)):e; +}).join(" ");}else{if(a==String(Number(a))){a=Math.round(a);}}this.style[b]=a;return this;},getStyle:function(g){switch(g){case"opacity":return this.get("opacity"); +case"float":g=(Browser.Engine.trident)?"styleFloat":"cssFloat";}g=g.camelCase();var a=this.style[g];if(!$chk(a)){a=[];for(var f in Element.ShortStyles){if(g!=f){continue; +}for(var e in Element.ShortStyles[f]){a.push(this.getStyle(e));}return a.join(" ");}a=this.getComputedStyle(g);}if(a){a=String(a);var c=a.match(/rgba?\([\d\s,]+\)/); +if(c){a=a.replace(c[0],c[0].rgbToHex());}}if(Browser.Engine.presto||(Browser.Engine.trident&&!$chk(parseInt(a,10)))){if(g.test(/^(height|width)$/)){var b=(g=="width")?["left","right"]:["top","bottom"],d=0; +b.each(function(h){d+=this.getStyle("border-"+h+"-width").toInt()+this.getStyle("padding-"+h).toInt();},this);return this["offset"+g.capitalize()]-d+"px"; +}if((Browser.Engine.presto)&&String(a).test("px")){return a;}if(g.test(/(border(.+)Width|margin|padding)/)){return"0px";}}return a;},setStyles:function(b){for(var a in b){this.setStyle(a,b[a]); +}return this;},getStyles:function(){var a={};Array.flatten(arguments).each(function(b){a[b]=this.getStyle(b);},this);return a;}});Element.Styles=new Hash({left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"}); +Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};["Top","Right","Bottom","Left"].each(function(g){var f=Element.ShortStyles; +var b=Element.Styles;["margin","padding"].each(function(h){var i=h+g;f[h][i]=b[i]="@px";});var e="border"+g;f.border[e]=b[e]="@px @ rgb(@, @, @)";var d=e+"Width",a=e+"Style",c=e+"Color"; +f[e]={};f.borderWidth[d]=f[e][d]=b[d]="@px";f.borderStyle[a]=f[e][a]=b[a]="@";f.borderColor[c]=f[e][c]=b[c]="rgb(@, @, @)";});(function(){Element.implement({scrollTo:function(h,i){if(b(this)){this.getWindow().scrollTo(h,i); +}else{this.scrollLeft=h;this.scrollTop=i;}return this;},getSize:function(){if(b(this)){return this.getWindow().getSize();}return{x:this.offsetWidth,y:this.offsetHeight}; +},getScrollSize:function(){if(b(this)){return this.getWindow().getScrollSize();}return{x:this.scrollWidth,y:this.scrollHeight};},getScroll:function(){if(b(this)){return this.getWindow().getScroll(); +}return{x:this.scrollLeft,y:this.scrollTop};},getScrolls:function(){var i=this,h={x:0,y:0};while(i&&!b(i)){h.x+=i.scrollLeft;h.y+=i.scrollTop;i=i.parentNode; +}return h;},getOffsetParent:function(){var h=this;if(b(h)){return null;}if(!Browser.Engine.trident){return h.offsetParent;}while((h=h.parentNode)&&!b(h)){if(d(h,"position")!="static"){return h; +}}return null;},getOffsets:function(){if(this.getBoundingClientRect){var j=this.getBoundingClientRect(),m=document.id(this.getDocument().documentElement),p=m.getScroll(),k=this.getScrolls(),i=this.getScroll(),h=(d(this,"position")=="fixed"); +return{x:j.left.toInt()+k.x-i.x+((h)?0:p.x)-m.clientLeft,y:j.top.toInt()+k.y-i.y+((h)?0:p.y)-m.clientTop};}var l=this,n={x:0,y:0};if(b(this)){return n; +}while(l&&!b(l)){n.x+=l.offsetLeft;n.y+=l.offsetTop;if(Browser.Engine.gecko){if(!f(l)){n.x+=c(l);n.y+=g(l);}var o=l.parentNode;if(o&&d(o,"overflow")!="visible"){n.x+=c(o); +n.y+=g(o);}}else{if(l!=this&&Browser.Engine.webkit){n.x+=c(l);n.y+=g(l);}}l=l.offsetParent;}if(Browser.Engine.gecko&&!f(this)){n.x-=c(this);n.y-=g(this); +}return n;},getPosition:function(k){if(b(this)){return{x:0,y:0};}var l=this.getOffsets(),i=this.getScrolls();var h={x:l.x-i.x,y:l.y-i.y};var j=(k&&(k=document.id(k)))?k.getPosition():{x:0,y:0}; +return{x:h.x-j.x,y:h.y-j.y};},getCoordinates:function(j){if(b(this)){return this.getWindow().getCoordinates();}var h=this.getPosition(j),i=this.getSize(); +var k={left:h.x,top:h.y,width:i.x,height:i.y};k.right=k.left+k.width;k.bottom=k.top+k.height;return k;},computePosition:function(h){return{left:h.x-e(this,"margin-left"),top:h.y-e(this,"margin-top")}; +},setPosition:function(h){return this.setStyles(this.computePosition(h));}});Native.implement([Document,Window],{getSize:function(){if(Browser.Engine.presto||Browser.Engine.webkit){var i=this.getWindow(); +return{x:i.innerWidth,y:i.innerHeight};}var h=a(this);return{x:h.clientWidth,y:h.clientHeight};},getScroll:function(){var i=this.getWindow(),h=a(this); +return{x:i.pageXOffset||h.scrollLeft,y:i.pageYOffset||h.scrollTop};},getScrollSize:function(){var i=a(this),h=this.getSize();return{x:Math.max(i.scrollWidth,h.x),y:Math.max(i.scrollHeight,h.y)}; +},getPosition:function(){return{x:0,y:0};},getCoordinates:function(){var h=this.getSize();return{top:0,left:0,bottom:h.y,right:h.x,height:h.y,width:h.x}; +}});var d=Element.getComputedStyle;function e(h,i){return d(h,i).toInt()||0;}function f(h){return d(h,"-moz-box-sizing")=="border-box";}function g(h){return e(h,"border-top-width"); +}function c(h){return e(h,"border-left-width");}function b(h){return(/^(?:body|html)$/i).test(h.tagName);}function a(h){var i=h.getDocument();return(!i.compatMode||i.compatMode=="CSS1Compat")?i.html:i.body; +}})();Element.alias("setPosition","position");Native.implement([Window,Document,Element],{getHeight:function(){return this.getSize().y;},getWidth:function(){return this.getSize().x; +},getScrollTop:function(){return this.getScroll().y;},getScrollLeft:function(){return this.getScroll().x;},getScrollHeight:function(){return this.getScrollSize().y; +},getScrollWidth:function(){return this.getScrollSize().x;},getTop:function(){return this.getPosition().y;},getLeft:function(){return this.getPosition().x; +}});Native.implement([Document,Element],{getElements:function(h,g){h=h.split(",");var c,e={};for(var d=0,b=h.length;d1),cash:!g});}});Element.implement({match:function(b){if(!b||(b==this)){return true; +}var d=Selectors.Utils.parseTagAndID(b);var a=d[0],e=d[1];if(!Selectors.Filters.byID(this,e)||!Selectors.Filters.byTag(this,a)){return false;}var c=Selectors.Utils.parseSelector(b); +return(c)?Selectors.Utils.filter(this,c,{}):true;}});var Selectors={Cache:{nth:{},parsed:{}}};Selectors.RegExps={id:(/#([\w-]+)/),tag:(/^(\w+|\*)/),quick:(/^(\w+|\*)$/),splitter:(/\s*([+>~\s])\s*([a-zA-Z#.*:\[])/g),combined:(/\.([\w-]+)|\[(\w+)(?:([!*^$~|]?=)(["']?)([^\4]*?)\4)?\]|:([\w-]+)(?:\(["']?(.*?)?["']?\)|$)/g)}; +Selectors.Utils={chk:function(b,c){if(!c){return true;}var a=$uid(b);if(!c[a]){return c[a]=true;}return false;},parseNthArgument:function(h){if(Selectors.Cache.nth[h]){return Selectors.Cache.nth[h]; +}var e=h.match(/^([+-]?\d*)?([a-z]+)?([+-]?\d*)?$/);if(!e){return false;}var g=parseInt(e[1],10);var d=(g||g===0)?g:1;var f=e[2]||false;var c=parseInt(e[3],10)||0; +if(d!=0){c--;while(c<1){c+=d;}while(c>=d){c-=d;}}else{d=c;f="index";}switch(f){case"n":e={a:d,b:c,special:"n"};break;case"odd":e={a:2,b:0,special:"n"}; +break;case"even":e={a:2,b:1,special:"n"};break;case"first":e={a:0,special:"index"};break;case"last":e={special:"last-child"};break;case"only":e={special:"only-child"}; +break;default:e={a:(d-1),special:"index"};}return Selectors.Cache.nth[h]=e;},parseSelector:function(e){if(Selectors.Cache.parsed[e]){return Selectors.Cache.parsed[e]; +}var d,h={classes:[],pseudos:[],attributes:[]};while((d=Selectors.RegExps.combined.exec(e))){var i=d[1],g=d[2],f=d[3],b=d[5],c=d[6],j=d[7];if(i){h.classes.push(i); +}else{if(c){var a=Selectors.Pseudo.get(c);if(a){h.pseudos.push({parser:a,argument:j});}else{h.attributes.push({name:c,operator:"=",value:j});}}else{if(g){h.attributes.push({name:g,operator:f,value:b}); +}}}}if(!h.classes.length){delete h.classes;}if(!h.attributes.length){delete h.attributes;}if(!h.pseudos.length){delete h.pseudos;}if(!h.classes&&!h.attributes&&!h.pseudos){h=null; +}return Selectors.Cache.parsed[e]=h;},parseTagAndID:function(b){var a=b.match(Selectors.RegExps.tag);var c=b.match(Selectors.RegExps.id);return[(a)?a[1]:"*",(c)?c[1]:false]; +},filter:function(f,c,e){var d;if(c.classes){for(d=c.classes.length;d--;d){var g=c.classes[d];if(!Selectors.Filters.byClass(f,g)){return false;}}}if(c.attributes){for(d=c.attributes.length; +d--;d){var b=c.attributes[d];if(!Selectors.Filters.byAttribute(f,b.name,b.operator,b.value)){return false;}}}if(c.pseudos){for(d=c.pseudos.length;d--;d){var a=c.pseudos[d]; +if(!Selectors.Filters.byPseudo(f,a.parser,a.argument,e)){return false;}}}return true;},getByTagAndID:function(b,a,d){if(d){var c=(b.getElementById)?b.getElementById(d,true):Element.getElementById(b,d,true); +return(c&&Selectors.Filters.byTag(c,a))?[c]:[];}else{return b.getElementsByTagName(a);}},search:function(o,h,t){var b=[];var c=h.trim().replace(Selectors.RegExps.splitter,function(k,j,i){b.push(j); +return":)"+i;}).split(":)");var p,e,A;for(var z=0,v=c.length;z":function(h,g,j,a,f){var c=Selectors.Utils.getByTagAndID(g,j,a);for(var e=0,d=c.length;ea){return false;}}return(c==a);},even:function(b,a){return Selectors.Pseudo["nth-child"].call(this,"2n+1",a); +},odd:function(b,a){return Selectors.Pseudo["nth-child"].call(this,"2n",a);},selected:function(){return this.selected;},enabled:function(){return(this.disabled===false); +}});Element.Events.domready={onAdd:function(a){if(Browser.loaded){a.call(this);}}};(function(){var b=function(){if(Browser.loaded){return;}Browser.loaded=true; +window.fireEvent("domready");document.fireEvent("domready");};window.addEvent("load",b);if(Browser.Engine.trident){var a=document.createElement("div"); +(function(){($try(function(){a.doScroll();return document.id(a).inject(document.body).set("html","temp").dispose();}))?b():arguments.callee.delay(50);})(); +}else{if(Browser.Engine.webkit&&Browser.Engine.version<525){(function(){(["loaded","complete"].contains(document.readyState))?b():arguments.callee.delay(50); +})();}else{document.addEvent("DOMContentLoaded",b);}}})();var JSON=new Hash(this.JSON&&{stringify:JSON.stringify,parse:JSON.parse}).extend({$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(a){return JSON.$specialChars[a]||"\\u00"+Math.floor(a.charCodeAt()/16).toString(16)+(a.charCodeAt()%16).toString(16); +},encode:function(b){switch($type(b)){case"string":return'"'+b.replace(/[\x00-\x1f\\"]/g,JSON.$replaceChars)+'"';case"array":return"["+String(b.map(JSON.encode).clean())+"]"; +case"object":case"hash":var a=[];Hash.each(b,function(e,d){var c=JSON.encode(e);if(c){a.push(JSON.encode(d)+":"+c);}});return"{"+a+"}";case"number":case"boolean":return String(b); +case false:return"null";}return null;},decode:function(string,secure){if($type(string)!="string"||!string.length){return null;}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null; +}return eval("("+string+")");}});Native.implement([Hash,Array,String,Number],{toJSON:function(){return JSON.encode(this);}});var Cookie=new Class({Implements:Options,options:{path:false,domain:false,duration:false,secure:false,document:document},initialize:function(b,a){this.key=b; +this.setOptions(a);},write:function(b){b=encodeURIComponent(b);if(this.options.domain){b+="; domain="+this.options.domain;}if(this.options.path){b+="; path="+this.options.path; +}if(this.options.duration){var a=new Date();a.setTime(a.getTime()+this.options.duration*24*60*60*1000);b+="; expires="+a.toGMTString();}if(this.options.secure){b+="; secure"; +}this.options.document.cookie=this.key+"="+b;return this;},read:function(){var a=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.escapeRegExp()+"=([^;]*)"); +return(a)?decodeURIComponent(a[1]):null;},dispose:function(){new Cookie(this.key,$merge(this.options,{duration:-1})).write("");return this;}});Cookie.write=function(b,c,a){return new Cookie(b,a).write(c); +};Cookie.read=function(a){return new Cookie(a).read();};Cookie.dispose=function(b,a){return new Cookie(b,a).dispose();};var Swiff=new Class({Implements:[Options],options:{id:null,height:1,width:1,container:null,properties:{},params:{quality:"high",allowScriptAccess:"always",wMode:"transparent",swLiveConnect:true},callBacks:{},vars:{}},toElement:function(){return this.object; +},initialize:function(l,m){this.instance="Swiff_"+$time();this.setOptions(m);m=this.options;var b=this.id=m.id||this.instance;var a=document.id(m.container); +Swiff.CallBacks[this.instance]={};var e=m.params,g=m.vars,f=m.callBacks;var h=$extend({height:m.height,width:m.width},m.properties);var k=this;for(var d in f){Swiff.CallBacks[this.instance][d]=(function(n){return function(){return n.apply(k.object,arguments); +};})(f[d]);g[d]="Swiff.CallBacks."+this.instance+"."+d;}e.flashVars=Hash.toQueryString(g);if(Browser.Engine.trident){h.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; +e.movie=l;}else{h.type="application/x-shockwave-flash";h.data=l;}var j=''; +}}j+="";this.object=((a)?a.empty():new Element("div")).set("html",j).firstChild;},replaces:function(a){a=document.id(a,true);a.parentNode.replaceChild(this.toElement(),a); +return this;},inject:function(a){document.id(a,true).appendChild(this.toElement());return this;},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].extend(arguments)); +}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction(''+__flash__argumentsToXML(arguments,2)+""); +return eval(rs);};var Fx=new Class({Implements:[Chain,Events,Options],options:{fps:50,unit:false,duration:500,link:"ignore"},initialize:function(a){this.subject=this.subject||this; +this.setOptions(a);this.options.duration=Fx.Durations[this.options.duration]||this.options.duration.toInt();var b=this.options.wait;if(b===false){this.options.link="cancel"; +}},getTransition:function(){return function(a){return -(Math.cos(Math.PI*a)-1)/2;};},step:function(){var a=$time();if(a=(7-4*d)/11){e=c*c-Math.pow((11-6*d-11*f)/4,2); +break;}}return e;},Elastic:function(b,a){return Math.pow(2,10*--b)*Math.cos(20*b*Math.PI*(a[0]||1)/3);}});["Quad","Cubic","Quart","Quint"].each(function(b,a){Fx.Transitions[b]=new Fx.Transition(function(c){return Math.pow(c,[a+2]); +});});var Request=new Class({Implements:[Chain,Events,Options],options:{url:"",data:"",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*"},async:true,format:false,method:"post",link:"ignore",isSuccess:null,emulation:true,urlEncoded:true,encoding:"utf-8",evalScripts:false,evalResponse:false,noCache:false},initialize:function(a){this.xhr=new Browser.Request(); +this.setOptions(a);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers=new Hash(this.options.headers);},onStateChange:function(){if(this.xhr.readyState!=4||!this.running){return; +}this.running=false;this.status=0;$try(function(){this.status=this.xhr.status;}.bind(this));this.xhr.onreadystatechange=$empty;if(this.options.isSuccess.call(this,this.status)){this.response={text:this.xhr.responseText,xml:this.xhr.responseXML}; +this.success(this.response.text,this.response.xml);}else{this.response={text:null,xml:null};this.failure();}},isSuccess:function(){return((this.status>=200)&&(this.status<300)); +},processScripts:function(a){if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){return $exec(a);}return a.stripScripts(this.options.evalScripts); +},success:function(b,a){this.onSuccess(this.processScripts(b),a);},onSuccess:function(){this.fireEvent("complete",arguments).fireEvent("success",arguments).callChain(); +},failure:function(){this.onFailure();},onFailure:function(){this.fireEvent("complete").fireEvent("failure",this.xhr);},setHeader:function(a,b){this.headers.set(a,b); +return this;},getHeader:function(a){return $try(function(){return this.xhr.getResponseHeader(a);}.bind(this));},check:function(){if(!this.running){return true; +}switch(this.options.link){case"cancel":this.cancel();return true;case"chain":this.chain(this.caller.bind(this,arguments));return false;}return false;},send:function(k){if(!this.check(k)){return this; +}this.running=true;var i=$type(k);if(i=="string"||i=="element"){k={data:k};}var d=this.options;k=$extend({data:d.data,url:d.url,method:d.method},k);var g=k.data,b=String(k.url),a=k.method.toLowerCase(); +switch($type(g)){case"element":g=document.id(g).toQueryString();break;case"object":case"hash":g=Hash.toQueryString(g);}if(this.options.format){var j="format="+this.options.format; +g=(g)?j+"&"+g:j;}if(this.options.emulation&&!["get","post"].contains(a)){var h="_method="+a;g=(g)?h+"&"+g:h;a="post";}if(this.options.urlEncoded&&a=="post"){var c=(this.options.encoding)?"; charset="+this.options.encoding:""; +this.headers.set("Content-type","application/x-www-form-urlencoded"+c);}if(this.options.noCache){var f="noCache="+new Date().getTime();g=(g)?f+"&"+g:f; +}var e=b.lastIndexOf("/");if(e>-1&&(e=b.indexOf("#"))>-1){b=b.substr(0,e);}if(g&&a=="get"){b=b+(b.contains("?")?"&":"?")+g;g=null;}this.xhr.open(a.toUpperCase(),b,this.options.async); +this.xhr.onreadystatechange=this.onStateChange.bind(this);this.headers.each(function(m,l){try{this.xhr.setRequestHeader(l,m);}catch(n){this.fireEvent("exception",[l,m]); +}},this);this.fireEvent("request");this.xhr.send(g);if(!this.options.async){this.onStateChange();}return this;},cancel:function(){if(!this.running){return this; +}this.running=false;this.xhr.abort();this.xhr.onreadystatechange=$empty;this.xhr=new Browser.Request();this.fireEvent("cancel");return this;}});(function(){var a={}; +["get","post","put","delete","GET","POST","PUT","DELETE"].each(function(b){a[b]=function(){var c=Array.link(arguments,{url:String.type,data:$defined}); +return this.send($extend(c,{method:b}));};});Request.implement(a);})();Element.Properties.send={set:function(a){var b=this.retrieve("send");if(b){b.cancel(); +}return this.eliminate("send").store("send:options",$extend({data:this,link:"cancel",method:this.get("method")||"post",url:this.get("action")},a));},get:function(a){if(a||!this.retrieve("send")){if(a||!this.retrieve("send:options")){this.set("send",a); +}this.store("send",new Request(this.retrieve("send:options")));}return this.retrieve("send");}};Element.implement({send:function(a){var b=this.get("send"); +b.send({data:this,url:a||b.options.url});return this;}});Request.HTML=new Class({Extends:Request,options:{update:false,append:false,evalScripts:true,filter:false},processHTML:function(c){var b=c.match(/]*>([\s\S]*?)<\/body>/i); +c=(b)?b[1]:c;var a=new Element("div");return $try(function(){var d=""+c+"",g;if(Browser.Engine.trident){g=new ActiveXObject("Microsoft.XMLDOM"); +g.async=false;g.loadXML(d);}else{g=new DOMParser().parseFromString(d,"text/xml");}d=g.getElementsByTagName("root")[0];if(!d){return null;}for(var f=0,e=d.childNodes.length; +f. Copyright (c) 2006-2009 Aaron Newton , Valerio Proietti & the MooTools team , MIT Style License. + +MooTools.More={version:"1.2.4.4",build:"6f6057dc645fdb7547689183b2311063bd653ddf"};Class.Mutators.Binds=function(a){return a;};Class.Mutators.initialize=function(a){return function(){$splat(this.Binds).each(function(b){var c=this[b]; +if(c){this[b]=c.bind(this);}},this);return a.apply(this,arguments);};};Array.implement({min:function(){return Math.min.apply(null,this);},max:function(){return Math.max.apply(null,this); +},average:function(){return this.length?this.sum()/this.length:0;},sum:function(){var a=0,b=this.length;if(b){do{a+=this[--b];}while(b);}return a;},unique:function(){return[].combine(this); +},shuffle:function(){for(var b=this.length;b&&--b;){var a=this[b],c=Math.floor(Math.random()*(b+1));this[b]=this[c];this[c]=a;}return this;}});Hash.implement({getFromPath:function(a){var b=this.getClean(); +a.replace(/\[([^\]]+)\]|\.([^.[]+)|[^[.]+/g,function(c){if(!b){return null;}var d=arguments[2]||arguments[1]||arguments[0];b=(d in b)?b[d]:null;return c; +});return b;},cleanValues:function(a){a=a||$defined;this.each(function(c,b){if(!a(c)){this.erase(b);}},this);return this;},run:function(){var a=arguments; +this.each(function(c,b){if($type(c)=="function"){c.run(a);}});}});(function(){var b=["À","à","Ã","á","Â","â","Ã","ã","Ä","ä","Ã…","Ã¥","Ä‚","ă","Ä„","Ä…","Ć","ć","ÄŒ","Ä","Ç","ç","ÄŽ","Ä","Ä","Ä‘","È","è","É","é","Ê","ê","Ë","ë","Äš","Ä›","Ę","Ä™","Äž","ÄŸ","ÃŒ","ì","Ã","í","ÃŽ","î","Ã","ï","Ĺ","ĺ","Ľ","ľ","Å","Å‚","Ñ","ñ","Ň","ň","Ń","Å„","Ã’","ò","Ó","ó","Ô","ô","Õ","õ","Ö","ö","Ø","ø","Å‘","Ř","Å™","Å”","Å•","Å ","Å¡","Åž","ÅŸ","Åš","Å›","Ť","Å¥","Ť","Å¥","Å¢","Å£","Ù","ù","Ú","ú","Û","û","Ü","ü","Å®","ů","Ÿ","ÿ","ý","Ã","Ž","ž","Ź","ź","Å»","ż","Þ","þ","Ã","ð","ß","Å’","Å“","Æ","æ","µ"]; +var a=["A","a","A","a","A","a","A","a","Ae","ae","A","a","A","a","A","a","C","c","C","c","C","c","D","d","D","d","E","e","E","e","E","e","E","e","E","e","E","e","G","g","I","i","I","i","I","i","I","i","L","l","L","l","L","l","N","n","N","n","N","n","O","o","O","o","O","o","O","o","Oe","oe","O","o","o","R","r","R","r","S","s","S","s","S","s","T","t","T","t","T","t","U","u","U","u","U","u","Ue","ue","U","u","Y","y","Y","y","Z","z","Z","z","Z","z","TH","th","DH","dh","ss","OE","oe","AE","ae","u"]; +var d={"[\xa0\u2002\u2003\u2009]":" ","\xb7":"*","[\u2018\u2019]":"'","[\u201c\u201d]":'"',"\u2026":"...","\u2013":"-","\u2014":"--","\uFFFD":"»"}; +var c=function(e,f){e=e||"";var g=f?"<"+e+"[^>]*>([\\s\\S]*?)":"]+)?>";reg=new RegExp(g,"gi");return reg;};String.implement({standardize:function(){var e=this; +b.each(function(g,f){e=e.replace(new RegExp(g,"g"),a[f]);});return e;},repeat:function(e){return new Array(e+1).join(this);},pad:function(f,h,e){if(this.length>=f){return this; +}var g=(h==null?" ":""+h).repeat(f-this.length).substr(0,f-this.length);if(!e||e=="right"){return this+g;}if(e=="left"){return g+this;}return g.substr(0,(g.length/2).floor())+this+g.substr(0,(g.length/2).ceil()); +},getTags:function(e,f){return this.match(c(e,f))||[];},stripTags:function(e,f){return this.replace(c(e,f),"");},tidy:function(){var e=this.toString(); +$each(d,function(g,f){e=e.replace(new RegExp(f,"g"),g);});return e;}});})();String.implement({parseQueryString:function(){var b=this.split(/[&;]/),a={}; +if(b.length){b.each(function(g){var c=g.indexOf("="),d=c<0?[""]:g.substr(0,c).match(/[^\]\[]+/g),e=decodeURIComponent(g.substr(c+1)),f=a;d.each(function(j,h){var k=f[j]; +if(h0){a.pop(); +}else{if(d!="."){a.push(d);}}});return a.join("/")+"/";},combine:function(a){return a.value||a.scheme+"://"+(a.user?a.user+(a.password?":"+a.password:"")+"@":"")+(a.host||"")+(a.port&&a.port!=this.schemes[a.scheme]?":"+a.port:"")+(a.directory||"/")+(a.file||"")+(a.query?"?"+a.query:"")+(a.fragment?"#"+a.fragment:""); +},set:function(b,d,c){if(b=="value"){var a=d.match(URI.regs.scheme);if(a){a=a[1];}if(a&&!$defined(this.schemes[a.toLowerCase()])){this.parsed={scheme:a,value:d}; +}else{this.parsed=this.parse(d,(c||this).parsed)||(a?{scheme:a,value:d}:{value:d});}}else{if(b=="data"){this.setData(d);}else{this.parsed[b]=d;}}return this; +},get:function(a,b){switch(a){case"value":return this.combine(this.parsed,b?b.parsed:false);case"data":return this.getData();}return this.parsed[a]||""; +},go:function(){document.location.href=this.toString();},toURI:function(){return this;},getData:function(c,b){var a=this.get(b||"query");if(!$chk(a)){return c?null:{}; +}var d=a.parseQueryString();return c?d[c]:d;},setData:function(a,c,b){if(typeof a=="string"){data=this.getData();data[arguments[0]]=arguments[1];a=data; +}else{if(c){a=$merge(this.getData(),a);}}return this.set(b||"query",Hash.toQueryString(a));},clearData:function(a){return this.set(a||"query","");}});URI.prototype.toString=URI.prototype.valueOf=function(){return this.get("value"); +};URI.regs={endSlash:/\/$/,scheme:/^(\w+):/,directoryDot:/\.\/|\.$/};URI.base=new URI(document.getElements("base[href]",true).getLast(),{base:document.location}); +String.implement({toURI:function(a){return new URI(this,a);}});Element.implement({tidy:function(){this.set("value",this.get("value").tidy());},getTextInRange:function(b,a){return this.get("value").substring(b,a); +},getSelectedText:function(){if(this.setSelectionRange){return this.getTextInRange(this.getSelectionStart(),this.getSelectionEnd());}return document.selection.createRange().text; +},getSelectedRange:function(){if($defined(this.selectionStart)){return{start:this.selectionStart,end:this.selectionEnd};}var e={start:0,end:0};var a=this.getDocument().selection.createRange(); +if(!a||a.parentElement()!=this){return e;}var c=a.duplicate();if(this.type=="text"){e.start=0-c.moveStart("character",-100000);e.end=e.start+a.text.length; +}else{var b=this.get("value");var d=b.length;c.moveToElementText(this);c.setEndPoint("StartToEnd",a);if(c.text.length){d-=b.match(/[\n\r]*$/)[0].length; +}e.end=d-c.text.length;c.setEndPoint("StartToStart",a);e.start=d-c.text.length;}return e;},getSelectionStart:function(){return this.getSelectedRange().start; +},getSelectionEnd:function(){return this.getSelectedRange().end;},setCaretPosition:function(a){if(a=="end"){a=this.get("value").length;}this.selectRange(a,a); +return this;},getCaretPosition:function(){return this.getSelectedRange().start;},selectRange:function(e,a){if(this.setSelectionRange){this.focus();this.setSelectionRange(e,a); +}else{var c=this.get("value");var d=c.substr(e,a-e).replace(/\r/g,"").length;e=c.substr(0,e).replace(/\r/g,"").length;var b=this.createTextRange();b.collapse(true); +b.moveEnd("character",e+d);b.moveStart("character",e);b.select();}return this;},insertAtCursor:function(b,a){var d=this.getSelectedRange();var c=this.get("value"); +this.set("value",c.substring(0,d.start)+b+c.substring(d.end,c.length));if($pick(a,true)){this.selectRange(d.start,d.start+b.length);}else{this.setCaretPosition(d.start+b.length); +}return this;},insertAroundCursor:function(b,a){b=$extend({before:"",defaultMiddle:"",after:""},b);var c=this.getSelectedText()||b.defaultMiddle;var g=this.getSelectedRange(); +var f=this.get("value");if(g.start==g.end){this.set("value",f.substring(0,g.start)+b.before+c+b.after+f.substring(g.end,f.length));this.selectRange(g.start+b.before.length,g.end+b.before.length+c.length); +}else{var d=f.substring(g.start,g.end);this.set("value",f.substring(0,g.start)+b.before+d+b.after+f.substring(g.end,f.length));var e=g.start+b.before.length; +if($pick(a,true)){this.selectRange(e,e+d.length);}else{this.setCaretPosition(e+f.length);}}return this;}});Element.implement({measure:function(e){var g=function(h){return !!(!h||h.offsetHeight||h.offsetWidth); +};if(g(this)){return e.apply(this);}var d=this.getParent(),f=[],b=[];while(!g(d)&&d!=document.body){b.push(d.expose());d=d.getParent();}var c=this.expose(); +var a=e.apply(this);c();b.each(function(h){h();});return a;},expose:function(){if(this.getStyle("display")!="none"){return $empty;}var a=this.style.cssText; +this.setStyles({display:"block",position:"absolute",visibility:"hidden"});return function(){this.style.cssText=a;}.bind(this);},getDimensions:function(a){a=$merge({computeSize:false},a); +var f={};var d=function(g,e){return(e.computeSize)?g.getComputedSize(e):g.getSize();};var b=this.getParent("body");if(b&&this.getStyle("display")=="none"){f=this.measure(function(){return d(this,a); +});}else{if(b){try{f=d(this,a);}catch(c){}}else{f={x:0,y:0};}}return $chk(f.x)?$extend(f,{width:f.x,height:f.y}):$extend(f,{x:f.width,y:f.height});},getComputedSize:function(a){a=$merge({styles:["padding","border"],plains:{height:["top","bottom"],width:["left","right"]},mode:"both"},a); +var c={width:0,height:0};switch(a.mode){case"vertical":delete c.width;delete a.plains.width;break;case"horizontal":delete c.height;delete a.plains.height; +break;}var b=[];$each(a.plains,function(g,f){g.each(function(h){a.styles.each(function(i){b.push((i=="border")?i+"-"+h+"-width":i+"-"+h);});});});var e={}; +b.each(function(f){e[f]=this.getComputedStyle(f);},this);var d=[];$each(a.plains,function(g,f){var h=f.capitalize();c["total"+h]=c["computed"+h]=0;g.each(function(i){c["computed"+i.capitalize()]=0; +b.each(function(k,j){if(k.test(i)){e[k]=e[k].toInt()||0;c["total"+h]=c["total"+h]+e[k];c["computed"+i.capitalize()]=c["computed"+i.capitalize()]+e[k];}if(k.test(i)&&f!=k&&(k.test("border")||k.test("padding"))&&!d.contains(k)){d.push(k); +c["computed"+h]=c["computed"+h]-e[k];}});});});["Width","Height"].each(function(g){var f=g.toLowerCase();if(!$chk(c[f])){return;}c[f]=c[f]+this["offset"+g]+c["computed"+g]; +c["total"+g]=c[f]+c["total"+g];delete c["computed"+g];},this);return $extend(e,c);}});(function(){var a=Element.prototype.position;Element.implement({position:function(g){if(g&&($defined(g.x)||$defined(g.y))){return a?a.apply(this,arguments):this; +}$each(g||{},function(u,t){if(!$defined(u)){delete g[t];}});g=$merge({relativeTo:document.body,position:{x:"center",y:"center"},edge:false,offset:{x:0,y:0},returnPos:false,relFixedPosition:false,ignoreMargins:false,ignoreScroll:false,allowNegative:false},g); +var r={x:0,y:0},e=false;var c=this.measure(function(){return document.id(this.getOffsetParent());});if(c&&c!=this.getDocument().body){r=c.measure(function(){return this.getPosition(); +});e=c!=document.id(g.relativeTo);g.offset.x=g.offset.x-r.x;g.offset.y=g.offset.y-r.y;}var s=function(t){if($type(t)!="string"){return t;}t=t.toLowerCase(); +var u={};if(t.test("left")){u.x="left";}else{if(t.test("right")){u.x="right";}else{u.x="center";}}if(t.test("upper")||t.test("top")){u.y="top";}else{if(t.test("bottom")){u.y="bottom"; +}else{u.y="center";}}return u;};g.edge=s(g.edge);g.position=s(g.position);if(!g.edge){if(g.position.x=="center"&&g.position.y=="center"){g.edge={x:"center",y:"center"}; +}else{g.edge={x:"left",y:"top"};}}this.setStyle("position","absolute");var f=document.id(g.relativeTo)||document.body,d=f==document.body?window.getScroll():f.getPosition(),l=d.y,h=d.x; +var n=this.getDimensions({computeSize:true,styles:["padding","border","margin"]});var j={},o=g.offset.y,q=g.offset.x,k=window.getSize();switch(g.position.x){case"left":j.x=h+q; +break;case"right":j.x=h+q+f.offsetWidth;break;default:j.x=h+((f==document.body?k.x:f.offsetWidth)/2)+q;break;}switch(g.position.y){case"top":j.y=l+o;break; +case"bottom":j.y=l+o+f.offsetHeight;break;default:j.y=l+((f==document.body?k.y:f.offsetHeight)/2)+o;break;}if(g.edge){var b={};switch(g.edge.x){case"left":b.x=0; +break;case"right":b.x=-n.x-n.computedRight-n.computedLeft;break;default:b.x=-(n.totalWidth/2);break;}switch(g.edge.y){case"top":b.y=0;break;case"bottom":b.y=-n.y-n.computedTop-n.computedBottom; +break;default:b.y=-(n.totalHeight/2);break;}j.x+=b.x;j.y+=b.y;}j={left:((j.x>=0||e||g.allowNegative)?j.x:0).toInt(),top:((j.y>=0||e||g.allowNegative)?j.y:0).toInt()}; +var i={left:"x",top:"y"};["minimum","maximum"].each(function(t){["left","top"].each(function(u){var v=g[t]?g[t][i[u]]:null;if(v!=null&&j[u]0&&b>0)?true:this.isDisplayed();},toggle:function(){return this[this.isDisplayed()?"hide":"show"](); +},hide:function(){var b;try{b=this.getStyle("display");}catch(a){}return this.store("originalDisplay",b||"").setStyle("display","none");},show:function(a){a=a||this.retrieve("originalDisplay")||"block"; +return this.setStyle("display",(a=="none")?"block":a);},swapClass:function(a,b){return this.removeClass(a).addClass(b);}});Fx.Elements=new Class({Extends:Fx.CSS,initialize:function(b,a){this.elements=this.subject=$$(b); +this.parent(a);},compute:function(g,h,j){var c={};for(var d in g){var a=g[d],e=h[d],f=c[d]={};for(var b in a){f[b]=this.parent(a[b],e[b],j);}}return c; +},set:function(b){for(var c in b){var a=b[c];for(var d in a){this.render(this.elements[c],d,a[d],this.options.unit);}}return this;},start:function(c){if(!this.check(c)){return this; +}var h={},j={};for(var d in c){var f=c[d],a=h[d]={},g=j[d]={};for(var b in f){var e=this.prepare(this.elements[d],b,f[b]);a[b]=e.from;g[b]=e.to;}}return this.parent(h,j); +}});Fx.Accordion=new Class({Extends:Fx.Elements,options:{display:0,show:false,height:true,width:false,opacity:true,alwaysHide:false,trigger:"click",initialDisplayFx:true,returnHeightToAuto:true},initialize:function(){var c=Array.link(arguments,{container:Element.type,options:Object.type,togglers:$defined,elements:$defined}); +this.parent(c.elements,c.options);this.togglers=$$(c.togglers);this.previous=-1;this.internalChain=new Chain();if(this.options.alwaysHide){this.options.wait=true; +}if($chk(this.options.show)){this.options.display=false;this.previous=this.options.show;}if(this.options.start){this.options.display=false;this.options.show=false; +}this.effects={};if(this.options.opacity){this.effects.opacity="fullOpacity";}if(this.options.width){this.effects.width=this.options.fixedWidth?"fullWidth":"offsetWidth"; +}if(this.options.height){this.effects.height=this.options.fixedHeight?"fullHeight":"scrollHeight";}for(var b=0,a=this.togglers.length;b0&&this.options.height)||h.offsetWidth>0&&this.options.width)){f=true; +this.selfHidden=true;}}this.fireEvent(f?"background":"active",[this.togglers[g],h]);for(var j in this.effects){e[g][j]=f?0:h[this.effects[j]];}},this); +this.internalChain.chain(function(){if(this.options.returnHeightToAuto&&!this.selfHidden){var f=this.elements[a];if(f){f.setStyle("height","auto");}}}.bind(this)); +return b?this.start(e):this.set(e);}});var Accordion=new Class({Extends:Fx.Accordion,initialize:function(){this.parent.apply(this,arguments);var a=Array.link(arguments,{container:Element.type}); +this.container=a.container;},addSection:function(c,b,e){c=document.id(c);b=document.id(b);var d=this.togglers.contains(c);var a=this.togglers.length;if(a&&(!d||e)){e=$pick(e,a-1); +c.inject(this.togglers[e],"before");b.inject(c,"after");}else{if(this.container&&!d){c.inject(this.container);b.inject(this.container);}}return this.parent.apply(this,arguments); +}});Fx.Move=new Class({Extends:Fx.Morph,options:{relativeTo:document.body,position:"center",edge:false,offset:{x:0,y:0}},start:function(a){return this.parent(this.element.position($merge(this.options,a,{returnPos:true}))); +}});Element.Properties.move={set:function(a){var b=this.retrieve("move");if(b){b.cancel();}return this.eliminate("move").store("move:options",$extend({link:"cancel"},a)); +},get:function(a){if(a||!this.retrieve("move")){if(a||!this.retrieve("move:options")){this.set("move",a);}this.store("move",new Fx.Move(this,this.retrieve("move:options"))); +}return this.retrieve("move");}};Element.implement({move:function(a){this.get("move").start(a);return this;}});Fx.Reveal=new Class({Extends:Fx.Morph,options:{link:"cancel",styles:["padding","border","margin"],transitionOpacity:!Browser.Engine.trident4,mode:"vertical",display:"block",hideInputs:Browser.Engine.trident?"select, input, textarea, object, embed":false},dissolve:function(){try{if(!this.hiding&&!this.showing){if(this.element.getStyle("display")!="none"){this.hiding=true; +this.showing=false;this.hidden=true;this.cssText=this.element.style.cssText;var d=this.element.getComputedSize({styles:this.options.styles,mode:this.options.mode}); +this.element.setStyle("display",this.options.display);if(this.options.transitionOpacity){d.opacity=1;}var b={};$each(d,function(f,e){b[e]=[f,0];},this); +this.element.setStyle("overflow","hidden");var a=this.options.hideInputs?this.element.getElements(this.options.hideInputs):null;this.$chain.unshift(function(){if(this.hidden){this.hiding=false; +$each(d,function(f,e){d[e]=f;},this);this.element.style.cssText=this.cssText;this.element.setStyle("display","none");if(a){a.setStyle("visibility","visible"); +}}this.fireEvent("hide",this.element);this.callChain();}.bind(this));if(a){a.setStyle("visibility","hidden");}this.start(b);}else{this.callChain.delay(10,this); +this.fireEvent("complete",this.element);this.fireEvent("hide",this.element);}}else{if(this.options.link=="chain"){this.chain(this.dissolve.bind(this)); +}else{if(this.options.link=="cancel"&&!this.hiding){this.cancel();this.dissolve();}}}}catch(c){this.hiding=false;this.element.setStyle("display","none"); +this.callChain.delay(10,this);this.fireEvent("complete",this.element);this.fireEvent("hide",this.element);}return this;},reveal:function(){try{if(!this.showing&&!this.hiding){if(this.element.getStyle("display")=="none"||this.element.getStyle("visiblity")=="hidden"||this.element.getStyle("opacity")==0){this.showing=true; +this.hiding=this.hidden=false;var d;this.cssText=this.element.style.cssText;this.element.measure(function(){d=this.element.getComputedSize({styles:this.options.styles,mode:this.options.mode}); +}.bind(this));$each(d,function(f,e){d[e]=f;});if($chk(this.options.heightOverride)){d.height=this.options.heightOverride.toInt();}if($chk(this.options.widthOverride)){d.width=this.options.widthOverride.toInt(); +}if(this.options.transitionOpacity){this.element.setStyle("opacity",0);d.opacity=1;}var b={height:0,display:this.options.display};$each(d,function(f,e){b[e]=0; +});this.element.setStyles($merge(b,{overflow:"hidden"}));var a=this.options.hideInputs?this.element.getElements(this.options.hideInputs):null;if(a){a.setStyle("visibility","hidden"); +}this.start(d);this.$chain.unshift(function(){this.element.style.cssText=this.cssText;this.element.setStyle("display",this.options.display);if(!this.hidden){this.showing=false; +}if(a){a.setStyle("visibility","visible");}this.callChain();this.fireEvent("show",this.element);}.bind(this));}else{this.callChain();this.fireEvent("complete",this.element); +this.fireEvent("show",this.element);}}else{if(this.options.link=="chain"){this.chain(this.reveal.bind(this));}else{if(this.options.link=="cancel"&&!this.showing){this.cancel(); +this.reveal();}}}}catch(c){this.element.setStyles({display:this.options.display,visiblity:"visible",opacity:1});this.showing=false;this.callChain.delay(10,this); +this.fireEvent("complete",this.element);this.fireEvent("show",this.element);}return this;},toggle:function(){if(this.element.getStyle("display")=="none"||this.element.getStyle("visiblity")=="hidden"||this.element.getStyle("opacity")==0){this.reveal(); +}else{this.dissolve();}return this;},cancel:function(){this.parent.apply(this,arguments);this.element.style.cssText=this.cssText;this.hidding=false;this.showing=false; +}});Element.Properties.reveal={set:function(a){var b=this.retrieve("reveal");if(b){b.cancel();}return this.eliminate("reveal").store("reveal:options",a); +},get:function(a){if(a||!this.retrieve("reveal")){if(a||!this.retrieve("reveal:options")){this.set("reveal",a);}this.store("reveal",new Fx.Reveal(this,this.retrieve("reveal:options"))); +}return this.retrieve("reveal");}};Element.Properties.dissolve=Element.Properties.reveal;Element.implement({reveal:function(a){this.get("reveal",a).reveal(); +return this;},dissolve:function(a){this.get("reveal",a).dissolve();return this;},nix:function(){var a=Array.link(arguments,{destroy:Boolean.type,options:Object.type}); +this.get("reveal",a.options).dissolve().chain(function(){this[a.destroy?"destroy":"dispose"]();}.bind(this));return this;},wink:function(){var b=Array.link(arguments,{duration:Number.type,options:Object.type}); +var a=this.get("reveal",b.options);a.reveal().chain(function(){(function(){a.dissolve();}).delay(b.duration||2000);});}});Fx.Scroll=new Class({Extends:Fx,options:{offset:{x:0,y:0},wheelStops:true},initialize:function(b,a){this.element=this.subject=document.id(b); +this.parent(a);var d=this.cancel.bind(this,false);if($type(this.element)!="element"){this.element=document.id(this.element.getDocument().body);}var c=this.element; +if(this.options.wheelStops){this.addEvent("start",function(){c.addEvent("mousewheel",d);},true);this.addEvent("complete",function(){c.removeEvent("mousewheel",d); +},true);}},set:function(){var a=Array.flatten(arguments);if(Browser.Engine.gecko){a=[Math.round(a[0]),Math.round(a[1])];}this.element.scrollTo(a[0],a[1]); +},compute:function(c,b,a){return[0,1].map(function(d){return Fx.compute(c[d],b[d],a);});},start:function(c,g){if(!this.check(c,g)){return this;}var e=this.element.getScrollSize(),b=this.element.getScroll(),d={x:c,y:g}; +for(var f in d){var a=e[f];if($chk(d[f])){d[f]=($type(d[f])=="number")?d[f]:a;}else{d[f]=b[f];}d[f]+=this.options.offset[f];}return this.parent([b.x,b.y],[d.x,d.y]); +},toTop:function(){return this.start(false,0);},toLeft:function(){return this.start(0,false);},toRight:function(){return this.start("right",false);},toBottom:function(){return this.start(false,"bottom"); +},toElement:function(b){var a=document.id(b).getPosition(this.element);return this.start(a.x,a.y);},scrollIntoView:function(c,e,d){e=e?$splat(e):["x","y"]; +var h={};c=document.id(c);var f=c.getPosition(this.element);var i=c.getSize();var g=this.element.getScroll();var a=this.element.getSize();var b={x:f.x+i.x,y:f.y+i.y}; +["x","y"].each(function(j){if(e.contains(j)){if(b[j]>g[j]+a[j]){h[j]=b[j]-a[j];}if(f[j]this.options.snap){this.cancel();this.document.addEvents({mousemove:this.bound.drag,mouseup:this.bound.stop});this.fireEvent("start",[this.element,a]).fireEvent("snap",this.element); +}},drag:function(a){if(this.options.preventDefault){a.preventDefault();}this.mouse.now=a.page;for(var b in this.options.modifiers){if(!this.options.modifiers[b]){continue; +}this.value.now[b]=this.mouse.now[b]-this.mouse.pos[b];if(this.options.invert){this.value.now[b]*=-1;}if(this.options.limit&&this.limit[b]){if($chk(this.limit[b][1])&&(this.value.now[b]>this.limit[b][1])){this.value.now[b]=this.limit[b][1]; +}else{if($chk(this.limit[b][0])&&(this.value.now[b]c.left&&a.xc.top);},checkDroppables:function(){var a=this.droppables.filter(this.checkAgainst,this).getLast(); +if(this.overed!=a){if(this.overed){this.fireEvent("leave",[this.element,this.overed]);}if(a){this.fireEvent("enter",[this.element,a]);}this.overed=a;}},drag:function(a){this.parent(a); +if(this.options.checkDroppables&&this.droppables.length){this.checkDroppables();}},stop:function(a){this.checkDroppables();this.fireEvent("drop",[this.element,this.overed,a]); +this.overed=null;return this.parent(a);}});Element.implement({makeDraggable:function(a){var b=new Drag.Move(this,a);this.store("dragger",b);return b;}}); +var Slider=new Class({Implements:[Events,Options],Binds:["clickedElement","draggedKnob","scrolledElement"],options:{onTick:function(a){if(this.options.snap){a=this.toPosition(this.step); +}this.knob.setStyle(this.property,a);},initialStep:0,snap:false,offset:0,range:false,wheel:false,steps:100,mode:"horizontal"},initialize:function(f,a,e){this.setOptions(e); +this.element=document.id(f);this.knob=document.id(a);this.previousChange=this.previousEnd=this.step=-1;var g,b={},d={x:false,y:false};switch(this.options.mode){case"vertical":this.axis="y"; +this.property="top";g="offsetHeight";break;case"horizontal":this.axis="x";this.property="left";g="offsetWidth";}this.full=this.element.measure(function(){this.half=this.knob[g]/2; +return this.element[g]-this.knob[g]+(this.options.offset*2);}.bind(this));this.min=$chk(this.options.range[0])?this.options.range[0]:0;this.max=$chk(this.options.range[1])?this.options.range[1]:this.options.steps; +this.range=this.max-this.min;this.steps=this.options.steps||this.full;this.stepSize=Math.abs(this.range)/this.steps;this.stepWidth=this.stepSize*this.full/Math.abs(this.range); +this.knob.setStyle("position","relative").setStyle(this.property,this.options.initialStep?this.toPosition(this.options.initialStep):-this.options.offset); +d[this.axis]=this.property;b[this.axis]=[-this.options.offset,this.full-this.options.offset];var c={snap:0,limit:b,modifiers:d,onDrag:this.draggedKnob,onStart:this.draggedKnob,onBeforeStart:(function(){this.isDragging=true; +}).bind(this),onCancel:function(){this.isDragging=false;}.bind(this),onComplete:function(){this.isDragging=false;this.draggedKnob();this.end();}.bind(this)}; +if(this.options.snap){c.grid=Math.ceil(this.stepWidth);c.limit[this.axis][1]=this.full;}this.drag=new Drag(this.knob,c);this.attach();},attach:function(){this.element.addEvent("mousedown",this.clickedElement); +if(this.options.wheel){this.element.addEvent("mousewheel",this.scrolledElement);}this.drag.attach();return this;},detach:function(){this.element.removeEvent("mousedown",this.clickedElement); +this.element.removeEvent("mousewheel",this.scrolledElement);this.drag.detach();return this;},set:function(a){if(!((this.range>0)^(a0)^(a>this.max))){a=this.max;}this.step=Math.round(a);this.checkStep();this.fireEvent("tick",this.toPosition(this.step));this.end();return this; +},clickedElement:function(c){if(this.isDragging||c.target==this.knob){return;}var b=this.range<0?-1:1;var a=c.page[this.axis]-this.element.getPosition()[this.axis]-this.half; +a=a.limit(-this.options.offset,this.full-this.options.offset);this.step=Math.round(this.min+b*this.toStep(a));this.checkStep();this.fireEvent("tick",a); +this.end();},scrolledElement:function(a){var b=(this.options.mode=="horizontal")?(a.wheel<0):(a.wheel>0);this.set(b?this.step-this.stepSize:this.step+this.stepSize); +a.stop();},draggedKnob:function(){var b=this.range<0?-1:1;var a=this.drag.value.now[this.axis];a=a.limit(-this.options.offset,this.full-this.options.offset); +this.step=Math.round(this.min+b*this.toStep(a));this.checkStep();},checkStep:function(){if(this.previousChange!=this.step){this.previousChange=this.step; +this.fireEvent("change",this.step);}},end:function(){if(this.previousEnd!==this.step){this.previousEnd=this.step;this.fireEvent("complete",this.step+""); +}},toStep:function(a){var b=(a+this.options.offset)*this.stepSize/this.full*this.steps;return this.options.steps?Math.round(b-=b%this.stepSize):b;},toPosition:function(a){return(this.full*Math.abs(this.min-a))/(this.steps*this.stepSize)-this.options.offset; +}});var Sortables=new Class({Implements:[Events,Options],options:{snap:4,opacity:1,clone:false,revert:false,handle:false,constrain:false},initialize:function(a,b){this.setOptions(b); +this.elements=[];this.lists=[];this.idle=true;this.addLists($$(document.id(a)||a));if(!this.options.clone){this.options.revert=false;}if(this.options.revert){this.effect=new Fx.Morph(null,$merge({duration:250,link:"cancel"},this.options.revert)); +}},attach:function(){this.addLists(this.lists);return this;},detach:function(){this.lists=this.removeLists(this.lists);return this;},addItems:function(){Array.flatten(arguments).each(function(a){this.elements.push(a); +var b=a.retrieve("sortables:start",this.start.bindWithEvent(this,a));(this.options.handle?a.getElement(this.options.handle)||a:a).addEvent("mousedown",b); +},this);return this;},addLists:function(){Array.flatten(arguments).each(function(a){this.lists.push(a);this.addItems(a.getChildren());},this);return this; +},removeItems:function(){return $$(Array.flatten(arguments).map(function(a){this.elements.erase(a);var b=a.retrieve("sortables:start");(this.options.handle?a.getElement(this.options.handle)||a:a).removeEvent("mousedown",b); +return a;},this));},removeLists:function(){return $$(Array.flatten(arguments).map(function(a){this.lists.erase(a);this.removeItems(a.getChildren());return a; +},this));},getClone:function(b,a){if(!this.options.clone){return new Element("div").inject(document.body);}if($type(this.options.clone)=="function"){return this.options.clone.call(this,b,a,this.list); +}var c=a.clone(true).setStyles({margin:"0px",position:"absolute",visibility:"hidden",width:a.getStyle("width")});if(c.get("html").test("radio")){c.getElements("input[type=radio]").each(function(d,e){d.set("name","clone_"+e); +});}return c.inject(this.list).setPosition(a.getPosition(a.getOffsetParent()));},getDroppables:function(){var a=this.list.getChildren();if(!this.options.constrain){a=this.lists.concat(a).erase(this.list); +}return a.erase(this.clone).erase(this.element);},insert:function(c,b){var a="inside";if(this.lists.contains(b)){this.list=b;this.drag.droppables=this.getDroppables(); +}else{a=this.element.getAllPrevious().contains(b)?"before":"after";}this.element.inject(b,a);this.fireEvent("sort",[this.element,this.clone]);},start:function(b,a){if(!this.idle){return; +}this.idle=false;this.element=a;this.opacity=a.get("opacity");this.list=a.getParent();this.clone=this.getClone(b,a);this.drag=new Drag.Move(this.clone,{snap:this.options.snap,container:this.options.constrain&&this.element.getParent(),droppables:this.getDroppables(),onSnap:function(){b.stop(); +this.clone.setStyle("visibility","visible");this.element.set("opacity",this.options.opacity||0);this.fireEvent("start",[this.element,this.clone]);}.bind(this),onEnter:this.insert.bind(this),onCancel:this.reset.bind(this),onComplete:this.end.bind(this)}); +this.clone.inject(this.element,"before");this.drag.start(b);},end:function(){this.drag.detach();this.element.set("opacity",this.opacity);if(this.effect){var a=this.element.getStyles("width","height"); +var b=this.clone.computePosition(this.element.getPosition(this.clone.offsetParent));this.effect.element=this.clone;this.effect.start({top:b.top,left:b.left,width:a.width,height:a.height,opacity:0.25}).chain(this.reset.bind(this)); +}else{this.reset();}},reset:function(){this.idle=true;this.clone.destroy();this.fireEvent("complete",this.element);},serialize:function(){var c=Array.link(arguments,{modifier:Function.type,index:$defined}); +var b=this.lists.map(function(d){return d.getChildren().map(c.modifier||function(e){return e.get("id");},this);},this);var a=c.index;if(this.lists.length==1){a=0; +}return $chk(a)&&a>=0&&a4096){return false;}if(a=="{}"){this.dispose();}else{this.write(a);}return true;},load:function(){this.hash=new Hash(JSON.decode(this.read(),true)); +return this;}});Hash.each(Hash.prototype,function(b,a){if(typeof b=="function"){Hash.Cookie.implement(a,function(){var c=b.apply(this.hash,arguments);if(this.options.autoSave){this.save(); +}return c;});}});var Scroller=new Class({Implements:[Events,Options],options:{area:20,velocity:1,onChange:function(a,b){this.element.scrollTo(a,b);},fps:50},initialize:function(b,a){this.setOptions(a); +this.element=document.id(b);this.docBody=document.id(this.element.getDocument().body);this.listener=($type(this.element)!="element")?this.docBody:this.element; +this.timer=null;this.bound={attach:this.attach.bind(this),detach:this.detach.bind(this),getCoords:this.getCoords.bind(this)};},start:function(){this.listener.addEvents({mouseover:this.bound.attach,mouseout:this.bound.detach}); +},stop:function(){this.listener.removeEvents({mouseover:this.bound.attach,mouseout:this.bound.detach});this.detach();this.timer=$clear(this.timer);},attach:function(){this.listener.addEvent("mousemove",this.bound.getCoords); +},detach:function(){this.listener.removeEvent("mousemove",this.bound.getCoords);this.timer=$clear(this.timer);},getCoords:function(a){this.page=(this.listener.get("tag")=="body")?a.client:a.page; +if(!this.timer){this.timer=this.scroll.periodical(Math.round(1000/this.options.fps),this);}},scroll:function(){var b=this.element.getSize(),a=this.element.getScroll(),f=this.element!=this.docBody?this.element.getOffsets():{x:0,y:0},c=this.element.getScrollSize(),e={x:0,y:0}; +for(var d in this.page){if(this.page[d]<(this.options.area+f[d])&&a[d]!=0){e[d]=(this.page[d]-this.options.area-f[d])*this.options.velocity;}else{if(this.page[d]+this.options.area>(b[d]+f[d])&&a[d]+b[d]!=c[d]){e[d]=(this.page[d]-b[d]+this.options.area-f[d])*this.options.velocity; +}}}if(e.y||e.x){this.fireEvent("change",[a.x+e.x,a.y+e.y]);}}});(function(){var a=function(c,b){return(c)?($type(c)=="function"?c(b):b.get(c)):"";};this.Tips=new Class({Implements:[Events,Options],options:{onShow:function(){this.tip.setStyle("display","block"); +},onHide:function(){this.tip.setStyle("display","none");},title:"title",text:function(b){return b.get("rel")||b.get("href");},showDelay:100,hideDelay:100,className:"tip-wrap",offset:{x:16,y:16},windowPadding:{x:0,y:0},fixed:false},initialize:function(){var b=Array.link(arguments,{options:Object.type,elements:$defined}); +this.setOptions(b.options);if(b.elements){this.attach(b.elements);}this.container=new Element("div",{"class":"tip"});},toElement:function(){if(this.tip){return this.tip; +}return this.tip=new Element("div",{"class":this.options.className,styles:{position:"absolute",top:0,left:0}}).adopt(new Element("div",{"class":"tip-top"}),this.container,new Element("div",{"class":"tip-bottom"})).inject(document.body); +},attach:function(b){$$(b).each(function(d){var f=a(this.options.title,d),e=a(this.options.text,d);d.erase("title").store("tip:native",f).retrieve("tip:title",f); +d.retrieve("tip:text",e);this.fireEvent("attach",[d]);var c=["enter","leave"];if(!this.options.fixed){c.push("move");}c.each(function(h){var g=d.retrieve("tip:"+h); +if(!g){g=this["element"+h.capitalize()].bindWithEvent(this,d);}d.store("tip:"+h,g).addEvent("mouse"+h,g);},this);},this);return this;},detach:function(b){$$(b).each(function(d){["enter","leave","move"].each(function(e){d.removeEvent("mouse"+e,d.retrieve("tip:"+e)).eliminate("tip:"+e); +});this.fireEvent("detach",[d]);if(this.options.title=="title"){var c=d.retrieve("tip:native");if(c){d.set("title",c);}}},this);return this;},elementEnter:function(c,b){this.container.empty(); +["title","text"].each(function(e){var d=b.retrieve("tip:"+e);if(d){this.fill(new Element("div",{"class":"tip-"+e}).inject(this.container),d);}},this);$clear(this.timer); +this.timer=(function(){this.show(this,b);this.position((this.options.fixed)?{page:b.getPosition()}:c);}).delay(this.options.showDelay,this);},elementLeave:function(c,b){$clear(this.timer); +this.timer=this.hide.delay(this.options.hideDelay,this,b);this.fireForParent(c,b);},fireForParent:function(c,b){b=b.getParent();if(!b||b==document.body){return; +}if(b.retrieve("tip:enter")){b.fireEvent("mouseenter",c);}else{this.fireForParent(c,b);}},elementMove:function(c,b){this.position(c);},position:function(e){if(!this.tip){document.id(this); +}var c=window.getSize(),b=window.getScroll(),f={x:this.tip.offsetWidth,y:this.tip.offsetHeight},d={x:"left",y:"top"},g={};for(var h in d){g[d[h]]=e.page[h]+this.options.offset[h]; +if((g[d[h]]+f[h]-b[h])>c[h]-this.options.windowPadding[h]){g[d[h]]=e.page[h]-this.options.offset[h]-f[h];}}this.tip.setStyles(g);},fill:function(b,c){if(typeof c=="string"){b.set("html",c); +}else{b.adopt(c);}},show:function(b){if(!this.tip){document.id(this);}this.fireEvent("show",[this.tip,b]);},hide:function(b){if(!this.tip){document.id(this); +}this.fireEvent("hide",[this.tip,b]);}});})(); diff --git a/mt-more.js b/mt-more.js new file mode 100644 index 00000000..39eaa6e6 --- /dev/null +++ b/mt-more.js @@ -0,0 +1,153 @@ +//MooTools More, . Copyright (c) 2006-2008 Valerio Proietti, , MIT Style License. + +Fx.Slide=new Class({Extends:Fx,options:{mode:"vertical"},initialize:function(B,A){this.addEvent("complete",function(){this.open=(this.wrapper["offset"+this.layout.capitalize()]!=0); +if(this.open&&Browser.Engine.webkit419){this.element.dispose().inject(this.wrapper);}},true);this.element=this.subject=$(B);this.parent(A);var C=this.element.retrieve("wrapper"); +this.wrapper=C||new Element("div",{styles:$extend(this.element.getStyles("margin","position"),{overflow:"hidden"})}).wraps(this.element);this.element.store("wrapper",this.wrapper).setStyle("margin",0); +this.now=[];this.open=true;},vertical:function(){this.margin="margin-top";this.layout="height";this.offset=this.element.offsetHeight;},horizontal:function(){this.margin="margin-left"; +this.layout="width";this.offset=this.element.offsetWidth;},set:function(A){this.element.setStyle(this.margin,A[0]);this.wrapper.setStyle(this.layout,A[1]); +return this;},compute:function(E,D,C){var B=[];var A=2;A.times(function(F){B[F]=Fx.compute(E[F],D[F],C);});return B;},start:function(B,E){if(!this.check(arguments.callee,B,E)){return this; +}this[E||this.options.mode]();var D=this.element.getStyle(this.margin).toInt();var C=this.wrapper.getStyle(this.layout).toInt();var A=[[D,C],[0,this.offset]]; +var G=[[D,C],[-this.offset,0]];var F;switch(B){case"in":F=A;break;case"out":F=G;break;case"toggle":F=(this.wrapper["offset"+this.layout.capitalize()]==0)?A:G; +}return this.parent(F[0],F[1]);},slideIn:function(A){return this.start("in",A);},slideOut:function(A){return this.start("out",A);},hide:function(A){this[A||this.options.mode](); +this.open=false;return this.set([-this.offset,0]);},show:function(A){this[A||this.options.mode]();this.open=true;return this.set([0,this.offset]);},toggle:function(A){return this.start("toggle",A); +}});Element.Properties.slide={set:function(B){var A=this.retrieve("slide");if(A){A.cancel();}return this.eliminate("slide").store("slide:options",$extend({link:"cancel"},B)); +},get:function(A){if(A||!this.retrieve("slide")){if(A||!this.retrieve("slide:options")){this.set("slide",A);}this.store("slide",new Fx.Slide(this,this.retrieve("slide:options"))); +}return this.retrieve("slide");}};Element.implement({slide:function(D,E){D=D||"toggle";var B=this.get("slide"),A;switch(D){case"hide":B.hide(E);break;case"show":B.show(E); +break;case"toggle":var C=this.retrieve("slide:flag",B.open);B[(C)?"slideOut":"slideIn"](E);this.store("slide:flag",!C);A=true;break;default:B.start(D,E); +}if(!A){this.eliminate("slide:flag");}return this;}});Fx.Scroll=new Class({Extends:Fx,options:{offset:{x:0,y:0},wheelStops:true},initialize:function(B,A){this.element=this.subject=$(B); +this.parent(A);var D=this.cancel.bind(this,false);if($type(this.element)!="element"){this.element=$(this.element.getDocument().body);}var C=this.element; +if(this.options.wheelStops){this.addEvent("start",function(){C.addEvent("mousewheel",D);},true);this.addEvent("complete",function(){C.removeEvent("mousewheel",D); +},true);}},set:function(){var A=Array.flatten(arguments);this.element.scrollTo(A[0],A[1]);},compute:function(E,D,C){var B=[];var A=2;A.times(function(F){B.push(Fx.compute(E[F],D[F],C)); +});return B;},start:function(C,H){if(!this.check(arguments.callee,C,H)){return this;}var E=this.element.getSize(),F=this.element.getScrollSize();var B=this.element.getScroll(),D={x:C,y:H}; +for(var G in D){var A=F[G]-E[G];if($chk(D[G])){D[G]=($type(D[G])=="number")?D[G].limit(0,A):A;}else{D[G]=B[G];}D[G]+=this.options.offset[G];}return this.parent([B.x,B.y],[D.x,D.y]); +},toTop:function(){return this.start(false,0);},toLeft:function(){return this.start(0,false);},toRight:function(){return this.start("right",false);},toBottom:function(){return this.start(false,"bottom"); +},toElement:function(B){var A=$(B).getPosition(this.element);return this.start(A.x,A.y);}});Fx.Elements=new Class({Extends:Fx.CSS,initialize:function(B,A){this.elements=this.subject=$$(B); +this.parent(A);},compute:function(G,H,I){var C={};for(var D in G){var A=G[D],E=H[D],F=C[D]={};for(var B in A){F[B]=this.parent(A[B],E[B],I);}}return C; +},set:function(B){for(var C in B){var A=B[C];for(var D in A){this.render(this.elements[C],D,A[D],this.options.unit);}}return this;},start:function(C){if(!this.check(arguments.callee,C)){return this; +}var H={},I={};for(var D in C){var F=C[D],A=H[D]={},G=I[D]={};for(var B in F){var E=this.prepare(this.elements[D],B,F[B]);A[B]=E.from;G[B]=E.to;}}return this.parent(H,I); +}});var Drag=new Class({Implements:[Events,Options],options:{snap:6,unit:"px",grid:false,style:true,limit:false,handle:false,invert:false,preventDefault:false,modifiers:{x:"left",y:"top"}},initialize:function(){var B=Array.link(arguments,{options:Object.type,element:$defined}); +this.element=$(B.element);this.document=this.element.getDocument();this.setOptions(B.options||{});var A=$type(this.options.handle);this.handles=(A=="array"||A=="collection")?$$(this.options.handle):$(this.options.handle)||this.element; +this.mouse={now:{},pos:{}};this.value={start:{},now:{}};this.selection=(Browser.Engine.trident)?"selectstart":"mousedown";this.bound={start:this.start.bind(this),check:this.check.bind(this),drag:this.drag.bind(this),stop:this.stop.bind(this),cancel:this.cancel.bind(this),eventStop:$lambda(false)}; +this.attach();},attach:function(){this.handles.addEvent("mousedown",this.bound.start);return this;},detach:function(){this.handles.removeEvent("mousedown",this.bound.start); +return this;},start:function(C){if(this.options.preventDefault){C.preventDefault();}this.fireEvent("beforeStart",this.element);this.mouse.start=C.page; +var A=this.options.limit;this.limit={x:[],y:[]};for(var D in this.options.modifiers){if(!this.options.modifiers[D]){continue;}if(this.options.style){this.value.now[D]=this.element.getStyle(this.options.modifiers[D]).toInt(); +}else{this.value.now[D]=this.element[this.options.modifiers[D]];}if(this.options.invert){this.value.now[D]*=-1;}this.mouse.pos[D]=C.page[D]-this.value.now[D]; +if(A&&A[D]){for(var B=2;B--;B){if($chk(A[D][B])){this.limit[D][B]=$lambda(A[D][B])();}}}}if($type(this.options.grid)=="number"){this.options.grid={x:this.options.grid,y:this.options.grid}; +}this.document.addEvents({mousemove:this.bound.check,mouseup:this.bound.cancel});this.document.addEvent(this.selection,this.bound.eventStop);},check:function(A){if(this.options.preventDefault){A.preventDefault(); +}var B=Math.round(Math.sqrt(Math.pow(A.page.x-this.mouse.start.x,2)+Math.pow(A.page.y-this.mouse.start.y,2)));if(B>this.options.snap){this.cancel();this.document.addEvents({mousemove:this.bound.drag,mouseup:this.bound.stop}); +this.fireEvent("start",this.element).fireEvent("snap",this.element);}},drag:function(A){if(this.options.preventDefault){A.preventDefault();}this.mouse.now=A.page; +for(var B in this.options.modifiers){if(!this.options.modifiers[B]){continue;}this.value.now[B]=this.mouse.now[B]-this.mouse.pos[B];if(this.options.invert){this.value.now[B]*=-1; +}if(this.options.limit&&this.limit[B]){if($chk(this.limit[B][1])&&(this.value.now[B]>this.limit[B][1])){this.value.now[B]=this.limit[B][1];}else{if($chk(this.limit[B][0])&&(this.value.now[B]B.left&&A.xB.top);},checkDroppables:function(){var A=this.droppables.filter(this.checkAgainst,this).getLast(); +if(this.overed!=A){if(this.overed){this.fireEvent("leave",[this.element,this.overed]);}if(A){this.overed=A;this.fireEvent("enter",[this.element,A]);}else{this.overed=null; +}}},drag:function(A){this.parent(A);if(this.droppables.length){this.checkDroppables();}},stop:function(A){this.checkDroppables();this.fireEvent("drop",[this.element,this.overed]); +this.overed=null;return this.parent(A);}});Element.implement({makeDraggable:function(A){return new Drag.Move(this,A);}});Hash.Cookie=new Class({Extends:Cookie,options:{autoSave:true},initialize:function(B,A){this.parent(B,A); +this.load();},save:function(){var A=JSON.encode(this.hash);if(!A||A.length>4096){return false;}if(A=="{}"){this.dispose();}else{this.write(A);}return true; +},load:function(){this.hash=new Hash(JSON.decode(this.read(),true));return this;}});Hash.Cookie.implement((function(){var A={};Hash.each(Hash.prototype,function(C,B){A[B]=function(){var D=C.apply(this.hash,arguments); +if(this.options.autoSave){this.save();}return D;};});return A;})());var Color=new Native({initialize:function(B,C){if(arguments.length>=3){C="rgb";B=Array.slice(arguments,0,3); +}else{if(typeof B=="string"){if(B.match(/rgb/)){B=B.rgbToHex().hexToRgb(true);}else{if(B.match(/hsb/)){B=B.hsbToRgb();}else{B=B.hexToRgb(true);}}}}C=C||"rgb"; +switch(C){case"hsb":var A=B;B=B.hsbToRgb();B.hsb=A;break;case"hex":B=B.hexToRgb(true);break;}B.rgb=B.slice(0,3);B.hsb=B.hsb||B.rgbToHsb();B.hex=B.rgbToHex(); +return $extend(B,this);}});Color.implement({mix:function(){var A=Array.slice(arguments);var C=($type(A.getLast())=="number")?A.pop():50;var B=this.slice(); +A.each(function(D){D=new Color(D);for(var E=0;E<3;E++){B[E]=Math.round((B[E]/100*(100-C))+(D[E]/100*C));}});return new Color(B,"rgb");},invert:function(){return new Color(this.map(function(A){return 255-A; +}));},setHue:function(A){return new Color([A,this.hsb[1],this.hsb[2]],"hsb");},setSaturation:function(A){return new Color([this.hsb[0],A,this.hsb[2]],"hsb"); +},setBrightness:function(A){return new Color([this.hsb[0],this.hsb[1],A],"hsb");}});function $RGB(C,B,A){return new Color([C,B,A],"rgb");}function $HSB(C,B,A){return new Color([C,B,A],"hsb"); +}function $HEX(A){return new Color(A,"hex");}Array.implement({rgbToHsb:function(){var B=this[0],C=this[1],J=this[2];var G,F,H;var I=Math.max(B,C,J),E=Math.min(B,C,J); +var K=I-E;H=I/255;F=(I!=0)?K/I:0;if(F==0){G=0;}else{var D=(I-B)/K;var A=(I-C)/K;var L=(I-J)/K;if(B==I){G=L-A;}else{if(C==I){G=2+D-L;}else{G=4+A-D;}}G/=6; +if(G<0){G++;}}return[Math.round(G*360),Math.round(F*100),Math.round(H*100)];},hsbToRgb:function(){var C=Math.round(this[2]/100*255);if(this[1]==0){return[C,C,C]; +}else{var A=this[0]%360;var E=A%60;var F=Math.round((this[2]*(100-this[1]))/10000*255);var D=Math.round((this[2]*(6000-this[1]*E))/600000*255);var B=Math.round((this[2]*(6000-this[1]*(60-E)))/600000*255); +switch(Math.floor(A/60)){case 0:return[C,B,F];case 1:return[D,C,F];case 2:return[F,C,B];case 3:return[F,D,C];case 4:return[B,F,C];case 5:return[C,F,D]; +}}return false;}});String.implement({rgbToHsb:function(){var A=this.match(/\d{1,3}/g);return(A)?hsb.rgbToHsb():null;},hsbToRgb:function(){var A=this.match(/\d{1,3}/g); +return(A)?A.hsbToRgb():null;}});var Group=new Class({initialize:function(){this.instances=Array.flatten(arguments);this.events={};this.checker={};},addEvent:function(B,A){this.checker[B]=this.checker[B]||{}; +this.events[B]=this.events[B]||[];if(this.events[B].contains(A)){return false;}else{this.events[B].push(A);}this.instances.each(function(C,D){C.addEvent(B,this.check.bind(this,[B,C,D])); +},this);return this;},check:function(C,A,B){this.checker[C][B]=true;var D=this.instances.every(function(F,E){return this.checker[C][E]||false;},this);if(!D){return ; +}this.checker[C]={};this.events[C].each(function(E){E.call(this,this.instances,A);},this);}});var Asset=new Hash({javascript:function(F,D){D=$extend({onload:$empty,document:document,check:$lambda(true)},D); +var B=new Element("script",{src:F,type:"text/javascript"});var E=D.onload.bind(B),A=D.check,G=D.document;delete D.onload;delete D.check;delete D.document; +B.addEvents({load:E,readystatechange:function(){if(["loaded","complete"].contains(this.readyState)){E();}}}).setProperties(D);if(Browser.Engine.webkit419){var C=(function(){if(!$try(A)){return ; +}$clear(C);E();}).periodical(50);}return B.inject(G.head);},css:function(B,A){return new Element("link",$merge({rel:"stylesheet",media:"screen",type:"text/css",href:B},A)).inject(document.head); +},image:function(C,B){B=$merge({onload:$empty,onabort:$empty,onerror:$empty},B);var D=new Image();var A=$(D)||new Element("img");["load","abort","error"].each(function(E){var F="on"+E; +var G=B[F];delete B[F];D[F]=function(){if(!D){return ;}if(!A.parentNode){A.width=D.width;A.height=D.height;}D=D.onload=D.onabort=D.onerror=null;G.delay(1,A,A); +A.fireEvent(E,A,1);};});D.src=A.src=C;if(D&&D.complete){D.onload.delay(1);}return A.setProperties(B);},images:function(D,C){C=$merge({onComplete:$empty,onProgress:$empty},C); +if(!D.push){D=[D];}var A=[];var B=0;D.each(function(F){var E=new Asset.image(F,{onload:function(){C.onProgress.call(this,B,D.indexOf(F));B++;if(B==D.length){C.onComplete(); +}}});A.push(E);});return new Elements(A);}});var Sortables=new Class({Implements:[Events,Options],options:{snap:4,opacity:1,clone:false,revert:false,handle:false,constrain:false},initialize:function(A,B){this.setOptions(B); +this.elements=[];this.lists=[];this.idle=true;this.addLists($$($(A)||A));if(!this.options.clone){this.options.revert=false;}if(this.options.revert){this.effect=new Fx.Morph(null,$merge({duration:250,link:"cancel"},this.options.revert)); +}},attach:function(){this.addLists(this.lists);return this;},detach:function(){this.lists=this.removeLists(this.lists);return this;},addItems:function(){Array.flatten(arguments).each(function(A){this.elements.push(A); +var B=A.retrieve("sortables:start",this.start.bindWithEvent(this,A));(this.options.handle?A.getElement(this.options.handle)||A:A).addEvent("mousedown",B); +},this);return this;},addLists:function(){Array.flatten(arguments).each(function(A){this.lists.push(A);this.addItems(A.getChildren());},this);return this; +},removeItems:function(){var A=[];Array.flatten(arguments).each(function(B){A.push(B);this.elements.erase(B);var C=B.retrieve("sortables:start");(this.options.handle?B.getElement(this.options.handle)||B:B).removeEvent("mousedown",C); +},this);return $$(A);},removeLists:function(){var A=[];Array.flatten(arguments).each(function(B){A.push(B);this.lists.erase(B);this.removeItems(B.getChildren()); +},this);return $$(A);},getClone:function(B,A){if(!this.options.clone){return new Element("div").inject(document.body);}if($type(this.options.clone)=="function"){return this.options.clone.call(this,B,A,this.list); +}return A.clone(true).setStyles({margin:"0px",position:"absolute",visibility:"hidden",width:A.getStyle("width")}).inject(this.list).position(A.getPosition(A.getOffsetParent())); +},getDroppables:function(){var A=this.list.getChildren();if(!this.options.constrain){A=this.lists.concat(A).erase(this.list);}return A.erase(this.clone).erase(this.element); +},insert:function(C,B){var A="inside";if(this.lists.contains(B)){this.list=B;this.drag.droppables=this.getDroppables();}else{A=this.element.getAllPrevious().contains(B)?"before":"after"; +}this.element.inject(B,A);this.fireEvent("sort",[this.element,this.clone]);},start:function(B,A){if(!this.idle){return ;}this.idle=false;this.element=A; +this.opacity=A.get("opacity");this.list=A.getParent();this.clone=this.getClone(B,A);this.drag=new Drag.Move(this.clone,{snap:this.options.snap,container:this.options.constrain&&this.element.getParent(),droppables:this.getDroppables(),onSnap:function(){B.stop(); +this.clone.setStyle("visibility","visible");this.element.set("opacity",this.options.opacity||0);this.fireEvent("start",[this.element,this.clone]);}.bind(this),onEnter:this.insert.bind(this),onCancel:this.reset.bind(this),onComplete:this.end.bind(this)}); +this.clone.inject(this.element,"before");this.drag.start(B);},end:function(){this.drag.detach();this.element.set("opacity",this.opacity);if(this.effect){var A=this.element.getStyles("width","height"); +var B=this.clone.computePosition(this.element.getPosition(this.clone.offsetParent));this.effect.element=this.clone;this.effect.start({top:B.top,left:B.left,width:A.width,height:A.height,opacity:0.25}).chain(this.reset.bind(this)); +}else{this.reset();}},reset:function(){this.idle=true;this.clone.destroy();this.fireEvent("complete",this.element);},serialize:function(){var C=Array.link(arguments,{modifier:Function.type,index:$defined}); +var B=this.lists.map(function(D){return D.getChildren().map(C.modifier||function(E){return E.get("id");},this);},this);var A=C.index;if(this.lists.length==1){A=0; +}return $chk(A)&&A>=0&&AB[F]){G=D.page[F]-this.options.offsets[F]-E[F];}this.tip.setStyle(C[F],G); +}},fill:function(A,B){(typeof B=="string")?A.set("html",B):A.adopt(B);},show:function(){this.fireEvent("show",this.tip);},hide:function(){this.fireEvent("hide",this.tip); +}});var SmoothScroll=new Class({Extends:Fx.Scroll,initialize:function(B,C){C=C||document;var E=C.getDocument(),D=C.getWindow();this.parent(E,B);this.links=(this.options.links)?$$(this.options.links):$$(E.links); +var A=D.location.href.match(/^[^#]*/)[0]+"#";this.links.each(function(G){if(G.href.indexOf(A)!=0){return ;}var F=G.href.substr(A.length);if(F&&$(F)){this.useLink(G,F); +}},this);if(!Browser.Engine.webkit419){this.addEvent("complete",function(){D.location.hash=this.anchor;},true);}},useLink:function(B,A){B.addEvent("click",function(C){this.anchor=A; +this.toElement(A);C.stop();}.bind(this));}});var Slider=new Class({Implements:[Events,Options],options:{onTick:function(A){if(this.options.snap){A=this.toPosition(this.step); +}this.knob.setStyle(this.property,A);},snap:false,offset:0,range:false,wheel:false,steps:100,mode:"horizontal"},initialize:function(E,A,D){this.setOptions(D); +this.element=$(E);this.knob=$(A);this.previousChange=this.previousEnd=this.step=-1;this.element.addEvent("mousedown",this.clickedElement.bind(this));if(this.options.wheel){this.element.addEvent("mousewheel",this.scrolledElement.bindWithEvent(this)); +}var F,B={},C={x:false,y:false};switch(this.options.mode){case"vertical":this.axis="y";this.property="top";F="offsetHeight";break;case"horizontal":this.axis="x"; +this.property="left";F="offsetWidth";}this.half=this.knob[F]/2;this.full=this.element[F]-this.knob[F]+(this.options.offset*2);this.min=$chk(this.options.range[0])?this.options.range[0]:0; +this.max=$chk(this.options.range[1])?this.options.range[1]:this.options.steps;this.range=this.max-this.min;this.steps=this.options.steps||this.full;this.stepSize=Math.abs(this.range)/this.steps; +this.stepWidth=this.stepSize*this.full/Math.abs(this.range);this.knob.setStyle("position","relative").setStyle(this.property,-this.options.offset);C[this.axis]=this.property; +B[this.axis]=[-this.options.offset,this.full-this.options.offset];this.drag=new Drag(this.knob,{snap:0,limit:B,modifiers:C,onDrag:this.draggedKnob.bind(this),onStart:this.draggedKnob.bind(this),onComplete:function(){this.draggedKnob(); +this.end();}.bind(this)});if(this.options.snap){this.drag.options.grid=Math.ceil(this.stepWidth);this.drag.options.limit[this.axis][1]=this.full;}},set:function(A){if(!((this.range>0)^(A0)^(A>this.max))){A=this.max;}this.step=Math.round(A);this.checkStep();this.end();this.fireEvent("tick",this.toPosition(this.step));return this; +},clickedElement:function(C){var B=this.range<0?-1:1;var A=C.page[this.axis]-this.element.getPosition()[this.axis]-this.half;A=A.limit(-this.options.offset,this.full-this.options.offset); +this.step=Math.round(this.min+B*this.toStep(A));this.checkStep();this.end();this.fireEvent("tick",A);},scrolledElement:function(A){var B=(this.options.mode=="horizontal")?(A.wheel<0):(A.wheel>0); +this.set(B?this.step-this.stepSize:this.step+this.stepSize);A.stop();},draggedKnob:function(){var B=this.range<0?-1:1;var A=this.drag.value.now[this.axis]; +A=A.limit(-this.options.offset,this.full-this.options.offset);this.step=Math.round(this.min+B*this.toStep(A));this.checkStep();},checkStep:function(){if(this.previousChange!=this.step){this.previousChange=this.step; +this.fireEvent("change",this.step);}},end:function(){if(this.previousEnd!==this.step){this.previousEnd=this.step;this.fireEvent("complete",this.step+""); +}},toStep:function(A){var B=(A+this.options.offset)*this.stepSize/this.full*this.steps;return this.options.steps?Math.round(B-=B%this.stepSize):B;},toPosition:function(A){return(this.full*Math.abs(this.min-A))/(this.steps*this.stepSize)-this.options.offset; +}});var Scroller=new Class({Implements:[Events,Options],options:{area:20,velocity:1,onChange:function(A,B){this.element.scrollTo(A,B);}},initialize:function(B,A){this.setOptions(A); +this.element=$(B);this.listener=($type(this.element)!="element")?$(this.element.getDocument().body):this.element;this.timer=null;this.coord=this.getCoords.bind(this); +},start:function(){this.listener.addEvent("mousemove",this.coord);},stop:function(){this.listener.removeEvent("mousemove",this.coord);this.timer=$clear(this.timer); +},getCoords:function(A){this.page=(this.listener.get("tag")=="body")?A.client:A.page;if(!this.timer){this.timer=this.scroll.periodical(50,this);}},scroll:function(){var B=this.element.getSize(),A=this.element.getScroll(),E=this.element.getPosition(),D={x:0,y:0}; +for(var C in this.page){if(this.page[C]<(this.options.area+E[C])&&A[C]!=0){D[C]=(this.page[C]-this.options.area-E[C])*this.options.velocity;}else{if(this.page[C]+this.options.area>(B[C]+E[C])&&B[C]+B[C]!=A[C]){D[C]=(this.page[C]-B[C]+this.options.area-E[C])*this.options.velocity; +}}}if(D.y||D.x){this.fireEvent("change",[A.x+D.x,A.y+D.y]);}}});var Accordion=new Class({Extends:Fx.Elements,options:{display:0,show:false,height:true,width:false,opacity:true,fixedHeight:false,fixedWidth:false,wait:false,alwaysHide:false},initialize:function(){var C=Array.link(arguments,{container:Element.type,options:Object.type,togglers:$defined,elements:$defined}); +this.parent(C.elements,C.options);this.togglers=$$(C.togglers);this.container=$(C.container);this.previous=-1;if(this.options.alwaysHide){this.options.wait=true; +}if($chk(this.options.show)){this.options.display=false;this.previous=this.options.show;}if(this.options.start){this.options.display=false;this.options.show=false; +}this.effects={};if(this.options.opacity){this.effects.opacity="fullOpacity";}if(this.options.width){this.effects.width=this.options.fixedWidth?"fullWidth":"offsetWidth"; +}if(this.options.height){this.effects.height=this.options.fixedHeight?"fullHeight":"scrollHeight";}for(var B=0,A=this.togglers.length;B0));this.fireEvent(C?"background":"active",[this.togglers[D],E]); +for(var F in this.effects){B[D][F]=C?0:E[this.effects[F]];}},this);return this.start(B);}}); \ No newline at end of file diff --git a/nachrichten.php b/nachrichten.php new file mode 100644 index 00000000..3ff4f959 --- /dev/null +++ b/nachrichten.php @@ -0,0 +1,126 @@ +pageLoadTimeStart(); +$message->procMessage($_POST); +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + + +
    +loadMessage($_GET['id']); + include("Templates/Message/read.tpl"); +} +else if(isset($_GET['t'])) { + switch($_GET['t']) { + case 1: + if(isset($_GET['id'])) { + $id = $_GET['id']; + } + include("Templates/Message/write.tpl"); + break; + case 2: + include("Templates/Message/sent.tpl"); + break; + case 3: + if($session->plus) { + include("Templates/Message/archive.tpl"); + } + break; + case 4: + if($session->plus) { + $message->loadNotes(); + include("Templates/Message/notes.tpl"); + } + break; + default: + include("Templates/Message/inbox.tpl"); + break; + } +} +else { + include("Templates/Message/inbox.tpl"); +} + ?> + +
    + +
    +
    +
    + +
    + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    +
    + + \ No newline at end of file diff --git a/new.js b/new.js new file mode 100644 index 00000000..063f786c --- /dev/null +++ b/new.js @@ -0,0 +1,865 @@ +/* Dynamic images, change class */ + +// MooTools + +window + + .addEvent('domready', function() + + { + + + + $$('*.dynamic_img').addEvents( + + { + + 'mouseenter': function() + + { + + this.addClass('over'); + + }, + + 'mouseleave': function() + + { + + this.removeClass('over'); + + this.removeClass('clicked'); + + }, + + 'mousedown': function() + + { + + this.removeClass('over'); + + this.addClass('clicked'); + + } + + }); + + + + $$('img.tSwitch') + + .addEvents( + + { + + 'mousedown': function() + + { + + var tbody = this.getParent('thead').getNext('tbody'); + + tbody.toggleClass('hide'); + + if (tbody.hasClass('hide')) + + { + + document.cookie = 't3' + this.getParent('table') + + .getProperty('id') + '=1; expires=Wed, 1 Jan 2020 00:00:00 GMT'; + + this.removeClass('opened'); + + this.addClass('closed'); + + } + + else + + { + + document.cookie = 't3' + this.getParent('table') + + .getProperty('id') + '=1; expires=Thu, 01-Jan-1970 00:00:01 GMT'; + + this.removeClass('closed'); + + this.addClass('opened'); + + } + + } + + }); + + + + $$('table.row_table_data tbody tr').addEvents( + + { + + 'mouseenter': function() + + { + + this.addClass('hlight'); + + }, + + 'mouseleave': function() + + { + + this.removeClass('hlight'); + + }, + + 'mousedown': function() + + { + + this.toggleClass('marked'); + + } + + }); + + + + }); + + + +// IE MooTools Fix + +if (Browser.Engine.trident) // für IE + +{ + + /** + + * Element Erweiterungen + + * + + */ + + Element.implement( + + { + + insertAtCursor: function(value, select) + + { + + var pos = this.getSelectedRange(); + + + + // IE fix BEGIN + + if (pos.start == 0 && pos.end == 0) + + { + + this.focus(); + + sel = document.selection.createRange(); + + sel.text = value; + + this.focus(); + + return this; + + } + + // IE fix END + + + + var text = this.get('value'); + + this.set('value', text.substring(0, pos.start) + value + text.substring(pos.end, text.length)); + + if ($pick(select, true)) + + { + + this.selectRange(pos.start, pos.start + value.length); + + } + + else + + { + + this.setCaretPosition(pos.start + value.length); + + } + + + + return this; + + }, + + + + insertAroundCursor: function(options, select) + + { + + options = $extend( + + { + + before: '', + + defaultMiddle: '', + + after: '' + + }, options); + + + + var value = this.getSelectedText() || options.defaultMiddle; + + var pos = this.getSelectedRange(); + + + + // IE fix BEGIN + + if (pos.start == 0 && pos.end == 0) + + { + + this.focus(); + + sel = document.selection.createRange(); + + sel.text = options.before + options.after; + + this.focus(); + + return this; + + } + + // IE fix END + + + + var text = this.get('value'); + + if (pos.start == pos.end) + + { + + this.set('value', text.substring(0, pos.start) + options.before + value + options.after + text.substring(pos.end, text.length)); + + this.selectRange(pos.start + options.before.length, pos.end + options.before.length + value.length); + + } + + else + + { + + var current = text.substring(pos.start, pos.end); + + this.set('value', text.substring(0, pos.start) + options.before + current + options.after + text.substring(pos.end, text.length)); + + var selStart = pos.start + options.before.length; + + + + if ($pick(select, true)) + + { + + this.selectRange(selStart, selStart + current.length); + + } + + else + + { + + this.setCaretPosition(selStart + text.length); + + } + + } + + return this; + + } + + }); + +} + + + +var BBEditor = new Class ({ + + preview: null, + + textArea: null, + + id: null, + + + + Binds: ['fetchPreview', 'showToolbarWindow', 'insertTag', 'insertSingleTag', 'insertSmilieTag', 'hideToolbarWindow', 'showPreview', 'hidePreview'], + + + + /** + + * Initialisiert den Editor + + */ + + initialize: function(textAreaId) { + + + + //connect elements + + this.id = textAreaId; + + this.textArea = $(textAreaId); + + this.toolbar = $(textAreaId + '_toolbar'); + + this.preview = $(textAreaId + '_preview'); + + + + //init elements + + this.preview.setStyle('display', 'none'); + + + + //add Events + + $(textAreaId + '_previewButton').addEvent('click', this.fetchPreview); + + $(textAreaId + '_resourceButton').addEvent('click', this.showToolbarWindow); + + $(textAreaId + '_smilieButton').addEvent('click', this.showToolbarWindow); + + $(textAreaId + '_troopButton').addEvent('click', this.showToolbarWindow); + + $(textAreaId).addEvent('click', this.hideToolbarWindow); + + this.addEvent($(textAreaId + '_toolbar'), this.insertTag); + + this.addEvent($(textAreaId + '_resources'), this.insertTag); + + this.addEvent($(textAreaId + '_smilies'), this.insertTag); + + this.addEvent($(textAreaId + '_troops'), this.insertTag); + + }, + + + + /** + + * Fügt den klickbaren Objekten die Events hinzu + + * + + * @param object containerObjekt + + * @param string callback + + */ + + addEvent: function(div, call) { + + var childen = div.getChildren(); + + for (i = 0; i < childen.length; i++) { + + if ($(childen[i]).get('bbTag')) { + + $(childen[i]).addEvent('click', call); + + } + + } + + }, + + + + /** + + * Fügt einen ausgewählten Tag in die + + * Textarea ein + + * + + * @param Object + + */ + + insertTag: function(Event) { + + this.hidePreview(); + + var link = $(Event.target.parentNode); + + var tag = link.get('bbTag'); + + + + switch (link.get('bbType')) { + + //double tag + + case 'd': + + this.textArea.insertAroundCursor({before: '[' + tag + ']', after: '[/' + tag + ']'}); + + break; + + //smilie + + case 's': + + this.textArea.insertAtCursor(tag, false); + + break; + + //once + + case 'o': + + this.textArea.insertAtCursor('[' + link.get('bbTag') + ']', false); + + break; + + } + + }, + + + + /** + + * Zeigt ein Unterfenster der Toolbar + + * an + + * + + * @param Object + + */ + + showToolbarWindow: function(Event) { + + var targetDiv = Event.target.parentNode; + + var window = $(this.id + '_' + targetDiv.get('bbWin')); + + + + var show = true; + + if (window.getStyle('display') == 'block') { + + show = false; + + } + + + + this.hideToolbarWindow(); + + + + if (show) { + + window.fade('hide').fade('in'); + + window.setStyle('display', 'block'); + + } + + }, + + + + /** + + * Versteckt die Fenster der Toolbar + + * + + * @param Object + + */ + + hideToolbarWindow: function() { + + var childen = $(this.id + '_toolbarWindows').getChildren(); + + for (i = 0; i < childen.length; i++) { + + $(childen[i]).setStyle('display', 'none'); + + } + + }, + + + + /** + + * Holt die Vorschau vom Server + + * + + * @param Object + + */ + + fetchPreview: function(Event) { + + if (this.textArea.getStyle('display') == 'none' || this.textArea.value.length < 1) { + + this.hidePreview(); + + return; + + } + + + + var jsonRequest = new Request.JSON({ + + method: 'post', + + url: 'ajax.php?f=bb', + + data: + + { + + nl2br: 1, + + target: this.id, + + text: this.textArea.value + + }, + + onSuccess: this.showPreview + + }); + + jsonRequest.post(); + + }, + + + + /** + + * Zeigt die Vorschau + + * + + * @param string textAreaId + + */ + + showPreview: function(data) { + + if (data.error == true) { + + alert(data.errorMsg); + + return; + + } else { + + this.preview.innerHTML = data.text; + + this.preview.setStyle('display','block'); + + this.textArea.setStyle('display','none'); + + } + + }, + + + + /** + + * Versteckt die Vorschau + + * + + * @param string textAreaId + + */ + + hidePreview: function() { + + this.preview.setStyle('display','none'); + + this.textArea.setStyle('display','inline'); + + } + +}); + + + + + + + +var attackSysbolState = new Array(); + + + +function getAttackSymbolState(id) + +{ + + var state = attackSysbolState[id]; + + + + if (!state) + + { + + state = new Object(); + + + + var type = 0; + + + + var imgClass = $('markSybol_'+id).get('class'); + + + + var color = imgClass.substr(imgClass.lastIndexOf('_')+1, 11); + + + + switch (color) + + { + + case 'green': + + type = 1; + + break; + + case 'yellow': + + type = 2; + + break; + + case 'red': + + type = 3; + + break; + + default: + + type = 0; + + break; + + } + + state.type = type; + + state.oldType = type; + + + + + + attackSysbolState[id] = state; + + } + + + + return state; + +} + + + +function drawAttackSymbol(id) + +{ + + var state = getAttackSymbolState(id); + + + + if (state.type == 4) + + { + + state.type = 0; + + } + + + + switch (state.type) + + { + + case 1: + + img = 'img/green.gif'; + + color = 'green'; + + break; + + case 2: + + img = 'img/yellow.gif'; + + color = 'yellow'; + + break; + + case 3: + + img = 'img/red.gif'; + + color = 'red'; + + break; + + default: + + img = 'img/grey.gif'; + + color = 'grey'; + + break; + + } + + $('markSybol_'+id).set('class', 'attack_symbol_'+color); + +} + + + +function markAttackSymbol(id) + +{ + + + + var state = getAttackSymbolState(id); + + state.type ++ ; + + + + drawAttackSymbol(id); + + + + if (state.isSaving != true) + + { + + state.isSaving = true; + + + + (function() + + { + + if (state.type != state.oldType) + + { + + var jsonRequest = new Request.JSON( + + { + + method: 'post', + + url: 'ajax.php?f=vp&id='+id+'&state='+state.type, + + onSuccess: function(data) + + { + + var state = getAttackSymbolState(data.id); + + + + state.isSaving = false; + + + + state.type = data.type; + + state.oldType = data.type; + + + + drawAttackSymbol(data.id); + + } + + }); + + jsonRequest.post(); + + } + + else + + { + + state.isSaving = false; + + + + } + + + + }).delay(1000); + + } + + + +} \ No newline at end of file diff --git a/password.php b/password.php new file mode 100644 index 00000000..2a708e14 --- /dev/null +++ b/password.php @@ -0,0 +1,125 @@ + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    + +
    + +

    new password

    +
    forgotten password
    + +getUserField($uid, 'email', 0); + $username = $database->getUserField($uid, 'username', 0); + if($email != $_POST['email']){ + echo "

    Unfortunately the entered email address does not match the one used to register the account.

    \n"; + }else{ + // generate password and cpw + $npw = $generator->generateRandStr(7); + $cpw = $generator->generateRandStr(10); + + $database->addPassword($uid, $npw, $cpw); + + // send password mail + $mailer->sendPassword($email, $uid, $username, $npw, $cpw); + + echo "

    Password was sent to: ${_POST['email']}

    \n"; + } + + // user click the link in 'password forgotten' email + }else if(isset($_GET['cpw']) && isset($_GET['npw'])){ + $uid = intval($_GET['npw']); + $cpw = preg_replace('#[^a-zA-Z0-9]#', '', $_GET['cpw']); + + if(!$database->resetPassword($uid, $cpw)){ + echo '

    The password has not been changed. Perhaps the activation code has already been used.

    '; + }else{ + echo '

    The password has been successfully changed.

    '; + } + + + // user click 'generate password' link in login fail page, display input form here + }else { + +?> +

    Before you can request a new password you have to enter the email address that has been used to register the account. +

    Afterwards you will receive an e-mail with a new password. The password will only work after confirming it, though.

    +
    +

    + Email
    + + +

    + +

    + +

    +
    + +
    +
    +
    + +
    +
    + + +
    + + +
    + + \ No newline at end of file diff --git a/plus.php b/plus.php new file mode 100644 index 00000000..305e653e --- /dev/null +++ b/plus.php @@ -0,0 +1,150 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +else { + $building->procBuild($_GET); +} + +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + + 14) { +include("Templates/Plus/3.tpl"); +} +?> + +
    + +
    +
    +
    + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    + +
    + + \ No newline at end of file diff --git a/rules.php b/rules.php new file mode 100644 index 00000000..dfa51ea2 --- /dev/null +++ b/rules.php @@ -0,0 +1,95 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +?> + + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    + +
    +
    + +
    +
    +
    + +
    + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    +
    + + \ No newline at end of file diff --git a/spieler.php b/spieler.php new file mode 100644 index 00000000..3f1dda79 --- /dev/null +++ b/spieler.php @@ -0,0 +1,189 @@ +pageLoadTimeStart(); +$profile->procProfile($_POST); +$profile->procSpecial($_GET); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + + +
    += 2) { + $user = $database->getUserArray($_GET['uid'],1); + if(isset($user['id'])){ + include("Templates/Profile/overview.tpl"); + } else { + include("Templates/Profile/notfound.tpl"); + } + } + else { + include("Templates/Profile/special.tpl"); + } +} +else if (isset($_GET['s'])) { + if($_GET['s'] == 1) { + if($session->access!=BANNED){ + include("Templates/Profile/profile.tpl"); + }else{ + header("Location: banned.php"); + } + } + if($_GET['s'] == 2) { + if($session->access!=BANNED){ + include("Templates/Profile/preference.tpl"); + }else{ + header("Location: banned.php"); + } + } + if($_GET['s'] == 3) { + if($session->access!=BANNED){ + include("Templates/Profile/account.tpl"); + }else{ + header("Location: banned.php"); + } + } + if($_GET['s'] == 4) { + if($session->access!=BANNED){ + include("Templates/Profile/graphic.tpl"); + }else{ + header("Location: banned.php"); + } + } +} +?> +
    + +
    + +
    +
    +
    + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    + +
    + + \ No newline at end of file diff --git a/statistiken.php b/statistiken.php new file mode 100644 index 00000000..57d087e3 --- /dev/null +++ b/statistiken.php @@ -0,0 +1,170 @@ +pageLoadTimeStart(); +if(isset($_GET['rank'])){ $_POST['rank']==$_GET['rank']; } +$ranking->procRankReq($_GET); +$ranking->procRank($_POST); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    +

    Statistics

    +
    + >Player + | >Alliances + | >Villages + | >Heroes + | >General + > +
    + +
    + + + +
    + +
    + +
    +
    +
    + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    + +
    + + diff --git a/sysmsg.php b/sysmsg.php new file mode 100644 index 00000000..86534026 --- /dev/null +++ b/sysmsg.php @@ -0,0 +1,179 @@ +uid)) != '1') die("Hacking attempt!"); + +if(isset($_GET['del'])){ + $query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC"; + $result=mysql_query($query) or die (mysql_error()); + for ($i=0; $row=mysql_fetch_row($result); $i++) { + $updateattquery = mysql_query("UPDATE ".TB_PREFIX."users SET ok = '0' WHERE id = '".$row[0]."'") + or die(mysql_error()); + } +} + +if (@$_POST['submit'] == "Send") +{ + unset ($_SESSION['m_message']); + $_SESSION['m_message'] = $_POST['message']; + $NextStep = true; +} + + +if (@isset($_POST['confirm'])) +{ + if ($_POST['confirm'] == 'No' ) $Interupt = true; + if ($_POST['confirm'] == 'Yes'){ + + if(file_exists("Templates/text.tpl")) { + + $myFile = "Templates/text.tpl"; + $fh = fopen($myFile, 'w') or die("


    Can't open file: templates/text.tpl"); + $text = file_get_contents("Templates/text_format.tpl"); + $text = preg_replace("'%TEKST%'",$_SESSION['m_message'] ,$text); + fwrite($fh, $text); + + $query="SELECT * FROM ".TB_PREFIX."users ORDER BY id + 0 DESC"; + $result=mysql_query($query) or die (mysql_error()); + for ($i=0; $row=mysql_fetch_row($result); $i++) { + $updateattquery = mysql_query("UPDATE ".TB_PREFIX."users SET ok = '1' WHERE id = '".$row[0]."'") + or die(mysql_error()); + } + $done = true; + } else { die("


    wrong"); } +}} + +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + + + +
    +
    + +
    +
    + + +
    + + +
    + + + diff --git a/terms.php b/terms.php new file mode 100644 index 00000000..e763326d --- /dev/null +++ b/terms.php @@ -0,0 +1,6 @@ + +

    Terms and Conditions.

    +
    +

    Not finished.

    \ No newline at end of file diff --git a/testmysql.php b/testmysql.php new file mode 100644 index 00000000..fdb5dd88 --- /dev/null +++ b/testmysql.php @@ -0,0 +1,7 @@ + \ No newline at end of file diff --git a/tutorial.php b/tutorial.php new file mode 100644 index 00000000..cdbbb7cd --- /dev/null +++ b/tutorial.php @@ -0,0 +1,6 @@ + +

    Tutorial.

    +
    +

    Register account first.

    oh look i changed it:Osdasd \ No newline at end of file diff --git a/uncrypt.js b/uncrypt.js new file mode 100644 index 00000000..0a3f8efc --- /dev/null +++ b/uncrypt.js @@ -0,0 +1,8267 @@ +var MooTools = { + version: "1.2.5", + build: "008d8f0f2fcc2044e54fdd3635341aaab274e757" +}; + +var Native = function (l) { + l = l || {}; + var a = l.name; + var j = l.legacy; + var b = l.protect; + var c = l.implement; + var i = l.generics; + var g = l.initialize; + var h = l.afterImplement || + function () {}; + var d = g || j; + i = i !== false; + d.constructor = Native; + d.$family = { + name: "native" + }; + if (j && g) { + d.prototype = j.prototype + } + d.prototype.constructor = d; + if (a) { + var f = a.toLowerCase(); + d.prototype.$family = { + name: f + }; + Native.typize(d, f) + } + var k = function (o, m, p, n) { + if (!b || n || !o.prototype[m]) { + o.prototype[m] = p + } + if (i) { + Native.genericize(o, m, b) + } + h.call(o, m, p); + return o + }; + d.alias = function (o, m, q) { + if (typeof o == "string") { + var p = this.prototype[o]; + if ((o = p)) { + return k(this, m, o, q) + } + } + for (var n in o) { + this.alias(n, o[n], m) + } + return this + }; + d.implement = function (n, m, q) { + if (typeof n == "string") { + return k(this, n, m, q) + } + for (var o in n) { + k(this, o, n[o], m) + } + return this + }; + if (c) { + d.implement(c) + } + return d + }; +Native.genericize = function (b, c, a) { + if ((!a || !b[c]) && typeof b.prototype[c] == "function") { + b[c] = function () { + var d = Array.prototype.slice.call(arguments); + return b.prototype[c].apply(d.shift(), d) + } + } +}; +Native.implement = function (d, c) { + for (var b = 0, a = d.length; b < a; b++) { + d[b].implement(c) + } +}; +Native.typize = function (a, b) { + if (!a.type) { + a.type = function (c) { + return ($type(c) === b) + } + } +}; +(function () { + var a = { + Array: Array, + Date: Date, + Function: Function, + Number: Number, + RegExp: RegExp, + String: String + }; + for (var j in a) { + new Native({ + name: j, + initialize: a[j], + protect: true + }) + } + var d = { + "boolean": Boolean, + "native": Native, + object: Object + }; + for (var c in d) { + Native.typize(d[c], c) + } + var h = { + Array: ["concat", "indexOf", "join", "lastIndexOf", "pop", "push", "reverse", "shift", "slice", "sort", "splice", "toString", "unshift", "valueOf"], + String: ["charAt", "charCodeAt", "concat", "indexOf", "lastIndexOf", "match", "replace", "search", "slice", "split", "substr", "substring", "toLowerCase", "toUpperCase", "valueOf"] + }; + for (var f in h) { + for (var b = h[f].length; b--;) { + Native.genericize(a[f], h[f][b], true) + } + } +})(); +var Hash = new Native({ + name: "Hash", + initialize: function (a) { + if ($type(a) == "hash") { + a = $unlink(a.getClean()) + } + for (var b in a) { + this[b] = a[b] + } + return this + } +}); +Hash.implement({ + forEach: function (b, c) { + for (var a in this) { + if (this.hasOwnProperty(a)) { + b.call(c, this[a], a, this) + } + } + }, + getClean: function () { + var b = {}; + for (var a in this) { + if (this.hasOwnProperty(a)) { + b[a] = this[a] + } + } + return b + }, + getLength: function () { + var b = 0; + for (var a in this) { + if (this.hasOwnProperty(a)) { + b++ + } + } + return b + } +}); +Hash.alias("forEach", "each"); +Array.implement({ + forEach: function (c, d) { + for (var b = 0, a = this.length; b < a; b++) { + c.call(d, this[b], b, this) + } + } +}); +Array.alias("forEach", "each"); + +function $A(b) { + if (b.item) { + var a = b.length, + c = new Array(a); + while (a--) { + c[a] = b[a] + } + return c + } + return Array.prototype.slice.call(b) +} +function $arguments(a) { + return function () { + return arguments[a] + } +} +function $chk(a) { + return !!(a || a === 0) +} +function $clear(a) { + clearTimeout(a); + clearInterval(a); + return null +} +function $defined(a) { + return (a != undefined) +} +function $each(c, b, d) { + var a = $type(c); + ((a == "arguments" || a == "collection" || a == "array") ? Array : Hash).each(c, b, d) +} +function $empty() {} +function $extend(c, a) { + for (var b in (a || {})) { + c[b] = a[b] + } + return c +} +function $H(a) { + return new Hash(a) +} +function $lambda(a) { + return ($type(a) == "function") ? a : function () { + return a + } +} +function $merge() { + var a = Array.slice(arguments); + a.unshift({}); + return $mixin.apply(null, a) +} +function $mixin(f) { + for (var d = 1, a = arguments.length; d < a; d++) { + var b = arguments[d]; + if ($type(b) != "object") { + continue + } + for (var c in b) { + var h = b[c], + g = f[c]; + f[c] = (g && $type(h) == "object" && $type(g) == "object") ? $mixin(g, h) : $unlink(h) + } + } + return f +} +function $pick() { + for (var b = 0, a = arguments.length; b < a; b++) { + if (arguments[b] != undefined) { + return arguments[b] + } + } + return null +} +function $random(b, a) { + return Math.floor(Math.random() * (a - b + 1) + b) +} +function $splat(b) { + var a = $type(b); + return (a) ? ((a != "array" && a != "arguments") ? [b] : b) : [] +} +var $time = Date.now || +function () { + return +new Date +}; + +function $try() { + for (var b = 0, a = arguments.length; b < a; b++) { + try { + return arguments[b]() + } catch (c) {} + } + return null +} +function $type(a) { + if (a == undefined) { + return false + } + if (a.$family) { + return (a.$family.name == "number" && !isFinite(a)) ? false : a.$family.name + } + if (a.nodeName) { + switch (a.nodeType) { + case 1: + return "element"; + case 3: + return (/\S/).test(a.nodeValue) ? "textnode" : "whitespace" + } + } else { + if (typeof a.length == "number") { + if (a.callee) { + return "arguments" + } else { + if (a.item) { + return "collection" + } + } + } + } + return typeof a +} +function $unlink(c) { + var b; + switch ($type(c)) { + case "object": + b = {}; + for (var f in c) { + b[f] = $unlink(c[f]) + } + break; + case "hash": + b = new Hash(c); + break; + case "array": + b = []; + for (var d = 0, a = c.length; d < a; d++) { + b[d] = $unlink(c[d]) + } + break; + default: + return c + } + return b +} +Array.implement({ + every: function (c, d) { + for (var b = 0, a = this.length; b < a; b++) { + if (!c.call(d, this[b], b, this)) { + return false + } + } + return true + }, + filter: function (d, f) { + var c = []; + for (var b = 0, a = this.length; b < a; b++) { + if (d.call(f, this[b], b, this)) { + c.push(this[b]) + } + } + return c + }, + clean: function () { + return this.filter($defined) + }, + indexOf: function (c, d) { + var a = this.length; + for (var b = (d < 0) ? Math.max(0, a + d) : d || 0; b < a; b++) { + if (this[b] === c) { + return b + } + } + return -1 + }, + map: function (d, f) { + var c = []; + for (var b = 0, a = this.length; b < a; b++) { + c[b] = d.call(f, this[b], b, this) + } + return c + }, + some: function (c, d) { + for (var b = 0, a = this.length; b < a; b++) { + if (c.call(d, this[b], b, this)) { + return true + } + } + return false + }, + associate: function (c) { + var d = {}, + b = Math.min(this.length, c.length); + for (var a = 0; a < b; a++) { + d[c[a]] = this[a] + } + return d + }, + link: function (c) { + var a = {}; + for (var f = 0, b = this.length; f < b; f++) { + for (var d in c) { + if (c[d](this[f])) { + a[d] = this[f]; + delete c[d]; + break + } + } + } + return a + }, + contains: function (a, b) { + return this.indexOf(a, b) != -1 + }, + extend: function (c) { + for (var b = 0, a = c.length; b < a; b++) { + this.push(c[b]) + } + return this + }, + getLast: function () { + return (this.length) ? this[this.length - 1] : null + }, + getRandom: function () { + return (this.length) ? this[$random(0, this.length - 1)] : null + }, + include: function (a) { + if (!this.contains(a)) { + this.push(a) + } + return this + }, + combine: function (c) { + for (var b = 0, a = c.length; b < a; b++) { + this.include(c[b]) + } + return this + }, + erase: function (b) { + for (var a = this.length; a--; a) { + if (this[a] === b) { + this.splice(a, 1) + } + } + return this + }, + empty: function () { + this.length = 0; + return this + }, + flatten: function () { + var d = []; + for (var b = 0, a = this.length; b < a; b++) { + var c = $type(this[b]); + if (!c) { + continue + } + d = d.concat((c == "array" || c == "collection" || c == "arguments") ? Array.flatten(this[b]) : this[b]) + } + return d + }, + hexToRgb: function (b) { + if (this.length != 3) { + return null + } + var a = this.map(function (c) { + if (c.length == 1) { + c += c + } + return c.toInt(16) + }); + return (b) ? a : "rgb(" + a + ")" + }, + rgbToHex: function (d) { + if (this.length < 3) { + return null + } + if (this.length == 4 && this[3] == 0 && !d) { + return "transparent" + } + var b = []; + for (var a = 0; a < 3; a++) { + var c = (this[a] - 0).toString(16); + b.push((c.length == 1) ? "0" + c : c) + } + return (d) ? b : "#" + b.join("") + } +}); +String.implement({ + test: function (a, b) { + return ((typeof a == "string") ? new RegExp(a, b) : a).test(this) + }, + contains: function (a, b) { + return (b) ? (b + this + b).indexOf(b + a + b) > -1 : this.indexOf(a) > -1 + }, + trim: function () { + return this.replace(/^\s+|\s+$/g, "") + }, + clean: function () { + return this.replace(/\s+/g, " ").trim() + }, + camelCase: function () { + return this.replace(/-\D/g, function (a) { + return a.charAt(1).toUpperCase() + }) + }, + hyphenate: function () { + return this.replace(/[A-Z]/g, function (a) { + return ("-" + a.charAt(0).toLowerCase()) + }) + }, + capitalize: function () { + return this.replace(/\b[a-z]/g, function (a) { + return a.toUpperCase() + }) + }, + escapeRegExp: function () { + return this.replace(/([-.*+?^${}()|[\]\/\\])/g, "\\$1") + }, + toInt: function (a) { + return parseInt(this, a || 10) + }, + toFloat: function () { + return parseFloat(this) + }, + hexToRgb: function (b) { + var a = this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/); + return (a) ? a.slice(1).hexToRgb(b) : null + }, + rgbToHex: function (b) { + var a = this.match(/\d{1,3}/g); + return (a) ? a.rgbToHex(b) : null + }, + stripScripts: function (b) { + var a = ""; + var c = this.replace(/]*>([\s\S]*?)<\/script>/gi, function () { + a += arguments[1] + "\n"; + return "" + }); + if (b === true) { + $exec(a) + } else { + if ($type(b) == "function") { + b(a, c) + } + } + return c + }, + substitute: function (a, b) { + return this.replace(b || (/\\?\{([^{}]+)\}/g), function (d, c) { + if (d.charAt(0) == "\\") { + return d.slice(1) + } + return (a[c] != undefined) ? a[c] : "" + }) + } +}); +try { + delete Function.prototype.bind +} catch (e) {} +Function.implement({ + extend: function (a) { + for (var b in a) { + this[b] = a[b] + } + return this + }, + create: function (b) { + var a = this; + b = b || {}; + return function (d) { + var c = b.arguments; + c = (c != undefined) ? $splat(c) : Array.slice(arguments, (b.event) ? 1 : 0); + if (b.event) { + c = [d || window.event].extend(c) + } + var f = function () { + return a.apply(b.bind || null, c) + }; + if (b.delay) { + return setTimeout(f, b.delay) + } + if (b.periodical) { + return setInterval(f, b.periodical) + } + if (b.attempt) { + return $try(f) + } + return f() + } + }, + run: function (a, b) { + return this.apply(b, $splat(a)) + }, + pass: function (a, b) { + return this.create({ + bind: b, + arguments: a + }) + }, + bind: function (b, a) { + return this.create({ + bind: b, + arguments: a + }) + }, + bindWithEvent: function (b, a) { + return this.create({ + bind: b, + arguments: a, + event: true + }) + }, + attempt: function (a, b) { + return this.create({ + bind: b, + arguments: a, + attempt: true + })() + }, + delay: function (b, c, a) { + return this.create({ + bind: c, + arguments: a, + delay: b + })() + }, + periodical: function (c, b, a) { + return this.create({ + bind: b, + arguments: a, + periodical: c + })() + } +}); +Number.implement({ + limit: function (b, a) { + return Math.min(a, Math.max(b, this)) + }, + round: function (a) { + a = Math.pow(10, a || 0); + return Math.round(this * a) / a + }, + times: function (b, c) { + for (var a = 0; a < this; a++) { + b.call(c, a, this) + } + }, + toFloat: function () { + return parseFloat(this) + }, + toInt: function (a) { + return parseInt(this, a || 10) + } +}); +Number.alias("times", "each"); +(function (b) { + var a = {}; + b.each(function (c) { + if (!Number[c]) { + a[c] = function () { + return Math[c].apply(null, [this].concat($A(arguments))) + } + } + }); + Number.implement(a) +})(["abs", "acos", "asin", "atan", "atan2", "ceil", "cos", "exp", "floor", "log", "max", "min", "pow", "sin", "sqrt", "tan"]); +Hash.implement({ + has: Object.prototype.hasOwnProperty, + keyOf: function (b) { + for (var a in this) { + if (this.hasOwnProperty(a) && this[a] === b) { + return a + } + } + return null + }, + hasValue: function (a) { + return (Hash.keyOf(this, a) !== null) + }, + extend: function (a) { + Hash.each(a || {}, function (c, b) { + Hash.set(this, b, c) + }, this); + return this + }, + combine: function (a) { + Hash.each(a || {}, function (c, b) { + Hash.include(this, b, c) + }, this); + return this + }, + erase: function (a) { + if (this.hasOwnProperty(a)) { + delete this[a] + } + return this + }, + get: function (a) { + return (this.hasOwnProperty(a)) ? this[a] : null + }, + set: function (a, b) { + if (!this[a] || this.hasOwnProperty(a)) { + this[a] = b + } + return this + }, + empty: function () { + Hash.each(this, function (b, a) { + delete this[a] + }, this); + return this + }, + include: function (a, b) { + if (this[a] == undefined) { + this[a] = b + } + return this + }, + map: function (b, c) { + var a = new Hash; + Hash.each(this, function (f, d) { + a.set(d, b.call(c, f, d, this)) + }, this); + return a + }, + filter: function (b, c) { + var a = new Hash; + Hash.each(this, function (f, d) { + if (b.call(c, f, d, this)) { + a.set(d, f) + } + }, this); + return a + }, + every: function (b, c) { + for (var a in this) { + if (this.hasOwnProperty(a) && !b.call(c, this[a], a)) { + return false + } + } + return true + }, + some: function (b, c) { + for (var a in this) { + if (this.hasOwnProperty(a) && b.call(c, this[a], a)) { + return true + } + } + return false + }, + getKeys: function () { + var a = []; + Hash.each(this, function (c, b) { + a.push(b) + }); + return a + }, + getValues: function () { + var a = []; + Hash.each(this, function (b) { + a.push(b) + }); + return a + }, + toQueryString: function (a) { + var b = []; + Hash.each(this, function (g, f) { + if (a) { + f = a + "[" + f + "]" + } + var d; + switch ($type(g)) { + case "object": + d = Hash.toQueryString(g, f); + break; + case "array": + var c = {}; + g.each(function (j, h) { + c[h] = j + }); + d = Hash.toQueryString(c, f); + break; + default: + d = f + "=" + encodeURIComponent(g) + } + if (g != undefined) { + b.push(d) + } + }); + return b.join("&") + } +}); +Hash.alias({ + keyOf: "indexOf", + hasValue: "contains" +}); + +function Class(b) { + if (b instanceof Function) { + b = { + initialize: b + } + } + var a = function () { + Object.reset(this); + if (a._prototyping) { + return this + } + this._current = $empty; + var c = (this.initialize) ? this.initialize.apply(this, arguments) : this; + delete this._current; + delete this.caller; + return c + }.extend(this); + a.implement(b); + a.constructor = Class; + a.prototype.constructor = a; + return a +} +Function.prototype.protect = function () { + this._protected = true; + return this +}; +Object.reset = function (a, c) { + if (c == null) { + for (var f in a) { + Object.reset(a, f) + } + return a + } + delete a[c]; + switch ($type(a[c])) { + case "object": + var d = function () {}; + d.prototype = a[c]; + var b = new d; + a[c] = Object.reset(b); + break; + case "array": + a[c] = $unlink(a[c]); + break + } + return a +}; +new Native({ + name: "Class", + initialize: Class +}).extend({ + instantiate: function (b) { + b._prototyping = true; + var a = new b; + delete b._prototyping; + return a + }, + wrap: function (a, b, c) { + if (c._origin) { + c = c._origin + } + return function () { + if (c._protected && this._current == null) { + throw new Error('The method "' + b + '" cannot be called.') + } + var f = this.caller, + g = this._current; + this.caller = g; + this._current = arguments.callee; + var d = c.apply(this, arguments); + this._current = g; + this.caller = f; + return d + }.extend({ + _owner: a, + _origin: c, + _name: b + }) + } +}); +Class.implement({ + implement: function (a, d) { + if ($type(a) == "object") { + for (var f in a) { + this.implement(f, a[f]) + } + return this + } + var g = Class.Mutators[a]; + if (g) { + d = g.call(this, d); + if (d == null) { + return this + } + } + var c = this.prototype; + switch ($type(d)) { + case "function": + if (d._hidden) { + return this + } + c[a] = Class.wrap(this, a, d); + break; + case "object": + var b = c[a]; + if ($type(b) == "object") { + $mixin(b, d) + } else { + c[a] = $unlink(d) + } + break; + case "array": + c[a] = $unlink(d); + break; + default: + c[a] = d + } + return this + } +}); +Class.Mutators = { + Extends: function (a) { + this.parent = a; + this.prototype = Class.instantiate(a); + this.implement("parent", function () { + var b = this.caller._name, + c = this.caller._owner.parent.prototype[b]; + if (!c) { + throw new Error('The method "' + b + '" has no parent.') + } + return c.apply(this, arguments) + }.protect()) + }, + Implements: function (a) { + $splat(a).each(function (b) { + if (b instanceof Function) { + b = Class.instantiate(b) + } + this.implement(b) + }, this) + } +}; +var Chain = new Class({ + $chain: [], + chain: function () { + this.$chain.extend(Array.flatten(arguments)); + return this + }, + callChain: function () { + return (this.$chain.length) ? this.$chain.shift().apply(this, arguments) : false + }, + clearChain: function () { + this.$chain.empty(); + return this + } +}); +var Events = new Class({ + $events: {}, + addEvent: function (c, b, a) { + c = Events.removeOn(c); + if (b != $empty) { + this.$events[c] = this.$events[c] || []; + this.$events[c].include(b); + if (a) { + b.internal = true + } + } + return this + }, + addEvents: function (a) { + for (var b in a) { + this.addEvent(b, a[b]) + } + return this + }, + fireEvent: function (c, b, a) { + c = Events.removeOn(c); + if (!this.$events || !this.$events[c]) { + return this + } + this.$events[c].each(function (d) { + d.create({ + bind: this, + delay: a, + "arguments": b + })() + }, this); + return this + }, + removeEvent: function (b, a) { + b = Events.removeOn(b); + if (!this.$events[b]) { + return this + } + if (!a.internal) { + this.$events[b].erase(a) + } + return this + }, + removeEvents: function (c) { + var d; + if ($type(c) == "object") { + for (d in c) { + this.removeEvent(d, c[d]) + } + return this + } + if (c) { + c = Events.removeOn(c) + } + for (d in this.$events) { + if (c && c != d) { + continue + } + var b = this.$events[d]; + for (var a = b.length; a--; a) { + this.removeEvent(d, b[a]) + } + } + return this + } +}); +Events.removeOn = function (a) { + return a.replace(/^on([A-Z])/, function (b, c) { + return c.toLowerCase() + }) +}; +var Options = new Class({ + setOptions: function () { + this.options = $merge.run([this.options].extend(arguments)); + if (!this.addEvent) { + return this + } + for (var a in this.options) { + if ($type(this.options[a]) != "function" || !(/^on[A-Z]/).test(a)) { + continue + } + this.addEvent(a, this.options[a]); + delete this.options[a] + } + return this + } +}); +var Browser = $merge({ + Engine: { + name: "unknown", + version: 0 + }, + Platform: { + name: (window.orientation != undefined) ? "ipod" : (navigator.platform.match(/mac|win|linux/i) || ["other"])[0].toLowerCase() + }, + Features: { + xpath: !! (document.evaluate), + air: !! (window.runtime), + query: !! (document.querySelector) + }, + Plugins: {}, + Engines: { + presto: function () { + return (!window.opera) ? false : ((arguments.callee.caller) ? 960 : ((document.getElementsByClassName) ? 950 : 925)) + }, + trident: function () { + return (!window.ActiveXObject) ? false : ((window.XMLHttpRequest) ? ((document.querySelectorAll) ? 6 : 5) : 4) + }, + webkit: function () { + return (navigator.taintEnabled) ? false : ((Browser.Features.xpath) ? ((Browser.Features.query) ? 525 : 420) : 419) + }, + gecko: function () { + return (!document.getBoxObjectFor && window.mozInnerScreenX == null) ? false : ((document.getElementsByClassName) ? 19 : 18) + } + } +}, Browser || {}); +Browser.Platform[Browser.Platform.name] = true; +Browser.detect = function () { + for (var b in this.Engines) { + var a = this.Engines[b](); + if (a) { + this.Engine = { + name: b, + version: a + }; + this.Engine[b] = this.Engine[b + a] = true; + break + } + } + return { + name: b, + version: a + } +}; +Browser.detect(); +Browser.Request = function () { + return $try(function () { + return new XMLHttpRequest() + }, function () { + return new ActiveXObject("MSXML2.XMLHTTP") + }, function () { + return new ActiveXObject("Microsoft.XMLHTTP") + }) +}; +Browser.Features.xhr = !! (Browser.Request()); +Browser.Plugins.Flash = (function () { + var a = ($try(function () { + return navigator.plugins["Shockwave Flash"].description + }, function () { + return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version") + }) || "0 r0").match(/\d+/g); + return { + version: parseInt(a[0] || 0 + "." + a[1], 10) || 0, + build: parseInt(a[2], 10) || 0 + } +})(); + +function $exec(b) { + if (!b) { + return b + } + if (window.execScript) { + window.execScript(b) + } else { + var a = document.createElement("script"); + a.setAttribute("type", "text/javascript"); + a[(Browser.Engine.webkit && Browser.Engine.version < 420) ? "innerText" : "text"] = b; + document.head.appendChild(a); + document.head.removeChild(a) + } + return b +} +Native.UID = 1; +var $uid = (Browser.Engine.trident) ? +function (a) { + return (a.uid || (a.uid = [Native.UID++]))[0] +} : function (a) { + return a.uid || (a.uid = Native.UID++) +}; +var Window = new Native({ + name: "Window", + legacy: (Browser.Engine.trident) ? null : window.Window, + initialize: function (a) { + $uid(a); + if (!a.Element) { + a.Element = $empty; + if (Browser.Engine.webkit) { + a.document.createElement("iframe") + } + a.Element.prototype = (Browser.Engine.webkit) ? window["[[DOMElement.prototype]]"] : {} + } + a.document.window = a; + return $extend(a, Window.Prototype) + }, + afterImplement: function (b, a) { + window[b] = Window.Prototype[b] = a + } +}); +Window.Prototype = { + $family: { + name: "window" + } +}; +new Window(window); +var Document = new Native({ + name: "Document", + legacy: (Browser.Engine.trident) ? null : window.Document, + initialize: function (a) { + $uid(a); + a.head = a.getElementsByTagName("head")[0]; + a.html = a.getElementsByTagName("html")[0]; + if (Browser.Engine.trident && Browser.Engine.version <= 4) { + $try(function () { + a.execCommand("BackgroundImageCache", false, true) + }) + } + if (Browser.Engine.trident) { + a.window.attachEvent("onunload", function () { + a.window.detachEvent("onunload", arguments.callee); + a.head = a.html = a.window = null + }) + } + return $extend(a, Document.Prototype) + }, + afterImplement: function (b, a) { + document[b] = Document.Prototype[b] = a + } +}); +Document.Prototype = { + $family: { + name: "document" + } +}; +new Document(document); +var Element = new Native({ + name: "Element", + legacy: window.Element, + initialize: function (a, b) { + var c = Element.Constructors.get(a); + if (c) { + return c(b) + } + if (typeof a == "string") { + return document.newElement(a, b) + } + return document.id(a).set(b) + }, + afterImplement: function (a, b) { + Element.Prototype[a] = b; + if (Array[a]) { + return + } + Elements.implement(a, function () { + var c = [], + h = true; + for (var f = 0, d = this.length; f < d; f++) { + var g = this[f][a].apply(this[f], arguments); + c.push(g); + if (h) { + h = ($type(g) == "element") + } + } + return (h) ? new Elements(c) : c + }) + } +}); +Element.Prototype = { + $family: { + name: "element" + } +}; +Element.Constructors = new Hash; +var IFrame = new Native({ + name: "IFrame", + generics: false, + initialize: function () { + var g = Array.link(arguments, { + properties: Object.type, + iframe: $defined + }); + var d = g.properties || {}; + var c = document.id(g.iframe); + var f = d.onload || $empty; + delete d.onload; + d.id = d.name = $pick(d.id, d.name, c ? (c.id || c.name) : "IFrame_" + $time()); + c = new Element(c || "iframe", d); + var b = function () { + var h = $try(function () { + return c.contentWindow.location.host + }); + if (!h || h == window.location.host) { + var i = new Window(c.contentWindow); + new Document(c.contentWindow.document); + $extend(i.Element.prototype, Element.Prototype) + } + f.call(c.contentWindow, c.contentWindow.document) + }; + var a = $try(function () { + return c.contentWindow + }); + ((a && a.document.body) || window.frames[d.id]) ? b() : c.addListener("load", b); + return c + } +}); +var Elements = new Native({ + initialize: function (g, b) { + b = $extend({ + ddup: true, + cash: true + }, b); + g = g || []; + if (b.ddup || b.cash) { + var h = {}, + f = []; + for (var c = 0, a = g.length; c < a; c++) { + var d = document.id(g[c], !b.cash); + if (b.ddup) { + if (h[d.uid]) { + continue + } + h[d.uid] = true + } + if (d) { + f.push(d) + } + } + g = f + } + return (b.cash) ? $extend(g, this) : g + } +}); +Elements.implement({ + filter: function (a, b) { + if (!a) { + return this + } + return new Elements(Array.filter(this, (typeof a == "string") ? + function (c) { + return c.match(a) + } : a, b)) + } +}); +(function () { + var d; + try { + var a = document.createElement(""); + d = (a.name == "x") + } catch (b) {} + var c = function (f) { + return ("" + f).replace(/&/g, "&").replace(/"/g, """) + }; + Document.implement({ + newElement: function (f, g) { + if (g && g.checked != null) { + g.defaultChecked = g.checked + } + if (d && g) { + f = "<" + f; + if (g.name) { + f += ' name="' + c(g.name) + '"' + } + if (g.type) { + f += ' type="' + c(g.type) + '"' + } + f += ">"; + delete g.name; + delete g.type + } + return this.id(this.createElement(f)).set(g) + }, + newTextNode: function (f) { + return this.createTextNode(f) + }, + getDocument: function () { + return this + }, + getWindow: function () { + return this.window + }, + id: (function () { + var f = { + string: function (i, h, g) { + i = g.getElementById(i); + return (i) ? f.element(i, h) : null + }, + element: function (g, j) { + $uid(g); + if (!j && !g.$family && !(/^object|embed$/i).test(g.tagName)) { + var h = Element.Prototype; + for (var i in h) { + g[i] = h[i] + } + } + return g + }, + object: function (h, i, g) { + if (h.toElement) { + return f.element(h.toElement(g), i) + } + return null + } + }; + f.textnode = f.whitespace = f.window = f.document = $arguments(0); + return function (h, j, i) { + if (h && h.$family && h.uid) { + return h + } + var g = $type(h); + return (f[g]) ? f[g](h, j, i || document) : null + } + })() + }) +})(); +if (window.$ == null) { + Window.implement({ + $: function (a, b) { + return document.id(a, b, this.document) + } + }) +} +Window.implement({ + $$: function (a) { + if (arguments.length == 1 && typeof a == "string") { + return this.document.getElements(a) + } + var g = []; + var c = Array.flatten(arguments); + for (var d = 0, b = c.length; d < b; d++) { + var f = c[d]; + switch ($type(f)) { + case "element": + g.push(f); + break; + case "string": + g.extend(this.document.getElements(f, true)) + } + } + return new Elements(g) + }, + getDocument: function () { + return this.document + }, + getWindow: function () { + return this + } +}); +Native.implement([Element, Document], { + getElement: function (a, b) { + return document.id(this.getElements(a, true)[0] || null, b) + }, + getElements: function (a, d) { + a = a.split(","); + var c = []; + var b = (a.length > 1); + a.each(function (f) { + var g = this.getElementsByTagName(f.trim()); + (b) ? c.extend(g) : c = g + }, this); + return new Elements(c, { + ddup: b, + cash: !d + }) + } +}); +(function () { + var i = {}, + g = {}; + var j = { + input: "checked", + option: "selected", + textarea: (Browser.Engine.webkit && Browser.Engine.version < 420) ? "innerHTML" : "value" + }; + var c = function (m) { + return (g[m] || (g[m] = {})) + }; + var h = function (o, m) { + if (!o) { + return + } + var n = o.uid; + if (m !== true) { + m = false + } + if (Browser.Engine.trident) { + if (o.clearAttributes) { + var r = m && o.cloneNode(false); + o.clearAttributes(); + if (r) { + o.mergeAttributes(r) + } + } else { + if (o.removeEvents) { + o.removeEvents() + } + } + if ((/object/i).test(o.tagName)) { + for (var q in o) { + if (typeof o[q] == "function") { + o[q] = $empty + } + } + Element.dispose(o) + } + } + if (!n) { + return + } + i[n] = g[n] = null + }; + var d = function () { + Hash.each(i, h); + if (Browser.Engine.trident) { + $A(document.getElementsByTagName("object")).each(h) + } + if (window.CollectGarbage) { + CollectGarbage() + } + i = g = null + }; + var k = function (o, m, t, n, q, s) { + var p = o[t || m]; + var r = []; + while (p) { + if (p.nodeType == 1 && (!n || Element.match(p, n))) { + if (!q) { + return document.id(p, s) + } + r.push(p) + } + p = p[m] + } + return (q) ? new Elements(r, { + ddup: false, + cash: !s + }) : null + }; + var f = { + html: "innerHTML", + "class": "className", + "for": "htmlFor", + defaultValue: "defaultValue", + text: (Browser.Engine.trident || (Browser.Engine.webkit && Browser.Engine.version < 420)) ? "innerText" : "textContent" + }; + var b = ["compact", "nowrap", "ismap", "declare", "noshade", "checked", "disabled", "readonly", "multiple", "selected", "noresize", "defer"]; + var l = ["value", "type", "defaultValue", "accessKey", "cellPadding", "cellSpacing", "colSpan", "frameBorder", "maxLength", "readOnly", "rowSpan", "tabIndex", "useMap"]; + b = b.associate(b); + Hash.extend(f, b); + Hash.extend(f, l.associate(l.map(String.toLowerCase))); + var a = { + before: function (n, m) { + if (m.parentNode) { + m.parentNode.insertBefore(n, m) + } + }, + after: function (n, m) { + if (!m.parentNode) { + return + } + var o = m.nextSibling; + (o) ? m.parentNode.insertBefore(n, o) : m.parentNode.appendChild(n) + }, + bottom: function (n, m) { + m.appendChild(n) + }, + top: function (n, m) { + var o = m.firstChild; + (o) ? m.insertBefore(n, o) : m.appendChild(n) + } + }; + a.inside = a.bottom; + Hash.each(a, function (m, n) { + n = n.capitalize(); + Element.implement("inject" + n, function (o) { + m(this, document.id(o, true)); + return this + }); + Element.implement("grab" + n, function (o) { + m(document.id(o, true), this); + return this + }) + }); + Element.implement({ + set: function (q, n) { + switch ($type(q)) { + case "object": + for (var o in q) { + this.set(o, q[o]) + } + break; + case "string": + var m = Element.Properties.get(q); + (m && m.set) ? m.set.apply(this, Array.slice(arguments, 1)) : this.setProperty(q, n) + } + return this + }, + get: function (n) { + var m = Element.Properties.get(n); + return (m && m.get) ? m.get.apply(this, Array.slice(arguments, 1)) : this.getProperty(n) + }, + erase: function (n) { + var m = Element.Properties.get(n); + (m && m.erase) ? m.erase.apply(this) : this.removeProperty(n); + return this + }, + setProperty: function (n, o) { + var m = f[n]; + if (o == undefined) { + return this.removeProperty(n) + } + if (m && b[n]) { + o = !! o + }(m) ? this[m] = o : this.setAttribute(n, "" + o); + return this + }, + setProperties: function (m) { + for (var n in m) { + this.setProperty(n, m[n]) + } + return this + }, + getProperty: function (n) { + var m = f[n]; + var o = (m) ? this[m] : this.getAttribute(n, 2); + return (b[n]) ? !! o : (m) ? o : o || null + }, + getProperties: function () { + var m = $A(arguments); + return m.map(this.getProperty, this).associate(m) + }, + removeProperty: function (n) { + var m = f[n]; + (m) ? this[m] = (m && b[n]) ? false : "" : this.removeAttribute(n); + return this + }, + removeProperties: function () { + Array.each(arguments, this.removeProperty, this); + return this + }, + hasClass: function (m) { + return this.className.contains(m, " ") + }, + addClass: function (m) { + if (!this.hasClass(m)) { + this.className = (this.className + " " + m).clean() + } + return this + }, + removeClass: function (m) { + this.className = this.className.replace(new RegExp("(^|\\s)" + m + "(?:\\s|$)"), "$1"); + return this + }, + toggleClass: function (m) { + return this.hasClass(m) ? this.removeClass(m) : this.addClass(m) + }, + adopt: function () { + Array.flatten(arguments).each(function (m) { + m = document.id(m, true); + if (m) { + this.appendChild(m) + } + }, this); + return this + }, + appendText: function (n, m) { + return this.grab(this.getDocument().newTextNode(n), m) + }, + grab: function (n, m) { + a[m || "bottom"](document.id(n, true), this); + return this + }, + inject: function (n, m) { + a[m || "bottom"](this, document.id(n, true)); + return this + }, + replaces: function (m) { + m = document.id(m, true); + m.parentNode.replaceChild(this, m); + return this + }, + wraps: function (n, m) { + n = document.id(n, true); + return this.replaces(n).grab(n, m) + }, + getPrevious: function (m, n) { + return k(this, "previousSibling", null, m, false, n) + }, + getAllPrevious: function (m, n) { + return k(this, "previousSibling", null, m, true, n) + }, + getNext: function (m, n) { + return k(this, "nextSibling", null, m, false, n) + }, + getAllNext: function (m, n) { + return k(this, "nextSibling", null, m, true, n) + }, + getFirst: function (m, n) { + return k(this, "nextSibling", "firstChild", m, false, n) + }, + getLast: function (m, n) { + return k(this, "previousSibling", "lastChild", m, false, n) + }, + getParent: function (m, n) { + return k(this, "parentNode", null, m, false, n) + }, + getParents: function (m, n) { + return k(this, "parentNode", null, m, true, n) + }, + getSiblings: function (m, n) { + return this.getParent().getChildren(m, n).erase(this) + }, + getChildren: function (m, n) { + return k(this, "nextSibling", "firstChild", m, true, n) + }, + getWindow: function () { + return this.ownerDocument.window + }, + getDocument: function () { + return this.ownerDocument + }, + getElementById: function (p, o) { + var n = this.ownerDocument.getElementById(p); + if (!n) { + return null + } + for (var m = n.parentNode; m != this; m = m.parentNode) { + if (!m) { + return null + } + } + return document.id(n, o) + }, + getSelected: function () { + return new Elements($A(this.options).filter(function (m) { + return m.selected + })) + }, + getComputedStyle: function (n) { + if (this.currentStyle) { + return this.currentStyle[n.camelCase()] + } + var m = this.getDocument().defaultView.getComputedStyle(this, null); + return (m) ? m.getPropertyValue([n.hyphenate()]) : null + }, + toQueryString: function () { + var m = []; + this.getElements("input, select, textarea", true).each(function (n) { + if (!n.name || n.disabled || n.type == "submit" || n.type == "reset" || n.type == "file") { + return + } + var o = (n.tagName.toLowerCase() == "select") ? Element.getSelected(n).map(function (p) { + return p.value + }) : ((n.type == "radio" || n.type == "checkbox") && !n.checked) ? null : n.value; + $splat(o).each(function (p) { + if (typeof p != "undefined") { + m.push(n.name + "=" + encodeURIComponent(p)) + } + }) + }); + return m.join("&") + }, + clone: function (p, m) { + p = p !== false; + var s = this.cloneNode(p); + var o = function (w, v) { + if (!m) { + w.removeAttribute("id") + } + if (Browser.Engine.trident) { + w.clearAttributes(); + w.mergeAttributes(v); + w.removeAttribute("uid"); + if (w.options) { + var x = w.options, + t = v.options; + for (var u = x.length; u--;) { + x[u].selected = t[u].selected + } + } + } + var y = j[v.tagName.toLowerCase()]; + if (y && v[y]) { + w[y] = v[y] + } + }; + if (p) { + var q = s.getElementsByTagName("*"), + r = this.getElementsByTagName("*"); + for (var n = q.length; n--;) { + o(q[n], r[n]) + } + } + o(s, this); + return document.id(s) + }, + destroy: function () { + Element.empty(this); + Element.dispose(this); + h(this, true); + return null + }, + empty: function () { + $A(this.childNodes).each(function (m) { + Element.destroy(m) + }); + return this + }, + dispose: function () { + return (this.parentNode) ? this.parentNode.removeChild(this) : this + }, + hasChild: function (m) { + m = document.id(m, true); + if (!m) { + return false + } + if (Browser.Engine.webkit && Browser.Engine.version < 420) { + return $A(this.getElementsByTagName(m.tagName)).contains(m) + } + return (this.contains) ? (this != m && this.contains(m)) : !! (this.compareDocumentPosition(m) & 16) + }, + match: function (m) { + return (!m || (m == this) || (Element.get(this, "tag") == m)) + } + }); + Native.implement([Element, Window, Document], { + addListener: function (p, o) { + if (p == "unload") { + var m = o, + n = this; + o = function () { + n.removeListener("unload", o); + m() + } + } else { + i[this.uid] = this + } + if (this.addEventListener) { + this.addEventListener(p, o, false) + } else { + this.attachEvent("on" + p, o) + } + return this + }, + removeListener: function (n, m) { + if (this.removeEventListener) { + this.removeEventListener(n, m, false) + } else { + this.detachEvent("on" + n, m) + } + return this + }, + retrieve: function (n, m) { + var p = c(this.uid), + o = p[n]; + if (m != undefined && o == undefined) { + o = p[n] = m + } + return $pick(o) + }, + store: function (n, m) { + var o = c(this.uid); + o[n] = m; + return this + }, + eliminate: function (m) { + var n = c(this.uid); + delete n[m]; + return this + } + }); + window.addListener("unload", d) +})(); +Element.Properties = new Hash; +Element.Properties.style = { + set: function (a) { + this.style.cssText = a + }, + get: function () { + return this.style.cssText + }, + erase: function () { + this.style.cssText = "" + } +}; +Element.Properties.tag = { + get: function () { + return this.tagName.toLowerCase() + } +}; +Element.Properties.html = (function () { + var c = document.createElement("div"); + var a = { + table: [1, "", "
    "], + select: [1, ""], + tbody: [2, "", "
    "], + tr: [3, "", "
    "] + }; + a.thead = a.tfoot = a.tbody; + var b = { + set: function () { + var f = Array.flatten(arguments).join(""); + var g = Browser.Engine.trident && a[this.get("tag")]; + if (g) { + var h = c; + h.innerHTML = g[1] + f + g[2]; + for (var d = g[0]; d--;) { + h = h.firstChild + } + this.empty().adopt(h.childNodes) + } else { + this.innerHTML = f + } + } + }; + b.erase = b.set; + return b +})(); +if (Browser.Engine.webkit && Browser.Engine.version < 420) { + Element.Properties.text = { + get: function () { + if (this.innerText) { + return this.innerText + } + var a = this.ownerDocument.newElement("div", { + html: this.innerHTML + }).inject(this.ownerDocument.body); + var b = a.innerText; + a.destroy(); + return b + } + } +}(function () { + Element.implement({ + scrollTo: function (i, j) { + if (b(this)) { + this.getWindow().scrollTo(i, j) + } else { + this.scrollLeft = i; + this.scrollTop = j + } + return this + }, + getSize: function () { + if (b(this)) { + return this.getWindow().getSize() + } + return { + x: this.offsetWidth, + y: this.offsetHeight + } + }, + getScrollSize: function () { + if (b(this)) { + return this.getWindow().getScrollSize() + } + return { + x: this.scrollWidth, + y: this.scrollHeight + } + }, + getScroll: function () { + if (b(this)) { + return this.getWindow().getScroll() + } + return { + x: this.scrollLeft, + y: this.scrollTop + } + }, + getScrolls: function () { + var j = this, + i = { + x: 0, + y: 0 + }; + while (j && !b(j)) { + i.x += j.scrollLeft; + i.y += j.scrollTop; + j = j.parentNode + } + return i + }, + getOffsetParent: function () { + var i = this; + if (b(i)) { + return null + } + if (!Browser.Engine.trident) { + return i.offsetParent + } + while ((i = i.parentNode) && !b(i)) { + if (d(i, "position") != "static") { + return i + } + } + return null + }, + getOffsets: function () { + if (this.getBoundingClientRect) { + var k = this.getBoundingClientRect(), + n = document.id(this.getDocument().documentElement), + q = n.getScroll(), + l = this.getScrolls(), + j = this.getScroll(), + i = (d(this, "position") == "fixed"); + return { + x: k.left.toInt() + l.x - j.x + ((i) ? 0 : q.x) - n.clientLeft, + y: k.top.toInt() + l.y - j.y + ((i) ? 0 : q.y) - n.clientTop + } + } + var m = this, + o = { + x: 0, + y: 0 + }; + if (b(this)) { + return o + } + while (m && !b(m)) { + o.x += m.offsetLeft; + o.y += m.offsetTop; + if (Browser.Engine.gecko) { + if (!g(m)) { + o.x += c(m); + o.y += h(m) + } + var p = m.parentNode; + if (p && d(p, "overflow") != "visible") { + o.x += c(p); + o.y += h(p) + } + } else { + if (m != this && Browser.Engine.webkit) { + o.x += c(m); + o.y += h(m) + } + } + m = m.offsetParent + } + if (Browser.Engine.gecko && !g(this)) { + o.x -= c(this); + o.y -= h(this) + } + return o + }, + getPosition: function (l) { + if (b(this)) { + return { + x: 0, + y: 0 + } + } + var m = this.getOffsets(), + j = this.getScrolls(); + var i = { + x: m.x - j.x, + y: m.y - j.y + }; + var k = (l && (l = document.id(l))) ? l.getPosition() : { + x: 0, + y: 0 + }; + return { + x: i.x - k.x, + y: i.y - k.y + } + }, + getCoordinates: function (k) { + if (b(this)) { + return this.getWindow().getCoordinates() + } + var i = this.getPosition(k), + j = this.getSize(); + var l = { + left: i.x, + top: i.y, + width: j.x, + height: j.y + }; + l.right = l.left + l.width; + l.bottom = l.top + l.height; + return l + }, + computePosition: function (i) { + return { + left: i.x - f(this, "margin-left"), + top: i.y - f(this, "margin-top") + } + }, + setPosition: function (i) { + return this.setStyles(this.computePosition(i)) + } + }); + Native.implement([Document, Window], { + getSize: function () { + if (Browser.Engine.presto || Browser.Engine.webkit) { + var j = this.getWindow(); + return { + x: j.innerWidth, + y: j.innerHeight + } + } + var i = a(this); + return { + x: i.clientWidth, + y: i.clientHeight + } + }, + getScroll: function () { + var j = this.getWindow(), + i = a(this); + return { + x: j.pageXOffset || i.scrollLeft, + y: j.pageYOffset || i.scrollTop + } + }, + getScrollSize: function () { + var j = a(this), + i = this.getSize(); + return { + x: Math.max(j.scrollWidth, i.x), + y: Math.max(j.scrollHeight, i.y) + } + }, + getPosition: function () { + return { + x: 0, + y: 0 + } + }, + getCoordinates: function () { + var i = this.getSize(); + return { + top: 0, + left: 0, + bottom: i.y, + right: i.x, + height: i.y, + width: i.x + } + } + }); + var d = Element.getComputedStyle; + + function f(i, j) { + return d(i, j).toInt() || 0 + } + function g(i) { + return d(i, "-moz-box-sizing") == "border-box" + } + function h(i) { + return f(i, "border-top-width") + } + function c(i) { + return f(i, "border-left-width") + } + function b(i) { + return (/^(?:body|html)$/i).test(i.tagName) + } + function a(i) { + var j = i.getDocument(); + return (!j.compatMode || j.compatMode == "CSS1Compat") ? j.html : j.body + } +})(); +Element.alias("setPosition", "position"); +Native.implement([Window, Document, Element], { + getHeight: function () { + return this.getSize().y + }, + getWidth: function () { + return this.getSize().x + }, + getScrollTop: function () { + return this.getScroll().y + }, + getScrollLeft: function () { + return this.getScroll().x + }, + getScrollHeight: function () { + return this.getScrollSize().y + }, + getScrollWidth: function () { + return this.getScrollSize().x + }, + getTop: function () { + return this.getPosition().y + }, + getLeft: function () { + return this.getPosition().x + } +}); +var Event = new Native({ + name: "Event", + initialize: function (a, g) { + g = g || window; + var l = g.document; + a = a || g.event; + if (a.$extended) { + return a + } + this.$extended = true; + var k = a.type; + var h = a.target || a.srcElement; + while (h && h.nodeType == 3) { + h = h.parentNode + } + if (k.test(/key/)) { + var b = a.which || a.keyCode; + var n = Event.Keys.keyOf(b); + if (k == "keydown") { + var d = b - 111; + if (d > 0 && d < 13) { + n = "f" + d + } + } + n = n || String.fromCharCode(b).toLowerCase() + } else { + if (k.match(/(click|mouse|menu)/i)) { + l = (!l.compatMode || l.compatMode == "CSS1Compat") ? l.html : l.body; + var j = { + x: a.pageX || a.clientX + l.scrollLeft, + y: a.pageY || a.clientY + l.scrollTop + }; + var c = { + x: (a.pageX) ? a.pageX - g.pageXOffset : a.clientX, + y: (a.pageY) ? a.pageY - g.pageYOffset : a.clientY + }; + if (k.match(/DOMMouseScroll|mousewheel/)) { + var i = (a.wheelDelta) ? a.wheelDelta / 120 : -(a.detail || 0) / 3 + } + var f = (a.which == 3) || (a.button == 2); + var m = null; + if (k.match(/over|out/)) { + switch (k) { + case "mouseover": + m = a.relatedTarget || a.fromElement; + break; + case "mouseout": + m = a.relatedTarget || a.toElement + } + if (!(function () { + while (m && m.nodeType == 3) { + m = m.parentNode + } + return true + }).create({ + attempt: Browser.Engine.gecko + })()) { + m = false + } + } + } + } + return $extend(this, { + event: a, + type: k, + page: j, + client: c, + rightClick: f, + wheel: i, + relatedTarget: m, + target: h, + code: b, + key: n, + shift: a.shiftKey, + control: a.ctrlKey, + alt: a.altKey, + meta: a.metaKey + }) + } +}); +Event.Keys = new Hash({ + enter: 13, + up: 38, + down: 40, + left: 37, + right: 39, + esc: 27, + space: 32, + backspace: 8, + tab: 9, + "delete": 46 +}); +Event.implement({ + stop: function () { + return this.stopPropagation().preventDefault() + }, + stopPropagation: function () { + if (this.event.stopPropagation) { + this.event.stopPropagation() + } else { + this.event.cancelBubble = true + } + return this + }, + preventDefault: function () { + if (this.event.preventDefault) { + this.event.preventDefault() + } else { + this.event.returnValue = false + } + return this + } +}); +Element.Properties.events = { + set: function (a) { + this.addEvents(a) + } +}; +Native.implement([Element, Window, Document], { + addEvent: function (f, h) { + var i = this.retrieve("events", {}); + i[f] = i[f] || { + keys: [], + values: [] + }; + if (i[f].keys.contains(h)) { + return this + } + i[f].keys.push(h); + var g = f, + a = Element.Events.get(f), + c = h, + j = this; + if (a) { + if (a.onAdd) { + a.onAdd.call(this, h) + } + if (a.condition) { + c = function (k) { + if (a.condition.call(this, k)) { + return h.call(this, k) + } + return true + } + } + g = a.base || g + } + var d = function () { + return h.call(j) + }; + var b = Element.NativeEvents[g]; + if (b) { + if (b == 2) { + d = function (k) { + k = new Event(k, j.getWindow()); + if (c.call(j, k) === false) { + k.stop() + } + } + } + this.addListener(g, d) + } + i[f].values.push(d); + return this + }, + removeEvent: function (c, b) { + var a = this.retrieve("events"); + if (!a || !a[c]) { + return this + } + var g = a[c].keys.indexOf(b); + if (g == -1) { + return this + } + a[c].keys.splice(g, 1); + var f = a[c].values.splice(g, 1)[0]; + var d = Element.Events.get(c); + if (d) { + if (d.onRemove) { + d.onRemove.call(this, b) + } + c = d.base || c + } + return (Element.NativeEvents[c]) ? this.removeListener(c, f) : this + }, + addEvents: function (a) { + for (var b in a) { + this.addEvent(b, a[b]) + } + return this + }, + removeEvents: function (a) { + var c; + if ($type(a) == "object") { + for (c in a) { + this.removeEvent(c, a[c]) + } + return this + } + var b = this.retrieve("events"); + if (!b) { + return this + } + if (!a) { + for (c in b) { + this.removeEvents(c) + } + this.eliminate("events") + } else { + if (b[a]) { + while (b[a].keys[0]) { + this.removeEvent(a, b[a].keys[0]) + } + b[a] = null + } + } + return this + }, + fireEvent: function (d, b, a) { + var c = this.retrieve("events"); + if (!c || !c[d]) { + return this + } + c[d].keys.each(function (f) { + f.create({ + bind: this, + delay: a, + "arguments": b + })() + }, this); + return this + }, + cloneEvents: function (d, a) { + d = document.id(d); + var c = d.retrieve("events"); + if (!c) { + return this + } + if (!a) { + for (var b in c) { + this.cloneEvents(d, b) + } + } else { + if (c[a]) { + c[a].keys.each(function (f) { + this.addEvent(a, f) + }, this) + } + } + return this + } +}); +try { + if (typeof HTMLElement != "undefined") { + HTMLElement.prototype.fireEvent = Element.prototype.fireEvent + } +} catch (e) {} +Element.NativeEvents = { + click: 2, + dblclick: 2, + mouseup: 2, + mousedown: 2, + contextmenu: 2, + mousewheel: 2, + DOMMouseScroll: 2, + mouseover: 2, + mouseout: 2, + mousemove: 2, + selectstart: 2, + selectend: 2, + keydown: 2, + keypress: 2, + keyup: 2, + focus: 2, + blur: 2, + change: 2, + reset: 2, + select: 2, + submit: 2, + load: 1, + unload: 1, + beforeunload: 2, + resize: 1, + move: 1, + DOMContentLoaded: 1, + readystatechange: 1, + error: 1, + abort: 1, + scroll: 1 +}; +(function () { + var a = function (b) { + var c = b.relatedTarget; + if (c == undefined) { + return true + } + if (c === false) { + return false + } + return ($type(this) != "document" && c != this && c.prefix != "xul" && !this.hasChild(c)) + }; + Element.Events = new Hash({ + mouseenter: { + base: "mouseover", + condition: a + }, + mouseleave: { + base: "mouseout", + condition: a + }, + mousewheel: { + base: (Browser.Engine.gecko) ? "DOMMouseScroll" : "mousewheel" + } + }) +})(); +Element.Properties.styles = { + set: function (a) { + this.setStyles(a) + } +}; +Element.Properties.opacity = { + set: function (a, b) { + if (!b) { + if (a == 0) { + if (this.style.visibility != "hidden") { + this.style.visibility = "hidden" + } + } else { + if (this.style.visibility != "visible") { + this.style.visibility = "visible" + } + } + } + if (!this.currentStyle || !this.currentStyle.hasLayout) { + this.style.zoom = 1 + } + if (Browser.Engine.trident) { + this.style.filter = (a == 1) ? "" : "alpha(opacity=" + a * 100 + ")" + } + this.style.opacity = a; + this.store("opacity", a) + }, + get: function () { + return this.retrieve("opacity", 1) + } +}; +Element.implement({ + setOpacity: function (a) { + return this.set("opacity", a, true) + }, + getOpacity: function () { + return this.get("opacity") + }, + setStyle: function (b, a) { + switch (b) { + case "opacity": + return this.set("opacity", parseFloat(a)); + case "float": + b = (Browser.Engine.trident) ? "styleFloat" : "cssFloat" + } + b = b.camelCase(); + if ($type(a) != "string") { + var c = (Element.Styles.get(b) || "@").split(" "); + a = $splat(a).map(function (f, d) { + if (!c[d]) { + return "" + } + return ($type(f) == "number") ? c[d].replace("@", Math.round(f)) : f + }).join(" ") + } else { + if (a == String(Number(a))) { + a = Math.round(a) + } + } + this.style[b] = a; + return this + }, + getStyle: function (h) { + switch (h) { + case "opacity": + return this.get("opacity"); + case "float": + h = (Browser.Engine.trident) ? "styleFloat" : "cssFloat" + } + h = h.camelCase(); + var a = this.style[h]; + if (!$chk(a)) { + a = []; + for (var g in Element.ShortStyles) { + if (h != g) { + continue + } + for (var f in Element.ShortStyles[g]) { + a.push(this.getStyle(f)) + } + return a.join(" ") + } + a = this.getComputedStyle(h) + } + if (a) { + a = String(a); + var c = a.match(/rgba?\([\d\s,]+\)/); + if (c) { + a = a.replace(c[0], c[0].rgbToHex()) + } + } + if (Browser.Engine.presto || (Browser.Engine.trident && !$chk(parseInt(a, 10)))) { + if (h.test(/^(height|width)$/)) { + var b = (h == "width") ? ["left", "right"] : ["top", "bottom"], + d = 0; + b.each(function (i) { + d += this.getStyle("border-" + i + "-width").toInt() + this.getStyle("padding-" + i).toInt() + }, this); + return this["offset" + h.capitalize()] - d + "px" + } + if ((Browser.Engine.presto) && String(a).test("px")) { + return a + } + if (h.test(/(border(.+)Width|margin|padding)/)) { + return "0px" + } + } + return a + }, + setStyles: function (b) { + for (var a in b) { + this.setStyle(a, b[a]) + } + return this + }, + getStyles: function () { + var a = {}; + Array.flatten(arguments).each(function (b) { + a[b] = this.getStyle(b) + }, this); + return a + } +}); +Element.Styles = new Hash({ + left: "@px", + top: "@px", + bottom: "@px", + right: "@px", + width: "@px", + height: "@px", + maxWidth: "@px", + maxHeight: "@px", + minWidth: "@px", + minHeight: "@px", + backgroundColor: "rgb(@, @, @)", + backgroundPosition: "@px @px", + color: "rgb(@, @, @)", + fontSize: "@px", + letterSpacing: "@px", + lineHeight: "@px", + clip: "rect(@px @px @px @px)", + margin: "@px @px @px @px", + padding: "@px @px @px @px", + border: "@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)", + borderWidth: "@px @px @px @px", + borderStyle: "@ @ @ @", + borderColor: "rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)", + zIndex: "@", + zoom: "@", + fontWeight: "@", + textIndent: "@px", + opacity: "@" +}); +Element.ShortStyles = { + margin: {}, + padding: {}, + border: {}, + borderWidth: {}, + borderStyle: {}, + borderColor: {} +}; +["Top", "Right", "Bottom", "Left"].each(function (h) { + var g = Element.ShortStyles; + var b = Element.Styles; + ["margin", "padding"].each(function (i) { + var j = i + h; + g[i][j] = b[j] = "@px" + }); + var f = "border" + h; + g.border[f] = b[f] = "@px @ rgb(@, @, @)"; + var d = f + "Width", + a = f + "Style", + c = f + "Color"; + g[f] = {}; + g.borderWidth[d] = g[f][d] = b[d] = "@px"; + g.borderStyle[a] = g[f][a] = b[a] = "@"; + g.borderColor[c] = g[f][c] = b[c] = "rgb(@, @, @)" +}); +var Fx = new Class({ + Implements: [Chain, Events, Options], + options: { + fps: 50, + unit: false, + duration: 500, + link: "ignore" + }, + initialize: function (a) { + this.subject = this.subject || this; + this.setOptions(a); + this.options.duration = Fx.Durations[this.options.duration] || this.options.duration.toInt(); + var b = this.options.wait; + if (b === false) { + this.options.link = "cancel" + } + }, + getTransition: function () { + return function (a) { + return -(Math.cos(Math.PI * a) - 1) / 2 + } + }, + step: function () { + var a = $time(); + if (a < this.time + this.options.duration) { + var b = this.transition((a - this.time) / this.options.duration); + this.set(this.compute(this.from, this.to, b)) + } else { + this.set(this.compute(this.from, this.to, 1)); + this.complete() + } + }, + set: function (a) { + return a + }, + compute: function (c, b, a) { + return Fx.compute(c, b, a) + }, + check: function () { + if (!this.timer) { + return true + } + switch (this.options.link) { + case "cancel": + this.cancel(); + return true; + case "chain": + this.chain(this.caller.bind(this, arguments)); + return false + } + return false + }, + start: function (b, a) { + if (!this.check(b, a)) { + return this + } + this.from = b; + this.to = a; + this.time = 0; + this.transition = this.getTransition(); + this.startTimer(); + this.onStart(); + return this + }, + complete: function () { + if (this.stopTimer()) { + this.onComplete() + } + return this + }, + cancel: function () { + if (this.stopTimer()) { + this.onCancel() + } + return this + }, + onStart: function () { + this.fireEvent("start", this.subject) + }, + onComplete: function () { + this.fireEvent("complete", this.subject); + if (!this.callChain()) { + this.fireEvent("chainComplete", this.subject) + } + }, + onCancel: function () { + this.fireEvent("cancel", this.subject).clearChain() + }, + pause: function () { + this.stopTimer(); + return this + }, + resume: function () { + this.startTimer(); + return this + }, + stopTimer: function () { + if (!this.timer) { + return false + } + this.time = $time() - this.time; + this.timer = $clear(this.timer); + return true + }, + startTimer: function () { + if (this.timer) { + return false + } + this.time = $time() - this.time; + this.timer = this.step.periodical(Math.round(1000 / this.options.fps), this); + return true + } +}); +Fx.compute = function (c, b, a) { + return (b - c) * a + c +}; +Fx.Durations = { + "short": 250, + normal: 500, + "long": 1000 +}; +Fx.CSS = new Class({ + Extends: Fx, + prepare: function (d, f, b) { + b = $splat(b); + var c = b[1]; + if (!$chk(c)) { + b[1] = b[0]; + b[0] = d.getStyle(f) + } + var a = b.map(this.parse); + return { + from: a[0], + to: a[1] + } + }, + parse: function (a) { + a = $lambda(a)(); + a = (typeof a == "string") ? a.split(" ") : $splat(a); + return a.map(function (c) { + c = String(c); + var b = false; + Fx.CSS.Parsers.each(function (g, f) { + if (b) { + return + } + var d = g.parse(c); + if ($chk(d)) { + b = { + value: d, + parser: g + } + } + }); + b = b || { + value: c, + parser: Fx.CSS.Parsers.String + }; + return b + }) + }, + compute: function (d, c, b) { + var a = []; + (Math.min(d.length, c.length)).times(function (f) { + a.push({ + value: d[f].parser.compute(d[f].value, c[f].value, b), + parser: d[f].parser + }) + }); + a.$family = { + name: "fx:css:value" + }; + return a + }, + serve: function (c, b) { + if ($type(c) != "fx:css:value") { + c = this.parse(c) + } + var a = []; + c.each(function (d) { + a = a.concat(d.parser.serve(d.value, b)) + }); + return a + }, + render: function (a, d, c, b) { + a.setStyle(d, this.serve(c, b)) + }, + search: function (a) { + if (Fx.CSS.Cache[a]) { + return Fx.CSS.Cache[a] + } + var b = {}; + Array.each(document.styleSheets, function (f, d) { + var c = f.href; + if (c && c.contains("://") && !c.contains(document.domain)) { + return + } + var g = f.rules || f.cssRules; + Array.each(g, function (k, h) { + if (!k.style) { + return + } + var j = (k.selectorText) ? k.selectorText.replace(/^\w+/, function (i) { + return i.toLowerCase() + }) : null; + if (!j || !j.test("^" + a + "$")) { + return + } + Element.Styles.each(function (l, i) { + if (!k.style[i] || Element.ShortStyles[i]) { + return + } + l = String(k.style[i]); + b[i] = (l.test(/^rgb/)) ? l.rgbToHex() : l + }) + }) + }); + return Fx.CSS.Cache[a] = b + } +}); +Fx.CSS.Cache = {}; +Fx.CSS.Parsers = new Hash({ + Color: { + parse: function (a) { + if (a.match(/^#[0-9a-f]{3,6}$/i)) { + return a.hexToRgb(true) + } + return ((a = a.match(/(\d+),\s*(\d+),\s*(\d+)/))) ? [a[1], a[2], a[3]] : false + }, + compute: function (c, b, a) { + return c.map(function (f, d) { + return Math.round(Fx.compute(c[d], b[d], a)) + }) + }, + serve: function (a) { + return a.map(Number) + } + }, + Number: { + parse: parseFloat, + compute: Fx.compute, + serve: function (b, a) { + return (a) ? b + a : b + } + }, + String: { + parse: $lambda(false), + compute: $arguments(1), + serve: $arguments(0) + } +}); +Fx.Morph = new Class({ + Extends: Fx.CSS, + initialize: function (b, a) { + this.element = this.subject = document.id(b); + this.parent(a) + }, + set: function (a) { + if (typeof a == "string") { + a = this.search(a) + } + for (var b in a) { + this.render(this.element, b, a[b], this.options.unit) + } + return this + }, + compute: function (f, d, c) { + var a = {}; + for (var b in f) { + a[b] = this.parent(f[b], d[b], c) + } + return a + }, + start: function (b) { + if (!this.check(b)) { + return this + } + if (typeof b == "string") { + b = this.search(b) + } + var f = {}, + d = {}; + for (var c in b) { + var a = this.prepare(this.element, c, b[c]); + f[c] = a.from; + d[c] = a.to + } + return this.parent(f, d) + } +}); +Element.Properties.morph = { + set: function (a) { + var b = this.retrieve("morph"); + if (b) { + b.cancel() + } + return this.eliminate("morph").store("morph:options", $extend({ + link: "cancel" + }, a)) + }, + get: function (a) { + if (a || !this.retrieve("morph")) { + if (a || !this.retrieve("morph:options")) { + this.set("morph", a) + } + this.store("morph", new Fx.Morph(this, this.retrieve("morph:options"))) + } + return this.retrieve("morph") + } +}; +Element.implement({ + morph: function (a) { + this.get("morph").start(a); + return this + } +}); +Fx.implement({ + getTransition: function () { + var a = this.options.transition || Fx.Transitions.Sine.easeInOut; + if (typeof a == "string") { + var b = a.split(":"); + a = Fx.Transitions; + a = a[b[0]] || a[b[0].capitalize()]; + if (b[1]) { + a = a["ease" + b[1].capitalize() + (b[2] ? b[2].capitalize() : "")] + } + } + return a + } +}); +Fx.Transition = function (b, a) { + a = $splat(a); + return $extend(b, { + easeIn: function (c) { + return b(c, a) + }, + easeOut: function (c) { + return 1 - b(1 - c, a) + }, + easeInOut: function (c) { + return (c <= 0.5) ? b(2 * c, a) / 2 : (2 - b(2 * (1 - c), a)) / 2 + } + }) +}; +Fx.Transitions = new Hash({ + linear: $arguments(0) +}); +Fx.Transitions.extend = function (a) { + for (var b in a) { + Fx.Transitions[b] = new Fx.Transition(a[b]) + } +}; +Fx.Transitions.extend({ + Pow: function (b, a) { + return Math.pow(b, a[0] || 6) + }, + Expo: function (a) { + return Math.pow(2, 8 * (a - 1)) + }, + Circ: function (a) { + return 1 - Math.sin(Math.acos(a)) + }, + Sine: function (a) { + return 1 - Math.sin((1 - a) * Math.PI / 2) + }, + Back: function (b, a) { + a = a[0] || 1.618; + return Math.pow(b, 2) * ((a + 1) * b - a) + }, + Bounce: function (g) { + var f; + for (var d = 0, c = 1; 1; d += c, c /= 2) { + if (g >= (7 - 4 * d) / 11) { + f = c * c - Math.pow((11 - 6 * d - 11 * g) / 4, 2); + break + } + } + return f + }, + Elastic: function (b, a) { + return Math.pow(2, 10 * --b) * Math.cos(20 * b * Math.PI * (a[0] || 1) / 3) + } +}); +["Quad", "Cubic", "Quart", "Quint"].each(function (b, a) { + Fx.Transitions[b] = new Fx.Transition(function (c) { + return Math.pow(c, [a + 2]) + }) +}); +Fx.Tween = new Class({ + Extends: Fx.CSS, + initialize: function (b, a) { + this.element = this.subject = document.id(b); + this.parent(a) + }, + set: function (b, a) { + if (arguments.length == 1) { + a = b; + b = this.property || this.options.property + } + this.render(this.element, b, a, this.options.unit); + return this + }, + start: function (c, f, d) { + if (!this.check(c, f, d)) { + return this + } + var b = Array.flatten(arguments); + this.property = this.options.property || b.shift(); + var a = this.prepare(this.element, this.property, b); + return this.parent(a.from, a.to) + } +}); +Element.Properties.tween = { + set: function (a) { + var b = this.retrieve("tween"); + if (b) { + b.cancel() + } + return this.eliminate("tween").store("tween:options", $extend({ + link: "cancel" + }, a)) + }, + get: function (a) { + if (a || !this.retrieve("tween")) { + if (a || !this.retrieve("tween:options")) { + this.set("tween", a) + } + this.store("tween", new Fx.Tween(this, this.retrieve("tween:options"))) + } + return this.retrieve("tween") + } +}; +Element.implement({ + tween: function (a, c, b) { + this.get("tween").start(arguments); + return this + }, + fade: function (c) { + var f = this.get("tween"), + d = "opacity", + a; + c = $pick(c, "toggle"); + switch (c) { + case "in": + f.start(d, 1); + break; + case "out": + f.start(d, 0); + break; + case "show": + f.set(d, 1); + break; + case "hide": + f.set(d, 0); + break; + case "toggle": + var b = this.retrieve("fade:flag", this.get("opacity") == 1); + f.start(d, (b) ? 0 : 1); + this.store("fade:flag", !b); + a = true; + break; + default: + f.start(d, arguments) + } + if (!a) { + this.eliminate("fade:flag") + } + return this + }, + highlight: function (c, a) { + if (!a) { + a = this.retrieve("highlight:original", this.getStyle("background-color")); + a = (a == "transparent") ? "#fff" : a + } + var b = this.get("tween"); + b.start("background-color", c || "#ffff88", a).chain(function () { + this.setStyle("background-color", this.retrieve("highlight:original")); + b.callChain() + }.bind(this)); + return this + } +}); +var Request = new Class({ + Implements: [Chain, Events, Options], + options: { + url: "", + data: "", + headers: { + "X-Requested-With": "XMLHttpRequest", + Accept: "text/javascript, text/html, application/xml, text/xml, */*" + }, + async: true, + format: false, + method: "post", + link: "ignore", + isSuccess: null, + emulation: true, + urlEncoded: true, + encoding: "utf-8", + evalScripts: false, + evalResponse: false, + noCache: false + }, + initialize: function (a) { + this.xhr = new Browser.Request(); + this.setOptions(a); + this.options.isSuccess = this.options.isSuccess || this.isSuccess; + this.headers = new Hash(this.options.headers) + }, + onStateChange: function () { + if (this.xhr.readyState != 4 || !this.running) { + return + } + this.running = false; + this.status = 0; + $try(function () { + this.status = this.xhr.status + }.bind(this)); + this.xhr.onreadystatechange = $empty; + if (this.options.isSuccess.call(this, this.status)) { + this.response = { + text: this.xhr.responseText, + xml: this.xhr.responseXML + }; + this.success(this.response.text, this.response.xml) + } else { + this.response = { + text: null, + xml: null + }; + this.failure() + } + }, + isSuccess: function () { + return ((this.status >= 200) && (this.status < 300)) + }, + processScripts: function (a) { + if (this.options.evalResponse || (/(ecma|java)script/).test(this.getHeader("Content-type"))) { + return $exec(a) + } + return a.stripScripts(this.options.evalScripts) + }, + success: function (b, a) { + this.onSuccess(this.processScripts(b), a) + }, + onSuccess: function () { + this.fireEvent("complete", arguments).fireEvent("success", arguments).callChain() + }, + failure: function () { + this.onFailure() + }, + onFailure: function () { + this.fireEvent("complete").fireEvent("failure", this.xhr) + }, + setHeader: function (a, b) { + this.headers.set(a, b); + return this + }, + getHeader: function (a) { + return $try(function () { + return this.xhr.getResponseHeader(a) + }.bind(this)) + }, + check: function () { + if (!this.running) { + return true + } + switch (this.options.link) { + case "cancel": + this.cancel(); + return true; + case "chain": + this.chain(this.caller.bind(this, arguments)); + return false + } + return false + }, + send: function (l) { + if (!this.check(l)) { + return this + } + this.running = true; + var j = $type(l); + if (j == "string" || j == "element") { + l = { + data: l + } + } + var d = this.options; + l = $extend({ + data: d.data, + url: d.url, + method: d.method + }, l); + var h = l.data, + b = String(l.url), + a = l.method.toLowerCase(); + switch ($type(h)) { + case "element": + h = document.id(h).toQueryString(); + break; + case "object": + case "hash": + h = Hash.toQueryString(h) + } + if (this.options.format) { + var k = "format=" + this.options.format; + h = (h) ? k + "&" + h : k + } + if (this.options.emulation && !["get", "post"].contains(a)) { + var i = "_method=" + a; + h = (h) ? i + "&" + h : i; + a = "post" + } + if (this.options.urlEncoded && a == "post") { + var c = (this.options.encoding) ? "; charset=" + this.options.encoding : ""; + this.headers.set("Content-type", "application/x-www-form-urlencoded" + c) + } + if (this.options.noCache) { + var g = "noCache=" + new Date().getTime(); + h = (h) ? g + "&" + h : g + } + var f = b.lastIndexOf("/"); + if (f > -1 && (f = b.indexOf("#")) > -1) { + b = b.substr(0, f) + } + if (h && a == "get") { + b = b + (b.contains("?") ? "&" : "?") + h; + h = null + } + this.xhr.open(a.toUpperCase(), b, this.options.async); + this.xhr.onreadystatechange = this.onStateChange.bind(this); + this.headers.each(function (n, m) { + try { + this.xhr.setRequestHeader(m, n) + } catch (o) { + this.fireEvent("exception", [m, n]) + } + }, this); + this.fireEvent("request"); + this.xhr.send(h); + if (!this.options.async) { + this.onStateChange() + } + return this + }, + cancel: function () { + if (!this.running) { + return this + } + this.running = false; + this.xhr.abort(); + this.xhr.onreadystatechange = $empty; + this.xhr = new Browser.Request(); + this.fireEvent("cancel"); + return this + } +}); +(function () { + var a = {}; + ["get", "post", "put", "delete", "GET", "POST", "PUT", "DELETE"].each(function (b) { + a[b] = function () { + var c = Array.link(arguments, { + url: String.type, + data: $defined + }); + return this.send($extend(c, { + method: b + })) + } + }); + Request.implement(a) +})(); +Element.Properties.send = { + set: function (a) { + var b = this.retrieve("send"); + if (b) { + b.cancel() + } + return this.eliminate("send").store("send:options", $extend({ + data: this, + link: "cancel", + method: this.get("method") || "post", + url: this.get("action") + }, a)) + }, + get: function (a) { + if (a || !this.retrieve("send")) { + if (a || !this.retrieve("send:options")) { + this.set("send", a) + } + this.store("send", new Request(this.retrieve("send:options"))) + } + return this.retrieve("send") + } +}; +Element.implement({ + send: function (a) { + var b = this.get("send"); + b.send({ + data: this, + url: a || b.options.url + }); + return this + } +}); +Request.HTML = new Class({ + Extends: Request, + options: { + update: false, + append: false, + evalScripts: true, + filter: false + }, + processHTML: function (c) { + var b = c.match(/]*>([\s\S]*?)<\/body>/i); + c = (b) ? b[1] : c; + var a = new Element("div"); + return $try(function () { + var d = "" + c + "", + h; + if (Browser.Engine.trident) { + h = new ActiveXObject("Microsoft.XMLDOM"); + h.async = false; + h.loadXML(d) + } else { + h = new DOMParser().parseFromString(d, "text/xml") + } + d = h.getElementsByTagName("root")[0]; + if (!d) { + return null + } + for (var g = 0, f = d.childNodes.length; g < f; g++) { + var j = Element.clone(d.childNodes[g], true, true); + if (j) { + a.grab(j) + } + } + return a + }) || a.set("html", c) + }, + success: function (d) { + var c = this.options, + b = this.response; + b.html = d.stripScripts(function (f) { + b.javascript = f + }); + var a = this.processHTML(b.html); + b.tree = a.childNodes; + b.elements = a.getElements("*"); + if (c.filter) { + b.tree = b.elements.filter(c.filter) + } + if (c.update) { + document.id(c.update).empty().set("html", b.html) + } else { + if (c.append) { + document.id(c.append).adopt(a.getChildren()) + } + } + if (c.evalScripts) { + $exec(b.javascript) + } + this.onSuccess(b.tree, b.elements, b.html, b.javascript) + } +}); +Element.Properties.load = { + set: function (a) { + var b = this.retrieve("load"); + if (b) { + b.cancel() + } + return this.eliminate("load").store("load:options", $extend({ + data: this, + link: "cancel", + update: this, + method: "get" + }, a)) + }, + get: function (a) { + if (a || !this.retrieve("load")) { + if (a || !this.retrieve("load:options")) { + this.set("load", a) + } + this.store("load", new Request.HTML(this.retrieve("load:options"))) + } + return this.retrieve("load") + } +}; +Element.implement({ + load: function () { + this.get("load").send(Array.link(arguments, { + data: Object.type, + url: String.type + })); + return this + } +}); +var JSON = new Hash(this.JSON && { + stringify: JSON.stringify, + parse: JSON.parse +}).extend({ + $specialChars: { + "\b": "\\b", + "\t": "\\t", + "\n": "\\n", + "\f": "\\f", + "\r": "\\r", + '"': '\\"', + "\\": "\\\\" + }, + $replaceChars: function (a) { + return JSON.$specialChars[a] || "\\u00" + Math.floor(a.charCodeAt() / 16).toString(16) + (a.charCodeAt() % 16).toString(16) + }, + encode: function (b) { + switch ($type(b)) { + case "string": + return '"' + b.replace(/[\x00-\x1f\\"]/g, JSON.$replaceChars) + '"'; + case "array": + return "[" + String(b.map(JSON.encode).clean()) + "]"; + case "object": + case "hash": + var a = []; + Hash.each(b, function (f, d) { + var c = JSON.encode(f); + if (c) { + a.push(JSON.encode(d) + ":" + c) + } + }); + return "{" + a + "}"; + case "number": + case "boolean": + return String(b); + case false: + return "null" + } + return null + }, + decode: function (string, secure) { + if ($type(string) != "string" || !string.length) { + return null + } + if (secure && !(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g, "@").replace(/"[^"\\\n\r]*"/g, ""))) { + return null + } + return eval("(" + string + ")") + } +}); +Request.JSON = new Class({ + Extends: Request, + options: { + secure: true + }, + initialize: function (a) { + this.parent(a); + this.headers.extend({ + Accept: "application/json", + "X-Request": "JSON" + }) + }, + success: function (a) { + this.response.json = JSON.decode(a, this.options.secure); + this.onSuccess(this.response.json, a) + } +}); +var Cookie = new Class({ + Implements: Options, + options: { + path: false, + domain: false, + duration: false, + secure: false, + document: document + }, + initialize: function (b, a) { + this.key = b; + this.setOptions(a) + }, + write: function (b) { + b = encodeURIComponent(b); + if (this.options.domain) { + b += "; domain=" + this.options.domain + } + if (this.options.path) { + b += "; path=" + this.options.path + } + if (this.options.duration) { + var a = new Date(); + a.setTime(a.getTime() + this.options.duration * 24 * 60 * 60 * 1000); + b += "; expires=" + a.toGMTString() + } + if (this.options.secure) { + b += "; secure" + } + this.options.document.cookie = this.key + "=" + b; + return this + }, + read: function () { + var a = this.options.document.cookie.match("(?:^|;)\\s*" + this.key.escapeRegExp() + "=([^;]*)"); + return (a) ? decodeURIComponent(a[1]) : null + }, + dispose: function () { + new Cookie(this.key, $merge(this.options, { + duration: -1 + })).write(""); + return this + } +}); +Cookie.write = function (b, c, a) { + return new Cookie(b, a).write(c) +}; +Cookie.read = function (a) { + return new Cookie(a).read() +}; +Cookie.dispose = function (b, a) { + return new Cookie(b, a).dispose() +}; +Element.Events.domready = { + onAdd: function (a) { + if (Browser.loaded) { + a.call(this) + } + } +}; +(function () { + var b = function () { + if (Browser.loaded) { + return + } + Browser.loaded = true; + window.fireEvent("domready"); + document.fireEvent("domready") + }; + window.addEvent("load", b); + if (Browser.Engine.trident) { + var a = document.createElement("div"); + (function () { + ($try(function () { + a.doScroll(); + return document.id(a).inject(document.body).set("html", "temp").dispose() + })) ? b() : arguments.callee.delay(50) + })() + } else { + if (Browser.Engine.webkit && Browser.Engine.version < 525) { + (function () { + (["loaded", "complete"].contains(document.readyState)) ? b() : arguments.callee.delay(50) + })() + } else { + document.addEvent("DOMContentLoaded", b) + } + } +})(); +Native.implement([Document, Element], { + getElements: function (j, h) { + j = j.split(","); + var c, f = {}; + for (var d = 0, b = j.length; d < b; d++) { + var a = j[d], + g = Selectors.Utils.search(this, a, f); + if (d != 0 && g.item) { + g = $A(g) + } + c = (d == 0) ? g : (c.item) ? $A(c).concat(g) : c.concat(g) + } + return new Elements(c, { + ddup: (j.length > 1), + cash: !h + }) + } +}); +Element.implement({ + match: function (b) { + if (!b || (b == this)) { + return true + } + var d = Selectors.Utils.parseTagAndID(b); + var a = d[0], + f = d[1]; + if (!Selectors.Filters.byID(this, f) || !Selectors.Filters.byTag(this, a)) { + return false + } + var c = Selectors.Utils.parseSelector(b); + return (c) ? Selectors.Utils.filter(this, c, {}) : true + } +}); +var Selectors = { + Cache: { + nth: {}, + parsed: {} + } +}; +Selectors.RegExps = { + id: (/#([\w-]+)/), + tag: (/^(\w+|\*)/), + quick: (/^(\w+|\*)$/), + splitter: (/\s*([+>~\s])\s*([a-zA-Z#.*:\[])/g), + combined: (/\.([\w-]+)|\[(\w+)(?:([!*^$~|]?=)(["']?)([^\4]*?)\4)?\]|:([\w-]+)(?:\(["']?(.*?)?["']?\)|$)/g) +}; +Selectors.Utils = { + chk: function (b, c) { + if (!c) { + return true + } + var a = $uid(b); + if (!c[a]) { + return c[a] = true + } + return false + }, + parseNthArgument: function (i) { + if (Selectors.Cache.nth[i]) { + return Selectors.Cache.nth[i] + } + var f = i.match(/^([+-]?\d*)?([a-z]+)?([+-]?\d*)?$/); + if (!f) { + return false + } + var h = parseInt(f[1], 10); + var d = (h || h === 0) ? h : 1; + var g = f[2] || false; + var c = parseInt(f[3], 10) || 0; + if (d != 0) { + c--; + while (c < 1) { + c += d + } + while (c >= d) { + c -= d + } + } else { + d = c; + g = "index" + } + switch (g) { + case "n": + f = { + a: d, + b: c, + special: "n" + }; + break; + case "odd": + f = { + a: 2, + b: 0, + special: "n" + }; + break; + case "even": + f = { + a: 2, + b: 1, + special: "n" + }; + break; + case "first": + f = { + a: 0, + special: "index" + }; + break; + case "last": + f = { + special: "last-child" + }; + break; + case "only": + f = { + special: "only-child" + }; + break; + default: + f = { + a: (d - 1), + special: "index" + } + } + return Selectors.Cache.nth[i] = f + }, + parseSelector: function (f) { + if (Selectors.Cache.parsed[f]) { + return Selectors.Cache.parsed[f] + } + var d, i = { + classes: [], + pseudos: [], + attributes: [] + }; + while ((d = Selectors.RegExps.combined.exec(f))) { + var j = d[1], + h = d[2], + g = d[3], + b = d[5], + c = d[6], + k = d[7]; + if (j) { + i.classes.push(j) + } else { + if (c) { + var a = Selectors.Pseudo.get(c); + if (a) { + i.pseudos.push({ + parser: a, + argument: k + }) + } else { + i.attributes.push({ + name: c, + operator: "=", + value: k + }) + } + } else { + if (h) { + i.attributes.push({ + name: h, + operator: g, + value: b + }) + } + } + } + } + if (!i.classes.length) { + delete i.classes + } + if (!i.attributes.length) { + delete i.attributes + } + if (!i.pseudos.length) { + delete i.pseudos + } + if (!i.classes && !i.attributes && !i.pseudos) { + i = null + } + return Selectors.Cache.parsed[f] = i + }, + parseTagAndID: function (b) { + var a = b.match(Selectors.RegExps.tag); + var c = b.match(Selectors.RegExps.id); + return [(a) ? a[1] : "*", (c) ? c[1] : false] + }, + filter: function (g, c, f) { + var d; + if (c.classes) { + for (d = c.classes.length; d--; d) { + var h = c.classes[d]; + if (!Selectors.Filters.byClass(g, h)) { + return false + } + } + } + if (c.attributes) { + for (d = c.attributes.length; d--; d) { + var b = c.attributes[d]; + if (!Selectors.Filters.byAttribute(g, b.name, b.operator, b.value)) { + return false + } + } + } + if (c.pseudos) { + for (d = c.pseudos.length; d--; d) { + var a = c.pseudos[d]; + if (!Selectors.Filters.byPseudo(g, a.parser, a.argument, f)) { + return false + } + } + } + return true + }, + getByTagAndID: function (b, a, d) { + if (d) { + var c = (b.getElementById) ? b.getElementById(d, true) : Element.getElementById(b, d, true); + return (c && Selectors.Filters.byTag(c, a)) ? [c] : [] + } else { + return b.getElementsByTagName(a) + } + }, + search: function (p, o, u) { + var b = []; + var c = o.trim().replace(Selectors.RegExps.splitter, function (k, j, i) { + b.push(j); + return ":)" + i + }).split(":)"); + var q, f, B; + for (var A = 0, w = c.length; A < w; A++) { + var z = c[A]; + if (A == 0 && Selectors.RegExps.quick.test(z)) { + q = p.getElementsByTagName(z); + continue + } + var a = b[A - 1]; + var r = Selectors.Utils.parseTagAndID(z); + var C = r[0], + s = r[1]; + if (A == 0) { + q = Selectors.Utils.getByTagAndID(p, C, s) + } else { + var d = {}, + h = []; + for (var y = 0, x = q.length; y < x; y++) { + h = Selectors.Getters[a](h, q[y], C, s, d) + } + q = h + } + var g = Selectors.Utils.parseSelector(z); + if (g) { + f = []; + for (var v = 0, t = q.length; v < t; v++) { + B = q[v]; + if (Selectors.Utils.filter(B, g, u)) { + f.push(B) + } + } + q = f + } + } + return q + } +}; +Selectors.Getters = { + " ": function (j, h, k, a, f) { + var d = Selectors.Utils.getByTagAndID(h, k, a); + for (var c = 0, b = d.length; c < b; c++) { + var g = d[c]; + if (Selectors.Utils.chk(g, f)) { + j.push(g) + } + } + return j + }, + ">": function (j, h, k, a, g) { + var c = Selectors.Utils.getByTagAndID(h, k, a); + for (var f = 0, d = c.length; f < d; f++) { + var b = c[f]; + if (b.parentNode == h && Selectors.Utils.chk(b, g)) { + j.push(b) + } + } + return j + }, + "+": function (c, b, a, f, d) { + while ((b = b.nextSibling)) { + if (b.nodeType == 1) { + if (Selectors.Utils.chk(b, d) && Selectors.Filters.byTag(b, a) && Selectors.Filters.byID(b, f)) { + c.push(b) + } + break + } + } + return c + }, + "~": function (c, b, a, f, d) { + while ((b = b.nextSibling)) { + if (b.nodeType == 1) { + if (!Selectors.Utils.chk(b, d)) { + break + } + if (Selectors.Filters.byTag(b, a) && Selectors.Filters.byID(b, f)) { + c.push(b) + } + } + } + return c + } +}; +Selectors.Filters = { + byTag: function (b, a) { + return (a == "*" || (b.tagName && b.tagName.toLowerCase() == a)) + }, + byID: function (a, b) { + return (!b || (a.id && a.id == b)) + }, + byClass: function (b, a) { + return (b.className && b.className.contains && b.className.contains(a, " ")) + }, + byPseudo: function (a, d, c, b) { + return d.call(a, c, b) + }, + byAttribute: function (c, d, b, f) { + var a = Element.prototype.getProperty.call(c, d); + if (!a) { + return (b == "!=") + } + if (!b || f == undefined) { + return true + } + switch (b) { + case "=": + return (a == f); + case "*=": + return (a.contains(f)); + case "^=": + return (a.substr(0, f.length) == f); + case "$=": + return (a.substr(a.length - f.length) == f); + case "!=": + return (a != f); + case "~=": + return a.contains(f, " "); + case "|=": + return a.contains(f, "-") + } + return false + } +}; +Selectors.Pseudo = new Hash({ + checked: function () { + return this.checked + }, + empty: function () { + return !(this.innerText || this.textContent || "").length + }, + not: function (a) { + return !Element.match(this, a) + }, + contains: function (a) { + return (this.innerText || this.textContent || "").contains(a) + }, + "first-child": function () { + return Selectors.Pseudo.index.call(this, 0) + }, + "last-child": function () { + var a = this; + while ((a = a.nextSibling)) { + if (a.nodeType == 1) { + return false + } + } + return true + }, + "only-child": function () { + var b = this; + while ((b = b.previousSibling)) { + if (b.nodeType == 1) { + return false + } + } + var a = this; + while ((a = a.nextSibling)) { + if (a.nodeType == 1) { + return false + } + } + return true + }, + "nth-child": function (h, f) { + h = (h == undefined) ? "n" : h; + var c = Selectors.Utils.parseNthArgument(h); + if (c.special != "n") { + return Selectors.Pseudo[c.special].call(this, c.a, f) + } + var g = 0; + f.positions = f.positions || {}; + var d = $uid(this); + if (!f.positions[d]) { + var b = this; + while ((b = b.previousSibling)) { + if (b.nodeType != 1) { + continue + } + g++; + var a = f.positions[$uid(b)]; + if (a != undefined) { + g = a + g; + break + } + } + f.positions[d] = g + } + return (f.positions[d] % c.a == c.b) + }, + index: function (a) { + var b = this, + c = 0; + while ((b = b.previousSibling)) { + if (b.nodeType == 1 && ++c > a) { + return false + } + } + return (c == a) + }, + even: function (b, a) { + return Selectors.Pseudo["nth-child"].call(this, "2n+1", a) + }, + odd: function (b, a) { + return Selectors.Pseudo["nth-child"].call(this, "2n", a) + }, + selected: function () { + return this.selected + }, + enabled: function () { + return (this.disabled === false) + } +}); +var Swiff = new Class({ + Implements: [Options], + options: { + id: null, + height: 1, + width: 1, + container: null, + properties: {}, + params: { + quality: "high", + allowScriptAccess: "always", + wMode: "transparent", + swLiveConnect: true + }, + callBacks: {}, + vars: {} + }, + toElement: function () { + return this.object + }, + initialize: function (m, n) { + this.instance = "Swiff_" + $time(); + this.setOptions(n); + n = this.options; + var b = this.id = n.id || this.instance; + var a = document.id(n.container); + Swiff.CallBacks[this.instance] = {}; + var f = n.params, + h = n.vars, + g = n.callBacks; + var i = $extend({ + height: n.height, + width: n.width + }, n.properties); + var l = this; + for (var d in g) { + Swiff.CallBacks[this.instance][d] = (function (o) { + return function () { + return o.apply(l.object, arguments) + } + })(g[d]); + h[d] = "Swiff.CallBacks." + this.instance + "." + d + } + f.flashVars = Hash.toQueryString(h); + if (Browser.Engine.trident) { + i.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"; + f.movie = m + } else { + i.type = "application/x-shockwave-flash"; + i.data = m + } + var k = '' + } + } + k += ""; + this.object = ((a) ? a.empty() : new Element("div")).set("html", k).firstChild + }, + replaces: function (a) { + a = document.id(a, true); + a.parentNode.replaceChild(this.toElement(), a); + return this + }, + inject: function (a) { + document.id(a, true).appendChild(this.toElement()); + return this + }, + remote: function () { + return Swiff.remote.apply(Swiff, [this.toElement()].extend(arguments)) + } +}); +Swiff.CallBacks = {}; +Swiff.remote = function (obj, fn) { + var rs = obj.CallFunction('' + __flash__argumentsToXML(arguments, 2) + ""); + return eval(rs) +}; +MooTools.More = { + version: "1.2.4.4", + build: "6f6057dc645fdb7547689183b2311063bd653ddf" +}; +(function () { + var a = { + language: "en-US", + languages: { + "en-US": {} + }, + cascades: ["en-US"] + }; + var b; + MooTools.lang = new Events(); + $extend(MooTools.lang, { + setLanguage: function (c) { + if (!a.languages[c]) { + return this + } + a.language = c; + this.load(); + this.fireEvent("langChange", c); + return this + }, + load: function () { + var c = this.cascade(this.getCurrentLanguage()); + b = {}; + $each(c, function (f, d) { + b[d] = this.lambda(f) + }, this) + }, + getCurrentLanguage: function () { + return a.language + }, + addLanguage: function (c) { + a.languages[c] = a.languages[c] || {}; + return this + }, + cascade: function (f) { + var c = (a.languages[f] || {}).cascades || []; + c.combine(a.cascades); + c.erase(f).push(f); + var d = c.map(function (g) { + return a.languages[g] + }, this); + return $merge.apply(this, d) + }, + lambda: function (c) { + (c || {}).get = function (f, d) { + return $lambda(c[f]).apply(this, $splat(d)) + }; + return c + }, + get: function (f, d, c) { + if (b && b[f]) { + return (d ? b[f].get(d, c) : b[f]) + } + }, + set: function (d, f, c) { + this.addLanguage(d); + langData = a.languages[d]; + if (!langData[f]) { + langData[f] = {} + } + $extend(langData[f], c); + if (d == this.getCurrentLanguage()) { + this.load(); + this.fireEvent("langChange", d) + } + return this + }, + list: function () { + return Hash.getKeys(a.languages) + } + }) +})(); +Class.refactor = function (b, a) { + $each(a, function (f, d) { + var c = b.prototype[d]; + if (c && (c = c._origin) && typeof f == "function") { + b.implement(d, function () { + var g = this.previous; + this.previous = c; + var h = f.apply(this, arguments); + this.previous = g; + return h + }) + } else { + b.implement(d, f) + } + }); + return b +}; +Class.Mutators.Binds = function (a) { + return a +}; +Class.Mutators.initialize = function (a) { + return function () { + $splat(this.Binds).each(function (b) { + var c = this[b]; + if (c) { + this[b] = c.bind(this) + } + }, this); + return a.apply(this, arguments) + } +}; +Class.Occlude = new Class({ + occlude: function (c, b) { + b = document.id(b || this.element); + var a = b.retrieve(c || this.property); + if (a && !$defined(this.occluded)) { + return this.occluded = a + } + this.occluded = false; + b.store(c || this.property, this); + return this.occluded + } +}); +Array.implement({ + min: function () { + return Math.min.apply(null, this) + }, + max: function () { + return Math.max.apply(null, this) + }, + average: function () { + return this.length ? this.sum() / this.length : 0 + }, + sum: function () { + var a = 0, + b = this.length; + if (b) { + do { + a += this[--b] + } while (b) + } + return a + }, + unique: function () { + return [].combine(this) + }, + shuffle: function () { + for (var b = this.length; b && --b;) { + var a = this[b], + c = Math.floor(Math.random() * (b + 1)); + this[b] = this[c]; + this[c] = a + } + return this + } +}); +Hash.implement({ + getFromPath: function (a) { + var b = this.getClean(); + a.replace(/\[([^\]]+)\]|\.([^.[]+)|[^[.]+/g, function (c) { + if (!b) { + return null + } + var d = arguments[2] || arguments[1] || arguments[0]; + b = (d in b) ? b[d] : null; + return c + }); + return b + }, + cleanValues: function (a) { + a = a || $defined; + this.each(function (c, b) { + if (!a(c)) { + this.erase(b) + } + }, this); + return this + }, + run: function () { + var a = arguments; + this.each(function (c, b) { + if ($type(c) == "function") { + c.run(a) + } + }) + } +}); +(function () { + var b = ["A", "a", "Á", "á", "Â", "â", "A", "a", "Ä", "ä", "A", "a", "Ã", "ã", "¥", "¹", "Æ", "æ", "È", "è", "Ç", "ç", "Ï", "ï", "Ð", "ð", "E", "e", "É", "é", "E", "e", "Ë", "ë", "Ì", "ì", "Ê", "ê", "G", "g", "I", "i", "Í", "í", "Î", "î", "I", "i", "Å", "å", "¼", "¾", "£", "³", "N", "n", "Ò", "ò", "Ñ", "ñ", "O", "o", "Ó", "ó", "Ô", "ô", "O", "o", "Ö", "ö", "O", "o", "õ", "Ø", "ø", "À", "à", "Š", "š", "ª", "º", "Œ", "œ", "", "", "", "", "Þ", "þ", "U", "u", "Ú", "ú", "U", "u", "Ü", "ü", "Ù", "ù", "Y", "y", "ý", "Ý", "Ž", "ž", "", "Ÿ", "¯", "¿", "?", "?", "?", "?", "ß", "O", "o", "A", "a", "µ"]; + var a = ["A", "a", "A", "a", "A", "a", "A", "a", "Ae", "ae", "A", "a", "A", "a", "A", "a", "C", "c", "C", "c", "C", "c", "D", "d", "D", "d", "E", "e", "E", "e", "E", "e", "E", "e", "E", "e", "E", "e", "G", "g", "I", "i", "I", "i", "I", "i", "I", "i", "L", "l", "L", "l", "L", "l", "N", "n", "N", "n", "N", "n", "O", "o", "O", "o", "O", "o", "O", "o", "Oe", "oe", "O", "o", "o", "R", "r", "R", "r", "S", "s", "S", "s", "S", "s", "T", "t", "T", "t", "T", "t", "U", "u", "U", "u", "U", "u", "Ue", "ue", "U", "u", "Y", "y", "Y", "y", "Z", "z", "Z", "z", "Z", "z", "TH", "th", "DH", "dh", "ss", "OE", "oe", "AE", "ae", "u"]; + var d = { + "[\xa0\u2002\u2003\u2009]": " ", + "\xb7": "*", + "[\u2018\u2019]": "'", + "[\u201c\u201d]": '"', + "\u2026": "...", + "\u2013": "-", + "\u2014": "--", + "\uFFFD": "»" + }; + var c = function (f, g) { + f = f || ""; + var h = g ? "<" + f + "[^>]*>([\\s\\S]*?)" : "]+)?>"; + reg = new RegExp(h, "gi"); + return reg + }; + String.implement({ + standardize: function () { + var f = this; + b.each(function (h, g) { + f = f.replace(new RegExp(h, "g"), a[g]) + }); + return f + }, + repeat: function (f) { + return new Array(f + 1).join(this) + }, + pad: function (g, i, f) { + if (this.length >= g) { + return this + } + var h = (i == null ? " " : "" + i).repeat(g - this.length).substr(0, g - this.length); + if (!f || f == "right") { + return this + h + } + if (f == "left") { + return h + this + } + return h.substr(0, (h.length / 2).floor()) + this + h.substr(0, (h.length / 2).ceil()) + }, + getTags: function (f, g) { + return this.match(c(f, g)) || [] + }, + stripTags: function (f, g) { + return this.replace(c(f, g), "") + }, + tidy: function () { + var f = this.toString(); + $each(d, function (h, g) { + f = f.replace(new RegExp(g, "g"), h) + }); + return f + } + }) +})(); +String.implement({ + parseQueryString: function () { + var b = this.split(/[&;]/), + a = {}; + if (b.length) { + b.each(function (h) { + var c = h.indexOf("="), + d = c < 0 ? [""] : h.substr(0, c).match(/[^\]\[]+/g), + f = decodeURIComponent(h.substr(c + 1)), + g = a; + d.each(function (k, j) { + var l = g[k]; + if (j < d.length - 1) { + g = g[k] = l || {} + } else { + if ($type(l) == "array") { + l.push(f) + } else { + g[k] = $defined(l) ? [l, f] : f + } + } + }) + }) + } + return a + }, + cleanQueryString: function (a) { + return this.split("&").filter(function (f) { + var b = f.indexOf("="), + c = b < 0 ? "" : f.substr(0, b), + d = f.substr(b + 1); + return a ? a.run([c, d]) : $chk(d) + }).join("&") + } +}); +var URI = new Class({ + Implements: Options, + options: {}, + regex: /^(?:(\w+):)?(?:\/\/(?:(?:([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)?(\.\.?$|(?:[^?#\/]*\/)*)([^?#]*)(?:\?([^#]*))?(?:#(.*))?/, + parts: ["scheme", "user", "password", "host", "port", "directory", "file", "query", "fragment"], + schemes: { + http: 80, + https: 443, + ftp: 21, + rtsp: 554, + mms: 1755, + file: 0 + }, + initialize: function (b, a) { + this.setOptions(a); + var c = this.options.base || URI.base; + if (!b) { + b = c + } + if (b && b.parsed) { + this.parsed = $unlink(b.parsed) + } else { + this.set("value", b.href || b.toString(), c ? new URI(c) : false) + } + }, + parse: function (c, b) { + var a = c.match(this.regex); + if (!a) { + return false + } + a.shift(); + return this.merge(a.associate(this.parts), b) + }, + merge: function (b, a) { + if ((!b || !b.scheme) && (!a || !a.scheme)) { + return false + } + if (a) { + this.parts.every(function (c) { + if (b[c]) { + return false + } + b[c] = a[c] || ""; + return true + }) + } + b.port = b.port || this.schemes[b.scheme.toLowerCase()]; + b.directory = b.directory ? this.parseDirectory(b.directory, a ? a.directory : "") : "/"; + return b + }, + parseDirectory: function (b, c) { + b = (b.substr(0, 1) == "/" ? "" : (c || "/")) + b; + if (!b.test(URI.regs.directoryDot)) { + return b + } + var a = []; + b.replace(URI.regs.endSlash, "").split("/").each(function (d) { + if (d == ".." && a.length > 0) { + a.pop() + } else { + if (d != ".") { + a.push(d) + } + } + }); + return a.join("/") + "/" + }, + combine: function (a) { + return a.value || a.scheme + "://" + (a.user ? a.user + (a.password ? ":" + a.password : "") + "@" : "") + (a.host || "") + (a.port && a.port != this.schemes[a.scheme] ? ":" + a.port : "") + (a.directory || "/") + (a.file || "") + (a.query ? "?" + a.query : "") + (a.fragment ? "#" + a.fragment : "") + }, + set: function (b, d, c) { + if (b == "value") { + var a = d.match(URI.regs.scheme); + if (a) { + a = a[1] + } + if (a && !$defined(this.schemes[a.toLowerCase()])) { + this.parsed = { + scheme: a, + value: d + } + } else { + this.parsed = this.parse(d, (c || this).parsed) || (a ? { + scheme: a, + value: d + } : { + value: d + }) + } + } else { + if (b == "data") { + this.setData(d) + } else { + this.parsed[b] = d + } + } + return this + }, + get: function (a, b) { + switch (a) { + case "value": + return this.combine(this.parsed, b ? b.parsed : false); + case "data": + return this.getData() + } + return this.parsed[a] || "" + }, + go: function () { + document.location.href = this.toString() + }, + toURI: function () { + return this + }, + getData: function (c, b) { + var a = this.get(b || "query"); + if (!$chk(a)) { + return c ? null : {} + } + var d = a.parseQueryString(); + return c ? d[c] : d + }, + setData: function (a, c, b) { + if (typeof a == "string") { + data = this.getData(); + data[arguments[0]] = arguments[1]; + a = data + } else { + if (c) { + a = $merge(this.getData(), a) + } + } + return this.set(b || "query", Hash.toQueryString(a)) + }, + clearData: function (a) { + return this.set(a || "query", "") + } +}); +URI.prototype.toString = URI.prototype.valueOf = function () { + return this.get("value") +}; +URI.regs = { + endSlash: /\/$/, + scheme: /^(\w+):/, + directoryDot: /\.\/|\.$/ +}; +URI.base = new URI(document.getElements("base[href]", true).getLast(), { + base: document.location +}); +String.implement({ + toURI: function (a) { + return new URI(this, a) + } +}); +Element.implement({ + tidy: function () { + this.set("value", this.get("value").tidy()) + }, + getTextInRange: function (b, a) { + return this.get("value").substring(b, a) + }, + getSelectedText: function () { + if (this.setSelectionRange) { + return this.getTextInRange(this.getSelectionStart(), this.getSelectionEnd()) + } + return document.selection.createRange().text + }, + getSelectedRange: function () { + if ($defined(this.selectionStart)) { + return { + start: this.selectionStart, + end: this.selectionEnd + } + } + var f = { + start: 0, + end: 0 + }; + var a = this.getDocument().selection.createRange(); + if (!a || a.parentElement() != this) { + return f + } + var c = a.duplicate(); + if (this.type == "text") { + f.start = 0 - c.moveStart("character", -100000); + f.end = f.start + a.text.length + } else { + var b = this.get("value"); + var d = b.length; + c.moveToElementText(this); + c.setEndPoint("StartToEnd", a); + if (c.text.length) { + d -= b.match(/[\n\r]*$/)[0].length + } + f.end = d - c.text.length; + c.setEndPoint("StartToStart", a); + f.start = d - c.text.length + } + return f + }, + getSelectionStart: function () { + return this.getSelectedRange().start + }, + getSelectionEnd: function () { + return this.getSelectedRange().end + }, + setCaretPosition: function (a) { + if (a == "end") { + a = this.get("value").length + } + this.selectRange(a, a); + return this + }, + getCaretPosition: function () { + return this.getSelectedRange().start + }, + selectRange: function (f, a) { + if (this.setSelectionRange) { + this.focus(); + this.setSelectionRange(f, a) + } else { + var c = this.get("value"); + var d = c.substr(f, a - f).replace(/\r/g, "").length; + f = c.substr(0, f).replace(/\r/g, "").length; + var b = this.createTextRange(); + b.collapse(true); + b.moveEnd("character", f + d); + b.moveStart("character", f); + b.select() + } + return this + }, + insertAtCursor: function (b, a) { + var d = this.getSelectedRange(); + var c = this.get("value"); + this.set("value", c.substring(0, d.start) + b + c.substring(d.end, c.length)); + if ($pick(a, true)) { + this.selectRange(d.start, d.start + b.length) + } else { + this.setCaretPosition(d.start + b.length) + } + return this + }, + insertAroundCursor: function (b, a) { + b = $extend({ + before: "", + defaultMiddle: "", + after: "" + }, b); + var c = this.getSelectedText() || b.defaultMiddle; + var h = this.getSelectedRange(); + var g = this.get("value"); + if (h.start == h.end) { + this.set("value", g.substring(0, h.start) + b.before + c + b.after + g.substring(h.end, g.length)); + this.selectRange(h.start + b.before.length, h.end + b.before.length + c.length) + } else { + var d = g.substring(h.start, h.end); + this.set("value", g.substring(0, h.start) + b.before + d + b.after + g.substring(h.end, g.length)); + var f = h.start + b.before.length; + if ($pick(a, true)) { + this.selectRange(f, f + d.length) + } else { + this.setCaretPosition(f + g.length) + } + } + return this + } +}); +Elements.from = function (f, d) { + if ($pick(d, true)) { + f = f.stripScripts() + } + var b, c = f.match(/^\s*<(t[dhr]|tbody|tfoot|thead)/i); + if (c) { + b = new Element("table"); + var a = c[1].toLowerCase(); + if (["td", "th", "tr"].contains(a)) { + b = new Element("tbody").inject(b); + if (a != "tr") { + b = new Element("tr").inject(b) + } + } + } + return (b || new Element("div")).set("html", f).getChildren() +}; +Element.implement({ + measure: function (f) { + var h = function (i) { + return !!(!i || i.offsetHeight || i.offsetWidth) + }; + if (h(this)) { + return f.apply(this) + } + var d = this.getParent(), + g = [], + b = []; + while (!h(d) && d != document.body) { + b.push(d.expose()); + d = d.getParent() + } + var c = this.expose(); + var a = f.apply(this); + c(); + b.each(function (i) { + i() + }); + return a + }, + expose: function () { + if (this.getStyle("display") != "none") { + return $empty + } + var a = this.style.cssText; + this.setStyles({ + display: "block", + position: "absolute", + visibility: "hidden" + }); + return function () { + this.style.cssText = a + }.bind(this) + }, + getDimensions: function (a) { + a = $merge({ + computeSize: false + }, a); + var f = {}; + var d = function (h, g) { + return (g.computeSize) ? h.getComputedSize(g) : h.getSize() + }; + var b = this.getParent("body"); + if (b && this.getStyle("display") == "none") { + f = this.measure(function () { + return d(this, a) + }) + } else { + if (b) { + try { + f = d(this, a) + } catch (c) {} + } else { + f = { + x: 0, + y: 0 + } + } + } + return $chk(f.x) ? $extend(f, { + width: f.x, + height: f.y + }) : $extend(f, { + x: f.width, + y: f.height + }) + }, + getComputedSize: function (a) { + a = $merge({ + styles: ["padding", "border"], + plains: { + height: ["top", "bottom"], + width: ["left", "right"] + }, + mode: "both" + }, a); + var c = { + width: 0, + height: 0 + }; + switch (a.mode) { + case "vertical": + delete c.width; + delete a.plains.width; + break; + case "horizontal": + delete c.height; + delete a.plains.height; + break + } + var b = []; + $each(a.plains, function (h, g) { + h.each(function (i) { + a.styles.each(function (j) { + b.push((j == "border") ? j + "-" + i + "-width" : j + "-" + i) + }) + }) + }); + var f = {}; + b.each(function (g) { + f[g] = this.getComputedStyle(g) + }, this); + var d = []; + $each(a.plains, function (h, g) { + var i = g.capitalize(); + c["total" + i] = c["computed" + i] = 0; + h.each(function (j) { + c["computed" + j.capitalize()] = 0; + b.each(function (l, k) { + if (l.test(j)) { + f[l] = f[l].toInt() || 0; + c["total" + i] = c["total" + i] + f[l]; + c["computed" + j.capitalize()] = c["computed" + j.capitalize()] + f[l] + } + if (l.test(j) && g != l && (l.test("border") || l.test("padding")) && !d.contains(l)) { + d.push(l); + c["computed" + i] = c["computed" + i] - f[l] + } + }) + }) + }); + ["Width", "Height"].each(function (h) { + var g = h.toLowerCase(); + if (!$chk(c[g])) { + return + } + c[g] = c[g] + this["offset" + h] + c["computed" + h]; + c["total" + h] = c[g] + c["total" + h]; + delete c["computed" + h] + }, this); + return $extend(f, c) + } +}); +(function () { + var a = Element.prototype.position; + Element.implement({ + position: function (h) { + if (h && ($defined(h.x) || $defined(h.y))) { + return a ? a.apply(this, arguments) : this + } + $each(h || {}, function (w, u) { + if (!$defined(w)) { + delete h[u] + } + }); + h = $merge({ + relativeTo: document.body, + position: { + x: "center", + y: "center" + }, + edge: false, + offset: { + x: 0, + y: 0 + }, + returnPos: false, + relFixedPosition: false, + ignoreMargins: false, + ignoreScroll: false, + allowNegative: false + }, h); + var s = { + x: 0, + y: 0 + }, + f = false; + var c = this.measure(function () { + return document.id(this.getOffsetParent()) + }); + if (c && c != this.getDocument().body) { + s = c.measure(function () { + return this.getPosition() + }); + f = c != document.id(h.relativeTo); + h.offset.x = h.offset.x - s.x; + h.offset.y = h.offset.y - s.y + } + var t = function (u) { + if ($type(u) != "string") { + return u + } + u = u.toLowerCase(); + var v = {}; + if (u.test("left")) { + v.x = "left" + } else { + if (u.test("right")) { + v.x = "right" + } else { + v.x = "center" + } + } + if (u.test("upper") || u.test("top")) { + v.y = "top" + } else { + if (u.test("bottom")) { + v.y = "bottom" + } else { + v.y = "center" + } + } + return v + }; + h.edge = t(h.edge); + h.position = t(h.position); + if (!h.edge) { + if (h.position.x == "center" && h.position.y == "center") { + h.edge = { + x: "center", + y: "center" + } + } else { + h.edge = { + x: "left", + y: "top" + } + } + } + this.setStyle("position", "absolute"); + var g = document.id(h.relativeTo) || document.body, + d = g == document.body ? window.getScroll() : g.getPosition(), + m = d.y, + i = d.x; + var o = this.getDimensions({ + computeSize: true, + styles: ["padding", "border", "margin"] + }); + var k = {}, + p = h.offset.y, + r = h.offset.x, + l = window.getSize(); + switch (h.position.x) { + case "left": + k.x = i + r; + break; + case "right": + k.x = i + r + g.offsetWidth; + break; + default: + k.x = i + ((g == document.body ? l.x : g.offsetWidth) / 2) + r; + break + } + switch (h.position.y) { + case "top": + k.y = m + p; + break; + case "bottom": + k.y = m + p + g.offsetHeight; + break; + default: + k.y = m + ((g == document.body ? l.y : g.offsetHeight) / 2) + p; + break + } + if (h.edge) { + var b = {}; + switch (h.edge.x) { + case "left": + b.x = 0; + break; + case "right": + b.x = -o.x - o.computedRight - o.computedLeft; + break; + default: + b.x = -(o.totalWidth / 2); + break + } + switch (h.edge.y) { + case "top": + b.y = 0; + break; + case "bottom": + b.y = -o.y - o.computedTop - o.computedBottom; + break; + default: + b.y = -(o.totalHeight / 2); + break + } + k.x += b.x; + k.y += b.y + } + k = { + left: ((k.x >= 0 || f || h.allowNegative) ? k.x : 0).toInt(), + top: ((k.y >= 0 || f || h.allowNegative) ? k.y : 0).toInt() + }; + var j = { + left: "x", + top: "y" + }; + ["minimum", "maximum"].each(function (u) { + ["left", "top"].each(function (v) { + var w = h[u] ? h[u][j[v]] : null; + if (w != null && k[v] < w) { + k[v] = w + } + }) + }); + if (g.getStyle("position") == "fixed" || h.relFixedPosition) { + var n = window.getScroll(); + k.top += n.y; + k.left += n.x + } + if (h.ignoreScroll) { + var q = g.getScroll(); + k.top -= q.y; + k.left -= q.x + } + if (h.ignoreMargins) { + k.left += (h.edge.x == "right" ? o["margin-right"] : h.edge.x == "center" ? -o["margin-left"] + ((o["margin-right"] + o["margin-left"]) / 2) : -o["margin-left"]); + k.top += (h.edge.y == "bottom" ? o["margin-bottom"] : h.edge.y == "center" ? -o["margin-top"] + ((o["margin-bottom"] + o["margin-top"]) / 2) : -o["margin-top"]) + } + k.left = Math.ceil(k.left); + k.top = Math.ceil(k.top); + if (h.returnPos) { + return k + } else { + this.setStyles(k) + } + return this + } + }) +})(); +Element.implement({ + isDisplayed: function () { + return this.getStyle("display") != "none" + }, + isVisible: function () { + var a = this.offsetWidth, + b = this.offsetHeight; + return (a == 0 && b == 0) ? false : (a > 0 && b > 0) ? true : this.isDisplayed() + }, + toggle: function () { + return this[this.isDisplayed() ? "hide" : "show"]() + }, + hide: function () { + var b; + try { + b = this.getStyle("display") + } catch (a) {} + return this.store("originalDisplay", b || "").setStyle("display", "none") + }, + show: function (a) { + a = a || this.retrieve("originalDisplay") || "block"; + return this.setStyle("display", (a == "none") ? "block" : a) + }, + swapClass: function (a, b) { + return this.removeClass(a).addClass(b) + } +}); +var OverText = new Class({ + Implements: [Options, Events, Class.Occlude], + Binds: ["reposition", "assert", "focus", "hide"], + options: { + element: "label", + positionOptions: { + position: "upperLeft", + edge: "upperLeft", + offset: { + x: 4, + y: 2 + } + }, + poll: false, + pollInterval: 250, + wrap: false + }, + property: "OverText", + initialize: function (b, a) { + this.element = document.id(b); + if (this.occlude()) { + return this.occluded + } + this.setOptions(a); + this.attach(this.element); + OverText.instances.push(this); + if (this.options.poll) { + this.poll() + } + return this + }, + toElement: function () { + return this.element + }, + attach: function () { + var a = this.options.textOverride || this.element.get("alt") || this.element.get("title"); + if (!a) { + return + } + this.text = new Element(this.options.element, { + "class": "overTxtLabel", + styles: { + lineHeight: "normal", + position: "absolute", + cursor: "text" + }, + html: a, + events: { + click: this.hide.pass(this.options.element == "label", this) + } + }).inject(this.element, "after"); + if (this.options.element == "label") { + if (!this.element.get("id")) { + this.element.set("id", "input_" + new Date().getTime()) + } + this.text.set("for", this.element.get("id")) + } + if (this.options.wrap) { + this.textHolder = new Element("div", { + styles: { + lineHeight: "normal", + position: "relative" + }, + "class": "overTxtWrapper" + }).adopt(this.text).inject(this.element, "before") + } + this.element.addEvents({ + focus: this.focus, + blur: this.assert, + change: this.assert + }).store("OverTextDiv", this.text); + window.addEvent("resize", this.reposition.bind(this)); + this.assert(true); + this.reposition() + }, + wrap: function () { + if (this.options.element == "label") { + if (!this.element.get("id")) { + this.element.set("id", "input_" + new Date().getTime()) + } + this.text.set("for", this.element.get("id")) + } + }, + startPolling: function () { + this.pollingPaused = false; + return this.poll() + }, + poll: function (a) { + if (this.poller && !a) { + return this + } + var b = function () { + if (!this.pollingPaused) { + this.assert(true) + } + }.bind(this); + if (a) { + $clear(this.poller) + } else { + this.poller = b.periodical(this.options.pollInterval, this) + } + return this + }, + stopPolling: function () { + this.pollingPaused = true; + return this.poll(true) + }, + focus: function () { + if (this.text && (!this.text.isDisplayed() || this.element.get("disabled"))) { + return + } + this.hide() + }, + hide: function (c, a) { + if (this.text && (this.text.isDisplayed() && (!this.element.get("disabled") || a))) { + this.text.hide(); + this.fireEvent("textHide", [this.text, this.element]); + this.pollingPaused = true; + if (!c) { + try { + this.element.fireEvent("focus"); + this.element.focus() + } catch (b) {} + } + } + return this + }, + show: function () { + if (this.text && !this.text.isDisplayed()) { + this.text.show(); + this.reposition(); + this.fireEvent("textShow", [this.text, this.element]); + this.pollingPaused = false + } + return this + }, + assert: function (a) { + this[this.test() ? "show" : "hide"](a) + }, + test: function () { + var a = this.element.get("value"); + return !a + }, + reposition: function () { + this.assert(true); + if (!this.element.isVisible()) { + return this.stopPolling().hide() + } + if (this.text && this.test()) { + this.text.position($merge(this.options.positionOptions, { + relativeTo: this.element + })) + } + return this + } +}); +OverText.instances = []; +$extend(OverText, { + each: function (a) { + return OverText.instances.map(function (c, b) { + if (c.element && c.text) { + return a.apply(OverText, [c, b]) + } + return null + }) + }, + update: function () { + return OverText.each(function (a) { + return a.reposition() + }) + }, + hideAll: function () { + return OverText.each(function (a) { + return a.hide(true, true) + }) + }, + showAll: function () { + return OverText.each(function (a) { + return a.show() + }) + } +}); +if (window.Fx && Fx.Reveal) { + Fx.Reveal.implement({ + hideInputs: Browser.Engine.trident ? "select, input, textarea, object, embed, .overTxtLabel" : false + }) +} +Fx.Elements = new Class({ + Extends: Fx.CSS, + initialize: function (b, a) { + this.elements = this.subject = $$(b); + this.parent(a) + }, + compute: function (h, j, k) { + var c = {}; + for (var d in h) { + var a = h[d], + f = j[d], + g = c[d] = {}; + for (var b in a) { + g[b] = this.parent(a[b], f[b], k) + } + } + return c + }, + set: function (b) { + for (var c in b) { + var a = b[c]; + for (var d in a) { + this.render(this.elements[c], d, a[d], this.options.unit) + } + } + return this + }, + start: function (c) { + if (!this.check(c)) { + return this + } + var j = {}, + k = {}; + for (var d in c) { + var g = c[d], + a = j[d] = {}, + h = k[d] = {}; + for (var b in g) { + var f = this.prepare(this.elements[d], b, g[b]); + a[b] = f.from; + h[b] = f.to + } + } + return this.parent(j, k) + } +}); +Fx.Accordion = new Class({ + Extends: Fx.Elements, + options: { + display: 0, + show: false, + height: true, + width: false, + opacity: true, + alwaysHide: false, + trigger: "click", + initialDisplayFx: true, + returnHeightToAuto: true + }, + initialize: function () { + var c = Array.link(arguments, { + container: Element.type, + options: Object.type, + togglers: $defined, + elements: $defined + }); + this.parent(c.elements, c.options); + this.togglers = $$(c.togglers); + this.previous = -1; + this.internalChain = new Chain(); + if (this.options.alwaysHide) { + this.options.wait = true + } + if ($chk(this.options.show)) { + this.options.display = false; + this.previous = this.options.show + } + if (this.options.start) { + this.options.display = false; + this.options.show = false + } + this.effects = {}; + if (this.options.opacity) { + this.effects.opacity = "fullOpacity" + } + if (this.options.width) { + this.effects.width = this.options.fixedWidth ? "fullWidth" : "offsetWidth" + } + if (this.options.height) { + this.effects.height = this.options.fixedHeight ? "fullHeight" : "scrollHeight" + } + for (var b = 0, a = this.togglers.length; b < a; b++) { + this.addSection(this.togglers[b], this.elements[b]) + } + this.elements.each(function (f, d) { + if (this.options.show === d) { + this.fireEvent("active", [this.togglers[d], f]) + } else { + for (var g in this.effects) { + f.setStyle(g, 0) + } + } + }, this); + if ($chk(this.options.display) || this.options.initialDisplayFx === false) { + this.display(this.options.display, this.options.initialDisplayFx) + } + if (this.options.fixedHeight !== false) { + this.options.returnHeightToAuto = false + } + this.addEvent("complete", this.internalChain.callChain.bind(this.internalChain)) + }, + addSection: function (f, c) { + f = document.id(f); + c = document.id(c); + var g = this.togglers.contains(f); + this.togglers.include(f); + this.elements.include(c); + var a = this.togglers.indexOf(f); + var b = this.display.bind(this, a); + f.store("accordion:display", b); + f.addEvent(this.options.trigger, b); + if (this.options.height) { + c.setStyles({ + "padding-top": 0, + "border-top": "none", + "padding-bottom": 0, + "border-bottom": "none" + }) + } + if (this.options.width) { + c.setStyles({ + "padding-left": 0, + "border-left": "none", + "padding-right": 0, + "border-right": "none" + }) + } + c.fullOpacity = 1; + if (this.options.fixedWidth) { + c.fullWidth = this.options.fixedWidth + } + if (this.options.fixedHeight) { + c.fullHeight = this.options.fixedHeight + } + c.setStyle("overflow", "hidden"); + if (!g) { + for (var d in this.effects) { + c.setStyle(d, 0) + } + } + return this + }, + detach: function () { + this.togglers.each(function (a) { + a.removeEvent(this.options.trigger, a.retrieve("accordion:display")) + }, this) + }, + display: function (a, b) { + if (!this.check(a, b)) { + return this + } + b = $pick(b, true); + if (this.options.returnHeightToAuto) { + var d = this.elements[this.previous]; + if (d && !this.selfHidden) { + for (var c in this.effects) { + d.setStyle(c, d[this.effects[c]]) + } + } + } + a = ($type(a) == "element") ? this.elements.indexOf(a) : a; + if ((this.timer && this.options.wait) || (a === this.previous && !this.options.alwaysHide)) { + return this + } + this.previous = a; + var f = {}; + this.elements.each(function (j, h) { + f[h] = {}; + var g; + if (h != a) { + g = true + } else { + if (this.options.alwaysHide && ((j.offsetHeight > 0 && this.options.height) || j.offsetWidth > 0 && this.options.width)) { + g = true; + this.selfHidden = true + } + } + this.fireEvent(g ? "background" : "active", [this.togglers[h], j]); + for (var k in this.effects) { + f[h][k] = g ? 0 : j[this.effects[k]] + } + }, this); + this.internalChain.chain(function () { + if (this.options.returnHeightToAuto && !this.selfHidden) { + var g = this.elements[a]; + if (g) { + g.setStyle("height", "auto") + } + } + }.bind(this)); + return b ? this.start(f) : this.set(f) + } +}); +var Accordion = new Class({ + Extends: Fx.Accordion, + initialize: function () { + this.parent.apply(this, arguments); + var a = Array.link(arguments, { + container: Element.type + }); + this.container = a.container + }, + addSection: function (c, b, f) { + c = document.id(c); + b = document.id(b); + var d = this.togglers.contains(c); + var a = this.togglers.length; + if (a && (!d || f)) { + f = $pick(f, a - 1); + c.inject(this.togglers[f], "before"); + b.inject(c, "after") + } else { + if (this.container && !d) { + c.inject(this.container); + b.inject(this.container) + } + } + return this.parent.apply(this, arguments) + } +}); +Fx.Move = new Class({ + Extends: Fx.Morph, + options: { + relativeTo: document.body, + position: "center", + edge: false, + offset: { + x: 0, + y: 0 + } + }, + start: function (a) { + return this.parent(this.element.position($merge(this.options, a, { + returnPos: true + }))) + } +}); +Element.Properties.move = { + set: function (a) { + var b = this.retrieve("move"); + if (b) { + b.cancel() + } + return this.eliminate("move").store("move:options", $extend({ + link: "cancel" + }, a)) + }, + get: function (a) { + if (a || !this.retrieve("move")) { + if (a || !this.retrieve("move:options")) { + this.set("move", a) + } + this.store("move", new Fx.Move(this, this.retrieve("move:options"))) + } + return this.retrieve("move") + } +}; +Element.implement({ + move: function (a) { + this.get("move").start(a); + return this + } +}); +Fx.Reveal = new Class({ + Extends: Fx.Morph, + options: { + link: "cancel", + styles: ["padding", "border", "margin"], + transitionOpacity: !Browser.Engine.trident4, + mode: "vertical", + display: "block", + hideInputs: Browser.Engine.trident ? "select, input, textarea, object, embed" : false + }, + dissolve: function () { + try { + if (!this.hiding && !this.showing) { + if (this.element.getStyle("display") != "none") { + this.hiding = true; + this.showing = false; + this.hidden = true; + this.cssText = this.element.style.cssText; + var d = this.element.getComputedSize({ + styles: this.options.styles, + mode: this.options.mode + }); + this.element.setStyle("display", this.options.display); + if (this.options.transitionOpacity) { + d.opacity = 1 + } + var b = {}; + $each(d, function (g, f) { + b[f] = [g, 0] + }, this); + this.element.setStyle("overflow", "hidden"); + var a = this.options.hideInputs ? this.element.getElements(this.options.hideInputs) : null; + this.$chain.unshift(function () { + if (this.hidden) { + this.hiding = false; + $each(d, function (g, f) { + d[f] = g + }, this); + this.element.style.cssText = this.cssText; + this.element.setStyle("display", "none"); + if (a) { + a.setStyle("visibility", "visible") + } + } + this.fireEvent("hide", this.element); + this.callChain() + }.bind(this)); + if (a) { + a.setStyle("visibility", "hidden") + } + this.start(b) + } else { + this.callChain.delay(10, this); + this.fireEvent("complete", this.element); + this.fireEvent("hide", this.element) + } + } else { + if (this.options.link == "chain") { + this.chain(this.dissolve.bind(this)) + } else { + if (this.options.link == "cancel" && !this.hiding) { + this.cancel(); + this.dissolve() + } + } + } + } catch (c) { + this.hiding = false; + this.element.setStyle("display", "none"); + this.callChain.delay(10, this); + this.fireEvent("complete", this.element); + this.fireEvent("hide", this.element) + } + return this + }, + reveal: function () { + try { + if (!this.showing && !this.hiding) { + if (this.element.getStyle("display") == "none" || this.element.getStyle("visiblity") == "hidden" || this.element.getStyle("opacity") == 0) { + this.showing = true; + this.hiding = this.hidden = false; + var d; + this.cssText = this.element.style.cssText; + this.element.measure(function () { + d = this.element.getComputedSize({ + styles: this.options.styles, + mode: this.options.mode + }) + }.bind(this)); + $each(d, function (g, f) { + d[f] = g + }); + if ($chk(this.options.heightOverride)) { + d.height = this.options.heightOverride.toInt() + } + if ($chk(this.options.widthOverride)) { + d.width = this.options.widthOverride.toInt() + } + if (this.options.transitionOpacity) { + this.element.setStyle("opacity", 0); + d.opacity = 1 + } + var b = { + height: 0, + display: this.options.display + }; + $each(d, function (g, f) { + b[f] = 0 + }); + this.element.setStyles($merge(b, { + overflow: "hidden" + })); + var a = this.options.hideInputs ? this.element.getElements(this.options.hideInputs) : null; + if (a) { + a.setStyle("visibility", "hidden") + } + this.start(d); + this.$chain.unshift(function () { + this.element.style.cssText = this.cssText; + this.element.setStyle("display", this.options.display); + if (!this.hidden) { + this.showing = false + } + if (a) { + a.setStyle("visibility", "visible") + } + this.callChain(); + this.fireEvent("show", this.element) + }.bind(this)) + } else { + this.callChain(); + this.fireEvent("complete", this.element); + this.fireEvent("show", this.element) + } + } else { + if (this.options.link == "chain") { + this.chain(this.reveal.bind(this)) + } else { + if (this.options.link == "cancel" && !this.showing) { + this.cancel(); + this.reveal() + } + } + } + } catch (c) { + this.element.setStyles({ + display: this.options.display, + visiblity: "visible", + opacity: 1 + }); + this.showing = false; + this.callChain.delay(10, this); + this.fireEvent("complete", this.element); + this.fireEvent("show", this.element) + } + return this + }, + toggle: function () { + if (this.element.getStyle("display") == "none" || this.element.getStyle("visiblity") == "hidden" || this.element.getStyle("opacity") == 0) { + this.reveal() + } else { + this.dissolve() + } + return this + }, + cancel: function () { + this.parent.apply(this, arguments); + this.element.style.cssText = this.cssText; + this.hidding = false; + this.showing = false + } +}); +Element.Properties.reveal = { + set: function (a) { + var b = this.retrieve("reveal"); + if (b) { + b.cancel() + } + return this.eliminate("reveal").store("reveal:options", a) + }, + get: function (a) { + if (a || !this.retrieve("reveal")) { + if (a || !this.retrieve("reveal:options")) { + this.set("reveal", a) + } + this.store("reveal", new Fx.Reveal(this, this.retrieve("reveal:options"))) + } + return this.retrieve("reveal") + } +}; +Element.Properties.dissolve = Element.Properties.reveal; +Element.implement({ + reveal: function (a) { + this.get("reveal", a).reveal(); + return this + }, + dissolve: function (a) { + this.get("reveal", a).dissolve(); + return this + }, + nix: function () { + var a = Array.link(arguments, { + destroy: Boolean.type, + options: Object.type + }); + this.get("reveal", a.options).dissolve().chain(function () { + this[a.destroy ? "destroy" : "dispose"]() + }.bind(this)); + return this + }, + wink: function () { + var b = Array.link(arguments, { + duration: Number.type, + options: Object.type + }); + var a = this.get("reveal", b.options); + a.reveal().chain(function () { + (function () { + a.dissolve() + }).delay(b.duration || 2000) + }) + } +}); +Fx.Scroll = new Class({ + Extends: Fx, + options: { + offset: { + x: 0, + y: 0 + }, + wheelStops: true + }, + initialize: function (b, a) { + this.element = this.subject = document.id(b); + this.parent(a); + var d = this.cancel.bind(this, false); + if ($type(this.element) != "element") { + this.element = document.id(this.element.getDocument().body) + } + var c = this.element; + if (this.options.wheelStops) { + this.addEvent("start", function () { + c.addEvent("mousewheel", d) + }, true); + this.addEvent("complete", function () { + c.removeEvent("mousewheel", d) + }, true) + } + }, + set: function () { + var a = Array.flatten(arguments); + if (Browser.Engine.gecko) { + a = [Math.round(a[0]), Math.round(a[1])] + } + this.element.scrollTo(a[0], a[1]) + }, + compute: function (c, b, a) { + return [0, 1].map(function (d) { + return Fx.compute(c[d], b[d], a) + }) + }, + start: function (c, h) { + if (!this.check(c, h)) { + return this + } + var f = this.element.getScrollSize(), + b = this.element.getScroll(), + d = { + x: c, + y: h + }; + for (var g in d) { + var a = f[g]; + if ($chk(d[g])) { + d[g] = ($type(d[g]) == "number") ? d[g] : a + } else { + d[g] = b[g] + } + d[g] += this.options.offset[g] + } + return this.parent([b.x, b.y], [d.x, d.y]) + }, + toTop: function () { + return this.start(false, 0) + }, + toLeft: function () { + return this.start(0, false) + }, + toRight: function () { + return this.start("right", false) + }, + toBottom: function () { + return this.start(false, "bottom") + }, + toElement: function (b) { + var a = document.id(b).getPosition(this.element); + return this.start(a.x, a.y) + }, + scrollIntoView: function (c, f, d) { + f = f ? $splat(f) : ["x", "y"]; + var i = {}; + c = document.id(c); + var g = c.getPosition(this.element); + var j = c.getSize(); + var h = this.element.getScroll(); + var a = this.element.getSize(); + var b = { + x: g.x + j.x, + y: g.y + j.y + }; + ["x", "y"].each(function (k) { + if (f.contains(k)) { + if (b[k] > h[k] + a[k]) { + i[k] = b[k] - a[k] + } + if (g[k] < h[k]) { + i[k] = g[k] + } + } + if (i[k] == null) { + i[k] = h[k] + } + if (d && d[k]) { + i[k] = i[k] + d[k] + } + }, this); + if (i.x != h.x || i.y != h.y) { + this.start(i.x, i.y) + } + return this + }, + scrollToCenter: function (c, f, d) { + f = f ? $splat(f) : ["x", "y"]; + c = $(c); + var i = {}, + g = c.getPosition(this.element), + j = c.getSize(), + h = this.element.getScroll(), + a = this.element.getSize(), + b = { + x: g.x + j.x, + y: g.y + j.y + }; + ["x", "y"].each(function (k) { + if (f.contains(k)) { + i[k] = g[k] - (a[k] - j[k]) / 2 + } + if (i[k] == null) { + i[k] = h[k] + } + if (d && d[k]) { + i[k] = i[k] + d[k] + } + }, this); + if (i.x != h.x || i.y != h.y) { + this.start(i.x, i.y) + } + return this + } +}); +Fx.Slide = new Class({ + Extends: Fx, + options: { + mode: "vertical", + wrapper: false, + hideOverflow: true + }, + initialize: function (b, a) { + this.addEvent("complete", function () { + this.open = (this.wrapper["offset" + this.layout.capitalize()] != 0); + if (this.open) { + this.wrapper.setStyle("height", "") + } + if (this.open && Browser.Engine.webkit419) { + this.element.dispose().inject(this.wrapper) + } + }, true); + this.element = this.subject = document.id(b); + this.parent(a); + var d = this.element.retrieve("wrapper"); + var c = this.element.getStyles("margin", "position", "overflow"); + if (this.options.hideOverflow) { + c = $extend(c, { + overflow: "hidden" + }) + } + if (this.options.wrapper) { + d = document.id(this.options.wrapper).setStyles(c) + } + this.wrapper = d || new Element("div", { + styles: c + }).wraps(this.element); + this.element.store("wrapper", this.wrapper).setStyle("margin", 0); + this.now = []; + this.open = true + }, + vertical: function () { + this.margin = "margin-top"; + this.layout = "height"; + this.offset = this.element.offsetHeight + }, + horizontal: function () { + this.margin = "margin-left"; + this.layout = "width"; + this.offset = this.element.offsetWidth + }, + set: function (a) { + this.element.setStyle(this.margin, a[0]); + this.wrapper.setStyle(this.layout, a[1]); + return this + }, + compute: function (c, b, a) { + return [0, 1].map(function (d) { + return Fx.compute(c[d], b[d], a) + }) + }, + start: function (b, f) { + if (!this.check(b, f)) { + return this + } + this[f || this.options.mode](); + var d = this.element.getStyle(this.margin).toInt(); + var c = this.wrapper.getStyle(this.layout).toInt(); + var a = [ + [d, c], + [0, this.offset] + ]; + var h = [ + [d, c], + [-this.offset, 0] + ]; + var g; + switch (b) { + case "in": + g = a; + break; + case "out": + g = h; + break; + case "toggle": + g = (c == 0) ? a : h + } + return this.parent(g[0], g[1]) + }, + slideIn: function (a) { + return this.start("in", a) + }, + slideOut: function (a) { + return this.start("out", a) + }, + hide: function (a) { + this[a || this.options.mode](); + this.open = false; + return this.set([-this.offset, 0]) + }, + show: function (a) { + this[a || this.options.mode](); + this.open = true; + return this.set([0, this.offset]) + }, + toggle: function (a) { + return this.start("toggle", a) + } +}); +Element.Properties.slide = { + set: function (b) { + var a = this.retrieve("slide"); + if (a) { + a.cancel() + } + return this.eliminate("slide").store("slide:options", $extend({ + link: "cancel" + }, b)) + }, + get: function (a) { + if (a || !this.retrieve("slide")) { + if (a || !this.retrieve("slide:options")) { + this.set("slide", a) + } + this.store("slide", new Fx.Slide(this, this.retrieve("slide:options"))) + } + return this.retrieve("slide") + } +}; +Element.implement({ + slide: function (d, f) { + d = d || "toggle"; + var b = this.get("slide"), + a; + switch (d) { + case "hide": + b.hide(f); + break; + case "show": + b.show(f); + break; + case "toggle": + var c = this.retrieve("slide:flag", b.open); + b[c ? "slideOut" : "slideIn"](f); + this.store("slide:flag", !c); + a = true; + break; + default: + b.start(d, f) + } + if (!a) { + this.eliminate("slide:flag") + } + return this + } +}); +var SmoothScroll = Fx.SmoothScroll = new Class({ + Extends: Fx.Scroll, + initialize: function (b, c) { + c = c || document; + this.doc = c.getDocument(); + var d = c.getWindow(); + this.parent(this.doc, b); + this.links = $$(this.options.links || this.doc.links); + var a = d.location.href.match(/^[^#]*/)[0] + "#"; + this.links.each(function (g) { + if (g.href.indexOf(a) != 0) { + return + } + var f = g.href.substr(a.length); + if (f) { + this.useLink(g, f) + } + }, this); + if (!Browser.Engine.webkit419) { + this.addEvent("complete", function () { + d.location.hash = this.anchor + }, true) + } + }, + useLink: function (c, a) { + var b; + c.addEvent("click", function (d) { + if (b !== false && !b) { + b = document.id(a) || this.doc.getElement("a[name=" + a + "]") + } + if (b) { + d.preventDefault(); + this.anchor = a; + this.toElement(b).chain(function () { + this.fireEvent("scrolledTo", [c, b]) + }.bind(this)); + c.blur() + } + }.bind(this)) + } +}); +var Drag = new Class({ + Implements: [Events, Options], + options: { + snap: 6, + unit: "px", + grid: false, + style: true, + limit: false, + handle: false, + invert: false, + preventDefault: false, + stopPropagation: false, + modifiers: { + x: "left", + y: "top" + } + }, + initialize: function () { + var b = Array.link(arguments, { + options: Object.type, + element: $defined + }); + this.element = document.id(b.element); + this.document = this.element.getDocument(); + this.setOptions(b.options || {}); + var a = $type(this.options.handle); + this.handles = ((a == "array" || a == "collection") ? $$(this.options.handle) : document.id(this.options.handle)) || this.element; + this.mouse = { + now: {}, + pos: {} + }; + this.value = { + start: {}, + now: {} + }; + this.selection = (Browser.Engine.trident) ? "selectstart" : "mousedown"; + this.bound = { + start: this.start.bind(this), + check: this.check.bind(this), + drag: this.drag.bind(this), + stop: this.stop.bind(this), + cancel: this.cancel.bind(this), + eventStop: $lambda(false) + }; + this.attach() + }, + attach: function () { + this.handles.addEvent("mousedown", this.bound.start); + return this + }, + detach: function () { + this.handles.removeEvent("mousedown", this.bound.start); + return this + }, + start: function (c) { + if (c.rightClick) { + return + } + if (this.options.preventDefault) { + c.preventDefault() + } + if (this.options.stopPropagation) { + c.stopPropagation() + } + this.mouse.start = c.page; + this.fireEvent("beforeStart", this.element); + var a = this.options.limit; + this.limit = { + x: [], + y: [] + }; + for (var d in this.options.modifiers) { + if (!this.options.modifiers[d]) { + continue + } + if (this.options.style) { + this.value.now[d] = this.element.getStyle(this.options.modifiers[d]).toInt() + } else { + this.value.now[d] = this.element[this.options.modifiers[d]] + } + if (this.options.invert) { + this.value.now[d] *= -1 + } + this.mouse.pos[d] = c.page[d] - this.value.now[d]; + if (a && a[d]) { + for (var b = 2; b--; b) { + if ($chk(a[d][b])) { + this.limit[d][b] = $lambda(a[d][b])() + } + } + } + } + if ($type(this.options.grid) == "number") { + this.options.grid = { + x: this.options.grid, + y: this.options.grid + } + } + this.document.addEvents({ + mousemove: this.bound.check, + mouseup: this.bound.cancel + }); + this.document.addEvent(this.selection, this.bound.eventStop) + }, + check: function (a) { + if (this.options.preventDefault) { + a.preventDefault() + } + var b = Math.round(Math.sqrt(Math.pow(a.page.x - this.mouse.start.x, 2) + Math.pow(a.page.y - this.mouse.start.y, 2))); + if (b > this.options.snap) { + this.cancel(); + this.document.addEvents({ + mousemove: this.bound.drag, + mouseup: this.bound.stop + }); + this.fireEvent("start", [this.element, a]).fireEvent("snap", this.element) + } + }, + drag: function (a) { + if (this.options.preventDefault) { + a.preventDefault() + } + this.mouse.now = a.page; + for (var b in this.options.modifiers) { + if (!this.options.modifiers[b]) { + continue + } + this.value.now[b] = this.mouse.now[b] - this.mouse.pos[b]; + if (this.options.invert) { + this.value.now[b] *= -1 + } + if (this.options.limit && this.limit[b]) { + if ($chk(this.limit[b][1]) && (this.value.now[b] > this.limit[b][1])) { + this.value.now[b] = this.limit[b][1] + } else { + if ($chk(this.limit[b][0]) && (this.value.now[b] < this.limit[b][0])) { + this.value.now[b] = this.limit[b][0] + } + } + } + if (this.options.grid[b]) { + this.value.now[b] -= ((this.value.now[b] - (this.limit[b][0] || 0)) % this.options.grid[b]) + } + if (this.options.style) { + this.element.setStyle(this.options.modifiers[b], this.value.now[b] + this.options.unit) + } else { + this.element[this.options.modifiers[b]] = this.value.now[b] + } + } + this.fireEvent("drag", [this.element, a]) + }, + cancel: function (a) { + this.document.removeEvent("mousemove", this.bound.check); + this.document.removeEvent("mouseup", this.bound.cancel); + if (a) { + this.document.removeEvent(this.selection, this.bound.eventStop); + this.fireEvent("cancel", this.element) + } + }, + stop: function (a) { + this.document.removeEvent(this.selection, this.bound.eventStop); + this.document.removeEvent("mousemove", this.bound.drag); + this.document.removeEvent("mouseup", this.bound.stop); + if (a) { + this.fireEvent("complete", [this.element, a]) + } + } +}); +Element.implement({ + makeResizable: function (a) { + var b = new Drag(this, $merge({ + modifiers: { + x: "width", + y: "height" + } + }, a)); + this.store("resizer", b); + return b.addEvent("drag", function () { + this.fireEvent("resize", b) + }.bind(this)) + } +}); +Drag.Move = new Class({ + Extends: Drag, + options: { + droppables: [], + container: false, + precalculate: false, + includeMargins: true, + checkDroppables: true + }, + initialize: function (b, a) { + this.parent(b, a); + b = this.element; + this.droppables = $$(this.options.droppables); + this.container = document.id(this.options.container); + if (this.container && $type(this.container) != "element") { + this.container = document.id(this.container.getDocument().body) + } + var c = b.getStyles("left", "top", "position"); + if (c.left == "auto" || c.top == "auto") { + b.setPosition(b.getPosition(b.getOffsetParent())) + } + if (c.position == "static") { + b.setStyle("position", "absolute") + } + this.addEvent("start", this.checkDroppables, true); + this.overed = null + }, + start: function (a) { + if (this.container) { + this.options.limit = this.calculateLimit() + } + if (this.options.precalculate) { + this.positions = this.droppables.map(function (b) { + return b.getCoordinates() + }) + } + this.parent(a) + }, + calculateLimit: function () { + var d = this.element.getOffsetParent(), + h = this.container.getCoordinates(d), + g = {}, + c = {}, + b = {}, + j = {}, + l = {}; + ["top", "right", "bottom", "left"].each(function (p) { + g[p] = this.container.getStyle("border-" + p).toInt(); + b[p] = this.element.getStyle("border-" + p).toInt(); + c[p] = this.element.getStyle("margin-" + p).toInt(); + j[p] = this.container.getStyle("margin-" + p).toInt(); + l[p] = d.getStyle("padding-" + p).toInt() + }, this); + var f = this.element.offsetWidth + c.left + c.right, + o = this.element.offsetHeight + c.top + c.bottom, + i = 0, + k = 0, + n = h.right - g.right - f, + a = h.bottom - g.bottom - o; + if (this.options.includeMargins) { + i += c.left; + k += c.top + } else { + n += c.right; + a += c.bottom + } + if (this.element.getStyle("position") == "relative") { + var m = this.element.getCoordinates(d); + m.left -= this.element.getStyle("left").toInt(); + m.top -= this.element.getStyle("top").toInt(); + i += g.left - m.left; + k += g.top - m.top; + n += c.left - m.left; + a += c.top - m.top; + if (this.container != d) { + i += j.left + l.left; + k += (Browser.Engine.trident4 ? 0 : j.top) + l.top + } + } else { + i -= c.left; + k -= c.top; + if (this.container == d) { + n -= g.left; + a -= g.top + } else { + i += h.left + g.left; + k += h.top + g.top + } + } + return { + x: [i, n], + y: [k, a] + } + }, + checkAgainst: function (c, b) { + c = (this.positions) ? this.positions[b] : c.getCoordinates(); + var a = this.mouse.now; + return (a.x > c.left && a.x < c.right && a.y < c.bottom && a.y > c.top) + }, + checkDroppables: function () { + var a = this.droppables.filter(this.checkAgainst, this).getLast(); + if (this.overed != a) { + if (this.overed) { + this.fireEvent("leave", [this.element, this.overed]) + } + if (a) { + this.fireEvent("enter", [this.element, a]) + } + this.overed = a + } + }, + drag: function (a) { + this.parent(a); + if (this.options.checkDroppables && this.droppables.length) { + this.checkDroppables() + } + }, + stop: function (a) { + this.checkDroppables(); + this.fireEvent("drop", [this.element, this.overed, a]); + this.overed = null; + return this.parent(a) + } +}); +Element.implement({ + makeDraggable: function (a) { + var b = new Drag.Move(this, a); + this.store("dragger", b); + return b + } +}); +var Slider = new Class({ + Implements: [Events, Options], + Binds: ["clickedElement", "draggedKnob", "scrolledElement"], + options: { + onTick: function (a) { + if (this.options.snap) { + a = this.toPosition(this.step) + } + this.knob.setStyle(this.property, a) + }, + initialStep: 0, + snap: false, + offset: 0, + range: false, + wheel: false, + steps: 100, + mode: "horizontal" + }, + initialize: function (g, a, f) { + this.setOptions(f); + this.element = document.id(g); + this.knob = document.id(a); + this.previousChange = this.previousEnd = this.step = -1; + var h, b = {}, + d = { + x: false, + y: false + }; + switch (this.options.mode) { + case "vertical": + this.axis = "y"; + this.property = "top"; + h = "offsetHeight"; + break; + case "horizontal": + this.axis = "x"; + this.property = "left"; + h = "offsetWidth" + } + this.full = this.element.measure(function () { + this.half = this.knob[h] / 2; + return this.element[h] - this.knob[h] + (this.options.offset * 2) + }.bind(this)); + this.min = $chk(this.options.range[0]) ? this.options.range[0] : 0; + this.max = $chk(this.options.range[1]) ? this.options.range[1] : this.options.steps; + this.range = this.max - this.min; + this.steps = this.options.steps || this.full; + this.stepSize = Math.abs(this.range) / this.steps; + this.stepWidth = this.stepSize * this.full / Math.abs(this.range); + this.knob.setStyle("position", "relative").setStyle(this.property, this.options.initialStep ? this.toPosition(this.options.initialStep) : -this.options.offset); + d[this.axis] = this.property; + b[this.axis] = [-this.options.offset, this.full - this.options.offset]; + var c = { + snap: 0, + limit: b, + modifiers: d, + onDrag: this.draggedKnob, + onStart: this.draggedKnob, + onBeforeStart: (function () { + this.isDragging = true + }).bind(this), + onCancel: function () { + this.isDragging = false + }.bind(this), + onComplete: function () { + this.isDragging = false; + this.draggedKnob(); + this.end() + }.bind(this) + }; + if (this.options.snap) { + c.grid = Math.ceil(this.stepWidth); + c.limit[this.axis][1] = this.full + } + this.drag = new Drag(this.knob, c); + this.attach() + }, + attach: function () { + this.element.addEvent("mousedown", this.clickedElement); + if (this.options.wheel) { + this.element.addEvent("mousewheel", this.scrolledElement) + } + this.drag.attach(); + return this + }, + detach: function () { + this.element.removeEvent("mousedown", this.clickedElement); + this.element.removeEvent("mousewheel", this.scrolledElement); + this.drag.detach(); + return this + }, + set: function (a) { + if (!((this.range > 0) ^ (a < this.min))) { + a = this.min + } + if (!((this.range > 0) ^ (a > this.max))) { + a = this.max + } + this.step = Math.round(a); + this.checkStep(); + this.fireEvent("tick", this.toPosition(this.step)); + this.end(); + return this + }, + clickedElement: function (c) { + if (this.isDragging || c.target == this.knob) { + return + } + var b = this.range < 0 ? -1 : 1; + var a = c.page[this.axis] - this.element.getPosition()[this.axis] - this.half; + a = a.limit(-this.options.offset, this.full - this.options.offset); + this.step = Math.round(this.min + b * this.toStep(a)); + this.checkStep(); + this.fireEvent("tick", a); + this.end() + }, + scrolledElement: function (a) { + var b = (this.options.mode == "horizontal") ? (a.wheel < 0) : (a.wheel > 0); + this.set(b ? this.step - this.stepSize : this.step + this.stepSize); + a.stop() + }, + draggedKnob: function () { + var b = this.range < 0 ? -1 : 1; + var a = this.drag.value.now[this.axis]; + a = a.limit(-this.options.offset, this.full - this.options.offset); + this.step = Math.round(this.min + b * this.toStep(a)); + this.checkStep() + }, + checkStep: function () { + if (this.previousChange != this.step) { + this.previousChange = this.step; + this.fireEvent("change", this.step) + } + }, + end: function () { + if (this.previousEnd !== this.step) { + this.previousEnd = this.step; + this.fireEvent("complete", this.step + "") + } + }, + toStep: function (a) { + var b = (a + this.options.offset) * this.stepSize / this.full * this.steps; + return this.options.steps ? Math.round(b -= b % this.stepSize) : b + }, + toPosition: function (a) { + return (this.full * Math.abs(this.min - a)) / (this.steps * this.stepSize) - this.options.offset + } +}); +var Sortables = new Class({ + Implements: [Events, Options], + options: { + snap: 4, + opacity: 1, + clone: false, + revert: false, + handle: false, + constrain: false + }, + initialize: function (a, b) { + this.setOptions(b); + this.elements = []; + this.lists = []; + this.idle = true; + this.addLists($$(document.id(a) || a)); + if (!this.options.clone) { + this.options.revert = false + } + if (this.options.revert) { + this.effect = new Fx.Morph(null, $merge({ + duration: 250, + link: "cancel" + }, this.options.revert)) + } + }, + attach: function () { + this.addLists(this.lists); + return this + }, + detach: function () { + this.lists = this.removeLists(this.lists); + return this + }, + addItems: function () { + Array.flatten(arguments).each(function (a) { + this.elements.push(a); + var b = a.retrieve("sortables:start", this.start.bindWithEvent(this, a)); + (this.options.handle ? a.getElement(this.options.handle) || a : a).addEvent("mousedown", b) + }, this); + return this + }, + addLists: function () { + Array.flatten(arguments).each(function (a) { + this.lists.push(a); + this.addItems(a.getChildren()) + }, this); + return this + }, + removeItems: function () { + return $$(Array.flatten(arguments).map(function (a) { + this.elements.erase(a); + var b = a.retrieve("sortables:start"); + (this.options.handle ? a.getElement(this.options.handle) || a : a).removeEvent("mousedown", b); + return a + }, this)) + }, + removeLists: function () { + return $$(Array.flatten(arguments).map(function (a) { + this.lists.erase(a); + this.removeItems(a.getChildren()); + return a + }, this)) + }, + getClone: function (b, a) { + if (!this.options.clone) { + return new Element("div").inject(document.body) + } + if ($type(this.options.clone) == "function") { + return this.options.clone.call(this, b, a, this.list) + } + var c = a.clone(true).setStyles({ + margin: "0px", + position: "absolute", + visibility: "hidden", + width: a.getStyle("width") + }); + if (c.get("html").test("radio")) { + c.getElements("input[type=radio]").each(function (d, f) { + d.set("name", "clone_" + f) + }) + } + return c.inject(this.list).setPosition(a.getPosition(a.getOffsetParent())) + }, + getDroppables: function () { + var a = this.list.getChildren(); + if (!this.options.constrain) { + a = this.lists.concat(a).erase(this.list) + } + return a.erase(this.clone).erase(this.element) + }, + insert: function (c, b) { + var a = "inside"; + if (this.lists.contains(b)) { + this.list = b; + this.drag.droppables = this.getDroppables() + } else { + a = this.element.getAllPrevious().contains(b) ? "before" : "after" + } + this.element.inject(b, a); + this.fireEvent("sort", [this.element, this.clone]) + }, + start: function (b, a) { + if (!this.idle) { + return + } + this.idle = false; + this.element = a; + this.opacity = a.get("opacity"); + this.list = a.getParent(); + this.clone = this.getClone(b, a); + this.drag = new Drag.Move(this.clone, { + snap: this.options.snap, + container: this.options.constrain && this.element.getParent(), + droppables: this.getDroppables(), + onSnap: function () { + b.stop(); + this.clone.setStyle("visibility", "visible"); + this.element.set("opacity", this.options.opacity || 0); + this.fireEvent("start", [this.element, this.clone]) + }.bind(this), + onEnter: this.insert.bind(this), + onCancel: this.reset.bind(this), + onComplete: this.end.bind(this) + }); + this.clone.inject(this.element, "before"); + this.drag.start(b) + }, + end: function () { + this.drag.detach(); + this.element.set("opacity", this.opacity); + if (this.effect) { + var a = this.element.getStyles("width", "height"); + var b = this.clone.computePosition(this.element.getPosition(this.clone.offsetParent)); + this.effect.element = this.clone; + this.effect.start({ + top: b.top, + left: b.left, + width: a.width, + height: a.height, + opacity: 0.25 + }).chain(this.reset.bind(this)) + } else { + this.reset() + } + }, + reset: function () { + this.idle = true; + this.clone.destroy(); + this.fireEvent("complete", this.element) + }, + serialize: function () { + var c = Array.link(arguments, { + modifier: Function.type, + index: $defined + }); + var b = this.lists.map(function (d) { + return d.getChildren().map(c.modifier || + function (f) { + return f.get("id") + }, this) + }, this); + var a = c.index; + if (this.lists.length == 1) { + a = 0 + } + return $chk(a) && a >= 0 && a < this.lists.length ? b[a] : b + } +}); +Request.implement({ + options: { + initialDelay: 5000, + delay: 5000, + limit: 60000 + }, + startTimer: function (b) { + var a = function () { + if (!this.running) { + this.send({ + data: b + }) + } + }; + this.timer = a.delay(this.options.initialDelay, this); + this.lastDelay = this.options.initialDelay; + this.completeCheck = function (c) { + $clear(this.timer); + this.lastDelay = (c) ? this.options.delay : (this.lastDelay + this.options.delay).min(this.options.limit); + this.timer = a.delay(this.lastDelay, this) + }; + return this.addEvent("complete", this.completeCheck) + }, + stopTimer: function () { + $clear(this.timer); + return this.removeEvent("complete", this.completeCheck) + } +}); +Hash.Cookie = new Class({ + Extends: Cookie, + options: { + autoSave: true + }, + initialize: function (b, a) { + this.parent(b, a); + this.load() + }, + save: function () { + var a = JSON.encode(this.hash); + if (!a || a.length > 4096) { + return false + } + if (a == "{}") { + this.dispose() + } else { + this.write(a) + } + return true + }, + load: function () { + this.hash = new Hash(JSON.decode(this.read(), true)); + return this + } +}); +Hash.each(Hash.prototype, function (b, a) { + if (typeof b == "function") { + Hash.Cookie.implement(a, function () { + var c = b.apply(this.hash, arguments); + if (this.options.autoSave) { + this.save() + } + return c + }) + } +}); +var Scroller = new Class({ + Implements: [Events, Options], + options: { + area: 20, + velocity: 1, + onChange: function (a, b) { + this.element.scrollTo(a, b) + }, + fps: 50 + }, + initialize: function (b, a) { + this.setOptions(a); + this.element = document.id(b); + this.docBody = document.id(this.element.getDocument().body); + this.listener = ($type(this.element) != "element") ? this.docBody : this.element; + this.timer = null; + this.bound = { + attach: this.attach.bind(this), + detach: this.detach.bind(this), + getCoords: this.getCoords.bind(this) + } + }, + start: function () { + this.listener.addEvents({ + mouseover: this.bound.attach, + mouseout: this.bound.detach + }) + }, + stop: function () { + this.listener.removeEvents({ + mouseover: this.bound.attach, + mouseout: this.bound.detach + }); + this.detach(); + this.timer = $clear(this.timer) + }, + attach: function () { + this.listener.addEvent("mousemove", this.bound.getCoords) + }, + detach: function () { + this.listener.removeEvent("mousemove", this.bound.getCoords); + this.timer = $clear(this.timer) + }, + getCoords: function (a) { + this.page = (this.listener.get("tag") == "body") ? a.client : a.page; + if (!this.timer) { + this.timer = this.scroll.periodical(Math.round(1000 / this.options.fps), this) + } + }, + scroll: function () { + var b = this.element.getSize(), + a = this.element.getScroll(), + g = this.element != this.docBody ? this.element.getOffsets() : { + x: 0, + y: 0 + }, + c = this.element.getScrollSize(), + f = { + x: 0, + y: 0 + }; + for (var d in this.page) { + if (this.page[d] < (this.options.area + g[d]) && a[d] != 0) { + f[d] = (this.page[d] - this.options.area - g[d]) * this.options.velocity + } else { + if (this.page[d] + this.options.area > (b[d] + g[d]) && a[d] + b[d] != c[d]) { + f[d] = (this.page[d] - b[d] + this.options.area - g[d]) * this.options.velocity + } + } + } + if (f.y || f.x) { + this.fireEvent("change", [a.x + f.x, a.y + f.y]) + } + } +}); +(function () { + var a = function (c, b) { + return (c) ? ($type(c) == "function" ? c(b) : b.get(c)) : "" + }; + this.Tips = new Class({ + Implements: [Events, Options], + options: { + onShow: function () { + this.tip.setStyle("display", "block") + }, + onHide: function () { + this.tip.setStyle("display", "none") + }, + title: "title", + text: function (b) { + return b.get("rel") || b.get("href") + }, + showDelay: 100, + hideDelay: 100, + className: "tip-wrap", + offset: { + x: 16, + y: 16 + }, + windowPadding: { + x: 0, + y: 0 + }, + fixed: false + }, + initialize: function () { + var b = Array.link(arguments, { + options: Object.type, + elements: $defined + }); + this.setOptions(b.options); + if (b.elements) { + this.attach(b.elements) + } + this.container = new Element("div", { + "class": "tip" + }) + }, + toElement: function () { + if (this.tip) { + return this.tip + } + return this.tip = new Element("div", { + "class": this.options.className, + styles: { + position: "absolute", + top: 0, + left: 0 + } + }).adopt(new Element("div", { + "class": "tip-top" + }), this.container, new Element("div", { + "class": "tip-bottom" + })).inject(document.body) + }, + attach: function (b) { + $$(b).each(function (d) { + var g = a(this.options.title, d), + f = a(this.options.text, d); + d.erase("title").store("tip:native", g).retrieve("tip:title", g); + d.retrieve("tip:text", f); + this.fireEvent("attach", [d]); + var c = ["enter", "leave"]; + if (!this.options.fixed) { + c.push("move") + } + c.each(function (i) { + var h = d.retrieve("tip:" + i); + if (!h) { + h = this["element" + i.capitalize()].bindWithEvent(this, d) + } + d.store("tip:" + i, h).addEvent("mouse" + i, h) + }, this) + }, this); + return this + }, + detach: function (b) { + $$(b).each(function (d) { + ["enter", "leave", "move"].each(function (f) { + d.removeEvent("mouse" + f, d.retrieve("tip:" + f)).eliminate("tip:" + f) + }); + this.fireEvent("detach", [d]); + if (this.options.title == "title") { + var c = d.retrieve("tip:native"); + if (c) { + d.set("title", c) + } + } + }, this); + return this + }, + elementEnter: function (c, b) { + this.container.empty(); + ["title", "text"].each(function (f) { + var d = b.retrieve("tip:" + f); + if (d) { + this.fill(new Element("div", { + "class": "tip-" + f + }).inject(this.container), d) + } + }, this); + $clear(this.timer); + this.timer = (function () { + this.show(this, b); + this.position((this.options.fixed) ? { + page: b.getPosition() + } : c) + }).delay(this.options.showDelay, this) + }, + elementLeave: function (c, b) { + $clear(this.timer); + this.timer = this.hide.delay(this.options.hideDelay, this, b); + this.fireForParent(c, b) + }, + fireForParent: function (c, b) { + b = b.getParent(); + if (!b || b == document.body) { + return + } + if (b.retrieve("tip:enter")) { + b.fireEvent("mouseenter", c) + } else { + this.fireForParent(c, b) + } + }, + elementMove: function (c, b) { + this.position(c) + }, + position: function (f) { + if (!this.tip) { + document.id(this) + } + var c = window.getSize(), + b = window.getScroll(), + g = { + x: this.tip.offsetWidth, + y: this.tip.offsetHeight + }, + d = { + x: "left", + y: "top" + }, + h = {}; + for (var i in d) { + h[d[i]] = f.page[i] + this.options.offset[i]; + if ((h[d[i]] + g[i] - b[i]) > c[i] - this.options.windowPadding[i]) { + h[d[i]] = f.page[i] - this.options.offset[i] - g[i] + } + } + this.tip.setStyles(h) + }, + fill: function (b, c) { + if (typeof c == "string") { + b.set("html", c) + } else { + b.adopt(c) + } + }, + show: function (b) { + if (!this.tip) { + document.id(this) + } + this.fireEvent("show", [this.tip, b]) + }, + hide: function (b) { + if (!this.tip) { + document.id(this) + } + this.fireEvent("hide", [this.tip, b]) + } + }) +})(); +window.$w = function (a) { + return $A(String(a).split(" ")) +}; + +function $clone(a) { + if (a && a.$family && a.$family.name == "array") { + return a + } + return $merge(a, {}) +} +Function.implement({ + wrap: function (b) { + var a = this; + return function () { + return b.apply(this, [a.bind(this)].concat($A(arguments))) + } + } +}); +if (JSON.stringify) { + JSON.encode = JSON.encode.wrap(function (b, c) { + if (typeof c == "undefined") { + c = null + } + var a = JSON.stringify(c); + return a + }); + delete(Hash.prototype.toJSON); + delete(Array.prototype.toJSON); + delete(String.prototype.toJSON); + delete(Number.prototype.toJSON) +} +if (JSON.parse) { + JSON.decode = JSON.decode.wrap(function (b, a, c) { + if (typeof a == "undefined" || a === null) { + return null + } + return JSON.parse(a) + }) +} +$extend(Object, { + toHTML: function (a) { + return a && a.toHTML ? a.toHTML() : String.interpret(a) + } +}); +$extend(String, { + interpret: function (a) { + return a == null ? "" : String(a) + } +}); +Element._getContentFromAnonymousElement = function (c, b) { + var d = new Element("div"), + a = Element._insertionTranslations.tags[c]; + if (a) { + d.innerHTML = a[0] + b + a[1]; + a[2].times(function () { + d = d.firstChild + }) + } else { + d.innerHTML = b + } + return $A(d.childNodes) +}; +Array.implement({ + find: function (d, c) { + var a; + var b = d; + if (c) { + b = b.bind(c) + } + this.some(function (g, f, h) { + if (b(g, f, h)) { + a = g; + return true + } + return false + }); + return a + }, + inject: function (b, a) { + this.each(function (d, c, f) { + b = a(b, d, c, f) + }); + return b + }, + invoke: function (a) { + this.each(function (b) { + if (b && b[a]) { + b[a]() + } + }); + return this + } +}); +Element.addClass = Element.addClass.wrap(function (c, b, a) { + if ($type(a) != "array") { + a = $w(a) + } + if ($type(a) == "array") { + $each(a, function (d) { + c(d) + }) + } else { + c(a) + } + return b +}); +Element.prototype.addClass = Element.prototype.addClass.wrap(function (b, a) { + if ($type(a) != "array") { + a = $w(a) + } + if ($type(a) == "array") { + $each(a, function (c) { + b(c) + }) + } else { + b(a) + } + return this +}); +Element.removeClass = Element.removeClass.wrap(function (c, b, a) { + if ($type(a) != "array") { + a = $w(a) + } + if ($type(a) == "array") { + $each(a, function (d) { + c(d) + }) + } else { + c(a) + } + return b +}); +Element.prototype.removeClass = Element.prototype.removeClass.wrap(function (b, a) { + if ($type(a) != "array") { + a = $w(a) + } + if ($type(a) == "array") { + $each(a, function (c) { + b(c) + }) + } else { + b(a) + } + return this +}); +Element.implement({ + disableSelection: function () { + return this.setStyles({ + MozUserSelect: "none", + KhtmlUserSelect: "none" + }).setProperty("unselectable", "on") + }, + down: function (a) { + return this.getElement(a) + }, + getSelectionEnd: function () { + if (this.createTextRange) { + var a = document.selection.createRange().duplicate(); + a.moveStart("character", -this.value.length); + return a.text.length + } + return this.selectionEnd + }, + getSelectionStart: function () { + if (this.createTextRange) { + var a = document.selection.createRange().duplicate(); + a.moveEnd("character", this.value.length); + if (a.text == "") { + return this.value.length + } + return this.value.lastIndexOf(a.text) + } + return this.selectionStart + }, + insert: function (f) { + var c = $(this); + if (typeof f == "string" || typeof f == "number" || (f.nodeName && f.nodeType == 1) || (f && (f.toElement || f.toHTML))) { + f = { + bottom: f + } + } + var d, g, b, h; + for (var a in f) { + d = f[a]; + a = a.toLowerCase(); + g = Element._insertionTranslations[a]; + if (d && d.toElement) { + d = d.toElement() + } + if (d.nodeName && d.nodeType == 1) { + g(c, d); + continue + } + d = Object.toHTML(d); + b = ((a == "before" || a == "after") ? c.parentNode : c).tagName.toUpperCase(); + h = Element._getContentFromAnonymousElement(b, d); + if (a == "top" || a == "after") { + h.reverse() + } + h.each(function (i) { + g(c, i) + }) + } + return c + }, + next: function (a) { + return this.getNext(a) + }, + prev: function (a) { + return this.getPrevious(a) + }, + select: function (b) { + var c = this; + var a = []; + $A(arguments).each(function (d) { + var f = c.getElements(d); + if ($type(f) == "array") { + a = a.concat(f) + } + }); + return a + }, + setSize: function (b, a) { + if (b && b.$family && b.$family.name == "array") { + a = b[1]; + b = b[0] + } else { + if (typeof b == "object") { + if (typeof b.x == "number") { + a = b.y; + b = b.x + } else { + a = b.height; + b = b.width + } + } + } + return this.setStyles({ + width: b, + height: a + }) + }, + up: function (a) { + return this.getParent(a) + } +}); +Element._insertionTranslations = { + before: function (a, b) { + a.parentNode.insertBefore(b, a) + }, + top: function (a, b) { + a.insertBefore(b, a.firstChild) + }, + bottom: function (a, b) { + a.appendChild(b) + }, + after: function (a, b) { + a.parentNode.insertBefore(b, a.nextSibling) + }, + tags: { + TABLE: ["", "
    ", 1], + TBODY: ["", "
    ", 2], + TR: ["", "
    ", 3], + TD: ["
    ", "
    ", 4], + SELECT: ["", 1] + } +}; +Hash.implement({ + find: function (d, c) { + var a; + var b = d; + if (c) { + b = b.bind(c) + } + this.some(function (g, f, h) { + if (b(g, f, h)) { + a = g; + return true + } + return false + }); + return a + }, + inject: function (b, a) { + this.each(function (d, c, f) { + b = a(b, d, c, f) + }); + return b + }, + invoke: function (a) { + this.each(function (b) { + if (b[a]) { + b[a]() + } + }); + return this + }, + ksort: function (c) { + var b = this; + var a = $H({}); + this.getKeys().sort(c).each(function (d) { + a[d] = b[d] + }); + return a + }, + merge: function (a) { + return $H($merge(this.toObject(), a || {})) + }, + sort: function (a) { + return this.toArray().sort(a) + }, + toArray: function () { + var a = []; + this.each(function (b) { + a.push(b) + }); + return a + }, + toObject: function () { + var a = {}; + this.each(function (c, b) { + a[b] = c + }); + return a + } +}); +Number.implement({ + isNaN: function () { + return isNaN(this) + }, + sgn: function () { + if (this < 0) { + return -1 + } else { + if (this > 0) { + return 1 + } + } + return 0 + } +}); +String.implement({ + fromQueryString: function (b) { + var c = this; + var a = {}; + if (c.indexOf("?") != -1) { + c = c.substr(c.indexOf("?") + 1) + } + a = $H($A(c.split("&")).inject({}, function (d, f) { + f = f.split("="); + if (f.length == 2) { + d[f[0]] = f[1] + } + return d + })); + if (a && a.toObject && b) { + a = a.toObject() + } + return a + }, + leftPad: function (b, c) { + var a = new String(this); + if (!c) { + c = " " + } + while (a.length < b) { + a = c + a + } + return a.toString() + }, + stripTags: function () { + return this.replace(/<\/?[^>]+>/gi, "") + }, + substituteWithoutReplacingUndefinedKeys: function (a, b) { + return this.replace(b || (/\\?\{([^{}]+)\}/g), function (d, c) { + if (d.charAt(0) == "\\") { + return d.slice(1) + } + return (a[c] != undefined) ? a[c] : "{" + c + "}" + }) + }, + unescapeHtml: function () { + var b = new Element("div"); + b.innerHTML = this.stripTags(); + if (!b.childNodes[0]) { + return "" + } + if (b.childNodes.length > 1) { + var a = ""; + $A(b.childNodes).each(function (c) { + return a + c.nodeValue + }); + return a + } else { + return b.childNodes[0].nodeValue + } + } +}); +Element.NativeEvents = $extend(Element.NativeEvents, { + touchstart: 2, + touchend: 2, + touchmove: 2, + touchcancel: 2, + gesturechange: 2, + gestureend: 2 +}); +Browser.Engines.isChrome = function () { + return Browser.Engine.webkit && navigator.userAgent.toLowerCase().indexOf("chrome") != -1 +}; +if (Browser.Engine.trident) { + Element.implement({ + insertAtCursor: function (b, a) { + var d = this.getSelectedRange(); + if (d.start == 0 && d.end == 0) { + this.focus(); + sel = document.selection.createRange(); + sel.text = b; + this.focus(); + return this + } + var c = this.get("value"); + this.set("value", c.substring(0, d.start) + b + c.substring(d.end, c.length)); + if ($pick(a, true)) { + this.selectRange(d.start, d.start + b.length) + } else { + this.setCaretPosition(d.start + b.length) + } + return this + }, + insertAroundCursor: function (b, a) { + b = $extend({ + before: "", + defaultMiddle: "", + after: "" + }, b); + var c = this.getSelectedText() || b.defaultMiddle; + var h = this.getSelectedRange(); + if (h.start == 0 && h.end == 0) { + this.focus(); + sel = document.selection.createRange(); + sel.text = b.before + b.after; + this.focus(); + return this + } + var g = this.get("value"); + if (h.start == h.end) { + this.set("value", g.substring(0, h.start) + b.before + c + b.after + g.substring(h.end, g.length)); + this.selectRange(h.start + b.before.length, h.end + b.before.length + c.length) + } else { + var d = g.substring(h.start, h.end); + this.set("value", g.substring(0, h.start) + b.before + d + b.after + g.substring(h.end, g.length)); + var f = h.start + b.before.length; + if ($pick(a, true)) { + this.selectRange(f, f + d.length) + } else { + this.setCaretPosition(f + g.length) + } + } + return this + } + }) +} +window.Travian = { + applicationId: "travian", + emptyFunction: function () {}, + $d: function (b) { + if (Browser.Engine.gecko) { + console.info(b) + } else { + if (Browser.Engine.webkit) { + console.log(b) + } else { + if (Browser.Engine.presto) { + opera.postError(b) + } else { + if (Browser.Engine.trident && window.console) { + if (typeof b == "object") { + console.log(JSON.encode(b)) + } else { + console.log(b) + } + } else { + if (!$("travian_console")) { + var a = new Element("div", { + id: "travian_console", + styles: { + position: "absolute", + left: 0, + height: 150, + width: "100%", + bottom: 0, + zIndex: 10000, + overflow: "auto", + overflowX: "hidden", + overflowY: "auto", + borderTop: "1px solid #A06060", + backgroundColor: "#FFD0D0", + fontSize: "10px", + fontFamily: "tahoma,arial,helvetica,sans-serif" + } + }); + (new Element("div", { + html: "Console", + styles: { + fontWeight: "bold", + padding: 1, + marginBottom: 2, + borderBottom: "1px solid #858484" + } + })).inject(a, "bottom"); + a.inject(document.body, "bottom") + }(new Element("span", { + html: b + "
    " + })).inject($("travian_console"), "bottom") + } + } + } + } + }, + ajax: function (a) { + a = a || {}; + var b = { + onRequest: a.onRequest || Travian.emptyFunction, + onComplete: a.onComplete || Travian.emptyFunction, + onCancel: a.onCancel || Travian.emptyFunction, + onSuccess: a.onSuccess || Travian.emptyFunction, + onFailure: a.onFailure || Travian.emptyFunction, + onException: a.onException || Travian.emptyFunction + }; + if (!a.url) { + a.url = "ajax.php" + } + if (a.data && a.data.cmd) { + a.url = a.url + (a.url.indexOf("?") == -1 ? "?" : "&") + "cmd=" + a.data.cmd + } + return new Request($merge(a, { + method: "post", + encoding: "utf-8", + evalResponse: false, + evalScripts: false, + headers: { + "X-Request": "JSON" + }, + onRequest: function () { + b.onRequest(this) + }, + onComplete: function () { + if (!this.response.json) { + this.response.json = JSON.decode(this.response.text) + } + b.onComplete(this.response.json.data) + }, + onCancel: function () { + b.onCancel(this) + }, + onSuccess: function () { + if (!this.response.json) { + this.response.json = JSON.decode(this.response.text) + } + if (this.response.json.error) { + if (b.onFailure(this.response.json.data, this.response.json.error) !== false) { + if (this.response.json.errorMsg == null) { + this.response.json.errorMsg = "Ajax Request error and no text. That is not so good." + } + this.response.json.errorMsg.dialog() + } + return + } else { + if (this.response.json.reload) { + window.location.reload() + } + } + b.onSuccess(this.response.json.data) + }, + onFailure: function () { + if (!this.response.json) { + this.response.json = JSON.decode(this.response.text) + } + if (this.response.json.error) { + if (b.onFailure(this.response.json.data, this.response.json.error) !== false) { + if (this.response.json.errorMsg == null) { + this.response.json.errorMsg = "Ajax Request error and no text. That is not so good." + } + this.response.json.errorMsg.dialog() + } + return + } + b.onFailure(this.response.json.data) + }, + onException: function () { + b.onException(this) + } + })).send() + }, + getDirection: function () { + if (!this.direction) { + this.direction = $(document.body).getStyle("direction").toLowerCase() + } + return this.direction + }, + insertScript: (function () { + var a = $A([]); + var b = function (c) { + if (a.length == 0) { + $$("script[src]").each(function (d) { + a.push({ + src: d.src, + id: d.id, + defer: d.defer, + defaultURL: false + }) + }) + } + return a.find(function (d) { + return d.src == c.src + }) + }; + return function (c) { + var f = this; + if (!c) { + return + } + if (c && c.$family && c.$family.name == "array") { + return $A(c).each(function (g) { + f.insertScript(g) + }) + } + if (typeof c == "string") { + c = { + src: c + } + } + c.onLoad = c.onLoad || this.emptyFunction; + if (b(c)) { + c.onLoad(false); + return true + } + a.push(c); + var d = new Element("script", { + id: (c.id ? c.id : undefined), + src: c.src, + type: "text/javascript", + defer: (c.defer ? true : false) + }); + if (Browser.Engine.trident) { + d.onreadystatechange = function () { + if (d.readyState == "loaded" || d.readyState == "complete" || d.readyState == 4) { + c.onLoad(true) + } + } + } else { + d.onload = c.onLoad.pass(true) + } + $(document.html).getElement("head").appendChild(d); + return d + } + })(), + popup: function (b, a) { + return window.open(b, a.id || "_blank", $H(a).getKeys().inject([], function (d, c) { + if (c != "id") { + if ($type(a[c]) == "boolean") { + a[c] = a[c] ? "yes" : "no" + } + d.push(c + "=" + a[c]) + } + return d + }).join(","), true) + }, + toggleSwitch: function (b, a) { + b.toggleClass("hide"); + a.toggleClass("switchClosed"); + a.toggleClass("switchOpened"); + return this + } +}; +Travian.ajax = Travian.ajax.wrap(function (b, a) { + if (!a.url) { + a.url = "ajax.php" + } + return b(a) +}); +Travian.Main = {}; +Travian.Main.Flags = new Class({ + Implements: [Options], + currentRegion: null, + elements: { + container: null, + flagContainer: null, + flags: null, + regionContainer: null + }, + options: { + adCode: null, + container: null, + currentTld: null, + flags: null, + regions: null + }, + initialize: function (a) { + this.setOptions(a); + this.render() + }, + render: function () { + var a = this; + this.elements.container = $(this.options.container); + this.elements.flagContainer = (new Element("div", { + "class": "region_flag", + id: "flag_box" + })).inject(this.elements.container); + this.elements.regionContainer = (new Element("select", { + id: "region_select", + name: "region", + events: { + change: function (b) { + b.stop(); + a.selectRegion(a.elements.regionContainer.value) + } + } + })).inject(this.elements.container); + $each(this.options.flags, function (b, c) { + $each(b, function (f, d) { + var g = (new Element("a", { + href: f + (a.options.adCode != "" ? "?ad=" + a.options.adCode : ""), + title: d, + "class": "flagEntry " + c + })).hide().inject(a.elements.flagContainer); + (new Element("img", { + alt: d, + "class": "flag_" + d, + src: "img/x.gif" + })).inject(g); + if (a.options.currentTld == d) { + a.currentRegion = c + } + }) + }); + this.elements.flags = this.elements.flagContainer.getElements(".flagEntry"); + $each(this.options.regions, function (c, b) { + if (!a.currentRegion) { + a.currentRegion = b + }(new Element("option", { + value: b, + html: c + })).inject(a.elements.regionContainer) + }); + this.selectRegion(this.currentRegion); + return this + }, + selectRegion: function (a) { + if (!this.options.regions[a]) { + return this + } + this.currentRegion = a; + this.elements.regionContainer.value = a; + this.elements.flags.each(function (b) { + b.setStyles({ + display: b.hasClass(a) ? "inline" : "none" + }) + }); + return this + } +}); +var popupWidget = new Class({ + Implements: [Options, Events], + options: { + url: "", + pop_bg: $("overlaybg"), + pop_container: $$("popup"), + close: $("pclose"), + tour: false, + insupport: false, + anchorcheck: false + }, + allowedAnchors: new Array("tutorial", "moregames", "impressum", "spielregeln", "links", "agb", "help", "spielregeln", "serverLogin", "serverRegister"), + initialize: function (a) { + this.setOptions(a); + this.showPopup() + }, + popcontent: function () { + return $$(this.options.pop_container)[0].getChildren()[1] + }, + showPopup: function () { + var url = new URI(this.options.url); + var anchor = url.get("fragment"); + var target = anchor + ".php"; + if (url.get("query").length > 0) { + target += "?" + url.get("query") + } + if (this.allowedAnchors.indexOf(anchor) == -1) { + if (this.options.anchorcheck == false) { + target = this.options.url + } else { + return + } + } + var self = this; + var prevwindow = $$(this.options.pop_bg); + var prevcontainer = $$(this.options.pop_container); + var windowWidth = document.documentElement.clientWidth; + prevcontainer[0].setStyles({ + display: "block", + visibility: "hidden" + }); + prevcontainer[0].className = anchor; + var popupWidth = prevcontainer[0].getStyle("width").toInt(); + var left = windowWidth / 2 - popupWidth / 2; + prevwindow[0].setStyles({ + opacity: "0.7", + display: "block", + height: $(document).getScrollSize().y + }); + var scroll = $(document.body).getScroll(); + prevcontainer[0].setStyles({ + left: windowWidth / 2 - popupWidth / 2, + top: scroll.y + 100, + visibility: "visible", + display: "block" + }); + self.popcontent().set("html", '
    '); + var req = new Request.HTML({ + url: target, + evalScripts: false, + onSuccess: function (html, responseElements, responseHTML, responseJavaScript) { + self.popcontent().set("text", ""); + self.popcontent().adopt(html); + if (anchor == "tutorial") { + self.startTour() + } + if (self.options.insupport) { + self.startSupport() + } + if (responseJavaScript) { + eval(responseJavaScript) + } + }, + onFailure: function () { + self.popcontent().set("text", "The request failed.") + } + }); + req.send(); + var close = $$(this.options.close); + close.addEvent("click", function () { + self.options.pop_container[0].setStyle("display", "none"); + self.options.pop_bg.setStyle("display", "none"); + this.removeEvents() + }); + var bg = $$(this.options.pop_bg); + bg.addEvent("click", function () { + self.options.pop_container[0].setStyle("display", "none"); + self.options.pop_bg.setStyle("display", "none"); + this.removeEvents() + }) + }, + startSupport: function () { + $$(".spopcon").addEvent("click", function (a) { + a.stop(); + new popupWidget({ + pop_bg: $("overlaybg"), + pop_container: $$("#popup"), + close: $$(".pclose"), + url: this.get("href"), + tour: false, + insupport: false + }) + }) + }, + startTour: function () { + var f = $$(this.popcontent())[0].getChildren()[1].getChildren("a.prev"); + var d = $$(this.popcontent())[0].getChildren()[1].getChildren("a.next"); + var c = $$(this.popcontent())[0].getChildren()[1].getChildren("a.prevtxt"); + var a = $$(this.popcontent())[0].getChildren()[1].getChildren("a.nexttxt"); + var b = this; + if (d.get("href")[0].indexOf("tutorial.php") != -1) { + d.addEvent("click", function (g) { + g.stop(); + b.getTour(d.get("href")) + }); + a.addEvent("click", function (g) { + g.stop(); + b.getTour(a.get("href")) + }) + } + f.addEvent("click", function (g) { + g.stop(); + b.getTour(f.get("href")) + }); + c.addEvent("click", function (g) { + g.stop(); + b.getTour(c.get("href")) + }) + }, + getTour: function (b) { + var a = this; + a.popcontent().set("html", '
    '); + var c = new Request.HTML({ + url: b, + evalScripts: false, + onSuccess: function (d) { + a.popcontent().set("text", ""); + a.popcontent().adopt(d); + a.startTour() + }, + onFailure: function () { + a.popcontent().set("text", "The request failed.") + } + }); + c.send() + } +}); +var sliderWidget = new Class({ + Implements: [Options, Events], + options: { + container: "", + preview: true, + inpreview: false, + start: 0, + head: "", + desc: "", + prev_bg: "", + prev_container: "", + prev_stage_container: "", + prev_items: "", + close: "", + pimgwidth: "", + directcall: false + }, + initialize: function (a) { + this.setOptions(a); + if (!this.options.directcall) { + this.slideshow() + } else { + this.previewstart(0) + } + }, + stage: function () { + return $$(this.options.container[0].getChildren(":nth-child(2)")) + }, + belt: function () { + return $$(this.stage()[0].getChildren(":nth-child(1)")) + }, + items: function () { + return $$(this.belt().getChildren()) + }, + item: function () { + return this.items()[0] + }, + itemlength: function () { + var b = this.item().getAttribute("width"); + if (b == null) { + b = this.item().getStyle("width").toInt() + } + if (b == 0) { + b = 520 + } + b = parseInt(b); + var c = this.item().getStyle("margin-left").toInt(); + var a = this.item().getStyle("margin-right").toInt(); + return b + c + a + }, + beltlength: function () { + var a = this.items().length * this.itemlength(); + this.belt().setStyle("width", a); + return a + }, + viewport: function () { + return this.stage()[0].getStyle("width").toInt() + }, + prevslide: function () { + return $$(this.options.container[0].getChildren("a.prev")) + }, + nextslide: function () { + return $$(this.options.container[0].getChildren("a.next")) + }, + index: function () { + return this.options.start + }, + slideshow: function () { + var g = this.beltlength(); + var b = this.itemlength(); + var f = 0; + var a = this; + var c = a.index(); + if (c == "0") { + this.prevslide().removeClass("disabled"); + this.nextslide().addClass("disabled") + } else { + if (c == this.items().length - 1) { + this.prevslide().addClass("disabled"); + this.nextslide().removeClass("disabled") + } else { + this.prevslide().removeClass("disabled"); + this.nextslide().removeClass("disabled") + } + } + if (this.options.inpreview) { + this.addHeader(c); + this.adddescription(c); + if (c != "0") { + g = g - this.itemlength() * (c + 1); + b = b + this.itemlength() * (c - 1); + f = b - this.itemlength(); + var d = new Fx.Morph(a.belt()[0], { + duration: "normal", + transition: "sine:in:out" + }); + d.start({ + left: "-" + b + "px" + }) + } else { + a.belt()[0].setStyle("left", 0) + } + } + this.prevslide().addEvent("click", function () { + if (a.options.inpreview) { + c = c + 1; + a.addHeader(c); + a.adddescription(c) + } + if (a.nextslide().hasClass("disabled")) { + a.nextslide().removeClass("disabled") + } + if (g == a.beltlength()) { + b = b; + g = g - a.itemlength() + } else { + b = a.beltlength() - g + } + if (g > a.viewport()) { + var h = new Fx.Morph(a.belt()[0], { + duration: "normal", + transition: "sine:in:out" + }); + var i = {}; + if (Travian.getDirection() == "ltr") { + i.left = "-" + b + "px" + } else { + i.right = "-" + b + "px" + } + h.start(i); + g = g - a.itemlength(); + f = b - a.itemlength(); + if (g < a.viewport()) { + this.addClass("disabled") + } + } + }); + this.nextslide().addEvent("click", function () { + c = c - 1; + if (a.options.inpreview) { + a.addHeader(c); + a.adddescription(c) + } + if (a.prevslide().hasClass("disabled")) { + a.prevslide().removeClass("disabled") + } + if (f != "-" + a.itemlength()) { + var h = new Fx.Morph(a.belt()[0], { + duration: "normal", + transition: "sine:in:out" + }); + var i = {}; + if (Travian.getDirection() == "ltr") { + i.left = "-" + f + "px" + } else { + i.right = "-" + f + "px" + } + h.start(i); + f = f - a.itemlength(); + g = g + a.itemlength(); + if (f == "-" + a.itemlength()) { + this.addClass("disabled") + } + } + }); + if (this.options.preview) { + this.items().each(function (i, h) { + i.addEvent("click", function () { + a.previewstart(h) + }) + }) + } + }, + previewstart: function (b) { + var a = this; + this.options.prev_items.empty(); + $each(screenshots, function (d) { + a.addImg(d.img) + }); + var c = new sliderWidget({ + container: this.options.prev_stage_container, + preview: false, + inpreview: true, + start: b, + head: this.options.head, + desc: this.options.desc, + prev_bg: this.options.prev_bg, + prev_container: this.options.prev_container, + close: this.options.close, + pimgwidth: this.options.pimgwidth + }); + this.showPreview(c) + }, + addImg: function (b) { + var a = new Element("img", { + src: "img/x.gif", + "class": b, + width: this.options.pimgwidth, + height: 397 + }).inject(this.options.prev_items) + }, + addHeader: function (a) { + this.options.head.getElement("h3").empty().appendText(screenshots[a].hl) + }, + adddescription: function (a) { + this.options.desc.empty().appendText(screenshots[a].desc) + }, + showPreview: function (g) { + var f = $$(g.options.prev_bg); + var d = $$(g.options.prev_container); + var b = document.documentElement.clientWidth; + d[0].setStyles({ + display: "block", + visibility: "hidden" + }); + var c = d[0].getStyle("width").toInt(); + f[0].setStyles({ + opacity: "0.7", + display: "block" + }); + var a = $(document.body).getScroll(); + d[0].setStyles({ + left: b / 2 - c / 2, + top: a.y + 100, + visibility: "visible", + display: "block" + }); + var h = $(d[0]).getElement(".close"); + h.addEvent("click", function () { + f[0].setStyle("display", "none"); + d[0].setStyle("display", "none"); + g.prevslide().removeEvents(); + g.nextslide().removeEvents() + }); + f[0].addEvent("click", function () { + f[0].setStyle("display", "none"); + d[0].setStyle("display", "none"); + g.prevslide().removeEvents(); + g.nextslide().removeEvents() + }) + } +}); +var stageWidget = new Class({ + Implements: [Options, Events], + options: { + stagebg: "", + stagecon: [], + stagenav: [], + stagelink: [], + stageduration: [], + periodical: "", + currentCounter: 0, + nextCounter: 1, + numberOfStages: 3 + }, + initialize: function (a) { + this.setOptions(a); + this.stageshow(); + this.autoshow() + }, + stageshow: function () { + var a = this; + this.options.stagenav.each(function (c, b) { + c.addEvents({ + mouseenter: function () { + a.pauseshow(); + if (!this.hasClass("act" + b)) { + a.animateStage(b) + } + }, + mouseleave: function (d) { + if (d.relatedTarget != null && d.relatedTarget.className.substring() != "stage-content") { + a.autoshow() + } + } + }) + }) + }, + autoAnimateState: function () { + this.animateStage(); + clearTimeout(this.options.timeout); + var a = this.options.stageduration[this.options.currentCounter]; + this.options.timeout = this.autoAnimateState.delay(a, this) + }, + animateStage: function (a) { + $each(this.options.stagenav, function (d, c) { + d.removeClass("act" + c) + }); + $each(this.options.stagecon, function (c) { + c.removeClass("shown") + }); + $each(this.options.stagelink, function (c) { + c.removeClass("shown") + }); + if (typeof a === "undefined") { + this.options.currentCounter = this.options.nextCounter; + var b = this.options.nextCounter; + this.options.nextCounter = (this.options.nextCounter + 1) % this.options.numberOfStages + } else { + b = a; + this.options.currentCounter = b; + this.options.nextCounter = (b + 1) % this.options.numberOfStages + } + this.options.stagecon[b].setStyles({ + visibility: "hidden", + opacity: 0 + }); + this.options.stagebg.setStyles({ + visibility: "hidden", + opacity: 0 + }); + this.options.stagenav[b].addClass("act" + b).fade("in"); + this.options.stagecon[b].addClass("shown").fade("in"); + this.options.stagelink[b].addClass("shown").fade("in") + }, + autoshow: function () { + var a = this.options.stageduration[this.options.currentCounter]; + this.options.timeout = this.autoAnimateState.delay(a, this) + }, + pauseshow: function () { + clearTimeout(this.options.timeout) + } +}); +var tooltipWidget = new Class({ + Implements: [Options, Events], + options: { + tips: [], + details: [] + }, + initialize: function (a) { + this.setOptions(a); + this.tooltip() + }, + tooltip: function () { + var a = this; + this.options.tips.each(function (c, b) { + c.addEvents({ + mouseenter: function () { + if (Travian.getDirection() == "ltr") { + var g = this.offsetLeft + 85 + } else { + var g = this.offsetLeft - 275 + } + a.options.details[b].addClass("shown"); + var f = a.options.details[b].getSize(); + a.options.details[b].removeClass("shown"); + var d = this.offsetTop - f.y; + a.options.details[b].setStyles({ + position: "absolute", + left: g, + top: d, + visibility: "hidden", + opacity: 0 + }); + if (!this.hasClass("shown")) { + a.options.details[b].addClass("shown").fade("in"); + this.addClass("act" + b) + } + }, + mouseleave: function (d) { + if (d.relatedTarget.className.substring(0, 7) != "details") { + a.options.details[b].removeClass("shown"); + this.removeClass("act" + b) + } + } + }) + }); + this.options.details.each(function (c, b) { + c.addEvents({ + mouseleave: function () { + this.removeClass("shown") + } + }) + }) + } +}); +window.addEvent("domready", function () { + $$(".popcon").addEvent("click", function (c) { + c.stop(); + new popupWidget({ + pop_bg: $("overlaybg"), + pop_container: $$("#popup"), + close: $$(".pclose"), + url: this.get("href"), + tour: this.get("href") == "#tutorial" ? true : false, + insupport: this.get("href") == "#help" ? true : false + }) + }); + var b = new URI(); + var a = b.get("fragment"); + if (a && a == "screenshots") {} else { + if (a) { + new popupWidget({ + pop_bg: $("overlaybg"), + pop_container: $$("#popup"), + close: $$(".pclose"), + url: b.toString(), + tour: a == "#tutorial" ? true : false, + insupport: a == "#help" ? true : false, + anchorcheck: true + }) + } + } +}); \ No newline at end of file diff --git a/unx.js b/unx.js new file mode 100644 index 00000000..1a55b1bf --- /dev/null +++ b/unx.js @@ -0,0 +1,481 @@ +var timer=new Object();var ab=new Object();var bb=new Object();var cb=db();var eb=0;var auto_reload=1;var fb=new Object();var is_opera=window.opera!==undefined;var is_ie=document.all!==undefined&&window.opera===undefined;var is_ie6p=document.compatMode!==undefined&&document.all!==undefined&&window.opera===undefined;var is_ie7=document.documentElement!==undefined&&document.documentElement.style.maxHeight!==undefined;var is_ie6=is_ie6p&&!is_ie7;var is_ff2p=window.Iterator!==undefined;var is_ff3p=document.getElementsByClassName!==undefined;var is_ff2=is_ff2p&&!is_ff3p +function gb(){return hb('height');} +function ib(){return hb('width');} +function hb(jb){var kb=0,lb=0;if(typeof(window.innerWidth)=='number'){kb=window.innerWidth;lb=window.innerHeight;} +else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){kb=document.documentElement.clientWidth;lb=document.documentElement.clientHeight;} +else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){kb=document.body.clientWidth;lb=document.body.clientHeight;} +if(jb=='height')return lb;if(jb=='width')return kb;} +var gmwds=false;function start(){mb("l1");mb("l2");mb("l3");mb("l4");initCounter();if(typeof init_local=='function'){init_local();} +if(quest.number===null){qst_handle();} +if(gmwds){gmwd();} +} +function nb(){return new Date().getTime();} +function db(){return Math.round(nb()/1000);} +function ob(pb){p=pb.innerHTML.split(":");qb=p[0]*3600+p[1]*60+p[2]*1;return qb;} +function rb(s,sb){var tb,ub,vb;if(s>-2){tb=Math.floor(s/3600);ub=Math.floor(s/60)%60;vb=s%60;t=tb+":";if(ub<10){t+="0";} +t+=ub+":";if(vb<10){t+="0";} +t+=vb;} +else +//{t=sb?'0:00:0?':"0:00:0?";} +document.location.reload(); +return t;} +function initCounter(){for(var i=1;;i++){pb=document.getElementById("tp"+i);if(pb!=null){ab[i]=new Object();ab[i].node=pb;ab[i].counter_time=ob(pb);} +else{break;} +} +for(i=1;;i++){pb=document.getElementById("timer"+i);if(pb!=null){bb[i]=new Object();bb[i].node=pb;bb[i].counter_time=ob(pb);} +else{break;} +} +executeCounter();} +function executeCounter(){for(var i in ab){wb=db()-cb;xb=rb(ab[i].counter_time+wb);ab[i].node.innerHTML=xb;} +for(i in bb){wb=db()-cb;yb=bb[i].counter_time-wb; +if(eb==0&&yb<1){eb=1;if(auto_reload==1){setTimeout("document.location.reload()",1000);} +else if(auto_reload==0){setTimeout("mreload()",1000);} +} +else{} +xb=rb(yb);bb[i].node.innerHTML=xb;} +if(eb==0){window.setTimeout("executeCounter()",1000);} +} +function mb(zb){pb=document.getElementById(zb);if(pb!=null){fb[zb]=new Object();var $b=pb.innerHTML.match(/(\d+)\/(\d+)/);element=$b[0].split("/");_b=parseInt(element[0]);ac=parseInt(element[1]);bc=pb.title;if(bc!=0){cc=nb();timer[zb]=new Object();timer[zb].start=cc;timer[zb].production=bc;timer[zb].start_res=_b;timer[zb].max_res=ac;timer[zb].ms=3600000/bc;dc=100;if(timer[zb].ms=0){ec=Math.round(timer[zb].start_res+wb*(timer[zb].production/3600000));if(ec>=timer[zb].max_res){ec=timer[zb].max_res;} +else +{window.setTimeout("executeTimer('"+zb+"')",timer[zb].ms);} +fb[zb].value=ec;timer[zb].node.innerHTML=ec+'/'+timer[zb].max_res;} +} +var fc=new Array(0,0,0,0,0);function add_res(gc){hc=fb['l'+(5-gc)].value;ic=haendler*carry;fc[gc]=jc(fc[gc],hc,ic,carry);document.getElementById('r'+gc).value=fc[gc];} +function upd_res(gc,kc){hc=fb['l'+(5-gc)].value;ic=haendler*carry;if(kc){lc=hc;} +else +{lc=parseInt(document.getElementById('r'+gc).value);} +if(isNaN(lc)){lc=0;} +fc[gc]=jc(parseInt(lc),hc,ic,0);document.getElementById('r'+gc).value=fc[gc];} +function jc(mc,nc,oc,pc){qc=mc+pc;if(qc>nc){qc=nc;} +if(qc>oc){qc=oc;} +if(qc==0){qc='';} +return qc;} +function rc(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);} +if(!(x=d[n])&&d.all)x=d.all[n];for(var i=0;!x&&iMove'+''+'
    '; + pb.innerHTML=tc;uc(); + } + vc(); + if(!is_ie6&&!wc)return false; + else return true; +} +function PopupMap(i){ + if(typeof sc=='undefined'){sc='s';} + pb=document.getElementById("ce"); + if(pb!=null){ + var tc=''; + pb.innerHTML=tc;uc2(); + } + vc(); + if(!is_ie6&&!wc)return false; + else return true; +} + +function uc(){if($('drag')){return;} +$$('.popup3')[0].grab(new Element('div',{'id':'drag'} +),'top').makeDraggable({'handle':'drag'} +);if($$('body')[0].getStyle('direction').toLowerCase()=='rtl'){$$('.popup3')[0].setStyle('direction','rtl').getParent().setStyle('direction','ltr');} +} +function uc2(){ + if($('drag')){return;} + $$('.popup_map')[0].grab(new Element('div',{'id':'drag'}),'top').makeDraggable({'handle':'drag'}); + if($$('body')[0].getStyle('direction').toLowerCase()=='rtl'){ + $$('.popup_map')[0].setStyle('direction','rtl').getParent().setStyle('direction','ltr'); + } +} +function vc(){if(gb()<700||ib()<700){document.getElementById("ce").style.position='absolute';wc=true;} +else{document.getElementById("ce").style.position='fixed';wc=false;} +} +function Close(){pb=document.getElementById("ce");if(pb!=null){pb.innerHTML='';} +if(quest.anmstep!==false){quest.anmstep=false;} +} +function Allmsg(){for(var x=0;x-1){yc++;zc=dorfnamen[i];} +} +if(yc==1){document.snd.dname.value=zc;} +} +var $c=document.getElementById?1:0;var _c=document.all?1:0;var ad=(navigator.userAgent.indexOf("Mac")>-1)?1:0;var bd=(_c&&(!ad)&&(typeof(window.offscreenBuffering)!='undefined'))?1:0;var cd=bd;var dd=bd&&(window.navigator.userAgent.indexOf("SV1")!=-1);function changeOpacity(ed,opacity){if(bd){ed.style.filter='progid:DXImageTransform.Microsoft.Alpha(opacity='+(opacity*100)+')';} +else if($c){ed.style.MozOpacity=opacity;} +} + +function fd(url,gd,hd,id){ + if(hd===undefined){hd='GET';} + var jd; + if(window.XMLHttpRequest){jd=new XMLHttpRequest();} + else if(window.ActiveXObject){ + try{jd=new ActiveXObject("Msxml2.XMLHTTP");} + catch(e){ + try{jd=new ActiveXObject("Microsoft.XMLHTTP");} + catch(e){} + } + } + else{ + throw'Can not create XMLHTTP-instance'; + } + jd.onreadystatechange=function(){ + if(jd.readyState==4){ + if(jd.status==200){ + var kd=jd.getResponseHeader('Content-Type'); + kd=kd.substr(0,kd.indexOf(';')); + switch(kd){ + case'application/json':gd((jd.responseText==''?null:eval('('+jd.responseText+')')));break; + case'text/plain':case'text/html':gd(jd.responseText);break; + default:throw'Illegal content type'; + } + } + else{ + throw'An error has occurred during request'; + } + } + }; + jd.open(hd,url,true);if(hd=='POST'){ + jd.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=utf-8'); + var ld=md(id);} +else{var ld=null;} +jd.send(ld);} +function md(nd){var od='';var pd=true;for(var qd in nd){od+=(pd?'':'&')+qd+'='+window.encodeURI(nd[qd]);if(pd){pd=false;} +} +return od;} +function mreload(){param='reload=auto';url=window.location.href;if(url.indexOf(param)==-1){if(url.indexOf('?')==-1){url+='?'+param;} +else +{url+='&'+param;} +} +document.location.href=url;} +var rd={'index':0,'dir':0,'size':null,'fields':[],'cindex':0,'usealternate':false} +;var m_c=rd;var sd;var td;var ud;var vd;var wd;var xd;var yd;var zd;var $d;var _d=false;var ae;var be;var ce;var de=[];de[38]=1;de[39]=2;de[40]=3;de[37]=4;var ee={} +;var fe;var ge;function map_init(){sd=false;td=false;ud=false;vd=false;xd=0;wd=0;fe=he('karte2');ie(['i','a','t']);if(null==m_c.az){throw'm_c.az muss seitenspezifisch initialisiert werden.';} +for(var p in m_c.az){document.getElementById('ma_'+p).onclick=je;} +var ke=['mcx','mcy','x','y','map_infobox'];for(var i=0;i'+_e.dname+'';af=[text,_e.name,_e.ew,_e.ally];bf='village';} +else{af=[text_k.details];bf='default';} +} +for(var i=0;i<4;i++){ee.ibox_cells[i].innerHTML=(af[i]===undefined||af[i]==='')?'-':af[i].replace(/\&/g,"&");} +ee.map_infobox.className=bf;} +function ef(ff,gf){return((ff-1)*10)+gf +} +function hf(jf){ee.x.firstChild.nodeValue=jf.x;ee.y.firstChild.nodeValue=jf.y;} +function kf(jf){ee.mcx.value=jf.x;ee.mcy.value=jf.y;l=$$('div.cropfinder_icon a').set('href','cropfinder.php?x='+jf.x+'&y='+jf.y);} +function lf(x,y){return(400+x)+(400-y)*801+1;} +function ve(){if(mmode){zd=window.open(this.href,"map","top=100,left=25,width=1007,height=585");zd.focus();} +else{xe(true);fd('ajax.php?f=kp&z='+lf(m_c.z.x,m_c.z.y),function(mf){xe(false);ae=document.getElementsByTagName('body')[0];be=document.getElementsByTagName('html')[0];ae.parentNode.removeChild(ae);ce=document.createElement('body');ce.innerHTML=mf.lm;ce.style.backgroundColor='#ffffff';be.appendChild(ce);m_c=[];for(var qd in mf.dat.m_c){m_c[qd]=mf.dat.m_c[qd];} +m_c.fields=[];mdim=mf.dat.mdim;mmode=mf.dat.mmode;map_init();} +);} +return false;} +function we(){if(fe){window.close();} +else{mdim={'x':7,'y':7,'rad':3} +;var nf=[];for(var i=0;i400){$f-=801;} +if($f<-400){$f+=801;} +return $f;} +function _f($f){if($f>400){$f=400;} +if($f<-400){$f=-400;} +return $f;} +function ag(qf,rf){var z={} +;z.x=m_c.z.x*1;z.y=m_c.z.y*1;switch(qf){case 1:z.y+=rf;break;case 2:z.x+=rf;break;case 3:z.y-=rf;break;case 4:z.x-=rf;break;} +m_c.z.x=zf(z.x);m_c.z.y=zf(z.y);} +function bg(cg){return'ajax.php?f=k7&x='+cg.x+'&y='+cg.y+'&xx='+cg.xx+'&yy='+cg.yy;} +function map_scroll(qf,rf,dg){var cg,eg;if(sd){return false;} +if(fg()){if(td){return false;} +sd=true;gg();m_c.usealternate=false;m_c.cindex=0;if(dg!==undefined){m_c.z.x=_f(dg.x);m_c.z.y=_f(dg.y);cg=sf(m_c.z);} +else{ag(qf,rf);cg=vf(qf,rf);} +hg=bg(cg);fd(hg,ig);} +else{if(jg()){if(td){return false;} +td=true;ag(qf,rf);cg=vf(qf,rf,2);hg=bg(cg);fd(hg,ig);} +else if(kg()){ag(qf,rf);lg();gg();} +else{ag(qf,rf);} +mg(qf,rf);} +function ig(ng){var og;if(jg()){og=pg(m_c.cindex);m_c.usealternate=false;td=false;} +else{og=m_c.cindex;} +m_c.fields[og]=ng;if(fg()){if(dg!==undefined){mg(0,0,m_c.z);qg('x');qg('y');} +else{mg(qf,rf);qg(qf);} +sd=false;} +} +function jg(){return m_c.usealternate;} +function fg(){return(qf!=m_c.dir||rf==mdim.x||(rf==1&&rf!=m_c.steps)||dg!==undefined);} +function kg(){return(m_c.index==m_c.size);} +} +function rg(qf,rf){m_c.dir=qf;m_c.steps=rf;} +function gg(){m_c.index=0;} +function sg(){m_c.index++;if(m_c.index==m_c.size-2){m_c.usealternate=true;} +} +function lg(){m_c.cindex=pg(m_c.cindex);} +function mg(qf,rf,dg){var tg=document.getElementById('map_content');var ug=tg.parentNode;if(1==rf){vg(qf);wg(m_c.fields[m_c.cindex],qf,rf);qg(qf);sg();} +else if(mdim.x==rf||dg!==undefined){xg(m_c.fields[m_c.cindex]);} +if(wd==0){kf(m_c.z);} +hf(m_c.z);rg(qf,rf);} +function pg(og){return(og==0?1:0);} +function xg(ng){for(var i=0;i=quest.last||quest.altstep==9){document.getElementById('qge').innerHTML='';} +} +} +} +function ti(){var timer=document.getElementById('qst_timer');if(timer&&timer.parentNode.style.display!='none'){if(!timer.timestamp){timer.timestamp=db()+ob(timer);} +else{var ui=timer.timestamp-db();if(ui<0){timer.parentNode.style.display='none';document.getElementById('qst_reshere').style.display='block';} +else{timer.innerHTML=rb(ui);} +} +window.setTimeout(ti,1000);} +} +function qst_fhandle(){id={'val':1} +;fd(fi(),function(mf){} +,'POST',id +);qst_handle();} +function qst_handle(){if(quest.anmlock){return false;} +quest.markup=false;if(quest.anmstep===false){fd(fi(),function(mf){for(var qd in mf){quest[qd]=mf[qd];} +} +);} +hi();if(quest.ar){auto_reload=quest.ar;quest.ar=undefined;} +} +function qst_wfm(){var vi=document.getElementById('popup3');if(!quest.markup||!vi){if(!quest.anmlock){window.setTimeout('qst_wfm(true)',50);} +} +else{wi(quest);vi.innerHTML=quest.markup;uc();xi=false;if(quest.reward.finish&&window.bld){var yi=document.getElementById('building_contract');if(bld.length<2&&bld[0].gid==1){yi.innerHTML='';xi=0;} +else{for(var i in bld){if(bld[i].stufe==1&&bld[i].gid==1){yi.getElementsByTagName('table')[0].deleteRow(i);xi=i;break;} +} +} +if(xi!==false){var zi=$$('#t3 .rf'+bld[xi].aid)[0];if(zi){zi.removeClass('rf'+bld[xi].stufe);zi.addClass('rf'+bld[xi].stufe+1);} +else{$$('.f3')[0].appendChild(new Element('img',{'class':('reslevel rf'+bld[xi].aid+' level'+bld[xi].stufe),'src':'img/x.gif'} +));} +} +quest.ar=auto_reload;auto_reload=-1;} +if(quest.reward.plus){var of=document.getElementById('logo').className='plus';} +quest.markup=false;quest.msg=false;} +} +function qst_weiter(){pi();fd(fi(),function(mf){document.getElementById('popup3').innerHTML=mf.markup;var $i=document.getElementById('qgei');$i.className=mf.qgsrc;wi(mf);uc();} +);} +function pi(){document.getElementById('popup3').innerHTML='';} +function qst_enter(jf){if(jf===undefined){jf=false;} +var id;if(jf){id={'x':document.getElementById('qst_val_x').value,'y':document.getElementById('qst_val_y').value} +;} +else{id={'val':document.getElementById('qst_val').value} +;} +pi();fd(fi(),function(mf){for(var qd in mf){quest[qd]=mf[qd];} +} +,'POST',id +);qst_wfm();} +function qst_enter_coords(){qst_enter(true);} +function wi(_i){var $i=document.getElementById('qgei');if($i&&_i.qgsrc){$i.className=_i.qgsrc;} +var aj=document.getElementById('n5');if(aj&&_i.msrc){aj.className=_i.msrc;} +if(_i.cookie){var date=new Date();date.setTime(date.getTime()+300000);document.cookie='t3fw=1; expires='+date.toUTCString()+';';} +if(_i.fest&&he('dorf2')){document.getElementById('content').innerHTML+=_i.fest;} +window.setTimeout(ti,30);} +function he(bj){return window.location.href.indexOf(bj+'.php')!=-1;} +function vil_levels_toggle(){var cj=$('levels'),dj=$('lswitch');cj.toggleClass('on');dj.toggleClass('on');if(cj.hasClass('on')){document.cookie='t3l=1; expires=Wed, 1 Jan 2020 00:00:00 GMT';} +else{document.cookie='t3l=1; expires=Thu, 01-Jan-1970 00:00:01 GMT';} +} +function gmwd(){if(is_ff2&&document.getElementById("gmwi").offsetWidth<50){document.cookie="a3=2; expires=Wed, 1 Jan 2020 00:00:00 GMT";} +else{document.cookie="a3=1; expires=Wed, 1 Jan 2020 00:00:00 GMT";} +} +function gmc(){document.getElementById("gmw").style.display="none";document.cookie="a3=3; expires=Wed, 1 Jan 2020 00:00:00 GMT";} + + diff --git a/warsim.php b/warsim.php new file mode 100644 index 00000000..bd3fda4c --- /dev/null +++ b/warsim.php @@ -0,0 +1,167 @@ +pageLoadTimeStart(); +$battle->procSim($_POST); +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    +

    Combat simulator

    +
    +tribe; + include("Templates/Simulator/res_a".$tribe.".tpl"); + foreach($target as $tar) { + include("Templates/Simulator/res_d".$tar.".tpl"); + } + echo "

    Type of attack: "; + echo $form->getValue('ktyp') == 0? "Normal" : "Raid"; + echo "

    "; + if (isset($_POST['result'][3])&&isset($_POST['result'][4])){ + if ($_POST['result'][4]>$_POST['result'][3]){ + echo "Building destroid"; + }elseif ($_POST['result'][4]==0){ + echo "The building isn't destroid"; + }else{ + $demolish=$_POST['result'][4]/$_POST['result'][3]; + //$Katalife=round($_POST['result'][4]-($_POST['result'][4]*$_POST['result'][1])); + //$totallvl = round($form->getValue('kata')-($form->getValue('kata') * $demolish)); + $totallvl = round(sqrt(pow(($form->getValue('kata')+0.5),2)-($_POST['result'][4]*8))); + echo "

    Damage done by catapult: from level ".$form->getValue('kata')." to level ".$totallvl."

    "; + } + } +} +$target = isset($_POST['target'])? $_POST['target'] : array(); +$tribe = isset($_POST['mytribe'])? $_POST['mytribe'] : $session->tribe; +if(count($target) > 0) { + include("Templates/Simulator/att_".$tribe.".tpl"); + echo " + + + + + + "; + foreach($target as $tar) { + include("Templates/Simulator/def_".$tar.".tpl"); + } + include("Templates/Simulator/def_end.tpl"); + echo "
    "; +} +?> +
    + Defender +
    + + + + + + + + +
    AttackerDefenderType of attack
    +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    + +
    + +

    +
    +
    +
    + +
    +
    +
    + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    + +
    + + \ No newline at end of file