diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..3372d725 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,18 @@ +# Auto detect text files and perform LF normalization +* text=auto + + +# Files which should be always normalized +*.php text +*.js text +*.css text +*.htaccess text +*.tpl text +*.html text + +# Binaries +*.png binary +*.jpg binary +*.ico binary +*.gif binary +*.zip binary \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..d508af25 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# Windows image file caches +Thumbs.db + +# Folder config file +Desktop.ini + +# Mac crap +.DS_Store diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..a63010c1 --- /dev/null +++ b/.htaccess @@ -0,0 +1,4 @@ + + Order Deny,Allow + Deny from all + \ No newline at end of file diff --git a/AC_OETags.js b/AC_OETags.js new file mode 100644 index 00000000..a19118c0 --- /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("
"); +} \ No newline at end of file diff --git a/Admin/.htaccess b/Admin/.htaccess new file mode 100644 index 00000000..cf099105 --- /dev/null +++ b/Admin/.htaccess @@ -0,0 +1 @@ +DirectoryIndex admin.php \ No newline at end of file diff --git a/Admin/Mods/addTroops.php b/Admin/Mods/addTroops.php new file mode 100644 index 00000000..ff81a2d0 --- /dev/null +++ b/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"); + +?> \ No newline at end of file diff --git a/Admin/Mods/cp.php b/Admin/Mods/cp.php new file mode 100644 index 00000000..54c77539 --- /dev/null +++ b/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/Admin/Mods/deletemedalbyuser.php b/Admin/Mods/deletemedalbyuser.php new file mode 100644 index 00000000..82b72ed5 --- /dev/null +++ b/Admin/Mods/deletemedalbyuser.php @@ -0,0 +1,23 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + + + +$userid = $_POST['userid']; +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE userid = ".$userid.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$userid.""); +?> \ No newline at end of file diff --git a/Admin/Mods/deletemedalbyweek.php b/Admin/Mods/deletemedalbyweek.php new file mode 100644 index 00000000..76183dda --- /dev/null +++ b/Admin/Mods/deletemedalbyweek.php @@ -0,0 +1,23 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + + + +$deleteweek = $_POST['medalweek']; +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=delmedal"); +?> \ No newline at end of file diff --git a/Admin/Mods/editUser.php b/Admin/Mods/editUser.php new file mode 100644 index 00000000..a0187c64 --- /dev/null +++ b/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/Admin/Mods/gold.php b/Admin/Mods/gold.php new file mode 100644 index 00000000..a2656428 --- /dev/null +++ b/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/Admin/Mods/gold_1.php b/Admin/Mods/gold_1.php new file mode 100644 index 00000000..0f71d61a --- /dev/null +++ b/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/Admin/Mods/medals.php b/Admin/Mods/medals.php new file mode 100644 index 00000000..0a2cdbad --- /dev/null +++ b/Admin/Mods/medals.php @@ -0,0 +1,34 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$medalid = $_POST['medalid']; +$uid = $_POST['uid']; + +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE id = ".$medalid.""); + +$name = mysql_query("SELECT name FROM ".TB_PREFIX."users WHERE id= ".$uid.""); +$name = mysql_result($name, 0); + +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Deleted medal id [#".$medalid."] from the user $name ',".time().")"); + + +$deleteweek = $_POST['medalweek']; +mysql_query("DELETE FROM ".TB_PREFIX."medal WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$uid.""); +?> \ No newline at end of file diff --git a/Admin/Mods/renameVillage.php b/Admin/Mods/renameVillage.php new file mode 100644 index 00000000..7ff3c77b --- /dev/null +++ b/Admin/Mods/renameVillage.php @@ -0,0 +1,25 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$did = $_POST['did']; +$name = $_POST['villagename']; +$sql = "UPDATE ".TB_PREFIX."vdata SET name = '$name' WHERE wref = $did"; + +mysql_query($sql); + +header("Location: ../../../Admin/admin.php?p=village&did=".$did."&name=".$name.""); +?> \ No newline at end of file diff --git a/Admin/Mods/sendMessage.php b/Admin/Mods/sendMessage.php new file mode 100644 index 00000000..82ec74cb --- /dev/null +++ b/Admin/Mods/sendMessage.php @@ -0,0 +1,26 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$uid = $_POST['uid']; +$topic = $_POST['topic']; +$message = $_POST['message']; +$time = time(); + +$query = "INSERT INTO ".TB_PREFIX."mdata (target, owner, topic, message, viewed, time) VALUES ('$uid', 1, '$topic', '$message', 0, '$time')"; + +mysql_query($query); + +header("Location: ../../../Admin/admin.php?p=Newmessage&uid=".$uid."&msg=ok"); +?> \ No newline at end of file diff --git a/Admin/Templates/404.tpl b/Admin/Templates/404.tpl new file mode 100644 index 00000000..076def4b --- /dev/null +++ b/Admin/Templates/404.tpl @@ -0,0 +1,19 @@ + +
+
+

404 - File not found

+ Not Found
+

We looked 404 times already but can't find anything, Not even an X marking the spot.

+

This system is not complete yet. So the page probably does not exist.


+
+
\ No newline at end of file diff --git a/Admin/Templates/Newmessage.tpl b/Admin/Templates/Newmessage.tpl new file mode 100644 index 00000000..21f341f6 --- /dev/null +++ b/Admin/Templates/Newmessage.tpl @@ -0,0 +1,82 @@ +getUserArray($id,1); + $varray = $database->getProfileVillages($id); + $varmedal = $database->getProfileMedal($id); ?> + + + + +

Compose New Message to

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

+ +

+
+
+


+
+ Message Sent"; + } + else + { + echo ''; + } +} +else +{ + echo "

Not found. Go Back"; +}?> \ No newline at end of file diff --git a/Admin/Templates/[]inactive.tpl b/Admin/Templates/[]inactive.tpl new file mode 100644 index 00000000..14ad4f2f --- /dev/null +++ b/Admin/Templates/[]inactive.tpl @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + getUserField($active[$i]['username'],'id',1); + $varray = $database->getProfileVillages($uid); + $totalpop = 0; + foreach($varray as $vil) + { + $totalpop += $vil['pop']; + } + if($active[$i]['tribe'] == 1) + { + $tribe = "Roman"; + $img = ""; + } + else if($active[$i]['tribe'] == 2) + { + $tribe = "Teuton"; + $img = "1"; + } + else if($active[$i]['tribe'] == 3) + { + $tribe = "Gaul"; + $img = "2"; + } + echo " + + + + + + + + + "; + } + ?> + +
Inactive users
Name [access]TimeTribePopulationVillagesGold
".$active[$i]['username']." [".$active[$i]['access']."]".date("H:i:s",$active[$i]['timestamp'])."img/u/".$img."9.gif\" title=\"$tribe\" alt=\"$tribe\">".$totalpop."".count($varray)."\"Gold\" ".$active[$i]['gold']."img/a/online1.gif\">
\ No newline at end of file diff --git a/Admin/Templates/addTroops.tpl b/Admin/Templates/addTroops.tpl new file mode 100644 index 00000000..954c0d12 --- /dev/null +++ b/Admin/Templates/addTroops.tpl @@ -0,0 +1,300 @@ +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']); ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit troops
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
   Currently:
+
+
+ + +

Troops edited'; + } ?> \ No newline at end of file diff --git a/Admin/Templates/add_village.tpl b/Admin/Templates/add_village.tpl new file mode 100644 index 00000000..100a4a07 --- /dev/null +++ b/Admin/Templates/add_village.tpl @@ -0,0 +1,41 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Add Village
Coordinates (X|Y)
X:
Y:
+
\ No newline at end of file diff --git a/Admin/Templates/admin_log.tpl b/Admin/Templates/admin_log.tpl new file mode 100644 index 00000000..9879ab08 --- /dev/null +++ b/Admin/Templates/admin_log.tpl @@ -0,0 +1,55 @@ + + + + + + <?php if($_SESSION['access'] == ADMIN){ echo 'Admin Control Panel - TravianX'; } else if($_SESSION['access'] == MULTIHUNTER){ echo 'Multihunter Control Panel - TravianX'; } ?> + + + + + + + + + + + + + + + + + + + + +getAdminLog()); + $log = $database->getAdminLog(); + for($i=0;$i<$no;$i++) { + $admid = $log[$i]['user']?> + ------------------------------------
+ Log ID:
+ Admin: getUserField($admid,"username",0); + if($user == 'Multihunter') { + echo 'CONTROL PANEL'; + } else { echo ''.$user.''; } + ?>
+ Log:
+ Date:
+ + + \ No newline at end of file diff --git a/Admin/Templates/alliance.tpl b/Admin/Templates/alliance.tpl new file mode 100644 index 00000000..deb4a75a --- /dev/null +++ b/Admin/Templates/alliance.tpl @@ -0,0 +1,371 @@ +getAlliance($_GET['aid']); + $aliusers = $database->getAllMember($_GET['aid']); + if($alidata and $aliusers) + { + foreach($aliusers as $member) + { + $totalpop += $database->getVSumField($member['id'],"pop"); + } ?> + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Alliance
DetailsDescription
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + +
Tag
Name
Rank???
Points
Members
Alliance FoundergetUserField($alidata['leader'],"username",0); ?>
Alliance Positions
Position:'.$player['username'].'
'.$row['rank'].'
+ +
Capacity + $max) + { + $color = "red"; + } + else + { + $color = "blue"; + } + echo "($now/$max)"; + ?> +
» Edit Alliance
» Delete Alliance
+
+ +
+
+
+
+ +
+
+ + + + + + + + + + + + + + getVSumField($user['id'],"pop"); + $TotalVillages = $database->getProfileVillages($user['id']); + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + if($aid == $session->alliance) + { + if ((time()-600) < $user['timestamp']) + { + // 0 Min - 10 Min + echo ""; + } + elseif ((time()-86400) < $user['timestamp'] && (time()-600) > $user['timestamp']) + { + // 10 Min - 1 Days + echo ""; + } + elseif ((time()-259200) < $user['timestamp'] && (time()-86400) > $user['timestamp']) + { + // 1-3 Days + echo ""; + } + elseif ((time()-604800) < $user['timestamp'] && (time()-259200) > $user['timestamp']) + { + echo ""; + } + else + { + echo ""; + } + } + echo " "; + } + ?> + +
 PlayerPopulationVillages 
".$rank.".".$user['username']."".$TotalUserPop."".count($TotalVillages)."nownownownownow
+

+ + + + + + + + + + + + + + + '; + } + ?> + +
Alliance News
EventTime
'.$row['comment'].''.date('d:m:Y H:i', $row['date']).'
+

+ +

Not Sure this Diplomacy is correct, but I think it is

+
+ + + + + + + + + + + + img/a/del.gif\">"; } + if($row['accepted'] ==1) { $accepted = "img/a/acc.gif\">"; } + + $ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2']."")); + echo ' + + + + + '; + } + ?> + +
Alliance Diplomacy Sent
Recipient AllianceTypeAccepted
'.$ally['tag'].''.$type.''.$accepted.'
+

+ + + + + + + + + + + + + img/a/del.gif\">"; } + if($row['accepted'] ==1) { $accepted = "img/a/acc.gif\">"; } + + $ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1']."")); + echo ' + + + + + '; + } + ?> + +
Alliance Diplomacy Recieved
From AllianceTypeAccepted
'.$ally['tag'].''.$type.''.$accepted.'
+ +

+ + + + + + + + + + + + + img/a/del.gif\">"; } + if($row['accepted'] == 1) { $accepted = "img/a/acc.gif\">"; } + + $ally1 = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1']."")); + $ally2 = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2']."")); + echo ' + + + + + '; + } + ?> + +
Alliance Relationships
AllianceType
'.$ally1['tag'].' & '.$ally2['tag'].''.$type.'
+ +

+ + Back"; + } +} +?> \ No newline at end of file diff --git a/Admin/Templates/allymedals.tpl b/Admin/Templates/allymedals.tpl new file mode 100644 index 00000000..f13937a3 --- /dev/null +++ b/Admin/Templates/allymedals.tpl @@ -0,0 +1,87 @@ +getProfileMedalAlly($_GET['aid']) +?> +
+ + + + + + + + + + + + + + + + + + 0) + { + foreach($varmedal as $medal) + { + $titel="Bonus"; + switch ($medal['categorie']) + { + case "1": $titel="Attackers"; break; + case "2": $titel="Defenders"; break; + case "3": $titel="Climbers"; break; + case "4": $titel="Robbers"; break; + } + $title = $titel; + $rank = $medal['plaats']; + if($rank == '0') { $rank = "

Bonus

"; } else { $rank = $rank; } + $week = $medal['week']; + $points = $medal['points']; + if($points == '') { $points = "

Bonus

"; } else { $points = $points; } + + echo" + + + + + + + + "; + } + + $averagerank = 0; + foreach($varmedal as $medal) + { + $rank = $medal['plaats']; + if($rank > 0) + { + if(is_numeric($rank)) + { + $i = $i + 1; + $averagerank = $averagerank + $medal['plaats']; + } + else + { + $averagerank = $averagerank + 0; + } + } + } + $average = $averagerank / $i; + echo ""; + } + ?> + + +
Alliance Medals ()
CategoryRankWeekPointsMedal
This alliance has no medals yet
$title$rank$week$pointsimg/t/".$medal['img'].".jpg\"> + img/a/del.gif'); height: 12px; width: 12px;\" src=\"../img/a/x.gif\"> +
Average Rank$averageDelete All +
+ + + +
+
\ No newline at end of file diff --git a/Admin/Templates/backup/admin_menu.tpl b/Admin/Templates/backup/admin_menu.tpl new file mode 100644 index 00000000..4bae4e4f --- /dev/null +++ b/Admin/Templates/backup/admin_menu.tpl @@ -0,0 +1,7 @@ +

+ Homepage + Configuration + Search + Online players + Bug report +

\ No newline at end of file diff --git a/Admin/Templates/backup/bug_report.tpl b/Admin/Templates/backup/bug_report.tpl new file mode 100644 index 00000000..5a123867 --- /dev/null +++ b/Admin/Templates/backup/bug_report.tpl @@ -0,0 +1,39 @@ +BugReportSetViewed(); +?> + + + + + + + + BugReport(); + + if(count($bug)>0) { + for ($i = 0; $i < count($bug); $i++) { + if($bug[$i]==0){ + $del = ""; + }else{ + $del = ''; + } + $id = $i+1; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo $del; + echo ""; + } + + } + else { + echo ""; + } + ?> + +
Bug report
PlayerPageReportTimeIP
cancel
".$id.".".$database->getUserField($bug[$i]['user'],'username',0)."".$bug[$i]['page']."".$bug[$i]['report']."".date("H:i d.m.y",$bug[$i]['time'])."".$bug[$i]['ip']."
No bug report
+ diff --git a/Admin/Templates/backup/config.tpl b/Admin/Templates/backup/config.tpl new file mode 100644 index 00000000..75948858 --- /dev/null +++ b/Admin/Templates/backup/config.tpl @@ -0,0 +1,138 @@ +update_config($_POST); +$database->reload('admin.php?page=1'); +} +?> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
\ No newline at end of file diff --git a/Admin/Templates/backup/edit_ally.tpl b/Admin/Templates/backup/edit_ally.tpl new file mode 100644 index 00000000..e3ac20ba --- /dev/null +++ b/Admin/Templates/backup/edit_ally.tpl @@ -0,0 +1,47 @@ +The user ".$_SESSION['search']." does not exist.

"; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + getUsersAll(); + for ($i = 0; $i < count($users); $i++) { + + if(count($users)>0) { + $users[$i]['totalvillage'] = count($database->getVillagesID($users[$i]['id'])); + $users[$i]['totalpop'] = $database->getVSumField($users[$i]['id'],"pop"); + $users[$i]['aname'] = $database->getAllianceName($users[$i]['alliance']); + $id = $i+1; + echo ""; + + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + + echo ""; + + + } + + else { + echo ""; + } + } + ?> + +
Online players
PlayerAccessGoldEmailAlliancePopulationVillagesTribe
".$id.".".$users[$i]['username']." [".$users[$i]['id']."]".$users[$i]['access']."".$users[$i]['gold']."".$users[$i]['email']."".$users[$i]['aname']."".$users[$i]['totalpop']."".$users[$i]['totalvillage']."".$users[$i]['tribe']."
No users found
+ diff --git a/Admin/Templates/backup/edit_user.tpl b/Admin/Templates/backup/edit_user.tpl new file mode 100644 index 00000000..9b75286c --- /dev/null +++ b/Admin/Templates/backup/edit_user.tpl @@ -0,0 +1,75 @@ +getUser($uid); +if($_POST){ +$profile->updateProfil($_POST); +$database->reload('?uid='.$uid); +} + +?> +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getProfileVillages($uid); + for($i=0;$i<=count($varray)-1;$i++) { + echo ""; + } + ?> + + + +
Player
DetailsDescription
Birthday
Gender + + + +
Location
Village name

+
diff --git a/Admin/Templates/backup/intro.tpl b/Admin/Templates/backup/intro.tpl new file mode 100644 index 00000000..5484498a --- /dev/null +++ b/Admin/Templates/backup/intro.tpl @@ -0,0 +1,3 @@ +

Welcome to admin

+ +heloo \ No newline at end of file diff --git a/Admin/Templates/backup/online_players.tpl b/Admin/Templates/backup/online_players.tpl new file mode 100644 index 00000000..73302464 --- /dev/null +++ b/Admin/Templates/backup/online_players.tpl @@ -0,0 +1,61 @@ +procRankReq($_GET); +$ranking->procRank($_POST); +if(!is_numeric($_SESSION['search'])) { + echo "

The user ".$_SESSION['search']." does not exist.

"; + $search = 0; +} +else { +$search = $_SESSION['search']; +} +?> + + + + + + + + getUsersAll(); + + $holder = array(); + foreach($users as $value) { + $value['totalvillage'] = count($database->getVillagesID($value['id'])); + $value['totalpop'] = $database->getVSumField($value['id'],"pop"); + $value['aname'] = $database->getAllianceName($value['alliance']); + array_push($holder,$value); + } + $users = $multisort->sorte($holder, "'totalvillage'", false, 2, "'totalpop'", false, 2); + + + for ($i = 0; $i < count($users); $i++) { + + if(count($users)>0) { + /* + $users[$i]['totalvillage'] = count($database->getVillagesID($users[$i]['id'])); + $users[$i]['totalpop'] = $database->getVSumField($users[$i]['id'],"pop"); + $users[$i]['aname'] = $database->getAllianceName($users[$i]['alliance']); + */ + $id = $i+1; + echo ""; + + echo ""; + echo ""; + echo ""; + echo ""; + + echo ""; + + echo ""; + + } + + else { + echo ""; + } + } + ?> + +
Online players
PlayerAccessGoldEmailAlliancePopulationVillagesTribe
".$id.".".$users[$i]['username']." [".$users[$i]['id']."]".$users[$i]['access']."".$users[$i]['gold']."".$users[$i]['email']."".$users[$i]['aname']."".$users[$i]['totalpop']."".$users[$i]['totalvillage']."".$users[$i]['tribe']."
No users found
+ diff --git a/Admin/Templates/backup/results.tpl b/Admin/Templates/backup/results.tpl new file mode 100644 index 00000000..341da51e --- /dev/null +++ b/Admin/Templates/backup/results.tpl @@ -0,0 +1,104 @@ + + + + + + + + + + '; + + $holder = array(); + foreach($search as $value) { + $value['totalvillage'] = count($database->getVillagesID($value['id'])); + $value['totalpop'] = $database->getVSumField($value['id'],"pop"); + $value['aname'] = $database->getAllianceName($value['alliance']); + array_push($holder,$value); + } + $search = $multisort->sorte($holder, "'totalvillage'", false, 2, "'totalpop'", false, 2); + + + for ($i = 0; $i <= count($search)-1; $i++) { + + if($search[$i]['id']==0 or $search[$i]['id']==1){ + $del = ""; + }else{ + $del = ''; + } + + echo' + + + + + + + + + + + '.$del.' + + '; + } + } + + if($_GET['search_in']=="village"){ + + foreach ($_GET as $value=>$el) { + if($value!="sort"){ + $page .= $value."=".$el."&"; + } + } + echo ' + + + + + + + + + + + + '; + + $sort = $_GET['sort']; + if(!$sort){ + $search = $multisort->sorte($search, "'pop'", false, 2); + } + else{ + $search = $multisort->sorte($search, "'$sort'", true, 2); + } + + + for ($i = 0; $i <= count($search)-1; $i++) { + $owner = $database->getUserField($search[$i]['owner'],'username',0); + $owner_id = $database->getUserField($search[$i]['owner'],'id',0); + echo ' + + + + + + + + + + + + '; + } + } + + ?> + + +
Results in
PlayerAccessGoldEmailAlliancePopulationVillagesTribeLast activity
cancel
'.($i+1).'.'.$search[$i]['username'].''.$search[$i]['access'].''.$search[$i]['gold'].''.$search[$i]['email'].''.$search[$i]['aname'].''.$search[$i]['totalpop'].''.$search[$i]['totalvillage'].''.$search[$i]['tribe'].''.date("H:i d.m.y",$search[$i]['timestamp']).'
VillageOwner Wood Clay IronMax store CropMax CropPopCapital
'.($i+1).'.'.$search[$i]['name'].''.$owner.''.$search[$i]['wood'].''.$search[$i]['clay'].''.$search[$i]['iron'].''.$search[$i]['maxstore'].''.$search[$i]['crop'].''.$search[$i]['maxcrop'].''.$search[$i]['pop'].''.$search[$i]['capital'].'
+ diff --git a/Admin/Templates/backup/search.tpl b/Admin/Templates/backup/search.tpl new file mode 100644 index 00000000..49f03c71 --- /dev/null +++ b/Admin/Templates/backup/search.tpl @@ -0,0 +1,46 @@ +search($_GET['search'],$_GET['search_in'],$sort); +} + +?> +
+ + + + + + + + + + + + +
+Search +
+ + + + + +
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/backup/show_user.tpl b/Admin/Templates/backup/show_user.tpl new file mode 100644 index 00000000..997f66de --- /dev/null +++ b/Admin/Templates/backup/show_user.tpl @@ -0,0 +1,141 @@ +procRankReq($_GET); +$displayarray = $database->getUserArray($_GET['uid'],1); +$varray = $database->getProfileVillages($_GET['uid']); +$totalpop = 0; +foreach($varray as $vil) { + $totalpop += $vil['pop']; +} +?> +
+ + + + + + + + + + + + + + + + + + + + +
Player
DetailsDescription
+ + + + + + + + + + + + + + + + + + + + + + + + + "; + } + if(isset($displayarray['gender']) && $displayarray['gender'] != 0) { + $gender = ($displayarray['gender']== 1)? "Male" : "Female"; + echo ""; + } + if($displayarray['location'] != "") { + echo ""; + } + ?> + + + + + + + + + + + + + + + + + + +
RanksearchRank($displayarray['username'],"username"); ?>
Tribe
AlliancegetAllianceName($displayarray['alliance']); + echo "".$displayalliance.""; + } ?>
Villages
Population
Age$age
Gender".$gender."
Location".$displayarray['location']."
» Change profile
» Write message
» Delete player
» Login Log
+
+
+ +
+ +
+
+ + + + + + + + + + + + + 0){ + foreach($varray as $vil) { + + $coor = $database->getCoor($vil['wref']); + echo ""; + echo ""; + + } + } + else{ + echo ""; + } + ?> +
Villages
NameInhabitantsCoordinates
".$vil['name'].""; + if($vil['capital'] == 1) { + echo " (capital)"; + } + echo "".$vil['pop'].""; + echo "
(".$coor['x']."
|
".$coor['y'].")
No village
diff --git a/Admin/Templates/backup/show_village.tpl b/Admin/Templates/backup/show_village.tpl new file mode 100644 index 00000000..7c1c14de --- /dev/null +++ b/Admin/Templates/backup/show_village.tpl @@ -0,0 +1,136 @@ +getVillage($_GET['wref']); +?> +
+ + + + + + + + + + + + + + + + + + + + +
Village: - user ''
DetailsDescription
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Wood
Clay
Iron
Max store
Crop
Max store
Population
» Change profile
» Write message
» Delete player
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Capital
Clay
Iron
Max store
Crop
Max store
Population
+ +
+
+ + + + + + + + + + + +getProfileVillages($village['owner']); +foreach($villages as $vil){ +$coor = $database->getCoor($vil['wref']); +if($vil['capital']==1) {$cap = '(capital)';} else{$cap = "";} +echo ' + + + + + '; } +?> +
Villages:
NameInhabitantsCoordinates
'.$vil['name'].' '.$cap.''.$vil['pop'].' +
('.$coor['x'].'
+
|
+
'.$coor['y'].')
+
\ No newline at end of file diff --git a/Admin/Templates/backup/user_log_login.tpl b/Admin/Templates/backup/user_log_login.tpl new file mode 100644 index 00000000..e54af5f2 --- /dev/null +++ b/Admin/Templates/backup/user_log_login.tpl @@ -0,0 +1,35 @@ +getUser_log($_GET['log_login']); +?> + + + + + + + + 0) { + for ($i = 0; $i < count($log); $i++) { + + //$del = ''; + if(!$del){$del = '';} + $id = $i+1; + echo ""; + echo ""; + echo ""; + echo ""; + echo $del; + echo ""; + } + + } + else { + echo ""; + } + + ?> + +
User id login log
PlayerIPTime
cancel
".$id.".".$database->getUserField($log[$i]['uid'],'username',0)."".$log[$i]['ip']."".date("d.m.y H:i:s",$log[$i]['time'])."
No logs
+ diff --git a/Admin/Templates/ban.tpl b/Admin/Templates/ban.tpl new file mode 100644 index 00000000..8f1eb6a1 --- /dev/null +++ b/Admin/Templates/ban.tpl @@ -0,0 +1,128 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Ban
User ID + +
Reason + +
Duration + +

Notice: if player have ' in is name, you need to write his ID to ban him.
+
+ +search_banned(); +?> + + + + + + + + + + + + + + + getUserField($bannedUsers[$i]['uid'],'username',0)=='') + { + $name = $bannedUsers[$i]['name']; + $link = "[".$name."]"; + } + else + { + $name = $database->getUserField($bannedUsers[$i]['uid'],'username',0); + $link = ''.$name.''; + } + if($bannedUsers[$i]['end']) + { + $end = date("d.m.y H:i",$bannedUsers[$i]['end']); + } + else + { + $end = '*'; + } + echo ' + + + + + + '; + } + } + else + { + echo ''; + } + ?> + +
Bannned Players ()
UsernameLength (from/to)Reason
'.$link.''.date("d.m.y H:i",$bannedUsers[$i]['time']).' - '.$end.''.$bannedUsers[$i]['reason'].'cancel
No Players are Banned
\ No newline at end of file diff --git a/Admin/Templates/ban_msg.tpl b/Admin/Templates/ban_msg.tpl new file mode 100644 index 00000000..4818cc90 --- /dev/null +++ b/Admin/Templates/ban_msg.tpl @@ -0,0 +1,39 @@ +uid."' and active = 1"); +$ban1 = mysql_fetch_array($ban); +?> + +


+Hello ! +You have been banned due to a violation of the rules. +
+Your banning reason is . +
+ +

To ensure that you won't get banned again in the future, you shuold read the rules carefully: +

» Game rules"; ?>
+


+To continue playing contact the Multihunter and put things straight with him/her +

» Write Message"; ?>
+

+Heed the following advice when writing your message: +

+● There is always a reason for a ban. Try to think about possible reasons for this ban and put things straight with the Multihunter. +
+● Multihunters can review enormous amounts of information about accounts. Stick to the truth and do not make excuses to justify your violation of the rules. +
+● Be cooperative and insightful, this might reduce the punishment. +
+● If the Multihunter does not answer immediately, then he/she is probably not online. The issue will not be resolved any faster by sending multiple messages, especially if he/she did not even read the first one yet. +
+● If you have really been banned unjustly, try to stay calm and polite while talking to the Multihunter and telling him/her about your point of view. +

\ No newline at end of file diff --git a/Admin/Templates/cleanban.tpl b/Admin/Templates/cleanban.tpl new file mode 100644 index 00000000..c3d24bde --- /dev/null +++ b/Admin/Templates/cleanban.tpl @@ -0,0 +1,16 @@ + +
+ + Clean Banlist Data (TRUNCATE) +
+
\ No newline at end of file diff --git a/Admin/Templates/config.tpl b/Admin/Templates/config.tpl new file mode 100644 index 00000000..3e35eba4 --- /dev/null +++ b/Admin/Templates/config.tpl @@ -0,0 +1,280 @@ + +








Access Denied: You are not admin
"); +?> + + +

Made by Dzoki

+ + + + + + +
~ Server Settings ~
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableValue
Server Name
Server Started
Language
Server Speed
Map Sizex
Troop Speedx
Village Expanding Speed
Beginners Protection hour/s
Activation MailEnabled"; } else if(AUTH_EMAIL == false){ echo "Disabled"; } ?>
QuestEnabled"; } else if(QUEST == false) { echo "Disabled"; } ?>
Demolish - Level required
World Wonder - StatisticsEnabled"; } else if(WW == false) { echo "Disabled"; } ?>
Plus account duration= 86400){ echo ''.(PLUS_TIME/86400).' Days'; } else if(PLUS_TIME < 86400){ echo ''.(PLUS_TIME/3600).' Hours'; } ?>
+25% production duration= 86400){ echo ''.(PLUS_PRODUCTION/86400).' Days'; } else if(PLUS_PRODUCTION < 86400){ echo ''.(PLUS_PRODUCTION/3600).' Hours'; } ?>
+ + + + + + + +
~ Log Settings ~
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableValue
Log BuildEnabled"; } else if(LOG_BUILD == false){ echo "Disabled"; } ?>
Log TechnologyEnabled"; } else if(LOG_TECH == false){ echo "Disabled"; } ?>
Log LoginEnabled"; } else if(LOG_LOGIN == false){ echo "Disabled"; } ?>
Log GoldEnabled"; } else if(ALOG_GOLD_FIN == false){ echo "Disabled"; } ?>
Log AdminEnabled"; } else if(LOG_ADMIN == false){ echo "Disabled"; } ?>
Log WarEnabled"; } else if(LOG_WAR == false){ echo "Disabled"; } ?>
Log MarketEnabled"; } else if(LOG_MARKET == false){ echo "Disabled"; } ?>
Log IllegalEnabled"; } else if(LOG_ILLEGAL == false){ echo "Disabled"; } ?>
+ + + + + + + +
~ Newsbox Settings ~
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableValue
Newsbox 1Enabled"; } else if(NEWSBOX1 == false){ echo "Disabled"; } ?>
Newsbox 2Enabled"; } else if(NEWSBOX2 == false){ echo "Disabled"; } ?>
Newsbox 3Enabled"; } else if(NEWSBOX3 == false){ echo "Disabled"; } ?>
Home 1Enabled"; } else if(HOME1 == false){ echo "Disabled"; } ?>
Home 2Enabled"; } else if(HOME2 == false){ echo "Disabled"; } ?>
Home 3Enabled"; } else if(HOME3 == false){ echo "Disabled"; } ?>
+ + + + + + + +
~ SQL Settings ~
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
VariableValue
Hostname
DB Username
DB Password*********
DB Name
Table Prefix
DB Type
+ + + + + + + +
~ Extra Settings ~
+ + + + + + + + + + + + + + + + + + +
VariableValue
Limit MailboxEnabled"; } else if(LIMIT_MAILBOX == false){ echo "Disabled"; } ?>
Max number of mailsLimit mailbox disabled"; } ?>
Include Admin in rankEnabled"; } else if(INCLUDE_ADMIN == false){ echo "Disabled"; } ?>
+ + + + + + + +
~ Admin Information ~
+ + + + + + + + + + + + + +
VariableValue
Admin EmailNo admin email defined!"; } else if(ADMIN_EMAIL != ''){ echo ADMIN_EMAIL; } ?>
Admin NameNo admin name defined!"; } else if(ADMIN_NAME != ''){ echo ADMIN_NAME; } ?>
+ + $value ) + { + $keyname = ($keys ? $keys . "_" : "") . $key; + if( is_array( $array[$key] ) ) + define_array( $array[$key], $keyname ); + else + define( $keyname, $value ); + } +} +//define_array($array); +?> \ No newline at end of file diff --git a/Admin/Templates/delallymedal.tpl b/Admin/Templates/delallymedal.tpl new file mode 100644 index 00000000..4d04532b --- /dev/null +++ b/Admin/Templates/delallymedal.tpl @@ -0,0 +1,151 @@ + + + + + + + + + + +
Medal Information
+ + + + + + + + + 0){ + $week = mysql_result($sql, 0); + echo ""; + }else{ + echo ""; + } + ?> + +
WeekMedals
$week
$tot
0
$tot
+
+
+ + + +
+ + + + + + + +
Medal Week by Week
+ + + + + + + + + + + + + "; + } + ?> + +
WeekMedals
$newweek$totimg/a/del.gif'); height: 12px; width: 12px;\" src=\"../img/a/x.gif\">
+
+
+
+ + + + + + + +
All Medals ()
+ + + + + + + + + + + + + + '.$allyname.''; + echo" + + + + + + + + + "; + } + ?> + +
MedalBB-CodeTypePlayerRankWeekPoints
$i[#$bb]img/t/".$row['img'].".jpg\">$alliance$rank$week$points
\ No newline at end of file diff --git a/Admin/Templates/deletion.tpl b/Admin/Templates/deletion.tpl new file mode 100644 index 00000000..5176333c --- /dev/null +++ b/Admin/Templates/deletion.tpl @@ -0,0 +1,123 @@ +getUserArray($_GET['uid'],1); + $varray = $database->getProfileVillages($_GET['uid']); + if($user) + { + $totalpop = 0; + foreach($varray as $vil) + { + $totalpop += $vil['pop']; + } ?> + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Delete player
Name:Gold:
Rank:???.Population:
Villages: + + Plus: + +
Alliance:getAllianceName($user['alliance']);?>Status:-
Password:
+

NOTICE: DELETE ALL PLAYER VILLAGES BELLOW BEFORE DELETING PLAYER!

+ + + + + + + + + + getCoor($varray[$i]['wref']); + if($varray[$i]['capital']) + { + $capital = '(Capital)'; + $delLink = ''; + } + else + { + $capital = ''; + $delLink = ''; + } echo ' + + + + + + '; + } + ?> + +
NamePopulationCoordinates
'.$varray[$i]['name'].' '.$capital.''.$varray[$i]['pop'].' Check('.$coorproc['x'].'|'.$coorproc['y'].')'.$delLink.'
+
\ No newline at end of file diff --git a/Admin/Templates/delmedal.tpl b/Admin/Templates/delmedal.tpl new file mode 100644 index 00000000..5c90e3a9 --- /dev/null +++ b/Admin/Templates/delmedal.tpl @@ -0,0 +1,164 @@ + + + + + + + + + + +
Medal Information
+ + + + + + + + + 0){ + $week = mysql_result($sql, 0); + echo ""; + }else{ + echo ""; + } + ?> + +
WeekMedals
$week
$tot
0
$tot
+
+
+ + + +
+ + + + + + + +
Medal Week by Week
+ + + + + + + + + + "; + } + ?> + +
WeekMedals
$newweek$totimg/a/del.gif'); height: 12px; width: 12px;\" src=\"../img/a/x.gif\">
+
+
+
+ + + + + + + + + + + + +
All Medals ()
+ + + + + + + + + + + + + + $username"; + echo" + + + + + + + + + "; + } + ?> + +
MedalBB-CodeTypePlayerRankWeekPoints
$i[#$bb]img/t/".$row['img'].".jpg\">$player$rank$week$points
\ No newline at end of file diff --git a/Admin/Templates/editAccess.tpl b/Admin/Templates/editAccess.tpl new file mode 100644 index 00000000..22359877 --- /dev/null +++ b/Admin/Templates/editAccess.tpl @@ -0,0 +1,71 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + +
Edit 's access
+
+ Change Access +
+
+
+ +
+
+
+ +
+
+

Players Access Changed'; + } +} +else +{ + include("404.tpl"); +} +?> \ No newline at end of file diff --git a/Admin/Templates/editOverall.tpl b/Admin/Templates/editOverall.tpl new file mode 100644 index 00000000..08a8f544 --- /dev/null +++ b/Admin/Templates/editOverall.tpl @@ -0,0 +1,53 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +
+ + + + + + + + + + + + + + + + +
Edit Overall Attack and Defence Points For:
Edit Attack Points + Points +
Edit Defence Points + Points +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editPassword.tpl b/Admin/Templates/editPassword.tpl new file mode 100644 index 00000000..9bdc14a3 --- /dev/null +++ b/Admin/Templates/editPassword.tpl @@ -0,0 +1,45 @@ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Player
New Password
Password + +
+
+ +
+
+
\ No newline at end of file diff --git a/Admin/Templates/editPlus.tpl b/Admin/Templates/editPlus.tpl new file mode 100644 index 00000000..0e349bab --- /dev/null +++ b/Admin/Templates/editPlus.tpl @@ -0,0 +1,89 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +

+ + + + + +
+ + + + + + + + + +
Plus and Resource Bonuses for:
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Edit Plus & Bonus
Give Plus Bonus + Days +
Give +25% Wood + Days +
Give +25% Clay + Days +
Give +25% Iron + Days +
Give +25% Crop + Days +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editProtection.tpl b/Admin/Templates/editProtection.tpl new file mode 100644 index 00000000..f59c6dea --- /dev/null +++ b/Admin/Templates/editProtection.tpl @@ -0,0 +1,47 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +
+ + + + + + + + + + + + +
Edit Protection For:
Give Protection For + Days +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editResources.tpl b/Admin/Templates/editResources.tpl new file mode 100644 index 00000000..c51e60a5 --- /dev/null +++ b/Admin/Templates/editResources.tpl @@ -0,0 +1,80 @@ +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']); +if(isset($id)) +{ + include("search2.tpl"); ?> + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modify Resources
ResourceAmountMaximum Capacity
Wood + +
Clay + +
Iron + +
Crop + + + +
+ +

+
+
\ No newline at end of file diff --git a/Admin/Templates/editSitter.tpl b/Admin/Templates/editSitter.tpl new file mode 100644 index 00000000..c71da7ad --- /dev/null +++ b/Admin/Templates/editSitter.tpl @@ -0,0 +1,78 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +
+

To change sitters, you must use their "uid" you can find this using the search. Delete a sitter, put 0 as sitter.

+
+ + + + + + + + + + + + + + + + + +
Edit Sitters For:
Sitter 1 +
+ getUserArray($user['sit1'], 1); + if($user['sit1'] ==0) + { + echo 'No Sitter'; + } + else + { + echo ''.$sitter1['username'].''; + } + ?> +
Sitter 2 +
+ getUserArray($user['sit2'], 1); + if($user['sit2'] ==0) + { + echo 'No Sitter'; + } + else + { + echo ''.$sitter2['username'].''; + } + ?> +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editUser.tpl b/Admin/Templates/editUser.tpl new file mode 100644 index 00000000..f8c6d496 --- /dev/null +++ b/Admin/Templates/editUser.tpl @@ -0,0 +1,171 @@ +getUserArray($id,1); + $varray = $database->getProfileVillages($id); + $varmedal = $database->getProfileMedal($id); ?> + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Player
DetailsDescription
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Tribe + +
Location
E-mail
Quest
» Go back
+
+ +
+ + + + + + + + + + + + + + + + + + + + "; + } + ?> + + + + + + + + + + + + + + + + + + +
Medals
CategoryRankWeekBB-Code
".$titel."".$medal['plaats']."".$medal['week']."[#".$medal['id']."]
Beginners Protection[#0]
+
+ +
+
+

Not found. Go Back"; +} +?> \ No newline at end of file diff --git a/Admin/Templates/editVillage.tpl b/Admin/Templates/editVillage.tpl new file mode 100644 index 00000000..eb07b9be --- /dev/null +++ b/Admin/Templates/editVillage.tpl @@ -0,0 +1,205 @@ +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']); +if(isset($id)) +{ + include("search2.tpl"); ?> + +
+ + +
+ + Show Instructions +
+ + + + + + + + + + + + + procResType($i); + echo ' + + + + '; + } + ?> + + + + + +
Buildings
GIDName
'.$i.'.'.$bu.'
41.Horse Drinking Trough
+ Hide Instructions + + +
+ + + + + + + + + + + + + + + procResType($fdata['f'.$i.'t']); + } + echo ' + + + + + + '; + } + ?> + +
Modify Buildings
IDGIDNameLevel
'.$i.''.$bu.'
+ +

+
+ +
+
+
+ "; + } + ?> +
+
+
+
+ +

+ +
+

+
+ 0) + { + echo ""; + } + elseif($gid ==0) + { + echo ""; + } + } + $rp=16; + $rplevel = $fdata['f'.$rp]; + if($rplevel > 0) + { + echo ""; + } + elseif($rplevel ==0) + { + echo ""; + } + ?> +
+ 0) + { + echo "
$level
"; + } + } + if($rplevel >0) + { + echo "
".$fdata['f'.($b + 18)]."
"; + } + ?> +
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/editWeek.tpl b/Admin/Templates/editWeek.tpl new file mode 100644 index 00000000..3bc4c380 --- /dev/null +++ b/Admin/Templates/editWeek.tpl @@ -0,0 +1,59 @@ +getUserArray($id,1); +if(isset($id)) +{ + ?> +
+ + + +
+ + + + + + + + + + + + + + + + + + + + +
Edit Off, Def, Raid Points This Week For:
Edit Attack Points + Points +
Edit Defence Points + Points +
Edit Resources Raided + Points +
+
+
+
+ \ No newline at end of file diff --git a/Admin/Templates/givePlus.tpl b/Admin/Templates/givePlus.tpl new file mode 100644 index 00000000..8c9d8af1 --- /dev/null +++ b/Admin/Templates/givePlus.tpl @@ -0,0 +1,56 @@ + + +
+ + + + + + + + + + + + + + + + + + + + +
Give Everyone Free Plus
+
+ How Long? +
+
+
+ Day +
+
+
+ +
+
+
+ +
Plus Given'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/givePlusRes.tpl b/Admin/Templates/givePlusRes.tpl new file mode 100644 index 00000000..bbad0283 --- /dev/null +++ b/Admin/Templates/givePlusRes.tpl @@ -0,0 +1,95 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Give Everyone Free Res Bonus
Resource BonusDuration
+
+ Wood +
+
+
+ Day +
+
+
+ Clay +
+
+
+ Day +
+
+
+ Iron +
+
+
+ Day +
+
+
+ Crop +
+
+
+ Day +
+
+
+ +
+
+
+ +
Resource Bonuses Given'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/gold.tpl b/Admin/Templates/gold.tpl new file mode 100644 index 00000000..16e0170f --- /dev/null +++ b/Admin/Templates/gold.tpl @@ -0,0 +1,57 @@ + + +
+ + + + + + + + + + + + + + + + + + + + +
Give Everyone Free gold
Amount
+
+ How much gold? +
+
+
+   + Gold +
+
+
+ +
+
+
+ +
Gold Added'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/home.tpl b/Admin/Templates/home.tpl new file mode 100644 index 00000000..56c65dff --- /dev/null +++ b/Admin/Templates/home.tpl @@ -0,0 +1,44 @@ + + + +
+ WELCOME TO + + CONTROL PANEL +
+
+
+ + +



+ + Hello , You are logged in as: Administrator +


+ +




+ + + + Credits: Akakori & Elmar
+ Fixed, remade and new features added by Dzoki
+ Reworked by aggenkeech +
\ No newline at end of file diff --git a/Admin/Templates/login.tpl b/Admin/Templates/login.tpl new file mode 100644 index 00000000..07d48104 --- /dev/null +++ b/Admin/Templates/login.tpl @@ -0,0 +1,56 @@ + +
+ +
+ + + +
+ +

+ + + + + + + + + + + + + + + + + + + +
Server Admin Login
Username + +
Password: + +
+
+ +
+
+

+ +
\ No newline at end of file diff --git a/Admin/Templates/maintenence.tpl b/Admin/Templates/maintenence.tpl new file mode 100644 index 00000000..ce256a5d --- /dev/null +++ b/Admin/Templates/maintenence.tpl @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Server Maintenence
DescriptionExecute
Close Server for Maintenece, This will ban all players (Access 2) till you can fix bugs, or a crap version of a ceasefire lol
Bring Server Back for Maintenece, This will unban all players (By Banning Reason)
Clean Banlist Data (TRUNCATE)
\ No newline at end of file diff --git a/Admin/Templates/maintenenceBan.tpl b/Admin/Templates/maintenenceBan.tpl new file mode 100644 index 00000000..73c33d9b --- /dev/null +++ b/Admin/Templates/maintenenceBan.tpl @@ -0,0 +1,42 @@ + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Close Server (Ban Everyone)
DurationStarting
">
Default: 1 Hour
Value: Hours (0.5) for 30 mins
Default: Now +
+
\ No newline at end of file diff --git a/Admin/Templates/maintenenceResetGold.tpl b/Admin/Templates/maintenenceResetGold.tpl new file mode 100644 index 00000000..19d774b4 --- /dev/null +++ b/Admin/Templates/maintenenceResetGold.tpl @@ -0,0 +1,32 @@ + +
+ + + + + + + + + + + + +
Reset All Players Gold
+
+All Players Gold Reset'; +} +?> \ No newline at end of file diff --git a/Admin/Templates/maintenenceResetPlus.tpl b/Admin/Templates/maintenenceResetPlus.tpl new file mode 100644 index 00000000..b3b13c65 --- /dev/null +++ b/Admin/Templates/maintenenceResetPlus.tpl @@ -0,0 +1,32 @@ + +
+ + + + + + + + + + + + +
Reset All Players Resource Bonus
+
+All Players Plus Reset'; +} +?> \ No newline at end of file diff --git a/Admin/Templates/maintenenceResetPlusBonus.tpl b/Admin/Templates/maintenenceResetPlusBonus.tpl new file mode 100644 index 00000000..d19f613c --- /dev/null +++ b/Admin/Templates/maintenenceResetPlusBonus.tpl @@ -0,0 +1,32 @@ + +
+ + + + + + + + + + + + +
Reset All Players Plus
+
+All Players Plus Resource Bonus Reset'; +} +?> \ No newline at end of file diff --git a/Admin/Templates/maintenenceUnban.tpl b/Admin/Templates/maintenenceUnban.tpl new file mode 100644 index 00000000..b342cece --- /dev/null +++ b/Admin/Templates/maintenenceUnban.tpl @@ -0,0 +1,91 @@ +search_banned(); +?> +
+ + +
+ + + + + + + + + + + + + + + + +
Open Server (Unban Players by Reason)
Unban "Reason"Action
+
+ + + + + + + + + + + + + + + getUserField($bannedUsers[$i]['uid'],'username',0)=='') + { + + $name = $bannedUsers[$i]['name']; + $link = "[".$name."]"; + + } + else + { + $name = $database->getUserField($bannedUsers[$i]['uid'],'username',0); + $link = ''.$name.''; + + } + if($bannedUsers[$i]['end']) + { + $end = date("d.m.y H:i",$bannedUsers[$i]['end']); + } + else + { + $end = '*'; + } + echo ' + + + + + + '; + } + } + else + { + echo ''; + } + ?> + +
Bannned Players ()
UsernameStart Ban / End BanReason
'.$link.''.date("d.m.y H:i",$bannedUsers[$i]['time']).' - '.$end.''.$bannedUsers[$i]['reason'].'cancel
No Players are Banned
\ No newline at end of file diff --git a/Admin/Templates/map.tpl b/Admin/Templates/map.tpl new file mode 100644 index 00000000..673f44cf --- /dev/null +++ b/Admin/Templates/map.tpl @@ -0,0 +1,44 @@ + + +comming soon +
+imagemap +
+ + + +'; +$a += 25; +} +} + +function map($x,$y){ +for ($i = 0; $i <= $y; $i++) { +line($x,$i); +} +} + + +map(20,20); + + +?> + \ No newline at end of file diff --git a/Admin/Templates/message.tpl b/Admin/Templates/message.tpl new file mode 100644 index 00000000..74a5ab30 --- /dev/null +++ b/Admin/Templates/message.tpl @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + +
IGM/Reports
IGM ID
Report ID
+
+ + + diff --git a/Admin/Templates/msg.tpl b/Admin/Templates/msg.tpl new file mode 100644 index 00000000..7361c2b2 --- /dev/null +++ b/Admin/Templates/msg.tpl @@ -0,0 +1,59 @@ +getMessage($_GET['nid'],3);; +if($msg) +{ ?> + + + + + + +
+ + Send To: getUserField($msg[0]['target'],'username',0);?>
+ +
+

Messages

+
+
+ +
+
getUserField($msg[0]['owner'],'username',0);?>
+
+
+
+
+
+
+
+
+
+ +
+
+
+
\ No newline at end of file diff --git a/Admin/Templates/natarbuildingplan.tpl b/Admin/Templates/natarbuildingplan.tpl new file mode 100644 index 00000000..bbf6c7a5 --- /dev/null +++ b/Admin/Templates/natarbuildingplan.tpl @@ -0,0 +1,57 @@ + + + + +
+ + + +








+ +
Create WW Buildingplan villages?
+ +

 insert number of Villages and press 'enter'
+ + + + + + + +
WW Buidingplan villages Added'; + + } + +?> \ No newline at end of file diff --git a/Admin/Templates/natarend.tpl b/Admin/Templates/natarend.tpl new file mode 100644 index 00000000..1ef1c7e6 --- /dev/null +++ b/Admin/Templates/natarend.tpl @@ -0,0 +1,57 @@ + + + + +
+ + + +








+ +
Create World Wonder villages?
+ +

 insert number of Wonders and press 'enter'
+ + + + + + + +
World Wonders Added'; + + } + +?> \ No newline at end of file diff --git a/Admin/Templates/notregistered.tpl b/Admin/Templates/notregistered.tpl new file mode 100644 index 00000000..505e5675 --- /dev/null +++ b/Admin/Templates/notregistered.tpl @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + "; + } + ?> + +
Players Not Activated
#IDUsernameEmailTribeActivation CodeAct 2??Time
".$i."".$row['id']."".$row['username']."".$row['email']."".$tribe."".$row['act']."".$row['act2']."".date('d:m:Y H:i', $row['timestamp'])."
\ No newline at end of file diff --git a/Admin/Templates/online.tpl b/Admin/Templates/online.tpl new file mode 100644 index 00000000..035eeb39 --- /dev/null +++ b/Admin/Templates/online.tpl @@ -0,0 +1,67 @@ + +getUserActive(); +?> + + + + + + + + + + + + + + + + +getUserField($active[$i]['username'],'id',1); +$varray = $database->getProfileVillages($uid); +$totalpop = 0; +foreach($varray as $vil) { + $totalpop += $vil['pop']; +} + if($active[$i]['tribe'] == 1){ + $tribe = "Roman"; + } else if($active[$i]['tribe'] == 2){ + $tribe = "Teuton"; + } else if($active[$i]['tribe'] == 3){ + $tribe = "Gaul"; + } +echo ' + + + + + + + + +'; +} +}else{ +echo ''; + +} + +?> + +
Online users ()
Name [access]TimeTribePopVillagesGold
'.$active[$i]['username'].' ['.$active[$i]['access'].']'.date("d.m.y H:i:s",$active[$i]['timestamp']).''.$tribe.''.$totalpop.''.count($varray).'Gold '.$active[$i]['gold'].'
No online users
\ No newline at end of file diff --git a/Admin/Templates/player.tpl b/Admin/Templates/player.tpl new file mode 100644 index 00000000..6cab7342 --- /dev/null +++ b/Admin/Templates/player.tpl @@ -0,0 +1,98 @@ +getProfileMedal($id); + $user = $database->getUserArray($id,1); + $varray = $database->getProfileVillages($id); + $refreshicon = ""; + if($user) + { + $totalpop = 0; + foreach($varray as $vil) + { + $totalpop += $vil['pop']; + } + include('search2.tpl'); + echo "
"; + $deletion = false; + if($deletion) + { + include("playerdeletion.tpl"); + } + + include("playerinfo.tpl"); + include("playeradditionalinfo.tpl"); + echo "
"; + include("playermedals.tpl"); + include ("villages.tpl"); ?> + +
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + '; + } + ?> + +
Ban History ()
StartEndDurationReason
'.date('d:m:Y H:i', $row['time']).''.date('d:m:Y H:i', $row['end']).''.round((($row['end'] - $row['time']) / 3600), 2).' minutes'.$row['reason'].'
+ \ No newline at end of file diff --git a/Admin/Templates/playeradditionalinfo.tpl b/Admin/Templates/playeradditionalinfo.tpl new file mode 100644 index 00000000..7d7c3fd0 --- /dev/null +++ b/Admin/Templates/playeradditionalinfo.tpl @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "; + } + else + { + $ends = date('d.m.Y H:i',$user['protect']+3600*2); + $now = date('d.m.Y H:i'); + if($now>$ends) + { + echo "$ends"; + } + else + { + echo "NO!"; + } + } */ + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Additional Information
Access + Multihunter"; + } + else if($user['access'] == 9) + { + echo "Administrator"; + } + ?> +
Gold +
Give how much Gold? + + +
Sitter 1 + = 1) + { + echo ''.$database->getUserField($user['sit1'],"username",0).''; + } + else if($user['sit1'] == 0) + { + echo 'No Sitter'; + } + ?> +
Sitter 2 + = 1) + { + echo ''.$database->getUserField($user['sit2'],"username",0).''; + } + else if($user['sit2'] == 0) + { + echo 'No Sitter'; + } + ?> +
Beginners Protection + '; + echo " No Protection"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Protection"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /*if(date('d.m.Y H:i',$user['protect']) == '01.01.1970 00:00') + { + echo "Not enabled!
Culture Points + + +
Add how many CP? + + + +
Last Activity + +
Attack Points ("This "Week") + +
Defence Points ("This Week") + +
Resources Raided ("This Week") + +
Total Attack Points + +
Total Defence Points + +
\ No newline at end of file diff --git a/Admin/Templates/playerdeletion.tpl b/Admin/Templates/playerdeletion.tpl new file mode 100644 index 00000000..374bc4b3 --- /dev/null +++ b/Admin/Templates/playerdeletion.tpl @@ -0,0 +1,8 @@ + + + + +
+ The account will be deleted in 79:56:11 + +
\ No newline at end of file diff --git a/Admin/Templates/playerinfo.tpl b/Admin/Templates/playerinfo.tpl new file mode 100644 index 00000000..6d67043e --- /dev/null +++ b/Admin/Templates/playerinfo.tpl @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + + + + +
Player
DetailsDescription
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + */ ?> + + + + + + + + + + '; + } + else if($_SESSION['access'] == MULTIHUNTER) + { + echo ''; + } + if($_SESSION['access'] == ADMIN) + { + echo ' + + + '; + } + else if($_SESSION['access'] == MULTIHUNTER) + { + echo ''; + } + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Rank????searchRank($user['id'], "rank");*/ ?>
Tribe + +
Alliance + ".$database->getAllianceName($user['alliance']).""; + } + ?> +
Villages
Population
Age + + Not Available"; + } + ?> +
Gender + + Not Available"; + } + ?> +
Username +
+ + + +
Location + +
Password + Change +
Email + +
Send + ".$user['email'].""; + echo $link; + ?> +
Quest + + 18){ + $quesst = $quest - 3; + } + $questinfo = "$quesst - $questname"; + ?> +
+ » Edit User +
+ » Delete User +
» Ban User
» Send Message
» Edit Plus & Bonus
» Edit Sitters
» Edit Overall Off & Def
» Edit Weekly Off, Def, Raid
» User Login Log
» User Illegal Log
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/Admin/Templates/playermedals.tpl b/Admin/Templates/playermedals.tpl new file mode 100644 index 00000000..538be353 --- /dev/null +++ b/Admin/Templates/playermedals.tpl @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + 0) + { + foreach($varmedal as $medal) + { + $titel="Bonus"; + switch ($medal['categorie']) + { + case "1": $titel="Attackers"; break; + case "2": $titel="Defenders"; break; + case "3": $titel="Climbers"; break; + case "4": $titel="Robbers"; break; + case "5": $titel="Top 10 Att and Def"; break; + case "6": $titel="Top 3 Att, ".$medal['points']." in a row"; break; + case "7": $titel="Top 3 Def,".$medal['points']." in a row"; break; + case "8": $titel="Top 3 Climber, ".$medal['points']." in a row"; break; + case "9": $titel="Top 3 Robber, ".$medal['points']." in a row"; break; + case "10": $titel="Climber of the week"; break; + case "11": $titel="Top 3 Climber, ".$medal['points']." in a row"; break; + case "12": $titel="Top 10 Attacker, ".$medal['points']." in a row"; break; + } + $title = $titel; + $rank = $medal['plaats']; + if($rank == '0') { $rank = "

Bonus

"; } else { $rank = $rank; } + $week = $medal['week']; + $points = $medal['points']; + if($points == '') { $points = "

Bonus

"; } else { $points = $points; } + + echo" + + + + + + + + "; + } + + $averagerank = 0; + foreach($varmedal as $medal) + { + $rank = $medal['plaats']; + if($rank > 0) + { + if(is_numeric($rank)) + { + $i = $i + 1; + $averagerank = $averagerank + $medal['plaats']; + } + else + { + $averagerank = $averagerank + 0; + } + } + } + $average = $averagerank / $i; + echo ""; + } + ?> + + +
Player Medals ()
CategoryRankWeekPointsMedal
This player has no medals yet
$title$rank$week$pointsimg/t/".$medal['img'].".jpg\"> + img/a/del.gif'); height: 12px; width: 12px;\" src=\"../img/a/x.gif\"> +
Average Rank$averageDelete All +
+ + +
+
\ No newline at end of file diff --git a/Admin/Templates/playerplusbonus.tpl b/Admin/Templates/playerplusbonus.tpl new file mode 100644 index 00000000..836c1278 --- /dev/null +++ b/Admin/Templates/playerplusbonus.tpl @@ -0,0 +1,187 @@ +Plus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /*if(date('d.m.Y H:i',$user['plus']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['plus']+3600*2).""; + } */ + ?> + + + + Bonus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /*if(date('d.m.Y H:i',$user['b1']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['b1']+3600*2).""; + } */ + ?> + + + + Bonus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /* + if(date('d.m.Y H:i',$user['b2']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['b2']+3600*2).""; + } */ + ?> + + + + Bonus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /* + if(date('d.m.Y H:i',$user['b3']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['b3']+3600*2).""; + } */ + ?> + + + + Bonus + + '; + echo " No Bonus"; + } + else + { + if($datetime <= $now) + { + echo ''; + echo " No Bonus"; + } + else + { + $tsdiffact = $datetime - $now; + $timetoecho = $timeformat->getTimeFormat($tsdiffact); + echo ''; + echo " $timetoecho"; + } + } + /* + if(date('d.m.Y H:i',$user['b4']) == '01.01.1970 00:00') + { + echo "Not enabled!"; + } + else + { + echo "".date('d.m.Y H:i',$user['b4']+3600*2).""; + } */ + ?> + + \ No newline at end of file diff --git a/Admin/Templates/punish.tpl b/Admin/Templates/punish.tpl new file mode 100644 index 00000000..0ac9b25b --- /dev/null +++ b/Admin/Templates/punish.tpl @@ -0,0 +1,92 @@ +getUserActive(); +?> + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Punish Player
+
+ +
+
+
+ + +
+
+ Delete Troops +
+
+ + +
+
+ Empty Warehouses +
+
+ +
+
+ \ No newline at end of file diff --git a/Admin/Templates/renameVillage.tpl b/Admin/Templates/renameVillage.tpl new file mode 100644 index 00000000..3d958989 --- /dev/null +++ b/Admin/Templates/renameVillage.tpl @@ -0,0 +1,38 @@ +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']); +?> + + + + + + + + + + + +
Edit Village Name
\ No newline at end of file diff --git a/Admin/Templates/report.tpl b/Admin/Templates/report.tpl new file mode 100644 index 00000000..045b7031 --- /dev/null +++ b/Admin/Templates/report.tpl @@ -0,0 +1,31 @@ +getUserArray($rep['uid'],1); + ?> +

Under Construction

+
+ +
+ \ No newline at end of file diff --git a/Admin/Templates/report/0.tpl b/Admin/Templates/report/0.tpl new file mode 100644 index 00000000..c02ac025 --- /dev/null +++ b/Admin/Templates/report/0.tpl @@ -0,0 +1,374 @@ + + + + + + + + + + + + + + + + + + + + + +
Subject:
Sent:on
+ + + + + + + + + + "; + } + 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 +
+
+ + + + + + + + + + + + "; + } + 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]."
+ + + + + + + + + + "; + } + 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]."
+ + + + + + + + + + "; + } + 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]."
+ + + + + + + + + + "; + } + 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]."
+ + + + + + + + + + "; + } + 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/Admin/Templates/report/1.tpl b/Admin/Templates/report/1.tpl new file mode 100644 index 00000000..75444a84 --- /dev/null +++ b/Admin/Templates/report/1.tpl @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + +
Subject:
Sent:on
+ + + + + + + + + +"; +} +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
+
+ + + + + + + + + + + + + "; +} +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]."
+ + + + + + + + + + + + +"; +} +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]."
+ + + + + + + + + + + + + "; +} +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]."
+ + + + + + + + + + + + + + "; +} +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]."
+ + + + + + + + + + + + + + "; +} +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/Admin/Templates/report/2.tpl b/Admin/Templates/report/2.tpl new file mode 100644 index 00000000..b5fc5c37 --- /dev/null +++ b/Admin/Templates/report/2.tpl @@ -0,0 +1,373 @@ + + + + + + + + + + + + + + + + + + + + + +
Subject:
Sent:on
+ + + + + + + + + + + "; + } + 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 +
+
+ + + + + + + + + + + "; + } + 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 '; } else { echo"Reinforcement"; } ?>
 
Troops0".$dataarray[$i]."
Casualties0".$dataarray[$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]."
+ + + + + + + + + + "; + } + 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]."
+ + + + + + + + + + "; + } + 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]."
+ + + + + + + + + + "; + } + 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/Admin/Templates/resetPlus.tpl b/Admin/Templates/resetPlus.tpl new file mode 100644 index 00000000..e64693d5 --- /dev/null +++ b/Admin/Templates/resetPlus.tpl @@ -0,0 +1,40 @@ + + +
+ + + + + + + + + + + + +
Reset Everyone's Plus
+
+ +
+
+
+ +
Plus For Everyone Reset'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/resetPlusBonus.tpl b/Admin/Templates/resetPlusBonus.tpl new file mode 100644 index 00000000..5922434f --- /dev/null +++ b/Admin/Templates/resetPlusBonus.tpl @@ -0,0 +1,40 @@ + + +
+ + + + + + + + + + + + +
Reset Everyone's Resource Bonuses
+
+ +
+
+
+ +
Plus Resource Bonuses For Everyone Reset'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/results_alliances.tpl b/Admin/Templates/results_alliances.tpl new file mode 100644 index 00000000..75275b7a --- /dev/null +++ b/Admin/Templates/results_alliances.tpl @@ -0,0 +1,51 @@ + +search_alliance($_POST['s']); +?> + + + + + + + +
1 «Found alliances ()» 100
+ + + + + + + + + + + + + +'; +}} +else{ +echo ' + + + +'; +} +?> + +
AIDNameTagFounder
'.$result[$i]["id"].''.$result[$i]["name"].''.$result[$i]["tag"].''.$database->getUserField($result[$i]["leader"],'username',0).'
No results
diff --git a/Admin/Templates/results_email.tpl b/Admin/Templates/results_email.tpl new file mode 100644 index 00000000..10d2f3c4 --- /dev/null +++ b/Admin/Templates/results_email.tpl @@ -0,0 +1,49 @@ + +search_email($_POST['s']); +?> + + + + + + + +
1 «Found emails ()» 100
+ + + + + + + + + + + +'; +}} +else{ +echo ' + + + +'; +} +?> + +
UIDNameEmail
'.$result[$i]["id"].''.$database->getUserField($result[$i]["id"],'username',0).''.$result[$i]["email"].'
No results
diff --git a/Admin/Templates/results_ip.tpl b/Admin/Templates/results_ip.tpl new file mode 100644 index 00000000..9907236d --- /dev/null +++ b/Admin/Templates/results_ip.tpl @@ -0,0 +1,63 @@ + +search_ip($_POST['s']); +$newArray = array(); +function arr($arr,$el){ +global $newArray; +for ($i = 0; $i <= count($arr)-1; $i++) { + if(in_array($el,$newArray)){ + return false; + }else{ + array_push($newArray,$el); + return true; + } +} +} + +?> + + + + + + + +
1 «Found IPs ()» 100
+ + + + + + + + + +'; +} +} +} +else{ +echo ' + + + +'; +} +?> + +
IPName
'.$result[$i]["ip"].''.$database->getUserField($result[$i]["uid"],'username',0).'
No results
diff --git a/Admin/Templates/results_player.tpl b/Admin/Templates/results_player.tpl new file mode 100644 index 00000000..1fd44486 --- /dev/null +++ b/Admin/Templates/results_player.tpl @@ -0,0 +1,56 @@ + +search_player($_POST['s']); +?> + + + + + + + +
1 «Found player ()» 100
+ + + + + + + +getProfileVillages($result[$i]["id"]); +$totalpop = 0; +foreach($varray as $vil) { + $totalpop += $vil['pop']; +} +echo ' + + + + + + +'; +}} +else{ +echo ' + + + +'; +} +?> + +
UIDPlayerVillagesPop
'.$result[$i]["id"].''.$result[$i]["username"].''.count($varray).''.$totalpop.'
No results
diff --git a/Admin/Templates/results_villages.tpl b/Admin/Templates/results_villages.tpl new file mode 100644 index 00000000..7ab5f027 --- /dev/null +++ b/Admin/Templates/results_villages.tpl @@ -0,0 +1,91 @@ +search_village($_POST['s']); +?> + + + + + + + + + + + + + + + + + + + + + + + '; + echo ' + + + + + + + '; + } + echo ' + + + + + + + + '; + } + else + { + echo ' + + + + + + + + '; + } + ?> + +
+ Found villages () +
1 «» 100
ID + Village Name + Village Owner + Population + +
'.$result[$i]["wref"].''.$result[$i]["name"].''.$database->getUserField($result[$i]["owner"],'username',0).''.$result[$i]["pop"].''.$delLink.'
+
+ '.count($result).' Villages Found "'.$_POST['s'].'" +
+
+
+ No Villages Called '.$_POST['s'].' +
+
diff --git a/Admin/Templates/search.tpl b/Admin/Templates/search.tpl new file mode 100644 index 00000000..03bbddcc --- /dev/null +++ b/Admin/Templates/search.tpl @@ -0,0 +1,53 @@ + +
+
+ + + + + + + + + + + +
Search v1.0
+ + + + + +
+
+ +
'; + if($_GET['msg'] == 'ursdel') + { + echo "User was deleted."; + + } + echo '
'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/search2.tpl b/Admin/Templates/search2.tpl new file mode 100644 index 00000000..f9858fd9 --- /dev/null +++ b/Admin/Templates/search2.tpl @@ -0,0 +1,66 @@ +search_player($user['username']); +$numsimplayers = count($searchresults); +$id = $user['id']; +$varray = $database->getProfileVillages($id); +$totalpop = 0; +foreach($varray as $vil) +{ + $totalpop += $vil['pop']; +} +?> +
+ + + + + + +
Search ("" = Similar)
+
+
+
Player: (uid: )
+
Tribe: | Villages: | Inhabitants:
+
+ + +
+
Village: (did: )
+
Coordinates: (|) | Inhabitants: +
+
+
\ No newline at end of file diff --git a/Admin/Templates/server_info.tpl b/Admin/Templates/server_info.tpl new file mode 100644 index 00000000..76f9460b --- /dev/null +++ b/Admin/Templates/server_info.tpl @@ -0,0 +1,182 @@ + + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Player Information
Registered players
Active players
Players online +
Players Banned +
Villages settled +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Player Information
TribeRegisteredPercent
Romans
Teutons
Gauls
+ +
+ + + + + + + + + + + + + + + + + +
Server Information
TotalAverage
Gold Gold
+
+ + + + + + '; + } + echo ''; + for($i=1; $i<11; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + + echo ""; + for($i=11; $i<21; $i++) + { + echo ''; + } + echo ''; + for($i=11; $i<21; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + + echo ""; + for($i=21; $i<31; $i++) + { + echo ''; + } + echo ''; + for($i=21; $i<31; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + + echo ""; + for($i=31; $i<41; $i++) + { + echo ''; + } + echo ''; + for($i=31; $i<41; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + + echo ""; + for($i=41; $i<51; $i++) + { + echo ''; + } + echo ''; + for($i=41; $i<51; $i++) + { + $t = mysql_query("SELECT SUM(u".$i.") AS sumof FROM ".TB_PREFIX."units"); + $troop = mysql_fetch_assoc($t); + echo ''; + } + ?> + +
Troops on the Server
'.$troop['sumof'].'
'.$troop['sumof'].'
'.$troop['sumof'].'
'.$troop['sumof'].'
'.$troop['sumof'].'
+
\ No newline at end of file diff --git a/Admin/Templates/troopUpgrades.tpl b/Admin/Templates/troopUpgrades.tpl new file mode 100644 index 00000000..8bb8b385 --- /dev/null +++ b/Admin/Templates/troopUpgrades.tpl @@ -0,0 +1,45 @@ + + + + + + + + + + + + +
'; + } + for($i=1; $i<9; $i++) + { + echo ''; + } + ?> + + + + +
'.$aupgrades['$i.'].'
'; + } ##B + for($i=1; $i<9; $i++) + { + echo ''; + } + ?> + + +
Troop Upgrades
ArmouryBlacksmith
'.$bupgrades['$i'].'
+Edit Troop Upgrades \ No newline at end of file diff --git a/Admin/Templates/troops.tpl b/Admin/Templates/troops.tpl new file mode 100644 index 00000000..e98a1f2c --- /dev/null +++ b/Admin/Templates/troops.tpl @@ -0,0 +1,276 @@ + + + + + '.$units['u1'].'';} + else if($units['u1'] > 0){$u1 = ''.$units['u1'].'';} + if($units['u2'] == 0){$u2 = ''.$units['u2'].'';} + else if($units['u2'] > 0){$u2 = ''.$units['u2'].'';} + if($units['u3'] == 0){$u3 = ''.$units['u3'].'';} + else if($units['u3'] > 0){$u3 = ''.$units['u3'].'';} + if($units['u4'] == 0){$u4 = ''.$units['u4'].'';} + else if($units['u4'] > 0){$u4 = ''.$units['u4'].'';} + if($units['u5'] == 0){$u5 = ''.$units['u5'].'';} + else if($units['u5'] > 0){$u5 = ''.$units['u5'].'';} + if($units['u6'] == 0){$u6 = ''.$units['u6'].'';} + else if($units['u6'] > 0){$u6 = ''.$units['u6'].'';} + if($units['u7'] == 0){$u7 = ''.$units['u7'].'';} + else if($units['u7'] > 0){$u7 = ''.$units['u7'].'';} + if($units['u8'] == 0){$u8 = ''.$units['u8'].'';} + else if($units['u8'] > 0){$u8 = ''.$units['u8'].'';} + if($units['u9'] == 0){$u9 = ''.$units['u9'].'';} + else if($units['u9'] > 0){$u9 = ''.$units['u9'].'';} + if($units['u10'] == 0){$u10 = ''.$units['u10'].'';} + else if($units['u10'] > 0){$u10 = ''.$units['u10'].'';} + ## Teuton + if($units['u11'] == 0){$u11 = ''.$units['u11'].'';} + else if($units['u11'] > 0){$u11 = ''.$units['u11'].'';} + if($units['u12'] == 0){$u12 = ''.$units['u12'].'';} + else if($units['u12'] > 0){$u12 = ''.$units['u12'].'';} + if($units['u13'] == 0){$u13 = ''.$units['u13'].'';} + else if($units['u13'] > 0){$u13 = ''.$units['u13'].'';} + if($units['u14'] == 0){$u14 = ''.$units['u14'].'';} + else if($units['u14'] > 0){$u14 = ''.$units['u14'].'';} + if($units['u15'] == 0){$u15 = ''.$units['u15'].'';} + else if($units['u15'] > 0){$u15 = ''.$units['u15'].'';} + if($units['u16'] == 0){$u16 = ''.$units['u16'].'';} + else if($units['u16'] > 0){$u16 = ''.$units['u16'].'';} + if($units['u17'] == 0){$u17 = ''.$units['u17'].'';} + else if($units['u17'] > 0){$u17 = ''.$units['u17'].'';} + if($units['u18'] == 0){$u18 = ''.$units['u18'].'';} + else if($units['u18'] > 0){$u18 = ''.$units['u18'].'';} + if($units['u19'] == 0){$u19 = ''.$units['u19'].'';} + else if($units['u19'] > 0){$u19 = ''.$units['u19'].'';} + if($units['u20'] == 0){$u20 = ''.$units['u20'].'';} + else if($units['u20'] > 0){$u20 = ''.$units['u20'].'';} + ## Gaul + if($units['u21'] == 0){$u21 = ''.$units['u21'].'';} + else if($units['u21'] > 0){$u21 = ''.$units['u21'].'';} + if($units['u22'] == 0){$u22 = ''.$units['u22'].'';} + else if($units['u22'] > 0){$u22 = ''.$units['u22'].'';} + if($units['u23'] == 0){$u23 = ''.$units['u23'].'';} + else if($units['u23'] > 0){$u23 = ''.$units['u23'].'';} + if($units['u24'] == 0){$u24 = ''.$units['u24'].'';} + else if($units['u24'] > 0){$u24 = ''.$units['u24'].'';} + if($units['u25'] == 0){$u25 = ''.$units['u25'].'';} + else if($units['u25'] > 0){$u25 = ''.$units['u25'].'';} + if($units['u26'] == 0){$u26 = ''.$units['u26'].'';} + else if($units['u26'] > 0){$u26 = ''.$units['u26'].'';} + if($units['u27'] == 0){$u27 = ''.$units['u27'].'';} + else if($units['u27'] > 0){$u27 = ''.$units['u27'].'';} + if($units['u28'] == 0){$u28 = ''.$units['u28'].'';} + else if($units['u28'] > 0){$u28 = ''.$units['u28'].'';} + if($units['u29'] == 0){$u29 = ''.$units['u29'].'';} + else if($units['u29'] > 0){$u29 = ''.$units['u29'].'';} + if($units['u30'] == 0){$u30 = ''.$units['u30'].'';} + else if($units['u30'] > 0){$u30 = ''.$units['u30'].'';} + ## Nature + if($units['u31'] == 0){$u31 = ''.$units['u31'].'';} + else if($units['u31'] > 0){$u31 = ''.$units['u31'].'';} + if($units['u32'] == 0){$u32 = ''.$units['u32'].'';} + else if($units['u32'] > 0){$u32 = ''.$units['u32'].'';} + if($units['u33'] == 0){$u33 = ''.$units['u33'].'';} + else if($units['u33'] > 0){$u33 = ''.$units['u33'].'';} + if($units['u34'] == 0){$u34 = ''.$units['u34'].'';} + else if($units['u34'] > 0){$u34 = ''.$units['u34'].'';} + if($units['u35'] == 0){$u35 = ''.$units['u35'].'';} + else if($units['u35'] > 0){$u35 = ''.$units['u35'].'';} + if($units['u36'] == 0){$u36 = ''.$units['u36'].'';} + else if($units['u36'] > 0){$u36 = ''.$units['u36'].'';} + if($units['u37'] == 0){$u37 = ''.$units['u37'].'';} + else if($units['u37'] > 0){$u37 = ''.$units['u37'].'';} + if($units['u38'] == 0){$u38 = ''.$units['u38'].'';} + else if($units['u38'] > 0){$u38 = ''.$units['u38'].'';} + if($units['u39'] == 0){$u39 = ''.$units['u39'].'';} + else if($units['u39'] > 0){$u39 = ''.$units['u39'].'';} + ## Natars + if($units['u40'] == 0){$u40 = ''.$units['u40'].'';} + else if($units['u40'] > 0){$u40 = ''.$units['u40'].'';} + if($units['u41'] == 0){$u41 = ''.$units['u41'].'';} + else if($units['u41'] > 0){$u41 = ''.$units['u41'].'';} + if($units['u42'] == 0){$u42 = ''.$units['u42'].'';} + else if($units['u42'] > 0){$u42 = ''.$units['u42'].'';} + if($units['u43'] == 0){$u43 = ''.$units['u43'].'';} + else if($units['u43'] > 0){$u43 = ''.$units['u43'].'';} + if($units['u44'] == 0){$u44 = ''.$units['u44'].'';} + else if($units['u44'] > 0){$u44 = ''.$units['u44'].'';} + if($units['u45'] == 0){$u45 = ''.$units['u45'].'';} + else if($units['u45'] > 0){$u45 = ''.$units['u45'].'';} + if($units['u46'] == 0){$u46 = ''.$units['u46'].'';} + else if($units['u46'] > 0){$u46 = ''.$units['u46'].'';} + if($units['u47'] == 0){$u47 = ''.$units['u47'].'';} + else if($units['u47'] > 0){$u47 = ''.$units['u47'].'';} + if($units['u48'] == 0){$u48 = ''.$units['u48'].'';} + else if($units['u48'] > 0){$u48 = ''.$units['u48'].'';} + if($units['u49'] == 0){$u49 = ''.$units['u49'].'';} + else if($units['u49'] > 0){$u49 = ''.$units['u49'].'';} + if($units['u50'] == 0){$u50 = ''.$units['u50'].'';} + else if($units['u50'] > 0){$u50 = ''.$units['u50'].'';} + if($_SESSION['access'] == ADMIN) + { + if($user['tribe'] == 1) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + // TEUTON UNITS + else if($user['tribe'] == 2) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + // GAUL UNITS + else if($user['tribe'] == 3) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + // Nature UNITS + else if($user['tribe'] == 4) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + // Natar Units + else if($user['tribe'] == 5) + { + echo ' + + + + + + + + + + + + + + + + + + + + + + + + + + + '; + } + } + ?> + +
Troops in village
'.$u1.'
'.$u2.'
'.$u3.'
'.$u4.'
'.$u5.'
'.$u6.'
'.$u7.'
'.$u8.'
'.$u9.'
'.$u10.'
'.$u11.'
'.$u12.'
'.$u13.'
'.$u14.'
'.$u15.'
'.$u16.'
'.$u17.'
'.$u18.'
'.$u19.'
'.$u20.'
'.$u21.'
'.$u22.'
'.$u23.'
'.$u24.'
'.$u25.'
'.$u26.'
'.$u27.'
'.$u28.'
'.$u29.'
'.$u30.'
'.$u31.'
'.$u32.'
'.$u33.'
'.$u34.'
'.$u35.'
'.$u36.'
'.$u37.'
'.$u38.'
'.$u39.'
'.$u40.'
'.$u41.'
'.$u42.'
'.$u43.'
'.$u44.'
'.$u45.'
'.$u46.'
'.$u47.'
'.$u48.'
'.$u49.'
'.$u50.'
+ Edit Troops'; + } + + ?> \ No newline at end of file diff --git a/Admin/Templates/update.tpl b/Admin/Templates/update.tpl new file mode 100644 index 00000000..e9a78f76 --- /dev/null +++ b/Admin/Templates/update.tpl @@ -0,0 +1,76 @@ +"; + } + else + { + $zip = new ZipArchive; + if ($zip->open('update.zip') === TRUE) + { + $zip->extractTo('../'); + $zip->close(); + unlink('update.zip'); + echo "Successfully Updated to Version $dl.
";; + } + else + { + echo 'Failed to update to Version $dl.
'; + } + } + } +} +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
System Updates
Current Version :
Latest Version :
Check for Update
Update $ver) + { + echo'
'; + } + else + { + echo "No updates Avaiable"; + } + ?>
Visit Forum


+

Guys don`t forget to register at the forum to receive information of the updates



+

Advertise your Server here http://mmorpgd.tk/forum-10.html

\ No newline at end of file diff --git a/Admin/Templates/update_latest.tpl b/Admin/Templates/update_latest.tpl new file mode 100644 index 00000000..5e933b50 --- /dev/null +++ b/Admin/Templates/update_latest.tpl @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Admin/Templates/usergold.tpl b/Admin/Templates/usergold.tpl new file mode 100644 index 00000000..3776a77f --- /dev/null +++ b/Admin/Templates/usergold.tpl @@ -0,0 +1,69 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Give Free gold for specific user
Amount
+
+ How much gold? +
+
+
+   + Gold +
+
+
+ For which user (id)? +
+
+
+   +
+
+
+ +
+
+
+ +
Gold Added'; + } +?> \ No newline at end of file diff --git a/Admin/Templates/userillegallog.tpl b/Admin/Templates/userillegallog.tpl new file mode 100644 index 00000000..47085fcb --- /dev/null +++ b/Admin/Templates/userillegallog.tpl @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + '; + } + ?> + +
's Illegals Log
OffenceIDDescription
'.$i.''.$row['id'].''.$row['log'].'
\ No newline at end of file diff --git a/Admin/Templates/userlogin.tpl b/Admin/Templates/userlogin.tpl new file mode 100644 index 00000000..444ecb23 --- /dev/null +++ b/Admin/Templates/userlogin.tpl @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + '; + } + ?> + +
Login Log
Login AttemptIDIP
'.$i.''.$row['id'].''.$row['ip'].'
\ No newline at end of file diff --git a/Admin/Templates/ver.tpl b/Admin/Templates/ver.tpl new file mode 100644 index 00000000..ef857c60 --- /dev/null +++ b/Admin/Templates/ver.tpl @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/Admin/Templates/village.tpl b/Admin/Templates/village.tpl new file mode 100644 index 00000000..80e854d9 --- /dev/null +++ b/Admin/Templates/village.tpl @@ -0,0 +1,503 @@ +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']); + if($type == 1){ $typ = array(3,3,3,9); } + elseif($type == 2){ $typ = array(3,4,5,6); } + elseif($type == 3){ $typ = array(4,4,4,6); } + elseif($type == 4){ $typ = array(4,5,3,6); } + elseif($type == 5){ $typ = array(5,3,4,6); } + elseif($type == 6){ $typ = array(1,1,1,15); } + elseif($type == 7){ $typ = array(4,4,3,7); } + elseif($type == 8){ $typ = array(3,4,4,7); } + elseif($type == 9){ $typ = array(4,3,4,7); } + elseif($type == 10){ $typ = array(3,5,4,6); } + elseif($type == 11){ $typ = array(4,5,3,6); } + elseif($type == 12){ $typ = array(5,4,3,6); } + $refreshicon = ""; + $refreshiconfrm = "data:image/png;base64, + iVBORw0KGgoAAAANSUhEUgAAAAkAAAAKCAIAAADpZ+PpAAAAAXNSR0IArs4c6QAAAARnQU1BAACx + jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEQSURBVChTY/gPBkevHfRrtjMsU9bJ05+5eylE + kAGI117fKFsqYzhTNeSQY8xhP8vJJmVrK3eeP8Bw58kt03rTkHnRxdvrnKd4m83SCTtsaLZI1K7H + mGH2xpnHLh+GGPL7/7/S1dVKU2Usd6roTZBh+Pj3M0QCCL78+Fw6v1ooR1myWU2zzpjBb2Ko8xwf + 91l+gRNDLzw6f+nepcsPrl14cPXW8wcMWqVaEYdtPdZYubUHww0AMs5cusygU68UtVUr87CPWbdd + 9Ly83TcO7Lq2I7ozoXfZTAalCjWZemnlaYo2u0wVFkoJdwoyZDOZNDi//vqRwbkjac+dC827p2h3 + Gyh3S6m0a0Qszrnz6RnQWAAxV5tT/VAiNQAAAABJRU5ErkJggg=="; + class Generator + { + public function getMapCheck($wref) + { + return substr(md5($wref),5,2); + } + }; + $generator = new Generator; + if($village and $user) + { + include("search2.tpl"); ?> + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Village Information
Village owner: +
+ + + Owner(uid): +
+
Village name:
+ +
Population
Coordinates:(|)
Village ID
Field type + | '; + } + else + { + echo $typ[$i].'x '; + } + } + ?> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Resources
Resource
Warehouse Production
Lumber
???
Clay
???
Iron
???
Crop
???
+ + + + + + + + + + + + + + + + + + + '; + } + else + { + $vill = $database->getVillage($exp); + $link = ''.$vill['name'].''; + echo ' + + + + + '; + } + } + ?> + + + +
Village Expansion
VillageInhabitantsCP Production
-
-
-
'.$link.'
'.$vill['pop'].'
'.$vill['cp'].'
+ + + + + + + + + + + + + + + + getOasis($id); + $oases = count($oasisarray); + for($o=0; $o<$oases; $o++) + { + $oasiscoor = $database->getCoor($oasisarray['$o']['wref']); + $type = $oasisarray['type']; + if($type==1) { $type = ' + 25%'; } + elseif($type==2) { $type = ' + 25%'; } + elseif($type==3) { $type = ' + 25%
+ 25%'; } + elseif($type==4) { $type = ' + 25%'; } + elseif($type==5) { $type = ' + 25%'; } + elseif($type==6) { $type = ' + 25%
+ 25%'; } + elseif($type==7) { $type = ' + 25%'; } + elseif($type==8) { $type = ' + 25%'; } + elseif($type==9) { $type = ' + 25%
+ 25%'; } + elseif($type==10){ $type = ' + 25%'; } + elseif($type==11){ $type = ' + 25%'; } + elseif($type==12){ $type = ' + 50%'; } + echo ' + + + + + + + '; + } */ + ?> + getOasis($village['wref']); + $isthere = count($oasisarray); + if($isthere >0) + { + $query = "SELECT * FROM ".TB_PREFIX."odata WHERE conqured = ".$village['wref'].""; + $result = mysql_query($query); + while($row = mysql_fetch_assoc($result)) + { + $oasiswref = $row['wref']; + $oasisx = mysql_result(mysql_query("SELECT x FROM ".TB_PREFIX."wdata WHERE id = ".$oasiswref.""), 0); + $oasisy = mysql_result(mysql_query("SELECT y FROM ".TB_PREFIX."wdata WHERE id = ".$oasiswref.""), 0); + + $type = $row['type']; + if($type==1) { $type = ' + 25%'; } + elseif($type==2) { $type = ' + 25%'; } + elseif($type==3) { $type = ' + 25%
+ 25%'; } + elseif($type==4) { $type = ' + 25%'; } + elseif($type==5) { $type = ' + 25%'; } + elseif($type==6) { $type = ' + 25%
+ 25%'; } + elseif($type==7) { $type = ' + 25%'; } + elseif($type==8) { $type = ' + 25%'; } + elseif($type==9) { $type = ' + 25%
+ 25%'; } + elseif($type==10){ $type = ' + 25%'; } + elseif($type==11){ $type = ' + 25%'; } + elseif($type==12){ $type = ' + 50%'; } + echo " + + + + + + + "; + } ## + } + elseif($isthere ==0) + { + echo ''; + } + ?> + +
Oases
NameCoordinatesLoyaltyResources
'.$oasisarray['name'].'('.$oasiscoor['x'].'|'.$oasiscoor['y'].')'.$oasisarray['loyalty'].''.$type.'
".$row['name']."getMapCheck($row['wref'])."\" target=\"blank\">(".$oasisx."|".$oasisy.")".$row['loyalty']."%$type
".$row['wood']."
".$row['clay']."
".$row['iron']."
".$row['crop']."
This village has no oases
+ + + + + + + +
+
+ "; + } + ?> +
+
+ +
+
+
+

+
+ 0) + { + echo ""; + } + elseif($gid ==0) + { + echo ""; + } + } + $rp=16; + $rplevel = $fdata['f'.$rp]; + if($rplevel > 0) + { + echo ""; + } + elseif($rplevel ==0) + { + echo ""; + } + ?> +
+ 0) + { + echo "
$level
"; + } + } + if($rplevel >0) + { + echo "
".$fdata['f'.($b + 18)]."
"; + } + ?> +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + procResType($fdata['f'.$i.'t']); + } + echo ' + + + + + + + '; + } + ?> + +
Buildings
IDGIDNameLevelEdit
'.$i.''.$fdata['f'.$i.'t'].''.$bu.''.$fdata['f'.$i].'
+ +

+ + Village Build Log +
+
+ \ No newline at end of file diff --git a/Admin/Templates/villagelog.tpl b/Admin/Templates/villagelog.tpl new file mode 100644 index 00000000..df0dae5f --- /dev/null +++ b/Admin/Templates/villagelog.tpl @@ -0,0 +1,38 @@ +getVillage($id); + ?> +

+ + + + + + + + + + + + + + '; + } + ?> + +
's Build Log
#Event
'.$j.''.$row['log'].'
\ No newline at end of file diff --git a/Admin/Templates/villages.tpl b/Admin/Templates/villages.tpl new file mode 100644 index 00000000..29956b77 --- /dev/null +++ b/Admin/Templates/villages.tpl @@ -0,0 +1,59 @@ + + + + + + + + + +
Villages
+ + + + + + + + +getCoor($varray[$i]['wref']); +if($varray[$i]['capital']){ +$capital = '(Capital)'; +$delLink = ''; +}else{ +$capital = ''; + if($_SESSION['access'] == ADMIN){ +$delLink = ''; + }else if($_SESSION['access'] == MULTIHUNTER){ + $delLink = ''; + } +} +$addTroops = ' Edit Troops'; +echo ' + + + + + + + +'; +} + +?> + +
NamePopulationCoordinatesAdd Troops
'.$varray[$i]['name'].' '.$capital.''.$varray[$i]['pop'].' Recount('.$coorproc['x'].'|'.$coorproc['y'].')'.$addTroops.' '.$delLink.'
\ No newline at end of file diff --git a/Admin/admin.php b/Admin/admin.php new file mode 100644 index 00000000..ede21278 --- /dev/null +++ b/Admin/admin.php @@ -0,0 +1,216 @@ += 60): $time -= 60; $min += 1; endwhile; + while ($min >= 60): $min -= 60; $hr += 1; endwhile; + while ($hr >= 24): $hr -= 24; $days +=1; endwhile; + if ($min < 10) + { + $min = "0".$min; + } + if($time < 10) + { + $time = "0".$time; + } + return $days ." day ".$hr."h ".$min."m ".$time."s"; + } +}; +$timeformat = new timeFormatGenerator; + +include('Templates/ver.tpl'); +include('Templates/update_latest.tpl'); +$up_avl = $latest - $ver ; +?> + + + + + Admin Panel + + + + + + + + + + + +
+
+ +
+
+
+
+ +
+
+ CheckLogin()) + { + if($_POST or $_GET) + { + if($_GET['p'] and $_GET['p']!="search") + { + $filename = 'Templates/'.$_GET['p'].'.tpl'; + if(file_exists($filename)) + { + include($filename); + } + else + { + include('Templates/404.tpl'); + } + } + else + { + include('Templates/search.tpl'); + } + if($_POST['p'] and $_POST['s']) + { + $filename = 'Templates/results_'.$_POST['p'].'.tpl'; + if(file_exists($filename)) + { + include($filename); + } + else + { + include('Templates/404.tpl'); + } + } + } + else + { + include('Templates/home.tpl'); + } + } + else + { + include('Templates/login.tpl'); + } + ?> +
+
+
+
+
+
+ + diff --git a/Admin/ajax.js b/Admin/ajax.js new file mode 100644 index 00000000..808d42ef --- /dev/null +++ b/Admin/ajax.js @@ -0,0 +1,63 @@ +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/Admin/database.php b/Admin/database.php new file mode 100644 index 00000000..56e17a43 --- /dev/null +++ b/Admin/database.php @@ -0,0 +1,320 @@ +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 = 0"; + $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"; + 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/Admin/function.php b/Admin/function.php new file mode 100644 index 00000000..9c4523ef --- /dev/null +++ b/Admin/function.php @@ -0,0 +1,168 @@ += MULTIHUNTER and $_SESSION['id']){ + return true; + }else{ + return false; + } + } + + function Act($get){ + global $admin,$database; + + switch($get['action']){ + case recountPop: + $admin->recountPop($get['did']); + $admin->recountCP($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(is_numeric($get['uid'])){ + $get['uid'] = $get['uid']; + }else{ + $get['uid'] = $database->getUserField(addslashes($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/Admin/welcome.tpl b/Admin/welcome.tpl new file mode 100644 index 00000000..d0ed6e71 --- /dev/null +++ b/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. + +Regards, %SERVER_NAME% \ No newline at end of file diff --git a/GameEngine/Account.php b/GameEngine/Account.php new file mode 100644 index 00000000..94f955fd --- /dev/null +++ b/GameEngine/Account.php @@ -0,0 +1,240 @@ +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']) || trim($_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']) || trim($_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'],$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); + $database->updateUserField($uid,"invited",$_POST['invited'],1); + $this->generateBase($_POST['kid'],$uid,$_POST['name']); + header("Location: login.php"); + } + } + } + } + + private function Activate() { + if(START_DATE < date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i')) + { + 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'],""); + 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"); + } + } + else + { + header("Location: activate.php"); + } + + } + + 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 { + $userid = $database->getUserArray($_POST['user'], 0); + if($database->login($_POST['user'],$_POST['pw'])){ + $database->UpdateOnline("login" ,$_POST['user'],time(),$userid['id']); + }else if($database->sitterLogin($_POST['user'],$_POST['pw'])){ + $database->UpdateOnline("sitter" ,$_POST['user'],time(),$userid['id']); + } + setcookie("COOKUSR",$_POST['user'],time()+COOKIE_EXPIRE,COOKIE_PATH); + $session->login($_POST['user']); + } + } + + private function Logout() { + global $session,$database; + unset($_SESSION['wid']); + $database->activeModify(addslashes($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; + 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/.htaccess b/GameEngine/Admin/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/GameEngine/Admin/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/GameEngine/Admin/Mods/.htaccess b/GameEngine/Admin/Mods/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/GameEngine/Admin/Mods/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ 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..a0db5c74 --- /dev/null +++ b/GameEngine/Admin/Mods/addTroops.php @@ -0,0 +1,104 @@ +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"); + +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/cp.php b/GameEngine/Admin/Mods/cp.php new file mode 100644 index 00000000..1080f9d2 --- /dev/null +++ b/GameEngine/Admin/Mods/cp.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET cp = cp + ".$_POST['cp']." WHERE id = ".$id.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/delallymedal.php b/GameEngine/Admin/Mods/delallymedal.php new file mode 100644 index 00000000..bd90f7db --- /dev/null +++ b/GameEngine/Admin/Mods/delallymedal.php @@ -0,0 +1,30 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."allimedal set del = 1 WHERE id = ".$delete.""); + +header("Location: ../../../Admin/admin.php?p=alliance&aid=".$aid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/delallymedalbyaid.php b/GameEngine/Admin/Mods/delallymedalbyaid.php new file mode 100644 index 00000000..914e4779 --- /dev/null +++ b/GameEngine/Admin/Mods/delallymedalbyaid.php @@ -0,0 +1,30 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."allimedal set del = 1 WHERE allyid = ".$aid.""); + +header("Location: ../../../Admin/admin.php?p=alliance&aid=".$aid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/delallymedalbyweek.php b/GameEngine/Admin/Mods/delallymedalbyweek.php new file mode 100644 index 00000000..dcd99d2d --- /dev/null +++ b/GameEngine/Admin/Mods/delallymedalbyweek.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."allimedal set del = 1 WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=delallymedal"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/deletemedalbyuser.php b/GameEngine/Admin/Mods/deletemedalbyuser.php new file mode 100644 index 00000000..1812c0b6 --- /dev/null +++ b/GameEngine/Admin/Mods/deletemedalbyuser.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."medal set del = 1 WHERE userid = ".$userid.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$userid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/deletemedalbyweek.php b/GameEngine/Admin/Mods/deletemedalbyweek.php new file mode 100644 index 00000000..872d0f5f --- /dev/null +++ b/GameEngine/Admin/Mods/deletemedalbyweek.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."medal set del = 1 WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=delmedal"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editAccess.php b/GameEngine/Admin/Mods/editAccess.php new file mode 100644 index 00000000..deeb1e6a --- /dev/null +++ b/GameEngine/Admin/Mods/editAccess.php @@ -0,0 +1,33 @@ +Access Denied: You are not Admin!"); + +$access = $_POST['access']; + +mysql_query("UPDATE ".TB_PREFIX."users SET + access = ".$access." + WHERE id = ".$id."") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editBuildings.php b/GameEngine/Admin/Mods/editBuildings.php new file mode 100644 index 00000000..f3cb3891 --- /dev/null +++ b/GameEngine/Admin/Mods/editBuildings.php @@ -0,0 +1,110 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."fdata SET + f1 = '".$_POST['id1level']."', + f1t = '".$_POST['id1gid']."', + f2 = '".$_POST['id2level']."', + f2t = '".$_POST['id2gid']."', + f3 = '".$_POST['id3level']."', + f3t = '".$_POST['id3gid']."', + f4 = '".$_POST['id4level']."', + f4t = '".$_POST['id4gid']."', + f5 = '".$_POST['id5level']."', + f5t = '".$_POST['id5gid']."', + f6 = '".$_POST['id6level']."', + f6t = '".$_POST['id6gid']."', + f7 = '".$_POST['id7level']."', + f7t = '".$_POST['id7gid']."', + f8 = '".$_POST['id8level']."', + f8t = '".$_POST['id8gid']."', + f9 = '".$_POST['id9level']."', + f9t = '".$_POST['id9gid']."', + f10 = '".$_POST['id10level']."', + f10t = '".$_POST['id10gid']."', + f11 = '".$_POST['id11level']."', + f11t = '".$_POST['id11gid']."', + f12 = '".$_POST['id12level']."', + f12t = '".$_POST['id12gid']."', + f13 = '".$_POST['id13level']."', + f13t = '".$_POST['id13gid']."', + f14 = '".$_POST['id14level']."', + f14t = '".$_POST['id14gid']."', + f15 = '".$_POST['id15level']."', + f15t = '".$_POST['id15gid']."', + f16 = '".$_POST['id16level']."', + f16t = '".$_POST['id16gid']."', + f17 = '".$_POST['id17level']."', + f17t = '".$_POST['id17gid']."', + f18 = '".$_POST['id18level']."', + f18t = '".$_POST['id18gid']."', + f19 = '".$_POST['id19level']."', + f19t = '".$_POST['id19gid']."', + f20 = '".$_POST['id20level']."', + f20t = '".$_POST['id20gid']."', + f21 = '".$_POST['id21level']."', + f21t = '".$_POST['id21gid']."', + f22 = '".$_POST['id22level']."', + f22t = '".$_POST['id22gid']."', + f23 = '".$_POST['id23level']."', + f23t = '".$_POST['id23gid']."', + f24 = '".$_POST['id24level']."', + f24t = '".$_POST['id24gid']."', + f25 = '".$_POST['id25level']."', + f25t = '".$_POST['id25gid']."', + f26 = '".$_POST['id26level']."', + f26t = '".$_POST['id26gid']."', + f27 = '".$_POST['id27level']."', + f27t = '".$_POST['id27gid']."', + f28 = '".$_POST['id28level']."', + f28t = '".$_POST['id28gid']."', + f29 = '".$_POST['id29level']."', + f29t = '".$_POST['id29gid']."', + f30 = '".$_POST['id30level']."', + f30t = '".$_POST['id30gid']."', + f31 = '".$_POST['id31level']."', + f31t = '".$_POST['id31gid']."', + f32 = '".$_POST['id32level']."', + f32t = '".$_POST['id32gid']."', + f33 = '".$_POST['id33level']."', + f33t = '".$_POST['id33gid']."', + f34 = '".$_POST['id34level']."', + f34t = '".$_POST['id34gid']."', + f35 = '".$_POST['id35level']."', + f35t = '".$_POST['id35gid']."', + f36 = '".$_POST['id36level']."', + f36t = '".$_POST['id36gid']."', + f37 = '".$_POST['id37level']."', + f37t = '".$_POST['id37gid']."', + f38 = '".$_POST['id38level']."', + f38t = '".$_POST['id38gid']."', + f39 = '".$_POST['id39level']."', + f39t = '".$_POST['id39gid']."', + f40 = '".$_POST['id40level']."', + f40t = '".$_POST['id40gid']."' + WHERE vref = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?action=recountPop&did=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editOverall.php b/GameEngine/Admin/Mods/editOverall.php new file mode 100644 index 00000000..f1605e7e --- /dev/null +++ b/GameEngine/Admin/Mods/editOverall.php @@ -0,0 +1,32 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + apall = '".$_POST['off']."', + dpall = '".$_POST['def']."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editPassword.php b/GameEngine/Admin/Mods/editPassword.php new file mode 100644 index 00000000..fd342fc4 --- /dev/null +++ b/GameEngine/Admin/Mods/editPassword.php @@ -0,0 +1,32 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + password = '".$pass."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editPlus.php b/GameEngine/Admin/Mods/editPlus.php new file mode 100644 index 00000000..c9e87ccf --- /dev/null +++ b/GameEngine/Admin/Mods/editPlus.php @@ -0,0 +1,70 @@ +Access Denied: You are not Admin!"); + +$pdur = $_POST['plus'] * 86400; +$b1dur = $_POST['wood'] * 86400; +$b2dur = $_POST['clay'] * 86400; +$b3dur = $_POST['iron'] * 86400; +$b4dur = $_POST['crop'] * 86400; + +$sql1 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$id.""); +$user = mysql_fetch_array($sql1); + +if($user['plus'] < time()){ +if($pdur > 1){ $plus = (time() + $pdur); } else { $plus = time(); } +}else{ +if($pdur > 1){ $plus = ($user['plus'] + $pdur); } else { $plus = $user['plus']; } +} +if($user['b1'] < time()){ +if($b1dur > 1){ $wood = (time() + $b1dur); } else { $wood = time(); } +}else{ +if($b1dur > 1){ $wood = ($user['b1'] + $b1dur); } else { $wood = $user['b1']; } +} +if($user['b2'] < time()){ +if($b2dur > 1){ $clay = (time() + $b2dur); } else { $clay = time(); } +}else{ +if($b2dur > 1){ $clay = ($user['b2'] + $b2dur); } else { $clay = $user['b2']; } +} +if($user['b3'] < time()){ +if($b3dur > 1){ $iron = (time() + $b3dur); } else { $iron = time(); } +}else{ +if($b3dur > 1){ $iron = ($user['b3'] + $b3dur); } else { $iron = $user['b3']; } +} +if($user['b4'] < time()){ +if($b4dur > 1){ $crop = (time() + $b4dur); } else { $crop = time(); } +}else{ +if($b4dur > 1){ $crop = ($user['b4'] + $b4dur); } else { $crop = $user['b4']; } +} + +mysql_query("UPDATE ".TB_PREFIX."users SET + plus = '".$plus."', + b1 = '".$wood."', + b2 = '".$clay."', + b3 = '".$iron."', + b4 = '".$crop."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editProtection.php b/GameEngine/Admin/Mods/editProtection.php new file mode 100644 index 00000000..862b00e9 --- /dev/null +++ b/GameEngine/Admin/Mods/editProtection.php @@ -0,0 +1,34 @@ +Access Denied: You are not Admin!"); + +$dur = $_POST['protect'] * 86400; +$protection = (time() + $dur); + +mysql_query("UPDATE ".TB_PREFIX."users SET + protect = '".$protection."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editResources.php b/GameEngine/Admin/Mods/editResources.php new file mode 100644 index 00000000..d53479bb --- /dev/null +++ b/GameEngine/Admin/Mods/editResources.php @@ -0,0 +1,36 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."vdata SET + wood = '".$_POST['wood']."', + clay = '".$_POST['clay']."', + iron = '".$_POST['iron']."', + crop = '".$_POST['crop']."', + maxstore = '".$_POST['maxstore']."', + maxcrop = '".$_POST['maxcrop']."' + WHERE wref = '".$id."'") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=village&did=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editSitter.php b/GameEngine/Admin/Mods/editSitter.php new file mode 100644 index 00000000..ae77131a --- /dev/null +++ b/GameEngine/Admin/Mods/editSitter.php @@ -0,0 +1,32 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + sit1 = '".$_POST['sitter1']."', + sit2 = '".$_POST['sitter2']."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ 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..bb162898 --- /dev/null +++ b/GameEngine/Admin/Mods/editUser.php @@ -0,0 +1,36 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + email = '".$_POST['email']."', + tribe = ".$_POST['tribe'].", + location = '".$_POST['location']."', + desc1 = '".$_POST['desc1']."', + desc2 = '".$_POST['desc2']."', + quest = '".$_POST['quest']."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editUsername.php b/GameEngine/Admin/Mods/editUsername.php new file mode 100644 index 00000000..289c3fa4 --- /dev/null +++ b/GameEngine/Admin/Mods/editUsername.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET username = '".$_POST['username']."' WHERE id = ".$uid.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$uid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editVillageOwner.php b/GameEngine/Admin/Mods/editVillageOwner.php new file mode 100644 index 00000000..66edca28 --- /dev/null +++ b/GameEngine/Admin/Mods/editVillageOwner.php @@ -0,0 +1,31 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."vdata SET + owner = '".$_POST['newowner']."' + WHERE wref = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$_POST['newowner'].""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/editWeek.php b/GameEngine/Admin/Mods/editWeek.php new file mode 100644 index 00000000..0d0094e2 --- /dev/null +++ b/GameEngine/Admin/Mods/editWeek.php @@ -0,0 +1,33 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET + ap = '".$_POST['off']."', + dp = '".$_POST['def']."', + RR = '".$_POST['res']."' + WHERE id = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/givePlus.php b/GameEngine/Admin/Mods/givePlus.php new file mode 100644 index 00000000..f1de5133 --- /dev/null +++ b/GameEngine/Admin/Mods/givePlus.php @@ -0,0 +1,44 @@ +Access Denied: You are not Admin!"); + +$sql = "SELECT id FROM ".TB_PREFIX."users ORDER BY ID DESC LIMIT 1"; +$loops = mysql_result(mysql_query($sql), 0); + +$plusdur = $_POST['plus'] * 86400; + +for($i = 0; $i < $loops + 1; $i++) +{ + $query = "SELECT * FROM ".TB_PREFIX."users WHERE id = ".$i.""; + $result = mysql_query($query); + while($row = mysql_fetch_assoc($result)) + { + if($row['plus'] < time()) { $plusbefore = time(); $addplus = $plusbefore + $plusdur; } elseif($row['plus'] > time()) { $plusbefore = $row['plus']; $addplus = $plusbefore + $plusdur; } + mysql_query("UPDATE ".TB_PREFIX."users SET + plus = '".$addplus."' + WHERE id = '".$row['id']."'"); + } +} + +header("Location: ../../../Admin/admin.php?p=givePlus&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/givePlusRes.php b/GameEngine/Admin/Mods/givePlusRes.php new file mode 100644 index 00000000..61fe0acb --- /dev/null +++ b/GameEngine/Admin/Mods/givePlusRes.php @@ -0,0 +1,53 @@ +Access Denied: You are not Admin!"); + +$sql = "SELECT id FROM ".TB_PREFIX."users ORDER BY ID DESC LIMIT 1"; +$loops = mysql_result(mysql_query($sql), 0); + +$wood = $_POST['wood'] * 86400; +$clay = $_POST['clay'] * 86400; +$iron = $_POST['iron'] * 86400; +$crop = $_POST['crop'] * 86400; + +for($i = 0; $i < $loops + 1; $i++) +{ + $query = "SELECT * FROM ".TB_PREFIX."users WHERE id = ".$i.""; + $result = mysql_query($query); + while($row = mysql_fetch_assoc($result)) + { + if($row['b1'] < time()) { $b1before = time(); $addb1 = $b1before + $wood; } elseif($row['b1'] > time()) { $b1before = $row['b1']; $addb1 = $b1before + $wood; } + if($row['b2'] < time()) { $b2before = time(); $addb2 = $b1before + $clay; } elseif($row['b2'] > time()) { $b2before = $row['b2']; $addb2 = $b1before + $clay; } + if($row['b3'] < time()) { $b3before = time(); $addb3 = $b1before + $iron; } elseif($row['b3'] > time()) { $b3before = $row['b3']; $addb3 = $b1before + $iron; } + if($row['b4'] < time()) { $b4before = time(); $addb4 = $b1before + $crop; } elseif($row['b4'] > time()) { $b4before = $row['b4']; $addb4 = $b1before + $crop; } + mysql_query("UPDATE ".TB_PREFIX."users SET + b1 = '".$addb1."', + b2 = '".$addb2."', + b3 = '".$addb3."', + b4 = '".$addb4."' + WHERE id = '".$row['id']."'"); + } +} + +header("Location: ../../../Admin/admin.php?p=givePlusRes&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/giveResBonus.php b/GameEngine/Admin/Mods/giveResBonus.php new file mode 100644 index 00000000..aac82464 --- /dev/null +++ b/GameEngine/Admin/Mods/giveResBonus.php @@ -0,0 +1,31 @@ +Access Denied: You are not Admin!"); + +$q = "UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id != '0'"; +mysql_query($q) or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?p=maintenenceResetPlusBonus&g"); +?> \ 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..18f1e736 --- /dev/null +++ b/GameEngine/Admin/Mods/gold.php @@ -0,0 +1,31 @@ +Access Denied: You are not Admin!"); + +$q = "UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id != '0'"; +mysql_query($q) or die(mysql_error()); + +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..3a2b7857 --- /dev/null +++ b/GameEngine/Admin/Mods/gold_1.php @@ -0,0 +1,29 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET gold = gold + ".$_POST['gold']." WHERE id = ".$id.""); + +header("Location: ../../../Admin/admin.php?p=usergold&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceBan.php b/GameEngine/Admin/Mods/mainteneceBan.php new file mode 100644 index 00000000..8ed20b06 --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceBan.php @@ -0,0 +1,51 @@ +Access Denied: You are not Admin!"); + +$users = mysql_num_rows(mysql_query("SELECT * FROM ".TB_PREFIX."users")); + +$duration = $_POST['duration'] * 3600; +$start = $_POST['start']; +$startts = strtotime($start); +$endts = $startts + $duration; +$reason = $_POST['reason']; +$admin = $session; +$active = '1'; +$access = '2'; + +$sql = "SELECT id FROM ".TB_PREFIX."users ORDER BY ID DESC LIMIT 1"; +$loops = mysql_result(mysql_query($sql), 0); + +for($i = 0; $i < $loops + 1; $i++) +{ + $query = "SELECT * FROM ".TB_PREFIX."users WHERE id = ".$i." AND access = ".$access.""; + $result = mysql_query($query); + while($row = mysql_fetch_assoc($result)) + { + ##mysql_query("INSERT INTO ".TB_PREFIX."banlist ".$row['id'].", ".$row['username'].", ".$reason.", ".$startts.", ".$endts.", ".$admin.", ".$active.""); + mysql_query("INSERT INTO ".TB_PREFIX."banlist (`uid`, `name`, `reason`, `time`, `end`, `admin`, `active`) VALUES (".$row['id'].", '".$row['username']."' , '$reason', '$startts', '$endts', '$admin', '1')"); + } +} + +header("Location: ../../../Admin/admin.php?p=ban"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceCleanBanData.php b/GameEngine/Admin/Mods/mainteneceCleanBanData.php new file mode 100644 index 00000000..e4b6347b --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceCleanBanData.php @@ -0,0 +1,28 @@ +Access Denied: You are not Admin!"); + +mysql_query("TRUNCATE ".TB_PREFIX."banlist"); + +header("Location: ../../../Admin/admin.php?p=ban"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceResetGold.php b/GameEngine/Admin/Mods/mainteneceResetGold.php new file mode 100644 index 00000000..aabcaeb8 --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceResetGold.php @@ -0,0 +1,28 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET gold = '0' WHERE id !=0"); + +header("Location: ../../../Admin/admin.php?p=maintenenceResetGold&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceResetPlus.php b/GameEngine/Admin/Mods/mainteneceResetPlus.php new file mode 100644 index 00000000..b5664f38 --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceResetPlus.php @@ -0,0 +1,28 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET plus = '0' WHERE id !=0"); + +header("Location: ../../../Admin/admin.php?p=resetPlusBonus&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php b/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php new file mode 100644 index 00000000..de9a654d --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceResetPlusBonus.php @@ -0,0 +1,28 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."users SET b1 = '0', b2 = '0', b3='0', b4='0' WHERE id !=0"); + +header("Location: ../../../Admin/admin.php?p=givePlus&g"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/mainteneceUnban.php b/GameEngine/Admin/Mods/mainteneceUnban.php new file mode 100644 index 00000000..303d0213 --- /dev/null +++ b/GameEngine/Admin/Mods/mainteneceUnban.php @@ -0,0 +1,47 @@ +Access Denied: You are not Admin!"); + +$users = mysql_num_rows(mysql_query("SELECT * FROM ".TB_PREFIX."users")); + +$reason = $_POST['unbanreason']; +$admin = $session; +$active = '0'; +$access = '2'; +$actualend = time(); + +$sql = "SELECT id FROM ".TB_PREFIX."users ORDER BY ID DESC LIMIT 1"; +$loops = mysql_result(mysql_query($sql), 0); + +for($i = 0; $i < $loops + 1; $i++) +{ + $query = "SELECT * FROM ".TB_PREFIX."users WHERE id = ".$i." AND access = ".$access.""; + $result = mysql_query($query); + while($row = mysql_fetch_assoc($result)) + { + mysql_query("UPDATE ".TB_PREFIX."banlist SET active = '".$active."', end = '".$actualend."' WHERE reason = '".$reason."'"); + } +} + +header("Location: ../../../Admin/admin.php?p=ban"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/medals.php b/GameEngine/Admin/Mods/medals.php new file mode 100644 index 00000000..8d23dc37 --- /dev/null +++ b/GameEngine/Admin/Mods/medals.php @@ -0,0 +1,34 @@ +access < ADMIN) die("Access Denied: You are not Admin!"); + +$medalid = $_POST['medalid']; +$uid = $_POST['uid']; + +mysql_query("UPDATE ".TB_PREFIX."medal set del = 1 WHERE id = ".$medalid.""); + +$name = mysql_query("SELECT name FROM ".TB_PREFIX."users WHERE id= ".$uid.""); +$name = mysql_result($name, 0); + +mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$admid,'Deleted medal id [#".$medalid."] from the user $name ',".time().")"); + + +$deleteweek = $_POST['medalweek']; +mysql_query("UPDATE ".TB_PREFIX."medal set del = 1 WHERE week = ".$deleteweek.""); + +header("Location: ../../../Admin/admin.php?p=player&uid=".$uid.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/natarbuildingplan.php b/GameEngine/Admin/Mods/natarbuildingplan.php new file mode 100644 index 00000000..92c3b551 --- /dev/null +++ b/GameEngine/Admin/Mods/natarbuildingplan.php @@ -0,0 +1,85 @@ +generateBase($kid); + $database->setFieldTaken($wid); + $time = time(); + $q = "insert into ".TB_PREFIX."vdata (`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`) values ('$wid','3','WW Buildingplan',0,0,0,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,10,27,20,10,10,22,10,25,0,0,20,15,10,19,0,0,0,0,0,0,10,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,16,0,0,0,0,'World Wonder')"; + mysql_query($q); + $pop = $automation->recountPop($wid); + $cp = $automation->recountPop($wid); + $database->addUnits($wid); + $database->addTech($wid); + $database->addABTech($wid); + $speed = NATARS_UNITS; + $q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + " . (1500 * $speed) . ", u42 = u42 + " . (1500 * $speed) . ", u43 = u43 + " . (1500 * $speed) . ", u44 = u44 + " . (1500 * $speed) . ", u45 = u45 + " . (1500 * $speed) . ", u46 = u46 + " . (1500 * $speed) . ", u47 = u47 + " . (1500 * $speed) . ", u48 = u48 + " . (1500 * $speed) . " , u49 = u49 + " . (1500 * $speed) . ", u50 = u50 + " . (1500 * $speed) . " WHERE vref = '".$wid."'"; + mysql_query($q); + $desc = 'With this ancient construction plan you will able to build World Wonder to level 50. to build further, your alliance must hold at least two plans.'; + $database->addArtefact($wid, 3, 11, 1, 'Ancient Construction Plan', $desc, '', 'typeww.gif'); +} + $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%'","World Wonder Construction Plans + + +Many moons ago the tribes of Travian were surprised by the unforeseen return of the Natars. This tribe from immemorial times surpassing all in wisdom, might and glory was about to trouble the free ones again. Thus they put all their efforts in preparing a last war against the Natars and vanquishing them forever. Many thought about the so-called 'Wonders of the World', a construction of many legends, as the only solution. It was told that it would render anyone invincible once completed. Ultimately making the constructors the rulers and conquerors of all known Travian. + +However, it was also told that one would need construction plans to construct such a building. Due to this fact, the architects devised cunning plans about how to store these safely. After a while, one could see temple-like buildings in many a city and metropolis - the Treasure Chambers (Treasuries). + +Sadly, no one - not even the wise and well versed - knew where to find these construction plans. The harder people tried to locate them, the more it seemed as if they where only legends. + +Today, however, this last secret will be revealed. Deprivations and endeavors of the past will not have been in vain, as today scouts of several tribes have successfully obtained the whereabouts of the construction plans. Well guarded by the Natars, they lie hidden in several oases to be found all over Travian. Only the most valiant heroes will be able to secure such a plan and bring it home safely so that the construction can begin. + +In the end, we will see whether the free tribes of Travian can once again outwit the Natars and vanquish them once and for all. Do not be so foolish as to assume that the Natars will leave without a fight, though! + + + +To steal a set of Construction Plans from the Natars, the following things must happen: +- You must Attack the village (NOT Raid!) +- You must WIN the Attack +- You must DESTROY the Treasure Chamber (Treasury) +- Your Hero MUST be in that attack, as he is the only one who may carry the Construction Plans +- An empty level 10 Treasure Chamber (Treasury) MUST be in the village where that attack came from +NOTE: If the above criteria is not met during the attack, the next attack on that village which does meet the above criteria will take the Construction Plans. + + + +To build a Treasure Chamber (Treasury), you will need a Main Building level 10 and the village MUST NOT be a Capital or contain a World Wonder. + +To build a World Wonder, you must own the Construction Plans yourself (you = the World Wonder Village Owner) from level 0 to 50, and then from level 51 to 100 you will need an additional set of Construction Plans in your Alliance! Two sets of Construction Plans in the World Wonder Village Account will not work!" ,$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()); + } + + mysql_query("Insert into ".TB_PREFIX."admin_log values (0,$id,'Added $amt WW Buildingplan Villages',".time().")"); + + +header("Location: ../../../Admin/admin.php?p=natarbuildingplan&g"); +?> \ 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..13a14a31 --- /dev/null +++ b/GameEngine/Admin/Mods/natarend.php @@ -0,0 +1,45 @@ +generateBase($kid); + $database->setFieldTaken($wid); + $time = time(); + $q = "insert into ".TB_PREFIX."vdata (`wref`,`owner`,`name`,`capital`,`pop`,`cp`,`celebration`,`type`,`wood`,`clay`,`iron`,`maxstore`,`crop`,`maxcrop`,`lastupdate`,`loyalty`,`exp1`,`exp2`,`exp3`,`created`,`natar`) values ('$wid','3','WW village',0,0,0,0,0,80000.00,80000.00,80000.00,80000,80000.00,80000,1314974534,100,0,0,0,$time,1)"; + mysql_query($q) or die(mysql_error()); + $q = "insert into ".TB_PREFIX."fdata (`vref`,`f1`,`f1t`,`f2`,`f2t`,`f3`,`f3t`,`f4`,`f4t`,`f5`,`f5t`,`f6`,`f6t`,`f7`,`f7t`,`f8`,`f8t`,`f9`,`f9t`,`f10`,`f10t`,`f11`,`f11t`,`f12`,`f12t`,`f13`,`f13t`,`f14`,`f14t`,`f15`,`f15t`,`f16`,`f16t`,`f17`,`f17t`,`f18`,`f18t`,`f19`,`f19t`,`f20`,`f20t`,`f21`,`f21t`,`f22`,`f22t`,`f23`,`f23t`,`f24`,`f24t`,`f25`,`f25t`,`f26`,`f26t`,`f27`,`f27t`,`f28`,`f28t`,`f29`,`f29t`,`f30`,`f30t`,`f31`,`f31t`,`f32`,`f32t`,`f33`,`f33t`,`f34`,`f34t`,`f35`,`f35t`,`f36`,`f36t`,`f37`,`f37t`,`f38`,`f38t`,`f39`,`f39t`,`f40`,`f40t`,`f99`,`f99t`,`wwname`) values ($wid,0,1,0,4,0,1,0,3,0,2,0,2,0,3,0,4,0,4,0,3,0,3,0,4,0,4,0,1,0,4,0,2,0,1,0,2,20,17,20,11,20,15,20,10,10,22,10,25,0,0,0,0,10,19,0,0,0,0,0,0,10,23,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,16,0,0,0,40,'World Wonder')"; + mysql_query($q); + $pop = $automation->recountPop($wid); + $cp = $automation->recountPop($wid); + $database->addUnits($wid); + $database->addTech($wid); + $database->addABTech($wid); + $q = "UPDATE ".TB_PREFIX."units SET u41 = u41 + " . (1500 * $speed) . ", u42 = u42 + " . (1500 * $speed) . ", u43 = u43 + " . (1500 * $speed) . ", u44 = u44 + " . (1500 * $speed) . ", u45 = u45 + " . (1500 * $speed) . ", u46 = u46 + " . (1500 * $speed) . ", u47 = u47 + " . (1500 * $speed) . ", u48 = u48 + " . (1500 * $speed) . " , u49 = u49 + " . (1500 * $speed) . ", u50 = u50 + " . (1500 * $speed) . " 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/Mods/recalcWH.php b/GameEngine/Admin/Mods/recalcWH.php new file mode 100644 index 00000000..bb77e871 --- /dev/null +++ b/GameEngine/Admin/Mods/recalcWH.php @@ -0,0 +1,110 @@ +Access Denied: You are not Admin!"); + +mysql_query("UPDATE ".TB_PREFIX."fdata SET + f1 = '".$_POST['id1level']."', + f1t = '".$_POST['id1gid']."', + f2 = '".$_POST['id2level']."', + f2t = '".$_POST['id2gid']."', + f3 = '".$_POST['id3level']."', + f3t = '".$_POST['id3gid']."', + f4 = '".$_POST['id4level']."', + f4t = '".$_POST['id4gid']."', + f5 = '".$_POST['id5level']."', + f5t = '".$_POST['id5gid']."', + f6 = '".$_POST['id6level']."', + f6t = '".$_POST['id6gid']."', + f7 = '".$_POST['id7level']."', + f7t = '".$_POST['id7gid']."', + f8 = '".$_POST['id8level']."', + f8t = '".$_POST['id8gid']."', + f9 = '".$_POST['id9level']."', + f9t = '".$_POST['id9gid']."', + f10 = '".$_POST['id10level']."', + f10t = '".$_POST['id10gid']."', + f11 = '".$_POST['id11level']."', + f11t = '".$_POST['id11gid']."', + f12 = '".$_POST['id12level']."', + f12t = '".$_POST['id12gid']."', + f13 = '".$_POST['id13level']."', + f13t = '".$_POST['id13gid']."', + f14 = '".$_POST['id14level']."', + f14t = '".$_POST['id14gid']."', + f15 = '".$_POST['id15level']."', + f15t = '".$_POST['id15gid']."', + f16 = '".$_POST['id16level']."', + f16t = '".$_POST['id16gid']."', + f17 = '".$_POST['id17level']."', + f17t = '".$_POST['id17gid']."', + f18 = '".$_POST['id18level']."', + f18t = '".$_POST['id18gid']."', + f19 = '".$_POST['id19level']."', + f19t = '".$_POST['id19gid']."', + f20 = '".$_POST['id20level']."', + f20t = '".$_POST['id20gid']."', + f21 = '".$_POST['id21level']."', + f21t = '".$_POST['id21gid']."', + f22 = '".$_POST['id22level']."', + f22t = '".$_POST['id22gid']."', + f23 = '".$_POST['id23level']."', + f23t = '".$_POST['id23gid']."', + f24 = '".$_POST['id24level']."', + f24t = '".$_POST['id24gid']."', + f25 = '".$_POST['id25level']."', + f25t = '".$_POST['id25gid']."', + f26 = '".$_POST['id26level']."', + f26t = '".$_POST['id26gid']."', + f27 = '".$_POST['id27level']."', + f27t = '".$_POST['id27gid']."', + f28 = '".$_POST['id28level']."', + f28t = '".$_POST['id28gid']."', + f29 = '".$_POST['id29level']."', + f29t = '".$_POST['id29gid']."', + f30 = '".$_POST['id30level']."', + f30t = '".$_POST['id30gid']."', + f31 = '".$_POST['id31level']."', + f31t = '".$_POST['id31gid']."', + f32 = '".$_POST['id32level']."', + f32t = '".$_POST['id32gid']."', + f33 = '".$_POST['id33level']."', + f33t = '".$_POST['id33gid']."', + f34 = '".$_POST['id34level']."', + f34t = '".$_POST['id34gid']."', + f35 = '".$_POST['id35level']."', + f35t = '".$_POST['id35gid']."', + f36 = '".$_POST['id36level']."', + f36t = '".$_POST['id36gid']."', + f37 = '".$_POST['id37level']."', + f37t = '".$_POST['id37gid']."', + f38 = '".$_POST['id38level']."', + f38t = '".$_POST['id38gid']."', + f39 = '".$_POST['id39level']."', + f39t = '".$_POST['id39gid']."', + f40 = '".$_POST['id40level']."', + f40t = '".$_POST['id40gid']."' + WHERE vref = $id") or die(mysql_error()); + +header("Location: ../../../Admin/admin.php?action=recountPop&did=".$id.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/renameVillage.php b/GameEngine/Admin/Mods/renameVillage.php new file mode 100644 index 00000000..f597b9d3 --- /dev/null +++ b/GameEngine/Admin/Mods/renameVillage.php @@ -0,0 +1,31 @@ +Access Denied: You are not Admin!"); + +$sql = "UPDATE ".TB_PREFIX."vdata SET name = '$name' WHERE wref = $did"; +mysql_query($sql); + +header("Location: ../../../Admin/admin.php?p=village&did=".$did."&name=".$name.""); +?> \ No newline at end of file diff --git a/GameEngine/Admin/Mods/sendMessage.php b/GameEngine/Admin/Mods/sendMessage.php new file mode 100644 index 00000000..b139cb64 --- /dev/null +++ b/GameEngine/Admin/Mods/sendMessage.php @@ -0,0 +1,31 @@ +Access Denied: You are not Admin!"); + +$query = "INSERT INTO ".TB_PREFIX."mdata (target, owner, topic, message, viewed, time) VALUES ('$uid', 1, '$topic', '$message', 0, '$time')"; + +mysql_query($query); + +header("Location: ../../../Admin/admin.php?p=Newmessage&uid=".$uid."&msg=ok"); +?> \ No newline at end of file diff --git a/GameEngine/Admin/admin.php b/GameEngine/Admin/admin.php new file mode 100644 index 00000000..ad74c3c4 --- /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..5e66ef38 --- /dev/null +++ b/GameEngine/Admin/database.php @@ -0,0 +1,348 @@ +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); + $this->recountCP($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 recountCP($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->buildingCP($building,$lvl); + } + } + $q = "UPDATE ".TB_PREFIX."vdata set cp = $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 buildingCP($f,$lvl){ + $name = "bid".$f; + global $$name; + $popT = 0; + $dataarray = $$name; + + for ($i = 0; $i <= $lvl; $i++) { + $popT += $dataarray[$i]['cp']; + } + 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 = 0"; + $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"; + 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 = addslashes($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 = addslashes($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 = addslashes($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..9c4523ef --- /dev/null +++ b/GameEngine/Admin/function.php @@ -0,0 +1,168 @@ += MULTIHUNTER and $_SESSION['id']){ + return true; + }else{ + return false; + } + } + + function Act($get){ + global $admin,$database; + + switch($get['action']){ + case recountPop: + $admin->recountPop($get['did']); + $admin->recountCP($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(is_numeric($get['uid'])){ + $get['uid'] = $get['uid']; + }else{ + $get['uid'] = $database->getUserField(addslashes($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..d0ed6e71 --- /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. + +Regards, %SERVER_NAME% \ No newline at end of file diff --git a/GameEngine/Alliance.php b/GameEngine/Alliance.php new file mode 100644 index 00000000..64597bbf --- /dev/null +++ b/GameEngine/Alliance.php @@ -0,0 +1,464 @@ + +| +| 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; + if($session->access != BANNED){ + $UserData = $database->getUserArray(stripslashes($post['a_name']), 0); + if($this->userPermArray['opt4'] == 0) { + $form->addError("perm", NO_PERMISSION); + }elseif(!isset($post['a_name']) || $post['a_name'] == "") { + $form->addError("name1", NAME_EMPTY); + }elseif(!$database->checkExist(stripslashes($post['a_name']), 0)) { + $form->addError("name2", NAME_NO_EXIST."".stripslashes(stripslashes($post['a_name']))); + }elseif($UserData['id'] == $session->uid) { + $form->addError("name3", SAME_NAME); + }elseif($database->getInvitation2($UserData['id'],$session->alliance)) { + $form->addError("name4", $post['a_name'].ALREADY_INVITED); + }elseif($UserData['alliance'] == $session->alliance) { + $form->addError("name5", $post['a_name'].ALREADY_IN_ALLY); + }else{ + // Obtenemos la informacion necesaria + $aid = $session->alliance; + // Insertamos invitacion + $database->sendInvitation($UserData['id'], $aid, $session->uid); + // Log the notice + $database->insertAlliNotice($session->alliance, '' . addslashes($session->username) . ' has invited ' . addslashes($UserData['username']) . ' into the alliance.'); + } + }else{ + header("Location: banned.php"); + } + } + + /***************************************** + Function to reject an invitation + *****************************************/ + private function rejectInvite($get) { + global $database, $session; + if($session->access != BANNED){ + foreach($this->inviteArray as $invite) { + if($invite['id'] == $get['d']) { + $database->removeInvitation($get['d']); + $database->insertAlliNotice($invite['alliance'], '' . addslashes($session->username) . ' has rejected the invitation.'); + } + } + header("Location: build.php?id=".$get['id']); + }else{ + header("Location: banned.php"); + } + } + + /***************************************** + Function to del an invitation + *****************************************/ + private function delInvite($get) { + global $database, $session; + if($session->access != BANNED){ + $inviteArray = $database->getAliInvitations($session->alliance); + foreach($inviteArray as $invite) { + if($invite['id'] == $get['d']) { + $invitename = $database->getUserArray($invite['uid'], 1); + $database->removeInvitation($get['d']); + $database->insertAlliNotice($session->alliance, '' . addslashes($session->username) . ' has deleted the invitation for ' . addslashes($invitename['username']) . '.'); + } + } + header("Location: allianz.php?delinvite"); + }else{ + header("Location: banned.php"); + } + } + + /***************************************** + Function to accept an invitation + *****************************************/ + private function acceptInvite($get) { + global $form, $database, $session; + if($session->access != BANNED){ + foreach($this->inviteArray as $invite) { + if($session->alliance == 0){ + if($invite['id'] == $get['d'] && $invite['uid'] == $session->uid) { + $memberlist = $database->getAllMember($invite['alliance']); + $alliance_info = $database->getAlliance($invite['alliance']); + if(count($memberlist) < $alliance_info['max']){ + $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'], '' . addslashes($session->username) . ' has joined the alliance.'); + }else{ + $accept_error = 1; + $max = $alliance_info['max']; + } + } + } + } + if($accept_error == 1){ + $form->addError("ally_accept", "The alliance can contain only ".$max." peoples right now."); + }else{ + header("Location: build.php?id=" . $get['id']); + } + }else{ + header("Location: banned.php"); + } + } + + /***************************************** + Function to create an alliance + *****************************************/ + private function createAlliance($post) { + global $form, $database, $session, $bid18, $village; + if($session->access != BANNED){ + 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); + $database->procAllyPop($aid); + // 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($aid, 'The alliance has been founded by ' . addslashes($session->username) . '.'); + header("Location: build.php?id=" . $post['id']); + } + }else{ + header("Location: banned.php"); + } + } + + /***************************************** + Function to change the alliance name + *****************************************/ + private function changeAliName($get) { + global $form, $database, $session; + if($session->access != BANNED){ + 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, '' . addslashes($session->username) . ' has changed the alliance name.'); + } + }else{ + header("Location: banned.php"); + } + } + + /***************************************** + Function to create/change the alliance description + *****************************************/ + private function updateAlliProfile($post) { + global $database, $session, $form; + if($session->access != BANNED){ + 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), $post['be2'], $post['be1']); + // log the notice + $database->insertAlliNotice($session->alliance, '' . addslashes($session->username) . ' has changed the alliance description.'); + } + }else{ + header("Location: banned.php"); + } + } + + /***************************************** + Function to change the user permissions + *****************************************/ + private function changeUserPermissions($post) { + global $database, $session, $form; + if($session->access != BANNED){ + 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, '' . addslashes($session->username) . ' has changed permissions.'); + } + }else{ + header("Location: banned.php"); + } + } + /***************************************** + Function to kick a user from alliance + *****************************************/ + private function kickAlliUser($post) { + global $database, $session, $form; + if($session->access != BANNED){ + $UserData = $database->getUserArray($post['a_user'], 0); + if($this->userPermArray['opt2'] == 0) { + $form->addError("perm", NO_PERMISSION); + } else if($UserData['id'] != $session->uid){ + $database->updateUserField($post['a_user'], 'alliance', 0, 1); + $database->deleteAlliPermissions($post['a_user']); + $database->deleteAlliance($session->alliance); + // log the notice + $database->insertAlliNotice($session->alliance, '' . addslashes($post['a_user']) . ' has quit the alliance.'); + if($database->isAllianceOwner($UserData['id'])){ + $newowner = $database->getAllMember2($session->alliance); + $newleader = $newowner['id']; + $q = "UPDATE " . TB_PREFIX . "alidata set leader = ".$newleader." where id = ".$session->alliance.""; + $database->query($q); + $database->updateAlliPermissions($newleader, 1, 1, 1, 1, 1, 1, 1, 1, 1); + $this->updateMax($newleader); + } + } + }else{ + header("Location: banned.php"); + } + } + /***************************************** + Function to set forum link + *****************************************/ + public function setForumLink($post) { + global $database, $session; + if($session->access != BANNED){ + if(isset($post['f_link'])){ + $database->setAlliForumLink($session->alliance, $post['f_link']); + header("Location: allianz.php?s=5"); + } + }else{ + header("Location: banned.php"); + } + } + /***************************************** + Function to quit from alliance + *****************************************/ + private function quitally($post) { + global $database, $session, $form; + if($session->access != BANNED){ + 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); + if($database->isAllianceOwner($session->uid)){ + $newowner = $database->getAllMember2($session->alliance); + $newleader = $newowner['id']; + $q = "UPDATE " . TB_PREFIX . "alidata set leader = ".$newleader." where id = ".$session->alliance.""; + $database->query($q); + $database->updateAlliPermissions($newleader, 1, 1, 1, 1, 1, 1, 1, 1, 1); + $this->updateMax($newleader); + } + $database->deleteAlliPermissions($session->uid); + // log the notice + $database->deleteAlliance($session->alliance); + $database->insertAlliNotice($session->alliance, '' . addslashes($session->username) . ' has quit the alliance.'); + header("Location: spieler.php?uid=".$session->uid); + } + }else{ + header("Location: banned.php"); + } + } + + private function changediplomacy($post) { + global $database, $session, $form; + if($session->access != BANNED){ + $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->diplomacyInviteCheck2($session->alliance, $database->getAllianceID($aName))) { + $database->diplomacyInviteAdd($session->alliance, $database->getAllianceID($aName), $aType); + if($aType == 1){ + $notice = "offer a confederation to"; + }else if($aType == 2){ + $notice = "offer non-aggression pact to"; + }else if($aType == 3){ + $notice = "declare war on"; + } + $database->insertAlliNotice($session->alliance, '' . $database->getAllianceName($session->alliance) . ' '. $notice .' ' . $aName . '.'); + $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"); + } + }else{ + header("Location: banned.php"); + } + } + + private function updateMax($leader) { + global $bid18, $database; + $q = mysql_query("SELECT * FROM " . TB_PREFIX . "alidata where leader = $leader"); + if(mysql_num_rows($q) > 0){ + $villages = $database->getVillagesID2($leader); + $max = 0; + foreach($villages as $village){ + $field = $database->getResourceLevel($village['wref']); + for($i=19;$i<=40;$i++){ + if($field['f'.$i.'t'] == 18){ + $level = $field['f'.$i]; + $attri = $bid18[$level]['attri']; + } + } + if($attri > $max){ + $max = $attri; + } + } + $q = "UPDATE ".TB_PREFIX."alidata set max = $max where leader = $leader"; + $database->query($q); + } + } + } + + $alliance = new Alliance; + +?> diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php new file mode 100644 index 00000000..65e3db3b --- /dev/null +++ b/GameEngine/Automation.php @@ -0,0 +1,4415 @@ + 0) + { + header('Location: /winner.php'); + }else{ + ## there is no winner + } + } + + 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 = "Nothing had"; break; + } + return addslashes($build); + } + + 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); + } + } + $this->recountCP($vid); + $q = "UPDATE ".TB_PREFIX."vdata set pop = $popTot where wref = $vid"; + mysql_query($q); + $owner = $database->getVillageField($vid,"owner"); + $this->procClimbers($owner); + + return $popTot; + + } + + function recountCP($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->buildingCP($building,$lvl); + } + } + + $q = "UPDATE ".TB_PREFIX."vdata set cp = $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; + } + + function buildingCP($f,$lvl){ + $name = "bid".$f; + global $$name; + $popT = 0; + $dataarray = $$name; + + for ($i = 0; $i <= $lvl; $i++) { + $popT += $dataarray[$i]['cp']; + } + return $popT; + } + + public function Automation() { + + $this->procNewClimbers(); + $this->ClearUser(); + $this->ClearInactive(); + $this->oasisResourcesProduce(); + $this->pruneResource(); + $this->pruneOResource(); + $this->checkWWAttacks(); + if(!file_exists("GameEngine/Prevention/culturepoints.txt") or time()-filemtime("GameEngine/Prevention/culturepoints.txt")>50) { + $this->culturePoints(); + } + if(!file_exists("GameEngine/Prevention/updatehero.txt") or time()-filemtime("GameEngine/Prevention/updatehero.txt")>50) { + $this->updateHero(); + } + if(!file_exists("GameEngine/Prevention/cleardeleting.txt") or time()-filemtime("GameEngine/Prevention/cleardeleting.txt")>50) { + $this->clearDeleting(); + } + if (! file_exists("GameEngine/Prevention/build.txt") or time() - filemtime("GameEngine/Prevention/build.txt")>50) + { + $this->buildComplete(); + } + $this->MasterBuilder(); + if (! file_exists("GameEngine/Prevention/demolition.txt") or time() - filemtime("GameEngine/Prevention/demolition.txt")>50) + { + $this->demolitionComplete(); + } + $this->updateStore(); + $this->delTradeRoute(); + $this->TradeRoute(); + if(!file_exists("GameEngine/Prevention/market.txt") or time()-filemtime("GameEngine/Prevention/market.txt")>50) { + $this->marketComplete(); + } + if(!file_exists("GameEngine/Prevention/research.txt") or time()-filemtime("GameEngine/Prevention/research.txt")>50) { + $this->researchComplete(); + } + if(!file_exists("GameEngine/Prevention/training.txt") or time()-filemtime("GameEngine/Prevention/training.txt")>50) { + $this->trainingComplete(); + } + 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")>50) { + $this->celebrationComplete(); + } + if(!file_exists("GameEngine/Prevention/sendunits.txt") or time()-filemtime("GameEngine/Prevention/sendunits.txt")>50) { + $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")>50) { + $this->sendreinfunitsComplete(); + } + if(!file_exists("GameEngine/Prevention/returnunits.txt") or time()-filemtime("GameEngine/Prevention/returnunits.txt")>50) { + $this->returnunitsComplete(); + } + if(!file_exists("GameEngine/Prevention/settlers.txt") or time()-filemtime("GameEngine/Prevention/settlers.txt")>50) { + $this->sendSettlersComplete(); + } + $this->updateGeneralAttack(); + $this->checkInvitedPlayes(); + $this->updateStore(); + $this->CheckBan(); + $this->regenerateOasisTroops(); + + $this->artefactOfTheFool(); + } + + private function loyaltyRegeneration() { + if(file_exists("GameEngine/Prevention/loyalty.txt")) { + unlink("GameEngine/Prevention/loyalty.txt"); + } + 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'])/(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'])/(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() { + if(file_exists("GameEngine/Prevention/cleardeleting.txt")) { + unlink("GameEngine/Prevention/cleardeleting.txt"); + } + 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']); + foreach($needVillage as $village) { + $q = "DELETE FROM ".TB_PREFIX."abdata where wref = ".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."bdata where wid = ".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."enforcement where from = ".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."fdata where vref = ".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."market where vref = ".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."odata where wref = ".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."research where vref = ".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."tdata where vref = ".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."training where vref =".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."units where vref =".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."farmlist where wref =".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."raidlist where towref = ".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."vdata where wref = ".$village; + $database->query($q); + $q = "UPDATE ".TB_PREFIX."wdata set occupied = 0 where id = ".$village; + $database->query($q); + $getmovement = $database->getMovement(3,$village,1); + foreach($getmovement as $movedata) { + $time = microtime(true); + $time2 = $time - $movedata['starttime']; + $database->addMovement(4,$movedata['to'],$movedata['from'],$movedata['ref'],$time,$time+$time2); + $database->setMovementProc($movedata['moveid']); + } + $q = "DELETE FROM ".TB_PREFIX."movement where from = ".$village; + $database->query($q); + $getprisoners = $database->getPrisoners($village); + foreach($getprisoners as $pris) { + $troops = 0; + for($i=1;$i<12;$i++){ + $troops += $pris['t'.$i]; + } + $database->modifyUnit($pris['wref'],array("99o"),array($troops),array(0)); + $database->deletePrisoners($pris['id']); + } + $getprisoners = $database->getPrisoners3($village); + foreach($getprisoners as $pris) { + $troops = 0; + for($i=1;$i<12;$i++){ + $troops += $pris['t'.$i]; + } + $database->modifyUnit($pris['wref'],array("99o"),array($troops),array(0)); + $database->deletePrisoners($pris['id']); + } + $enforcement = $database->getEnforceVillage($village,0); + foreach($enforcement as $enforce) { + $time = microtime(true); + $fromcoor = $database->getCoor($enforce['vref']); + $tocoor = $database->getCoor($enforce['from']); + $targettribe = $database->getUserField($database->getVillageField($enforce['from'],"owner"),"tribe",0); + $time2 = $this->procDistanceTime($tocoor,$fromcoor,$targettribe,0); + $start = 10*($targettribe-1); + for($i=1;$i<11;$i++){ + $unit = $start + $i; + $post['t'.$i] = $enforce['u'.$unit]; + } + $post['t11'] = $enforce['hero']; + $reference = $database->addAttack($enforce['from'],$post['t1'],$post['t2'],$post['t3'],$post['t4'],$post['t5'],$post['t6'],$post['t7'],$post['t8'],$post['t9'],$post['t10'],$post['t11'],2,0,0,0,0); + $database->addMovement(4,$enforce['vref'],$enforce['from'],$reference,$time,$time+$time2); + $q = "DELETE FROM ".TB_PREFIX."enforcement where id = ".$enforce['id']; + $database->query($q); + } + } + for($i=0;$i<20;$i++){ + $q = "SELECT * FROM ".TB_PREFIX."users where friend".$i." = ".$need['uid']." or friend".$i."wait = ".$need['uid'].""; + $array = $database->query_return($q); + foreach($array as $friend){ + $database->deleteFriend($friend['id'],"friend".$i); + $database->deleteFriend($friend['id'],"friend".$i."wait"); + } + } + $database->updateUserField($need['uid'], 'alliance', 0, 1); + if($database->isAllianceOwner($need['uid'])){ + $alliance = $database->getUserAllianceID($need['uid']); + $newowner = $database->getAllMember2($alliance); + $newleader = $newowner['id']; + $q = "UPDATE " . TB_PREFIX . "alidata set leader = ".$newleader." where id = ".$alliance.""; + $database->query($q); + $database->updateAlliPermissions($newleader, $alliance, "Leader", 1, 1, 1, 1, 1, 1, 1); + $this->updateMax($newleader); + } + $database->deleteAlliance($alliance); + $q = "DELETE FROM ".TB_PREFIX."hero where uid = ".$need['uid']; + $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); + $q = "DELETE FROM ".TB_PREFIX."deleting where uid = ".$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 = "SELECT * FROM ".TB_PREFIX."odata WHERE maxstore < 800 OR maxcrop < 800"; + $array = $database->query_return($q); + foreach($array as $getoasis) { + if($getoasis['maxstore'] < 800){ + $maxstore = 800; + }else{ + $maxstore = $getoasis['maxstore']; + } + if($getoasis['maxcrop'] < 800){ + $maxcrop = 800; + }else{ + $maxcrop = $getoasis['maxcrop']; + } + $q = "UPDATE " . TB_PREFIX . "odata set maxstore = $maxstore, maxcrop = $maxcrop where wref = ".$getoasis['wref'].""; + $database->query($q); + } + $q = "SELECT * FROM ".TB_PREFIX."odata WHERE wood < 0 OR clay < 0 OR iron < 0 OR crop < 0"; + $array = $database->query_return($q); + foreach($array as $getoasis) { + if($getoasis['wood'] < 0){ + $wood = 0; + }else{ + $wood = $getoasis['wood']; + } + if($getoasis['clay'] < 0){ + $clay = 0; + }else{ + $clay = $getoasis['clay']; + } + if($getoasis['iron'] < 0){ + $iron = 0; + }else{ + $iron = $getoasis['iron']; + } + if($getoasis['crop'] < 0){ + $crop = 0; + }else{ + $crop = $getoasis['crop']; + } + $q = "UPDATE " . TB_PREFIX . "odata set wood = $wood, clay = $clay, iron = $iron, crop = $crop where wref = ".$getoasis['wref'].""; + $database->query($q); + } + } + } + private function pruneResource() { + global $database; + if(!ALLOW_BURST) { + $q = "SELECT * FROM ".TB_PREFIX."vdata WHERE maxstore < 800 OR maxcrop < 800"; + $array = $database->query_return($q); + foreach($array as $getvillage) { + if($getvillage['maxstore'] < 800){ + $maxstore = 800; + }else{ + $maxstore = $getvillage['maxstore']; + } + if($getvillage['maxcrop'] < 800){ + $maxcrop = 800; + }else{ + $maxcrop = $getvillage['maxcrop']; + } + $q = "UPDATE " . TB_PREFIX . "vdata set maxstore = $maxstore, maxcrop = $maxcrop where wref = ".$getvillage['wref'].""; + $database->query($q); + } + $q = "SELECT * FROM ".TB_PREFIX."vdata WHERE wood > maxstore OR clay > maxstore OR iron > maxstore OR crop > maxcrop"; + $array = $database->query_return($q); + foreach($array as $getvillage) { + if($getvillage['wood'] > $getvillage['maxstore']){ + $wood = $getvillage['maxstore']; + }else{ + $wood = $getvillage['wood']; + } + if($getvillage['clay'] > $getvillage['maxstore']){ + $clay = $getvillage['maxstore']; + }else{ + $clay = $getvillage['clay']; + } + if($getvillage['iron'] > $getvillage['maxstore']){ + $iron = $getvillage['maxstore']; + }else{ + $iron = $getvillage['iron']; + } + if($getvillage['crop'] > $getvillage['maxstore']){ + $crop = $getvillage['maxstore']; + }else{ + $crop = $getvillage['crop']; + } + $q = "UPDATE " . TB_PREFIX . "vdata set wood = $wood, clay = $clay, iron = $iron, crop = $crop where wref = ".$getvillage['wref'].""; + $database->query($q); + } + $q = "SELECT * FROM ".TB_PREFIX."vdata WHERE wood < 0 OR clay < 0 OR iron < 0 OR crop < 0"; + $array = $database->query_return($q); + foreach($array as $getvillage) { + if($getvillage['wood'] < 0){ + $wood = 0; + }else{ + $wood = $getvillage['wood']; + } + if($getvillage['clay'] < 0){ + $clay = 0; + }else{ + $clay = $getvillage['clay']; + } + if($getvillage['iron'] < 0){ + $iron = 0; + }else{ + $iron = $getvillage['iron']; + } + if($getvillage['crop'] < 0){ + $crop = 0; + }else{ + $crop = $getvillage['crop']; + } + $q = "UPDATE " . TB_PREFIX . "vdata set wood = $wood, clay = $clay, iron = $iron, crop = $crop where wref = ".$getvillage['wref'].""; + $database->query($q); + } + } + } + + private function culturePoints() { + if(file_exists("GameEngine/Prevention/culturepoints.txt")) { + unlink("GameEngine/Prevention/culturepoints.txt"); + } + global $database,$session; + $time = time()-600; // 10minutes + $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 && $indi['lastupdate'] > 0){ + $cp = $database->getVSumField($indi['id'], 'cp') * (time()-$indi['lastupdate'])/86400; // 24 hours + + $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 buildComplete() { + if(file_exists("GameEngine/Prevention/build.txt")) { + unlink("GameEngine/Prevention/build.txt"); + } + global $database,$bid18,$bid10,$bid11,$bid38,$bid39; + $time = time(); + $array = array(); + $q = "SELECT * FROM ".TB_PREFIX."bdata where timestamp < $time and master = 0"; + $array = $database->query_return($q); + foreach($array as $indi) { + $q = "UPDATE ".TB_PREFIX."fdata set f".$indi['field']." = ".$indi['level'].", 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); + $this->procClimbers($database->getVillageField($indi['wid'],'owner')); + $database->addCP($indi['wid'],$pop[1]); + + if($indi['type'] == 10) { + $max=$database->getVillageField($indi['wid'],"maxstore"); + if($level=='1' && $max==STORAGE_BASE){ $max=STORAGE_BASE; } + if($level!=1){ + $max-=$bid10[$level-1]['attri']*STORAGE_MULTIPLIER; + $max+=$bid10[$level]['attri']*STORAGE_MULTIPLIER; + }else{ + $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; } + if($level!=1){ + $max-=$bid11[$level-1]['attri']*STORAGE_MULTIPLIER; + $max+=$bid11[$level]['attri']*STORAGE_MULTIPLIER; + }else{ + $max=$bid11[$level]['attri']*STORAGE_MULTIPLIER; + } + $database->setVillageField($indi['wid'],"maxcrop",$max); + } + + if($indi['type'] == 18){ + $this->updateMax($database->getVillageField($indi['wid'],"owner")); + } + + if($indi['type'] == 38) { + $max=$database->getVillageField($indi['wid'],"maxstore"); + if($level=='1' && $max==STORAGE_BASE){ $max=STORAGE_BASE; } + if($level!=1){ + $max-=$bid38[$level-1]['attri']*STORAGE_MULTIPLIER; + $max+=$bid38[$level]['attri']*STORAGE_MULTIPLIER; + }else{ + $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; } + if($level!=1){ + $max-=$bid39[$level-1]['attri']*STORAGE_MULTIPLIER; + $max+=$bid39[$level]['attri']*STORAGE_MULTIPLIER; + }else{ + $max=$bid39[$level]['attri']*STORAGE_MULTIPLIER; + } + $database->setVillageField($indi['wid'],"maxcrop",$max); + } + + // by SlimShady95 aka Manuel Mannhardt < manuel_mannhardt@web.de > + if($indi['type'] == 40 and ($indi['level'] % 5 == 0 or $indi['level'] > 95) and $indi['level'] != 100){ + $this->startNatarAttack($indi['level'], $indi['wid'], $indi['timestamp']); + } + if($indi['type'] == 40 && $indi['level'] == 100){ //now can't be more than one winners if ww to level 100 is build by 2 users or more on same time + mysql_query("TRUNCATE ".TB_PREFIX."bdata"); + } + if($database->getUserField($database->getVillageField($indi['wid'],"owner"),"tribe",0) != 1){ + $q4 = "UPDATE ".TB_PREFIX."bdata set loopcon = 0 where loopcon = 1 and master = 0 and wid = ".$indi['wid']; + $database->query($q4); + }else{ + if($indi['field'] > 18){ + $q4 = "UPDATE ".TB_PREFIX."bdata set loopcon = 0 where loopcon = 1 and master = 0 and wid = ".$indi['wid']." and field > 18"; + $database->query($q4); + }else{ + $q4 = "UPDATE ".TB_PREFIX."bdata set loopcon = 0 where loopcon = 1 and master = 0 and wid = ".$indi['wid']." and field < 19"; + $database->query($q4); + } + } + $q = "DELETE FROM ".TB_PREFIX."bdata where id = ".$indi['id']; + $database->query($q); + } + $crop = $database->getCropProdstarv($indi['wid']); + $unitarrays = $this->getAllUnits($indi['wid']); + $village = $database->getVillage($indi['wid']); + $upkeep = $village['pop'] + $this->getUpkeep($unitarrays, 0); + if ($crop < $upkeep){ + // add starv data + $database->setVillageField($indi['wid'], 'starv', $upkeep); + $database->setVillageField($indi['wid'], 'starvupdate', $time); + } + } + if(file_exists("GameEngine/Prevention/build.txt")) { + unlink("GameEngine/Prevention/build.txt"); + } + } + + // by SlimShady95 aka Manuel Mannhardt < manuel_mannhardt@web.de > + private function startNatarAttack($level, $vid, $time) { + global $database; + + // bad, but should work :D + // I took the data from my first ww (first .org world) + // todo: get the algo from the real travian with the 100 biggest + // offs and so on + $troops = array( + 5 => array( + array(3412, 2814, 4156, 3553, 9, 0), + array(35, 0, 77, 33, 17, 10) + ), + + 10 => array( + array(4314, 3688, 5265, 4621, 13, 0), + array(65, 0, 175, 77, 28, 17) + ), + + 15 => array( + array(4645, 4267, 5659, 5272, 15, 0), + array(99, 0, 305, 134, 40, 25) + ), + + 20 => array( + array(6207, 5881, 7625, 7225, 22, 0), + array(144, 0, 456, 201, 56, 36) + ), + + 25 => array( + array(6004, 5977, 7400, 7277, 23, 0), + array(152, 0, 499, 220, 58, 37) + ), + + 30 => array( + array(7073, 7181, 8730, 8713, 27, 0), + array(183, 0, 607, 268, 69, 45) + ), + + 35 => array( + array(7090, 7320, 8762, 8856, 28, 0), + array(186, 0, 620, 278, 70, 45) + ), + + 40 => array( + array(7852, 6967, 9606, 8667, 25, 0), + array(146, 0, 431, 190, 60, 37) + ), + + 45 => array( + array(8480, 8883, 10490, 10719, 35, 0), + array(223, 0, 750, 331, 83, 54) + ), + + 50 => array( + array(8522, 9038, 10551, 10883, 35, 0), + array(224, 0, 757, 335, 83, 54) + ), + + 55 => array( + array(8931, 8690, 10992, 10624, 32, 0), + array(219, 0, 707, 312, 84, 54) + ), + + 60 => array( + array(12138, 13013, 15040, 15642, 51, 0), + array(318, 0, 1079, 477, 118, 76) + ), + + 65 => array( + array(13397, 14619, 16622, 17521, 58, 0), + array(345, 0, 1182, 522, 127, 83) + ), + + 70 => array( + array(16323, 17665, 20240, 21201, 70, 0), + array(424, 0, 1447, 640, 157, 102) + ), + + 75 => array( + array(20739, 22796, 25746, 27288, 91, 0), + array(529, 0, 1816, 803, 194, 127) + ), + + 80 => array( + array(21857, 24180, 27147, 28914, 97, 0), + array(551, 0, 1898, 839, 202, 132) + ), + + 85 => array( + array(22476, 25007, 27928, 29876, 100, 0), + array(560, 0, 1933, 855, 205, 134) + ), + + 90 => array( + array(31345, 35053, 38963, 41843, 141, 0), + array(771, 0, 2668, 1180, 281, 184) + ), + + 95 => array( + array(31720, 35635, 39443, 42506, 144, 0), + array(771, 0, 2671, 1181, 281, 184) + ), + + 96 => array( + array(32885, 37007, 40897, 44130, 150, 0), + array(795, 0, 2757, 1219, 289, 190) + ), + + 97 => array( + array(32940, 37099, 40968, 44235, 150, 0), + array(794, 0, 2755, 1219, 289, 190) + ), + + 98 => array( + array(33521, 37691, 41686, 44953, 152, 0), + array(812, 0, 2816, 1246, 296, 194) + ), + + 99 => array( + array(36251, 40861, 45089, 48714, 165, 0), + array(872, 0, 3025, 1338, 317, 208) + ) + ); + + // select the troops^^ + if (isset($troops[$level])) + { + $units = $troops[$level]; + } + else + { + return false; + } + + // get the capital village from the natars + $query = mysql_query('SELECT `wref` FROM `' . TB_PREFIX . 'vdata` WHERE `owner` = 3 and `capital` = 1 LIMIT 1') or die(mysql_error()); + $row = mysql_fetch_assoc($query); + + // start the attacks + $endtime = $time + round((60 * 60 * 24) / INCREASE_SPEED); + + // -.- + mysql_query('INSERT INTO `' . TB_PREFIX . 'ww_attacks` (`vid`, `attack_time`) VALUES (' . $vid . ', ' . $endtime . ')'); + mysql_query('INSERT INTO `' . TB_PREFIX . 'ww_attacks` (`vid`, `attack_time`) VALUES (' . $vid . ', ' . ($endtime + 1) . ')'); + + // wave 1 + $ref = $database->addAttack($row['wref'], 0, $units[0][0], $units[0][1], 0, $units[0][2], $units[0][3], $units[0][4], $units[0][5], 0, 0, 0, 3, 0, 0, 0, 0, 20, 20, 0, 20, 20, 20, 20); + $database->addMovement(3, $row['wref'], $vid, $ref, $time, $endtime); + + // wave 2 + $ref2 = $database->addAttack($row['wref'], 0, $units[1][0], $units[1][1], 0, $units[1][2], $units[1][3], $units[1][4], $units[1][5], 0, 0, 0, 3, 40, 0, 0, 0, 20, 20, 0, 20, 20, 20, 20, array('vid' => $vid, 'endtime' => ($endtime + 1))); + $database->addMovement(3, $row['wref'], $vid, $ref2, $time, $endtime + 1); + } + + private function checkWWAttacks() { + $query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'ww_attacks` WHERE `attack_time` <= ' . time()); + while ($row = mysql_fetch_assoc($query)) + { + // delete the attack + $query3 = mysql_query('DELETE FROM `' . TB_PREFIX . 'ww_attacks` WHERE `vid` = ' . $row['vid'] . ' AND `attack_time` = ' . $row['attack_time']); + } + } + + 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 delTradeRoute() { + global $database; + $time = time(); + $q = "DELETE from ".TB_PREFIX."route where timeleft < $time"; + $database->query($q); + } + + private function TradeRoute() { + global $database; + $time = time(); + $q = "SELECT * FROM ".TB_PREFIX."route where timestamp < $time"; + $dataarray = $database->query_return($q); + foreach($dataarray as $data) { + $database->modifyResource($data['from'],$data['wood'],$data['clay'],$data['iron'],$data['crop'],0); + $targettribe = $database->getUserField($database->getVillageField($data['from'],"owner"),"tribe",0); + $this->sendResource2($data['wood'],$data['clay'],$data['iron'],$data['crop'],$data['from'],$data['wid'],$targettribe,$data['deliveries']); + $database->editTradeRoute($data['id'],"timestamp",86400,1); + } + } + + private function marketComplete() { + if(file_exists("GameEngine/Prevention/market.txt")) { + unlink("GameEngine/Prevention/market.txt"); + } + global $database; + $ourFileHandle = fopen("GameEngine/Prevention/market.txt", 'w'); + fclose($ourFileHandle); + $time = microtime(true); + $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'],$targetally,$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'],time(),$endtime,$data['send'],$data['wood'],$data['clay'],$data['iron'],$data['crop']); + $database->setMovementProc($data['moveid']); + } + $q1 = "SELECT * FROM ".TB_PREFIX."movement where proc = 0 and sort_type = 2 and endtime < $time"; + $dataarray1 = $database->query_return($q1); + foreach($dataarray1 as $data1) { + $database->setMovementProc($data1['moveid']); + if($data1['send'] > 1){ + $targettribe1 = $database->getUserField($database->getVillageField($data1['to'],"owner"),"tribe",0); + $send = $data1['send']-1; + $this->sendResource2($data1['wood'],$data1['clay'],$data1['iron'],$data1['crop'],$data1['to'],$data1['from'],$targettribe1,$send); + } + } + if(file_exists("GameEngine/Prevention/market.txt")) { + unlink("GameEngine/Prevention/market.txt"); + } + } + + private function sendResource2($wtrans,$ctrans,$itrans,$crtrans,$from,$to,$tribe,$send) { + global $bid17,$bid28,$database,$generator,$logging; + $availableWood = $database->getWoodAvailable($from); + $availableClay = $database->getClayAvailable($from); + $availableIron = $database->getIronAvailable($from); + $availableCrop = $database->getCropAvailable($from); + if($availableWood >= $wtrans AND $availableClay >= $ctrans AND $availableIron >= $itrans AND $availableCrop >= $crtrans){ + $merchant2 = ($this->getTypeLevel(17,$from) > 0)? $this->getTypeLevel(17,$from) : 0; + $used2 = $database->totalMerchantUsed($from); + $merchantAvail2 = $merchant2 - $used2; + $maxcarry2 = ($tribe == 1)? 500 : (($tribe == 2)? 1000 : 750); + $maxcarry2 *= TRADER_CAPACITY; + if($this->getTypeLevel(28,$from) != 0) { + $maxcarry2 *= $bid28[$this->getTypeLevel(28,$from)]['attri'] / 100; + } + $resource = array($wtrans,$ctrans,$itrans,$crtrans); + $reqMerc = ceil((array_sum($resource)-0.1)/$maxcarry2); + if($merchantAvail2 != 0 && $reqMerc <= $merchantAvail2) { + $coor = $database->getCoor($to); + $coor2 = $database->getCoor($from); + if($database->getVillageState($to)) { + $timetaken = $generator->procDistanceTime($coor,$coor2,$tribe,0); + $res = $resource[0]+$resource[1]+$resource[2]+$resource[3]; + if($res!=0){ + $reference = $database->sendResource($resource[0],$resource[1],$resource[2],$resource[3],$reqMerc,0); + $database->modifyResource($from,$resource[0],$resource[1],$resource[2],$resource[3],0); + $database->addMovement(0,$from,$to,$reference,microtime(true),microtime(true)+$timetaken,$send); + } + } + } + } + } + + private function sendunitsComplete() { + if(file_exists("GameEngine/Prevention/sendunits.txt")) { + unlink("GameEngine/Prevention/sendunits.txt"); + } + global $bid23,$bid34,$database,$battle,$village,$technology,$logging,$generator; + $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); + $totalattackdead = 0; + $data_num = 0; + 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']; + $AttackerWref = $data['from']; + $DefenderWref = $data['to']; + 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); + $AttackerID = $database->getUserField($database->getVillageField($data['from'],"owner"),"id",0); + $DefenderID = $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']); + + $DefenderUnit = array(); + $DefenderUnit = $database->getUnit($data['to']); + $evasion = $database->getVillageField($data['to'],"evasion"); + $maxevasion = $database->getUserField($DefenderID,"maxevasion",0); + $gold = $database->getUserField($DefenderID,"gold",0); + $playerunit = ($targettribe-1)*10; + $cannotsend = 0; + $movements = $database->getMovement("34",$data['to'],1); + for($y=0;$y < count($movements);$y++){ + $returntime = $units[$y]['endtime']-time(); + if($units[$y]['sort_type'] == 4 && $units[$y]['from'] != 0 && $returntime <= 10){ + $cannotsend = 1; + } + } + if($evasion == 1 && $maxevasion > 0 && $gold > 1 && $cannotsend == 0 && $dataarray[$data_num]['attack_type'] > 2){ + $totaltroops = 0; + for($i=1;$i<=10;$i++){ + $playerunit += $i; + $data['u'.$i] = $DefenderUnit['u'.$playerunit]; + $database->modifyUnit($data['to'],array($playerunit),array($DefenderUnit['u'.$playerunit]),array(0)); + $playerunit -= $i; + $totaltroops += $data['u'.$i]; + } + $data['u11'] = $DefenderUnit['hero']; + $totaltroops += $data['u11']; + if($totaltroops > 0){ + $database->modifyUnit($data['to'],array("hero"),array($DefenderUnit['hero']),array(0)); + $attackid = $database->addAttack($data['to'],$data['u1'],$data['u2'],$data['u3'],$data['u4'],$data['u5'],$data['u6'],$data['u7'],$data['u8'],$data['u9'],$data['u10'],$data['u11'],4,0,0,0,0,0,0,0,0,0,0,0); + $database->addMovement(4,0,$data['to'],$attackid,microtime(true),microtime(true)+(180/EVASION_SPEED)); + $newgold = $gold-2; + $newmaxevasion = $maxevasion-1; + $database->updateUserField($DefenderID, "gold", $newgold, 1); + $database->updateUserField($DefenderID, "maxevasion", $newmaxevasion, 1); + } + } + //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'; } + } + } + } + if(!isset($Defender['hero'])){ + $Defender['hero'] = '0'; + } else { + if($Defender['hero']=='' or $Defender['hero']<='0'){ + $Defender['hero'] = '0'; + } + } + //get attack units + $Attacker = array(); + $start = ($owntribe-1)*10+1; + $end = ($owntribe*10); + $u = (($owntribe-1)*10); + $catp = 0; + $catapult = array(8,18,28,48); + $ram = array(7,17,27,47); + $chief = array(9,19,29,49); + $spys = array(4,14,23,44); + for($i=$start;$i<=$end;$i++) { + $y = $i-$u; + $Attacker['u'.$i] = $dataarray[$data_num]['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[$data_num]['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[$data_num]['attack_type'] == 1){ + $type = 1; + $scout = 1; + } + if($dataarray[$data_num]['attack_type'] == 2){ + $type = 2; + } + if($dataarray[$data_num]['attack_type'] == 3){ + $type = 3; + } + if($dataarray[$data_num]['attack_type'] == 4){ + $type = 4; + } + + $att_ab = $database->getABTech($data['from']); // Blacksmith level + $att_ab1 = $att_ab['b1']; + $att_ab2 = $att_ab['b2']; + $att_ab3 = $att_ab['b3']; + $att_ab4 = $att_ab['b4']; + $att_ab5 = $att_ab['b5']; + $att_ab6 = $att_ab['b6']; + $att_ab7 = $att_ab['b7']; + $att_ab8 = $att_ab['b8']; + $def_ab = $database->getABTech($data['to']); // Armory level + $att_ab1 = $att_ab['a1']; + $att_ab2 = $att_ab['a2']; + $att_ab3 = $att_ab['a3']; + $att_ab4 = $att_ab['a4']; + $att_ab5 = $att_ab['a5']; + $att_ab6 = $att_ab['a6']; + $att_ab7 = $att_ab['a7']; + $att_ab8 = $att_ab['a8']; + + //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; + } + } + + $tblevel = '1'; + $stonemason = "1"; + + + /*-------------------------------- + // End Battle part + --------------------------------*/ + }else{ + $Attacker['id'] = $database->getUserField($database->getVillageField($data['from'],"owner"),"id",0); + $Defender['id'] = $database->getUserField($database->getOasisField($data['to'],"owner"),"id",0); + $AttackerID = $database->getUserField($database->getVillageField($data['from'],"owner"),"id",0); + $DefenderID = $database->getUserField($database->getOasisField($data['to'],"owner"),"id",0); + $owntribe = $database->getUserField($database->getVillageField($data['from'],"owner"),"tribe",0); + $targettribe = $database->getUserField($database->getOasisField($data['to'],"owner"),"tribe",0);; + $ownally = $database->getUserField($database->getVillageField($data['from'],"owner"),"alliance",0); + $targetally = $database->getUserField($database->getOasisField($data['to'],"owner"),"alliance",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]; + } + $Defender['hero'] += $enforce['hero']; + } + } + 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'; } + } + } + } + if(!isset($Defender['hero'])){ + $Defender['hero'] = '0'; + } else { + if($Defender['hero']=='' or $Defender['hero']<'0'){ + $Defender['hero'] = '0'; + } + } + //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,44); + for($i=$start;$i<=$end;$i++) { + $y = $i-$u; + $Attacker['u'.$i] = $dataarray[$data_num]['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[$data_num]['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[$data_num]['attack_type'] == 1){ + $type = 1; + $scout = 1; + } + if($dataarray[$data_num]['attack_type'] == 2){ + $type = 2; + } + if($dataarray[$data_num]['attack_type'] == 3){ + $type = 3; + } + if($dataarray[$data_num]['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"; + + } + + if(PEACE == 0 || $targettribe == 4 || $targettribe == 5){ + if($targettribe == 1){ + $def_spy = $Defender['u4']; + }elseif($targettribe == 2){ + $def_spy = $Defender['u14']; + }elseif($targettribe == 3){ + $def_spy = $Defender['u23']; + }elseif($targettribe == 5){ + $def_spy = $Defender['u54']; + } + if(!$scout or $def_spy > 0){ + $traps = $Defender['u99']-$Defender['u99o']; + for($i=1;$i<=11;$i++){ + $traps1 = $traps; + if($data['t'.$i] < $traps1){ + $traps1 = $data['t'.$i]; + } + ${traped.$i}=$traps1; + $traps -= $traps1; + $database->modifyUnit($data['to'],array("99o"),array($traps1),array(1)); + } + for($i=$start;$i<=$end;$i++) { + $j = $i-$start+1; + $Attacker['u'.$i] -= ${traped.$j}; + } + $Attacker['uhero'] -= $traped11; + $totaltraped_att = $traped1+$traped2+$traped3+$traped4+$traped5+$traped6+$traped7+$traped8+$traped9+$traped10+$traped11; + if($totaltraped_att > 0){ + $prisoners2 = $database->getPrisoners2($data['to'],$data['from']); + if(empty($prisoners2)){ + $database->addPrisoners($data['to'],$data['from'],$traped1,$traped2,$traped3,$traped4,$traped5,$traped6,$traped7,$traped8,$traped9,$traped10,$traped11); + }else{ + $database->updatePrisoners($data['to'],$data['from'],$traped1,$traped2,$traped3,$traped4,$traped5,$traped6,$traped7,$traped8,$traped9,$traped10,$traped11); + } + } + } + $battlepart = $battle->calculateBattle($Attacker,$Defender,$def_wall,$att_tribe,$def_tribe,$residence,$attpop,$defpop,$type,$def_ab1,$def_ab2,$def_ab3,$def_ab4,$def_ab5,$def_ab6,$def_ab7,$def_ab8,$att_ab1,$att_ab2,$att_ab3,$att_ab4,$att_ab5,$att_ab6,$att_ab7,$att_ab8,$tblevel,$stonemason,$walllevel,$AttackerID,$DefenderID,$AttackerWref,$DefenderWref); + + //units attack string for battleraport + $unitssend_att = ''.$data['t1'].','.$data['t2'].','.$data['t3'].','.$data['t4'].','.$data['t5'].','.$data['t6'].','.$data['t7'].','.$data['t8'].','.$data['t9'].','.$data['t10'].''; + $herosend_att = $data['t11']; + if ($herosend_att>0){ + $unitssend_att_check=$unitssend_att.','.$data['t11']; + }else{ + $unitssend_att_check=$unitssend_att; + } + //units defence string for battleraport + $enforcementarray2 = $database->getEnforceVillage($data['to'],0); + if(count($enforcementarray2) > 0) { + foreach($enforcementarray2 as $enforce2) { + $Defender['hero'] += $enforce2['hero']; + } + } + $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['u36'].','.$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'].''; + $herosend_def = $Defender['hero']; + $totalsend_alldef[1] = $Defender['u1']+$Defender['u2']+$Defender['u3']+$Defender['u4']+$Defender['u5']+$Defender['u6']+$Defender['u7']+$Defender['u8']+$Defender['u9']+$Defender['u10']; + $totalsend_alldef[2] = $Defender['u11']+$Defender['u12']+$Defender['u13']+$Defender['u14']+$Defender['u15']+$Defender['u16']+$Defender['u17']+$Defender['u18']+$Defender['u19']+$Defender['u20']; + $totalsend_alldef[3] = $Defender['u21']+$Defender['u22']+$Defender['u23']+$Defender['u24']+$Defender['u25']+$Defender['u26']+$Defender['u27']+$Defender['u28']+$Defender['u29']+$Defender['u30']; + $totalsend_alldef[4] = $Defender['u31']+$Defender['u32']+$Defender['u33']+$Defender['u34']+$Defender['u35']+$Defender['u36']+$Defender['u37']+$Defender['u38']+$Defender['u39']+$Defender['u40']; + $totalsend_alldef[5] = $Defender['u41']+$Defender['u42']+$Defender['u43']+$Defender['u44']+$Defender['u45']+$Defender['u46']+$Defender['u47']+$Defender['u48']+$Defender['u49']+$Defender['u50']; + + $totalsend_alldef = $totalsend_alldef[1]+$totalsend_alldef[2]+$totalsend_alldef[3]+$totalsend_alldef[4]+$totalsend_alldef[5]+$herosend_def; + + $unitssend_deff[1] = '?,?,?,?,?,?,?,?,?,?,'; + $unitssend_deff[2] = '?,?,?,?,?,?,?,?,?,?,'; + $unitssend_deff[3] = '?,?,?,?,?,?,?,?,?,?,'; + $unitssend_deff[4] = '?,?,?,?,?,?,?,?,?,?,'; + $unitssend_deff[5] = '?,?,?,?,?,?,?,?,?,?,'; + //how many troops died? for battleraport + + ################################################# + ################FIXED BY SONGER################ + ################################################# + + for($i=1;$i<=11;$i++){ + if($battlepart['casualties_attacker'][$i] <= 0) { ${dead.$i} = 0; }elseif($battlepart['casualties_attacker'][$i] > $data['t'.$i]){ + ${dead.$i}=$data['t'.$i]; + }else { ${dead.$i} = $battlepart['casualties_attacker'][$i]; } + } + + ################################################# + + $heroAttackDead=$dead11; + //kill own defence + $q = "SELECT * FROM ".TB_PREFIX."units WHERE vref='".$data['to']."'"; + $unitlist = $database->query_return($q); + $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)); + } + } + $dead['hero']='0'; + if($unitlist){ + $dead['hero']+=$battlepart['deadherodef']; + $database->modifyUnit($data['to'],array("hero"),array($battlepart['deadherodef']),array(0)); + } + //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'; + if($enforce['from'] != 0){ + $tribe = $database->getUserField($database->getVillageField($enforce['from'],"owner"),"tribe",0); + }else{ + $tribe = 4; + } + $start = ($tribe-1)*10+1; + $totalreinfunits = 0; + for($i=1;$i<=50;$i++) { + $totalreinfunits += $enforce['u'.$i]; + } + if($totalreinfunits > 0){ + 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]); + $checkpoint=round($battlepart[2]*$enforce['u'.$i]); + if($checkpoint!=$enforce['u'.$i]){ + $wrong='1'; + } + } else { + $dead[$i]='0'; + } + } + } + if($enforce['hero']>'0'){ + $database->modifyEnforce($enforce['id'],"hero",$battlepart['deadheroref'][$enforce['id']],0); + $dead['hero']+=$battlepart['deadheroref'][$enforce['id']]; + if($dead['hero']!=$enforce['hero']){ + $wrong='1'; + } + } + $notlife= ''.$dead[$start].','.$dead[$start+1].','.$dead[$start+2].','.$dead[$start+3].','.$dead[$start+4].','.$dead[$start+5].','.$dead[$start+6].','.$dead[$start+7].','.$dead[$start+8].','.$dead[$start+9].''; + $notlife1 = $dead[$start]+$dead[$start+1]+$dead[$start+2]+$dead[$start+3]+$dead[$start+4]+$dead[$start+5]+$dead[$start+6]+$dead[$start+7]+$dead[$start+8]+$dead[$start+9]; + $life= ''.$enforce['u'.$start.''].','.$enforce['u'.($start+1).''].','.$enforce['u'.($start+2).''].','.$enforce['u'.($start+3).''].','.$enforce['u'.($start+4).''].','.$enforce['u'.($start+5).''].','.$enforce['u'.($start+6).''].','.$enforce['u'.($start+7).''].','.$enforce['u'.($start+8).''].','.$enforce['u'.($start+9).''].''; + $life1 = $enforce['u'.$start.'']+$enforce['u'.($start+1).'']+$enforce['u'.($start+2).'']+$enforce['u'.($start+3).'']+$enforce['u'.($start+4).'']+$enforce['u'.($start+5).'']+$enforce['u'.($start+6).'']+$enforce['u'.($start+7).'']+$enforce['u'.($start+8).'']+$enforce['u'.($start+9).'']; + $lifehero = $enforce['hero']; + $notlifehero = $dead['hero']; + $totallife = $enforce['hero']+$life1; + $totalnotlife = $dead['hero']+$notlife1; + $totalsend_att = $data['t1']+$data['t2']+$data['t3']+$data['t4']+$data['t5']+$data['t6']+$data['t7']+$data['t8']+$data['t9']+$data['t10']+$data['t11']; + $totaldead_att = $dead1+$dead2+$dead3+$dead4+$dead5+$dead6+$dead7+$dead8+$dead9+$dead10+$dead11; + //NEED TO SEND A RAPPORTAGE!!! + $data2 = ''.$database->getVillageField($enforce['from'],"owner").','.$to['wref'].','.addslashes($to['name']).','.$tribe.','.$life.','.$notlife.','.$lifehero.','.$notlifehero.''; + if($scout){ + if($totaldead_att > 0){ + if($totaldead_att == $totalsend_att){ + $database->addNotice($database->getVillageField($enforce['from'],"owner"),$from['wref'],$ownally,15,'Reinforcement in '.addslashes($to['name']).' was attacked',$data2,$AttackArrivalTime); + }else{ + $database->addNotice($database->getVillageField($enforce['from'],"owner"),$from['wref'],$ownally,16,'Reinforcement in '.addslashes($to['name']).' was attacked',$data2,$AttackArrivalTime); + } + } + }else{ + if($totalnotlife == 0){ + $database->addNotice($database->getVillageField($enforce['from'],"owner"),$from['wref'],$ownally,15,'Reinforcement in '.addslashes($to['name']).' was attacked',$data2,$AttackArrivalTime); + }else if($totallife > $totalnotlife){ + $database->addNotice($database->getVillageField($enforce['from'],"owner"),$from['wref'],$ownally,16,'Reinforcement in '.addslashes($to['name']).' was attacked',$data2,$AttackArrivalTime); + }else{ + $database->addNotice($database->getVillageField($enforce['from'],"owner"),$from['wref'],$ownally,17,'Reinforcement in '.addslashes($to['name']).' was attacked',$data2,$AttackArrivalTime); + } + //delete reinf sting when its killed all. + if($wrong=='0'){ $database->deleteReinf($enforce['id']); } + } + } + } + $totalsend_att = $data['t1']+$data['t2']+$data['t3']+$data['t4']+$data['t5']+$data['t6']+$data['t7']+$data['t8']+$data['t9']+$data['t10']+$data['t11']; + + $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] = '?,?,?,?,?,?,?,?,?,?,'; + $deadhero = $dead['hero']; + + $totaldead_alldef[1] = $dead['1']+$dead['2']+$dead['3']+$dead['4']+$dead['5']+$dead['6']+$dead['7']+$dead['8']+$dead['9']+$dead['10']; + $totaldead_alldef[2] = $dead['11']+$dead['12']+$dead['13']+$dead['14']+$dead['15']+$dead['16']+$dead['17']+$dead['18']+$dead['19']+$dead['20']; + $totaldead_alldef[3] = $dead['21']+$dead['22']+$dead['23']+$dead['24']+$dead['25']+$dead['26']+$dead['27']+$dead['28']+$dead['29']+$dead['30']; + $totaldead_alldef[4] = $dead['31']+$dead['32']+$dead['33']+$dead['34']+$dead['35']+$dead['36']+$dead['37']+$dead['38']+$dead['39']+$dead['40']; + $totaldead_alldef[5] = $dead['41']+$dead['42']+$dead['43']+$dead['44']+$dead['45']+$dead['46']+$dead['47']+$dead['48']+$dead['49']+$dead['50']; + + $totaldead_alldef = $totaldead_alldef[1]+$totaldead_alldef[2]+$totaldead_alldef[3]+$totaldead_alldef[4]+$totaldead_alldef[5]+$deadhero; + $totalattackdead += $totaldead_alldef; + + + // 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); + $database->modifyAttack($data['ref'],11,$dead11); + $unitsdead_att = ''.$dead1.','.$dead2.','.$dead3.','.$dead4.','.$dead5.','.$dead6.','.$dead7.','.$dead8.','.$dead9.','.$dead10.''; + + $database->modifyAttack($data['ref'],1,$traped1); + $database->modifyAttack($data['ref'],2,$traped2); + $database->modifyAttack($data['ref'],3,$traped3); + $database->modifyAttack($data['ref'],4,$traped4); + $database->modifyAttack($data['ref'],5,$traped5); + $database->modifyAttack($data['ref'],6,$traped6); + $database->modifyAttack($data['ref'],7,$traped7); + $database->modifyAttack($data['ref'],8,$traped8); + $database->modifyAttack($data['ref'],9,$traped9); + $database->modifyAttack($data['ref'],10,$traped10); + $database->modifyAttack($data['ref'],11,$traped11); + $unitstraped_att = ''.$traped1.','.$traped2.','.$traped3.','.$traped4.','.$traped5.','.$traped6.','.$traped7.','.$traped8.','.$traped9.','.$traped10.','.$traped11.''; + if ($herosend_att>0){ + $unitsdead_att_check = $unitsdead_att.','.$dead11; + }else{ + $unitsdead_att_check = $unitsdead_att; + } + //$unitsdead_def = ''.$dead11.','.$dead12.','.$dead13.','.$dead14.','.$dead15.','.$dead16.','.$dead17.','.$dead18.','.$dead19.','.$dead20.''; + + + //top 10 attack and defence update + $totaldead_att = $dead1+$dead2+$dead3+$dead4+$dead5+$dead6+$dead7+$dead8+$dead9+$dead10+$dead11; + $totalattackdead += $totaldead_att; + $troopsdead1 = $dead1; + $troopsdead2 = $dead2; + $troopsdead3 = $dead3; + $troopsdead4 = $dead4; + $troopsdead5 = $dead5; + $troopsdead6 = $dead6; + $troopsdead7 = $dead7; + $troopsdead8 = $dead8; + $troopsdead9 = $dead9+1; + $troopsdead10 = $dead10; + $troopsdead11 = $dead11; + for($i=1;$i<=50;$i++) { + $totaldead_def += $dead[''.$i.'']; + } + $totaldead_def += $dead['hero']; + if ($Attacker['uhero'] != 0){ + $heroxp = $totaldead_def; + $database->modifyHeroXp("experience",$heroxp,$from['owner']); + } + if($Defender['hero'] > 0){ + $defheroxp = $totaldead_att; + $database->modifyHeroXp("experience",$defheroxp,$toF['owner']); + } + $enforcementarray1 = $database->getEnforceVillage($to['wref'],0); + if(count($enforcementarray1) > 0) { + foreach($enforcementarray1 as $enforce1) { + if($enforce1['hero'] > 0){ + $enforceowner = $database->getVillageField($enforce1['from'],"owner"); + $reinfheroxp = $totaldead_att; + $database->modifyHeroXp("experience",$reinfheroxp,$enforceowner); + } + } + } + $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_CAPACITY; + } + } + + //cranny efficiency + $atk_bonus = ($owntribe == 2)? (4/5) : 1; + $def_bonus = ($targettribe == 3)? 2 : 1; + $to_owner = $database->getVillageField($data['to'],"owner"); + $artefact_2 = count($database->getOwnUniqueArtefactInfo2($to_owner,7,3,0)); + $artefact1_2 = count($database->getOwnUniqueArtefactInfo2($data['to'],7,1,1)); + $artefact2_2 = count($database->getOwnUniqueArtefactInfo2($to_owner,7,2,0)); + if($artefact_2 > 0){ + $artefact_bouns = 6; + }else if($artefact1_2 > 0){ + $artefact_bouns = 3; + }else if($artefact2_2 > 0){ + $artefact_bouns = 2; + }else{ + $artefact_bouns = 1; + } + $foolartefact = $database->getFoolArtefactInfo(7,$vid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $cranny_eff *= $arte['effect2']; + }else{ + $cranny_eff /= $arte['effect2']; + $cranny_eff = round($cranny_eff); + } + } + } + $cranny_eff = ($cranny * $atk_bonus)*$def_bonus*$artefact_bouns; + + // 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; + } + } + } + + if ($isoasis == 0) { + $database->modifyResource($data["to"], $steal[0], $steal[1], $steal[2], $steal[3], false); + $this->pruneResource(); + } else { + $database->modifyOasisResource($data["to"], $steal[0], $steal[1], $steal[2], $steal[3], false); + $this->pruneOResource(); + } + + //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']; + } + } + if ($herosend_att>0){ + $qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$from['owner'].""; + $resulth = mysql_query($qh); + $hero_f=mysql_fetch_array($resulth); + $hero_unit=$hero_f['unit']; + $speeds[] = $GLOBALS['u'.$hero_unit]['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))); + if($walllevel == $totallvl){ + $info_ram = "".$ram_pic.",Wall was not damaged."; + }else{ + $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') + { + $pop=$this->recountPop($data['to']); + if($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 && $rand != 31 && $rand != 32 && $rand != 33) + { + $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 && $rand != 31 && $rand != 32 && $rand != 33) + { + $list[$j]=$i; + $j++; + } + } + $rand=rand(1, $j); + $rand=$list[$rand]; + } + + $tblevel = $bdo['f'.$rand]; + $tbgid = $bdo['f'.$rand.'t']; + $tbid = $rand; + if ($battlepart[4]>$battlepart[3]) + { + $info_cat = "".$catp_pic.", ".$this->procResType($tbgid)." destroyed."; + $database->setVillageLevel($data['to'],"f".$tbid."",'0'); + if($tbid>=19 && $tbid!=99) { $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); + } + if ($tbgid==18){ + $this->updateMax($database->getVillageField($data['to'],'owner')); + } + $pop=$this->recountPop($data['to']); + $capital = $database->getVillage($data['to']); + if($pop=='0' && $capital['capital']=='0') + { + $village_destroyed = 1; + } + } + elseif ($battlepart[4]==0) + { + $info_cat = "".$catp_pic.",".$this->procResType($tbgid)." was not damaged."; + } + else + { + $demolish=$battlepart[4]/$battlepart[3]; + $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); + } + if ($tbgid==18){ + $this->updateMax($database->getVillageField($data['to'],'owner')); + } + $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 && $rand != 31 && $rand != 32 && $rand != 33) + { + $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 && $rand != 31 && $rand != 32 && $rand != 33) + { + $j++; + $list[$j]=$i; + } + } + $rand=rand(1, $j); + $rand=$list[$rand]; + } + + $tblevel = $bdo['f'.$rand]; + $tbgid = $bdo['f'.$rand.'t']; + $tbid = $rand; + if ($battlepart[4]>$battlepart[3]) + { + $info_cat = "".$catp_pic.", ".$this->procResType($tbgid)." destroyed."; + $database->setVillageLevel($data['to'],"f".$tbid."",'0'); + if($tbid>=19 && $tbid!=99) { $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); + } + if ($tbgid==18){ + $this->updateMax($database->getVillageField($data['to'],'owner')); + } + $pop=$this->recountPop($data['to']); + if($pop=='0') + { + $varray = $database->getProfileVillages($to['owner']); + if(count($varray)!='1' AND $to['capital']!='1'){ + $village_destroyed = 1; + } + } + } + elseif ($battlepart[4]==0) + { + $info_cat = "".$catp_pic.",".$this->procResType($tbgid)." was not damaged."; + } + else + { + $demolish=$battlepart[4]/$battlepart[3]; + $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); + } + if ($tbgid==18){ + $this->updateMax($database->getVillageField($data['to'],'owner')); + } + $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 && $rand != 31 && $rand != 32 && $rand != 33) + { + $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 ($battlepart[4]>$battlepart[3]) + { + $info_cat .= "
Information + \"Catapult\" ".$this->procResType($tbgid)." destroyed."; + $database->setVillageLevel($data['to'],"f".$tbid."",'0'); + if($tbid>=19 && $tbid!=99) { $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); + } + if ($tbgid==18){ + $this->updateMax($database->getVillageField($data['to'],'owner')); + } + $pop=$this->recountPop($data['to']); + if($pop=='0') + { + $varray = $database->getProfileVillages($to['owner']); + if(count($varray)!='1' AND $to['capital']!='1'){ + $village_destroyed = 1; + } + } + } + elseif ($battlepart[4]==0) + { + $info_cat .= "
Information + \"Catapult\" ".$this->procResType($tbgid)." was not damaged."; + } + else + { + $demolish=$battlepart[4]/$battlepart[3]; + $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); + } + if ($tbgid==18){ + $this->updateMax($database->getVillageField($data['to'],'owner')); + } + $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){ + + $palacelevel = $database->getResourceLevel($from['wref']); + for($i=1;$i<=40;$i++) { + if($palacelevel['f'.$i.'t'] == 26){ + $plevel = $i; + }else if($palacelevel['f'.$i.'t'] == 25){ + $plevel = $i; + } + } + if($palacelevel['f'.$plevel.'t'] == 26){ + if($palacelevel['f'.$plevel] < 10){ + $canconquer = 0; + } + elseif($palacelevel['f'.$plevel] < 15){ + $canconquer = 1; + } + elseif($palacelevel['f'.$plevel] < 20){ + $canconquer = 2; + } + else{ + $canconquer = 3; + } + }else if($palacelevel['f'.$plevel.'t'] == 25){ + if($palacelevel['f'.$plevel] < 10){ + $canconquer = 0; + } + elseif($palacelevel['f'.$plevel] < 20){ + $canconquer = 1; + } + else{ + $canconquer = 2; + } + } + + $exp1 = $database->getVillageField($from['wref'],'exp1'); + $exp2 = $database->getVillageField($from['wref'],'exp2'); + $exp3 = $database->getVillageField($from['wref'],'exp3'); + if($exp1 == 0){ + $villexp = 0; + } + elseif($exp2 == 0){ + $villexp = 1; + } + elseif($exp3 == 0){ + $villexp = 2; + } + else{ + $villexp = 3; + } + $varray = $database->getProfileVillages($to['owner']); + $varray1 = count($database->getProfileVillages($from['owner'])); + $mode = CP; + $cp_mode = $GLOBALS['cp'.$mode]; + $need_cps = $cp_mode[$varray1+1]; + $user_cps = $database->getUserField($from['owner'],"cp",0); + //kijken of laatste dorp is, of hoofddorp + if($user_cps >= $need_cps){ + if(count($varray)!='1' AND $to['capital']!='1' AND $villexp < $canconquer){ + if($to['owner']!=3 OR $to['name']!='WW Buildingplan'){ + //if there is no Palace/Residence + for ($i=18; $i<39; $i++){ + if ($database->getFieldLevel($data['to'],"".$i."t")==25 or $database->getFieldLevel($data['to'],"".$i."t")==26){ + $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."; + if($this->getTypeLevel(35,$data['from']) == 0){ + for ($i=0; $i<($data['t9']-$dead9); $i++){ + if($owntribe == 1){ + $rand+=rand(20,30); + }else{ + $rand+=rand(20,25); + } + } + }else{ + for ($i=0; $i<($data['t9']-$dead9); $i++){ + $rand+=rand(5,15); + } + } + //loyalty is more than 0 + if(($toF['loyalty']-$rand)>0){ + $info_chief = "".$chief_pic.",The loyalty was lowered from ".floor($toF['loyalty'])." to ".floor($toF['loyalty']-$rand)."."; + $database->setVillageField($data['to'],loyalty,($toF['loyalty']-$rand)); + } else { + //you took over the village + $villname = addslashes($database->getVillageField($data['to'],"name")); + $artifact = $database->getOwnArtefactInfo($data['to']); + $info_chief = "".$chief_pic.",Inhabitants of ".$villname." village 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,0); + $database->setVillageField($data['to'],owner,$database->getVillageField($data['from'],"owner")); + //delete upgrades in armory and blacksmith + $q = "DELETE FROM ".TB_PREFIX."abdata WHERE vref = ".$data['to'].""; + $database->query($q); + $database->addABTech($data['to']); + //delete researches in academy + $q = "DELETE FROM ".TB_PREFIX."tdata WHERE vref = ".$data['to'].""; + $database->query($q); + $database->addTech($data['to']); + //delete reinforcement + $q = "DELETE FROM ".TB_PREFIX."enforcement WHERE from = ".$data['to'].""; + $database->query($q); + // check buildings + $pop1 = $database->getVillageField($data['from'],"pop"); + $pop2 = $database->getVillageField($data['to'],"pop"); + if($pop1 > $pop2){ + $buildlevel = $database->getResourceLevel($data['to']); + for ($i=1; $i<=39; $i++){ + if($buildlevel['f'.$i]!=0){ + if($buildlevel['f'.$i."t"]!=35 && $buildlevel['f'.$i."t"]!=36 && $buildlevel['f'.$i."t"]!=41){ + $leveldown = $buildlevel['f'.$i]-1; + $database->setVillageLevel($data['to'],"f".$i,$leveldown); + }else{ + $database->setVillageLevel($data['to'],"f".$i,0); + $database->setVillageLevel($data['to'],"f".$i."t",0); + } + } + } + if($buildlevel['f99']!=0){ + $leveldown = $buildlevel['f99']-1; + $database->setVillageLevel($data['to'],"f99",$leveldown); + } + } + //destroy wall + $database->setVillageLevel($data['to'],"f40",0); + $database->setVillageLevel($data['to'],"f40t",0); + $database->clearExpansionSlot($data['to']); + + + $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); + $chiefing_village = 1; + + } + } + } else { + $info_chief = "".$chief_pic.",You cant take over this village."; + } + } else { + $info_chief = "".$chief_pic.",You cant take over this village."; + } + } else { + $info_chief = "".$chief_pic.",Not enough culture points."; + } + unset($plevel); + } + +if($data['t11'] > 0){ + if ($isoasis != 0) { + if ($database->canConquerOasis($data['from'],$data['to'])) { + if($unitssend_def[1] == '0,0,0,0,0,0,0,0,0,0' and $unitssend_def[2] == '0,0,0,0,0,0,0,0,0,0' and $unitssend_def[3] == '0,0,0,0,0,0,0,0,0,0' and $unitssend_def[4] == '0,0,0,0,0,0,0,0,0,0' and $unitssend_def[5] == '0,0,0,0,0,0,0,0,0,0'){ + $database->conquerOasis($data['from'],$data['to']); + $info_chief = $hero_pic.",Your hero has conquered this oasis"; + } + } 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($data['from'],$artifact['vref'],$artifact['size'],$artifact['type'])) { + $database->claimArtefact($data['from'],$data['to'],$database->getVillageField($data['from'],"owner")); + $info_chief = $hero_pic.",Your hero is carrying home a artefact and gained ".$heroxp." XP from the battle"; + } else { + $info_chief = $hero_pic.",Your hero could not claim the artefact 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){ + $resarray = $database->getResourceLevel($data['to']); + + + $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($data['to'],$j); + + } + } + for($j=19;$j<=40;$j++) { + if($resarray['f'.$j.'t'] == 31 || $resarray['f'.$j.'t'] == 32 || $resarray['f'.$j.'t'] == 33) { + + $walllevel = $database->getFieldLevel($data['to'],$j); + + } + } + for($j=19;$j<=40;$j++) { + if($resarray['f'.$j.'t'] == 23) { + + $crannylevel = $database->getFieldLevel($data['to'],$j); + + } + } + }else { + $crannylevel =0; + $walllevel =0; + $rplevel =0; + } +$palaceimg = "\"Palace\""; +$crannyimg = "\"Cranny\""; + $info_spy = "".$spy_pic.",".$palaceimg." Residance/Palace Level : ".$rplevel." +
".$crannyimg." Cranny level: ".$crannylevel."

Wall Level : ".$walllevel.""; + + } + + $data2 = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.',0,0,0,0,0,'.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_def[1].','.$unitsdead_def[1].','.$ger.','.$unitssend_def[2].','.$unitsdead_def[2].','.$gal.','.$unitssend_def[3].','.$unitsdead_def[3].','.$nat.','.$unitssend_def[4].','.$unitsdead_def[4].','.$natar.','.$unitssend_def[5].','.$unitsdead_def[5].','.$info_ram.','.$info_cat.','.$info_chief.','.$info_spy.',,'.$data['t11'].','.$dead11.','.$herosend_def.','.$deadhero.','.$unitstraped_att; + } + 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.',,'.$data['t11'].','.$dead11.','.$herosend_def.','.$deadhero.','.$unitstraped_att; + } + + + + + + // When all troops die, sends no info. + $data_fail = ''.$from['owner'].','.$from['wref'].','.$owntribe.','.$unitssend_att.','.$unitsdead_att.','.$steal[0].','.$steal[1].','.$steal[2].','.$steal[3].','.$battlepart['bounty'].','.$to['owner'].','.$to['wref'].','.addslashes($to['name']).','.$targettribe.',,,'.$rom.','.$unitssend_deff[1].','.$unitsdead_deff[1].','.$ger.','.$unitssend_deff[2].','.$unitsdead_deff[2].','.$gal.','.$unitssend_deff[3].','.$unitsdead_deff[3].','.$nat.','.$unitssend_deff[4].','.$unitsdead_deff[4].','.$natar.','.$unitssend_deff[5].','.$unitsdead_deff[5].',,,'.$data['t11'].','.$dead11.','.$unitstraped_att.',,'; + + //Undetected and detected in here. + if($scout){ + for($i=1;$i<=10;$i++) + { + if($battlepart['casualties_attacker'][$i]){ + if($from['owner'] == 3){ + $database->addNotice($to['owner'],$to['wref'],$targetally,0,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + break; + }else if($unitsdead_att == $unitssend_att){ + $database->addNotice($to['owner'],$to['wref'],$targetally,20,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + break; + }else{ + $database->addNotice($to['owner'],$to['wref'],$targetally,21,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + break; + } + } + } + } + else { + if($type == 3 && $totalsend_att - ($totaldead_att+$totaltraped_att) > 0){ + $prisoners = $database->getPrisoners($to['wref']); + if(count($prisoners) > 0){ + $anothertroops = 0; + foreach($prisoners as $prisoner){ + $p_owner = $database->getVillageField($prisoner['from'],"owner"); + if($p_owner == $from['owner']){ + $database->modifyAttack2($data['ref'],1,$prisoner['t1']); + $database->modifyAttack2($data['ref'],2,$prisoner['t2']); + $database->modifyAttack2($data['ref'],3,$prisoner['t3']); + $database->modifyAttack2($data['ref'],4,$prisoner['t4']); + $database->modifyAttack2($data['ref'],5,$prisoner['t5']); + $database->modifyAttack2($data['ref'],6,$prisoner['t6']); + $database->modifyAttack2($data['ref'],7,$prisoner['t7']); + $database->modifyAttack2($data['ref'],8,$prisoner['t8']); + $database->modifyAttack2($data['ref'],9,$prisoner['t9']); + $database->modifyAttack2($data['ref'],10,$prisoner['t10']); + $database->modifyAttack2($data['ref'],11,$prisoner['t11']); + $mytroops = $prisoner['t1']+$prisoner['t2']+$prisoner['t3']+$prisoner['t4']+$prisoner['t5']+$prisoner['t6']+$prisoner['t7']+$prisoner['t8']+$prisoner['t9']+$prisoner['t10']+$prisoner['t11']; + $newtraps = round($mytroops/3); + $database->modifyUnit($data['to'],array("99"),array($newtraps),array(0)); + $database->modifyUnit($data['to'],array("99o"),array($mytroops),array(0)); + }else{ + $p_alliance = $database->getUserField($p_owner,"alliance",0); + $friendarray = $database->getAllianceAlly($p_alliance,1); + $neutralarray = $database->getAllianceAlly($p_alliance,2); + $friend = (($friendarray[0]['alli1']>0 and $friendarray[0]['alli2']>0 and $p_alliance>0) and ($friendarray[0]['alli1']==$ownally or $friendarray[0]['alli2']==$ownally) and ($ownally != $p_alliance and $ownally and $p_alliance)) ? '1':'0'; + $neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $p_alliance>0) and ($neutralarray[0]['alli1']==$ownally or $neutralarray[0]['alli2']==$ownally) and ($ownally != $p_alliance and $ownally and $p_alliance)) ? '1':'0'; + if($p_alliance == $ownally or $friend == 1 or $neutral == 1){ + $p_tribe = $database->getUserField($p_owner,"tribe",0); + + $p_eigen = $database->getCoor($prisoner['wref']); + $p_from = array('x'=>$p_eigen['x'], 'y'=>$p_eigen['y']); + $p_ander = $database->getCoor($prisoner['from']); + $p_to = array('x'=>$p_ander['x'], 'y'=>$p_ander['y']); + $p_tribe = $database->getUserField($p_owner,"tribe",0); + + $p_speeds = array(); + + //find slowest unit. + for($i=1;$i<=10;$i++){ + if ($prisoner['t'.$i]){ + if($prisoner['t'.$i] != '' && $prisoner['t'.$i] > 0){ + if($p_unitarray) { reset($p_unitarray); } + $p_unitarray = $GLOBALS["u".(($p_tribe-1)*10+$i)]; + $p_speeds[] = $p_unitarray['speed']; + } + } + } + + if ($prisoner['t11']>0){ + $p_qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$p_owner.""; + $p_resulth = mysql_query($p_qh); + $p_hero_f=mysql_fetch_array($p_resulth); + $p_hero_unit=$p_hero_f['unit']; + $p_speeds[] = $GLOBALS['u'.$p_hero_unit]['speed']; + } + + $p_artefact = count($database->getOwnUniqueArtefactInfo2($p_owner,2,3,0)); + $p_artefact1 = count($database->getOwnUniqueArtefactInfo2($prisoner['from'],2,1,1)); + $p_artefact2 = count($database->getOwnUniqueArtefactInfo2($p_owner,2,2,0)); + if($p_artefact > 0){ + $p_fastertroops = 3; + }else if($p_artefact1 > 0){ + $p_fastertroops = 2; + }else if($p_artefact2 > 0){ + $p_fastertroops = 1.5; + }else{ + $p_fastertroops = 1; + } + $p_time = round($this->procDistanceTime($p_to,$p_from,min($p_speeds),1)/$p_fastertroops); + $foolartefact1 = $database->getFoolArtefactInfo(2,$prisoner['from'],$p_owner); + if(count($foolartefact1) > 0){ + foreach($foolartefact1 as $arte){ + if($arte['bad_effect'] == 1){ + $p_time *= $arte['effect2']; + }else{ + $p_time /= $arte['effect2']; + $p_time = round($p_time); + } + } + } + $p_reference = $database->addAttack($prisoner['from'],$prisoner['t1'],$prisoner['t2'],$prisoner['t3'],$prisoner['t4'],$prisoner['t5'],$prisoner['t6'],$prisoner['t7'],$prisoner['t8'],$prisoner['t9'],$prisoner['t10'],$prisoner['t11'],3,0,0,0,0,0,0,0,0,0,0,0); + $database->addMovement(4,$prisoner['wref'],$prisoner['from'],$p_reference,microtime(true),($p_time+microtime(true))); + $anothertroops += $prisoner['t1']+$prisoner['t2']+$prisoner['t3']+$prisoner['t4']+$prisoner['t5']+$prisoner['t6']+$prisoner['t7']+$prisoner['t8']+$prisoner['t9']+$prisoner['t10']+$prisoner['t11']; + $newtraps = (round($anothertroops/3))*2; + $database->modifyUnit($data['to'],array("99"),array($newtraps),array(0)); + $database->modifyUnit($data['to'],array("99o"),array($anothertroops),array(0)); + } + } + $database->deletePrisoners($prisoner['id']); + } + $trapper_pic = "\"Trap\""; + $p_username = $database->getUserField($from['owner'],"username",0); + if($mytroops > 0 && $anothertroops > 0){ + $info_trap = "".$trapper_pic." ".$p_username." released ".$mytroops." from his troops and ".$anothertroops." friendly troops."; + }elseif($mytroops > 0){ + $info_trap = "".$trapper_pic." ".$p_username." released ".$mytroops." from his troops."; + }elseif($anothertroops > 0){ + $info_trap = "".$trapper_pic." ".$p_username." released ".$anothertroops." friendly troops."; + } + } + } + $data2 = $data2.','.addslashes($info_trap).',,'; + if($totalsend_alldef == 0){ + $database->addNotice($to['owner'],$to['wref'],$targetally,7,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + }else if($totaldead_alldef == 0){ + $database->addNotice($to['owner'],$to['wref'],$targetally,4,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + }else if($totalsend_alldef > $totaldead_alldef){ + $database->addNotice($to['owner'],$to['wref'],$targetally,5,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + }else if($totalsend_alldef == $totaldead_alldef){ + $database->addNotice($to['owner'],$to['wref'],$targetally,6,''.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($totalsend_att - ($totaldead_att+$totaltraped_att) > 0) + { + $artefact = count($database->getOwnUniqueArtefactInfo2($from['owner'],2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($from['wref'],2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($from['owner'],2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $endtime = round($this->procDistanceTime($from,$to,min($speeds),1)/$fastertroops); + $foolartefact2 = $database->getFoolArtefactInfo(2,$from['wref'],$from['owner']); + if(count($foolartefact2) > 0){ + foreach($foolartefact2 as $arte){ + if($arte['bad_effect'] == 1){ + $endtime *= $arte['effect2']; + }else{ + $endtime /= $arte['effect2']; + $endtime = round($endtime); + } + } + } + $endtime += $AttackArrivalTime; + if($type == 1) { + $database->addNotice($from['owner'],$to['wref'],$ownally,18,''.addslashes($from['name']).' scouts '.addslashes($to['name']).'',$data2,$AttackArrivalTime); + }else { + if ($totaldead_att == 0 && $totaltraped_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']); + if($chiefing_village != 1 && $village_destroyed != 1){ + $database->addMovement(4,$to['wref'],$from['wref'],$data['ref'],$AttackArrivalTime,$endtime); + // send the bounty on type 6. + if($type !== 1) + { + $reference = $database->sendResource($steal[0],$steal[1],$steal[2],$steal[3],0,0); + $database->addMovement(6,$to['wref'],$from['wref'],$reference,$AttackArrivalTime,$endtime,1,0,0,0,0,$data['ref']); + $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 if($chiefing_village == 1){ + $database->addEnforce2($data,$owntribe,$troopsdead1,$troopsdead2,$troopsdead3,$troopsdead4,$troopsdead5,$troopsdead6,$troopsdead7,$troopsdead8,$troopsdead9,$troopsdead10,$troopsdead11); + } + } + else //else they die and don't return or report. + { + $database->setMovementProc($data['moveid']); + if($type == 1){ + $database->addNotice($from['owner'],$to['wref'],$ownally,19,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($type == 3 or $type == 4){ + $database->addGeneralAttack($totalattackdead); + } + if($village_destroyed == 1){ + $varray = $database->getProfileVillages($to['owner']); + if(count($varray)!='1' AND $to['capital']!='1'){ + $database->clearExpansionSlot($data['to']); + $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 from = ".$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."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."farmlist where wref =".$village; + $database->query($q); + $q = "DELETE FROM ".TB_PREFIX."raidlist where towref = ".$village; + $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); + $getmovement = $database->getMovement(3,$data['to'],1); + foreach($getmovement as $movedata) { + $time = microtime(true); + $time2 = $time - $movedata['starttime']; + $database->setMovementProc($data['moveid']); + $database->addMovement(4,$movedata['to'],$movedata['from'],$movedata['ref'],$time,$time+$time2); + $database->setMovementProc($movedata['moveid']); + } + $q = "DELETE FROM ".TB_PREFIX."movement where from = ".$data['to']; + $database->query($q); + $getprisoners = $database->getPrisoners($data['to']); + foreach($getprisoners as $pris) { + $troops = 0; + for($i=1;$i<12;$i++){ + $troops += $pris['t'.$i]; + } + $database->modifyUnit($pris['wref'],array("99o"),array($troops),array(0)); + $database->deletePrisoners($pris['id']); + } + $getprisoners = $database->getPrisoners3($data['to']); + foreach($getprisoners as $pris) { + $troops = 0; + for($i=1;$i<12;$i++){ + $troops += $pris['t'.$i]; + } + $database->modifyUnit($pris['wref'],array("99o"),array($troops),array(0)); + $database->deletePrisoners($pris['id']); + } + } + } + }else{ + //units attack string for battleraport + $unitssend_att1 = ''.$data['t1'].','.$data['t2'].','.$data['t3'].','.$data['t4'].','.$data['t5'].','.$data['t6'].','.$data['t7'].','.$data['t8'].','.$data['t9'].','.$data['t10'].''; + $herosend_att = $data['t11']; + $unitssend_att= $unitssend_att1.','.$herosend_att; + + $speeds = array(); + + //find slowest unit. + for($i=1;$i<=10;$i++) + { + if ($data['t'.$i] > 0) { + if($unitarray) { reset($unitarray); } + $unitarray = $GLOBALS["u".(($owntribe-1)*10+$i)]; + $speeds[] = $unitarray['speed']; + } + } + if ($herosend_att>0){ + $qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$from['owner'].""; + $resulth = mysql_query($qh); + $hero_f=mysql_fetch_array($resulth); + $hero_unit=$hero_f['unit']; + $speeds[] = $GLOBALS['u'.$hero_unit]['speed']; + } + $artefact = count($database->getOwnUniqueArtefactInfo2($from['owner'],2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($from['vref'],2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($from['owner'],2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $endtime = round($this->procDistanceTime($from,$to,min($speeds),1)/$fastertroops); + $foolartefact3 = $database->getFoolArtefactInfo(2,$from['wref'],$from['owner']); + if(count($foolartefact3) > 0){ + foreach($foolartefact3 as $arte){ + if($arte['bad_effect'] == 1){ + $endtime *= $arte['effect2']; + }else{ + $endtime /= $arte['effect2']; + $endtime = round($endtime); + } + } + } + $endtime += $AttackArrivalTime; + $endtime += microtime(true); + $database->setMovementProc($data['moveid']); + $database->addMovement(4,$to['wref'],$from['wref'],$data['ref'],$AttackArrivalTime,$endtime); + $peace = PEACE; + $data2 = ''.$from['owner'].','.$from['wref'].','.$to['owner'].','.$owntribe.','.$unitssend_att.','.$peace.''; + $database->addNotice($from['owner'],$to['wref'],$ownally,22,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data2,time()); + $database->addNotice($to['owner'],$to['wref'],$targetally,22,''.addslashes($from['name']).' attacks '.addslashes($to['name']).'',$data2,time()); + } + $crop = $database->getCropProdstarv($to['wref']); + $unitarrays = $this->getAllUnits($to['wref']); + $getvillage = $database->getVillage($to['wref']); + $village_upkeep = $getvillage['pop'] + $this->getUpkeep($unitarrays, 0); + if ($crop < $village_upkeep){ + // add starv data + $database->setVillageField($to['wref'], 'starv', $village_upkeep); + $database->setVillageField($to['wref'], 'starvupdate', time()); + } + unset($crop,$unitarrays,$getvillage,$village_upkeep); + + ################################################# + ################FIXED BY SONGER################ + ################################################# + + ################################################################################ + ##############ISUE: Lag, fixed3#################################################### + #### PHP.NET manual: unset() destroy more than one variable unset($foo1, $foo2, $foo3);###### + ################################################################################ + $data_num++; + unset( + $Attacker + ,$Defender + ,$enforce + ,$unitssend_att + ,$unitssend_def + ,$battlepart + ,$unitlist + ,$unitsdead_def + ,$dead + ,$steal + ,$from + ,$data + ,$data2 + ,$to + ,$artifact + ,$artifactBig + ,$canclaim + ,$data_fail + ,$owntribe + ,$unitsdead_att + ,$herosend_def + ,$deadhero + ,$heroxp + ,$AttackerID + ,$DefenderID + ,$totalsend_att + ,$totalsend_alldef + ,$totaldead_att + ,$totaltraped_att + ,$totaldead_def + ,$unitsdead_att_check + ,$totalattackdead + ,$enforce1 + ,$defheroowner + ,$enforceowner + ,$defheroxp + ,$reinfheroxp + ,$AttackerWref + ,$DefenderWref + ,$troopsdead1 + ,$troopsdead2 + ,$troopsdead3 + ,$troopsdead4 + ,$troopsdead5 + ,$troopsdead6 + ,$troopsdead7 + ,$troopsdead8 + ,$troopsdead9 + ,$troopsdead10 + ,$troopsdead11 + ,$DefenderUnit); + + ################################################# + + } + if(file_exists("GameEngine/Prevention/sendunits.txt")) { + unlink("GameEngine/Prevention/sendunits.txt"); + } + } + + private function sendTroopsBack($post) { + global $form, $database, $village, $generator, $session, $technology; + + $enforce=$database->getEnforceArray($post['ckey'],0); + $to = $database->getVillage($enforce['from']); + $Gtribe = ""; + if ($database->getUserField($to['owner'],'tribe',0) == '2'){ $Gtribe = "1"; } else if ($database->getUserField($to['owner'],'tribe',0) == '3'){ $Gtribe = "2"; } else if ($database->getUserField($to['owner'],'tribe',0) == '4'){ $Gtribe = "3"; }else if ($database->getUserField($to['owner'],'tribe',0) == '5'){ $Gtribe = "4"; } + + for($i=1; $i<10; $i++){ + if(isset($post['t'.$i])){ + if($i!=10){ + if ($post['t'.$i] > $enforce['u'.$Gtribe.$i]) + { + $form->addError("error","You can't send more units than you have"); + break; + } + + if($post['t'.$i]<0) + { + $form->addError("error","You can't send negative units."); + break; + } + } + } else { + $post['t'.$i.'']='0'; + } + } + if(isset($post['t11'])){ + if ($post['t11'] > $enforce['hero']) + { + $form->addError("error","You can't send more units than you have"); + break; + } + + if($post['t11']<0) + { + $form->addError("error","You can't send negative units."); + break; + } + } else { + $post['t11']='0'; + } + + if($form->returnErrors() > 0) { + $_SESSION['errorarray'] = $form->getErrors(); + $_SESSION['valuearray'] = $_POST; + header("Location: a2b.php"); + } else { + + //change units + $start = ($database->getUserField($to['owner'],'tribe',0)-1)*10+1; + $end = ($database->getUserField($to['owner'],'tribe',0)*10); + + $j='1'; + for($i=$start;$i<=$end;$i++){ + $database->modifyEnforce($post['ckey'],$i,$post['t'.$j.''],0); $j++; + } + + //get cord + $from = $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']); + + $speeds = array(); + + //find slowest unit. + for($i=1;$i<=10;$i++){ + if (isset($post['t'.$i])){ + if( $post['t'.$i] != '' && $post['t'.$i] > 0){ + if($unitarray) { reset($unitarray); } + $unitarray = $GLOBALS["u".(($session->tribe-1)*10+$i)]; + $speeds[] = $unitarray['speed']; + } else { + $post['t'.$i.'']='0'; + } + } else { + $post['t'.$i.'']='0'; + } + } + if (isset($post['t11'])){ + if( $post['t11'] != '' && $post['t11'] > 0){ + $qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$from['owner'].""; + $resulth = mysql_query($qh); + $hero_f=mysql_fetch_array($resulth); + $hero_unit=$hero_f['unit']; + $speeds[] = $GLOBALS['u'.$hero_unit]['speed']; + } else { + $post['t11']='0'; + } + } else { + $post['t11']='0'; + } + $artefact = count($database->getOwnUniqueArtefactInfo2($from['owner'],2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($from['vref'],2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($from['owner'],2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $time = round($generator->procDistanceTime($fromCor,$toCor,min($speeds),1)/$fastertroops); + $foolartefact4 = $database->getFoolArtefactInfo(2,$from['wref'],$from['owner']); + if(count($foolartefact4) > 0){ + foreach($foolartefact4 as $arte){ + if($arte['bad_effect'] == 1){ + $time *= $arte['effect2']; + }else{ + $time /= $arte['effect2']; + $time = round($endtime); + } + } + } + $reference = $database->addAttack($enforce['from'],$post['t1'],$post['t2'],$post['t3'],$post['t4'],$post['t5'],$post['t6'],$post['t7'],$post['t8'],$post['t9'],$post['t10'],$post['t11'],2,0,0,0,0); + $database->addMovement(4,$village->wid,$enforce['from'],$reference,$AttackArrivalTime,($time+$AttackArrivalTime)); + $technology->checkReinf($post['ckey']); + + header("Location: build.php?id=39"); + + } + } + + private function sendreinfunitsComplete() { + if(file_exists("GameEngine/Prevention/sendreinfunits.txt")) { + unlink("GameEngine/Prevention/sendreinfunits.txt"); + } + 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) { + if($data['from']==0){ + $to = $database->getMInfo($data['to']); + $database->addEnforce($data); + $reinf = $database->getEnforce($data['to'],$data['from']); + $database->modifyEnforce($reinf['id'],31,1,1); + $data_fail = '0,0,4,1,0,0,0,0,0,0,0,0,0,0'; + $database->addNotice($to['owner'],$to['wref'],$targetally,8,'village of the elders reinforcement '.addslashes($to['name']).'',$data_fail,$AttackArrivalTime); + $database->setMovementProc($data['moveid']); + }else{ + //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)); + $heroid = $database->getHero($database->getVillageField($data['from'],"owner"),1); + $database->modifyHero("wref",$data['to'],$heroid,0); + $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() { + if(file_exists("GameEngine/Prevention/returnunits.txt")) { + unlink("GameEngine/Prevention/returnunits.txt"); + } + 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(); + + // Settlers + + $q = "SELECT * FROM ".TB_PREFIX."movement where ref = 0 and proc = '0' and 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); + + $database->modifyUnit($data['to'],array($tribe."0"),array(3),array(1)); + $database->setMovementProc($data['moveid']); + } + + if(file_exists("GameEngine/Prevention/returnunits.txt")) { + unlink("GameEngine/Prevention/returnunits.txt"); + } + } + + private function sendSettlersComplete() { + if(file_exists("GameEngine/Prevention/settlers.txt")) { + unlink("GameEngine/Prevention/settlers.txt"); + } + global $database, $building; + $ourFileHandle = fopen("GameEngine/Prevention/settlers.txt", 'w'); + fclose($ourFileHandle); + $time = microtime(true); + $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 = addslashes($database->getUserField($to['owner'],'username',0)); + $taken = $database->getVillageState($data['to']); + if($taken != 1){ + $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->addMovement(4,$data['to'],$data['from'],$data['ref'],$time,$time+($time-$data['starttime'])); + $database->setMovementProc($data['moveid']); + } + } + if(file_exists("GameEngine/Prevention/settlers.txt")) { + unlink("GameEngine/Prevention/settlers.txt"); + } + } + + private function researchComplete() { + if(file_exists("GameEngine/Prevention/research.txt")) { + unlink("GameEngine/Prevention/research.txt"); + } + 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']; + + } + + 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]; + } + } + $prisoners = $database->getPrisoners($base); + if(!empty($prisoners)) { + foreach($prisoners as $prisoner){ + $owner = $database->getVillageField($base,"owner"); + $ownertribe = $database->getUserField($owner,"tribe",0); + $start = ($ownertribe-1)*10+1; + $end = ($ownertribe*10); + for($i=$start;$i<=$end;$i++) { + $j = $i-$start+1; + $ownunit['u'.$i] += $prisoner['t'.$j]; + } + $ownunit['hero'] += $prisoner['t11']; + } + } + return $ownunit; + } + + public function getUpkeep($array,$type,$vid=0,$prisoners=0) { + global $database,$session,$village; + if($vid==0) { $vid=$village->wid; } + $buildarray = array(); + if($vid!=0){ $buildarray = $database->getResourceLevel($vid); } + $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++) { + $k = $i-$start+1; + $unit = "u".$i; + $unit2 = "t".$k; + global $$unit; + $dataarray = $$unit; + for($j=19;$j<=38;$j++) { + if($buildarray['f'.$j.'t'] == 41) { + $horsedrinking = $j; + } + } + if($prisoners == 0){ + if(isset($horsedrinking)){ + if(($i==4 && $buildarray['f'.$horsedrinking] >= 10) + || ($i==5 && $buildarray['f'.$horsedrinking] >= 15) + || ($i==6 && $buildarray['f'.$horsedrinking] == 20)) { + $upkeep += ($dataarray['pop']-1) * $array[$unit]; + } else { + $upkeep += $dataarray['pop'] * $array[$unit]; + }}else{ + $upkeep += $dataarray['pop'] * $array[$unit]; + } + }else{ + if(isset($horsedrinking)){ + if(($i==4 && $buildarray['f'.$horsedrinking] >= 10) + || ($i==5 && $buildarray['f'.$horsedrinking] >= 15) + || ($i==6 && $buildarray['f'.$horsedrinking] == 20)) { + $upkeep += ($dataarray['pop']-1) * $array[$unit2]; + } else { + $upkeep += $dataarray['pop'] * $array[$unit2]; + }}else{ + $upkeep += $dataarray['pop'] * $array[$unit2]; + } + } + } + // $unit = "hero"; + // global $$unit; + // $dataarray = $$unit; + if($prisoners == 0){ + $upkeep += $array['hero'] * 6; + }else{ + $upkeep += $array['t11'] * 6; + } + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,4,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($vid,4,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,4,2,0)); + if($artefact > 0){ + $upkeep /= 2; + $upkeep = round($upkeep); + }else if($artefact1 > 0){ + $upkeep /= 2; + $upkeep = round($upkeep); + }else if($artefact2 > 0){ + $upkeep /= 4; + $upkeep = round($upkeep); + $upkeep *= 3; + } + $foolartefact = $database->getFoolArtefactInfo(4,$vid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $upkeep *= $arte['effect2']; + }else{ + $upkeep /= $arte['effect2']; + $upkeep = round($upkeep); + } + } + } + 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 *= 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 *= 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 *= 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 *= SPEED; + return round($crop); + } + + private function trainingComplete() { + if(file_exists("GameEngine/Prevention/training.txt")) { + unlink("GameEngine/Prevention/training.txt"); + } + global $database; + $time = time(); + $ourFileHandle = fopen("GameEngine/Prevention/training.txt", 'w'); + fclose($ourFileHandle); + $trainlist = $database->getTrainingList(); + if(count($trainlist) > 0){ + foreach($trainlist as $train){ + $timepast = $train['timestamp2'] - $time; + $pop = $train['pop']; + if($timepast <= 0 && $train['amt'] > 0) { + $timepast2 = $time - $train['timestamp2']; + $trained = 1; + while($timepast2 >= $train['eachtime']){ + $timepast2 -= $train['eachtime']; + $trained += 1; + } + if($trained > $train['amt']){ + $trained = $train['amt']; + } + if($train['unit']>60 && $train['unit']!=99){ + $database->modifyUnit($train['vref'],array($train['unit']-60),array($trained),array(1)); + }else{ + $database->modifyUnit($train['vref'],array($train['unit']),array($trained),array(1)); + } + $database->updateTraining($train['id'],$trained,$trained*$train['eachtime']); + } + if($train['amt'] == 0){ + $database->trainUnit($train['id'],0,0,0,0,1,1); + } + $crop = $database->getCropProdstarv($train['vref']); + $unitarrays = $this->getAllUnits($train['vref']); + $village = $database->getVillage($train['vref']); + $upkeep = $village['pop'] + $this->getUpkeep($unitarrays, 0); + if ($crop < $upkeep){ + // add starv data + $database->setVillageField($train['vref'], 'starv', $upkeep); + $database->setVillageField($train['vref'], 'starvupdate', $time); + } + } + } + if(file_exists("GameEngine/Prevention/training.txt")) { + unlink("GameEngine/Prevention/training.txt"); + } + } + + public 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 && $distance >= TS_THRESHOLD) { + $speed = $speed * ($bid14[$this->getsort_typeLevel(14,$resarray)]['attri']/100) ; + } + } + + + if($speed!=0){ + return round(($distance/$speed) * 3600 / INCREASE_SPEED); + }else{ + return round($distance * 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() { + if(file_exists("GameEngine/Prevention/celebration.txt")) { + unlink("GameEngine/Prevention/celebration.txt"); + } + 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() { + if(file_exists("GameEngine/Prevention/demolition.txt")) { + unlink("GameEngine/Prevention/demolition.txt"); + } + 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 ($type==18){ + $this->updateMax($database->getVillageField($vil['vref'],'owner')); + } + 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); + $this->procClimbers($database->getVillageField($vil['vref'],'owner')); + $database->delDemolition($vil['vref']); + } + } + if(file_exists("GameEngine/Prevention/demolition.txt")) { + unlink("GameEngine/Prevention/demolition.txt"); + } + } + + private function updateHero() { + if(file_exists("GameEngine/Prevention/updatehero.txt")) { + unlink("GameEngine/Prevention/updatehero.txt"); + } + 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']); + } + } + $herolevel = $hdata['level']; + for($i = $herolevel+1; $i < 100; $i++){ + if($hdata['experience'] > $hero_levels[$i]){ + mysql_query("UPDATE " . TB_PREFIX ."hero SET level = $i WHERE heroid = '".$hdata['heroid']."'"); + if($i < 99){ + mysql_query("UPDATE " . TB_PREFIX ."hero SET points = points + 5 WHERE heroid = '".$hdata['heroid']."'"); + } + } + } + $villunits = $database->getUnit($hdata['wref']); + if($villunits['hero'] == 0 && $hdata['trainingtime'] < time() && $hdata['inrevive'] == 1){ + mysql_query("UPDATE " . TB_PREFIX . "units SET hero = 1 WHERE vref = ".$hdata['wref'].""); + mysql_query("UPDATE ".TB_PREFIX."hero SET `dead` = '0', `inrevive` = '0', `health` = '100', `lastupdate` = ".$hdata['trainingtime']." WHERE `uid` = '".$hdata['uid']."'"); + } + if($villunits['hero'] == 0 && $hdata['trainingtime'] < time() && $hdata['intraining'] == 1){ + mysql_query("UPDATE " . TB_PREFIX . "units SET hero = 1 WHERE vref = ".$hdata['wref'].""); + mysql_query("UPDATE ".TB_PREFIX."hero SET `intraining` = '0', `lastupdate` = ".$hdata['trainingtime']." WHERE `uid` = '".$hdata['uid']."'"); + } + } + } + if(file_exists("GameEngine/Prevention/updatehero.txt")) { + unlink("GameEngine/Prevention/updatehero.txt"); + } + + +} + + // by SlimShady95, aka Manuel Mannhardt < manuel_mannhardt@web.de > UPDATED FROM songeriux < haroldas.snei@gmail.com > + private function updateStore() { + global $bid10, $bid38, $bid11, $bid39; + + $result = mysql_query('SELECT * FROM `' . TB_PREFIX . 'fdata`'); + while ($row = mysql_fetch_assoc($result)) + { + $ress = $crop = 0; + for ($i = 19; $i < 40; ++$i) + { + if ($row['f' . $i . 't'] == 10) + { + $ress += $bid10[$row['f' . $i]]['attri'] * STORAGE_MULTIPLIER; + } + + if ($row['f' . $i . 't'] == 38) + { + $ress += $bid38[$row['f' . $i]]['attri'] * STORAGE_MULTIPLIER; + } + + + + if ($row['f' . $i . 't'] == 11) + { + $crop += $bid11[$row['f' . $i]]['attri'] * STORAGE_MULTIPLIER; + } + + if ($row['f' . $i . 't'] == 39) + { + $crop += $bid39[$row['f' . $i]]['attri'] * STORAGE_MULTIPLIER; + } + } + + if ($ress == 0) + { + $ress = 800 * STORAGE_MULTIPLIER; + } + + if ($crop == 0) + { + $crop = 800 * STORAGE_MULTIPLIER; + } + + mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `maxstore` = ' . $ress . ', `maxcrop` = ' . $crop . ' WHERE `wref` = ' . $row['vref']) or die(mysql_error()); + } + } + + private function oasisResourcesProduce() { + global $database; + $time = time(); + $q = "SELECT * FROM ".TB_PREFIX."odata WHERE wood < 800 OR clay < 800 OR iron < 800 OR crop < 800"; + $array = $database->query_return($q); + foreach($array as $getoasis) { + $oasiswood = $getoasis['wood'] + (8*SPEED/3600)*(time()-$getoasis['lastupdated']); + $oasisclay = $getoasis['clay'] + (8*SPEED/3600)*(time()-$getoasis['lastupdated']); + $oasisiron = $getoasis['iron'] + (8*SPEED/3600)*(time()-$getoasis['lastupdated']); + $oasiscrop = $getoasis['crop'] + (8*SPEED/3600)*(time()-$getoasis['lastupdated']); + if($oasiswood > $getoasis['maxstore']){ + $oasiswood = $getoasis['maxstore']; + } + if($oasisclay > $getoasis['maxstore']){ + $oasisclay = $getoasis['maxstore']; + } + if($oasisiron > $getoasis['maxstore']){ + $oasisiron = $getoasis['maxstore']; + } + if($oasiscrop > $getoasis['maxcrop']){ + $oasiscrop = $getoasis['maxcrop']; + } + $q = "UPDATE " . TB_PREFIX . "odata set wood = $oasiswood, clay = $oasisclay, iron = $oasisiron, crop = $oasiscrop where wref = ".$getoasis['wref'].""; + $database->query($q); + $database->updateOasis($getoasis['wref']); + } + } + + private function checkInvitedPlayes() { + global $database; + $q = "SELECT * FROM ".TB_PREFIX."users WHERE invited != 0"; + $array = $database->query_return($q); + foreach($array as $user) { + $numusers = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = ".$user['invited']); + if(mysql_num_rows($numusers) > 0){ + $varray = count($database->getProfileVillages($user['id'])); + if($varray > 1){ + $usergold = $database->getUserField($user['invited'],"gold",0); + $gold = $usergold+50; + $database->updateUserField($user['invited'],"gold",$gold,1); + $database->updateUserField($user['id'],"invited",0,1); + } + } + } + } + + private function updateGeneralAttack() { + global $database; + $time = time(); + $q = "SELECT * FROM ".TB_PREFIX."general WHERE shown = 1"; + $array = $database->query_return($q); + foreach($array as $general) { + if(time() - (86400*8) > $general['time']){ + mysql_query("UPDATE ".TB_PREFIX."general SET shown = 0 WHERE id = ".$general['id'].""); + } + } + } + + private function MasterBuilder() { + global $database; + $q = "SELECT * FROM ".TB_PREFIX."bdata WHERE master = 1"; + $array = $database->query_return($q); + foreach($array as $master) { + $owner = $database->getVillageField($master['wid'],'owner'); + $tribe = $database->getUserField($owner,'tribe',0); + $villwood = $database->getVillageField($master['wid'],'wood'); + $villclay = $database->getVillageField($master['wid'],'clay'); + $villiron = $database->getVillageField($master['wid'],'iron'); + $villcrop = $database->getVillageField($master['wid'],'crop'); + $type = $master['type']; + $level = $master['level']; + $buildarray = $GLOBALS["bid".$type]; + $buildwood = $buildarray[$level]['wood']; + $buildclay = $buildarray[$level]['clay']; + $buildiron = $buildarray[$level]['iron']; + $buildcrop = $buildarray[$level]['crop']; + $ww = count($database->getBuildingByType($master['wid'],40)); + if($tribe == 1){ + if($master['field'] < 19){ + $bdata = count($database->getDorf1Building($master['wid'])); + $bbdata = count($database->getDorf2Building($master['wid'])); + $bdata1 = $database->getDorf1Building($master['wid']); + }else{ + $bdata = count($database->getDorf2Building($master['wid'])); + $bbdata = count($database->getDorf1Building($master['wid'])); + $bdata1 = $database->getDorf2Building($master['wid']); + } + }else{ + $bdata = $bbdata = $bdata1 = count($database->getDorf1Building($master['wid'])) + count($database->getDorf2Building($master['wid'])); + } + if($database->getUserField($owner,'plus',0) > time() or $ww > 0){ + if($bbdata < 2){ + $inbuild = 2; + }else{ + $inbuild = 1; + } + }else{ + $inbuild = 1; + } + $usergold = $database->getUserField($owner,'gold',0); + if($bdata < $inbuild && $buildwood < $villwood && $buildclay < $villclay && $buildiron < $villiron && $buildcrop < $villcrop && $usergold > 0){ + $time = $master['timestamp']+time(); + if(!empty($bdata1)){ + foreach($bdata1 as $master1) { + $time += ($master1['timestamp']-time()); + } + } + if($bdata == 0){ + $database->updateBuildingWithMaster($master['id'],$time,0); + }else{ + $database->updateBuildingWithMaster($master['id'],$time,1); + } + $gold = $usergold-1; + $database->updateUserField($owner,'gold',$gold,1); + $database->modifyResource($master['wid'],$buildwood,$buildclay,$buildiron,$buildcrop,0); + } + } + } + + private function starvation() { + if(file_exists("GameEngine/Prevention/starvation.txt")) { + unlink("GameEngine/Prevention/starvation.txt"); + } + global $database; + $ourFileHandle = fopen("GameEngine/Prevention/starvation.txt", 'w'); + fclose($ourFileHandle); + $starvupkeep = array( + + '1'=>1, + '2'=>1, + '3'=>1, + '4'=>2, + '5'=>3, + '6'=>4, + '7'=>3, + '8'=>6, + '9'=>5, + '10'=>1, + '11'=>1, + '12'=>1, + '13'=>1, + '14'=>1, + '15'=>2, + '16'=>3, + '17'=>6, + '18'=>4, + '19'=>1, + '20'=>1, + '21'=>1, + '22'=>1, + '23'=>2, + '24'=>2, + '25'=>2, + '26'=>3, + '27'=>3, + '28'=>6, + '29'=>4, + '30'=>1, + '31'=>1, + '32'=>1, + '33'=>1, + '34'=>2, + '35'=>2, + '36'=>3, + '37'=>3, + '38'=>3, + '39'=>3, + '40'=>5, + '41'=>1, + '42'=>1, + '43'=>1, + '44'=>1, + '45'=>2, + '46'=>3, + '47'=>6, + '48'=>5, + '49'=>1, + '50'=>1, + 'hero'=>6 + ); + + $time = time(); + + // load villages with minus prod + $starvarray = array(); + $starvarray = $database->getStarvation(); + foreach ($starvarray as $starv){ + $unitarrays = $this->getAllUnits($starv['wref']); + $upkeep = $starv['pop'] + $this->getUpkeep($unitarrays, 0); + if (($starv['starvupdate']+600) < $time){ + // get enforce + $enforcearray = $database->getEnforceVillage($starv['wref'],0); + $maxcount = 0; + if(count($enforcearray)==0){ + // get units + $unitarray = $database->getUnit($starv['wref']); + for($i = 0 ; $i <= 50 ; $i++){ + $units = $unitarray['u'.$i]; + if($unitarray['u'.$i] > $maxcount){ + $maxcount = $unitarray['u'.$i]; + $maxtype = $i; + } + $totalunits += $unitarray['u'.$i]; + } + if($totalunits == 0){ + $maxcount = $unitarray['hero']; + $maxtype = "hero"; + } + }else{ + foreach ($enforcearray as $enforce){ + for($i = 0 ; $i <= 50 ; $i++){ + $units = $enforce['u'.$i]; + if($enforce['u'.$i] > $maxcount){ + $maxcount = $enforce['u'.$i]; + $maxtype = $i; + $enf = $enforce['id']; + } + $totalunits += $enforce['u'.$i]; + } + if($totalunits == 0){ + $maxcount = $enforce['hero']; + $maxtype = "hero"; + } + } + } + + // counting + + $timedif = $time-$starv['starvupdate']; + + $starvsec = ($starv['starv']/3600); + + $difcrop = ($timedif*$starvsec); + $newcrop = 0; + $oldcrop = $database->getVillageField($starv['wref'], 'crop'); + if ($oldcrop > 100){ + $difcrop = $difcrop-$oldcrop; + if($difcrop < 0){ + $difcrop = 0; + $newcrop = $oldcrop-$difcrop; + $database->setVillageField($starv['wref'], 'crop', $newcrop); + } + } + if($difcrop > 0){ + $killunits = floor($difcrop/18000); + if($killunits > 0){ + if (isset($enf)){ + if($killunits < $maxcount){ + $database->modifyEnforce($enf, $maxtype, $killunits, 0); + $database->setVillageField($starv['wref'], 'starv', $upkeep); + $database->setVillageField($starv['wref'], 'starvupdate', $time); + }else{ + $database->deleteReinf($enf); + $database->setVillageField($starv['wref'], 'starv', $upkeep); + $database->setVillageField($starv['wref'], 'starvupdate', $time); + } + }else{ + if($killunits < $maxcount){ + $database->modifyUnit($starv['wref'], array($maxtype), array($killunits), array(0)); + $database->setVillageField($starv['wref'], 'starv', $upkeep); + $database->setVillageField($starv['wref'], 'starvupdate', $time); + }elseif($killunits > $maxcount){ + $killunits = $maxcount; + $database->modifyUnit($starv['wref'], array($maxtype), array($killunits), array(0)); + $database->setVillageField($starv['wref'], 'starv', $upkeep); + $database->setVillageField($starv['wref'], 'starvupdate', $time); + } + } + } + } + } + $crop = $database->getCropProdstarv($starv['wref']); + if ($crop > $upkeep){ + $database->setVillageField($starv['wref'], 'starv', 0); + $database->setVillageField($starv['wref'], 'starvupdate', 0); + } + + unset ($starv,$unitarrays,$enforcearray,$enforce,$starvarray); + } + + if(file_exists("GameEngine/Prevention/starvation.txt")) { + unlink("GameEngine/Prevention/starvation.txt"); + } + } + + private function procNewClimbers() { + if(file_exists("GameEngine/Prevention/climbers.txt")) { + unlink("GameEngine/Prevention/climbers.txt"); + } + global $database, $ranking; + $ranking->procRankArray(); + $climbers = $ranking->getRank(); + if(count($ranking->getRank()) > 0){ + $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'; + } + $q = "SELECT * FROM ".TB_PREFIX."users where oldrank = 0 and id > 5"; + $array = $database->query_return($q); + foreach($array as $user){ + $newrank = $ranking->getUserRank($user['id']); + if($week > 1){ + for($i=$newrank+1;$igetRank());$i++) { + $oldrank = $ranking->getUserRank($climbers[$i]['userid']); + $totalpoints = $oldrank - $climbers[$i]['oldrank']; + $database->removeclimberrankpop($climbers[$i]['userid'], $totalpoints); + $database->updateoldrank($climbers[$i]['userid'], $oldrank); + } + $database->updateoldrank($user['id'], $newrank); + }else{ + $totalpoints = count($ranking->getRank()) - $newrank; + $database->setclimberrankpop($user['id'], $totalpoints); + $database->updateoldrank($user['id'], $newrank); + for($i=1;$i<$newrank;$i++){ + $oldrank = $ranking->getUserRank($climbers[$i]['userid']); + $totalpoints = count($ranking->getRank()) - $oldrank; + $database->setclimberrankpop($climbers[$i]['userid'], $totalpoints); + $database->updateoldrank($climbers[$i]['userid'], $oldrank); + } + for($i=$newrank+1;$igetRank());$i++){ + $oldrank = $ranking->getUserRank($climbers[$i]['userid']); + $totalpoints = count($ranking->getRank()) - $oldrank; + $database->setclimberrankpop($climbers[$i]['userid'], $totalpoints); + $database->updateoldrank($climbers[$i]['userid'], $oldrank); + } + } + } + } + if(file_exists("GameEngine/Prevention/climbers.txt")) { + unlink("GameEngine/Prevention/climbers.txt"); + } + } + + private function procClimbers($uid) { + global $database, $ranking; + $ranking->procRankArray(); + $climbers = $ranking->getRank(); + if(count($ranking->getRank()) > 0){ + $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'; + } + $myrank = $ranking->getUserRank($uid); + if($climbers[$myrank]['oldrank'] > $myrank){ + for($i=$myrank+1;$i<=$climbers[$myrank]['oldrank'];$i++) { + $oldrank = $ranking->getUserRank($climbers[$i]['userid']); + if($week > 1){ + $totalpoints = $oldrank - $climbers[$i]['oldrank']; + $database->removeclimberrankpop($climbers[$i]['userid'], $totalpoints); + $database->updateoldrank($climbers[$i]['userid'], $oldrank); + }else{ + $totalpoints = count($ranking->getRank()) - $oldrank; + $database->setclimberrankpop($climbers[$i]['userid'], $totalpoints); + $database->updateoldrank($climbers[$i]['userid'], $oldrank); + } + } + if($week > 1){ + $totalpoints = $climbers[$myrank]['oldrank'] - $myrank; + $database->addclimberrankpop($climbers[$myrank]['userid'], $totalpoints); + $database->updateoldrank($climbers[$myrank]['userid'], $myrank); + }else{ + $totalpoints = count($ranking->getRank()) - $myrank; + $database->setclimberrankpop($climbers[$myrank]['userid'], $totalpoints); + $database->updateoldrank($climbers[$myrank]['userid'], $myrank); + } + }else if($climbers[$myrank]['oldrank'] < $myrank){ + for($i=$climbers[$myrank]['oldrank'];$i<$myrank;$i++) { + $oldrank = $ranking->getUserRank($climbers[$i]['userid']); + if($week > 1){ + $totalpoints = $climbers[$i]['oldrank'] - $oldrank; + $database->addclimberrankpop($climbers[$i]['userid'], $totalpoints); + $database->updateoldrank($climbers[$i]['userid'], $oldrank); + }else{ + $totalpoints = count($ranking->getRank()) - $oldrank; + $database->setclimberrankpop($climbers[$i]['userid'], $totalpoints); + $database->updateoldrank($climbers[$i]['userid'], $oldrank); + } + } + if($week > 1){ + $totalpoints = $myrank - $climbers[$myrank-1]['oldrank']; + $database->removeclimberrankpop($climbers[$myrank-1]['userid'], $totalpoints); + $database->updateoldrank($climbers[$myrank-1]['userid'], $myrank); + }else{ + $totalpoints = count($ranking->getRank()) - $myrank; + $database->setclimberrankpop($climbers[$myrank-1]['userid'], $totalpoints); + $database->updateoldrank($climbers[$myrank-1]['userid'], $myrank); + } + } + } + $ranking->procARankArray(); + $aid = $database->getUserField($uid,"alliance",0); + if(count($ranking->getRank()) > 0 && $aid != 0){ + $ally = $database->getAlliance($aid); + $memberlist = $database->getAllMember($ally['id']); + $oldrank = 0; + foreach($memberlist as $member) { + $oldrank += $database->getVSumField($member['id'],"pop"); + } + if($ally['oldrank'] != $oldrank){ + if($ally['oldrank'] < $oldrank) { + $totalpoints = $oldrank - $ally['oldrank']; + $database->addclimberrankpopAlly($ally['id'], $totalpoints); + $database->updateoldrankAlly($ally['id'], $oldrank); + } else + if($ally['oldrank'] > $oldrank) { + $totalpoints = $ally['oldrank'] - $oldrank; + $database->removeclimberrankpopAlly($ally['id'], $totalpoints); + $database->updateoldrankAlly($ally['id'], $oldrank); + } + } + } + } + + private function checkBan() { + global $database; + $time = time(); + $q = "SELECT * FROM ".TB_PREFIX."banlist WHERE active = 1 and end < $time"; + $array = $database->query_return($q); + foreach($array as $banlist) { + mysql_query("UPDATE ".TB_PREFIX."banlist SET active = 0 WHERE id = ".$banlist['id'].""); + mysql_query("UPDATE ".TB_PREFIX."users SET access = 2 WHERE id = ".$banlist['uid'].""); + } + } + + private function regenerateOasisTroops() { + global $database; + $time = time(); + $q = "SELECT * FROM " . TB_PREFIX . "odata where conqured = 0 and $time - lastupdated > 3600"; + $array = $database->query_return($q); + foreach($array as $oasis) { + $database->populateOasisUnits($oasis['wref'],$oasis['high']); + $database->updateOasis($oasis['wref']); + } + } + + private function updateMax($leader) { + global $bid18, $database; + $q = mysql_query("SELECT * FROM " . TB_PREFIX . "alidata where leader = $leader"); + if(mysql_num_rows($q) > 0){ + $villages = $database->getVillagesID2($leader); + $max = 0; + foreach($villages as $village){ + $field = $database->getResourceLevel($village['wref']); + for($i=19;$i<=40;$i++){ + if($field['f'.$i.'t'] == 18){ + $level = $field['f'.$i]; + $attri = $bid18[$level]['attri']; + } + } + if($attri > $max){ + $max = $attri; + } + } + $q = "UPDATE ".TB_PREFIX."alidata set max = $max where leader = $leader"; + $database->query($q); + } + } + + private function artefactOfTheFool() { + global $database; + $time = time(); + $q = "SELECT * FROM " . TB_PREFIX . "artefacts where type = 8 and active = 1 and $time - lastupdate >= 86400"; + $array = $database->query_return($q); + foreach($array as $artefact) { + $kind = rand(1,7); + while($kind == 6){ + $kind = rand(1,7); + } + if($artefact['size'] != 3){ + $bad_effect = rand(0,1); + }else{ + $bad_effect = 0; + } + switch($kind) { + case 1: + $effect = rand(1,5); + break; + case 2: + $effect = rand(1,3); + break; + case 3: + $effect = rand(3,10); + break; + case 4: + $effect = rand(2,4); + break; + case 5: + $effect = rand(2,4); + break; + case 7: + $effect = rand(1,6); + break; + } + mysql_query("UPDATE ".TB_PREFIX."artefacts SET kind = $kind, bad_effect = $bad_effect, effect2 = $effect, lastupdate = $time WHERE id = ".$artefact['id'].""); + } + } +} +$automation = new Automation; +?> diff --git a/GameEngine/BBCode.php b/GameEngine/BBCode.php new file mode 100644 index 00000000..7aefab45 --- /dev/null +++ b/GameEngine/BBCode.php @@ -0,0 +1 @@ +$1"; $replace[1] = "$1"; $replace[2] = "$1"; $replace[3] = "".U1.""; $replace[4] = "".U2.""; $replace[5] = "".U3.""; $replace[6] = "".U4.""; $replace[7] = "".U5.""; $replace[8] = "".U6.""; $replace[9] = "".U7.""; $replace[10] = "".U8.""; $replace[11] = "".U9.""; $replace[12] = "".U10.""; $replace[13] = "".U11.""; $replace[14] = "".U12.""; $replace[15] = "".U13.""; $replace[16] = "".U14.""; $replace[17] = "".U15.""; $replace[18] = "".U16.""; $replace[19] = "".U17.""; $replace[20] = "".U18.""; $replace[21] = "".U19.""; $replace[22] = "".U20.""; $replace[23] = "".U21.""; $replace[24] = "".U22.""; $replace[25] = "".U23.""; $replace[26] = "".U24.""; $replace[27] = "".U25.""; $replace[28] = "".U26.""; $replace[29] = "".U27.""; $replace[30] = "".U28.""; $replace[31] = "".U29.""; $replace[32] = "".U30.""; $replace[33] = "".U31.""; $replace[34] = "".U32.""; $replace[35] = "".U33.""; $replace[36] = "".U34.""; $replace[37] = "".U35.""; $replace[38] = "".U36.""; $replace[39] = "".U37.""; $replace[40] = "".U38.""; $replace[41] = "".U39.""; $replace[42] = "".U40.""; $replace[43] = "".U41.""; $replace[44] = "".U42.""; $replace[45] = "".U43.""; $replace[46] = "".U44.""; $replace[47] = "".U45.""; $replace[48] = "".U46.""; $replace[49] = "".U47.""; $replace[50] = "".U48.""; $replace[51] = "".U49.""; $replace[52] = "".U50.""; $replace[53] = "".U0.""; $replace[54] = "".R1.""; $replace[55] = "".R2.""; $replace[56] = "".R3.""; $replace[57] = "".R4.""; $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] = ";)"; for($i=0;$i<=$alliance;$i++){ $pattern[89+$i] = "/\[alliance".$i."\](.*?)\[\/alliance".$i."\]/is"; ${'bbcoded1_'.$i} = preg_replace($pattern[89+$i], "$1", $input); ${'bbcoded1_'.$i} = preg_replace('/\[\/alliance'.$i.'\](.*?)\[\/message\]/is', '', $input); ${'bbcoded1_'.$i} = preg_replace('/\[message\](.*?)\[alliance'.$i.'\]/is', '', ${'bbcoded1_'.$i}); $aname = $database->getAllianceID(${'bbcoded1_'.$i}); if($aname != ""){ $replace[89+$i] = "$1"; }else{ $replace[89+$i] = "alliance not exist"; } $rep1 = 90+$i; } for($i=0;$i<=$player;$i++){ $pattern[$rep1+$i] = "/\[player".$i."\](.*?)\[\/player".$i."\]/is"; ${'bbcoded2_'.$i} = preg_replace($pattern[$rep1+$i], "$1", $input); ${'bbcoded2_'.$i} = preg_replace('/\[\/player'.$i.'\](.*?)\[\/message\]/is', '', $input); ${'bbcoded2_'.$i} = preg_replace('/\[message\](.*?)\[player'.$i.'\]/is', '', ${'bbcoded2_'.$i}); $uname = $database->getUserField(${'bbcoded2_'.$i}, "id", 1); if($uname != ""){ $replace[$rep1+$i] = "$1"; }else{ $replace[$rep1+$i] = "player not exist"; } $rep2 = $rep1+$i+1; } for($i=0;$i<=$report;$i++){ $pattern[$rep2+$i] = "/\[report".$i."\](.*?)\[\/report".$i."\]/is"; ${'bbcoded3_'.$i} = preg_replace($pattern[$rep2+$i], "$1", $input); ${'bbcoded3_'.$i} = preg_replace('/\[\/report'.$i.'\](.*?)\[\/message\]/is', '', $input); ${'bbcoded3_'.$i} = preg_replace('/\[message\](.*?)\[report'.$i.'\]/is', '', ${'bbcoded3_'.$i}); $report = count($database->getNotice4(${'bbcoded3_'.$i})); if($report > 0){ $topic = $database->getNotice2(${'bbcoded3_'.$i},"topic"); $ally = $database->getNotice2(${'bbcoded3_'.$i},"ally"); $replace[$rep2+$i] = "$topic"; }else{ $replace[$rep2+$i] = "report not exist"; } $rep3 = $rep2+$i+1; } for($i=0;$i<=$coor;$i++){ $pattern[$rep3+$i] = "/\[coor".$i."\](.*?)\[\/coor".$i."\]/is"; ${'bbcoded4_'.$i} = preg_replace($pattern[$rep3+$i], "$1", $input); ${'bbcoded4_'.$i} = preg_replace('/\[\/coor'.$i.'\](.*?)\[\/message\]/is', '', $input); ${'bbcoded4_'.$i} = preg_replace('/\[message\](.*?)\[coor'.$i.'\]/is', '', ${'bbcoded4_'.$i}); for($x = 0; $x < 401; $x++) { if(preg_match('/^'.$x.'/', ${'bbcoded4_'.$i})){ $xx = 1; $cx = $x; } } for($x = 0; $x > -401; $x--) { if(preg_match('/^'.$x.'/', ${'bbcoded4_'.$i})){ $xx = 1; $cx = $x; } } for($y = 0; $y < 401; $y++) { if(preg_match('/-'.$y.'$/', ${'bbcoded4_'.$i})){ $yy = 1; $cy = $y*(-1); }else if(preg_match('/'.$y.'$/', ${'bbcoded4_'.$i})){ $yy = 1; $cy = $y; } } if(preg_match('/|/', ${'bbcoded4_'.$i}) && $xx == 1 && $yy == 1){ $wref = $database->getVilWref($cx,$cy); $cwref = $generator->getMapCheck($wref); if($wref != ""){ $wref1 = $database->getVillageType3($wref); if($wref1['oasistype'] == 0 && $wref1['occupied'] == 1){ $vname = $database->getVillageField($wref,"name"); }else if($wref1['oasistype'] == 0 && $wref1['occupied'] == 0){ $vname = "Abandoned valley"; }else if($wref1['oasistype'] != 0 && $wref1['occupied'] == 1){ $vname = "Occupied Oasis"; }else if($wref1['oasistype'] != 0 && $wref1['occupied'] == 0){ $vname = "Unoccupied Oasis"; } $replace[$rep3+$i] = "$vname($cx|$cy)"; } } } $input = preg_replace('/\[message\]/', '', $input); $input = preg_replace('/\[\/message\]/', '', $input); $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..1c94af01 --- /dev/null +++ b/GameEngine/Battle.php @@ -0,0 +1,1082 @@ + 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; + $index = 1; + for($i=$start;$i<=($start+9);$i++) { + $attacker['u'.$i] = $post['a1_'.$index]; + if($index <=8) { + ${att_ab.$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.$i} = $post['f2_'.$i]; + } + break; + case 2: + for($i=11;$i<=18;$i++) { + ${def_ab.$i-10} = $post['f2_'.$i]; + } + break; + case 3: + for($i=21;$i<=28;$i++) { + ${def_ab.$i-20} = $post['f2_'.$i]; + } + break; + case 4: + for($i=31;$i<=38;$i++) { + ${def_ab.$i-30} = $post['f2_'.$i]; + } + break; + case 5: + for($i=41;$i<=48;$i++) { + ${def_ab.$i-40} = $post['f2_'.$i]; + } + 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 == 44) + {} + else{ + if($attacker['u'.$i]>0) { + $scout = 0; + break; + } + } + } + if($post['wall1'] != 0){ + $walllevel = $post['wall1']; + }elseif($post['wall2'] != 0){ + $walllevel = $post['wall2']; + }elseif($post['wall3'] != 0){ + $walllevel = $post['wall3']; + }elseif($post['wall4'] != 0){ + $walllevel = $post['wall4']; + }elseif($post['wall5'] != 0){ + $walllevel = $post['wall5']; + }else{ + $walllevel = 0; + } + if($walllevel > 20){ + $walllevel = 0; + } + $wall = $walllevel; + if(!$scout) + return $this->calculateBattle($attacker,$defender,$wall,$post['a1_v'],$deftribe,$post['palast'],$post['ew1'],$post['ew2'],$post['ktyp']+3,$def_ab1,$def_ab2,$def_ab3,$def_ab4,$def_ab5,$def_ab6,$def_ab7,$def_ab8,$att_ab1,$att_ab2,$att_ab3,$att_ab4,$att_ab5,$att_ab6,$att_ab7,$att_ab8,$post['kata'],$post['stonemason'],$walllevel,0,0,0,0); + else + return $this->calculateBattle($attacker,$defender,$wall,$post['a1_v'],$deftribe,$post['palast'],$post['ew1'],$post['ew2'],1,$def_ab1,$def_ab2,$def_ab3,$def_ab4,$def_ab5,$def_ab6,$def_ab7,$def_ab8,$att_ab1,$att_ab2,$att_ab3,$att_ab4,$att_ab5,$att_ab6,$att_ab7,$att_ab8,$post['kata'],$post['stonemason'],$walllevel,0,0,0,0); + } + + 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; + } + } + + //1 raid 0 normal + function calculateBattle($Attacker,$Defender,$def_wall,$att_tribe,$def_tribe,$residence,$attpop,$defpop,$type,$def_ab1,$def_ab2,$def_ab3,$def_ab4,$def_ab5,$def_ab6,$def_ab7,$def_ab8,$att_ab1,$att_ab2,$att_ab3,$att_ab4,$att_ab5,$att_ab6,$att_ab7,$att_ab8,$tblevel,$stonemason,$walllevel,$AttackerID,$DefenderID,$AttackerWref,$DefenderWref) { + global $bid34,$bid35,$database; + // Definieer de array met de eenheden + $calvary = array(4,5,6,15,16,23,24,25,26,45,46); + $catapult = array(8,18,28,48); + $rams = array(7,17,27,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); + $att_artefact = count($database->getOwnUniqueArtefactInfo2($AttackerID,3,3,0)); + $att_artefact1 = count($database->getOwnUniqueArtefactInfo2($AttackerWref,3,1,1)); + $att_artefact2 = count($database->getOwnUniqueArtefactInfo2($AttackerID,3,2,0)); + if($att_artefact > 0){ + $attacker_artefact = 10; + }else if($att_artefact1 > 0){ + $attacker_artefact = 5; + }else if($att_artefact2 > 0){ + $attacker_artefact = 3; + }else{ + $attacker_artefact = 1; + } + $def_artefact = count($database->getOwnUniqueArtefactInfo2($DefenderID,3,3,0)); + $def_artefact1 = count($database->getOwnUniqueArtefactInfo2($DefenderWref,3,1,1)); + $def_artefact2 = count($database->getOwnUniqueArtefactInfo2($DefenderID,3,2,0)); + if($def_artefact > 0){ + $defender_artefact = 10; + }else if($att_artefact1 > 0){ + $defender_artefact = 5; + }else if($def_artefact2 > 0){ + $defender_artefact = 3; + }else{ + $defender_artefact = 1; + } + if($Attacker['uhero'] != 0) + { + //exit($AttackerID); + $atkhero = $this->getBattleHero($AttackerID); + } + + if($Defender['hero'] != 0) + { + //exit($DefenderID); + $defenderhero = $this->getBattleHero($DefenderID); + } + + $DefendersAll = $database->getEnforceVillage($DefenderWref,0); + if(!empty($DefendersAll)){ + foreach($DefendersAll as $defenders) { + $fromvillage = $defenders['from']; + $reinfowner = $database->getVillageField($fromvillage,"owner"); + $defhero[$fromvillage] = $this->getBattleHero($reinfowner); + } + } + // Berekenen het totaal aantal punten van Aanvaller + $start = ($att_tribe-1)*10+1; + $end = ($att_tribe*10); + if($att_tribe == 3){ + $abcount = 3; + }else{ + $abcount = 4; + } + + if($type == 1) + { + for($i=$start;$i<=$end;$i++) { + global ${'u'.$i}; + $j = $i-$start+1; + if($abcount <= 8 && ${att_ab.$abcount} > 0) { + + $ap += (35 + ( 35 + 300 * ${'u'.$i}['pop'] / 7) * (pow(1.007, ${att_ab.$abcount}) - 1)) * $Attacker['u'.$i] * $attacker_artefact; + $att_foolartefact = $database->getFoolArtefactInfo(3,$AttackerWref,$AttackerID); + if(count($att_foolartefact) > 0){ + foreach($att_foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $ap *= $arte['effect2']; + }else{ + $ap /= $arte['effect2']; + $ap = round($ap); + } + } + } + } + else { + $ap += ($Attacker['u'.$i] * $Attacker['u'.$i] * $Attacker['u'.$i])/3; + } + + + $units['Att_unit'][$i] = $Attacker['u'.$i]; + } + if ($Attacker['uhero'] != 0){ + $ap += $atkhero['atk'] * 35; + $ap = $ap * $atkhero['ob']; + } + } + else + { + $abcount = 1; + for($i=$start;$i<=$end;$i++) { + global ${'u'.$i}; + $j = $i-$start+1; + if($abcount <= 8 && ${att_ab.$abcount} > 0) { + if(in_array($i,$calvary)) { + $cap += (${'u'.$i}['atk'] + (${'u'.$i}['atk'] + 300 * ${'u'.$i}['pop'] / 7) * (pow(1.007, ${att_ab.$abcount}) - 1)) * $Attacker['u'.$i]; + } + else { + $ap += (${'u'.$i}['atk'] + (${'u'.$i}['atk'] + 300 * ${'u'.$i}['pop'] / 7) * (pow(1.007, ${att_ab.$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 == 44) + { + global ${'u'.$y}; + if($y >= $start && $y <= ($end-2) && ${def_ab.$abcount} > 0) { + $dp += (20 + (20 + 300 * ${'u'.$y}['pop'] / 7) * (pow(1.007, ${def_ab.$abcount}) - 1)) * (($Defender['u'.$y]*$Defender['u'.$y]*$Defender['u'.$y])/4) * $defender_artefact; + $abcount +=1; + $def_foolartefact = $database->getFoolArtefactInfo(3,$AttackerWref,$AttackerID); + if(count($def_foolartefact) > 0){ + foreach($def_foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dp *= $arte['effect2']; + }else{ + $dp /= $arte['effect2']; + $dp = round($dp); + } + } + } + } + else { + $dp += ($Defender['u'.$y]*$Defender['u'.$y]*$Defender['u'.$y])/4; + } + $units['Def_unit'][$y] = $Defender['u'.$y]; + if($units['Def_unit'][$y] > 0){ + $detected = 1; + } + } + } + if($detected == 1){ + if ($Defender['hero'] != 0){ + $dp += $defenderhero['di'] * 35; + $dp = $dp * $defenderhero['db']; + } + $DefendersAll = $database->getEnforceVillage($DefenderWref,0); + if(!empty($DefendersAll)){ + foreach($DefendersAll as $defenders) { + $fromvillage = $defenders['from']; + $dp += $defhero[$fromvillage]['di'] * 35; + $dp = $dp * $defhero[$fromvillage]['db']; + } + } + } + } + + else + { + for($y=1;$y<=50;$y++) { + global ${'u'.$y}; + if($y >= $start && $y <= ($end-2) && ${def_ab.$abcount} > 0) { + $dp += (${'u'.$y}['di'] + (${'u'.$y}['di'] + 300 * ${'u'.$y}['pop'] / 7) * (pow(1.007, ${def_ab.$abcount}) - 1)) * $Defender['u'.$y]; + $cdp += (${'u'.$y}['dc'] + (${'u'.$y}['dc'] + 300 * ${'u'.$y}['pop'] / 7) * (pow(1.007, ${def_ab.$abcount}) - 1)) * $Defender['u'.$y]; + } + 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]; + $abcount +=1; + } + if($Defender['hero'] != 0) + { + $units['Def_unit']['hero'] = $Defender['hero']; + $cdp += $defenderhero['dc']; + $dp += $defenderhero['di']; + $dp = $dp * $defenderhero['db']; + $cdp = $cdp * $defenderhero['db']; + } + $DefendersAll = $database->getEnforceVillage($DefenderWref,0); + if(!empty($DefendersAll)){ + foreach($DefendersAll as $defenders) { + $fromvillage = $defenders['from']; + $cdp += $defhero[$fromvillage]['dc']; + $dp += $defhero[$fromvillage]['di']; + $dp = $dp * $defhero[$fromvillage]['db']; + $cdp = $cdp * $defhero[$fromvillage]['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); + // Verdediging infantery = Infantery * Muur (%) + $dp *= pow($factor,$def_wall); + // Verdediging 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) + // + if($AttackerWref != 0){ + $rap = ($ap+$cap)+(($ap+$cap)/100*$bid35[$this->getTypeLevel(35,$AttackerWref)]['attri']); + }else{ + $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 { + if($defpop==0){ + $moralbonus = min(1.5, pow($attpop, 0.2)); + }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; + } + if ($Mfactor < 1.25778){$Mfactor=1.25778;}elseif ($Mfactor > 1.5){$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; + $artowner = $database->getVillageField($DefenderWref,"owner"); + $bartefact = count($database->getOwnUniqueArtefactInfo2($artowner,1,3,0)); + $bartefact1 = count($database->getOwnUniqueArtefactInfo2($DefenderWref,1,1,1)); + $bartefact2 = count($database->getOwnUniqueArtefactInfo2($artowner,1,2,0)); + if($bartefact > 0){ + $strongerbuildings = 5; + }else if($bartefact1 > 0){ + $strongerbuildings = 4; + }else if($bartefact2 > 0){ + $strongerbuildings = 3; + }else{ + $strongerbuildings = 1; + } + $good_effect = $bad_effect = 1; + $foolartefact = $database->getFoolArtefactInfo(3,$DefenderWref,$artowner); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $bad_effect = $arte['effect2']; + }else{ + $good_effect = $arte['effect2']; + } + } + } + if($stonemason==0){ + $need = round((($moralbonus * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$att_ab['a8']))/200) / $strongerbuildings / $good_effect * $bad_effect)) + 0.5); + }else{ + $need = round((($moralbonus * (pow($tblevel,2) + $tblevel + 1)) / (8 * (round(200 * pow(1.0205,$att_ab['a8']))/200) / ($bid34[$stonemason]['attri']/100) / $strongerbuildings / $good_effect * $bad_effect)) + 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/2; + $artowner = $database->getVillageField($DefenderWref,"owner"); + $bartefact = count($database->getOwnUniqueArtefactInfo2($artowner,1,3,0)); + $bartefact1 = count($database->getOwnUniqueArtefactInfo2($DefenderWref,1,1,1)); + $bartefact2 = count($database->getOwnUniqueArtefactInfo2($artowner,1,2,0)); + if($bartefact > 0){ + $strongerbuildings = 5; + }else if($bartefact1 > 0){ + $strongerbuildings = 4; + }else if($bartefact2 > 0){ + $strongerbuildings = 3; + }else{ + $strongerbuildings = 1; + } + $good_effect = $bad_effect = 1; + $foolartefact = $database->getFoolArtefactInfo(3,$DefenderWref,$artowner); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $bad_effect = $arte['effect2']; + }else{ + $good_effect = $arte['effect2']; + } + } + } + if($stonemason==0){ + $need = round((($moralbonus * (pow($walllevel,2) + $walllevel + 1)) / (8 * (round(200 * pow(1.0205,$att_ab['a7']))/200) / $strongerbuildings / $good_effect * $bad_effect)) + 0.5); + }else{ + $need = round((($moralbonus * (pow($walllevel,2) + $walllevel + 1)) / (8 * (round(200 * pow(1.0205,$att_ab['a7']))/200) / ($bid34[$stonemason]['attri']/100) / $strongerbuildings / $good_effect * $bad_effect)) + 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)); + + for($i=$start;$i <= $end;$i++) + { + $y = $i-(($att_tribe-1)*10); + $result['casualties_attacker'][$y] = round($result[1]*$units['Att_unit'][$i]); + + } + + 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 or $damage_health>90) + { + //hero die + $result['casualties_attacker']['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."'"); + } + } + unset($_result,$fdb,$hero_id,$hero_health,$damage_health); + + + if ($units['Def_unit']['hero']>0) + { + + $_result=mysql_query("select * from " . TB_PREFIX . "hero where `dead`='0' and `heroid`='".$defenderhero['heroid']."'"); + $fdb = mysql_fetch_array($_result); + $hero_id=$fdb['heroid']; + $hero_health=$fdb['health']; + $damage_health=round(100*$result[2]); + if ($hero_health<=$damage_health or $damage_health>90) + { + //hero die + $result['deadherodef'] = 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 + { + $result['deadherodef'] = 0; + mysql_query("update " . TB_PREFIX . "hero set `health`=`health`-".$damage_health." where `heroid`='".$hero_id."'"); + } + } + unset($_result,$fdb,$hero_id,$hero_health,$damage_health); + + $DefendersAll = $database->getEnforceVillage($DefenderWref,0); + if(!empty($DefendersAll)){ + foreach($DefendersAll as $defenders) { + if($defenders['hero']>0) { + if(!empty($heroarray)) { reset($heroarray); } + $Reinforcer = $database->getVillageField($defenders['from'],"owner"); + $heroarraydefender = $this->getBattleHero($Reinforcer); + $_result=mysql_query("select * from " . TB_PREFIX . "hero where `dead`='0' and `heroid`='".$heroarraydefender['heroid']."'"); + $fdb = mysql_fetch_array($_result); + $hero_id=$fdb['heroid']; + $hero_health=$fdb['health']; + $damage_health=round(100*$result[2]); + if ($hero_health<=$damage_health or $damage_health>90) + { + //hero die + $result['deadheroref'][$defenders['id']] = 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 + { + $result['deadheroref'][$defenders['id']] = 0; + mysql_query("update " . TB_PREFIX . "hero set `health`=`health`-".$damage_health." where `heroid`='".$hero_id."'"); + } + } + } + } + unset($_result,$fdb,$hero_id,$hero_health,$damage_health); + + + // Work out bounty + $start = ($att_tribe-1)*10+1; + $end = ($att_tribe*10); + + $max_bounty = 0; + + for($i=$start;$i<=$end;$i++) { + $j = $i-$start+1; + $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($defenders['vref'] == $data['to']) { + $heroarraydefender = $this->getBattleHero($DefenderData['id']); + } else { + $ReinforcerData = $database->getVillageBattleData($defenders['from']); + $heroarraydefender = $this->getBattleHero($ReinforcerData['id']); + } + $definf = ($definf + $heroarraydefender['di']) * $heroarraydefender['db']; + $defcav = ($defcav + $heroarraydefender['dc']) * $heroarraydefender['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); + } + } + $DefenderUnits = $database->getUnit($data['to']); + $DefendersAll = $database->getEnforceVillage($data['to'],0); + array_unshift($DefendersAll,$DefenderUnits); + foreach($DefendersAll as $defenders) { + if($defenders['hero'] == 1 && $data['type'] != 1) { + if(!empty($heroarray)) { reset($heroarray); } + if($defenders['vref'] == $data['to']) { + $heroarraydefender = $this->getBattleHero($DefenderData['id']); + } else { + $ReinforcerData = $database->getVillageBattleData($defenders['from']); + $heroarraydefender = $this->getBattleHero($ReinforcerData['id']); + } + if($defense_casualties < 0.9) { + if($heroarrayDefender['health']-100*$defense_casualties > 0) { + $database->modifyHero('health',(100*$defense_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; +?> \ No newline at end of file diff --git a/GameEngine/Building.php b/GameEngine/Building.php new file mode 100644 index 00000000..a4f2bb2b --- /dev/null +++ b/GameEngine/Building.php @@ -0,0 +1,799 @@ +maxConcurrent = BASIC_MAX; + if(ALLOW_ALL_TRIBE || $session->tribe == 1) { + $this->maxConcurrent += INNER_MAX; + } + if($session->plus) { + $this->maxConcurrent += PLUS_MAX; + } + $this->LoadBuilding(); + foreach($this->buildArray as $build) { + if($build['master']==1){ + $this->maxConcurrent += 1; + } + } + } + + 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 && $session->sit == 0) { + $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->isMax($tid,$id,3) && $this->isLoop($id) && $this->isCurrent($id) && count($database->getMasterJobs($village->wid)) > 0) { + 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 or $tid==40) { + if($this->plus == 0) { + return 9; + } + else { + return 3; + } + } + else { + return 2; + } + } + } + else { + if($this->basic == 0) { + return 8; + } + else { + if($session->plus or $tid==40) { + if($this->plus == 0) { + return 9; + } + else { + return 3; + } + } + else { + return 2; + } + } + } + } + else { + if($this->basic == 1) { + if(($session->plus or $tid==40) && $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)) { + if($jobs['master'] == 0){ + $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']; + } + } + $level = $database->getResourceLevel($village->wid); + if($session->access!=BANNED){ + if($database->addBuilding($village->wid,$id,$village->resarray['f'.$id.'t'],$loop,$time+($loop==1?ceil(60/SPEED):0),0,$level['f'.$id] + 1 + count($database->getBuildingByField($village->wid,$id)))) { + $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"); + } + } + }else{ + header("Location: banned.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 or $village->resarray['f'.$id.'t']==40)&& $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($session->access!=BANNED){ + $level = $database->getResourceLevel($village->wid); + if($database->addBuilding($village->wid,$id,$village->resarray['f'.$id.'t'],$loop,$time,0,0,$level['f'.$id] + 1 + count($database->getBuildingByField($village->wid,$id)))) { + $logging->addBuildLog($village->wid,$this->procResType($village->resarray['f'.$id.'t']),($village->resarray['f'.$id]-1),2); + header("Location: dorf2.php"); + } + }else{ + header("Location: banned.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($session->access!=BANNED){ + $level = $database->getResourceLevel($village->wid); + if($database->addBuilding($village->wid,$id,$tid,$loop,$time,0,$level['f'.$id] + 1 + count($database->getBuildingByField($village->wid,$id)))) { + $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"); + } + }else{ + header("Location: banned.php"); + } + } + } + } + + private function meetRequirement($id) { + global $village,$session,$database; + 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: + $wwlevel = $village->resarray['f99']; + if($wwlevel > 50){ + $needed_plan = 1; + }else{ + $needed_plan = 0; + } + $wwbuildingplan = 0; + $villages = $database->getVillagesID($session->uid); + foreach($villages as $village1){ + $plan = count($database->getOwnArtefactInfoByType2($village1,11)); + if($plan > 0){ + $wwbuildingplan = 1; + } + } + if($session->alliance != 0){ + $alli_users = $database->getUserByAlliance($session->alliance); + foreach($alli_users as $users){ + $villages = $database->getVillagesID($users['id']); + if($users['id'] != $session->uid){ + foreach($villages as $village1){ + $plan = count($database->getOwnArtefactInfoByType2($village1,11)); + if($plan > 0){ + $wwbuildingplan += 1; + } + } + } + } + } + if($village->natar == 1 && $wwbuildingplan > $needed_plan) { return true; } else { return false; } + 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; + } + + public function finishAll() { + global $database,$session,$logging,$village,$bid18,$bid10,$bid11,$technology,$_SESSION; + if($session->access!=BANNED){ + $ww = 1; + foreach($this->buildArray as $jobs) { + if($jobs['wid']==$village->wid){ + $wwvillage = $database->getResourceLevel($jobs['wid']); + if($wwvillage['f99t']!=40){ + $level = $jobs['level']; + if($jobs['type'] != 25 AND $jobs['type'] != 26 AND $jobs['type'] != 40) { + $finish = 1; + $resource = $this->resourceRequired($jobs['field'],$jobs['type']); + if($jobs['master'] == 0){ + $q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = ".$jobs['level'].", f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid']; + }else{ + $villwood = $database->getVillageField($jobs['wid'],'wood'); + $villclay = $database->getVillageField($jobs['wid'],'clay'); + $villiron = $database->getVillageField($jobs['wid'],'iron'); + $villcrop = $database->getVillageField($jobs['wid'],'crop'); + $type = $jobs['type']; + $buildarray = $GLOBALS["bid".$type]; + $buildwood = $buildarray[$level]['wood']; + $buildclay = $buildarray[$level]['clay']; + $buildiron = $buildarray[$level]['iron']; + $buildcrop = $buildarray[$level]['crop']; + if($buildwood < $villwood && $buildclay < $villclay && $buildiron < $villiron && $buildcrop < $villcrop){ + $newgold = $session->gold-1; + $database->updateUserField($session->uid, "gold", $newgold, 1); + $enought_res = 1; + $q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = ".$jobs['level'].", f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid']; + } + } + if($database->query($q) && ($enought_res == 1 or $jobs['master'] == 0)) { + $database->modifyPop($jobs['wid'],$resource['pop'],0); + $database->addCP($jobs['wid'],$resource['cp']); + $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['field'] >= 19 && ($session->tribe == 1 || ALLOW_ALL_TRIBE)) || (!ALLOW_ALL_TRIBE && $session->tribe != 1)) { $innertimestamp = $jobs['timestamp']; } + } + } + } + } + $wwvillage1 = $database->getResourceLevel($village->wid); + if($wwvillage1['f99t']!=40){ + $ww = 0; + } + if($ww == 0){ + $database->finishDemolition($village->wid); + $technology->finishTech(); + $logging->goldFinLog($village->wid); + $database->modifyGold($session->uid,2,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); + }else{ + header("Location: banned.php"); + } + } + + 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); + } +}; + +?> \ No newline at end of file diff --git a/GameEngine/Chat.php b/GameEngine/Chat.php new file mode 100644 index 00000000..67b0c0ab --- /dev/null +++ b/GameEngine/Chat.php @@ -0,0 +1,384 @@ +$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") { +// alert(args); + 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[]=" + 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; + + $id_user = $session->uid; + $alliance = $session->alliance; + $now = time(); + echo $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..4d58b766 --- /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'=>5890),array('wood'=>870,'clay'=>2170,'iron'=>1085,'crop'=>1300,'pop'=>2,'cp'=>4,'prod'=>70,'time'=>9620),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'=>1,'time'=>8000),array('wood'=>2045,'clay'=>1300,'iron'=>1750,'crop'=>2435,'pop'=>3,'cp'=>6,'attri'=>2,'time'=>9880),array('wood'=>2860,'clay'=>1825,'iron'=>2450,'crop'=>3410,'pop'=>3,'cp'=>7,'attri'=>3,'time'=>12060),array('wood'=>4005,'clay'=>2550,'iron'=>3430,'crop'=>4775,'pop'=>3,'cp'=>8,'attri'=>4,'time'=>14590),array('wood'=>5610,'clay'=>3575,'iron'=>4800,'crop'=>6685,'pop'=>3,'cp'=>10,'attri'=>5,'time'=>17530),array('wood'=>7850,'clay'=>5000,'iron'=>6725,'crop'=>9360,'pop'=>4,'cp'=>12,'attri'=>6,'time'=>20930),array('wood'=>10995,'clay'=>7000,'iron'=>9410,'crop'=>13100,'pop'=>4,'cp'=>14,'attri'=>7,'time'=>24880),array('wood'=>15390,'clay'=>9805,'iron'=>13175,'crop'=>18340,'pop'=>4,'cp'=>17,'attri'=>8,'time'=>29460),array('wood'=>21545,'clay'=>13725,'iron'=>18445,'crop'=>25680,'pop'=>4,'cp'=>21,'attri'=>9,'time'=>34770),array('wood'=>30165,'clay'=>19215,'iron'=>25825,'crop'=>35950,'pop'=>4,'cp'=>25,'attri'=>10,'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)); +?> \ No newline at end of file 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..febe6c12 --- /dev/null +++ b/GameEngine/Data/hero_full.php @@ -0,0 +1,182 @@ + 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 + $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), array('wood' => 5400, 'clay' => 4600, 'iron' => 6600, 'crop' => 1800, 'time' => 35200), array('wood' => 6000, 'clay' => 5100, 'iron' => 7400, 'crop' => 2000, + 'time' => 38400), array('wood' => 6700, 'clay' => 5700, 'iron' => 8100, 'crop' => 2200, 'time' => 41600), array('wood' => 7300, 'clay' => 6200, 'iron' => 8900, 'crop' => 2400, 'time' => 44800), array('wood' => 8000, 'clay' => 6800, 'iron' => 9700, 'crop' => 2700, 'time' => 48000), array('wood' => 8600, 'clay' => 7400, 'iron' => 10500, 'crop' => 2900, 'time' => 51200), array('wood' => 9300, 'clay' => 7900, 'iron' => 11500, 'crop' => 3100, 'time' => 54400), array('wood' => 10000, 'clay' => 8500, 'iron' => 12000, + 'crop' => 3300, 'time' => 57600), array('wood' => 10500, 'clay' => 9100, 'iron' => 13000, 'crop' => 3600, 'time' => 60800), array('wood' => 11500, 'clay' => 9700, 'iron' => 14000, 'crop' => 3800, 'time' => 64000), array('wood' => 12000, 'clay' => 10500, 'iron' => 15000, 'crop' => 4000, 'time' => 67200), array('wood' => 13000, 'clay' => 11000, 'iron' => 15500, 'crop' => 4300, 'time' => 70400), array('wood' => 13500, 'clay' => 11500, 'iron' => 16500, 'crop' => 4500, 'time' => 73600), array('wood' => 14500, 'clay' => + 12000, 'iron' => 17500, 'crop' => 4800, 'time' => 76800), array('wood' => 15000, 'clay' => 13000, 'iron' => 18500, 'crop' => 5000, 'time' => 80000), array('wood' => 16000, 'clay' => 13500, 'iron' => 19500, 'crop' => 5300, 'time' => 83200), array('wood' => 16500, 'clay' => 14000, 'iron' => 20500, 'crop' => 5500, 'time' => 86400), array('wood' => 17500, 'clay' => 15000, 'iron' => 21500, 'crop' => 5800, 'time' => 89600), array('wood' => 18000, 'clay' => 15500, 'iron' => 22000, 'crop' => 6100, 'time' => 92800), + array('wood' => 19000, 'clay' => 16000, 'iron' => 23000, 'crop' => 6300, 'time' => 96000), array('wood' => 19500, 'clay' => 17000, 'iron' => 24000, 'crop' => 6600, 'time' => 99200), array('wood' => 20500, 'clay' => 17500, 'iron' => 25000, 'crop' => 6800, 'time' => 102400), array('wood' => 21500, 'clay' => 18000, 'iron' => 26000, 'crop' => 7100, 'time' => 105600), array('wood' => 22000, 'clay' => 19000, 'iron' => 27000, 'crop' => 7400, 'time' => 108800), array('wood' => 23000, 'clay' => 19500, 'iron' => 28000, 'crop' => + 7700, 'time' => 112000), array('wood' => 24000, 'clay' => 20500, 'iron' => 29000, 'crop' => 7900, 'time' => 115200), array('wood' => 24500, 'clay' => 21000, 'iron' => 30000, 'crop' => 8200, 'time' => 118400), array('wood' => 25500, 'clay' => 21500, 'iron' => 31000, 'crop' => 8500, 'time' => 121600), array('wood' => 26500, 'clay' => 22500, 'iron' => 32000, 'crop' => 8800, 'time' => 124800), array('wood' => 27000, 'clay' => 23000, 'iron' => 33000, 'crop' => 9100, 'time' => 128000), array('wood' => 28000, 'clay' => 24000, + 'iron' => 34000, 'crop' => 9300, 'time' => 131200), array('wood' => 29000, 'clay' => 24500, 'iron' => 35500, 'crop' => 9600, 'time' => 134400), array('wood' => 29500, 'clay' => 25500, 'iron' => 36500, 'crop' => 9900, 'time' => 137600), array('wood' => 30500, 'clay' => 26000, 'iron' => 37500, 'crop' => 10000, 'time' => 140800), array('wood' => 31500, 'clay' => 27000, 'iron' => 38500, 'crop' => 10500, 'time' => 144000), array('wood' => 32500, 'clay' => 27500, 'iron' => 39500, 'crop' => 11000, 'time' => 147200), + array('wood' => 34000, 'clay' => 28500, 'iron' => 40500, 'crop' => 11000, 'time' => 150400), array('wood' => 34000, 'clay' => 29000, 'iron' => 41500, 'crop' => 11500, 'time' => 153600), array('wood' => 35000, 'clay' => 30000, 'iron' => 43000, 'crop' => 11500, 'time' => 156800), array('wood' => 36000, 'clay' => 30500, 'iron' => 44000, 'crop' => 12000, 'time' => 160000), array('wood' => 37000, 'clay' => 31500, 'iron' => 45000, 'crop' => 12500, 'time' => 163200), array('wood' => 37500, 'clay' => 32000, 'iron' => 46000, + 'crop' => 12500, 'time' => 166400), array('wood' => 38500, 'clay' => 33000, 'iron' => 47000, 'crop' => 13000, 'time' => 169600), array('wood' => 39500, 'clay' => 33500, 'iron' => 48500, 'crop' => 13000, 'time' => 172800), array('wood' => 40500, 'clay' => 34500, 'iron' => 49500, 'crop' => 13500, 'time' => 176000), array('wood' => 41500, 'clay' => 35000, 'iron' => 50500, 'crop' => 14000, 'time' => 179200), array('wood' => 42500, 'clay' => 36000, 'iron' => 51500, 'crop' => 14000, 'time' => 182400), array('wood' => 43000, + 'clay' => 37000, 'iron' => 53000, 'crop' => 14500, 'time' => 185600), array('wood' => 44000, 'clay' => 37500, 'iron' => 54000, 'crop' => 14500, 'time' => 188800), array('wood' => 45000, 'clay' => 38500, 'iron' => 55000, 'crop' => 15000, 'time' => 192000), array('wood' => 46000, 'clay' => 39000, 'iron' => 56500, 'crop' => 15500, 'time' => 195200)); + $h2_full = array(array('wood' => 200, 'clay' => 260, 'iron' => 320, 'crop' => 140, 'time' => 3520), array('wood' => 550, 'clay' => 690, 'iron' => 830, 'crop' => 400, 'time' => 7040), array('wood' => 910, 'clay' => 1100, 'iron' => 1400, 'crop' => 670, 'time' => 10560), array('wood' => 1300, 'clay' => 1600, 'iron' => 2000, 'crop' => 960, 'time' => 14080), array('wood' => 1700, 'clay' => 2200, 'iron' => 2600, 'crop' => 1300, 'time' => 17600), array('wood' => 2200, 'clay' => 2700, 'iron' => 3300, 'crop' => 1600, 'time' => + 21120), array('wood' => 2600, 'clay' => 3300, 'iron' => 4000, 'crop' => 1900, 'time' => 24640), array('wood' => 3100, 'clay' => 3900, 'iron' => 4700, 'crop' => 2300, 'time' => 28160), array('wood' => 3600, 'clay' => 4500, 'iron' => 5500, 'crop' => 2700, 'time' => 31680), array('wood' => 4100, 'clay' => 5200, 'iron' => 6200, 'crop' => 3000, 'time' => 35200), array('wood' => 4600, 'clay' => 5800, 'iron' => 7000, 'crop' => 3400, 'time' => 38720), array('wood' => 5100, 'clay' => 6500, 'iron' => 7800, 'crop' => 3800, 'time' => + 42240), array('wood' => 5700, 'clay' => 7200, 'iron' => 8600, 'crop' => 4200, 'time' => 45760), array('wood' => 6200, 'clay' => 7900, 'iron' => 9500, 'crop' => 4600, 'time' => 49280), array('wood' => 6800, 'clay' => 8600, 'iron' => 10500, 'crop' => 5000, 'time' => 52800), array('wood' => 7400, 'clay' => 9300, 'iron' => 11000, 'crop' => 5400, 'time' => 56320), array('wood' => 7900, 'clay' => 10000, 'iron' => 12000, 'crop' => 5900, 'time' => 59840), array('wood' => 8500, 'clay' => 11000, 'iron' => 13000, 'crop' => 6300, + 'time' => 63360), array('wood' => 9100, 'clay' => 11500, 'iron' => 14000, 'crop' => 6700, 'time' => 66880), array('wood' => 9700, 'clay' => 12500, 'iron' => 15000, 'crop' => 7200, 'time' => 70400), array('wood' => 10500, 'clay' => 13000, 'iron' => 15500, 'crop' => 7600, 'time' => 73920), array('wood' => 11000, 'clay' => 14000, 'iron' => 16500, 'crop' => 8100, 'time' => 77440), array('wood' => 11500, 'clay' => 14500, 'iron' => 17500, 'crop' => 8600, 'time' => 80960), array('wood' => 12000, 'clay' => 15500, 'iron' => 18500, + 'crop' => 9000, 'time' => 84480), array('wood' => 13000, 'clay' => 16000, 'iron' => 19500, 'crop' => 9500, 'time' => 88000), array('wood' => 13500, 'clay' => 17000, 'iron' => 20500, 'crop' => 10000, 'time' => 91520), array('wood' => 14000, 'clay' => 18000, 'iron' => 21500, 'crop' => 10500, 'time' => 95040), array('wood' => 15000, 'clay' => 18500, 'iron' => 22500, 'crop' => 11000, 'time' => 98560), array('wood' => 15500, 'clay' => 19500, 'iron' => 23500, 'crop' => 11500, 'time' => 102080), array('wood' => 16000, 'clay' => + 20500, 'iron' => 24500, 'crop' => 12000, 'time' => 105600), array('wood' => 17000, 'clay' => 21000, 'iron' => 25500, 'crop' => 12500, 'time' => 109120), array('wood' => 17500, 'clay' => 22000, 'iron' => 26500, 'crop' => 13000, 'time' => 112640), array('wood' => 18000, 'clay' => 23000, 'iron' => 27500, 'crop' => 13500, 'time' => 116160), array('wood' => 19000, 'clay' => 24000, 'iron' => 28500, 'crop' => 14000, 'time' => 119680), array('wood' => 19500, 'clay' => 24500, 'iron' => 30000, 'crop' => 14500, 'time' => 123200), + array('wood' => 20500, 'clay' => 25500, 'iron' => 31000, 'crop' => 15000, 'time' => 126270), array('wood' => 21000, 'clay' => 26500, 'iron' => 32000, 'crop' => 15500, 'time' => 130240), array('wood' => 21500, 'clay' => 27500, 'iron' => 33000, 'crop' => 16000, 'time' => 133760), array('wood' => 22500, 'clay' => 28500, 'iron' => 34000, 'crop' => 16500, 'time' => 137280), array('wood' => 23000, 'clay' => 29000, 'iron' => 35000, 'crop' => 17000, 'time' => 140800), array('wood' => 24000, 'clay' => 30000, 'iron' => 36500, 'crop' => + 17500, 'time' => 144320), array('wood' => 24500, 'clay' => 31000, 'iron' => 37500, 'crop' => 18000, 'time' => 147840), array('wood' => 25500, 'clay' => 32000, 'iron' => 38500, 'crop' => 18500, 'time' => 151360), array('wood' => 26000, 'clay' => 33000, 'iron' => 39500, 'crop' => 19500, 'time' => 154880), array('wood' => 27000, 'clay' => 34000, 'iron' => 41000, 'crop' => 20000, 'time' => 158400), array('wood' => 27500, 'clay' => 34500, 'iron' => 42000, 'crop' => 20500, 'time' => 161920), array('wood' => 28500, 'clay' => 35500, + 'iron' => 43000, 'crop' => 21000, 'time' => 165440), array('wood' => 29000, 'clay' => 36500, 'iron' => 44000, 'crop' => 21500, 'time' => 168960), array('wood' => 30000, 'clay' => 37500, 'iron' => 45500, 'crop' => 22000, 'time' => 172480), array('wood' => 30500, 'clay' => 38500, 'iron' => 46500, 'crop' => 22500, 'time' => 176000), array('wood' => 31500, 'clay' => 39500, 'iron' => 47500, 'crop' => 23000, 'time' => 179520), array('wood' => 32000, 'clay' => 40500, 'iron' => 49000, 'crop' => 23500, 'time' => 183040), array('wood' => + 33000, 'clay' => 41500, 'iron' => 50000, 'crop' => 24500, 'time' => 186560), array('wood' => 33500, 'clay' => 42500, 'iron' => 51000, 'crop' => 25000, 'time' => 190080), array('wood' => 34500, 'clay' => 43500, 'iron' => 52500, 'crop' => 25500, 'time' => 193600), array('wood' => 35000, 'clay' => 44500, 'iron' => 53500, 'crop' => 26000, 'time' => 197120), array('wood' => 36000, 'clay' => 45500, 'iron' => 55000, 'crop' => 26500, 'time' => 200640), array('wood' => 37000, 'clay' => 46500, 'iron' => 56000, 'crop' => 27000, 'time' => + 204160), array('wood' => 37500, 'clay' => 47500, 'iron' => 57000, 'crop' => 28000, 'time' => 207680), array('wood' => 38500, 'clay' => 48500, 'iron' => 58500, 'crop' => 28500, 'time' => 211200), array('wood' => 39000, 'clay' => 49500, 'iron' => 59500, 'crop' => 29000, 'time' => 214720)); + $h3_full = array(array('wood' => 300, 'clay' => 320, 'iron' => 420, 'crop' => 160, 'time' => 3840), array('wood' => 780, 'clay' => 830, 'iron' => 1100, 'crop' => 450, 'time' => 7680), array('wood' => 1300, 'clay' => 1400, 'iron' => 1800, 'crop' => 750, 'time' => 11520), array('wood' => 1900, 'clay' => 2000, 'iron' => 2500, 'crop' => 1100, 'time' => 15360), array('wood' => 2500, 'clay' => 2600, 'iron' => 3400, 'crop' => 1400, 'time' => 19200), array('wood' => 3100, 'clay' => 3300, 'iron' => 4200, 'crop' => 1800, 'time' => 23040), + array('wood' => 3800, 'clay' => 4000, 'iron' => 5100, 'crop' => 2200, 'time' => 26880), array('wood' => 4400, 'clay' => 4700, 'iron' => 6100, 'crop' => 2600, 'time' => 30720), array('wood' => 5100, 'clay' => 5500, 'iron' => 7000, 'crop' => 3000, 'time' => 34560), array('wood' => 5900, 'clay' => 6200, 'iron' => 8000, 'crop' => 3400, 'time' => 38400), array('wood' => 6600, 'clay' => 7000, 'iron' => 9000, 'crop' => 3800, 'time' => 42240), array('wood' => 7400, 'clay' => 7800, 'iron' => 10000, 'crop' => 4200, 'time' => 46080), + array('wood' => 8100, 'clay' => 8600, 'iron' => 11000, 'crop' => 4700, 'time' => 49920), array('wood' => 8900, 'clay' => 9500, 'iron' => 12000, 'crop' => 5100, 'time' => 53760), array('wood' => 9700, 'clay' => 10500, 'iron' => 13500, 'crop' => 5600, 'time' => 57600), array('wood' => 10500, 'clay' => 11000, 'iron' => 14500, 'crop' => 6100, 'time' => 61440), array('wood' => 11500, 'clay' => 12000, 'iron' => 15500, 'crop' => 6600, 'time' => 65280), array('wood' => 12000, 'clay' => 13000, 'iron' => 16500, 'crop' => 7000, 'time' => + 69120), array('wood' => 13000, 'clay' => 14000, 'iron' => 18000, 'crop' => 7500, 'time' => 72960), array('wood' => 14000, 'clay' => 15000, 'iron' => 19000, 'crop' => 8000, 'time' => 76800), array('wood' => 15000, 'clay' => 15500, 'iron' => 20000, 'crop' => 8500, 'time' => 80640), array('wood' => 15500, 'clay' => 16500, 'iron' => 21500, 'crop' => 9100, 'time' => 84480), array('wood' => 16500, 'clay' => 17500, 'iron' => 22500, 'crop' => 9600, 'time' => 88320), array('wood' => 17500, 'clay' => 18500, 'iron' => 24000, 'crop' => 10000, + 'time' => 92160), array('wood' => 18500, 'clay' => 19500, 'iron' => 25000, 'crop' => 10500, 'time' => 96000), array('wood' => 19500, 'clay' => 20500, 'iron' => 26500, 'crop' => 11000, 'time' => 99840), array('wood' => 20500, 'clay' => 21500, 'iron' => 27500, 'crop' => 11500, 'time' => 103680), array('wood' => 21500, 'clay' => 22500, 'iron' => 29000, 'crop' => 12000, 'time' => 107520), array('wood' => 22000, 'clay' => 23500, 'iron' => 30500, 'crop' => 13000, 'time' => 111360), array('wood' => 23000, 'clay' => 24500, 'iron' => 31500, + 'crop' => 13500, 'time' => 115200), array('wood' => 24000, 'clay' => 25500, 'iron' => 33000, 'crop' => 14000, 'time' => 119040), array('wood' => 25000, 'clay' => 26500, 'iron' => 34000, 'crop' => 14500, 'time' => 122880), array('wood' => 26000, 'clay' => 27500, 'iron' => 35500, 'crop' => 15000, 'time' => 126720), array('wood' => 27000, 'clay' => 28500, 'iron' => 37000, 'crop' => 15500, 'time' => 130560), array('wood' => 28000, 'clay' => 30000, 'iron' => 38500, 'crop' => 16000, 'time' => 134400), array('wood' => 29000, 'clay' => 31000, + 'iron' => 39500, 'crop' => 17000, 'time' => 138240), array('wood' => 30000, 'clay' => 32000, 'iron' => 41000, 'crop' => 17500, 'time' => 142080), array('wood' => 31000, 'clay' => 33000, 'iron' => 42500, 'crop' => 18000, 'time' => 145920), array('wood' => 32000, 'clay' => 34000, 'iron' => 44000, 'crop' => 18500, 'time' => 149760), array('wood' => 33000, 'clay' => 35000, 'iron' => 45500, 'crop' => 19000, 'time' => 153600), array('wood' => 34000, 'clay' => 36500, 'iron' => 46500, 'crop' => 19500, 'time' => 157440), array('wood' => 35500, + 'clay' => 37500, 'iron' => 48000, 'crop' => 20500, 'time' => 161280), array('wood' => 36500, 'clay' => 38500, 'iron' => 49500, 'crop' => 21000, 'time' => 165120), array('wood' => 37500, 'clay' => 39500, 'iron' => 51000, 'crop' => 21500, 'time' => 168960), array('wood' => 38500, 'clay' => 41000, 'iron' => 52500, 'crop' => 22000, 'time' => 172800), array('wood' => 39500, 'clay' => 42000, 'iron' => 54000, 'crop' => 23000, 'time' => 176640), array('wood' => 40500, 'clay' => 43000, 'iron' => 55000, 'crop' => 23500, 'time' => 180480), + array('wood' => 41500, 'clay' => 44000, 'iron' => 57000, 'crop' => 24000, 'time' => 184320), array('wood' => 43000, 'clay' => 45500, 'iron' => 58500, 'crop' => 24500, 'time' => 188160), array('wood' => 44000, 'clay' => 46500, 'iron' => 60000, 'crop' => 25500, 'time' => 192000), array('wood' => 45000, 'clay' => 47500, 'iron' => 61500, 'crop' => 26000, 'time' => 195840), array('wood' => 46000, 'clay' => 49000, 'iron' => 63000, 'crop' => 26500, 'time' => 199680), array('wood' => 47000, 'clay' => 50000, 'iron' => 64500, 'crop' => 27000, + 'time' => 203520), array('wood' => 48500, 'clay' => 51000, 'iron' => 66000, 'crop' => 28000, 'time' => 207360), array('wood' => 49500, 'clay' => 52500, 'iron' => 67500, 'crop' => 28500, 'time' => 211200), array('wood' => 50500, 'clay' => 53500, 'iron' => 69000, 'crop' => 29000, 'time' => 215040), array('wood' => 51500, 'clay' => 55000, 'iron' => 70500, 'crop' => 30000, 'time' => 218880), array('wood' => 53000, 'clay' => 56000, 'iron' => 72000, 'crop' => 30500, 'time' => 222720), array('wood' => 54000, 'clay' => 57000, 'iron' => 73500, + 'crop' => 31000, 'time' => 226560), array('wood' => 55000, 'clay' => 58500, 'iron' => 75000, 'crop' => 31500, 'time' => 230400), array('wood' => 56500, 'clay' => 59500, 'iron' => 76500, 'crop' => 32500, 'time' => 234240)); + $h5_full = array(array('wood' => 1100, 'clay' => 880, 'iron' => 640, 'crop' => 200, 'time' => 5280), array('wood' => 2700, 'clay' => 2200, 'iron' => 1600, 'crop' => 550, 'time' => 10560), array('wood' => 4500, 'clay' => 3600, 'iron' => 2600, 'crop' => 910, 'time' => 15840), array('wood' => 6400, 'clay' => 5100, 'iron' => 3800, 'crop' => 1300, 'time' => 21120), array('wood' => 8400, 'clay' => 6800, 'iron' => 5000, 'crop' => 1700, 'time' => 26400), array('wood' => 10500, 'clay' => 8500, 'iron' => 6300, 'crop' => 2200, 'time' => 31680), + array('wood' => 13000, 'clay' => 10500, 'iron' => 7600, 'crop' => 2600, 'time' => 36960), array('wood' => 15000, 'clay' => 12000, 'iron' => 9000, 'crop' => 3100, 'time' => 42240), array('wood' => 17500, 'clay' => 14000, 'iron' => 10500, 'crop' => 3600, 'time' => 47520), array('wood' => 20000, 'clay' => 16000, 'iron' => 12000, 'crop' => 4100, 'time' => 52800), array('wood' => 22500, 'clay' => 18000, 'iron' => 13500, 'crop' => 4600, 'time' => 58080), array('wood' => 25000, 'clay' => 20500, 'iron' => 15000, 'crop' => 5100, 'time' => + 63360), array('wood' => 28000, 'clay' => 22500, 'iron' => 16500, 'crop' => 5700, 'time' => 68640), array('wood' => 30500, 'clay' => 24500, 'iron' => 18000, 'crop' => 6200, 'time' => 73920), array('wood' => 33500, 'clay' => 27000, 'iron' => 20000, 'crop' => 6800, 'time' => 79200), array('wood' => 36000, 'clay' => 29000, 'iron' => 21500, 'crop' => 7400, 'time' => 84480), array('wood' => 39000, 'clay' => 31500, 'iron' => 23000, 'crop' => 7900, 'time' => 89760), array('wood' => 42000, 'clay' => 33500, 'iron' => 25000, 'crop' => 8500, + 'time' => 95040), array('wood' => 45000, 'clay' => 36000, 'iron' => 26500, 'crop' => 9100, 'time' => 100320), array('wood' => 48000, 'clay' => 38500, 'iron' => 28500, 'crop' => 9700, 'time' => 105600), array('wood' => 51000, 'clay' => 41000, 'iron' => 30000, 'crop' => 10500, 'time' => 110880), array('wood' => 54000, 'clay' => 43500, 'iron' => 32000, 'crop' => 11000, 'time' => 116160), array('wood' => 57000, 'clay' => 46000, 'iron' => 33500, 'crop' => 11500, 'time' => 121440), array('wood' => 60000, 'clay' => 48500, 'iron' => 35500, + 'crop' => 12000, 'time' => 126720), array('wood' => 63000, 'clay' => 51000, 'iron' => 37500, 'crop' => 13000, 'time' => 132000), array('wood' => 66500, 'clay' => 53500, 'iron' => 39500, 'crop' => 13500, 'time' => 137280), array('wood' => 69500, 'clay' => 56000, 'iron' => 41000, 'crop' => 14000, 'time' => 142560), array('wood' => 73000, 'clay' => 58500, 'iron' => 43000, 'crop' => 15000, 'time' => 147840), array('wood' => 76000, 'clay' => 61000, 'iron' => 45000, 'crop' => 15500, 'time' => 153120), array('wood' => 79500, 'clay' => 64000, + 'iron' => 47000, 'crop' => 16000, 'time' => 158400), array('wood' => 82500, 'clay' => 66500, 'iron' => 49000, 'crop' => 17000, 'time' => 163680), array('wood' => 86000, 'clay' => 69500, 'iron' => 51000, 'crop' => 17500, 'time' => 168960), array('wood' => 89500, 'clay' => 72000, 'iron' => 53000, 'crop' => 18000, 'time' => 174240), array('wood' => 93000, 'clay' => 74500, 'iron' => 55000, 'crop' => 19000, 'time' => 179520), array('wood' => 96000, 'clay' => 77500, 'iron' => 57000, 'crop' => 19500, 'time' => 184800), array('wood' => 99500, + 'clay' => 80000, 'iron' => 59000, 'crop' => 20500, 'time' => 190080), array('wood' => 103000, 'clay' => 83000, 'iron' => 61000, 'crop' => 21000, 'time' => 195360), array('wood' => 106500, 'clay' => 86000, 'iron' => 63000, 'crop' => 21500, 'time' => 200640), array('wood' => 110000, 'clay' => 88500, 'iron' => 65500, 'crop' => 22500, 'time' => 205920), array('wood' => 113500, 'clay' => 91500, 'iron' => 67500, 'crop' => 23000, 'time' => 211200), array('wood' => 117000, 'clay' => 94500, 'iron' => 69500, 'crop' => 24000, 'time' => 216480), + array('wood' => 121000, 'clay' => 97500, 'iron' => 75500, 'crop' => 24500, 'time' => 221760), array('wood' => 124500, 'clay' => 100000, 'iron' => 74000, 'crop' => 25500, 'time' => 227040), array('wood' => 128000, 'clay' => 103000, 'iron' => 76000, 'crop' => 26000, 'time' => 232320), array('wood' => 131500, 'clay' => 106000, 'iron' => 78000, 'crop' => 27000, 'time' => 237600), array('wood' => 135500, 'clay' => 109000, 'iron' => 80500, 'crop' => 27500, 'time' => 242800), array('wood' => 139000, 'clay' => 112000, 'iron' => 82500, 'crop' => + 28500, 'time' => 248160), array('wood' => 143000, 'clay' => 115000, 'iron' => 84500, 'crop' => 29000, 'time' => 253440), array('wood' => 146500, 'clay' => 118000, 'iron' => 87000, 'crop' => 30000, 'time' => 258720), array('wood' => 150000, 'clay' => 121000, 'iron' => 89000, 'crop' => 30500, 'time' => 264000), array('wood' => 154000, 'clay' => 124000, 'iron' => 91500, 'crop' => 31500, 'time' => 269280), array('wood' => 158000, 'clay' => 127000, 'iron' => 93500, 'crop' => 32000, 'time' => 274560), array('wood' => 161500, 'clay' => 130000, + 'iron' => 96000, 'crop' => 33000, 'time' => 279840), array('wood' => 165500, 'clay' => 133000, 'iron' => 98000, 'crop' => 33500, 'time' => 285120), array('wood' => 169500, 'clay' => 136500, 'iron' => 100500, 'crop' => 34500, 'time' => 290400), array('wood' => 173000, 'clay' => 139500, 'iron' => 102500, 'crop' => 35000, 'time' => 295680), array('wood' => 177000, 'clay' => 142500, 'iron' => 105000, 'crop' => 36000, 'time' => 300960), array('wood' => 181000, 'clay' => 145500, 'iron' => 107000, 'crop' => 37000, 'time' => 306240), array('wood' => + 185000, 'clay' => 149000, 'iron' => 109500, 'crop' => 37500, 'time' => 311520), array('wood' => 188500, 'clay' => 152000, 'iron' => 112000, 'crop' => 38500, 'time' => 316800), array('wood' => 192500, 'clay' => 155000, 'iron' => 114000, 'crop' => 39000, 'time' => 322080)); + $h6_full = array(array('wood' => 1100, 'clay' => 1300, 'iron' => 1600, 'crop' => 360, 'time' => 7040), array('wood' => 2700, 'clay' => 3100, 'iron' => 3900, 'crop' => 930, 'time' => 14080), array('wood' => 4500, 'clay' => 5200, 'iron' => 6400, 'crop' => 1500, 'time' => 21120), array('wood' => 6400, 'clay' => 7400, 'iron' => 9200, 'crop' => 2200, 'time' => 28160), array('wood' => 8400, 'clay' => 9800, 'iron' => 12000, 'crop' => 2900, 'time' => 35200), array('wood' => 10500, 'clay' => 12500, 'iron' => 15500, 'crop' => 3700, 'time' => 42240), + array('wood' => 13000, 'clay' => 15000, 'iron' => 18500, 'crop' => 4400, 'time' => 49280), array('wood' => 15000, 'clay' => 17500, 'iron' => 22000, 'crop' => 5200, 'time' => 56320), array('wood' => 17500, 'clay' => 20500, 'iron' => 25500, 'crop' => 6100, 'time' => 63360), array('wood' => 20000, 'clay' => 23500, 'iron' => 29000, 'crop' => 6900, 'time' => 70400), array('wood' => 22500, 'clay' => 26000, 'iron' => 32500, 'crop' => 7800, 'time' => 77440), array('wood' => 25000, 'clay' => 29500, 'iron' => 36500, 'crop' => 8700, 'time' => 84480), + array('wood' => 28000, 'clay' => 32500, 'iron' => 40000, 'crop' => 9600, 'time' => 91520), array('wood' => 30500, 'clay' => 35500, 'iron' => 44000, 'crop' => 10500, 'time' => 98560), array('wood' => 33500, 'clay' => 38500, 'iron' => 48000, 'crop' => 11500, 'time' => 105600), array('wood' => 36000, 'clay' => 42000, 'iron' => 52000, 'crop' => 12500, 'time' => 112640), array('wood' => 39000, 'clay' => 45000, 'iron' => 56500, 'crop' => 13500, 'time' => 119680), array('wood' => 42000, 'clay' => 48500, 'iron' => 60500, 'crop' => 14500, 'time' => + 126720), array('wood' => 45000, 'clay' => 52000, 'iron' => 64500, 'crop' => 15500, 'time' => 133760), array('wood' => 48000, 'clay' => 55500, 'iron' => 69000, 'crop' => 16500, 'time' => 140800), array('wood' => 51000, 'clay' => 59000, 'iron' => 73500, 'crop' => 17500, 'time' => 147840), array('wood' => 54000, 'clay' => 62500, 'iron' => 77500, 'crop' => 18500, 'time' => 154880), array('wood' => 57000, 'clay' => 66000, 'iron' => 82000, 'crop' => 19500, 'time' => 161920), array('wood' => 60000, 'clay' => 69500, 'iron' => 86500, 'crop' => 20500, + 'time' => 168960), array('wood' => 63000, 'clay' => 73000, 'iron' => 91000, 'crop' => 22000, 'time' => 176000), array('wood' => 66500, 'clay' => 77000, 'iron' => 95500, 'crop' => 23000, 'time' => 183040), array('wood' => 69500, 'clay' => 80500, 'iron' => 100500, 'crop' => 24000, 'time' => 190080), array('wood' => 73000, 'clay' => 84500, 'iron' => 105000, 'crop' => 25000, 'time' => 197120), array('wood' => 76000, 'clay' => 88000, 'iron' => 109500, 'crop' => 26000, 'time' => 204160), array('wood' => 79500, 'clay' => 92000, 'iron' => 114500, + 'crop' => 27500, 'time' => 211200), array('wood' => 82500, 'clay' => 96000, 'iron' => 119000, 'crop' => 28500, 'time' => 218240), array('wood' => 86000, 'clay' => 99500, 'iron' => 124000, 'crop' => 29500, 'time' => 255280), array('wood' => 89500, 'clay' => 103500, 'iron' => 129000, 'crop' => 31000, 'time' => 232320), array('wood' => 93000, 'clay' => 107500, 'iron' => 134000, 'crop' => 32000, 'time' => 239360), array('wood' => 96000, 'clay' => 111500, 'iron' => 139000, 'crop' => 33000, 'time' => 246400), array('wood' => 99500, 'clay' => 115500, + 'iron' => 143500, 'crop' => 34500, 'time' => 253440), array('wood' => 103000, 'clay' => 119500, 'iron' => 148500, 'crop' => 35500, 'time' => 260480), array('wood' => 106500, 'clay' => 123500, 'iron' => 154000, 'crop' => 37000, 'time' => 267520), array('wood' => 110000, 'clay' => 127500, 'iron' => 159000, 'crop' => 38000, 'time' => 274560), array('wood' => 113500, 'clay' => 132000, 'iron' => 164000, 'crop' => 39000, 'time' => 281600), array('wood' => 117000, 'clay' => 136000, 'iron' => 169000, 'crop' => 40500, 'time' => 288640), array('wood' => + 121000, 'clay' => 140000, 'iron' => 174500, 'crop' => 41500, 'time' => 295680), array('wood' => 124500, 'clay' => 144000, 'iron' => 179500, 'crop' => 43000, 'time' => 302720), array('wood' => 128000, 'clay' => 148500, 'iron' => 184500, 'crop' => 44000, 'time' => 309760), array('wood' => 131500, 'clay' => 152500, 'iron' => 190000, 'crop' => 45500, 'time' => 316800), array('wood' => 135500, 'clay' => 157000, 'iron' => 195500, 'crop' => 46500, 'time' => 323840), array('wood' => 139000, 'clay' => 161000, 'iron' => 200500, 'crop' => 48000, 'time' => + 330880), array('wood' => 143000, 'clay' => 165500, 'iron' => 206000, 'crop' => 49500, 'time' => 337920), array('wood' => 146500, 'clay' => 170000, 'iron' => 211500, 'crop' => 50500, 'time' => 344960), array('wood' => 150000, 'clay' => 174000, 'iron' => 216500, 'crop' => 52000, 'time' => 352000), array('wood' => 154000, 'clay' => 178500, 'iron' => 222000, 'crop' => 53000, 'time' => 359040), array('wood' => 46000, 'clay' => 183000, 'iron' => 227500, 'crop' => 54500, 'time' => 366080), array('wood' => 46000, 'clay' => 187500, 'iron' => 233000, 'crop' + => 56000, 'time' => 373120), array('wood' => 166500, 'clay' => 192000, 'iron' => 238500, 'crop' => 57000, 'time' => 380160), array('wood' => 169500, 'clay' => 196000, 'iron' => 240000, 'crop' => 58500, 'time' => 387200), array('wood' => 173000, 'clay' => 200500, 'iron' => 240000, 'crop' => 59500, 'time' => 394240), array('wood' => 177000, 'clay' => 205000, 'iron' => 240000, 'crop' => 61000, 'time' => 401280), array('wood' => 181000, 'clay' => 209500, 'iron' => 240000, 'crop' => 62500, 'time' => 406970), array('wood' => 185000, 'clay' => 214000, + 'iron' => 240000, 'crop' => 64000, 'time' => 415360), array('wood' => 188500, 'clay' => 219000, 'iron' => 240000, 'crop' => 65000, 'time' => 422400), array('wood' => 192500, 'clay' => 223500, 'iron' => 240000, 'crop' => 66500, 'time' => 429440)); + +//TEUTON UNITS + $h11_full = array(array('wood' => 190, 'clay' => 150, 'iron' => 80, 'crop' => 80, 'time' => 1440), array('wood' => 520, 'clay' => 430, 'iron' => 260, 'crop' => 260, 'time' => 2880), array('wood' => 870, 'clay' => 710, 'iron' => 430, 'crop' => 430, 'time' => 4320), array('wood' => 1200, 'clay' => 1000, 'iron' => 620, 'crop' => 620, 'time' => 5760), array('wood' => 1600, 'clay' => 1300, 'iron' => 820, 'crop' => 820, 'time' => 7200), array('wood' => 2100, 'clay' => 1700, 'iron' => 1000, 'crop' => 1000, 'time' => 8640), array('wood' => 2500, 'clay' => + 2000, 'iron' => 1300, 'crop' => 1300, 'time' => 10080), array('wood' => 3000, 'clay' => 2400, 'iron' => 1500, 'crop' => 1500, 'time' => 11520), array('wood' => 3400, 'clay' => 2800, 'iron' => 1700, 'crop' => 1700, 'time' => 12960), array('wood' => 3900, 'clay' => 3200, 'iron' => 2000, 'crop' => 2000, 'time' => 14400), array('wood' => 4400, 'clay' => 3600, 'iron' => 2200, 'crop' => 2200, 'time' => 15840), array('wood' => 4900, 'clay' => 4000, 'iron' => 2500, 'crop' => 2500, 'time' => 17280), array('wood' => 5400, 'clay' => 4400, 'iron' => 2700, + 'crop' => 2700, 'time' => 18720), array('wood' => 6000, 'clay' => 4900, 'iron' => 3000, 'crop' => 3000, 'time' => 20160), array('wood' => 6500, 'clay' => 5300, 'iron' => 3200, 'crop' => 3200, 'time' => 21600), array('wood' => 7000, 'clay' => 5800, 'iron' => 3500, 'crop' => 3500, 'time' => 23040), array('wood' => 7600, 'clay' => 6200, 'iron' => 3800, 'crop' => 3800, 'time' => 24480), array('wood' => 8200, 'clay' => 6700, 'iron' => 4100, 'crop' => 4100, 'time' => 25920), array('wood' => 8700, 'clay' => 7100, 'iron' => 4400, 'crop' => 4400, + 'time' => 27360), array('wood' => 9300, 'clay' => 7600, 'iron' => 4700, 'crop' => 4700, 'time' => 28800), array('wood' => 9900, 'clay' => 8100, 'iron' => 4900, 'crop' => 4900, 'time' => 30240), array('wood' => 10500, 'clay' => 8600, 'iron' => 5200, 'crop' => 5200, 'time' => 31680), array('wood' => 11000, 'clay' => 9100, 'iron' => 5500, 'crop' => 5500, 'time' => 33120), array('wood' => 11500, 'clay' => 9600, 'iron' => 5800, 'crop' => 5800, 'time' => 34560), array('wood' => 12500, 'clay' => 10000, 'iron' => 6100, 'crop' => 6100, 'time' => 36000), + array('wood' => 13000, 'clay' => 10500, 'iron' => 6500, 'crop' => 6500, 'time' => 37440), array('wood' => 13500, 'clay' => 11000, 'iron' => 6800, 'crop' => 6800, 'time' => 38880), array('wood' => 14000, 'clay' => 11500, 'iron' => 7100, 'crop' => 7100, 'time' => 40320), array('wood' => 15000, 'clay' => 12000, 'iron' => 7400, 'crop' => 7400, 'time' => 41760), array('wood' => 15500, 'clay' => 12500, 'iron' => 7700, 'crop' => 7700, 'time' => 43200), array('wood' => 16000, 'clay' => 13000, 'iron' => 8000, 'crop' => 8000, 'time' => 44640), array('wood' + => 16500, 'clay' => 13500, 'iron' => 8400, 'crop' => 8400, 'time' => 46080), array('wood' => 17500, 'clay' => 14000, 'iron' => 8700, 'crop' => 8700, 'time' => 47520), array('wood' => 18000, 'clay' => 15000, 'iron' => 9000, 'crop' => 9000, 'time' => 48960), array('wood' => 18500, 'clay' => 15500, 'iron' => 9400, 'crop' => 9400, 'time' => 50400), array('wood' => 19500, 'clay' => 16000, 'iron' => 9700, 'crop' => 9700, 'time' => 51840), array('wood' => 20000, 'clay' => 16500, 'iron' => 10000, 'crop' => 10000, 'time' => 53280), array('wood' => + 21000, 'clay' => 17000, 'iron' => 10500, 'crop' => 10500, 'time' => 54720), array('wood' => 21500, 'clay' => 17500, 'iron' => 10500, 'crop' => 10500, 'time' => 56160), array('wood' => 22000, 'clay' => 18000, 'iron' => 11000, 'crop' => 11000, 'time' => 57600), array('wood' => 23000, 'clay' => 18500, 'iron' => 11500, 'crop' => 11500, 'time' => 59040), array('wood' => 23500, 'clay' => 19000, 'iron' => 12000, 'crop' => 12000, 'time' => 60480), array('wood' => 24000, 'clay' => 20000, 'iron' => 12000, 'crop' => 12000, 'time' => 61920), array('wood' => + 25000, 'clay' => 20500, 'iron' => 12500, 'crop' => 12500, 'time' => 63360), array('wood' => 25500, 'clay' => 21000, 'iron' => 13000, 'crop' => 13000, 'time' => 64800), array('wood' => 26500, 'clay' => 21500, 'iron' => 13000, 'crop' => 13000, 'time' => 66240), array('wood' => 27000, 'clay' => 22000, 'iron' => 13500, 'crop' => 13500, 'time' => 67680), array('wood' => 28000, 'clay' => 22500, 'iron' => 14000, 'crop' => 14000, 'time' => 69120), array('wood' => 28500, 'clay' => 23500, 'iron' => 14500, 'crop' => 14500, 'time' => 70560), array('wood' => + 29500, 'clay' => 24000, 'iron' => 14500, 'crop' => 14500, 'time' => 72000), array('wood' => 30000, 'clay' => 24500, 'iron' => 15000, 'crop' => 15000, 'time' => 73440), array('wood' => 30500, 'clay' => 25000, 'iron' => 15500, 'crop' => 15500, 'time' => 74880), array('wood' => 31500, 'clay' => 25500, 'iron' => 15500, 'crop' => 15500, 'time' => 76320), array('wood' => 32000, 'clay' => 26500, 'iron' => 16000, 'crop' => 16000, 'time' => 77760), array('wood' => 33000, 'clay' => 27000, 'iron' => 16500, 'crop' => 16500, 'time' => 79200), array('wood' => + 33500, 'clay' => 27500, 'iron' => 17000, 'crop' => 17000, 'time' => 80640), array('wood' => 34500, 'clay' => 28000, 'iron' => 17000, 'crop' => 17000, 'time' => 82080), array('wood' => 35000, 'clay' => 29000, 'iron' => 17500, 'crop' => 17500, 'time' => 83520), array('wood' => 36000, 'clay' => 29500, 'iron' => 18000, 'crop' => 18000, 'time' => 84960), array('wood' => 36500, 'clay' => 30000, 'iron' => 18500, 'crop' => 18500, 'time' => 86400), array('wood' => 37500, 'clay' => 30500, 'iron' => 19000, 'crop' => 19000, 'time' => 87840)); + $h12_full = array(array('wood' => 290, 'clay' => 140, 'iron' => 170, 'crop' => 80, 'time' => 2240), array('wood' => 760, 'clay' => 400, 'iron' => 480, 'crop' => 260, 'time' => 4480), array('wood' => 1300, 'clay' => 670, 'iron' => 790, 'crop' => 430, 'time' => 6720), array('wood' => 1800, 'clay' => 960, 'iron' => 1100, 'crop' => 620, 'time' => 8960), array('wood' => 2400, 'clay' => 1300, 'iron' => 1500, 'crop' => 820, 'time' => 11200), array('wood' => 3000, 'clay' => 1600, 'iron' => 1900, 'crop' => 1000, 'time' => 13440), array('wood' => 3600, + 'clay' => 1900, 'iron' => 2300, 'crop' => 1300, 'time' => 15680), array('wood' => 4300, 'clay' => 2300, 'iron' => 2700, 'crop' => 1500, 'time' => 17920), array('wood' => 5000, 'clay' => 2700, 'iron' => 3100, 'crop' => 1700, 'time' => 20160), array('wood' => 5700, 'clay' => 3000, 'iron' => 3600, 'crop' => 2000, 'time' => 22400), array('wood' => 6400, 'clay' => 3400, 'iron' => 4000, 'crop' => 2200, 'time' => 24640), array('wood' => 7100, 'clay' => 3800, 'iron' => 4500, 'crop' => 2500, 'time' => 26880), array('wood' => 7900, 'clay' => 4200, + 'iron' => 4900, 'crop' => 2700, 'time' => 29120), array('wood' => 8700, 'clay' => 4600, 'iron' => 5400, 'crop' => 3000, 'time' => 31360), array('wood' => 9400, 'clay' => 5000, 'iron' => 5900, 'crop' => 3200, 'time' => 33600), array('wood' => 10000, 'clay' => 5400, 'iron' => 6400, 'crop' => 3500, 'time' => 35840), array('wood' => 11000, 'clay' => 5900, 'iron' => 6900, 'crop' => 3800, 'time' => 38080), array('wood' => 12000, 'clay' => 6300, 'iron' => 7400, 'crop' => 4100, 'time' => 40320), array('wood' => 12500, 'clay' => 6700, 'iron' => 7900, + 'crop' => 4400, 'time' => 42560), array('wood' => 13500, 'clay' => 7200, 'iron' => 8500, 'crop' => 4700, 'time' => 44800), array('wood' => 14500, 'clay' => 7600, 'iron' => 9000, 'crop' => 4900, 'time' => 47040), array('wood' => 15000, 'clay' => 8100, 'iron' => 9500, 'crop' => 5200, 'time' => 49280), array('wood' => 16000, 'clay' => 8600, 'iron' => 10000, 'crop' => 5500, 'time' => 51520), array('wood' => 17000, 'clay' => 9000, 'iron' => 10500, 'crop' => 5800, 'time' => 53760), array('wood' => 18000, 'clay' => 9500, 'iron' => 11000, 'crop' => 6100, + 'time' => 56000), array('wood' => 19000, 'clay' => 10000, 'iron' => 11500, 'crop' => 6500, 'time' => 58240), array('wood' => 19500, 'clay' => 10500, 'iron' => 12500, 'crop' => 6800, 'time' => 60480), array('wood' => 20500, 'clay' => 11000, 'iron' => 13000, 'crop' => 7100, 'time' => 62720), array('wood' => 21500, 'clay' => 11500, 'iron' => 13500, 'crop' => 7400, 'time' => 64960), array('wood' => 22500, 'clay' => 12000, 'iron' => 14000, 'crop' => 7700, 'time' => 67200), array('wood' => 23500, 'clay' => 12500, 'iron' => 14500, 'crop' => 8000, + 'time' => 69440), array('wood' => 24500, 'clay' => 13000, 'iron' => 15000, 'crop' => 8400, 'time' => 71680), array('wood' => 25500, 'clay' => 13500, 'iron' => 16000, 'crop' => 8700, 'time' => 73920), array('wood' => 26500, 'clay' => 14000, 'iron' => 16500, 'crop' => 9000, 'time' => 76160), array('wood' => 27000, 'clay' => 14500, 'iron' => 17000, 'crop' => 9400, 'time' => 78400), array('wood' => 28000, 'clay' => 15000, 'iron' => 17500, 'crop' => 9700, 'time' => 80640), array('wood' => 29000, 'clay' => 15500, 'iron' => 18000, 'crop' => 10000, + 'time' => 82880), array('wood' => 30000, 'clay' => 16000, 'iron' => 18500, 'crop' => 10500, 'time' => 85120), array('wood' => 31000, 'clay' => 16500, 'iron' => 19500, 'crop' => 10500, 'time' => 87360), array('wood' => 32000, 'clay' => 17000, 'iron' => 20000, 'crop' => 11000, 'time' => 89600), array('wood' => 33000, 'clay' => 17500, 'iron' => 20500, 'crop' => 11500, 'time' => 91840), array('wood' => 34000, 'clay' => 18000, 'iron' => 21500, 'crop' => 12000, 'time' => 94080), array('wood' => 35000, 'clay' => 18500, 'iron' => 22000, 'crop' => 12000, + 'time' => 96320), array('wood' => 36500, 'clay' => 19500, 'iron' => 22500, 'crop' => 12500, 'time' => 98560), array('wood' => 37500, 'clay' => 20000, 'iron' => 23500, 'crop' => 13000, 'time' => 100800), array('wood' => 38500, 'clay' => 20500, 'iron' => 24000, 'crop' => 13000, 'time' => 103040), array('wood' => 39500, 'clay' => 21000, 'iron' => 24500, 'crop' => 13500, 'time' => 105280), array('wood' => 40500, 'clay' => 21500, 'iron' => 25500, 'crop' => 14000, 'time' => 107520), array('wood' => 41500, 'clay' => 22000, 'iron' => 26000, 'crop' => + 14500, 'time' => 109760), array('wood' => 42500, 'clay' => 22500, 'iron' => 26500, 'crop' => 14500, 'time' => 112000), array('wood' => 43500, 'clay' => 23000, 'iron' => 27500, 'crop' => 15000, 'time' => 114240), array('wood' => 44500, 'clay' => 23500, 'iron' => 28000, 'crop' => 15500, 'time' => 116480), array('wood' => 46000, 'clay' => 24500, 'iron' => 28500, 'crop' => 15500, 'time' => 118720), array('wood' => 47000, 'clay' => 25000, 'iron' => 29500, 'crop' => 16000, 'time' => 120960), array('wood' => 48000, 'clay' => 25500, 'iron' => 30000, + 'crop' => 16500, 'time' => 123200), array('wood' => 49000, 'clay' => 26000, 'iron' => 30500, 'crop' => 17000, 'time' => 125440), array('wood' => 50000, 'clay' => 26500, 'iron' => 31500, 'crop' => 17000, 'time' => 127680), array('wood' => 51000, 'clay' => 27000, 'iron' => 32000, 'crop' => 17500, 'time' => 129920), array('wood' => 52500, 'clay' => 28000, 'iron' => 32500, 'crop' => 18000, 'time' => 132160), array('wood' => 53500, 'clay' => 28500, 'iron' => 33500, 'crop' => 18500, 'time' => 134400), array('wood' => 54500, 'clay' => 29000, 'iron' => + 34000, 'crop' => 19000, 'time' => 136640)); + $h13_full = array(array('wood' => 260, 'clay' => 240, 'iron' => 340, 'crop' => 140, 'time' => 2400), array('wood' => 690, 'clay' => 640, 'iron' => 880, 'crop' => 400, 'time' => 4800), array('wood' => 1100, 'clay' => 1100, 'iron' => 1500, 'crop' => 670, 'time' => 7200), array('wood' => 1600, 'clay' => 1500, 'iron' => 2100, 'crop' => 960, 'time' => 9600), array('wood' => 2200, 'clay' => 2000, 'iron' => 2800, 'crop' => 1300, 'time' => 12000), array('wood' => 2700, 'clay' => 2500, 'iron' => 3500, 'crop' => 1600, 'time' => 14400), array('wood' => 3300, + 'clay' => 3100, 'iron' => 4200, 'crop' => 1900, 'time' => 16800), array('wood' => 3900, 'clay' => 3600, 'iron' => 5000, 'crop' => 2300, 'time' => 19200), array('wood' => 4500, 'clay' => 4200, 'iron' => 5800, 'crop' => 2700, 'time' => 21600), array('wood' => 5200, 'clay' => 4800, 'iron' => 6600, 'crop' => 3000, 'time' => 24000), array('wood' => 5800, 'clay' => 5400, 'iron' => 7400, 'crop' => 3400, 'time' => 26400), array('wood' => 6500, 'clay' => 6000, 'iron' => 8300, 'crop' => 3800, 'time' => 28800), array('wood' => 7200, 'clay' => 6700, 'iron' + => 9100, 'crop' => 4200, 'time' => 31200), array('wood' => 7900, 'clay' => 7300, 'iron' => 10000, 'crop' => 4600, 'time' => 33600), array('wood' => 8600, 'clay' => 8000, 'iron' => 11000, 'crop' => 5000, 'time' => 36000), array('wood' => 9300, 'clay' => 8600, 'iron' => 12000, 'crop' => 5400, 'time' => 38400), array('wood' => 10000, 'clay' => 9300, 'iron' => 13000, 'crop' => 5900, 'time' => 40800), array('wood' => 11000, 'clay' => 10000, 'iron' => 13500, 'crop' => 6300, 'time' => 43200), array('wood' => 11500, 'clay' => 10500, 'iron' => 14500, + 'crop' => 6700, 'time' => 45600), array('wood' => 12500, 'clay' => 11500, 'iron' => 15500, 'crop' => 7200, 'time' => 48000), array('wood' => 13000, 'clay' => 12000, 'iron' => 16500, 'crop' => 7600, 'time' => 50400), array('wood' => 14000, 'clay' => 13000, 'iron' => 17500, 'crop' => 8100, 'time' => 52800), array('wood' => 14500, 'clay' => 13500, 'iron' => 18500, 'crop' => 8600, 'time' => 55200), array('wood' => 15500, 'clay' => 14500, 'iron' => 19500, 'crop' => 9000, 'time' => 57600), array('wood' => 16000, 'clay' => 15000, 'iron' => 20500, + 'crop' => 9500, 'time' => 60000), array('wood' => 17000, 'clay' => 16000, 'iron' => 21500, 'crop' => 10000, 'time' => 62400), array('wood' => 18000, 'clay' => 16500, 'iron' => 23000, 'crop' => 10500, 'time' => 64800), array('wood' => 18500, 'clay' => 17500, 'iron' => 24000, 'crop' => 11000, 'time' => 67200), array('wood' => 19500, 'clay' => 18000, 'iron' => 25000, 'crop' => 11500, 'time' => 69600), array('wood' => 20500, 'clay' => 19000, 'iron' => 26000, 'crop' => 12000, 'time' => 72000), array('wood' => 21000, 'clay' => 19500, 'iron' => 27000, + 'crop' => 12500, 'time' => 74400), array('wood' => 22000, 'clay' => 20500, 'iron' => 28000, 'crop' => 13000, 'time' => 76800), array('wood' => 23000, 'clay' => 21500, 'iron' => 29500, 'crop' => 13500, 'time' => 79200), array('wood' => 24000, 'clay' => 22000, 'iron' => 30500, 'crop' => 14000, 'time' => 81600), array('wood' => 24500, 'clay' => 23000, 'iron' => 31500, 'crop' => 14500, 'time' => 84000), array('wood' => 25500, 'clay' => 24000, 'iron' => 32500, 'crop' => 15000, 'time' => 86400), array('wood' => 26500, 'clay' => 24500, 'iron' => 34000, + 'crop' => 15500, 'time' => 88800), array('wood' => 27500, 'clay' => 25500, 'iron' => 35000, 'crop' => 16000, 'time' => 91200), array('wood' => 28500, 'clay' => 26500, 'iron' => 36000, 'crop' => 16500, 'time' => 93600), array('wood' => 29000, 'clay' => 27000, 'iron' => 37000, 'crop' => 17000, 'time' => 96000), array('wood' => 30000, 'clay' => 28000, 'iron' => 38500, 'crop' => 17500, 'time' => 98400), array('wood' => 31000, 'clay' => 29000, 'iron' => 39500, 'crop' => 18000, 'time' => 100800), array('wood' => 32000, 'clay' => 29500, 'iron' => + 40500, 'crop' => 18500, 'time' => 103200), array('wood' => 33000, 'clay' => 30500, 'iron' => 42000, 'crop' => 19500, 'time' => 105600), array('wood' => 34000, 'clay' => 31500, 'iron' => 43000, 'crop' => 20000, 'time' => 108000), array('wood' => 34500, 'clay' => 32500, 'iron' => 44500, 'crop' => 20500, 'time' => 110400), array('wood' => 35500, 'clay' => 33000, 'iron' => 45500, 'crop' => 21000, 'time' => 112800), array('wood' => 36500, 'clay' => 34000, 'iron' => 46500, 'crop' => 21500, 'time' => 115200), array('wood' => 37500, 'clay' => 35000, + 'iron' => 48000, 'crop' => 22000, 'time' => 117600), array('wood' => 38500, 'clay' => 36000, 'iron' => 49000, 'crop' => 22500, 'time' => 120000), array('wood' => 39500, 'clay' => 37000, 'iron' => 50500, 'crop' => 23000, 'time' => 122400), array('wood' => 40500, 'clay' => 37500, 'iron' => 51500, 'crop' => 23500, 'time' => 124800), array('wood' => 41500, 'clay' => 38500, 'iron' => 53000, 'crop' => 24500, 'time' => 127200), array('wood' => 42500, 'clay' => 39500, 'iron' => 54000, 'crop' => 25000, 'time' => 129600), array('wood' => 43500, 'clay' => + 40500, 'iron' => 55500, 'crop' => 25500, 'time' => 132000), array('wood' => 44500, 'clay' => 41500, 'iron' => 56500, 'crop' => 26000, 'time' => 134400), array('wood' => 45500, 'clay' => 42500, 'iron' => 58000, 'crop' => 26500, 'time' => 136800), array('wood' => 46500, 'clay' => 43000, 'iron' => 59000, 'crop' => 27000, 'time' => 139200), array('wood' => 47500, 'clay' => 44000, 'iron' => 60500, 'crop' => 28000, 'time' => 141600), array('wood' => 48500, 'clay' => 45000, 'iron' => 62000, 'crop' => 28500, 'time' => 144000), array('wood' => 49500, + 'clay' => 46000, 'iron' => 63000, 'crop' => 29000, 'time' => 146400)); + $h15_full = array(array('wood' => 740, 'clay' => 540, 'iron' => 580, 'crop' => 150, 'time' => 4800), array('wood' => 1800, 'clay' => 1400, 'iron' => 1500, 'crop' => 430, 'time' => 9600), array('wood' => 3000, 'clay' => 2300, 'iron' => 2400, 'crop' => 710, 'time' => 14400), array('wood' => 4400, 'clay' => 3200, 'iron' => 3500, 'crop' => 1000, 'time' => 19200), array('wood' => 5800, 'clay' => 4300, 'iron' => 4600, 'crop' => 1300, 'time' => 24000), array('wood' => 7200, 'clay' => 5400, 'iron' => 5700, 'crop' => 1700, 'time' => 28800), array('wood' => + 8800, 'clay' => 6500, 'iron' => 6900, 'crop' => 2000, 'time' => 33600), array('wood' => 10500, 'clay' => 7700, 'iron' => 8200, 'crop' => 2400, 'time' => 38400), array('wood' => 12000, 'clay' => 8900, 'iron' => 9500, 'crop' => 2800, 'time' => 43200), array('wood' => 13500, 'clay' => 10000, 'iron' => 11000, 'crop' => 3200, 'time' => 48000), array('wood' => 15500, 'clay' => 11500, 'iron' => 12000, 'crop' => 3600, 'time' => 52800), array('wood' => 17000, 'clay' => 12500, 'iron' => 13500, 'crop' => 4000, 'time' => 57600), array('wood' => 19000, + 'clay' => 14000, 'iron' => 15000, 'crop' => 4400, 'time' => 62400), array('wood' => 21000, 'clay' => 15500, 'iron' => 16500, 'crop' => 4900, 'time' => 67200), array('wood' => 22500, 'clay' => 17000, 'iron' => 18000, 'crop' => 5300, 'time' => 72000), array('wood' => 24500, 'clay' => 18000, 'iron' => 19500, 'crop' => 5800, 'time' => 76800), array('wood' => 26500, 'clay' => 19500, 'iron' => 21000, 'crop' => 6200, 'time' => 81600), array('wood' => 28500, 'clay' => 21000, 'iron' => 22500, 'crop' => 6700, 'time' => 86400), array('wood' => 30500, + 'clay' => 22500, 'iron' => 24000, 'crop' => 7100, 'time' => 91200), array('wood' => 32500, 'clay' => 24000, 'iron' => 26000, 'crop' => 7600, 'time' => 96000), array('wood' => 34500, 'clay' => 25500, 'iron' => 27500, 'crop' => 8100, 'time' => 100800), array('wood' => 36500, 'clay' => 27000, 'iron' => 29000, 'crop' => 8600, 'time' => 105600), array('wood' => 39000, 'clay' => 28500, 'iron' => 30500, 'crop' => 9100, 'time' => 110400), array('wood' => 41000, 'clay' => 30500, 'iron' => 32500, 'crop' => 9600, 'time' => 115200), array('wood' => 43000, + 'clay' => 32000, 'iron' => 34000, 'crop' => 10000, 'time' => 120000), array('wood' => 45000, 'clay' => 33500, 'iron' => 36000, 'crop' => 10500, 'time' => 124800), array('wood' => 47500, 'clay' => 35000, 'iron' => 37500, 'crop' => 11000, 'time' => 129600), array('wood' => 49500, 'clay' => 36500, 'iron' => 39500, 'crop' => 11500, 'time' => 134400), array('wood' => 52000, 'clay' => 38500, 'iron' => 41000, 'crop' => 12000, 'time' => 139200), array('wood' => 54000, 'clay' => 40000, 'iron' => 43000, 'crop' => 12500, 'time' => 144000), array('wood' => + 56500, 'clay' => 41500, 'iron' => 44500, 'crop' => 13000, 'time' => 148800), array('wood' => 58500, 'clay' => 43500, 'iron' => 46500, 'crop' => 13500, 'time' => 153600), array('wood' => 61000, 'clay' => 45000, 'iron' => 48000, 'crop' => 14000, 'time' => 158400), array('wood' => 63000, 'clay' => 47000, 'iron' => 50000, 'crop' => 15000, 'time' => 163200), array('wood' => 65500, 'clay' => 48500, 'iron' => 52000, 'crop' => 15500, 'time' => 168000), array('wood' => 68000, 'clay' => 50500, 'iron' => 54000, 'crop' => 16000, 'time' => 172800), + array('wood' => 70500, 'clay' => 52000, 'iron' => 55500, 'crop' => 16500, 'time' => 177600), array('wood' => 72500, 'clay' => 54000, 'iron' => 57500, 'crop' => 17000, 'time' => 182400), array('wood' => 75000, 'clay' => 55500, 'iron' => 59500, 'crop' => 17500, 'time' => 187200), array('wood' => 77500, 'clay' => 57500, 'iron' => 61500, 'crop' => 18000, 'time' => 192000), array('wood' => 80000, 'clay' => 59000, 'iron' => 63500, 'crop' => 18500, 'time' => 196800), array('wood' => 82500, 'clay' => 61000, 'iron' => 65000, 'crop' => 19000, 'time' => + 201600), array('wood' => 85000, 'clay' => 63000, 'iron' => 67000, 'crop' => 20000, 'time' => 206400), array('wood' => 87500, 'clay' => 64500, 'iron' => 69000, 'crop' => 20500, 'time' => 211200), array('wood' => 89500, 'clay' => 66500, 'iron' => 71000, 'crop' => 21000, 'time' => 216000), array('wood' => 92000, 'clay' => 68500, 'iron' => 73000, 'crop' => 21500, 'time' => 220800), array('wood' => 95000, 'clay' => 70000, 'iron' => 75000, 'crop' => 22000, 'time' => 225600), array('wood' => 97500, 'clay' => 72000, 'iron' => 77000, 'crop' => 22500, + 'time' => 230400), array('wood' => 100000, 'clay' => 74000, 'iron' => 79000, 'crop' => 23500, 'time' => 235200), array('wood' => 102500, 'clay' => 76000, 'iron' => 81000, 'crop' => 24000, 'time' => 240000), array('wood' => 105000, 'clay' => 77500, 'iron' => 83000, 'crop' => 24500, 'time' => 244800), array('wood' => 107500, 'clay' => 79500, 'iron' => 85000, 'crop' => 25000, 'time' => 249600), array('wood' => 110000, 'clay' => 81500, 'iron' => 87000, 'crop' => 25500, 'time' => 254400), array('wood' => 112500, 'clay' => 83500, 'iron' => 89500, + 'crop' => 26500, 'time' => 259200), array('wood' => 115500, 'clay' => 85500, 'iron' => 91500, 'crop' => 27000, 'time' => 264000), array('wood' => 118000, 'clay' => 87500, 'iron' => 93500, 'crop' => 27500, 'time' => 268800), array('wood' => 120500, 'clay' => 89500, 'iron' => 95500, 'crop' => 28000, 'time' => 273600), array('wood' => 123000, 'clay' => 91000, 'iron' => 97500, 'crop' => 29000, 'time' => 278400), array('wood' => 126000, 'clay' => 93000, 'iron' => 99500, 'crop' => 29500, 'time' => 283200), array('wood' => 128500, 'clay' => 95000, + 'iron' => 102000, 'crop' => 30000, 'time' => 288000), array('wood' => 131500, 'clay' => 97000, 'iron' => 104000, 'crop' => 30500, 'time' => 292800)); + $h16_full = array(array('wood' => 900, 'clay' => 1000, 'iron' => 960, 'crop' => 160, 'time' => 5920), array('wood' => 2200, 'clay' => 2500, 'iron' => 2400, 'crop' => 450, 'time' => 11840), array('wood' => 3700, 'clay' => 4200, 'iron' => 3900, 'crop' => 750, 'time' => 17760), array('wood' => 5300, 'clay' => 6000, 'iron' => 5600, 'crop' => 1100, 'time' => 23680), array('wood' => 7000, 'clay' => 7900, 'iron' => 7400, 'crop' => 1400, 'time' => 29600), array('wood' => 8700, 'clay' => 10000, 'iron' => 9300, 'crop' => 1800, 'time' => 35520), array('wood' => + 10500, 'clay' => 12000, 'iron' => 11500, 'crop' => 2200, 'time' => 41440), array('wood' => 12500, 'clay' => 14500, 'iron' => 13500, 'crop' => 2600, 'time' => 47360), array('wood' => 14500, 'clay' => 16500, 'iron' => 15500, 'crop' => 3000, 'time' => 53280), array('wood' => 16500, 'clay' => 19000, 'iron' => 17500, 'crop' => 3400, 'time' => 59200), array('wood' => 18500, 'clay' => 21000, 'iron' => 20000, 'crop' => 3800, 'time' => 65120), array('wood' => 21000, 'clay' => 23500, 'iron' => 22000, 'crop' => 4200, 'time' => 71040), array('wood' => 23000, + 'clay' => 26000, 'iron' => 24500, 'crop' => 4700, 'time' => 76960), array('wood' => 25000, 'clay' => 28500, 'iron' => 27000, 'crop' => 5100, 'time' => 82880), array('wood' => 27500, 'clay' => 31500, 'iron' => 29000, 'crop' => 5600, 'time' => 88800), array('wood' => 30000, 'clay' => 34000, 'iron' => 31500, 'crop' => 6100, 'time' => 94720), array('wood' => 32000, 'clay' => 36500, 'iron' => 34000, 'crop' => 6600, 'time' => 100640), array('wood' => 34500, 'clay' => 39500, 'iron' => 36500, 'crop' => 7000, 'time' => 106560), array('wood' => 37000, + 'clay' => 42000, 'iron' => 39500, 'crop' => 7500, 'time' => 112480), array('wood' => 39500, 'clay' => 45000, 'iron' => 42000, 'crop' => 8000, 'time' => 118400), array('wood' => 42000, 'clay' => 47500, 'iron' => 44500, 'crop' => 8500, 'time' => 124320), array('wood' => 44500, 'clay' => 50500, 'iron' => 47000, 'crop' => 9100, 'time' => 130240), array('wood' => 47000, 'clay' => 53500, 'iron' => 50000, 'crop' => 9600, 'time' => 136160), array('wood' => 49500, 'clay' => 56500, 'iron' => 52500, 'crop' => 10000, 'time' => 142080), array('wood' => 52000, + 'clay' => 59500, 'iron' => 55500, 'crop' => 10500, 'time' => 148000), array('wood' => 54500, 'clay' => 62000, 'iron' => 58000, 'crop' => 11000, 'time' => 153920), array('wood' => 57000, 'clay' => 65000, 'iron' => 61000, 'crop' => 11500, 'time' => 159840), array('wood' => 60000, 'clay' => 68500, 'iron' => 64000, 'crop' => 12000, 'time' => 165760), array('wood' => 62500, 'clay' => 71500, 'iron' => 66500, 'crop' => 13000, 'time' => 171680), array('wood' => 65500, 'clay' => 74500, 'iron' => 69500, 'crop' => 13500, 'time' => 177600), array('wood' => + 68000, 'clay' => 77500, 'iron' => 72500, 'crop' => 14000, 'time' => 183520), array('wood' => 71000, 'clay' => 80500, 'iron' => 75500, 'crop' => 14500, 'time' => 189440), array('wood' => 73500, 'clay' => 84000, 'iron' => 78500, 'crop' => 15000, 'time' => 195360), array('wood' => 76500, 'clay' => 87000, 'iron' => 81500, 'crop' => 15500, 'time' => 201280), array('wood' => 79000, 'clay' => 90000, 'iron' => 84500, 'crop' => 16000, 'time' => 207200), array('wood' => 82000, 'clay' => 93500, 'iron' => 87500, 'crop' => 17000, 'time' => 213120), + array('wood' => 85000, 'clay' => 96500, 'iron' => 90500, 'crop' => 17500, 'time' => 219040), array('wood' => 87500, 'clay' => 100000, 'iron' => 93500, 'crop' => 18000, 'time' => 224960), array('wood' => 90500, 'clay' => 103500, 'iron' => 96500, 'crop' => 18500, 'time' => 230880), array('wood' => 93500, 'clay' => 106500, 'iron' => 99500, 'crop' => 19000, 'time' => 236800), array('wood' => 96500, 'clay' => 110000, 'iron' => 102500, 'crop' => 19500, 'time' => 242720), array('wood' => 99500, 'clay' => 113500, 'iron' => 106000, 'crop' => 20500, + 'time' => 248640), array('wood' => 102500, 'clay' => 116500, 'iron' => 109000, 'crop' => 21000, 'time' => 244560), array('wood' => 105500, 'clay' => 120000, 'iron' => 112000, 'crop' => 21500, 'time' => 260480), array('wood' => 108500, 'clay' => 123500, 'iron' => 115500, 'crop' => 22000, 'time' => 266400), array('wood' => 111500, 'clay' => 127000, 'iron' => 118500, 'crop' => 23000, 'time' => 272320), array('wood' => 114500, 'clay' => 130500, 'iron' => 122000, 'crop' => 23500, 'time' => 278240), array('wood' => 117500, 'clay' => 134000, 'iron' => + 125000, 'crop' => 24000, 'time' => 284160), array('wood' => 120500, 'clay' => 137500, 'iron' => 128500, 'crop' => 24500, 'time' => 290080), array('wood' => 123500, 'clay' => 141000, 'iron' => 131500, 'crop' => 25500, 'time' => 296000), array('wood' => 126500, 'clay' => 144500, 'iron' => 135000, 'crop' => 26000, 'time' => 301920), array('wood' => 130000, 'clay' => 148000, 'iron' => 138000, 'crop' => 26500, 'time' => 307840), array('wood' => 133000, 'clay' => 151500, 'iron' => 141500, 'crop' => 27000, 'time' => 313760), array('wood' => 136000, + 'clay' => 155000, 'iron' => 145000, 'crop' => 28000, 'time' => 319680), array('wood' => 139500, 'clay' => 159000, 'iron' => 148500, 'crop' => 28500, 'time' => 325600), array('wood' => 142500, 'clay' => 162500, 'iron' => 151500, 'crop' => 29000, 'time' => 331520), array('wood' => 145500, 'clay' => 166000, 'iron' => 155000, 'crop' => 30000, 'time' => 337440), array('wood' => 149000, 'clay' => 169500, 'iron' => 158500, 'crop' => 30500, 'time' => 343360), array('wood' => 152000, 'clay' => 173500, 'iron' => 162000, 'crop' => 31000, 'time' => 349280), + array('wood' => 155500, 'clay' => 177000, 'iron' => 165500, 'crop' => 31500, 'time' => 355200), array('wood' => 158500, 'clay' => 180500, 'iron' => 169000, 'crop' => 32500, 'time' => 361120)); + +//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)); + +?> \ No newline at end of file diff --git a/GameEngine/Data/hunitdata.php b/GameEngine/Data/hunitdata.php new file mode 100644 index 00000000..9a81a55f --- /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); + +?> \ No newline at end of file diff --git a/GameEngine/Data/resdata.php b/GameEngine/Data/resdata.php new file mode 100644 index 00000000..f5b04711 --- /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)); + +?> \ No newline at end of file diff --git a/GameEngine/Data/unitdata.php b/GameEngine/Data/unitdata.php new file mode 100644 index 00000000..f7dc4901 --- /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); +$u5=array('atk'=>120,'di'=>65,'dc'=>50,'wood'=>550,'clay'=>440,'iron'=>320,'crop'=>100,'pop'=>3,'speed'=>14,'time'=>2640,'cap'=>100); +$u6=array('atk'=>180,'di'=>80,'dc'=>105,'wood'=>550,'clay'=>640,'iron'=>800,'crop'=>180,'pop'=>4,'speed'=>10,'time'=>3520,'cap'=>70); +$u7=array('atk'=>60,'di'=>30,'dc'=>75,'wood'=>900,'clay'=>360,'iron'=>500,'crop'=>70,'pop'=>3,'speed'=>4,'time'=>4600,'cap'=>0); +$u8=array('atk'=>75,'di'=>60,'dc'=>10,'wood'=>950,'clay'=>1350,'iron'=>600,'crop'=>90,'pop'=>6,'speed'=>3,'time'=>9000,'cap'=>0); +$u9=array('atk'=>50,'di'=>40,'dc'=>30,'wood'=>30750,'clay'=>27200,'iron'=>45000,'crop'=>37500,'pop'=>5,'speed'=>5,'time'=>90700,'cap'=>0); +$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'=>105,'clay'=>110,'iron'=>85,'crop'=>50,'pop'=>1,'speed'=>10,'time'=>1100,'cap'=>25); +$u42=array('atk'=>65,'di'=>30,'dc'=>10,'wood'=>95,'clay'=>145,'iron'=>100,'crop'=>55,'pop'=>1,'speed'=>9,'time'=>1300,'cap'=>55); +$u43=array('atk'=>100,'di'=>90,'dc'=>75,'wood'=>125,'clay'=>165,'iron'=>130,'crop'=>75,'pop'=>1,'speed'=>15,'time'=>1500,'cap'=>60); +$u44=array('atk'=>0,'di'=>10,'dc'=>0,'wood'=>50,'clay'=>25,'iron'=>20,'crop'=>5,'pop'=>2,'speed'=>20,'time'=>2200,'cap'=>0); +$u45=array('atk'=>155,'di'=>80,'dc'=>50,'wood'=>150,'clay'=>205,'iron'=>135,'crop'=>85,'pop'=>2,'speed'=>22,'time'=>3000,'cap'=>80); +$u46=array('atk'=>170,'di'=>140,'dc'=>80,'wood'=>175,'clay'=>230,'iron'=>200,'crop'=>100,'pop'=>2,'speed'=>20,'time'=>3450,'cap'=>45); +$u47=array('atk'=>250,'di'=>120,'dc'=>150,'wood'=>225,'clay'=>255,'iron'=>230,'crop'=>125,'pop'=>3,'speed'=>17,'time'=>4000,'cap'=>55); +$u48=array('atk'=>60,'di'=>45,'dc'=>10,'wood'=>1500,'clay'=>760,'iron'=>890,'crop'=>390,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0); +$u49=array('atk'=>80,'di'=>50,'dc'=>50,'wood'=>37000,'clay'=>30000,'iron'=>32000,'crop'=>33500,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0); +$u50=array('atk'=>30,'di'=>40,'dc'=>40,'wood'=>8000,'clay'=>8250,'iron'=>8500,'crop'=>5505,'pop'=>0,'speed'=>0,'time'=>0,'cap'=>0); +$u51=array('atk'=>10,'di'=>25,'dc'=>20,'wood'=>85,'clay'=>75,'iron'=>120,'crop'=>25,'speed'=>7,'pop'=>1,'time'=>1600,'cap'=>45); +$u52=array('atk'=>20,'di'=>35,'dc'=>40,'wood'=>125,'clay'=>130,'iron'=>60,'crop'=>40,'speed'=>7,'pop'=>1,'time'=>1800,'cap'=>65); +$u53=array('atk'=>60,'di'=>40,'dc'=>60,'wood'=>140,'clay'=>150,'iron'=>40,'crop'=>60,'speed'=>6,'pop'=>1,'time'=>1900,'cap'=>80); +$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); +$u99=array('atk'=>0,'di'=>0,'dc'=>0,'wood'=>20,'clay'=>30,'iron'=>10,'crop'=>20,'speed'=>0,'pop'=>0,'time'=>600,'cap'=>0); +// 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); +?> \ No newline at end of file diff --git a/GameEngine/Database.php b/GameEngine/Database.php new file mode 100644 index 00000000..edf037ea --- /dev/null +++ b/GameEngine/Database.php @@ -0,0 +1,27 @@ + \ 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..f21c5309 --- /dev/null +++ b/GameEngine/Database/db_MYSQL.php @@ -0,0 +1,3328 @@ +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, $act) { + $time = time(); + $timep = time() + PROTECTION; + if(strtotime(START_TIME) > time()){ + $timep = (strtotime(START_TIME) + PROTECTION); + } + $q = "INSERT INTO " . TB_PREFIX . "users (username,password,access,email,timestamp,tribe,act,protect,lastupdate,regtime) VALUES ('$username', '$password', " . USER . ", '$email', $time, $tribe, '$act', $timep, $time, $time)"; + 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 getVilWref($x, $y) { + $q = "SELECT * FROM " . TB_PREFIX . "wdata where x = $x AND y = $y"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['id']; + } + + function caststruc($user) { + //loop search village user + $query = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE owner = ".$user.""); + while($villaggi_array = mysql_fetch_array($query)) + + //loop structure village + $query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref'].""); + $strutture= mysql_fetch_array($query1); + return $strutture; + } + + 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 getInvitedUser($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "users where invited = $uid order by regtime desc"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getVrefField($ref, $field){ + $q = "SELECT $field FROM " . TB_PREFIX . "vdata where wref = '$ref'"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray[$field]; + } + + function getVrefCapital($ref){ + $q = "SELECT * FROM " . TB_PREFIX . "vdata where owner = '$ref' and capital = 1"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray; + } + + function getStarvation(){ + $q = "SELECT * FROM " . TB_PREFIX . "vdata where starv != 0 and owner != 3"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + 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); + } + 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 GetOnline($uid) { + $q = "SELECT sit FROM " . TB_PREFIX . "online where uid = $uid"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['sit']; + } + + function UpdateOnline($mode, $name = "", $time = "", $uid = 0) { + global $session; + if($mode == "login") { + $q = "INSERT IGNORE INTO " . TB_PREFIX . "online (name, uid, time, sit) VALUES ('$name', '$uid', " . time() . ", 0)"; + return mysql_query($q, $this->connection); + } else if($mode == "sitter") { + $q = "INSERT IGNORE INTO " . TB_PREFIX . "online (name, uid, time, sit) VALUES ('$name', '$uid', " . time() . ", 1)"; + return mysql_query($q, $this->connection); + } else { + $q = "DELETE FROM " . TB_PREFIX . "online WHERE name ='" . addslashes($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 populateOasisUnits($wid, $high) { + $basearray = $this->getMInfo($wid); + $basearray = $this->getOasisInfo($wid); + if($basearray2['high'] == 0){ + $max = rand(15,30); + }elseif($basearray2['high'] == 1){ + $max = rand(70,90); + }elseif($basearray2['high'] == 2){ + $max = rand(100,140); + } + //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 u35 = u35 + '".rand(0,5)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max.")"; + $result = mysql_query($q, $this->connection); + break; + case 3: + //+25% lumber and +25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u35 = u35 + '".rand(0,5)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $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,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max.")"; + $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,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $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,5)."', u32 = u32 + '".rand(0,5)."', u34 = u34 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max.")"; + $result = mysql_query($q, $this->connection); + break; + case 9: + //+25% iron and +25% crop + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,5)."', u32 = u32 + '".rand(0,5)."', u34 = u34 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max." OR u34 <= ".$max.")"; + $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,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u33 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $result = mysql_query($q, $this->connection); + break; + case 12: + //+50% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u33 = u33 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."', u39 = u39 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u33 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $result = mysql_query($q, $this->connection); + break; + } + } + + function populateOasisUnits2() { + $q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; + $result2 = mysql_query($q2, $this->connection); + while($row = mysql_fetch_array($result2)) { + $wid = $row['id']; + switch($row['oasistype']) { + case 1: + case 2: + //+25% lumber oasis + $q = "UPDATE " . TB_PREFIX . "units SET u35 = u35 + '".rand(5,10)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND u35 <= '10' AND u36 <= '10' AND u37 <= '10'"; + $result = mysql_query($q, $this->connection); + break; + case 3: + //+25% lumber and +25% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u35 = u35 + '".rand(5,15)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND u35 <= '10' AND u36 <= '10' AND u37 <='10'"; + $result = mysql_query($q, $this->connection); + break; + case 4: + case 5: + //+25% clay oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(10,15)."', u32 = u32 + '".rand(5,15)."', u35 = u35 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u32 <= '10' AND u35 <= '10'"; + $result = mysql_query($q, $this->connection); + break; + case 6: + //+25% clay and +25% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(15,20)."', u32 = u32 + '".rand(10,15)."', u35 = u35 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u32 <= '10' AND u35 <='10'"; + $result = mysql_query($q, $this->connection); + break; + case 7: + case 8: + //+25% iron oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(10,15)."', u32 = u32 + '".rand(5,15)."', u34 = u34 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u32 <= '10' AND u34 <= '10'"; + $result = mysql_query($q, $this->connection); + break; + case 9: + //+25% iron and +25% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(15,20)."', u32 = u32 + '".rand(10,15)."', u34 = u34 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u32 <= '10' AND u34 <='10'"; + $result = mysql_query($q, $this->connection); + break; + case 10: + case 11: + //+25% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(5,15)."', u33 = u33 + '".rand(5,10)."', u37 = u37 + '".rand(0,10)."', u39 = u39 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u33 <= '10' AND u37 <='10' AND u39 <='10'"; + $result = mysql_query($q, $this->connection); + break; + case 12: + //+50% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(10,15)."', u33 = u33 + '".rand(5,10)."', u38 = u38 + '".rand(0,5)."', u39 = u39 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u33 <= '10' AND u38 <='10'AND u39 <='10'"; + $result = mysql_query($q, $this->connection); + break; + } + } + } + + function removeOases($wref) { + $q = "UPDATE ".TB_PREFIX."odata SET conqured = 0, owner = 2, name = 'Unoccupied Oasis' WHERE wref = $wref"; + return mysql_query($q, $this->connection); + } + + + /*************************** + 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 and del = 0 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 and del = 0 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 getVillagesID2($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); + return $array; + } + + 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) { + if ($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 ForumCatAlliance($id) { + $q = "SELECT alliance from " . TB_PREFIX . "forum_cat where id = $id"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['alliance']; + } + + 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 getVillageType2($wref) { + $q = "SELECT * FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray['oasistype']; + } + + function getVillageType3($wref) { + $q = "SELECT * FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray; + } + + function getFLData($id) { + $q = "SELECT * FROM " . TB_PREFIX . "farmlist where id = $id"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function checkVilExist($wref) { + $q = "SELECT * FROM " . TB_PREFIX . "vdata where wref = '$wref'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + function checkOasisExist($wref) { + $q = "SELECT * FROM " . TB_PREFIX . "odata where wref = '$wref'"; + $result = mysql_query($q, $this->connection); + if(mysql_num_rows($result)) { + return true; + } else { + return false; + } + } + + 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, $alliance, $player, $coor, $report) { + $date = time(); + $q = "INSERT into " . TB_PREFIX . "forum_topic values (0,'$title','$post','$date','$date','$cat','$owner','$alli','$ends','','','$alliance','$player','$coor','$report')"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + function CreatPost($post, $tids, $owner, $alliance, $player, $coor, $report) { + $date = time(); + $q = "INSERT into " . TB_PREFIX . "forum_post values (0,'$post','$tids','$owner','$date','$alliance','$player','$coor','$report')"; + 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, $alliance, $player, $coor, $report) { + $q = "UPDATE " . TB_PREFIX . "forum_topic set post = '$post', alliance0 = '$alliance', player0 = '$player', coor0 = '$coor', report0 = '$report' where id = $id"; + return mysql_query($q, $this->connection); + } + + function EditUpdatePost($id, $post, $alliance, $player, $coor, $report) { + $q = "UPDATE " . TB_PREFIX . "forum_post set post = '$post', alliance0 = '$alliance', player0 = '$player', coor0 = '$coor', report0 = '$report' 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 procAllyPop($aid) { + $ally = $this->getAlliance($aid); + $memberlist = $this->getAllMember($ally['id']); + $oldrank = 0; + foreach($memberlist as $member) { + $oldrank += $this->getVSumField($member['id'],"pop"); + } + if($ally['oldrank'] != $oldrank){ + if($ally['oldrank'] < $oldrank) { + $totalpoints = $oldrank - $ally['oldrank']; + $this->addclimberrankpopAlly($ally['id'], $totalpoints); + $this->updateoldrankAlly($ally['id'], $oldrank); + } else + if($ally['oldrank'] > $oldrank) { + $totalpoints = $ally['oldrank'] - $oldrank; + $this->removeclimberrankpopAlly($ally['id'], $totalpoints); + $this->updateoldrankAlly($ally['id'], $oldrank); + } + } + } + + /***************************************** + 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 diplomacyInviteCheck2($ally1, $ally2) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli1 = $ally1 AND alli2 = $ally2 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' OR alli2 = '$aid' AND type = '$type' AND accepted = '1'"; + $array = $this->query_return($q); + foreach($array as $row){ + if($row['alli1'] == $aid){ + $alliance = $this->getAlliance($row['alli2']); + }elseif($row['alli2'] == $aid){ + $alliance = $this->getAlliance($row['alli1']); + } + $text .= ""; + $text .= "".$alliance['tag']."
"; + } + if(strlen($text) == 0){ + $text = "-
"; + } + return $text; + } + + function getAllianceWar($aid){ + $q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli1 = '$aid' AND type = '3' OR alli2 = '$aid' AND type = '3' AND accepted = '1'"; + $array = $this->query_return($q); + foreach($array as $row){ + if($row['alli1'] == $aid){ + $alliance = $this->getAlliance($row['alli2']); + }elseif($row['alli2'] == $aid){ + $alliance = $this->getAlliance($row['alli1']); + } + $text .= ""; + $text .= "".$alliance['tag']."
"; + } + if(strlen($text) == 0){ + $text = "-
"; + } + return $text; + } + + function getAllianceAlly($aid, $type){ + $q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE (alli1 = '$aid' or alli2 = '$aid') AND (type = '$type' AND accepted = '1')"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getAllianceWar2($aid){ + $q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli1 = '$aid' AND type = '3' OR alli2 = '$aid' AND type = '3' AND accepted = '1'"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function diplomacyExistingRelationships($session_alliance) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli2 = $session_alliance AND accepted = 1"; + $result = mysql_query($q, $this->connection); + 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 OR id = $id AND alli1 = $session_alliance"; + return mysql_query($q, $this->connection); + } + + function checkDiplomacyInviteAccept($aid, $type) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli1 = $aid AND type = $type AND accepted = 1 OR alli2 = $aid AND type = $type AND accepted = 1"; + $result = mysql_query($q, $this->connection); + if($type == 3){ + return true; + }else{ + if(mysql_num_rows($result) < 4) { + return true; + } else { + return false; + } + } + } + + function setAlliForumLink($aid, $link) { + $q = "UPDATE " . TB_PREFIX . "alidata SET `forumlink` = '$link' WHERE id = $aid"; + 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) { + if($field != "cp"){ + $q = "SELECT sum(" . $field . ") FROM " . TB_PREFIX . "vdata where owner = $uid"; + }else{ + $q = "SELECT sum(" . $field . ") FROM " . TB_PREFIX . "vdata where owner = $uid and natar = 0"; + } + $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) { + if(!empty($name)) + { + $q = "UPDATE " . TB_PREFIX . "vdata set name = '$name' where wref = $vid"; + return mysql_query($q, $this->connection); + } + } + + function modifyPop($vid, $pop, $mode) { + if(!$mode) { + $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 getInvitation2($uid, $aid) { + $q = "SELECT * FROM " . TB_PREFIX . "ali_invite where uid = $uid and alliance = $aid"; + $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, $alliance, $player, $coor, $report) { + $time = time(); + $q = "INSERT INTO " . TB_PREFIX . "mdata values (0,$client,$owner,'$topic',\"$message\",0,0,$send,$time,0,0,$alliance,$player,$coor,$report)"; + 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: + $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 = "UPDATE " . TB_PREFIX . "mdata set deltarget = 1,viewed = 1 where id = $id"; + break; + case 6: + $q = "SELECT * FROM " . TB_PREFIX . "mdata where target = $id and send = 0 and archived = 1"; + break; + case 7: + $q = "UPDATE " . TB_PREFIX . "mdata set delowner = 1 where id = $id"; + break; + case 8: + $q = "UPDATE " . TB_PREFIX . "mdata set deltarget = 1,delowner = 1,viewed = 1 where id = $id"; + break; + case 9: + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $id and send = 0 and archived = 0 and deltarget = 0 ORDER BY time DESC"; + break; + case 10: + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE owner = $id and delowner = 0 ORDER BY time DESC"; + break; + case 11: + $q = "SELECT * FROM " . TB_PREFIX . "mdata where target = $id and send = 0 and archived = 1 and deltarget = 0"; + break; + } + if($mode <= 3 || $mode == 6 || $mode > 8) { + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } else { + return mysql_query($q, $this->connection); + } + } + + function getDelSent($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE owner = $uid and delowner = 1 ORDER BY time DESC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getDelInbox($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $uid and deltarget = 1 ORDER BY time DESC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getDelArchive($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $uid and archived = 1 and deltarget = 1 OR owner = $uid and archived = 1 and delowner = 1 ORDER BY time DESC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + 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 = "UPDATE " . TB_PREFIX . "ndata set del = 1,viewed = 1 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 and del = 0 ORDER BY time DESC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getNotice2($id, $field) { + $q = "SELECT ".$field." FROM " . TB_PREFIX . "ndata where `id` = '$id'"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + return $dbarray[$field]; + } + + function getNotice3($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 getNotice4($id) { + $q = "SELECT * FROM " . TB_PREFIX . "ndata where id = $id ORDER BY time DESC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function createTradeRoute($uid,$wid,$from,$r1,$r2,$r3,$r4,$start,$deliveries,$merchant,$time) { + $x = "UPDATE " . TB_PREFIX . "users SET gold = gold - 2 WHERE id = ".$uid.""; + mysql_query($x, $this->connection); + $timeleft = time()+604800; + $q = "INSERT into " . TB_PREFIX . "route values (0,$uid,$wid,$from,$r1,$r2,$r3,$r4,$start,$deliveries,$merchant,$time,$timeleft)"; + return mysql_query($q, $this->connection); + } + + function getTradeRoute($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "route where uid = $uid ORDER BY timestamp ASC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getTradeRoute2($id) { + $q = "SELECT * FROM " . TB_PREFIX . "route where id = $id"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray; + } + + function getTradeRouteUid($id) { + $q = "SELECT * FROM " . TB_PREFIX . "route where id = $id"; + $result = mysql_query($q, $this->connection) or die(mysql_error()); + $dbarray = mysql_fetch_array($result); + return $dbarray['uid']; + } + + function editTradeRoute($id,$column,$value,$mode) { + if(!$mode){ + $q = "UPDATE " . TB_PREFIX . "route set $column = $value where id = $id"; + }else{ + $q = "UPDATE " . TB_PREFIX . "route set $column = $column + $value where id = $id"; + } + return mysql_query($q, $this->connection); + } + + function deleteTradeRoute($id) { + $q = "DELETE FROM " . TB_PREFIX . "route where id = $id"; + return mysql_query($q, $this->connection); + } + + function addBuilding($wid, $field, $type, $loop, $time, $master, $level) { + $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,$master,$level)"; + 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($jobs[$i]['master'] == 1) { + $jobMaster = $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(count($jobs) > 3 && ($jobs[0]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 8; + } + if(count($jobs) > 3 && ($jobs[1]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 9; + } + if(count($jobs) > 3 && ($jobs[2]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 10; + } + if(count($jobs) > 2 && ($jobs[0]['field'] == $jobs[1]['field'] && $jobs[1]['field'] == $jobs[2]['field'])) { + $SameBuildCount = 4; + } + if(count($jobs) > 3 && ($jobs[0]['field'] == $jobs[1]['field'] && $jobs[1]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 5; + } + if(count($jobs) > 3 && ($jobs[0]['field'] == $jobs[2]['field'] && $jobs[2]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 6; + } + if(count($jobs) > 3 && ($jobs[1]['field'] == $jobs[2]['field'] && $jobs[2]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 7; + } + if($SameBuildCount > 0) { + if($SameBuildCount > 3){ + if($SameBuildCount == 4 or $SameBuildCount == 5){ + if($jobDeleted == 0){ + $uprequire = $building->resourceRequired($jobs[1]['field'],$jobs[1]['type'],1); + $time = $uprequire['time']; + $timestamp = $time+time(); + $q = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,level=level-1,timestamp=".$timestamp." WHERE id=".$jobs[1]['id'].""; + mysql_query($q, $this->connection); + } + }else if($SameBuildCount == 6){ + if($jobDeleted == 0){ + $uprequire = $building->resourceRequired($jobs[2]['field'],$jobs[2]['type'],1); + $time = $uprequire['time']; + $timestamp = $time+time(); + $q = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,level=level-1,timestamp=".$timestamp." WHERE id=".$jobs[2]['id'].""; + mysql_query($q, $this->connection); + } + }else if($SameBuildCount == 7){ + if($jobDeleted == 1){ + $uprequire = $building->resourceRequired($jobs[2]['field'],$jobs[2]['type'],1); + $time = $uprequire['time']; + $timestamp = $time+time(); + $q = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,level=level-1,timestamp=".$timestamp." WHERE id=".$jobs[2]['id'].""; + mysql_query($q, $this->connection); + } + } + if($SameBuildCount < 8){ + $uprequire1 = $building->resourceRequired($jobs[$jobMaster]['field'],$jobs[$jobMaster]['type'],2); + $time1 = $uprequire1['time']; + $timestamp1 = $time1; + $q1 = "UPDATE " . TB_PREFIX . "bdata SET level=level-1,timestamp=".$timestamp1." WHERE id=".$jobs[$jobMaster]['id'].""; + mysql_query($q1, $this->connection); + }else{ + $uprequire1 = $building->resourceRequired($jobs[$jobMaster]['field'],$jobs[$jobMaster]['type'],1); + $time1 = $uprequire1['time']; + $timestamp1 = $time1; + $q1 = "UPDATE " . TB_PREFIX . "bdata SET level=level-1,timestamp=".$timestamp1." WHERE id=".$jobs[$jobMaster]['id'].""; + mysql_query($q1, $this->connection); + } + }else if($d == $jobs[floor($SameBuildCount / 3)]['id'] || $d == $jobs[floor($SameBuildCount / 2) + 1]['id']) { + $q = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,level=level-1,timestamp=" . $jobs[floor($SameBuildCount / 3)]['timestamp'] . " WHERE master = 0 AND id > ".$d." and (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) || sizeof($jobs) < 3) { + $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 AND master=0"; + 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 master,timestamp ASC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function FinishWoodcutter($wid) { + $time = time()-1; + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and type = 1 order by master,timestamp ASC"; + $result = mysql_query($q); + $dbarray = mysql_fetch_array($result); + $q = "UPDATE ".TB_PREFIX."bdata SET timestamp = $time WHERE id = '".$dbarray['id']."'"; + $this->query($q); + $q2 = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and loopcon = 1 and field <= 18 order by master,timestamp ASC"; + if(mysql_num_rows($q2) > 0){ + $result2 = mysql_query($q2); + $dbarray2 = mysql_fetch_array($result2); + $wc_time = $dbarray['timestamp']; + $q2 = "UPDATE ".TB_PREFIX."bdata SET timestamp = timestamp - $wc_time WHERE id = '".$dbarray2['id']."'"; + $this->query($q2); + } + } + + function getMasterJobs($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and master = 1 order by master,timestamp ASC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getMasterJobsByField($wid,$field) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field = $field and master = 1 order by master,timestamp ASC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getBuildingByField($wid,$field) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field = $field and master = 0"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getBuildingByField2($wid,$field) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field = $field and master = 0"; + $result = mysql_query($q, $this->connection); + return mysql_num_rows($result); + } + + function getBuildingByType($wid,$type) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and type = $type and master = 0"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getBuildingByType2($wid,$type) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and type = $type and master = 0"; + $result = mysql_query($q, $this->connection); + return mysql_num_rows($result); + } + + function getDorf1Building($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field < 19 and master = 0"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getDorf2Building($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field > 18 and master = 0"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function updateBuildingWithMaster($id, $time,$loop) { + $q = "UPDATE " . TB_PREFIX . "bdata SET master = 0, timestamp = ".$time.",loopcon = ".$loop." WHERE id = ".$id.""; + return mysql_query($q, $this->connection); + } + + function getVillageByName($name) { + $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 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 1: + $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 = 6 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 7: + $q = "SELECT * FROM " . TB_PREFIX . "movement where " . TB_PREFIX . "movement." . $where . " = $village and sort_type = 4 and ref = 0 and proc = 0 ORDER BY endtime ASC"; + break; + case 8: + $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 and " . TB_PREFIX . "attacks.attack_type = 1 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, $time, $endtime, $send = 1, $wood = 0, $clay = 0, $iron = 0, $crop = 0, $ref2 = 0) { + $q = "INSERT INTO " . TB_PREFIX . "movement values (0,$type,$from,$to,$ref,$ref2,$time,$endtime,0,$send,$wood,$clay,$iron,$crop)"; + 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 modifyAttack2($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,oldrank,Aap,Adp FROM " . TB_PREFIX . "alidata where id != '' ORDER BY id DESC"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getUserByTribe($tribe){ + $q = "SELECT * FROM " . TB_PREFIX . "users where tribe = $tribe"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getUserByAlliance($aid){ + $q = "SELECT * FROM " . TB_PREFIX . "users where alliance = $aid"; + $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, " . TB_PREFIX . "users.id desc"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getAllMember2($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, " . TB_PREFIX . "users.id desc LIMIT 1"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($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 getUnitsNumber($vid) { + $q = "SELECT * from " . TB_PREFIX . "units where vref = $vid"; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_assoc($result); + $totalunits = 0; + $movingunits = $this->getVillageMovement($vid); + for($i=1;$i<=50;$i++){ + $totalunits += $dbarray['u'.$i]; + } + $totalunits += $dbarray['hero']; + $movingunits = $this->getVillageMovement($vid); + $reinforcingunits = $this->getEnforceArray($vid,1); + $owner = $this->getVillageField($vid,"owner"); + $ownertribe = $this->getUserField($owner,"tribe",0); + $start = ($ownertribe-1)*10+1; + $end = ($ownertribe*10); + for($i=$start;$i<=$end;$i++){ + $totalunits += $movingunits['u'.$i]; + $totalunits += $reinforcingunits['u'.$i]; + } + $totalunits += $movingunits['hero']; + $totalunits += $reinforcingunits['hero']; + return $totalunits; + } + + 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 modifyHeroByOwner($column,$value,$uid,$mode=0) { + if(!$mode) { + $q = "UPDATE `".TB_PREFIX."hero` SET $column = $value WHERE uid = $uid"; + } elseif($mode=1) { + $q = "UPDATE `".TB_PREFIX."hero` SET $column = $column + $value WHERE uid = $uid"; + } else { + $q = "UPDATE `".TB_PREFIX."hero` SET $column = $column - $value WHERE uid = $uid"; + } + 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,35,36,37,38,39,40,41,42,43,44); + $greatbarracks = array(61,62,63,71,72,73,84,81,82,91,92,93,94,95,96,97,98,99,100,101,102,103,104); + $stables = array(4,5,6,15,16,23,24,25,26,45,46); + $greatstables = array(64,65,66,75,76,83,84,85,86,105,106); + $workshop = array(7,8,17,18,27,28,47,48); + $greatworkshop = array(67,68,77,78,87,88,107,108); + $residence = array(9,10,19,20,29,30,49,50); + $trapper = array(99); + + 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); + } elseif(in_array($unit, $greatstables)) { + $queued = $technology->getTrainingList(6); + } elseif(in_array($unit, $greatbarracks)) { + $queued = $technology->getTrainingList(5); + } elseif(in_array($unit, $greatworkshop)) { + $queued = $technology->getTrainingList(7); + } elseif(in_array($unit, $trapper)) { + $queued = $technology->getTrainingList(8); + } + $now = time(); + + $uid = $this->getVillageField($vid, "owner"); + $artefact = count($this->getOwnUniqueArtefactInfo2($uid,5,3,0)); + $artefact1 = count($this->getOwnUniqueArtefactInfo2($vid,5,1,1)); + $artefact2 = count($this->getOwnUniqueArtefactInfo2($uid,5,2,0)); + if($artefact > 0){ + $time = $now+round(($time-$now)/2); + $each /= 2; + $each = round($each); + }else if($artefact1 > 0){ + $time = $now+round(($time-$now)/2); + $each /= 2; + $each = round($each); + }else if($artefact2 > 0){ + $time = $now+round(($time-$now)/4*3); + $each /= 4; + $each = round($each); + $each *= 3; + $each = round($each); + } + $foolartefact = $this->getFoolArtefactInfo(5,$vid,$uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $each *= $arte['effect2']; + }else{ + $each /= $arte['effect2']; + $each = round($each); + } + } + } + if($each == 0){ $each = 1; } + $time2 = $now+$each; + if(count($queued) > 0) { + $time += $queued[count($queued) - 1]['timestamp'] - $now; + $time2 += $queued[count($queued) - 1]['timestamp'] - $now; + } + if($queued[count($queued) - 1]['unit'] == $unit){ + $time = $amt*$queued[count($queued) - 1]['eachtime']; + $q = "UPDATE " . TB_PREFIX . "training SET amt = amt + $amt, timestamp = timestamp + $time WHERE id = ".$queued[count($queued) - 1]['id'].""; + }else{ + $q = "INSERT INTO " . TB_PREFIX . "training values (0,$vid,$unit,$amt,$pop,$time,$each,$time2)"; + } + } else { + $q = "DELETE FROM " . TB_PREFIX . "training where id = $vid"; + } + return mysql_query($q, $this->connection); + } + + function updateTraining($id, $trained, $each) { + $q = "UPDATE " . TB_PREFIX . "training set amt = amt - $trained, timestamp2 = timestamp2 + $each 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 addEnforce2($data,$tribe,$dead1,$dead2,$dead3,$dead4,$dead5,$dead6,$dead7,$dead8,$dead9,$dead10,$dead11) { + $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); + $start2 = ($tribe - 1) * 10 + 1; + $start3 = ($tribe - 1) * 10; + if($start3 == 0){ + $start3 = ""; + } + $end2 = ($tribe * 10); + //add unit + $j = '1'; + for($i = $start; $i <= $end; $i++) { + $this->modifyEnforce($id, $i, $data['t' . $j . ''], 1); + $this->modifyEnforce($id, $i, ${dead.$j}, 0); + $j++; + } + $this->modifyEnforce($id,'hero',$data['t11'],1); + $this->modifyEnforce($id,'hero',$dead11,0); + 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 setclimberrankpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set 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 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 > 5"; + $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,800,800,800,800,800,800," . time() . ",100,2,'Unoccupied Oasis',".rand(0,2).")"; + $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`, `active`) VALUES ('$vref', '$owner', '$type', '$size', '" . time() . "', '$name', '$desc', '$effect', '$img', '0')"; + 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 getOwnArtefactInfo2($vref) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getOwnArtefactInfo3($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE owner = $uid"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getOwnArtefactInfoByType($vref, $type) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref AND type = $type order by size"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function getOwnArtefactInfoByType2($vref, $type) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref AND type = $type"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($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 getOwnUniqueArtefactInfo2($id, $type, $size, $mode) { + if(!$mode){ + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE owner = $id AND active = 1 AND type = $type AND size=$size"; + }else{ + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $id AND active = 1 AND type = $type AND size=$size"; + } + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getFoolArtefactInfo($type,$vid,$uid) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vid AND type = 8 AND kind = $type OR owner = $uid AND size > 1 AND active = 1 AND type = 8 AND kind = $type"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function claimArtefact($vref, $ovref, $id) { + $time = time(); + $q = "UPDATE " . TB_PREFIX . "artefacts SET vref = $vref, owner = $id, conquered = $time, active = 1 WHERE vref = $ovref"; + return mysql_query($q, $this->connection); + } + + public function canClaimArtifact($from,$vref,$type,$kind) { + $type2 = $type3 = 0; + if(count($this->getOwnUniqueArtefactInfo2($this->getVillagefield($from,"owner"),2,2,0)) > 0 && $type == 2){ + $type2 = 1; + } + if(count($this->getOwnUniqueArtefactInfo2($this->getVillagefield($from,"owner"),2,3,0)) > 0 && $type == 3){ + $type3 = 1; + } + if((count($this->getOwnArtefactInfo2($from)) < 3 && $type2 == 0 && $type3 == 0) or $kind == 11){ + $DefenderFields = $this->getResourceLevel($vref); + $defcanclaim = TRUE; + for($i=19;$i<=38;$i++) { + if($DefenderFields['f'.$i.'t'] == 27) { + $defTresuaryLevel = $DefenderFields['f'.$i]; + if($defTresuaryLevel > 0) { + $defcanclaim = FALSE; + } else { + $defcanclaim = TRUE; + } + } + } + $AttackerFields = $this->getResourceLevel($from); + 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 { + return FALSE; + } + } else if ($type == 2) { + if ($defcanclaim == TRUE && $accountartifact == TRUE) { + return TRUE; + } else { + return FALSE; + } + } else if ($type == 3) { + if ($defcanclaim == TRUE && $accountartifact == TRUE) { + return TRUE; + } else { + return FALSE; + } + } else { + return FALSE; + } + }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 getMovementById($id){ + $q = "SELECT * FROM ".TB_PREFIX."movement WHERE moveid = ".$id.""; + $result = mysql_query($q); + $array = $this->mysql_fetch_all($result); + return $array; + } + + function getLinks($id){ + $q = 'SELECT * FROM `' . TB_PREFIX . 'links` WHERE `userid` = ' . $id . ' ORDER BY `pos` ASC'; + return mysql_query($q, $this->connection); + } + + function removeLinks($id,$uid){ + $q = "DELETE FROM " . TB_PREFIX . "links WHERE `id` = ".$id." and `userid` = ".$uid.""; + return mysql_query($q, $this->connection); + } + + function getVilFarmlist($wref){ + $q = 'SELECT * FROM ' . TB_PREFIX . 'farmlist WHERE wref = ' . $wref . ' ORDER BY wref ASC'; + $result = mysql_query($q, $this->connection); + $dbarray = mysql_fetch_array($result); + + if($dbarray['id']!=0) { + return true; + } else { + return false; + } + + } + + function getRaidList($id) { + $q = "SELECT * FROM " . TB_PREFIX . "raidlist WHERE id = ".$id.""; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function delFarmList($id, $owner) { + $q = "DELETE FROM " . TB_PREFIX . "farmlist where id = $id and owner = $owner"; + return mysql_query($q, $this->connection); + } + + function delSlotFarm($id) { + $q = "DELETE FROM " . TB_PREFIX . "raidlist where id = $id"; + return mysql_query($q, $this->connection); + } + + function createFarmList($wref, $owner, $name) { + $q = "INSERT INTO " . TB_PREFIX . "farmlist (`wref`, `owner`, `name`) VALUES ('$wref', '$owner', '$name')"; + return mysql_query($q, $this->connection); + } + + function addSlotFarm($lid, $towref, $x, $y, $distance, $t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) { + $q = "INSERT INTO " . TB_PREFIX . "raidlist (`lid`, `towref`, `x`, `y`, `distance`, `t1`, `t2`, `t3`, `t4`, `t5`, `t6`, `t7`, `t8`, `t9`, `t10`) VALUES ('$lid', '$towref', '$x', '$y', '$distance', '$t1', '$t2', '$t3', '$t4', '$t5', '$t6', '$t7', '$t8', '$t9', '$t10')"; + return mysql_query($q, $this->connection); + } + + function editSlotFarm($eid, $lid, $wref, $x, $y, $dist, $t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) { + $q = "UPDATE " . TB_PREFIX . "raidlist set lid = '$lid', towref = '$wref', x = '$x', y = '$y', t1 = '$t1', t2 = '$t2', t3 = '$t3', t4 = '$t4', t5 = '$t5', t6 = '$t6', t7 = '$t7', t8 = '$t8', t9 = '$t9', t10 = '$t10' WHERE id = $eid"; + 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; + } + + function getCropProdstarv($wref) { + global $bid4,$bid8,$bid9,$sesion,$technology; + + $basecrop = $grainmill = $bakery = 0; + $owner = $this->getVrefField($wref, 'owner'); + $bonus = $this->getUserField($owner, b4, 0); + + $buildarray = $this->getResourceLevel($wref); + $cropholder = array(); + for($i=1;$i<=38;$i++) { + if($buildarray['f'.$i.'t'] == 4) { + array_push($cropholder,'f'.$i); + } + if($buildarray['f'.$i.'t'] == 8) { + $grainmill = $buildarray['f'.$i]; + } + if($buildarray['f'.$i.'t'] == 9) { + $bakery = $buildarray['f'.$i]; + } + } + $q = "SELECT type FROM `" . TB_PREFIX . "odata` WHERE conqured = $wref"; + $oasis = $this->query_return($q); + foreach($oasis as $oa){ + switch($oa['type']) { + case 1: + case 2: + $wood += 1; + break; + case 3: + $wood += 1; + $cropo += 1; + break; + case 4: + case 5: + $clay += 1; + break; + case 6: + $clay += 1; + $cropo += 1; + break; + case 7: + case 8: + $iron += 1; + break; + case 9: + $iron += 1; + $cropo += 1; + break; + case 10: + case 11: + $cropo += 1; + break; + case 12: + $cropo += 2; + break; + } + } + for($i=0;$i<=count($cropholder)-1;$i++) { $basecrop+= $bid4[$buildarray[$cropholder[$i]]]['prod']; } + $crop = $basecrop + $basecrop * 0.25 * $cropo; + if($grainmill >= 1 || $bakery >= 1) { + $crop += $basecrop /100 * ($bid8[$grainmill]['attri'] + $bid9[$bakery]['attri']); + } + if($bonus > time()) { + $crop *= 1.25; + } + $crop *= SPEED; + return $crop; + } + + //general statistics + + function addGeneralAttack($casualties) { + $time = time(); + $q = "INSERT INTO " . TB_PREFIX . "general values (0,'$casualties','$time',1)"; + return mysql_query($q, $this->connection) or die(mysql_error()); + } + + function getAttackByDate($time) { + $q = "SELECT * FROM " . TB_PREFIX . "general where shown = 1"; + $result = $this->query_return($q); + $attack = 0; + foreach($result as $general){ + if(date("j. M",$time) == date("j. M",$general['time'])){ + $attack += 1; + } + } + return $attack; + } + + function getAttackCasualties($time) { + $q = "SELECT * FROM " . TB_PREFIX . "general where shown = 1"; + $result = $this->query_return($q); + $casualties = 0; + foreach($result as $general){ + if(date("j. M",$time) == date("j. M",$general['time'])){ + $casualties += $general['casualties']; + } + } + return $casualties; + } + + //end general statistics + + function addFriend($uid, $column, $friend) { + $q = "UPDATE " . TB_PREFIX . "users SET $column = $friend WHERE id = $uid"; + return mysql_query($q, $this->connection); + } + + function deleteFriend($uid, $column) { + $q = "UPDATE " . TB_PREFIX . "users SET $column = 0 WHERE id = $uid"; + return mysql_query($q, $this->connection); + } + + function checkFriends($uid) { + $user = $this->getUserArray($uid, 1); + for($i=0;$i<=19;$i++) { + if($user['friend'.$i] == 0 && $user['friend'.$i.'wait'] == 0){ + for($j=$i+1;$j<=19;$j++) { + $k = $j-1; + if($user['friend'.$j] != 0){ + $friend = $this->getUserField($uid, "friend".$j, 0); + $this->addFriend($uid,"friend".$k,$friend); + $this->deleteFriend($uid,"friend".$j); + } + if($user['friend'.$j.'wait'] == 0){ + $friendwait = $this->getUserField($uid, "friend".$j."wait", 0); + $this->addFriend($sessionuid,"friend".$k."wait",$friendwait); + $this->deleteFriend($uid,"friend".$j."wait"); + } + } + } + } + } + + function setVillageEvasion($vid) { + $village = $this->getVillage($vid); + if($village['evasion'] == 0){ + $q = "UPDATE " . TB_PREFIX . "vdata SET evasion = 1 WHERE wref = $vid"; + }else{ + $q = "UPDATE " . TB_PREFIX . "vdata SET evasion = 0 WHERE wref = $vid"; + } + return mysql_query($q, $this->connection); + } + + function addPrisoners($wid,$from,$t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10,$t11) { + $q = "INSERT INTO " . TB_PREFIX . "prisoners values (0,$wid,$from,$t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10,$t11)"; + mysql_query($q, $this->connection); + return mysql_insert_id($this->connection); + } + + function updatePrisoners($wid,$from,$t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10,$t11) { + $q = "UPDATE " . TB_PREFIX . "prisoners set t1 = t1 + $t1, t2 = t2 + $t2, t3 = t3 + $t3, t4 = t4 + $t4, t5 = t5 + $t5, t6 = t6 + $t6, t7 = t7 + $t7, t8 = t8 + $t8, t9 = t9 + $t9, t10 = t10 + $t10, t11 = t11 + $t11 where wid = $wid and from = $from"; + return mysql_query($q, $this->connection) or die(mysql_error()); + } + + function getPrisoners($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "prisoners where wref = $wid"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getPrisoners2($wid,$from) { + $q = "SELECT * FROM " . TB_PREFIX . "prisoners where wref = $wid and " . TB_PREFIX . "prisoners.from = $from"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function getPrisonersByID($id) { + $q = "SELECT * FROM " . TB_PREFIX . "prisoners where id = $id"; + $result = mysql_query($q, $this->connection); + return mysql_fetch_array($result); + } + + function getPrisoners3($from) { + $q = "SELECT * FROM " . TB_PREFIX . "prisoners where " . TB_PREFIX . "prisoners.from = $from"; + $result = mysql_query($q, $this->connection); + return $this->mysql_fetch_all($result); + } + + function deletePrisoners($id) { + $q = "DELETE from " . TB_PREFIX . "prisoners where id = '$id'"; + mysql_query($q, $this->connection); + } +}; + +$database = new MYSQL_DB; + +?> diff --git a/GameEngine/Database/db_MYSQLi.php b/GameEngine/Database/db_MYSQLi.php new file mode 100644 index 00000000..632847f5 --- /dev/null +++ b/GameEngine/Database/db_MYSQLi.php @@ -0,0 +1,3331 @@ +connection = mysqli_connect(SQL_SERVER, SQL_USER, SQL_PASS, SQL_DB) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + + ## Added even MySQL connection for inline mysql commands in temeplate files + $con = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); + mysql_select_db(SQL_DB, $this->connection); + } + + function register($username, $password, $email, $tribe, $act) { + $time = time(); + $timep = time() + PROTECTION; + if(strtotime(START_TIME) > time()){ + $timep = (strtotime(START_TIME) + PROTECTION); + } + $q = "INSERT INTO " . TB_PREFIX . "users (username,password,access,email,timestamp,tribe,act,protect,lastupdate,regtime) VALUES ('$username', '$password', " . USER . ", '$email', $time, $tribe, '$act', $timep, $time, $time)"; + if(mysql_query($this->connection, $q)) { + 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(mysqli_query($this->connection, $q)) { + return mysqli_insert_id($this->connection); + } else { + return false; + } + } + + function unreg($username) { + $q = "DELETE from " . TB_PREFIX . "activate where username = '$username'"; + return mysqli_query($this->connection, $q); + } + function deleteReinf($id) { + $q = "DELETE from " . TB_PREFIX . "enforcement where id = '$id'"; + mysqli_query($this->connection, $q); + } + function updateResource($vid, $what, $number) { + + $q = "UPDATE " . TB_PREFIX . "vdata set " . $what . "=" . $number . " where wref = $vid"; + $result = mysqli_query($this->connection, $q); + return mysqli_query($this->connection, $q); + } + + 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 = mysqli_query($this->connection, $q); + if(mysqli_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 = mysqli_query($this->connection, $q); + if(mysqli_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 = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 mysqli_query($this->connection, $q); + } + + function getSitee($uid) { + $q = "SELECT id from " . TB_PREFIX . "users where sit1 = $uid or sit2 = $uid"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getVilWref($x, $y) { + $q = "SELECT * FROM " . TB_PREFIX . "wdata where x = $x AND y = $y"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['id']; + } + + function caststruc($user) { + //loop search village user + $query = mysqli_query($this->connection, "SELECT * FROM ".TB_PREFIX."vdata WHERE owner = ".$user.""); + while($villaggi_array = mysqli_fetch_array($query, MYSQLI_BOTH)) + + //loop structure village + $query1 = mysqli_query($this->connection, "SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref'].""); + $strutture= mysqli_fetch_array($query1, MYSQLI_BOTH); + return $strutture; + } + + function removeMeSit($uid, $uid2) { + $q = "UPDATE " . TB_PREFIX . "users set sit1 = 0 where id = $uid and sit1 = $uid2"; + mysqli_query($this->connection, $q); + $q2 = "UPDATE " . TB_PREFIX . "users set sit2 = 0 where id = $uid and sit2 = $uid2"; + mysqli_query($this->connection, $q2); + } + + 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 = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray[$field]; + } + + function getInvitedUser($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "users where invited = $uid order by regtime desc"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getVrefField($ref, $field){ + $q = "SELECT $field FROM " . TB_PREFIX . "vdata where wref = '$ref'"; + $result = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray[$field]; + } + + function getVrefCapital($ref){ + $q = "SELECT * FROM " . TB_PREFIX . "vdata where owner = '$ref' and capital = 1"; + $result = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray; + } + + function getStarvation(){ + $q = "SELECT * FROM " . TB_PREFIX . "vdata where starv != 0 and owner != 3"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + 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 = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray[$field]; + } + + function login($username, $password) { + $q = "SELECT password,sessid FROM " . TB_PREFIX . "users where username = '$username'"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + if($dbarray['password'] == md5($password)) { + return true; + } else { + return false; + } + } + + function checkActivate($act) { + $q = "SELECT * FROM " . TB_PREFIX . "activate where act = '$act'"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + + return $dbarray; + } + + function sitterLogin($username, $password) { + $q = "SELECT sit1,sit2 FROM " . TB_PREFIX . "users where username = '$username' and access != " . BANNED; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + if($dbarray['sit1'] != 0) { + $q2 = "SELECT password FROM " . TB_PREFIX . "users where id = " . $dbarray['sit1'] . " and access != " . BANNED; + $result2 = mysqli_query($this->connection, $q2); + $dbarray2 = mysqli_fetch_array($result2, MYSQLI_BOTH); + } + if($dbarray['sit2'] != 0) { + $q3 = "SELECT password FROM " . TB_PREFIX . "users where id = " . $dbarray['sit2'] . " and access != " . BANNED; + $result3 = mysqli_query($q3, $this->connection); + $dbarray3 = mysqli_fetch_array($result3, MYSQLI_BOTH); + } + 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"; + } + mysqli_query($this->connection, $q); + } + + function isDeleting($uid) { + $q = "SELECT timestamp from " . TB_PREFIX . "deleting where uid = $uid"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 mysqli_query($this->connection, $q); + } + + /***************************************** + 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 = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + 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 mysqli_query($this->connection, $q); + } + + function addActiveUser($username, $time) { + $q = "REPLACE into " . TB_PREFIX . "active values ('$username',$time)"; + if(mysqli_query($this->connection, $q)) { + 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 = mysqli_query($this->connection, $q); + $exec2 = mysqli_query($this->connection, $q2); + 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 = mysqli_query($this->connection, $q); + if(mysqli_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 mysqli_query($this->connection, $q); + } + + function gpack($uid, $gpack) { + $q = "UPDATE " . TB_PREFIX . "users set gpack = '$gpack' where id = $uid"; + return mysqli_query($this->connection, $q); + } + + function GetOnline($uid) { + $q = "SELECT sit FROM " . TB_PREFIX . "online where uid = $uid"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['sit']; + } + + function UpdateOnline($mode, $name = "", $time = "", $uid = 0) { + global $session; + if($mode == "login") { + $q = "INSERT IGNORE INTO " . TB_PREFIX . "online (name, uid, time, sit) VALUES ('$name', '$uid', " . time() . ", 0)"; + return mysqli_query($this->connection, $q); + } else if($mode == "sitter") { + $q = "INSERT IGNORE INTO " . TB_PREFIX . "online (name, uid, time, sit) VALUES ('$name', '$uid', " . time() . ", 1)"; + return mysqli_query($this->connection, $q); + } else { + $q = "DELETE FROM " . TB_PREFIX . "online WHERE name ='" . addslashes($session->username) . "'"; + return mysqli_query($this->connection, $q); + } + } + + 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 = mysqli_query($this->connection, $q); + $num_rows = mysqli_num_rows($result); + $result = $this->mysqli_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 mysqli_query($this->connection, $q); + } + + 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 mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_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 mysqli_query($this->connection, $q); + } + function isVillageOases($wref) { + $q = "SELECT id, oasistype FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['oasistype']; + } + + public function VillageOasisCount($vref) { + $q = "SELECT count(*) FROM `".TB_PREFIX."odata` WHERE conqured=$vref"; + $result = mysqli_query($this->connection, $q); + $row = mysqli_fetch_row($result); + return $row[0]; + } + + public function countOasisTroops($vref){ + //count oasis troops: $troops_o + $troops_o=0; + $o_unit2=mysqli_query("select * from ".TB_PREFIX."units where `vref`='".$vref."'"); + $o_unit=mysqli_fetch_array($o_unit2, MYSQLI_BOTH); + + for ($i=1;$i<51;$i++) + { + $troops_o+=$o_unit[$i]; + } + $troops_o+=$o_unit['hero']; + + $o_unit2=mysqli_query("select * from ".TB_PREFIX."enforcement where `vref`='".$vref."'"); + while ($o_unit=@mysqil_fetch_array($o_unit2, MYSQLI_BOTH)) + { + 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 mysqli_query($this->connection, $q); + } + + 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 mysqli_query($this->connection, $q); + } + } + } + + function populateOasis() { + $q = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; + $result = mysqli_query($this->connection, $q); + while($row = mysqli_fetch_array($result, MYSQLI_BOTH)) { + $wid = $row['id']; + + $this->addUnits($wid); + + } + } + + function populateOasisUnits($wid, $high) { + $basearray = $this->getMInfo($wid); + $basearray = $this->getOasisInfo($wid); + if($basearray2['high'] == 0){ + $max = rand(15,30); + }elseif($basearray2['high'] == 1){ + $max = rand(70,90); + }elseif($basearray2['high'] == 2){ + $max = rand(100,140); + } + //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 u35 = u35 + '".rand(0,5)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max.")"; + $result = mysqli_query($this->connection, $q); + break; + case 3: + //+25% lumber and +25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u35 = u35 + '".rand(0,5)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $result = mysqli_query($this->connection, $q); + break; + case 4: + case 5: + //+25% clay per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max.")"; + $result = mysqli_query($this->connection, $q); + break; + case 6: + //+25% clay and +25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u36 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $result = mysqli_query($this->connection, $q); + break; + case 7: + case 8: + //+25% iron per hour + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,5)."', u32 = u32 + '".rand(0,5)."', u34 = u34 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max.")"; + $result = mysqli_query($this->connection, $q); + break; + case 9: + //+25% iron and +25% crop + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(0,5)."', u32 = u32 + '".rand(0,5)."', u34 = u34 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u31 <= ".$max." OR u32 <= ".$max." OR u34 <= ".$max.")"; + $result = mysqli_query($this->connection, $q); + break; + case 10: + case 11: + //+25% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u33 = u33 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u33 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $result = mysqli_query($this->connection, $q); + break; + case 12: + //+50% crop per hour + $q = "UPDATE " . TB_PREFIX . "units SET u33 = u33 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."', u38 = u38 + '".rand(0,5)."', u39 = u39 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND (u33 <= ".$max." OR u37 <= ".$max." OR u38 <= ".$max.")"; + $result = mysqli_query($this->connection, $q); + break; + } + } + + function populateOasisUnits2() { + $q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; + $result2 = mysqli_query($this->connection, $q2); + while($row = mysqli_fetch_array($result2, MYSQLI_BOTH)) { + $wid = $row['id']; + switch($row['oasistype']) { + case 1: + case 2: + //+25% lumber oasis + $q = "UPDATE " . TB_PREFIX . "units SET u35 = u35 + '".rand(5,10)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND u35 <= '10' AND u36 <= '10' AND u37 <= '10'"; + $result = mysqli_query($this->connection, $q); + break; + case 3: + //+25% lumber and +25% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u35 = u35 + '".rand(5,15)."', u36 = u36 + '".rand(0,5)."', u37 = u37 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND u35 <= '10' AND u36 <= '10' AND u37 <='10'"; + $result = mysqli_query($this->connection, $q); + break; + case 4: + case 5: + //+25% clay oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(10,15)."', u32 = u32 + '".rand(5,15)."', u35 = u35 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u32 <= '10' AND u35 <= '10'"; + $result = mysqli_query($this->connection, $q); + break; + case 6: + //+25% clay and +25% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(15,20)."', u32 = u32 + '".rand(10,15)."', u35 = u35 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u32 <= '10' AND u35 <='10'"; + $result = mysqli_query($this->connection, $q); + break; + case 7: + case 8: + //+25% iron oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(10,15)."', u32 = u32 + '".rand(5,15)."', u34 = u34 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u32 <= '10' AND u34 <= '10'"; + $result = mysqli_query($this->connection, $q); + break; + case 9: + //+25% iron and +25% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(15,20)."', u32 = u32 + '".rand(10,15)."', u34 = u34 + '".rand(0,10)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u32 <= '10' AND u34 <='10'"; + $result = mysqli_query($this->connection, $q); + break; + case 10: + case 11: + //+25% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(5,15)."', u33 = u33 + '".rand(5,10)."', u37 = u37 + '".rand(0,10)."', u39 = u39 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u33 <= '10' AND u37 <='10' AND u39 <='10'"; + $result = mysqli_query($this->connection, $q); + break; + case 12: + //+50% crop oasis + $q = "UPDATE " . TB_PREFIX . "units SET u31 = u31 + '".rand(10,15)."', u33 = u33 + '".rand(5,10)."', u38 = u38 + '".rand(0,5)."', u39 = u39 + '".rand(0,5)."' WHERE vref = '" . $wid . "' AND u31 <= '10' AND u33 <= '10' AND u38 <='10'AND u39 <='10'"; + $result = mysqli_query($this->connection, $q); + break; + } + } + } + + function removeOases($wref) { + $q = "UPDATE ".TB_PREFIX."odata SET conqured = 0, owner = 2, name = 'Unoccupied Oasis' WHERE wref = $wref"; + return mysqli_query($this->connection, $q); + } + + + /*************************** + 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 = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getProfileMedal($uid) { + $q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "medal where userid = $uid and del = 0 order by id desc"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + + } + + function getProfileMedalAlly($uid) { + $q = "SELECT id,categorie,plaats,week,img,points from " . TB_PREFIX . "allimedal where allyid = $uid and del = 0 order by id desc"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + + } + + function getVillageID($uid) { + $q = "SELECT wref FROM " . TB_PREFIX . "vdata WHERE owner = $uid"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['wref']; + } + + + function getVillagesID($uid) { + $q = "SELECT wref from " . TB_PREFIX . "vdata where owner = $uid order by capital DESC,pop DESC"; + $result = mysqli_query($this->connection, $q); + $array = $this->mysqli_fetch_all($result); + $newarray = array(); + for($i = 0; $i < count($array); $i++) { + array_push($newarray, $array[$i]['wref']); + } + return $newarray; + } + + function getVillagesID2($uid) { + $q = "SELECT wref from " . TB_PREFIX . "vdata where owner = $uid order by capital DESC,pop DESC"; + $result = mysqli_query($this->connection, $q); + $array = $this->mysqli_fetch_all($result); + return $array; + } + + function getVillage($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "vdata where wref = $vid"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + 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 = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + public function getPopulation($uid) { + $q = "SELECT sum(pop) AS pop FROM ".TB_PREFIX."vdata WHERE owner=".$uid; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['pop']; + } + + function getOasisV($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "odata where wref = $vid"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + 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 = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + 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 = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + function getOasis($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "odata where conqured = $vid"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getOasisInfo($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "odata where wref = $wid"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_assoc($result); + } + + function getVillageField($ref, $field) { + $q = "SELECT $field FROM " . TB_PREFIX . "vdata where wref = $ref"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray[$field]; + + } + + function getOasisField($ref, $field) { + $q = "SELECT $field FROM " . TB_PREFIX . "odata where wref = $ref"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray[$field]; + } + + function setVillageField($ref, $field, $value) { + $q = "UPDATE " . TB_PREFIX . "vdata set $field = '$value' where wref = $ref"; + return mysqli_query($this->connection, $q); + } + + function setVillageLevel($ref, $field, $value) { + $q = "UPDATE " . TB_PREFIX . "fdata set " . $field . " = '" . $value . "' where vref = " . $ref . ""; + return mysqli_query($this->connection, $q); + } + + function getResourceLevel($vid) { + $q = "SELECT * from " . TB_PREFIX . "fdata where vref = $vid"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_assoc($result); + } + + function getAdminLog() { + $q = "SELECT id,user,log,time from " . TB_PREFIX . "admin_log where id != 0 ORDER BY id ASC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getCoor($wref) { + if ($wref !=""){ + $q = "SELECT x,y FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + } + + function CheckForum($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_cat where alliance = '$id'"; + $result = mysqli_query($this->connection, $q); + if(mysqli_num_rows($result)) { + return true; + } else { + return false; + } + } + + function CountCat($id) { + $q = "SELECT count(id) FROM " . TB_PREFIX . "forum_topic where cat = '$id'"; + $result = mysqli_query($this->connection, $q); + $row = mysqli_fetch_row($result); + return $row[0]; + } + + function LastTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where cat = '$id' order by post_date"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function CheckLastTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where cat = '$id'"; + $result = mysqli_query($this->connection, $q); + if(mysqli_num_rows($result)) { + return true; + } else { + return false; + } + } + + function CheckLastPost($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_post where topic = '$id'"; + $result = mysqli_query($this->connection, $q); + if(mysqli_num_rows($result)) { + return true; + } else { + return false; + } + } + + function LastPost($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_post where topic = '$id'"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function CountTopic($id) { + $q = "SELECT count(id) FROM " . TB_PREFIX . "forum_post where owner = '$id'"; + $result = mysqli_query($this->connection, $q); + $row = mysqli_fetch_row($result); + + $qs = "SELECT count(id) FROM " . TB_PREFIX . "forum_topic where owner = '$id'"; + $results = mysqli_query($qs, $this->connection); + $rows = mysqli_fetch_row($results); + return $row[0] + $rows[0]; + } + + function CountPost($id) { + $q = "SELECT count(id) FROM " . TB_PREFIX . "forum_post where topic = '$id'"; + $result = mysqli_query($this->connection, $q); + $row = mysqli_fetch_row($result); + return $row[0]; + } + + function ForumCat($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_cat where alliance = '$id' ORDER BY id"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function ForumCatEdit($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_cat where id = '$id'"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function ForumCatAlliance($id) { + $q = "SELECT alliance from " . TB_PREFIX . "forum_cat where id = $id"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['alliance']; + } + + function ForumCatName($id) { + $q = "SELECT forum_name from " . TB_PREFIX . "forum_cat where id = $id"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['forum_name']; + } + + function CheckCatTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where cat = '$id'"; + $result = mysqli_query($this->connection, $q); + if(mysqli_num_rows($result)) { + return true; + } else { + return false; + } + } + + function CheckResultEdit($alli) { + $q = "SELECT * from " . TB_PREFIX . "forum_edit where alliance = '$alli'"; + $result = mysqli_query($this->connection, $q); + if(mysqli_num_rows($result)) { + return true; + } else { + return false; + } + } + + function CheckCloseTopic($id) { + $q = "SELECT close from " . TB_PREFIX . "forum_topic where id = '$id'"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['close']; + } + + function CheckEditRes($alli) { + $q = "SELECT result from " . TB_PREFIX . "forum_edit where alliance = '$alli'"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['result']; + } + + function CreatResultEdit($alli, $result) { + $q = "INSERT into " . TB_PREFIX . "forum_edit values (0,'$alli','$result')"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } + + function UpdateResultEdit($alli, $result) { + $date = time(); + $q = "UPDATE " . TB_PREFIX . "forum_edit set result = '$result' where alliance = '$alli'"; + return mysqli_query($this->connection, $q); + } + + function getVillageType2($wref) { + $q = "SELECT * FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['oasistype']; + } + + function getVillageType3($wref) { + $q = "SELECT * FROM " . TB_PREFIX . "wdata where id = $wref"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray; + } + + function getFLData($id) { + $q = "SELECT * FROM " . TB_PREFIX . "farmlist where id = $id"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + function checkVilExist($wref) { + $q = "SELECT * FROM " . TB_PREFIX . "vdata where wref = '$wref'"; + $result = mysqli_query($this->connection, $q); + if(mysqli_num_rows($result)) { + return true; + } else { + return false; + } + } + + function checkOasisExist($wref) { + $q = "SELECT * FROM " . TB_PREFIX . "odata where wref = '$wref'"; + $result = mysqli_query($this->connection, $q); + if(mysqli_num_rows($result)) { + return true; + } else { + return false; + } + } + + function UpdateEditTopic($id, $title, $cat) { + $q = "UPDATE " . TB_PREFIX . "forum_topic set title = '$title', cat = '$cat' where id = $id"; + return mysqli_query($this->connection, $q); + } + + function UpdateEditForum($id, $name, $des) { + $q = "UPDATE " . TB_PREFIX . "forum_cat set forum_name = '$name', forum_des = '$des' where id = $id"; + return mysqli_query($this->connection, $q); + } + + function StickTopic($id, $mode) { + $q = "UPDATE " . TB_PREFIX . "forum_topic set stick = '$mode' where id = '$id'"; + return mysqli_query($this->connection, $q); + } + + function ForumCatTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where cat = '$id' AND stick = '' ORDER BY post_date desc"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_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 = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function ShowTopic($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_topic where id = '$id'"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function ShowPost($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_post where topic = '$id'"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function ShowPostEdit($id) { + $q = "SELECT * from " . TB_PREFIX . "forum_post where id = '$id'"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function CreatForum($owner, $alli, $name, $des, $area) { + $q = "INSERT into " . TB_PREFIX . "forum_cat values (0,'$owner','$alli','$name','$des','$area')"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } + + function CreatTopic($title, $post, $cat, $owner, $alli, $ends, $alliance, $player, $coor, $report) { + $date = time(); + $q = "INSERT into " . TB_PREFIX . "forum_topic values (0,'$title','$post','$date','$date','$cat','$owner','$alli','$ends','','','$alliance','$player','$coor','$report')"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } + + function CreatPost($post, $tids, $owner, $alliance, $player, $coor, $report) { + $date = time(); + $q = "INSERT into " . TB_PREFIX . "forum_post values (0,'$post','$tids','$owner','$date','$alliance','$player','$coor','$report')"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } + + function UpdatePostDate($id) { + $date = time(); + $q = "UPDATE " . TB_PREFIX . "forum_topic set post_date = '$date' where id = $id"; + return mysqli_query($this->connection, $q); + } + + function EditUpdateTopic($id, $post, $alliance, $player, $coor, $report) { + $q = "UPDATE " . TB_PREFIX . "forum_topic set post = '$post', alliance0 = '$alliance', player0 = '$player', coor0 = '$coor', report0 = '$report' where id = $id"; + return mysqli_query($this->connection, $q); + } + + function EditUpdatePost($id, $post, $alliance, $player, $coor, $report) { + $q = "UPDATE " . TB_PREFIX . "forum_post set post = '$post', alliance0 = '$alliance', player0 = '$player', coor0 = '$coor', report0 = '$report' where id = $id"; + return mysqli_query($this->connection, $q); + } + + function LockTopic($id, $mode) { + $q = "UPDATE " . TB_PREFIX . "forum_topic set close = '$mode' where id = '$id'"; + return mysqli_query($this->connection, $q); + } + + function DeleteCat($id) { + $qs = "DELETE from " . TB_PREFIX . "forum_cat where id = '$id'"; + $q = "DELETE from " . TB_PREFIX . "forum_topic where cat = '$id'"; + mysqli_query($qs, $this->connection); + return mysqli_query($this->connection, $q); + } + + function DeleteTopic($id) { + $qs = "DELETE from " . TB_PREFIX . "forum_topic where id = '$id'"; + // $q = "DELETE from ".TB_PREFIX."forum_post where topic = '$id'";// + return mysqli_query($qs, $this->connection); // + // mysqli_query($q,$this->connection); + } + + function DeletePost($id) { + $q = "DELETE from " . TB_PREFIX . "forum_post where id = '$id'"; + return mysqli_query($this->connection, $q); + } + + function getAllianceName($id) { + $q = "SELECT tag from " . TB_PREFIX . "alidata where id = $id"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray[$field]; + } + + function getAlliance($id) { + $q = "SELECT * from " . TB_PREFIX . "alidata where id = $id"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_assoc($result); + } + + function setAlliName($aid, $name, $tag) { + $q = "UPDATE " . TB_PREFIX . "alidata set name = '$name', tag = '$tag' where id = $aid"; + return mysqli_query($this->connection, $q); + } + + function isAllianceOwner($id) { + $q = "SELECT * from " . TB_PREFIX . "alidata where leader = '$id'"; + $result = mysqli_query($this->connection, $q); + if(mysqli_num_rows($result)) { + return true; + } else { + return false; + } + } + + function aExist($ref, $type) { + $q = "SELECT $type FROM " . TB_PREFIX . "alidata where $type = '$ref'"; + $result = mysqli_query($this->connection, $q); + if(mysqli_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 mysqli_query($this->connection, $q); + } + + function modifyPointsAlly($aid, $points, $amt) { + $q = "UPDATE " . TB_PREFIX . "alidata set $points = $points + $amt where id = $aid"; + return mysqli_query($this->connection, $q); + } + + /***************************************** + 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,'','','','','','','','','')"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } + + function procAllyPop($aid) { + $ally = $this->getAlliance($aid); + $memberlist = $this->getAllMember($ally['id']); + $oldrank = 0; + foreach($memberlist as $member) { + $oldrank += $this->getVSumField($member['id'],"pop"); + } + if($ally['oldrank'] != $oldrank){ + if($ally['oldrank'] < $oldrank) { + $totalpoints = $oldrank - $ally['oldrank']; + $this->addclimberrankpopAlly($ally['id'], $totalpoints); + $this->updateoldrankAlly($ally['id'], $oldrank); + } else + if($ally['oldrank'] > $oldrank) { + $totalpoints = $ally['oldrank'] - $oldrank; + $this->removeclimberrankpopAlly($ally['id'], $totalpoints); + $this->updateoldrankAlly($ally['id'], $oldrank); + } + } + } + + /***************************************** + 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)"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } + + /***************************************** + Function to delete alliance if empty + References: + *****************************************/ + function deleteAlliance($aid) { + $result = mysqli_query("SELECT * FROM " . TB_PREFIX . "users where alliance = $aid"); + $num_rows = mysqli_num_rows($result); + if($num_rows == 0) { + $q = "DELETE FROM " . TB_PREFIX . "alidata WHERE id = $aid"; + } + mysqli_query($this->connection, $q); + return mysqli_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 = mysqli_query($this->connection, $q); + return $this->mysqli_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')"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } + + /***************************************** + Function to update alliance permissions + References: + *****************************************/ + function deleteAlliPermissions($uid) { + $q = "DELETE from " . TB_PREFIX . "ali_permission where uid = '$uid'"; + return mysqli_query($this->connection, $q); + } + /***************************************** + 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 mysqli_query($this->connection, $q); + } + + /***************************************** + 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 = mysqli_query($this->connection, $q); + return mysqli_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 mysqli_query($this->connection, $q); + } + + function diplomacyInviteAdd($alli1, $alli2, $type) { + $q = "INSERT INTO " . TB_PREFIX . "diplomacy (alli1,alli2,type,accepted) VALUES ($alli1,$alli2," . (int)intval($type) . ",0)"; + return mysqli_query($this->connection, $q); + } + + function diplomacyOwnOffers($session_alliance) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli1 = $session_alliance AND accepted = 0"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getAllianceID($name) { + $q = "SELECT id FROM " . TB_PREFIX . "alidata WHERE tag ='" . $this->RemoveXSS($name) . "'"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['id']; + } + + function getDiplomacy($aid) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE id = $aid"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function diplomacyCancelOffer($id) { + $q = "DELETE FROM " . TB_PREFIX . "diplomacy WHERE id = $id"; + return mysqli_query($this->connection, $q); + } + + function diplomacyInviteAccept($id, $session_alliance) { + $q = "UPDATE " . TB_PREFIX . "diplomacy SET accepted = 1 WHERE id = $id AND alli2 = $session_alliance"; + return mysqli_query($this->connection, $q); + } + + function diplomacyInviteDenied($id, $session_alliance) { + $q = "DELETE FROM " . TB_PREFIX . "diplomacy WHERE id = $id AND alli2 = $session_alliance"; + return mysqli_query($this->connection, $q); + } + + function diplomacyInviteCheck($session_alliance) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli2 = $session_alliance AND accepted = 0"; + $result = mysql_query($this->connection, $q); + return $this->mysql_fetch_all($result); + } + + function diplomacyInviteCheck2($ally1, $ally2) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli1 = $ally1 AND alli2 = $ally2 accepted = 0"; + $result = mysql_query($this->connection, $q); + 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' OR alli2 = '$aid' AND type = '$type' AND accepted = '1'"; + $array = $this->query_return($q); + foreach($array as $row){ + if($row['alli1'] == $aid){ + $alliance = $this->getAlliance($row['alli2']); + }elseif($row['alli2'] == $aid){ + $alliance = $this->getAlliance($row['alli1']); + } + $text .= ""; + $text .= "".$alliance['tag']."
"; + } + if(strlen($text) == 0){ + $text = "-
"; + } + return $text; + } + + function getAllianceWar($aid){ + $q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli1 = '$aid' AND type = '3' OR alli2 = '$aid' AND type = '3' AND accepted = '1'"; + $array = $this->query_return($q); + foreach($array as $row){ + if($row['alli1'] == $aid){ + $alliance = $this->getAlliance($row['alli2']); + }elseif($row['alli2'] == $aid){ + $alliance = $this->getAlliance($row['alli1']); + } + $text .= ""; + $text .= "".$alliance['tag']."
"; + } + if(strlen($text) == 0){ + $text = "-
"; + } + return $text; + } + + function getAllianceAlly($aid, $type){ + $q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE (alli1 = '$aid' or alli2 = '$aid') AND (type = '$type' AND accepted = '1')"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getAllianceWar2($aid){ + $q = "SELECT * FROM ".TB_PREFIX."diplomacy WHERE alli1 = '$aid' AND type = '3' OR alli2 = '$aid' AND type = '3' AND accepted = '1'"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function diplomacyExistingRelationships($session_alliance) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli2 = $session_alliance AND accepted = 1"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function diplomacyExistingRelationships2($session_alliance) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli1 = $session_alliance AND accepted = 1"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function diplomacyCancelExistingRelationship($id, $session_alliance) { + $q = "DELETE FROM " . TB_PREFIX . "diplomacy WHERE id = $id AND alli2 = $session_alliance OR id = $id AND alli1 = $session_alliance"; + return mysqli_query($this->connection, $q); + } + + function checkDiplomacyInviteAccept($aid, $type) { + $q = "SELECT * FROM " . TB_PREFIX . "diplomacy WHERE alli1 = $aid AND type = $type AND accepted = 1 OR alli2 = $aid AND type = $type AND accepted = 1"; + $result = mysqli_query($this->connection, $q); + if($type == 3){ + return true; + }else{ + if(mysqli_num_rows($result) < 4) { + return true; + } else { + return false; + } + } + } + + function setAlliForumLink($aid, $link) { + $q = "UPDATE " . TB_PREFIX . "alidata SET `forumlink` = '$link' WHERE id = $aid"; + return mysqli_query($this->connection, $q); + } + + 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 = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 mysqli_query($this->connection, $q); + } + + 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 mysqli_query($this->connection, $q); + } + + function getFieldLevel($vid, $field) { + $q = "SELECT f" . $field . " from " . TB_PREFIX . "fdata where vref = $vid"; + $result = mysqli_query($this->connection, $q); + return mysql_result($result, 0); + } + + function getFieldType($vid, $field) { + $q = "SELECT f" . $field . "t from " . TB_PREFIX . "fdata where vref = $vid"; + $result = mysqli_query($this->connection, $q); + return mysql_result($result, 0); + } + + function getVSumField($uid, $field) { + if($field != "cp"){ + $q = "SELECT sum(" . $field . ") FROM " . TB_PREFIX . "vdata where owner = $uid"; + }else{ + $q = "SELECT sum(" . $field . ") FROM " . TB_PREFIX . "vdata where owner = $uid and natar = 0"; + } + $result = mysqli_query($this->connection, $q); + $row = mysqli_fetch_row($result); + return $row[0]; + } + + function updateVillage($vid) { + $time = time(); + $q = "UPDATE " . TB_PREFIX . "vdata set lastupdate = $time where wref = $vid"; + return mysqli_query($this->connection, $q); + } + function updateOasis($vid) { + $time = time(); + $q = "UPDATE " . TB_PREFIX . "odata set lastupdated = $time where wref = $vid"; + return mysqli_query($this->connection, $q); + } + + + function setVillageName($vid, $name) { + if(!empty($name)) + { + $q = "UPDATE " . TB_PREFIX . "vdata set name = '$name' where wref = $vid"; + return mysqli_query($this->connection, $q); + } + } + + 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 mysqli_query($this->connection, $q); + } + + function addCP($ref, $cp) { + $q = "UPDATE " . TB_PREFIX . "vdata set cp = cp + $cp where wref = $ref"; + return mysqli_query($this->connection, $q); + } + + function addCel($ref, $cel, $type) { + $q = "UPDATE " . TB_PREFIX . "vdata set celebration = $cel, type= $type where wref = $ref"; + return mysqli_query($this->connection, $q); + } + function getCel() { + $time = time(); + $q = "SELECT * FROM " . TB_PREFIX . "vdata where celebration < $time AND celebration != 0"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function clearCel($ref) { + $q = "UPDATE " . TB_PREFIX . "vdata set celebration = 0, type = 0 where wref = $ref"; + return mysqli_query($this->connection, $q); + } + function setCelCp($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set cp = cp + $cp where id = $user"; + return mysqli_query($this->connection, $q); + } + + function clearExpansionSlot($id) { + for($i = 1; $i <= 3; $i++) { + $q = "UPDATE " . TB_PREFIX . "vdata SET exp" . $i . "=0 WHERE exp" . $i . "=" . $id; + mysqli_query($this->connection, $q); + } + } + + function getInvitation($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "ali_invite where uid = $uid"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getInvitation2($uid, $aid) { + $q = "SELECT * FROM " . TB_PREFIX . "ali_invite where uid = $uid and alliance = $aid"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getAliInvitations($aid) { + $q = "SELECT * FROM " . TB_PREFIX . "ali_invite where alliance = $aid && accept = 0"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_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 mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + } + + function removeInvitation($id) { + $q = "DELETE FROM " . TB_PREFIX . "ali_invite where id = $id"; + return mysqli_query($this->connection, $q); + } + + function sendMessage($client, $owner, $topic, $message, $send, $alliance, $player, $coor, $report) { + $time = time(); + $q = "INSERT INTO " . TB_PREFIX . "mdata values (0,$client,$owner,'$topic',\"$message\",0,0,$send,$time,0,0,$alliance,$player,$coor,$report)"; + return mysqli_query($this->connection, $q); + } + + function setArchived($id) { + $q = "UPDATE " . TB_PREFIX . "mdata set archived = 1 where id = $id"; + return mysqli_query($this->connection, $q); + } + + function setNorm($id) { + $q = "UPDATE " . TB_PREFIX . "mdata set archived = 0 where id = $id"; + return mysqli_query($this->connection, $q); + } + + /*************************** + 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: + $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 = "UPDATE " . TB_PREFIX . "mdata set deltarget = 1,viewed = 1 where id = $id"; + break; + case 6: + $q = "SELECT * FROM " . TB_PREFIX . "mdata where target = $id and send = 0 and archived = 1"; + break; + case 7: + $q = "UPDATE " . TB_PREFIX . "mdata set delowner = 1 where id = $id"; + break; + case 8: + $q = "UPDATE " . TB_PREFIX . "mdata set deltarget = 1,delowner = 1,viewed = 1 where id = $id"; + break; + case 9: + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $id and send = 0 and archived = 0 and deltarget = 0 ORDER BY time DESC"; + break; + case 10: + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE owner = $id and delowner = 0 ORDER BY time DESC"; + break; + case 11: + $q = "SELECT * FROM " . TB_PREFIX . "mdata where target = $id and send = 0 and archived = 1 and deltarget = 0"; + break; + } + if($mode <= 3 || $mode == 6 || $mode > 8) { + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } else { + return mysqli_query($this->connection, $q); + } + } + + function getDelSent($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE owner = $uid and delowner = 1 ORDER BY time DESC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getDelInbox($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $uid and deltarget = 1 ORDER BY time DESC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getDelArchive($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "mdata WHERE target = $uid and archived = 1 and deltarget = 1 OR owner = $uid and archived = 1 and delowner = 1 ORDER BY time DESC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function unarchiveNotice($id) { + $q = "UPDATE " . TB_PREFIX . "ndata set ntype = archive, archive = 0 where id = $id"; + return mysqli_query($this->connection, $q); + } + + function archiveNotice($id) { + $q = "update " . TB_PREFIX . "ndata set archive = ntype, ntype = 9 where id = $id"; + return mysqli_query($this->connection, $q); + } + + function removeNotice($id) { + $q = "UPDATE " . TB_PREFIX . "ndata set del = 1,viewed = 1 where id = $id"; + return mysqli_query($this->connection, $q); + } + + function noticeViewed($id) { + $q = "UPDATE " . TB_PREFIX . "ndata set viewed = 1 where id = $id"; + return mysqli_query($this->connection, $q); + } + + 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 mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + } + + function getNotice($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid and del = 0 ORDER BY time DESC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getNotice2($id, $field) { + $q = "SELECT ".$field." FROM " . TB_PREFIX . "ndata where `id` = '$id'"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray[$field]; + } + + function getNotice3($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "ndata where uid = $uid ORDER BY time DESC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getNotice4($id) { + $q = "SELECT * FROM " . TB_PREFIX . "ndata where id = $id ORDER BY time DESC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function createTradeRoute($uid,$wid,$from,$r1,$r2,$r3,$r4,$start,$deliveries,$merchant,$time) { + $x = "UPDATE " . TB_PREFIX . "users SET gold = gold - 2 WHERE id = ".$uid.""; + mysqli_query($x, $this->connection); + $timeleft = time()+604800; + $q = "INSERT into " . TB_PREFIX . "route values (0,$uid,$wid,$from,$r1,$r2,$r3,$r4,$start,$deliveries,$merchant,$time,$timeleft)"; + return mysqli_query($this->connection, $q); + } + + function getTradeRoute($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "route where uid = $uid ORDER BY timestamp ASC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getTradeRoute2($id) { + $q = "SELECT * FROM " . TB_PREFIX . "route where id = $id"; + $result = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray; + } + + function getTradeRouteUid($id) { + $q = "SELECT * FROM " . TB_PREFIX . "route where id = $id"; + $result = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['uid']; + } + + function editTradeRoute($id,$column,$value,$mode) { + if(!$mode){ + $q = "UPDATE " . TB_PREFIX . "route set $column = $value where id = $id"; + }else{ + $q = "UPDATE " . TB_PREFIX . "route set $column = $column + $value where id = $id"; + } + return mysqli_query($this->connection, $q); + } + + function deleteTradeRoute($id) { + $q = "DELETE FROM " . TB_PREFIX . "route where id = $id"; + return mysqli_query($this->connection, $q); + } + + function addBuilding($wid, $field, $type, $loop, $time, $master, $level) { + $x = "UPDATE " . TB_PREFIX . "fdata SET f" . $field . "t=" . $type . " WHERE vref=" . $wid; + mysqli_query($x, $this->connection) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $q = "INSERT into " . TB_PREFIX . "bdata values (0,$wid,$field,$type,$loop,$time,$master,$level)"; + return mysqli_query($this->connection, $q); + } + + 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($jobs[$i]['master'] == 1) { + $jobMaster = $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(count($jobs) > 3 && ($jobs[0]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 8; + } + if(count($jobs) > 3 && ($jobs[1]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 9; + } + if(count($jobs) > 3 && ($jobs[2]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 10; + } + if(count($jobs) > 2 && ($jobs[0]['field'] == $jobs[1]['field'] && $jobs[1]['field'] == $jobs[2]['field'])) { + $SameBuildCount = 4; + } + if(count($jobs) > 3 && ($jobs[0]['field'] == $jobs[1]['field'] && $jobs[1]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 5; + } + if(count($jobs) > 3 && ($jobs[0]['field'] == $jobs[2]['field'] && $jobs[2]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 6; + } + if(count($jobs) > 3 && ($jobs[1]['field'] == $jobs[2]['field'] && $jobs[2]['field'] == $jobs[3]['field'])) { + $SameBuildCount = 7; + } + if($SameBuildCount > 0) { + if($SameBuildCount > 3){ + if($SameBuildCount == 4 or $SameBuildCount == 5){ + if($jobDeleted == 0){ + $uprequire = $building->resourceRequired($jobs[1]['field'],$jobs[1]['type'],1); + $time = $uprequire['time']; + $timestamp = $time+time(); + $q = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,level=level-1,timestamp=".$timestamp." WHERE id=".$jobs[1]['id'].""; + mysqli_query($this->connection, $q); + } + }else if($SameBuildCount == 6){ + if($jobDeleted == 0){ + $uprequire = $building->resourceRequired($jobs[2]['field'],$jobs[2]['type'],1); + $time = $uprequire['time']; + $timestamp = $time+time(); + $q = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,level=level-1,timestamp=".$timestamp." WHERE id=".$jobs[2]['id'].""; + mysqli_query($this->connection, $q); + } + }else if($SameBuildCount == 7){ + if($jobDeleted == 1){ + $uprequire = $building->resourceRequired($jobs[2]['field'],$jobs[2]['type'],1); + $time = $uprequire['time']; + $timestamp = $time+time(); + $q = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,level=level-1,timestamp=".$timestamp." WHERE id=".$jobs[2]['id'].""; + mysqli_query($this->connection, $q); + } + } + if($SameBuildCount < 8){ + $uprequire1 = $building->resourceRequired($jobs[$jobMaster]['field'],$jobs[$jobMaster]['type'],2); + $time1 = $uprequire1['time']; + $timestamp1 = $time1; + $q1 = "UPDATE " . TB_PREFIX . "bdata SET level=level-1,timestamp=".$timestamp1." WHERE id=".$jobs[$jobMaster]['id'].""; + mysqli_query($q1, $this->connection); + }else{ + $uprequire1 = $building->resourceRequired($jobs[$jobMaster]['field'],$jobs[$jobMaster]['type'],1); + $time1 = $uprequire1['time']; + $timestamp1 = $time1; + $q1 = "UPDATE " . TB_PREFIX . "bdata SET level=level-1,timestamp=".$timestamp1." WHERE id=".$jobs[$jobMaster]['id'].""; + mysqli_query($q1, $this->connection); + } + }else if($d == $jobs[floor($SameBuildCount / 3)]['id'] || $d == $jobs[floor($SameBuildCount / 2) + 1]['id']) { + $q = "UPDATE " . TB_PREFIX . "bdata SET loopcon=0,level=level-1,timestamp=" . $jobs[floor($SameBuildCount / 3)]['timestamp'] . " WHERE master = 0 AND id > ".$d." and (ID=" . $jobs[floor($SameBuildCount / 3)]['id'] . " OR ID=" . $jobs[floor($SameBuildCount / 2) + 1]['id'] . ")"; + mysqli_query($this->connection, $q); + } + } else { + if($jobs[$jobDeleted]['field'] >= 19) { + $x = "SELECT f" . $jobs[$jobDeleted]['field'] . " FROM " . TB_PREFIX . "fdata WHERE vref=" . $jobs[$jobDeleted]['wid']; + $result = mysqli_query($x, $this->connection) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $fieldlevel = mysqli_fetch_row($result); + if($fieldlevel[0] == 0) { + $x = "UPDATE " . TB_PREFIX . "fdata SET f" . $jobs[$jobDeleted]['field'] . "t=0 WHERE vref=" . $jobs[$jobDeleted]['wid']; + mysqli_query($x, $this->connection) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_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) || sizeof($jobs) < 3) { + $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 AND master=0"; + mysqli_query($x, $this->connection) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + } + } + } + $q = "DELETE FROM " . TB_PREFIX . "bdata where id = $d"; + return mysqli_query($this->connection, $q); + } + + function addDemolition($wid, $field) { + global $building, $village; + $q = "DELETE FROM ".TB_PREFIX."bdata WHERE field=$field AND wid=$wid"; + mysqli_query($this->connection, $q); + $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 mysqli_query($this->connection, $q); + } + + + 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 = mysqli_query($this->connection, $q); + if(!empty($result)) { + return $this->mysqli_fetch_all($result); + } else { + return NULL; + } + } + + function finishDemolition($wid) { + $q = "UPDATE " . TB_PREFIX . "demolition SET timetofinish=" . time() . " WHERE vref=" . $wid; + return mysqli_query($this->connection, $q); + } + + function delDemolition($wid) { + $q = "DELETE FROM " . TB_PREFIX . "demolition WHERE vref=" . $wid; + return mysqli_query($this->connection, $q); + } + + function getJobs($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid order by master,timestamp ASC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function FinishWoodcutter($wid) { + $time = time()-1; + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and type = 1 order by master,timestamp ASC"; + $result = mysqli_query($q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + $q = "UPDATE ".TB_PREFIX."bdata SET timestamp = $time WHERE id = '".$dbarray['id']."'"; + $this->query($q); + $q2 = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and loopcon = 1 and field <= 18 order by master,timestamp ASC"; + if(mysqli_num_rows($q2) > 0){ + $result2 = mysqli_query($q2); + $dbarray2 = mysql_fetch_array($result2); + $wc_time = $dbarray['timestamp']; + $q2 = "UPDATE ".TB_PREFIX."bdata SET timestamp = timestamp - $wc_time WHERE id = '".$dbarray2['id']."'"; + $this->query($q2); + } + } + + function getMasterJobs($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and master = 1 order by master,timestamp ASC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getMasterJobsByField($wid,$field) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field = $field and master = 1 order by master,timestamp ASC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getBuildingByField($wid,$field) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field = $field and master = 0"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getBuildingByField2($wid,$field) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field = $field and master = 0"; + $result = mysqli_query($this->connection, $q); + return mysqli_num_rows($result); + } + + function getBuildingByType($wid,$type) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and type = $type and master = 0"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getBuildingByType2($wid,$type) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and type = $type and master = 0"; + $result = mysqli_query($this->connection, $q); + return mysqli_num_rows($result); + } + + function getDorf1Building($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field < 19 and master = 0"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getDorf2Building($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "bdata where wid = $wid and field > 18 and master = 0"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function updateBuildingWithMaster($id, $time,$loop) { + $q = "UPDATE " . TB_PREFIX . "bdata SET master = 0, timestamp = ".$time.",loopcon = ".$loop." WHERE id = ".$id.""; + return mysqli_query($this->connection, $q); + } + + function getVillageByName($name) { + $q = "SELECT wref FROM " . TB_PREFIX . "vdata where name = '$name' limit 1"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 mysqli_query($this->connection, $q); + } + + /*************************** + 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)"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } else { + $q = "DELETE FROM " . TB_PREFIX . "send where id = $ref"; + return mysqli_query($this->connection, $q); + } + } + + /*************************** + 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 mysqli_query($this->connection, $q); + } else + if($gtype == 2) { + $q = "UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` + '$gamt' WHERE wref = $vref"; + return mysqli_query($this->connection, $q); + } else + if($gtype == 3) { + $q = "UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` + '$gamt' WHERE wref = $vref"; + return mysqli_query($this->connection, $q); + } else + if($gtype == 4) { + $q = "UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` + '$gamt' WHERE wref = $vref"; + return mysqli_query($this->connection, $q); + } + } + + /*************************** + 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 = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray[$field]; + } + + function removeAcceptedOffer($id) { + $q = "DELETE FROM " . TB_PREFIX . "market where id = $id"; + $result = mysqli_query($this->connection, $q); + return mysqli_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)"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } else { + $q = "DELETE FROM " . TB_PREFIX . "market where id = $gtype and vref = $vid"; + return mysqli_query($this->connection, $q); + } + } + + /*************************** + 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 = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + /*************************** + Function to get market offer + References: ID + ***************************/ + function getMarketInfo($id) { + $q = "SELECT * FROM " . TB_PREFIX . "market where id = $id"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_assoc($result); + } + + function setMovementProc($moveid) { + $q = "UPDATE " . TB_PREFIX . "movement set proc = 1 where moveid = $moveid"; + return mysqli_query($this->connection, $q); + } + + /*************************** + 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 = mysqli_query($this->connection, $q); + $row = mysqli_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 = mysqli_query($this->connection, $q2); + $row2 = mysqli_fetch_row($result2); + $q3 = "SELECT sum(merchant) from " . TB_PREFIX . "market where vref = $vid and accept = 0"; + $result3 = mysqli_query($q3, $this->connection); + $row3 = mysqli_fetch_row($result3); + return $row[0] + $row2[0] + $row3[0]; + } + + 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 1: + $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 = 6 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 7: + $q = "SELECT * FROM " . TB_PREFIX . "movement where " . TB_PREFIX . "movement." . $where . " = $village and sort_type = 4 and ref = 0 and proc = 0 ORDER BY endtime ASC"; + break; + case 8: + $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 and " . TB_PREFIX . "attacks.attack_type = 1 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 = mysqli_query($this->connection, $q); + $array = $this->mysqli_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')"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } + + function getA2b($ckey, $check) { + $q = "SELECT * from " . TB_PREFIX . "a2b where ckey = '" . $ckey . "' AND time_check = '" . $check . "'"; + $result = mysqli_query($this->connection, $q); + if($result) { + return mysqli_fetch_assoc($result); + } else { + return false; + } + } + + function addMovement($type, $from, $to, $ref, $time, $endtime, $send = 1, $wood = 0, $clay = 0, $iron = 0, $crop = 0, $ref2 = 0) { + $q = "INSERT INTO " . TB_PREFIX . "movement values (0,$type,$from,$to,$ref,$ref2,$time,$endtime,0,$send,$wood,$clay,$iron,$crop)"; + return mysqli_query($this->connection, $q); + } + + 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)"; + mysqli_query($this->connection, $q); + return mysqli_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 mysqli_query($this->connection, $q); + } + + function modifyAttack2($aid, $unit, $amt) { + $unit = 't' . $unit; + $q = "UPDATE " . TB_PREFIX . "attacks set $unit = $unit + $amt where id = $aid"; + return mysqli_query($this->connection, $q); + } + + 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 = mysqli_query($this->connection, $q); + return $this->mysqli_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 = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getARanking() { + $q = "SELECT id,name,tag,oldrank,Aap,Adp FROM " . TB_PREFIX . "alidata where id != '' ORDER BY id DESC"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getUserByTribe($tribe){ + $q = "SELECT * FROM " . TB_PREFIX . "users where tribe = $tribe"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getUserByAlliance($aid){ + $q = "SELECT * FROM " . TB_PREFIX . "users where alliance = $aid"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getHeroRanking() { + $q = "SELECT * FROM " . TB_PREFIX . "hero WHERE dead = 0"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_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, " . TB_PREFIX . "users.id desc"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getAllMember2($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, " . TB_PREFIX . "users.id desc LIMIT 1"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + function addUnits($vid) { + $q = "INSERT into " . TB_PREFIX . "units (vref) values ($vid)"; + return mysqli_query($this->connection, $q); + } + + function getUnit($vid) { + $q = "SELECT * from " . TB_PREFIX . "units where vref = $vid"; + $result = mysqli_query($this->connection, $q); + if (!empty($result)) { + return mysqli_fetch_assoc($result); + } else { + return NULL; + } + } + + function getUnitsNumber($vid) { + $q = "SELECT * from " . TB_PREFIX . "units where vref = $vid"; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_assoc($result); + $totalunits = 0; + $movingunits = $this->getVillageMovement($vid); + for($i=1;$i<=50;$i++){ + $totalunits += $dbarray['u'.$i]; + } + $totalunits += $dbarray['hero']; + $movingunits = $this->getVillageMovement($vid); + $reinforcingunits = $this->getEnforceArray($vid,1); + $owner = $this->getVillageField($vid,"owner"); + $ownertribe = $this->getUserField($owner,"tribe",0); + $start = ($ownertribe-1)*10+1; + $end = ($ownertribe*10); + for($i=$start;$i<=$end;$i++){ + $totalunits += $movingunits['u'.$i]; + $totalunits += $reinforcingunits['u'.$i]; + } + $totalunits += $movingunits['hero']; + $totalunits += $reinforcingunits['hero']; + return $totalunits; + } + + 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 = mysqli_query($this->connection, $q); + if (!empty($result)) { + return $this->mysqli_fetch_all($result); + } else { + return NULL; + } + } + + function getHeroField($uid,$field){ + $q = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = $uid"; + $result = mysqli_query($q,$this->connection); + return $this->mysqli_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 mysqli_query($this->connection, $q); + } + + function modifyHeroByOwner($column,$value,$uid,$mode=0) { + if(!$mode) { + $q = "UPDATE `".TB_PREFIX."hero` SET $column = $value WHERE uid = $uid"; + } elseif($mode=1) { + $q = "UPDATE `".TB_PREFIX."hero` SET $column = $column + $value WHERE uid = $uid"; + } else { + $q = "UPDATE `".TB_PREFIX."hero` SET $column = $column - $value WHERE uid = $uid"; + } + return mysqli_query($this->connection, $q); + } + + function modifyHeroXp($column,$value,$heroid) { + $q = "UPDATE ".TB_PREFIX."hero SET $column = $column + $value WHERE uid=$heroid"; + return mysqli_query($this->connection, $q); + } + + function addTech($vid) { + $q = "INSERT into " . TB_PREFIX . "tdata (vref) values ($vid)"; + return mysqli_query($this->connection, $q); + } + + function addABTech($vid) { + $q = "INSERT into " . TB_PREFIX . "abdata (vref) values ($vid)"; + return mysqli_query($this->connection, $q); + } + + function getABTech($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "abdata where vref = $vid"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_assoc($result); + } + + function addResearch($vid, $tech, $time) { + $q = "INSERT into " . TB_PREFIX . "research values (0,$vid,'$tech',$time)"; + return mysqli_query($this->connection, $q); + } + + function getResearching($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "research where vref = $vid"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function checkIfResearched($vref, $unit) { + $q = "SELECT $unit FROM " . TB_PREFIX . "tdata WHERE vref = $vref"; + $result = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray[$unit]; + } + + function getTech($vid) { + $q = "SELECT * from " . TB_PREFIX . "tdata where vref = $vid"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_assoc($result); + } + + function getTraining($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "training where vref = $vid ORDER BY id"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function countTraining($vid) { + $q = "SELECT * FROM " . TB_PREFIX . "training WHERE vref = $vid"; + $result = mysqli_query($this->connection, $q); + $row = mysqli_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,35,36,37,38,39,40,41,42,43,44); + $greatbarracks = array(61,62,63,71,72,73,84,81,82,91,92,93,94,95,96,97,98,99,100,101,102,103,104); + $stables = array(4,5,6,15,16,23,24,25,26,45,46); + $greatstables = array(64,65,66,75,76,83,84,85,86,105,106); + $workshop = array(7,8,17,18,27,28,47,48); + $greatworkshop = array(67,68,77,78,87,88,107,108); + $residence = array(9,10,19,20,29,30,49,50); + $trapper = array(99); + + 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); + } elseif(in_array($unit, $greatstables)) { + $queued = $technology->getTrainingList(6); + } elseif(in_array($unit, $greatbarracks)) { + $queued = $technology->getTrainingList(5); + } elseif(in_array($unit, $greatworkshop)) { + $queued = $technology->getTrainingList(7); + } elseif(in_array($unit, $trapper)) { + $queued = $technology->getTrainingList(8); + } + $now = time(); + + $uid = $this->getVillageField($vid, "owner"); + $artefact = count($this->getOwnUniqueArtefactInfo2($uid,5,3,0)); + $artefact1 = count($this->getOwnUniqueArtefactInfo2($vid,5,1,1)); + $artefact2 = count($this->getOwnUniqueArtefactInfo2($uid,5,2,0)); + if($artefact > 0){ + $time = $now+round(($time-$now)/2); + $each /= 2; + $each = round($each); + }else if($artefact1 > 0){ + $time = $now+round(($time-$now)/2); + $each /= 2; + $each = round($each); + }else if($artefact2 > 0){ + $time = $now+round(($time-$now)/4*3); + $each /= 4; + $each = round($each); + $each *= 3; + $each = round($each); + } + $foolartefact = $this->getFoolArtefactInfo(5,$vid,$uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $each *= $arte['effect2']; + }else{ + $each /= $arte['effect2']; + $each = round($each); + } + } + } + if($each == 0){ $each = 1; } + $time2 = $now+$each; + if(count($queued) > 0) { + $time += $queued[count($queued) - 1]['timestamp'] - $now; + $time2 += $queued[count($queued) - 1]['timestamp'] - $now; + } + if($queued[count($queued) - 1]['unit'] == $unit){ + $time = $amt*$queued[count($queued) - 1]['eachtime']; + $q = "UPDATE " . TB_PREFIX . "training SET amt = amt + $amt, timestamp = timestamp + $time WHERE id = ".$queued[count($queued) - 1]['id'].""; + }else{ + $q = "INSERT INTO " . TB_PREFIX . "training values (0,$vid,$unit,$amt,$pop,$time,$each,$time2)"; + } + } else { + $q = "DELETE FROM " . TB_PREFIX . "training where id = $vid"; + } + return mysqli_query($this->connection, $q); + } + + function updateTraining($id, $trained, $each) { + $q = "UPDATE " . TB_PREFIX . "training set amt = amt - $trained, timestamp2 = timestamp2 + $each where id = $id"; + return mysqli_query($this->connection, $q); + } + + 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 mysqli_query($this->connection, $q); + } + + function getEnforce($vid, $from) { + $q = "SELECT * from " . TB_PREFIX . "enforcement where `from` = $from and vref = $vid"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_assoc($result); + } + + function addEnforce($data) { + $q = "INSERT into " . TB_PREFIX . "enforcement (vref,`from`) values (" . $data['to'] . "," . $data['from'] . ")"; + mysqli_query($this->connection, $q); + $id = mysqli_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 mysqli_insert_id($this->connection); + } + + function addEnforce2($data,$tribe,$dead1,$dead2,$dead3,$dead4,$dead5,$dead6,$dead7,$dead8,$dead9,$dead10,$dead11) { + $q = "INSERT into " . TB_PREFIX . "enforcement (vref,`from`) values (" . $data['to'] . "," . $data['from'] . ")"; + mysqli_query($this->connection, $q); + $id = mysqli_insert_id($this->connection); + $owntribe = $this->getUserField($this->getVillageField($data['from'], "owner"), "tribe", 0); + $start = ($owntribe - 1) * 10 + 1; + $end = ($owntribe * 10); + $start2 = ($tribe - 1) * 10 + 1; + $start3 = ($tribe - 1) * 10; + if($start3 == 0){ + $start3 = ""; + } + $end2 = ($tribe * 10); + //add unit + $j = '1'; + for($i = $start; $i <= $end; $i++) { + $this->modifyEnforce($id, $i, $data['t' . $j . ''], 1); + $this->modifyEnforce($id, $i, ${dead.$j}, 0); + $j++; + } + $this->modifyEnforce($id,'hero',$data['t11'],1); + $this->modifyEnforce($id,'hero',$dead11,0); + return mysqli_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"; + } + mysqli_query($this->connection, $q); + } + + 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 = mysqli_query($this->connection, $q); + return mysqli_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 = mysqli_query($this->connection, $q); + return $this->mysqli_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 = mysqli_query($this->connection, $q); + if(mysqli_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 = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + 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 mysqli_query($this->connection, $q); + } + + //medal functions + function addclimberpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set Rc = Rc + '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + function addclimberrankpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set clp = clp + '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + function removeclimberrankpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set clp = clp - '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + function setclimberrankpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set clp = '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + function updateoldrank($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set oldrank = '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + function removeclimberpop($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "users set Rc = Rc - '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + // ALLIANCE MEDAL FUNCTIONS + function addclimberpopAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set Rc = Rc + '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + function addclimberrankpopAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set clp = clp + '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + function removeclimberrankpopAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set clp = clp - '$cp'' where id = $user"; + return mysqli_query($this->connection, $q); + } + function updateoldrankAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set oldrank = '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + function removeclimberpopAlly($user, $cp) { + $q = "UPDATE " . TB_PREFIX . "alidata set Rc = Rc - '$cp' where id = $user"; + return mysqli_query($this->connection, $q); + } + + function getTrainingList() { + $q = "SELECT * FROM " . TB_PREFIX . "training where vref != ''"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getNeedDelete() { + $time = time(); + $q = "SELECT uid FROM " . TB_PREFIX . "deleting where timestamp < $time"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function countUser() { + $q = "SELECT count(id) FROM " . TB_PREFIX . "users where id > 5"; + $result = mysqli_query($this->connection, $q); + $row = mysqli_fetch_row($result); + return $row[0]; + } + + function countAlli() { + $q = "SELECT count(id) FROM " . TB_PREFIX . "alidata where id != 0"; + $result = mysqli_query($this->connection, $q); + $row = mysqli_fetch_row($result); + return $row[0]; + } + + /*************************** + Function to process MYSQLi->fetch_all (Only exist in MYSQL) + References: Result + ***************************/ + function mysqli_fetch_all($result) { + $all = array(); + if($result) { + while($row = mysqli_fetch_assoc($result)) { + $all[] = $row; + } + return $all; + } + } + + function query_return($q) { + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + /*************************** + Function to do free query + References: Query + ***************************/ + function query($query) { + return mysqli_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 = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['wood']; + } + + function getClayAvailable($wref) { + $q = "SELECT clay FROM " . TB_PREFIX . "vdata WHERE wref = $wref"; + $result = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['clay']; + } + + function getIronAvailable($wref) { + $q = "SELECT iron FROM " . TB_PREFIX . "vdata WHERE wref = $wref"; + $result = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['iron']; + } + + function getCropAvailable($wref) { + $q = "SELECT crop FROM " . TB_PREFIX . "vdata WHERE wref = $wref"; + $result = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + return $dbarray['crop']; + } + + function Getowner($vid) { + $s = "SELECT owner FROM " . TB_PREFIX . "vdata where wref = $vid"; + $result1 = mysqli_query($s, $this->connection); + $row1 = mysqli_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(mysqli_query($this->connection, $q)) { + return mysqli_insert_id($this->connection); + } else { + return false; + } + } + + function populateOasisdata() { + $q2 = "SELECT * FROM " . TB_PREFIX . "wdata where oasistype != 0"; + $result2 = mysqli_query($this->connection, $q2); + 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,800,800,800,800,800,800," . time() . ",100,2,'Unoccupied Oasis',".rand(0,2).")"; + $result = mysqli_query($this->connection, $q); + } + } + + 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 = mysqli_query($this->connection, $q); + $row = mysqli_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 = mysqli_query($this->connection, $q); + $row = mysqli_fetch_row($result); + $settlers = $row[0]; + $q = "SELECT (u9+u19+u29) FROM " . TB_PREFIX . "units WHERE vref = $village->wid"; + $result = mysqli_query($this->connection, $q); + $row = mysqli_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 = mysqli_query($this->connection, $q); + $row = mysqli_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 = mysqli_query($this->connection, $q); + $row = mysqli_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`, `active`) VALUES ('$vref', '$owner', '$type', '$size', '" . time() . "', '$name', '$desc', '$effect', '$img', '0')"; + return mysqli_query($this->connection, $q); + } + + function getOwnArtefactInfo($vref) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + function getOwnArtefactInfo2($vref) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getOwnArtefactInfo3($uid) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE owner = $uid"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getOwnArtefactInfoByType($vref, $type) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref AND type = $type order by size"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + function getOwnArtefactInfoByType2($vref, $type) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vref AND type = $type"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getOwnUniqueArtefactInfo($id, $type, $size) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE owner = $id AND type = $type AND size=$size"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + function getOwnUniqueArtefactInfo2($id, $type, $size, $mode) { + if(!$mode){ + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE owner = $id AND active = 1 AND type = $type AND size=$size"; + }else{ + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $id AND active = 1 AND type = $type AND size=$size"; + } + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getFoolArtefactInfo($type,$vid,$uid) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = $vid AND type = 8 AND kind = $type OR owner = $uid AND size > 1 AND active = 1 AND type = 8 AND kind = $type"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function claimArtefact($vref, $ovref, $id) { + $time = time(); + $q = "UPDATE " . TB_PREFIX . "artefacts SET vref = $vref, owner = $id, conquered = $time, active = 1 WHERE vref = $ovref"; + return mysqli_query($this->connection, $q); + } + + public function canClaimArtifact($from,$vref,$type,$kind) { + $type2 = $type3 = 0; + if(count($this->getOwnUniqueArtefactInfo2($this->getVillagefield($from,"owner"),2,2,0)) > 0 && $type == 2){ + $type2 = 1; + } + if(count($this->getOwnUniqueArtefactInfo2($this->getVillagefield($from,"owner"),2,3,0)) > 0 && $type == 3){ + $type3 = 1; + } + if((count($this->getOwnArtefactInfo2($from)) < 3 && $type2 == 0 && $type3 == 0) or $kind == 11){ + $DefenderFields = $this->getResourceLevel($vref); + $defcanclaim = TRUE; + for($i=19;$i<=38;$i++) { + if($DefenderFields['f'.$i.'t'] == 27) { + $defTresuaryLevel = $DefenderFields['f'.$i]; + if($defTresuaryLevel > 0) { + $defcanclaim = FALSE; + } else { + $defcanclaim = TRUE; + } + } + } + $AttackerFields = $this->getResourceLevel($from); + 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 { + return FALSE; + } + } else if ($type == 2) { + if ($defcanclaim == TRUE && $accountartifact == TRUE) { + return TRUE; + } else { + return FALSE; + } + } else if ($type == 3) { + if ($defcanclaim == TRUE && $accountartifact == TRUE) { + return TRUE; + } else { + return FALSE; + } + } else { + return FALSE; + } + }else{ + return FALSE; + } + } + + function getArtefactDetails($id) { + $q = "SELECT * FROM " . TB_PREFIX . "artefacts WHERE id = " . $id . ""; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + function getMovementById($id){ + $q = "SELECT * FROM ".TB_PREFIX."movement WHERE moveid = ".$id.""; + $result = mysqli_query($q); + $array = $this->mysqli_fetch_all($result); + return $array; + } + + function getLinks($id){ + $q = 'SELECT * FROM `' . TB_PREFIX . 'links` WHERE `userid` = ' . $id . ' ORDER BY `pos` ASC'; + return mysqli_query($this->connection, $q); + } + + function removeLinks($id,$uid){ + $q = "DELETE FROM " . TB_PREFIX . "links WHERE `id` = ".$id." and `userid` = ".$uid.""; + return mysqli_query($this->connection, $q); + } + + function getVilFarmlist($wref){ + $q = 'SELECT * FROM ' . TB_PREFIX . 'farmlist WHERE wref = ' . $wref . ' ORDER BY wref ASC'; + $result = mysqli_query($this->connection, $q); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + + if($dbarray['id']!=0) { + return true; + } else { + return false; + } + + } + + function getRaidList($id) { + $q = "SELECT * FROM " . TB_PREFIX . "raidlist WHERE id = ".$id.""; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + function delFarmList($id, $owner) { + $q = "DELETE FROM " . TB_PREFIX . "farmlist where id = $id and owner = $owner"; + return mysqli_query($this->connection, $q); + } + + function delSlotFarm($id) { + $q = "DELETE FROM " . TB_PREFIX . "raidlist where id = $id"; + return mysqli_query($this->connection, $q); + } + + function createFarmList($wref, $owner, $name) { + $q = "INSERT INTO " . TB_PREFIX . "farmlist (`wref`, `owner`, `name`) VALUES ('$wref', '$owner', '$name')"; + return mysqli_query($this->connection, $q); + } + + function addSlotFarm($lid, $towref, $x, $y, $distance, $t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) { + $q = "INSERT INTO " . TB_PREFIX . "raidlist (`lid`, `towref`, `x`, `y`, `distance`, `t1`, `t2`, `t3`, `t4`, `t5`, `t6`, `t7`, `t8`, `t9`, `t10`) VALUES ('$lid', '$towref', '$x', '$y', '$distance', '$t1', '$t2', '$t3', '$t4', '$t5', '$t6', '$t7', '$t8', '$t9', '$t10')"; + return mysqli_query($this->connection, $q); + } + + function editSlotFarm($eid, $lid, $wref, $x, $y, $dist, $t1, $t2, $t3, $t4, $t5, $t6, $t7, $t8, $t9, $t10) { + $q = "UPDATE " . TB_PREFIX . "raidlist set lid = '$lid', towref = '$wref', x = '$x', y = '$y', t1 = '$t1', t2 = '$t2', t3 = '$t3', t4 = '$t4', t5 = '$t5', t6 = '$t6', t7 = '$t7', t8 = '$t8', t9 = '$t9', t10 = '$t10' WHERE id = $eid"; + return mysqli_query($this->connection, $q); + } + + 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 = mysqli_query($this->connection, $q); + $array = $this->mysqli_fetch_all($result); + return $array; + } + + function addPassword($uid, $npw, $cpw){ + $q = "REPLACE INTO `" . TB_PREFIX . "password`(uid, npw, cpw) VALUES ($uid, '$npw', '$cpw')"; + mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + } + + function resetPassword($uid, $cpw){ + $q = "SELECT npw FROM `" . TB_PREFIX . "password` WHERE uid = $uid AND cpw = '$cpw' AND used = 0"; + $result = mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + $dbarray = mysqli_fetch_array($result, MYSQLI_BOTH); + + 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"; + mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + return true; + } + + return false; + } + + function getCropProdstarv($wref) { + global $bid4,$bid8,$bid9,$sesion,$technology; + + $basecrop = $grainmill = $bakery = 0; + $owner = $this->getVrefField($wref, 'owner'); + $bonus = $this->getUserField($owner, b4, 0); + + $buildarray = $this->getResourceLevel($wref); + $cropholder = array(); + for($i=1;$i<=38;$i++) { + if($buildarray['f'.$i.'t'] == 4) { + array_push($cropholder,'f'.$i); + } + if($buildarray['f'.$i.'t'] == 8) { + $grainmill = $buildarray['f'.$i]; + } + if($buildarray['f'.$i.'t'] == 9) { + $bakery = $buildarray['f'.$i]; + } + } + $q = "SELECT type FROM `" . TB_PREFIX . "odata` WHERE conqured = $wref"; + $oasis = $this->query_return($q); + foreach($oasis as $oa){ + switch($oa['type']) { + case 1: + case 2: + $wood += 1; + break; + case 3: + $wood += 1; + $cropo += 1; + break; + case 4: + case 5: + $clay += 1; + break; + case 6: + $clay += 1; + $cropo += 1; + break; + case 7: + case 8: + $iron += 1; + break; + case 9: + $iron += 1; + $cropo += 1; + break; + case 10: + case 11: + $cropo += 1; + break; + case 12: + $cropo += 2; + break; + } + } + for($i=0;$i<=count($cropholder)-1;$i++) { $basecrop+= $bid4[$buildarray[$cropholder[$i]]]['prod']; } + $crop = $basecrop + $basecrop * 0.25 * $cropo; + if($grainmill >= 1 || $bakery >= 1) { + $crop += $basecrop /100 * ($bid8[$grainmill]['attri'] + $bid9[$bakery]['attri']); + } + if($bonus > time()) { + $crop *= 1.25; + } + $crop *= SPEED; + return $crop; + } + + //general statistics + + function addGeneralAttack($casualties) { + $time = time(); + $q = "INSERT INTO " . TB_PREFIX . "general values (0,'$casualties','$time',1)"; + return mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + } + + function getAttackByDate($time) { + $q = "SELECT * FROM " . TB_PREFIX . "general where shown = 1"; + $result = $this->query_return($q); + $attack = 0; + foreach($result as $general){ + if(date("j. M",$time) == date("j. M",$general['time'])){ + $attack += 1; + } + } + return $attack; + } + + function getAttackCasualties($time) { + $q = "SELECT * FROM " . TB_PREFIX . "general where shown = 1"; + $result = $this->query_return($q); + $casualties = 0; + foreach($result as $general){ + if(date("j. M",$time) == date("j. M",$general['time'])){ + $casualties += $general['casualties']; + } + } + return $casualties; + } + + //end general statistics + + function addFriend($uid, $column, $friend) { + $q = "UPDATE " . TB_PREFIX . "users SET $column = $friend WHERE id = $uid"; + return mysqli_query($this->connection, $q); + } + + function deleteFriend($uid, $column) { + $q = "UPDATE " . TB_PREFIX . "users SET $column = 0 WHERE id = $uid"; + return mysqli_query($this->connection, $q); + } + + function checkFriends($uid) { + $user = $this->getUserArray($uid, 1); + for($i=0;$i<=19;$i++) { + if($user['friend'.$i] == 0 && $user['friend'.$i.'wait'] == 0){ + for($j=$i+1;$j<=19;$j++) { + $k = $j-1; + if($user['friend'.$j] != 0){ + $friend = $this->getUserField($uid, "friend".$j, 0); + $this->addFriend($uid,"friend".$k,$friend); + $this->deleteFriend($uid,"friend".$j); + } + if($user['friend'.$j.'wait'] == 0){ + $friendwait = $this->getUserField($uid, "friend".$j."wait", 0); + $this->addFriend($sessionuid,"friend".$k."wait",$friendwait); + $this->deleteFriend($uid,"friend".$j."wait"); + } + } + } + } + } + + function setVillageEvasion($vid) { + $village = $this->getVillage($vid); + if($village['evasion'] == 0){ + $q = "UPDATE " . TB_PREFIX . "vdata SET evasion = 1 WHERE wref = $vid"; + }else{ + $q = "UPDATE " . TB_PREFIX . "vdata SET evasion = 0 WHERE wref = $vid"; + } + return mysqli_query($this->connection, $q); + } + + function addPrisoners($wid,$from,$t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10,$t11) { + $q = "INSERT INTO " . TB_PREFIX . "prisoners values (0,$wid,$from,$t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10,$t11)"; + mysqli_query($this->connection, $q); + return mysqli_insert_id($this->connection); + } + + function updatePrisoners($wid,$from,$t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10,$t11) { + $q = "UPDATE " . TB_PREFIX . "prisoners set t1 = t1 + $t1, t2 = t2 + $t2, t3 = t3 + $t3, t4 = t4 + $t4, t5 = t5 + $t5, t6 = t6 + $t6, t7 = t7 + $t7, t8 = t8 + $t8, t9 = t9 + $t9, t10 = t10 + $t10, t11 = t11 + $t11 where wid = $wid and from = $from"; + return mysqli_query($this->connection, $q) or die('Connect Error (' . mysqli_connect_errno() . ') '. mysqli_connect_error()); + } + + function getPrisoners($wid) { + $q = "SELECT * FROM " . TB_PREFIX . "prisoners where wref = $wid"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getPrisoners2($wid,$from) { + $q = "SELECT * FROM " . TB_PREFIX . "prisoners where wref = $wid and " . TB_PREFIX . "prisoners.from = $from"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function getPrisonersByID($id) { + $q = "SELECT * FROM " . TB_PREFIX . "prisoners where id = $id"; + $result = mysqli_query($this->connection, $q); + return mysqli_fetch_array($result, MYSQLI_BOTH); + } + + function getPrisoners3($from) { + $q = "SELECT * FROM " . TB_PREFIX . "prisoners where " . TB_PREFIX . "prisoners.from = $from"; + $result = mysqli_query($this->connection, $q); + return $this->mysqli_fetch_all($result); + } + + function deletePrisoners($id) { + $q = "DELETE from " . TB_PREFIX . "prisoners where id = '$id'"; + mysqli_query($this->connection, $q); + } +}; + +$database = new MYSQLi_DB; + +?> diff --git a/GameEngine/Form.php b/GameEngine/Form.php new file mode 100644 index 00000000..69c22939 --- /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..91c888bb --- /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..94f90425 --- /dev/null +++ b/GameEngine/Generator.php @@ -0,0 +1,165 @@ +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 && $distance >= TS_THRESHOLD) { + $speed = $speed * ($bid14[$building->gettypeLevel(14)]['attri']/100) ; + } + } + if($speed!=0){ + return round(($distance/$speed) * 3600 / INCREASE_SPEED); + }else{ + return round($distance * 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; \ No newline at end of file diff --git a/GameEngine/Lang/en.php b/GameEngine/Lang/en.php new file mode 100644 index 00000000..892d7a21 --- /dev/null +++ b/GameEngine/Lang/en.php @@ -0,0 +1,374 @@ +Plus"); +define("CONTACT","Contact us!"); +define("GAME_RULES","Game Rules"); + +//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."); +define("REGISTER_CLOSED","The register is closed. You can't register to this server."); +define("NAME_EMPTY","Please insert name"); +define("NAME_NO_EXIST","There is no user with the name "); +define("ID_NO_EXIST","There is no user with the id "); +define("SAME_NAME","You can't invite yourself"); +define("ALREADY_INVITED"," already invited"); +define("ALREADY_IN_ALLY"," already in this alliance"); + +//COPYRIGHT +define("TRAVIAN_COPYRIGHT","TravianZ 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 woodcutter 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/.htaccess b/Templates/Build/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Build/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/Build/1.tpl b/Templates/Build/1.tpl new file mode 100644 index 00000000..535619a7 --- /dev/null +++ b/Templates/Build/1.tpl @@ -0,0 +1,53 @@ + +
    +

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

    +

    + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($village->capital == 1) { + if($next<=20){ + ?> + + + + + + + + + + + + + + + + + + + + +
    :resarray['f'.$id]]['prod']* SPEED; ?>
    :
    :
    :
    :
    + +

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

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Current capacity:resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?> Resource units
    Capacity at level : Resource unitsCapacity at level 20: Resource units
    + +

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

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Current capacity:resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?> Crop units
    Capacity at level : Crop unitsCapacity at level 20: Crop 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..2d6e4ec7 --- /dev/null +++ b/Templates/Build/14.tpl @@ -0,0 +1,37 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Current speed bonus:resarray['f'.$id]]['attri']; ?> Percent
    Speed bonus at level : PercentSpeed bonus at level 20: Percent
    + +

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

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Current construction time:resarray['f'.$id]]['attri']); ?> Percent
    Construction time at level : PercentConstruction time at level 20: 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..03d8edb0 --- /dev/null +++ b/Templates/Build/15_1.tpl @@ -0,0 +1,56 @@ +access != BANNED){ + $database->delDemolition($village->wid); + header("Location: build.php?gid=15&cancel=0&demolish=0"); +}else{ +header("Location: banned.php"); +} +} + +if(!empty($_REQUEST["demolish"]) && $_REQUEST["c"] == $session->mchecker) { +if($session->access != BANNED){ + if($_REQUEST["type"] != null) { + $type = $_REQUEST['type']; + $database->addDemolition($village->wid,$type); + $session->changeChecker(); + header("Location: build.php?gid=15&cancel=0&demolish=0"); + } +}else{ +header("Location: banned.php"); +} +} + +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()).""; + if($session->gold >= 2) { + if($session->access!=BANNED){ + ?> Finish all construction and research orders in this village immediately for 2 Gold? + Finish all construction and research orders in this village immediately for 2 Gold? + "; + } 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..fed0716d --- /dev/null +++ b/Templates/Build/16.tpl @@ -0,0 +1,249 @@ +
    +

    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.

    + +
    + Overview | + Send troops | + Combat Simulator goldclub==1){ ?>| + Gold Club + +
    +getMovement("34",$village->wid,1); +$settlers = $database->getMovement("7",$village->wid,1); +$units_incoming = count($units_type); +$settlers_incoming = count($settlers); +for($i=0;$i<$units_incoming;$i++){ + if($units_type[$i]['attack_type'] == 1 && $units_type[$i]['sort_type'] == 3) + $units_incoming -= 1; +} +if($units_incoming > 0 or $settlers_incoming > 0){ +?> +

    Incoming troops ()

    + + +

    Troops in the village

    + + + + + + +
    vname; ?>"> + Own troops
    + + enforcetome) > 0) { + foreach($village->enforcetome as $enforce) { + $colspan = 10+$enforce['hero']; + if($enforce['from']!=0){ + 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 ""; + } + if($enforce['hero']!=0){ + echo ""; + } + echo ""; + for($i=$start;$i<=($start+9);$i++) { + if($enforce['u'.$i] == 0) { + echo ""; + } + if($enforce['hero']!=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)."\" />\"Hero\"
    Troops"; + } + else { + echo ""; + } + echo $enforce['u'.$i]."".$enforce['hero']."
    Upkeep
    ".$technology->getUpkeep($enforce,$tribe)."\"Crop\"per hour
    "; + }else{ + echo " + "; + $tribe = 4; + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + if($enforce['hero']!=0){ + echo ""; + } + echo ""; + for($i=$start;$i<=($start+9);$i++) { + if($enforce['u'.$i] == 0) { + echo ""; + } + if($enforce['hero']!=0){ + echo ""; + } + echo " + "; + + echo "
    + Taskmaster"; + echo " village of the elders troops"; + echo "
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
    Troops"; + } + else { + echo ""; + } + echo $enforce['u'.$i]."".$enforce['hero']."
    Upkeep
    ".$technology->getUpkeep($enforce,$tribe)."\"Crop\"per hour
    Send back
    "; + } + } + } + if(count($village->enforcetoyou) > 0) { + echo "

    Troops in other village

    "; + foreach($village->enforcetoyou as $enforce) { + $colspan = 10+$enforce['hero']; + 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 ""; + } + if($enforce['hero']!=0){ + echo ""; + } + echo ""; + for($i=$start;$i<=($start+9);$i++) { + if($enforce['u'.$i] == 0) { + echo ""; + } + if($enforce['hero']!=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)."\" />\"Hero\"
    Troops"; + } + else { + echo ""; + } + echo $enforce['u'.$i]."".$enforce['hero']."
    Upkeep
    ".$technology->getUpkeep($enforce,$tribe)."\"Crop\"per hour
    "; + } + } + if(count($database->getPrisoners3($village->wid)) > 0) { + echo "

    Prisoners

    "; + foreach($database->getPrisoners3($village->wid) as $prisoners) { + $colspan = 10+$prisoners['t11']; + echo " + "; + $tribe = $database->getUserField($database->getVillageField($prisoners['from'],"owner"),"tribe",0); + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + if($prisoners['t11']!=0){ + echo ""; + } + echo ""; + for($i=1;$i<=10;$i++) { + if($prisoners['t'.$i] == 0) { + echo ""; + } + if($prisoners['t11']!=0){ + echo ""; + } + echo " + "; + + echo "
    + getMapCheck($prisoners['wref'])."\">".$database->getVillageField($prisoners['wref'],"name").""; + echo "getMapCheck($prisoners['wref'])."\">prisoners in ".$database->getVillageField($prisoners['wref'],"name").""; + echo "
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
    Troops"; + } + else { + echo ""; + } + echo $prisoners['t'.$i]."".$prisoners['t11']."
    Upkeep
    ".$technology->getUpkeep($prisoners,$tribe,0,1)."\"Crop\"per hour
    "; + } + } + if(count($database->getPrisoners($village->wid)) > 0) { + echo "

    Prisoners

    "; + foreach($database->getPrisoners($village->wid) as $prisoners) { + $colspan = 10+$prisoners['t11']; + $colspan2 = 11+$prisoners['t11']; + echo " + "; + $tribe = $database->getUserField($database->getVillageField($prisoners['from'],"owner"),"tribe",0); + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + if($prisoners['t11']!=0){ + echo ""; + } + echo ""; + for($i=1;$i<=10;$i++) { + if($prisoners['t'.$i] == 0) { + echo ""; + } + if($prisoners['t11']!=0){ + echo ""; + } + echo " + "; + + echo "
    + getMapCheck($prisoners['from'])."\">".$database->getVillageField($prisoners['from'],"name").""; + echo "getMapCheck($prisoners['from'])."\">prisoners from ".$database->getVillageField($prisoners['from'],"name").""; + echo "
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
    Troops"; + } + else { + echo ""; + } + echo $prisoners['t'.$i]."".$prisoners['t11']."
    \"Crop\"
    "; + } + } + ?> + +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_99.tpl b/Templates/Build/16_99.tpl new file mode 100644 index 00000000..0d604d11 --- /dev/null +++ b/Templates/Build/16_99.tpl @@ -0,0 +1,78 @@ +goldclub) { + include "Templates/Build/16.tpl"; + }else{ +?> +
    +

    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.

    + +
    + Overview | + Send troops | + Combat Simulator goldclub==1){ ?>| + Gold Club + +
    + +
    + +
    +
    + + + + + + + + + + + + + + + + + + + villages)-1;$i++) { + $wref = $session->villages[$i]; + $vname = $database->getVillageField($wref,"name"); + $vchecked = $database->getVillageField($wref,"evasion"); + $reinf = $database->getEnforceVillage($wref,0); + if($vchecked == 1){ $checked = 'checked'; }else{ $checked = ''; } + ?> + + + + + + + + + + getUserArray($session->uid, 1); + ?> + +
    evasion settings
    villageown troopsreinforcement
    >getUnitsNumber($wref); ?>
    +
    +
    + + Send troops away a maximun of times + (costs: Gold2 per evasion) + + + +

    + + + +
    + \ No newline at end of file diff --git a/Templates/Build/16_incomming.tpl b/Templates/Build/16_incomming.tpl new file mode 100644 index 00000000..320a8986 --- /dev/null +++ b/Templates/Build/16_incomming.tpl @@ -0,0 +1,276 @@ +getMovement("34",$village->wid,1); +$total_for = count($units); +$send = $database->getMovement("1",$village->wid,1); +$total_for2 = count($send); +for($y=0;$y < $total_for;$y++){ +for($i=0;$i < $total_for2;$i++){ +if($units[$y]['ref'] == $send[$i]['ref2']){ +$res1 = mysql_query("SELECT * FROM " . TB_PREFIX . "send where id = ".$send[$i]['ref'].""); +$res = mysql_fetch_array($res1); +} +} +$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 "; + } + $reinfowner = $database->getVillageField($units[$y]['from'],"owner"); + if($units[$y]['attack_type'] != 1){ + if($units[$y]['from'] != 0){ + if($units[$y]['t11'] != 0 && $reinfowner == $session->uid) { + $colspan = 11; + }else{ + $colspan = 10; + } + 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 ""; + } + if($units[$y]['t11'] != 0 && $reinfowner == $session->uid) { + echo ""; + } + echo ""; + for($i=1;$i<=$colspan;$i++) { + $totalunits = $units[$y]['t1']+$units[$y]['t2']+$units[$y]['t3']+$units[$y]['t4']+$units[$y]['t5']+$units[$y]['t6']+$units[$y]['t7']+$units[$y]['t8']+$units[$y]['t9']+$units[$y]['t10']+$units[$y]['t11']; + if($units[$y]['attack_type'] == 2){ + if($reinfowner != $session->uid){ + echo ""; + }else{ + + + if($units[$y]['t'.$i] == 0) { + echo ""; + } + else { + echo ""; + } + }}else{ + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,3,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,3,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,3,2,0)); + $total_artefact = $artefact + $artefact1 + $artefact2; + if($totalunits > $building->getTypeLevel(16) && $total_artefact == 0){ + 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)."\" />\"Hero\"
    Troops?0"; + echo $units[$y]['t'.$i]."?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]." hours
    + +
    "; + }else{ + echo " + "; + $tribe = $session->tribe; + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + echo ""; + for($i=1;$i<=10;$i++) { + echo ""; + } + echo ""; + echo ' + + + + + + "; + echo "
    + village of the elders"; + echo "Taskmaster's troops"; + echo "
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
    Troops?
    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 ""; + } + ?> + + + 0"; + } + else { + echo ""; + } + } + ?> + + + + + + + + + + + + + +
    vname; ?>">
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />\"Hero\"
    Troops"; + echo $units[$y]['t'.$i]."
    Bounty"> + \"Lumber\"".$res['wood']."\"Clay\"".$res['clay']."\"Iron\"".$res['iron']."\"Crop\"".$res['crop'].""; + echo "
    \"carry\"".$totalres."/".$totalcarry."
    "; + ?> +
    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("7",$village->wid,1); +$total_for3 = count($settlers); +for($x=0;$x < $total_for3;$x++){ +$timer = $x+1; +$to = $database->getMInfo($settlers[$x]['to']); +?> + + + + + + + + + tribe; + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + echo ""; + for($i=$start;$i<=($end);$i++) { + echo ""; + } + ?> + + + 0"; + } + else { + echo ""; + } + } + ?> + + + + + + + + +
    vname; ?>
     getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />
    Troops"; + echo $settlers[$x]['t'.$i]."
    Arrival + ".$generator->getTimeFormat($settlers[$x]['endtime']-time())." h"; + $datetime = $generator->procMtime($settlers[$x]['endtime']); + echo "
    "; + if($datetime[0] != "today") { + echo "on ".$datetime[0]." "; + } + echo "at ".$datetime[1]."
    "; + ?> + +
    + \ No newline at end of file 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..bfb0cb4b --- /dev/null +++ b/Templates/Build/16_walking.tpl @@ -0,0 +1,155 @@ +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]."
    "; + if (($units[$y]['starttime']+90)>time()){ + ?> + + + +
    + + + 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 ""; + } + ?> + + + 0"; + } + 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]."
    "; + if (($units[$y]['starttime']+90)>time()){ + ?> + + + +
    + diff --git a/Templates/Build/17.tpl b/Templates/Build/17.tpl new file mode 100644 index 00000000..558232d7 --- /dev/null +++ b/Templates/Build/17.tpl @@ -0,0 +1,299 @@ +
    +

    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. +

    + + + + +getVilWref($_POST['x'],$_POST['y']); + $checkexist = $database->checkVilExist($getwref); +} +else if($_POST['dname']!=""){ + $getwref = $database->getVillageByName($_POST['dname']); + $checkexist = $database->checkVilExist($getwref); +} +if($checkexist){ +$villageOwner = $database->getVillageField($getwref,'owner'); +$userAccess = $database->getUserField($villageOwner,'access',0); +} +$maxcarry = $market->maxcarry; +$maxcarry *= $market->merchantAvail(); +if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST['x']!="" && $_POST['y']!="" or $_POST['dname']!="") && $checkexist){ +?> +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Lumber Wood / maxcarry; ?>
    Clay Clay / maxcarry; ?>
    Iron Iron + / maxcarry; ?>
    Crop Wheat + / maxcarry; ?>
    + + + + getVilWref($_POST['x'],$_POST['y']); + $getvilname = $database->getVillageField($getwref, "name"); + $getvilowner = $database->getVillageField($getwref, "owner"); + $getvilcoor['y'] = $_POST['y']; + $getvilcoor['x'] = $_POST['x']; + $time = $generator->procDistanceTime($getvilcoor,$village->coor,$session->tribe,0); + } + else if($_POST['dname']!=""){ + $getwref = $database->getVillageByName($_POST['dname']); + $getvilcoor = $database->getCoor($getwref); + $getvilname = $database->getVillageField($getwref, "name"); + $getvilowner = $database->getVillageField($getwref, "owner"); + $time = $generator->procDistanceTime($getvilcoor,$village->coor,$session->tribe,0); + } + ?> + + + + + + + + + + + + + + + + + + + +
    Coordinates:(|)
    Player:getUserField($getvilowner,username,0); ?>
    duration:getTimeFormat($time); ?>
    Merchants:maxcarry); ?>
    +
    + +
    +

    +

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

    + +
    + + + + + + + + + + + + + + + + + + + + + + +
    + 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: +
    +
    +goldclub == 1){?> +

    go

    + + + +

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

    +No Coordinates selected'; + }elseif($getwref == $village->wid){ + $error = 'You cannot send resources to the same village'; + }elseif($userAccess == '0' or $userAccess == '8' or $userAccess == '9'){ + $error = 'Player is Banned. You cannot send resources to him.'; + }elseif($_POST['r1']==0 && $_POST['r2']==0 && $_POST['r3']==0 && $_POST['r4']==0){ + $error = 'Resources not selected.'; + }elseif(!$_POST['x'] && !$_POST['y'] && !$_POST['dname']){ + $error = 'Enter coordinates or village name.'; + }elseif($allres > $maxcarry){ + $error = 'Too few merchants.'; + } + echo $error; +} +?> +

    + +

    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..f747008d --- /dev/null +++ b/Templates/Build/17_2.tpl @@ -0,0 +1,118 @@ +
    +

    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"; + } + ?> +
    + + Not enough resources

    "; + } + elseif(isset($_GET['e2'])) + { + echo "

    Invalid offer

    "; + } + elseif(isset($_GET['e3'])) + { + echo "

    Not enough merchants

    "; + } + else + { + echo "

    Merchants: ".$market->merchantAvail()."/".$market->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..81cf171f --- /dev/null +++ b/Templates/Build/17_3.tpl @@ -0,0 +1,271 @@ +gold > 2){ ?> +
    +

    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.

    + + + + +
    + + + + getResourceLevel($village->wid); + if($wwvillage['f99t']!=40){ + ?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    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_4.tpl b/Templates/Build/17_4.tpl new file mode 100644 index 00000000..da00b854 --- /dev/null +++ b/Templates/Build/17_4.tpl @@ -0,0 +1,75 @@ +goldclub == 1 && count($database->getProfileVillages($session->uid)) > 1) { ?> +
    +

    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. +

    + +gold > 1){ +$routeaccess = 1; +include("17_create.tpl"); +}else if($_GET['action'] == 'editRoute' && isset($_GET['routeid']) && $_GET['routeid'] != ""){ +$traderoute = $database->getTradeRouteUid($_GET['routeid']); +if($traderoute == $session->uid){ +include("17_edit.tpl"); +} +}else{ +?> + +

    Trade route allows you to set up routes for your merchant that he will walk every day at a certain hour.

    +Standard this holds on for 7 days, but you can extend it with 7 days for the cost of Gold2.

    + + + + + + + + + + +getTradeRoute($session->uid); + if(count($routes) == 0) { + echo ""; + }else{ +foreach($routes as $route){ +?> + + + + + + + + + + +
    descriptionstartMerchantstime left
    No active trade routes.
    +getMapCheck($route['wid']).">".$database->getVillageField($route['wid'],"name").""; +?> + 9){ echo $route['start'];}else{ echo "0".$route['start'];} echo ":00"; ?>
    + + + extend* + | edit + | delete +
    + * Extend the trade route by 7 days for Gold2 +
    + +
    + diff --git a/Templates/Build/17_create.tpl b/Templates/Build/17_create.tpl new file mode 100644 index 00000000..d9d02bba --- /dev/null +++ b/Templates/Build/17_create.tpl @@ -0,0 +1,78 @@ +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Create trade route
    + target village: + + +
    + Resources: + Lumber Clay Iron Crop +
    + start time: + +
    + deliveries: + +
    + costs: + Gold 2 +
    + Duration: + 7 days +
    + +
    +
    +

    +
    + \ No newline at end of file diff --git a/Templates/Build/17_edit.tpl b/Templates/Build/17_edit.tpl new file mode 100644 index 00000000..393578d2 --- /dev/null +++ b/Templates/Build/17_edit.tpl @@ -0,0 +1,40 @@ +getTradeRoute2($_GET['routeid']); ?> +
    +
    + + + + + + + + + + + + + + + + + + + + + +
    Edit trade route
    + Resources: + Lumber Clay Iron Crop +
    + start time: + +
    + deliveries: + +
    + +
    +
    +

    +
    + \ 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..ffce793f --- /dev/null +++ b/Templates/Build/17_menu.tpl @@ -0,0 +1,17 @@ +
    + ">Send Resouces + | >Buy + | >Offer + userinfo['gold'] > 2) { + ?> + | >NPC trading + + goldclub == 1 && count($database->getProfileVillages($session->uid)) > 1) { + ?> + | >trade routes + +
    \ No newline at end of file diff --git a/Templates/Build/18.tpl b/Templates/Build/18.tpl new file mode 100644 index 00000000..757af1b6 --- /dev/null +++ b/Templates/Build/18.tpl @@ -0,0 +1,66 @@ +
    +

    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 if($village->resarray['f'.$id] >= 1) { + ?> + + + + + + + + + + gotInvite) { + foreach($alliance->inviteArray as $invite) { + echo " + + "; + } + } + else { + echo ""; + } + ?> +
    join alliance
    \"refuse\" ".$database->getAllianceName($invite['alliance'])." accept
    There are no invitations available.
    + gotInvite) { + echo "

    ".$form->getError("ally_accept")."

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

    diff --git a/Templates/Build/18_create.tpl b/Templates/Build/18_create.tpl new file mode 100644 index 00000000..085997b2 --- /dev/null +++ b/Templates/Build/18_create.tpl @@ -0,0 +1,59 @@ +access!=BANNED){ ?> + + + + + + + + + + + + + + + + +
    found alliance
    Tag + " maxlength="15"> + getError("ally1"); ?> + +
    Name + " maxlength="50"> + 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..127054c8 --- /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['timestamp2']-time()); + echo "".$generator->getTimeFormat($train['timestamp']-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['timestamp']); + 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..4b73bc4d --- /dev/null +++ b/Templates/Build/19_train.tpl @@ -0,0 +1,85 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } + if($session->tribe != 4){ + for ($i=($session->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=round(${'u'.$i}['time'] * ($bid19[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); +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).")"; + } + } + }else{ + for ($i=31;$i<=40;$i++) { + +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=round(${'u'.$i}['time'] * ($bid19[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); +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..755674b3 --- /dev/null +++ b/Templates/Build/2.tpl @@ -0,0 +1,55 @@ + +
    +

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

    +

    + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($village->capital == 1) { + if($next<=20){ + ?> + + + + + + + + + + + + + + + + + + + + +
    :resarray['f'.$id]]['prod']* SPEED; ?>
    :
    :
    :
    :
    + +

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

    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 != 4){ + include("20_".$session->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['timestamp2']-time()); + echo "".$generator->getTimeFormat($train['timestamp']-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['timestamp']); + 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..3fd2a88c --- /dev/null +++ b/Templates/Build/20_1.tpl @@ -0,0 +1,62 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } +$success = 0; +for($i=4;$i<=6;$i++) { + if($technology->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\""; +} + $dur=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) * ($building->getTypeLevel(41)>=1?(1/$bid41[$building->getTypeLevel(41)]['attri']):1) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); + 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
    "; +} +?> diff --git a/Templates/Build/20_2.tpl b/Templates/Build/20_2.tpl new file mode 100644 index 00000000..b681cb87 --- /dev/null +++ b/Templates/Build/20_2.tpl @@ -0,0 +1,57 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } +$success = 0; +for($i=15;$i<=16;$i++) { + if($technology->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=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); + 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..76380b6a --- /dev/null +++ b/Templates/Build/20_3.tpl @@ -0,0 +1,57 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } +$success = 0; +for($i=23;$i<=26;$i++) { + if($technology->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=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); + 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_4.tpl b/Templates/Build/20_4.tpl new file mode 100644 index 00000000..e176a58f --- /dev/null +++ b/Templates/Build/20_4.tpl @@ -0,0 +1,57 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } +$success = 0; +for($i=35;$i<=36;$i++) { + if($technology->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=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); + 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_5.tpl b/Templates/Build/20_5.tpl new file mode 100644 index 00000000..ae672c1f --- /dev/null +++ b/Templates/Build/20_5.tpl @@ -0,0 +1,54 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } +$success = 0; +for($i=45;$i<=46;$i++) { + if($technology->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=round(${'u'.$i}['time'] * ($bid20[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); + echo ($dur=="0:00:00")? "0:00:01":$dur; + 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..2e9fb4fd --- /dev/null +++ b/Templates/Build/21.tpl @@ -0,0 +1,138 @@ +
    + +

    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) { ?> + +
    + + + + + + + + + + + + getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } + $success = 0; + $start = ($session->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 == 5){ + $start = 47; + } + if($session->tribe != 4){ + 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\""; + $dur=round(${'u'.$i}['time'] * ($bid21[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); + 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).") +
    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['timestamp2']-time()); + echo "".$generator->getTimeFormat($train['timestamp']-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['timestamp']); + 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_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/22_5.tpl b/Templates/Build/22_5.tpl new file mode 100644 index 00000000..7f632f8f --- /dev/null +++ b/Templates/Build/22_5.tpl @@ -0,0 +1,143 @@ + + + + + + + +grabAcademyRes(); +for($i=42;$i<=49;$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 { + 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
    There are no researches avaliable
    + 0) { + echo "

    show more

    + + "; + if(!$technology->meetRRequirement(43) && !$technology->getTech(43)) { + echo""; + } + if(!$technology->meetRRequirement(44) && !$technology->getTech(44)) { + echo ""; + } + if(!$technology->meetRRequirement(45) && !$technology->getTech(45)) { + echo ""; + } + if(!$technology->meetRRequirement(46) && !$technology->getTech(46)) { + echo ""; + } + if(!$technology->meetRRequirement(47) && !$technology->getTech(47)) { + echo " + "; + } + if(!$technology->meetRRequirement(48) && !$technology->getTech(48)) { + echo " + "; + } + if(!$technology->meetRRequirement(49) && !$technology->getTech(49)) { + 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..9b07674b --- /dev/null +++ b/Templates/Build/23.tpl @@ -0,0 +1,83 @@ +getOwnUniqueArtefactInfo2($session->uid,7,3,0)); + $artefact1_2 = count($database->getOwnUniqueArtefactInfo2($village->wid,7,1,1)); + $artefact2_2 = count($database->getOwnUniqueArtefactInfo2($session->uid,7,2,0)); + if($artefact_2 > 0){ + $artefact_bouns = 6; + }else if($artefact1_2 > 0){ + $artefact_bouns = 3; + }else if($artefact2_2 > 0){ + $artefact_bouns = 2; + }else{ + $artefact_bouns = 1; + } + $good_effect = $bad_effect = 1; + $foolartefact = $database->getFoolArtefactInfo(7,$village->wid,$seesion->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $bad_effect = $arte['effect2']; + }else{ + $good_effect = $arte['effect2']; + } + } + } +?> +
    +

    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 == 3) { + ?> + + + + + + +isMax($village->resarray['f'.$id.'t'],$id)) { + if($next<=10){ + ?> + +tribe == 3) { + ?> + + + + + +tribe == 3) { + ?> + + + + + +
    Currently hidden units per resource:resarray['f'.$id]]['attri']*2*CRANNY_CAPACITY; ?> unitsresarray['f'.$id]]['attri']*CRANNY_CAPACITY; ?> units
    Hidden units per resource at level resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:resarray['f'.$id]+1+$loopsame+$doublebuild+$master]['attri']*2*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?> unitsresarray['f'.$id]+1+$loopsame+$doublebuild+$master]['attri']*CRANNY_CAPACITY*$artefact_bouns*$good_effect/$bad_effect; ?> unitsHidden units per resource at level 20: units 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..ed3152c8 --- /dev/null +++ b/Templates/Build/25_2.tpl @@ -0,0 +1,28 @@ +

    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.

    + + + + +getVillageField($village->wid, 'natar') == 0){ ?> + + + + + + + + + +
    Production of this village:getVillageField($village->wid, 'cp'); ?> Culture points per day0 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..44c9397a --- /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['timestamp2']-time()); + echo "".$generator->getTimeFormat($train['timestamp']-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['timestamp']); + 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..f35cc971 --- /dev/null +++ b/Templates/Build/25_train.tpl @@ -0,0 +1,88 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } +################################################################################# +## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## +## --------------------------------------------------------------------------- ## +## Filename 25_train.tpl ## +## Made by: Dzoki ## +## License: TravianX Project ## +## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## ## +################################################################################# + + $slots = $database->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 && $session->tribe != 4) { + $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\""; +$dur=round(${'u'.$i}['time'] * ($bid25[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); +echo ($dur=="0:00:00")? "0:00:01":$dur; + 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..b8cfacd8 --- /dev/null +++ b/Templates/Build/26.tpl @@ -0,0 +1,97 @@ + 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()); + } + } + + for($i=19; $i<=40; ++$i) { + if($data2['f' . $i . 't'] == 29 or $data2['f' . $i . 't'] == 30 or $data2['f' . $i . 't'] == 38 or $data2['f' . $i . 't'] == 39 or $data2['f' . $i . 't'] == 42) { + $query3 = mysql_query('UPDATE `' . TB_PREFIX . 'fdata` SET `f' . $i . 't` = 0, `f' . $i . '` = 0 WHERE `vref` = ' . $village->wid) 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); + } + } 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..fc48eed7 --- /dev/null +++ b/Templates/Build/26_2.tpl @@ -0,0 +1,27 @@ +

    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.

    + + + +getVillageField($village->wid, 'natar') == 0){ ?> + + + + + + + + + +
    Production of this village:getVillageField($village->wid, 'cp'); ?> Culture points per day0 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..44c9397a --- /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['timestamp2']-time()); + echo "".$generator->getTimeFormat($train['timestamp']-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['timestamp']); + 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..c79ddb3c --- /dev/null +++ b/Templates/Build/26_train.tpl @@ -0,0 +1,88 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } +################################################################################# +## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## +## --------------------------------------------------------------------------- ## +## Filename 26_train.tpl ## +## Made by: Dzoki ## +## License: TravianX Project ## +## Copyright: TravianX (c) 2010-2011. All rights reserved. ## +## ## +################################################################################# + + $slots = $database->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 && $session->tribe != 4) { + $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\""; +$dur=round(${'u'.$i}['time'] * ($bid26[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); +echo ($dur=="0:00:00")? "0:00:01":$dur; + 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..8d87d567 --- /dev/null +++ b/Templates/Build/27_1.tpl @@ -0,0 +1,151 @@ +getOwnArtefactInfo2($village->wid); + $result = mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "artefacts WHERE vref = " . $village->wid . "")); + $wref = $village->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); + } +?> +
    + + + + + + + + + + + + + + + + '; + } else { + foreach($artefact1 as $artefact){ + $coor2 = $database->getCoor($artefact['vref']); + if($artefact['size'] == 1 && $artefact['type'] != 11){ + $reqlvl = 10; + $effect = "village"; + }else{ + if($artefact['type'] != 11){ + $reqlvl = 20; + }else{ + $reqlvl = 10; + } + $effect = "account"; + } + echo ''; + echo ''; + echo ''; + echo ''; + } + } + +?> + +
    Own artefacts
    NameVillageConquered
    You do not own any artefacts.
    + ' . $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 && $row['type'] != 11){ + $reqlvl = 10; + $effect = "village"; + }else{ + if($row['type'] != 11){ + $reqlvl = 20; + }else{ + $reqlvl = 10; + } + $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..c4cd0285 --- /dev/null +++ b/Templates/Build/27_show.tpl @@ -0,0 +1,97 @@ +getArtefactDetails($_GET['show']); + if($artefact['size'] == 1 && $artefact['type'] != 11){ + $reqlvl = 10; + $effect = "village"; + }else{ + if($artefact['type'] != 11){ + $reqlvl = 20; + }else{ + $reqlvl = 10; + } + $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..9ff6c821 --- /dev/null +++ b/Templates/Build/28.tpl @@ -0,0 +1,37 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Current merchant load:resarray['f'.$id]]['attri']; ?> Percent
    Merchant load at level : PercentMerchant load at level 20: Percent
    + +

    diff --git a/Templates/Build/29.tpl b/Templates/Build/29.tpl new file mode 100644 index 00000000..b9b6f496 --- /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['timestamp2']-time()); + echo "".$generator->getTimeFormat($train['timestamp']-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['timestamp']); + 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..f903e06f --- /dev/null +++ b/Templates/Build/29_train.tpl @@ -0,0 +1,51 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } + for ($i=($session->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\""; +$dur=round(${'u'.$i}['time'] * ($bid29[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); +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,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..7b87a153 --- /dev/null +++ b/Templates/Build/3.tpl @@ -0,0 +1,56 @@ + +
    +

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

    +

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($village->capital == 1) { + if($next<=20){ + ?> + + + + + + + + + + + + + + + + + + + + +
    resarray['f'.$id]]['prod']* SPEED; ?> per hour
    :
    :
    :
    :
    + +

    diff --git a/Templates/Build/30.tpl b/Templates/Build/30.tpl new file mode 100644 index 00000000..7aeede76 --- /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['timestamp2']-time()); + echo "".$generator->getTimeFormat($train['timestamp']-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['timestamp']); + 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..13bf576f --- /dev/null +++ b/Templates/Build/30_train.tpl @@ -0,0 +1,51 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } + for ($i=($session->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\""; +$dur=round(${'u'.$i}['time'] * ($bid30[$village->resarray['f'.$id]]['attri'] * ($building->getTypeLevel(41)>=1?(1/$bid41[$building->getTypeLevel(41)]['attri']):1) / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); +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,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..7d89ed2c --- /dev/null +++ b/Templates/Build/31.tpl @@ -0,0 +1,35 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Defence Bonus now:resarray['f'.$id]]['attri']; ?> Percent
    Defence Bonus at level : PercentDefence Bonus at level 20: 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..df1f3ab4 --- /dev/null +++ b/Templates/Build/32.tpl @@ -0,0 +1,35 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Defence Bonus now:resarray['f'.$id]]['attri']; ?> Percent
    Defence Bonus at level : PercentDefence Bonus at level 20: 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..8a2a5399 --- /dev/null +++ b/Templates/Build/33.tpl @@ -0,0 +1,35 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Defence Bonus now:resarray['f'.$id]]['attri']; ?> Percent
    Defence Bonus at level : PercentDefence Bonus at level 20: 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..9ad078e4 --- /dev/null +++ b/Templates/Build/34.tpl @@ -0,0 +1,37 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Current stability bonus:resarray['f'.$id]]['attri']; ?> Percent
    Stability bonus at level : PercentStability bonus at level 20: 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..880f98c7 --- /dev/null +++ b/Templates/Build/35.tpl @@ -0,0 +1,37 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=10){ + ?> + + + + + + + +
    Current bonus:resarray['f'.$id]]['attri']; ?> Percent
    Bonus at level : PercentBonus at level 10: 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..726622ba --- /dev/null +++ b/Templates/Build/36.tpl @@ -0,0 +1,137 @@ + +

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

    +

    + + The 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.

    + + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + + +
    Currect maximum traps to train:resarray['f'.$id]]['attri']*TRAPPER_CAPACITY; ?> Traps
    Maximum traps to train at level : TrapsMaximum traps to train at level 20: Traps
    +

    Your currently have unitarray['u99']; ?> traps, unitarray['u99o']; ?> of which are occupied.

    +getTypeLevel(36) > 0) { ?> +
    + + + + + + + + + + + + + + + + getTrainingList(8); + foreach($trainlist as $train) { + $train_amt += $train['amt']; + } + + $max = $technology->maxUnit(99,false); + $max1 = 0; + for($i=19;$i<41;$i++){ + if($village->resarray['f'.$i.'t'] == 36){ + $max1 += $bid36[$village->resarray['f'.$i]]['attri']*TRAPPER_CAPACITY; + } + } + if($max > $max1 - ($village->unitarray['u99'] + $train_amt)){ + $max = $max1 - ($village->unitarray['u99'] + $train_amt); + } + if($max < 0){ + $max = 0; + } + ?> + + + + +
    NameQuantityMax
    +
    Trap Trap (Available: unitarray['u99']; ?>) +
    +
    + Lumber20|Clay30|Iron10|Crop20|Crop consumption0|DurationgetTimeFormat(round(${'u99'}['time'] * ($bid19[$village->resarray['f'.$id]]['attri']*TRAPPER_CAPACITY / 100) / SPEED)); + echo ($dur=="0:00:00")? "0:00:01":$dur; ?> + +
    +
    ()
    +

    + Training can commence when trapper are completed.
    \n"; + } + if(count($trainlist) > 0) { + echo " + + + + + + + "; + $TrainCount = 0; + foreach($trainlist as $train) { + $TrainCount++; + echo " +
    TrainingDurationFinished
    "; + echo "\"".U99."\""; + echo $train['amt']." ".U99.""; + if ($TrainCount == 1 ) { + $NextFinished = $generator->getTimeFormat(($train['timestamp']-time())-($train['amt']-1)*$train['eachtime']); + echo "".$generator->getTimeFormat($train['timestamp']-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['timestamp']); + 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/37.tpl b/Templates/Build/37.tpl new file mode 100644 index 00000000..a5771df0 --- /dev/null +++ b/Templates/Build/37.tpl @@ -0,0 +1,99 @@ + | +| 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.

    + + + getTimeFormat($hero_info['trainingtime'] - time()); + ?> + + + + "; ?> + + + + + + +
    Hero will be ready in " . $timeleft . "
    +
    + \"".$name."\" + $name ($name1) +
    " + ?> + +
    + + +
    diff --git a/Templates/Build/37_hero.tpl b/Templates/Build/37_hero.tpl new file mode 100644 index 00000000..efa5499c --- /dev/null +++ b/Templates/Build/37_hero.tpl @@ -0,0 +1,217 @@ + | +| Dzoki < dzoki.travian@gmail.com > | +| Reworked by: Esfomeado < vps1992@live.com.pt > | +| 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 "Hero name has been changed"; + } + + $hero = $units->Hero($session->uid); +?> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + 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 && $hero_info['attack'] < 100){ + if($session->access != BANNED){ + echo "(+)"; + }else{ + header("Location: banned.php"); + } + }else { + echo "(+)"; + } + ?> +
    Defence<?php echo ($hero['di']) . " title="" /> + 0 && $hero_info['defence'] < 100){ + if($session->access != BANNED){ + echo "(+)"; + }else{ + header("Location: banned.php"); + } + }else { + echo "(+)"; + } + ?> +
    Off-Bonus%<?php echo ($hero['ob']-1)*100; ?>% + 0 && $hero_info['attackbonus'] < 100){ + if($session->access != BANNED){ + echo "(+)"; + }else{ + header("Location: banned.php"); + } + + }else { + echo "(+)"; + } + ?> +
    Def-Bonus%<?php echo ($hero['db']-1)*100; ?>% + 0 && $hero_info['defencebonus'] < 100){ + if($session->access != BANNED){ + echo "(+)"; + }else{ + header("Location: banned.php"); + } + + }else { + echo "(+)"; + } + ?> +
    Regeneration/Day<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day + 0 && $hero_info['regeneration'] < 100){ + if($session->access != BANNED){ + echo "(+)"; + }else{ + header("Location: banned.php"); + } + + }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 ?>%Experience:100%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" && $hero_info['attack'] < 100) { + 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" && $hero_info['defence'] < 100) { + 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" && $hero_info['attackbonus'] < 100) { + 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" && $hero_info['defencebonus'] < 100) { + 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" && $hero_info['regeneration'] < 100) { + 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..7de82823 --- /dev/null +++ b/Templates/Build/37_land.tpl @@ -0,0 +1,81 @@ +getOasis($village->wid); +if($_GET['gid']==37 && isset($_GET['del'])){ +if($session->access != BANNED){ + $database->removeOases($_GET['del']); + header("Location: build.php?id=".$id."&land"); +}else{ + header("Location: banned.php"); +} +} +?> + + + + + + + + + + + + +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%
    \ No newline at end of file diff --git a/Templates/Build/37_revive.tpl b/Templates/Build/37_revive.tpl new file mode 100644 index 00000000..45d8e03b --- /dev/null +++ b/Templates/Build/37_revive.tpl @@ -0,0 +1,187 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } +/*-------------------------------------------------------*\ +| ********* DO NOT REMOVE THIS COPYRIGHT NOTICE ********* | ++---------------------------------------------------------+ +| Developed by: Manni < manuel_mannhardt@web.de > | +| 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['level'] <= 60){ + $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 * $artefact_bonus2 / $artefact_bonus)); + $training_time2 = time() + round((${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['time']) / SPEED * $artefact_bonus2 / $artefact_bonus); + }else{ + $wood = (${'h'.$hero_info['unit'].'_full'}[60]['wood']); + $clay = (${'h'.$hero_info['unit'].'_full'}[60]['clay']); + $iron = (${'h'.$hero_info['unit'].'_full'}[60]['iron']); + $crop = (${'h'.$hero_info['unit'].'_full'}[60]['crop']); + $training_time = $generator->getTimeFormat(round((${'h'.$hero_info['unit'].'_full'}[60]['time']) / SPEED * $artefact_bonus2 / $artefact_bonus)); + $training_time2 = time() + round((${'h'.$hero_info['unit'].'_full'}[60]['time']) / SPEED * $artefact_bonus2 / $artefact_bonus); + } +?> + + + + + + + + + getTimeFormat($hero_info['trainingtime'] - time()); + +?> +
    Revive hero
    + + + "; ?> + + + + + + +
    Hero will be ready in " . $timeleft . "
    +
    + \"".$name."\" + $name ($name1) +
    " + ?> + +
    + + + +
    + <?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"; + } + + ?>
    + + + + + checkIfResearched($village->wid, 't'.$hero_info['unit']) != 0){ ?> + + +
    + <?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"; + } + + ?> +
    + + + + + + + access != BANNED){ + mysql_query("UPDATE ".TB_PREFIX."hero SET `inrevive` = '1', `trainingtime` = '".$training_time2."', `wref` = '".$village->wid."' WHERE `uid` = '".$session->uid."'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$wood." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$clay." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$iron." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$crop." WHERE `wref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($hero_info['inrevive'] == 0 && $hero_info['intraining'] == 0) { + 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..0f687711 --- /dev/null +++ b/Templates/Build/37_train.tpl @@ -0,0 +1,772 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } + +//check if there is unit needed in the village + +$result = mysql_query("SELECT * FROM ".TB_PREFIX."units WHERE `vref` = ".$village->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 + $count_hero = mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "hero WHERE `uid` = " . $session->uid . "")); + if($session->tribe == 1){ + if($_GET['train'] == 1){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '1', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u1['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u1` = `u1` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u1['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u1['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u1['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u1['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 2){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '1', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u1['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u2` = `u2` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u2['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u2['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u2['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u2['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 3){ + if($session->access != BANNED){ + 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`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '3', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u3['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u3` = `u3` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u3['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u3['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u3['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u3['crop']." WHERE `wref` = '" . $village->wid . "'"); + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 5){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '5', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u5['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u5` = `u5` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u5['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u5['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u5['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u5['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 6){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '6', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u6['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u6` = `u6` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u6['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u6['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u6['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u6['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + } + if($session->tribe == 2){ + if($_GET['train'] == 11){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '11', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u11['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u11` = `u11` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u11['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u11['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u11['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u11['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 12){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '12', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u12['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u12` = `u12` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u12['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u12['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u12['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u12['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 13){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '13', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u13['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u13` = `u13` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u13['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u13['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u13['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u13['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 15){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '15', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u15['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u15` = `u15` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u15['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u15['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u15['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u15['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 16){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '16', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u16['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u16` = `u16` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u16['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u16['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u16['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u16['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + } + if($session->tribe == 3){ + if($_GET['train'] == 21){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '21', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u21['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u21` = `u21` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u21['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u21['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u21['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u21['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 22){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '22', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u22['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u22` = `u22` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u22['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u22['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u22['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u22['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 24){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '24', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u24['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u24` = `u24` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u24['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u24['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u24['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u24['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 25){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '25', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u25['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u25` = `u25` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u25['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u25['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u25['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u25['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + if($_GET['train'] == 26){ + if($session->access != BANNED){ + mysql_query("DELETE from " . TB_PREFIX . "hero WHERE `dead` = 1 AND `uid` = '" . $session->uid . "'"); + if($count_hero == 0){ + mysql_query("INSERT INTO ".TB_PREFIX."hero (`uid`, `wref`, `regeneration`, `unit`, `name`, `level`, `points`, `experience`, `dead`, `health`, `attack`, `defence`, `attackbonus`, `defencebonus`, `trainingtime`, `autoregen`, `intraining`) VALUES ('".$session->uid."', '" . $village->wid . "', '0', '26', '".addslashes($session->username)."', '0', '10', '0', '0', '100', '0', '0', '0', '0', '".round((time() + ($u26['time'] / SPEED)*3))."', '50', '1')"); + mysql_query("UPDATE " . TB_PREFIX . "units SET `u26` = `u26` - 1 WHERE `vref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `wood` = `wood` - ".$u26['wood']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `clay` = `clay` - ".$u26['clay']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `iron` = `iron` - ".$u26['iron']." WHERE `wref` = '" . $village->wid . "'"); + mysql_query("UPDATE " . TB_PREFIX . "vdata SET `crop` = `crop` - ".$u26['crop']." WHERE `wref` = '" . $village->wid . "'"); + } + header("Location: build.php?id=".$id.""); + }else{ + header("Location: banned.php"); + } + } + } + + + + +echo $output; + +?> +
    Train New Hero
    +
    + \"".U1."\" + ".U1." +
    +
    + \"Wood\"".$u1['wood']."| + \"Clay\"".$u1['clay']."| + \"Iron\"".$u1['iron']."| + \"Crop\"".$u1['crop']."| + \"Crop6| + \"Duration\""; + $output.=$generator->getTimeFormat(round($u1['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U2."\" + ".U2." +
    +
    + \"Wood\"".$u2['wood']."| + \"Clay\"".$u2['clay']."| + \"Iron\"".$u2['iron']."| + \"Crop\"".$u2['crop']."| + \"Crop6| + \"Duration\""; + $output.=$generator->getTimeFormat(round($u2['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U3."\" + ".U3." +
    +
    + \"Wood\"".$u3['wood']."| + \"Clay\"".$u3['clay']."| + \"Iron\"".$u3['iron']."| + \"Crop\"".$u3['crop']."| + \"Crop6| + \"Duration\""; + + $output.= $generator->getTimeFormat(round($u3['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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"; + } + "
    +
    + \"".U5."\" + ".U5." +
    +
    + \"Wood\"".$u5['wood']."| + \"Clay\"".$u5['clay']."| + \"Iron\"".$u5['iron']."| + \"Crop\"".$u5['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u5['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U6."\" + ".U6." +
    +
    + \"Wood\"".$u6['wood']."| + \"Clay\"".$u6['clay']."| + \"Iron\"".$u6['iron']."| + \"Crop\"".$u6['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u6['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U11."\" + ".U11." +
    +
    + \"Wood\"".$u11['wood']."| + \"Clay\"".$u11['clay']."| + \"Iron\"".$u11['iron']."| + \"Crop\"".$u11['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u11['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U12."\" + ".U12." +
    +
    + \"Wood\"".$u12['wood']."| + \"Clay\"".$u12['clay']."| + \"Iron\"".$u12['iron']."| + \"Crop\"".$u12['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u12['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U13."\" + ".U13." +
    +
    + \"Wood\"".$u13['wood']."| + \"Clay\"".$u13['clay']."| + \"Iron\"".$u13['iron']."| + \"Crop\"".$u13['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u13['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U15."\" + ".U15." +
    +
    + \"Wood\"".$u15['wood']."| + \"Clay\"".$u15['clay']."| + \"Iron\"".$u15['iron']."| + \"Crop\"".$u15['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u15['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U16."\" + ".U16." +
    +
    + \"Wood\"".$u16['wood']."| + \"Clay\"".$u16['clay']."| + \"Iron\"".$u16['iron']."| + \"Crop\"".$u16['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u16['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U21."\" + ".U21." +
    +
    + \"Wood\"".$u21['wood']."| + \"Clay\"".$u21['clay']."| + \"Iron\"".$u21['iron']."| + \"Crop\"".$u21['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u21['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U22."\" + ".U22." +
    +
    + \"Wood\"".$u22['wood']."| + \"Clay\"".$u22['clay']."| + \"Iron\"".$u22['iron']."| + \"Crop\"".$u22['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u22['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U24."\" + ".U24." +
    +
    + \"Wood\"".$u24['wood']."| + \"Clay\"".$u24['clay']."| + \"Iron\"".$u24['iron']."| + \"Crop\"".$u24['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u24['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U25."\" + ".U25." +
    +
    + \"Wood\"".$u25['wood']."| + \"Clay\"".$u25['clay']."| + \"Iron\"".$u25['iron']."| + \"Crop\"".$u25['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u25['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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.="
    +
    + \"".U26."\" + ".U26." +
    +
    + \"Wood\"".$u26['wood']."| + \"Clay\"".$u26['clay']."| + \"Iron\"".$u26['iron']."| + \"Crop\"".$u26['crop']."| + \"Crop6| + \"Duration\"". + $generator->getTimeFormat(round($u26['time'] / SPEED * $artefact_bonus2 / $artefact_bonus)*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/38.tpl b/Templates/Build/38.tpl new file mode 100644 index 00000000..cdae8a00 --- /dev/null +++ b/Templates/Build/38.tpl @@ -0,0 +1,38 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Current capacity:resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?> Resource units
    Capacity at level : Resource unitsCapacity at level 20: Resource units
    + +

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

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=20){ + ?> + + + + + + + +
    Current capacity:resarray['f'.$id]]['attri']*STORAGE_MULTIPLIER; ?> Crop units
    Capacity at level : Crop unitsCapacity at level 20: Crop units
    + +

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

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

    +

    + + + + + + + + isMax($village->resarray['f'.$id.'t'],$id)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($village->capital == 1) { + if($next<=20){ + ?> + + + + + + + + + + + + + + + + + + + + + +
    resarray['f'.$id]]['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..d5427f58 --- /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['timestamp2']-time()); + echo "".$generator->getTimeFormat($train['timestamp']-time()).""; + } else { + echo $generator->getTimeFormat($train['eachtime']*$train['amt']); + } + echo ""; + $time = $generator->procMTime($train['timestamp']); + 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..41d18dce --- /dev/null +++ b/Templates/Build/42_train.tpl @@ -0,0 +1,50 @@ +getOwnUniqueArtefactInfo2($session->uid,5,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); + if($artefact > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact1 > 0){ + $artefact_bonus = 2; + $artefact_bonus2 = 1; + }else if($artefact2 > 0){ + $artefact_bonus = 4; + $artefact_bonus2 = 3; + }else{ + $artefact_bonus = 1; + $artefact_bonus2 = 1; + } + for ($i=($session->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\""; +$dur=round(${'u'.$i}['time'] * ($bid42[$village->resarray['f'.$id]]['attri'] / 100) / SPEED * $artefact_bonus2 / $artefact_bonus); + $foolartefact = $database->getFoolArtefactInfo(5,$village->wid,$session->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $dur *= $arte['effect2']; + }else{ + $dur /= $arte['effect2']; + $dur = round($dur); + } + } + } + $dur=$generator->getTimeFormat($dur); +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,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..05882142 --- /dev/null +++ b/Templates/Build/5.tpl @@ -0,0 +1,37 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=5){ + ?> + + + + + + + +
    Current wood bonus:resarray['f'.$id]]['attri']; ?> Percent
    Wood bonus at level : PercentWood bonus at level 5: 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..04725b59 --- /dev/null +++ b/Templates/Build/6.tpl @@ -0,0 +1,37 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=5){ + ?> + + + + + + + +
    Current clay bonus:resarray['f'.$id]]['attri']; ?> Percent
    Clay bonus at level : PercentClay bonus at level 5: 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..d0e63a26 --- /dev/null +++ b/Templates/Build/7.tpl @@ -0,0 +1,37 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=5){ + ?> + + + + + + + +
    Current iron bonus:resarray['f'.$id]]['attri']; ?> Percent
    Iron bonus at level : PercentIron bonus at level 5: 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..eb458146 --- /dev/null +++ b/Templates/Build/8.tpl @@ -0,0 +1,37 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=5){ + ?> + + + + + + + +
    Current crop bonus:resarray['f'.$id]]['attri']; ?> Percent
    Crop bonus at level : PercentCrop bonus at level 5: 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..719838ac --- /dev/null +++ b/Templates/Build/9.tpl @@ -0,0 +1,37 @@ + +
    +

    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)) { + $next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master; + if($next<=5){ + ?> + + + + + + + +
    Current crop bonus:resarray['f'.$id]]['attri']; ?> Percent
    Crop bonus at level : PercentCrop bonus at level 5: 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..d7f6a63d --- /dev/null +++ b/Templates/Build/avaliable.tpl @@ -0,0 +1,480 @@ +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); + +$mainbuilding1 = $database->getBuildingByType2($village->wid,15); +$cranny1 = $database->getBuildingByType2($village->wid,23); +$granary1 = $database->getBuildingByType2($village->wid,11); +$warehouse1 = $database->getBuildingByType2($village->wid,10); +$embassy1 = $database->getBuildingByType2($village->wid,18); +$wall1 = $database->getBuildingByField2($village->wid,40); +$rallypoint1 = $database->getBuildingByType2($village->wid,16); +$hero1 = $database->getBuildingByType2($village->wid,37); +$market1 = $database->getBuildingByType2($village->wid,17); +$barrack1 = $database->getBuildingByType2($village->wid,19); +$cropland1 = $database->getBuildingByType2($village->wid,4); +$grainmill1 = $database->getBuildingByType2($village->wid,8); +$residence1 = $database->getBuildingByType2($village->wid,25); +$academy1 = $database->getBuildingByType2($village->wid,22); +$armoury1 = $database->getBuildingByType2($village->wid,13); +$woodcutter1 = $database->getBuildingByType2($village->wid,1); +$palace1 = $database->getBuildingByType2($village->wid,26); +$claypit1 = $database->getBuildingByType2($village->wid,2); +$ironmine1 = $database->getBuildingByType2($village->wid,3); +$blacksmith1 = $database->getBuildingByType2($village->wid,12); +$stable1 = $database->getBuildingByType2($village->wid,20); +$trapper1 = $database->getBuildingByType2($village->wid,36); +$treasury1 = $database->getBuildingByType2($village->wid,27); +$sawmill1 = $database->getBuildingByType2($village->wid,5); +$brickyard1 = $database->getBuildingByType2($village->wid,6); +$ironfoundry1 = $database->getBuildingByType2($village->wid,7); +$workshop1 = $database->getBuildingByType2($village->wid,21); +$stonemasonslodge1 = $database->getBuildingByType2($village->wid,34); +$townhall1 = $database->getBuildingByType2($village->wid,24); +$tournamentsquare1 = $database->getBuildingByType2($village->wid,14); +$bakery1 = $database->getBuildingByType2($village->wid,9); +$tradeoffice1 = $database->getBuildingByType2($village->wid,28); +$greatbarracks1 = $database->getBuildingByType2($village->wid,29); +$greatstable1 = $database->getBuildingByType2($village->wid,30); +$brewery1 = $database->getBuildingByType2($village->wid,35); +$horsedrinkingtrough1 = $database->getBuildingByType2($village->wid,41); +$herosmansion1 = $database->getBuildingByType2($village->wid,37); +$greatwarehouse1 = $database->getBuildingByType2($village->wid,38); +$greatgranary1 = $database->getBuildingByType2($village->wid,39); +$greatworkshop1 = $database->getBuildingByType2($village->wid,42); + +?> +

    Construct new building

    += 1 && $id != 39 && $id != 40) { + include("avaliable/cranny.tpl"); +} +if((($granary == 0 && $granary1 == 0) || $granary == 20) && $mainbuilding >= 1 && $id != 39 && $id != 40 ) { + include("avaliable/granary.tpl"); +} +if($wall == 0 && $wall1 == 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 && $warehouse1 == 0) || $warehouse == 20) && $mainbuilding >= 1 && $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 && $trapper1 == 0) || $trapper == 20) && $rallypoint >= 1 && $session->tribe == 3 && $id != 39 && $id != 40) { +include("avaliable/trapper.tpl"); +} +if($rallypoint == 0 && $rallypoint1 == 0 && $id != 40) { +include("avaliable/rallypoint.tpl"); +} +if($embassy == 0 && $embassy1 == 0 && $id != 39 && $id != 40) { +include("avaliable/embassy.tpl"); +} +//fix hero +if($hero == 0 && $hero1 == 0 && $mainbuilding >= 3 && $rallypoint >= 1 && $id != 39 && $id != 40) { +include("avaliable/hero.tpl"); +} +//fix barracks +if($rallypoint >= 1 && $mainbuilding >= 3 && $barrack == 0 && $barrack1 == 0 && $id != 39 && $id != 40) { +include("avaliable/barracks.tpl"); +} +if($mainbuilding >= 3 && $academy >= 1 && $armoury == 0 && $armoury1 == 0 && $id != 39 && $id != 40) { +include("avaliable/armoury.tpl"); +} +if($cropland >= 5 && $grainmill == 0 && $grainmill1 == 0 && $id != 39 && $id != 40) { +include("avaliable/grainmill.tpl"); +} +//fix marketplace +if($granary >= 1 && $warehouse >= 1 && $mainbuilding >= 3 && $market == 0 && $market1 == 0 && $id != 39 && $id != 40) { +include("avaliable/marketplace.tpl"); +} +//fix residence +if($mainbuilding >= 5 && $residence == 0 && $residence1 == 0 && $id != 39 && $id != 40 && $palace == 0 && $palace1 == 0) { +include("avaliable/residence.tpl"); +} +if($academy == 0 && $academy1 == 0 && $mainbuilding >= 3 && $barrack >= 3 && $id != 39 && $id != 40) { +include("avaliable/academy.tpl"); +} +//fix palace +if($palace == 0 && $palace1 == 0 && $embassy >= 1 && $mainbuilding >= 5 && $id != 39 && $id != 40 && $residence == 0 && $residence1 == 0) { + +//Fix Castle +//id user +$user = $session->uid; + +//search Castle in array structure village +$test = in_array(26, $database->caststruc($user)); + +//if Castle no ready include palace.tpl +if (!$test){ + include("avaliable/palace.tpl"); +} + +//end Fix +} +if($blacksmith == 0 && $blacksmith1 == 0 && $academy >= 3 && $mainbuilding >= 3 && $id != 39 && $id != 40) { +include("avaliable/blacksmith.tpl"); +} +if($stonemasonslodge == 0 && $stonemasonslodge1 == 0 && $palace >= 3 && $mainbuilding >= 5 && $id != 39 && $id != 40 && $village->capital == 1) { +include("avaliable/stonemason.tpl"); +} +if($stable == 0 && $stable1 == 0 && $blacksmith >= 3 && $academy >= 5 && $id != 39 && $id != 40) { +include("avaliable/stable.tpl"); +} +if($treasury == 0 && $treasury1 == 0 && $mainbuilding >= 10 && $id != 39 && $id != 40) { +include("avaliable/treasury.tpl"); +} +if($brickyard == 0 && $brickyard1 == 0 && $claypit >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40 ) { +include("avaliable/brickyard.tpl"); +} +if($sawmill == 0 && $sawmill1 == 0 && $woodcutter >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) { + include("avaliable/sawmill.tpl"); + } +if($ironfoundry == 0 && $ironfoundry1 == 0 && $ironmine >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) { + include("avaliable/ironfoundry.tpl"); +} +if($workshop == 0 && $workshop1 == 0 && $academy >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) { + include("avaliable/workshop.tpl"); +} +if($tournamentsquare == 0 && $tournamentsquare1 == 0 && $rallypoint >= 15 && $id != 39 && $id != 40) { + include("avaliable/tsquare.tpl"); +} +if($bakery == 0 && $bakery1 == 0 && $grainmill >= 5 && $cropland >= 10 && $mainbuilding >= 5 && $id != 39 && $id != 40) { + include("avaliable/bakery.tpl"); +} +if($townhall == 0 && $townhall1 == 0 && $mainbuilding >= 10 && $academy >= 10 && $id != 39 && $id != 40) { + include("avaliable/townhall.tpl"); +} +if($tradeoffice == 0 && $tradeoffice1 == 0 && $market == 20 && $stable >= 10 && $id != 39 && $id != 40) { + include("avaliable/tradeoffice.tpl"); +} +if($session->tribe == 1 && $horsedrinkingtrough == 0 && $horsedrinkingtrough1 == 0 && $rallypoint >= 10 && $stable == 20 && $id != 39 && $id != 40) { + include("avaliable/horsedrinking.tpl"); +} +if($session->tribe == 2 && $brewery == 0 && $brewery1 == 0 && $rallypoint >= 10 && $granary == 20 && $id != 39 && $id != 40) { + include("avaliable/brewery.tpl"); +} +if($greatbarracks == 0 && $greatbarracks1 == 0 && $barrack == 20 && $village->capital == 0 && $id != 39 && $id != 40) { + include("avaliable/greatbarracks.tpl"); +} +if($greatstable == 0 && $greatstable1 == 0 && $stable == 20 && $village->capital == 0 && $id != 39 && $id != 40) { + include("avaliable/greatstable.tpl"); +} +if($greatworkshop == 0 && $greatworkshop1 == 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 && $palace == 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 && $palace == 0 && $residence == 0) { + +//Fix Castle +//id user +$user = $session->uid; + +//connect to DB +mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); +mysql_select_db(SQL_DB); + +//loop search village user +$query = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE owner = ".$user.""); +while($villaggi_array = mysql_fetch_array($query)){ + + //loop structure village + $query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref'].""); + $strutture= mysql_fetch_array($query1); + +//search Castle in array structure village +$test = in_array(26,$strutture); +if ($test){ + break; + } + +} + + +//if Castle no ready include palace.tpl +if (!$test){ + include("soon/palace.tpl"); +} + + //end Fix +} +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

    + +
    + uid; + + //connect to DB + mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS); + mysql_select_db(SQL_DB); + + //loop search village user + $query = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE owner = ".$user.""); + while($villaggi_array = mysql_fetch_array($query)){ + + //loop structure village + $query1 = mysql_query("SELECT * FROM ".TB_PREFIX."fdata WHERE vref = ".$villaggi_array['wref'].""); + $strutture= mysql_fetch_array($query1); + + //search Castle in array structure village + $test = in_array(26,$strutture); + if ($test){ + break; + } + + } + + + //if Castle no ready include palace.tpl + if (!$test){ + include("soon/palace.tpl"); + } + + //end Fix + } + if($blacksmith == 0 && ($academy == 0 || $mainbuilding == 1)) { + include("soon/blacksmith.tpl"); + } + if($stonemason == 0 && ($palace == 0 || $mainbuilding <= 2) && $residence == 0 && $village->capital == 1) { + include("soon/stonemason.tpl"); + } + if($stable == 0 && ($blacksmith == 0 || $academy <= 2)) { + include("soon/stable.tpl"); + } + if($treasury == 0 && $mainbuilding <= 5) { + include("soon/treasury.tpl"); + } + if($brickyard == 0 && ($claypit <= 5 || $mainbuilding <= 2)) { + include("soon/brickyard.tpl"); + } + if($sawmill == 0 && ($woodcutter <= 5 || $mainbuilding <= 2)) { + include("soon/sawmill.tpl"); + } + if($ironfoundry == 0 && ($ironmine <= 5 || $mainbuilding <= 2)) { + include("soon/ironfoundry.tpl"); + } + if($workshop == 0 && ($academy <= 5 || $mainbuilding <= 2)) { + include("soon/workshop.tpl"); + } + if($tournamentsquare == 0 && $rallypoint <= 7) { + include("soon/tsquare.tpl"); + } + if($bakery == 0 && ($grainmill == 0 || $cropland <= 5 || $mainbuilding <= 2)) { + include("soon/bakery.tpl"); + } + if($townhall == 0 && ($mainbuilding <= 5 || $academy <= 5)) { + include("soon/townhall.tpl"); + } + if($tradeoffice == 0 && ($market <= 10 || $stable <= 5)) { + include("soon/tradeoffice.tpl"); + } + if($session->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/.htaccess b/Templates/Build/avaliable/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Build/avaliable/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ 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..2f0f6907 --- /dev/null +++ b/Templates/Build/avaliable/availupgrade.tpl @@ -0,0 +1,87 @@ +canBuild($id,$bid); +$loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0; +$doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0; +$uprequire = $building->resourceRequired($id,$bid); +$mastertime = $uprequire['time']; +?> + + 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."; + if($session->goldclub == 1){ +?>
    +gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } + } + else if($bindicator == 3) { + echo "The workers are already at work. (waiting loop)"; + if($session->goldclub == 1){ +?>
    +gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } + } + else if($bindicator == 4) { + echo "Not enough food. Expand cropland."; + } + else if($bindicator == 5) { + echo "Upgrade Warehouse."; + } + else if($bindicator == 6) { + echo "Upgrade Granary."; + } + else if($bindicator == 7) { + $neededtime = $building->calculateAvaliable($id,$bid); + echo "Enough resources ".$neededtime[0]." at ".$neededtime[1].""; + if($session->goldclub == 1){ +?>
    +gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } + } + else if($bindicator == 8) { + if($session->access!=BANNED){ + echo "checker."\">Construct building."; + }else{ + echo "Construct building."; + } + } + else if($bindicator == 9) { + if($session->access!=BANNED){ + echo "checker."\">Construct building. (waiting loop)"; + }else{ + 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..eff512ec --- /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..243e6a6f --- /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 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/next.tpl b/Templates/Build/next.tpl new file mode 100644 index 00000000..487ffea5 --- /dev/null +++ b/Templates/Build/next.tpl @@ -0,0 +1,5 @@ +isCurrent($id) || $building->isLoop($id))?1:0; + $doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0; + $master = count($database->getMasterJobsByField($village->wid,$id)); +?> \ No newline at end of file diff --git a/Templates/Build/soon/.htaccess b/Templates/Build/soon/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Build/soon/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ 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..112eef91 --- /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 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..3e659c0d --- /dev/null +++ b/Templates/Build/upgrade.tpl @@ -0,0 +1,137 @@ +resarray['f'.$id.'t']; +$bindicate = $building->canBuild($id,$bid); +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; + $master = count($database->getMasterJobsByField($village->wid,$id)); + $uprequire = $building->resourceRequired($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master); + $mastertime = $uprequire['time']; +?> +

    Costs for upgrading to level resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:
    +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."; + if($session->goldclub == 1){ +?>
    +gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + }else{ + if($session->gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } + } + } + else if($bindicate == 3) { + echo "The workers are already at work. (waiting loop)"; + if($session->goldclub == 1){ +?>
    +gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + }else{ + if($session->gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } + } + } + 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) { + if($village->allcrop > 0){ + $neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master); + echo "Enough resources ".$neededtime[0]." at ".$neededtime[1].""; + }else{ + echo "Your crop production is negative, you will never get the required resources."; + } + if($session->goldclub == 1){ +?>
    +gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + }else{ + if($session->gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } + } + } + 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..f03ae0a0 --- /dev/null +++ b/Templates/Build/ww.tpl @@ -0,0 +1,47 @@ +isCurrent($id) || $building->isLoop($id))?1:0; + $doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0; +?> + +

    +

    Wonder of the World
    Level resarray['f'.$id];?>

    +

    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['f'.$id] < 0){ +echo 'You need to have World Wonder level 1 to be able to change its name. +

    World Wonder name:

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

    World Wonder name:

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

    World Wonder name:

    '; +}?> +
    +      Name changed.'; + } + ?> + + +

    \ No newline at end of file diff --git a/Templates/Build/wwupgrade.tpl b/Templates/Build/wwupgrade.tpl new file mode 100644 index 00000000..ddec728e --- /dev/null +++ b/Templates/Build/wwupgrade.tpl @@ -0,0 +1,175 @@ +resarray['f'.$id.'t']; +$bindicate = $building->canBuild($id,$bid); +$wwlevel = $village->resarray['f99']; +if($wwlevel > 50){ +$needed_plan = 1; +}else{ +$needed_plan = 0; +} + +$wwbuildingplan = 0; +$villages = $database->getVillagesID($session->uid); +foreach($villages as $village1){ +$plan = count($database->getOwnArtefactInfoByType2($village1,11)); +if($plan > 0){ +$wwbuildingplan = 1; +} +} +if($session->alliance != 0){ +$alli_users = $database->getUserByAlliance($session->alliance); +foreach($alli_users as $users){ +$villages = $database->getVillagesID($users['id']); +if($users['id'] != $session->uid){ +foreach($villages as $village1){ +$plan = count($database->getOwnArtefactInfoByType2($village1,11)); +if($plan > 0){ +$wwbuildingplan += 1; +} +} +} +} +} + +if($wwbuildingplan > $needed_plan){ +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; + $master = count($database->getMasterJobsByField($village->wid,$id)); + $uprequire = $building->resourceRequired($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master); + $mastertime = $uprequire['time']; +?> +

    Costs for upgrading to level resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:
    +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."; + if($session->goldclub == 1){ +?>
    +gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + }else{ + if($session->gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } + } + } + else if($bindicate == 3) { + echo "The workers are already at work. (waiting loop)"; + if($session->goldclub == 1){ +?>
    +gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + }else{ + if($session->gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } + } + } + 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) { + if($village->allcrop > 0){ + $neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master); + echo "Enough resources ".$neededtime[0]." at ".$neededtime[1].""; + }else{ + echo "Your crop production is negative, you will never get the required resources."; + } + if($session->goldclub == 1){ +?>
    +gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + }else{ + if($session->gold >= 1 && $village->master == 0){ + echo "Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } + } + } + 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) "; + } +} + }else{ + if($needed_plan == 0){ + echo "Need WW construction plan."; + }else{ + echo "Need more WW construction plan."; + } + } + +?> diff --git a/Templates/Building.tpl b/Templates/Building.tpl new file mode 100644 index 00000000..e85be398 --- /dev/null +++ b/Templates/Building.tpl @@ -0,0 +1,59 @@ + + + + + + + + buildArray as $jobs) { + if($jobs['master'] == 0){ + echo ""; + echo ""; + $timer +=1; + }else{ + echo " +
    + gold >= 2) { + if($session->access!=BANNED){ + ?> Finish all construction and research orders in this village immediately for 2 Gold? + Finish all construction and research orders in this village immediately for 2 Gold? + +
    checker\">"; + echo "\"cancel\""; + echo $building->procResType($jobs['type'])." (Level ".$jobs['level'].")"; + if($jobs['loopcon'] == 0) { $BuildingList[] = $jobs['field']; } + if($jobs['loopcon'] == 1) { + echo " (waiting loop)"; + } + echo "in "; + echo $generator->getTimeFormat($jobs['timestamp']-time()); + echo " hrs.done at ".date('H:i', $jobs['timestamp'])."
    checker\">"; + echo "\"cancel\""; + echo $building->procResType($jobs['type'])." (Level ".$jobs['level'].")"; + } + } + ?> +
    + diff --git a/Templates/Manual/.htaccess b/Templates/Manual/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Manual/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file 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 granarys 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 blacksmiths 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..8d36ca3f --- /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 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/.htaccess b/Templates/Map/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Map/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/Map/mapview.tpl b/Templates/Map/mapview.tpl new file mode 100644 index 00000000..25d25ee5 --- /dev/null +++ b/Templates/Map/mapview.tpl @@ -0,0 +1,240 @@ +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')"; + +//$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)){ + +$targetalliance=$donnees["aliance_id"]; +$friendarray=$database->getAllianceAlly($donnees["aliance_id"],1); +$neutralarray=$database->getAllianceAlly($donnees["aliance_id"],2); +$enemyarray=$database->getAllianceWar2($donnees["aliance_id"]); +//var_dump($friendarray); +//echo "(".$friendarray[0]['alli1'].">0 or ".$donnees["aliance_id"].">0) and (".$friendarray[0]['alli1']."==".$donnees["aliance_id"]." or ".$friendarray[0]['alli2']."==".$donnees["aliance_id"].") and (".$session->alliance." != ".$targetalliance." and ".$session->alliance." and ".$targetalliance.")
    \n"; + +$friend = (($friendarray[0]['alli1']>0 and $friendarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($friendarray[0]['alli1']==$session->alliance or $friendarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; + +$war = (($enemyarray[0]['alli1']>0 and $enemyarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($enemyarray[0]['alli1']==$session->alliance or $enemyarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; + +$neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($neutralarray[0]['alli1']==$session->alliance or $neutralarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; + +//echo $targetalliance.">>"; +//var_dump($friendarray); +//echo"|||
    "; +//var_dump($arraydiplo); +//echo in_array($targetalliance,$friendarray); + $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)? ($friend==1? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b31': 'b21' :'b11' : 'b01') : ($war==1? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b32': 'b22' :'b12' : 'b02') : ($neutral==1? ($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 + if($donnees['ville_user']==3 && $donnees['ville_name']=='WW Buildingplan'){ + $map_content .= "
    \r"; + }else{ + $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.= ",\"".$donnees['ville_name']."\",\"".$donnees['user_username']."\",\"".$donnees['ville_pop']."\",\"".$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 +
    + goldclub != 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..ea83fb9c --- /dev/null +++ b/Templates/Map/mapviewlarge.tpl @@ -0,0 +1,320 @@ +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)){ + +$targetalliance=$donnees["aliance_id"]; +$friendarray=$database->getAllianceAlly($donnees["aliance_id"],1); +$neutralarray=$database->getAllianceAlly($donnees["aliance_id"],2); +$enemyarray=$database->getAllianceWar2($donnees["aliance_id"]); +//var_dump($friendarray); +//echo "(".$friendarray[0]['alli1'].">0 or ".$donnees["aliance_id"].">0) and (".$friendarray[0]['alli1']."==".$donnees["aliance_id"]." or ".$friendarray[0]['alli2']."==".$donnees["aliance_id"].") and (".$session->alliance." != ".$targetalliance." and ".$session->alliance." and ".$targetalliance.")
    \n"; + +$friend = (($friendarray[0]['alli1']>0 and $friendarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($friendarray[0]['alli1']==$session->alliance or $friendarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; + +$war = (($enemyarray[0]['alli1']>0 and $enemyarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($enemyarray[0]['alli1']==$session->alliance or $enemyarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; + +$neutral = (($neutralarray[0]['alli1']>0 and $neutralarray[0]['alli2']>0 and $donnees["aliance_id"]>0) and ($neutralarray[0]['alli1']==$session->alliance or $neutralarray[0]['alli2']==$session->alliance) and ($session->alliance != $targetalliance and $session->alliance and $targetalliance)) ? '1':'0'; + +//echo $targetalliance.">>"; +//var_dump($friendarray); +//echo"|||
    "; +//var_dump($arraydiplo); +//echo in_array($targetalliance,$friendarray); + $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)? ($friend==1? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b31': 'b21' :'b11' : 'b01') : ($war==1? ($donnees['ville_pop']>=100? $donnees['ville_pop']>= 250?$donnees['ville_pop']>=500? 'b32': 'b22' :'b12' : 'b02') : ($neutral==1? ($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 + if($donnees['ville_user']==3 && $donnees['ville_name']=='WW Buildingplan'){ + $map_content .= "
    \r"; + }else{ + $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.= ",\"".$donnees['ville_name']."\",\"".$donnees['user_username']."\",\"".$donnees['ville_pop']."\",\"".$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..6b9a4146 --- /dev/null +++ b/Templates/Map/vilview.tpl @@ -0,0 +1,533 @@ +
    +getMInfo($_GET['d']); +$uinfo = $database->getVillage($basearray['id']); +$oasis1 = mysql_query('SELECT * FROM `' . TB_PREFIX . 'odata` WHERE `wref` = ' . mysql_real_escape_string($_GET['d'])); +$oasis = mysql_fetch_assoc($oasis1); +?> +

    +(capital)
    "; } +if($uinfo['owner']==3 && $uinfo['name']=='WW Buildingplan'){ +?> +WW buildingplan + +<?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=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 AND ntype!=15 AND ntype!=16 AND ntype!=17"; + } +$toWref = $_GET['d']; +if($session->alliance!=0){ +$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{ ?> + + + + +uid." 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:
    "; +if($type==18 or $type==19 or $type==20 or $type==21){ + echo "\"".$topic."\""; + }else{ + echo " "; + } + $date = $generator->procMtime($row['time']); + echo "".$date[0]." ".date('H:i',$row['time'])." "; + echo "
    There is no +
    information available.
    "; +if($type==18 or $type==19 or $type==20 or $type==21){ + echo "\"".$topic."\""; + }else{ + echo " "; + } + $date = $generator->procMtime($row['time']); + echo "".$date[0]." ".date('H:i',$row['time'])." "; + echo "
    There is no +
    information available.
    + + + getUserArray($oasis['owner'],1); ?> + + + + + + + -'; + } else echo ' + '; ?> + + + + + + + + + +
    Tribe
    Alliance'.$database->getUserAlliance($oasis['owner']).'
    OwnergetUserField($oasis['owner'],'username',0); ?>
    VillagegetVillageField($oasis['conqured'], "name");?>
    + + + + + + + + +
    Bonus:
    + + + + + + + uid == $database->getVillage($_GET['d'])){ + $limit = "ntype=0 and ntype=4 and ntype=5 and ntype=6 and ntype=7 and ntype=20 and ntype=21"; +}else{ + $limit = "ntype!=8 and ntype!=9 and ntype!=10 and ntype!=11 and ntype!=12 and ntype!=13 and ntype!=14 and ntype!=15 and ntype!=16 and ntype!=17"; + } +$toWref = $_GET['d']; +if($session->alliance!=0){ +$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{ ?> + + + + +uid." 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:
    "; +if($type==18 or $type==19 or $type==20 or $type==21){ + echo "\"".$topic."\""; + }else{ + echo " "; + } + $date = $generator->procMtime($row['time']); + echo "".$date[0]." ".date('H:i',$row['time'])." "; + echo "
    There is no +
    information available.
    "; +if($type==18 or $type==19 or $type==20 or $type==21){ + echo "\"".$topic."\""; + }else{ + 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 AND ntype!=15 AND ntype!=16 AND ntype!=17"; + } +$toWref = $_GET['d']; +if($session->alliance!=0){ +$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 ""; +} +while($row = mysql_fetch_array($result)){ + $dataarray = explode(",",$row['data']); + $type = $row['ntype']; + echo ""; +} +}else{ ?> + + + + +uid." 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:
    "; +if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){ + echo "\"".$topic."\""; + }else{ + echo " "; + } + $date = $generator->procMtime($row['time']); + echo "".$date[0]." ".date('H:i',$row['time'])." "; + echo "
    "; +if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){ + echo "\"".$topic."\""; + }else{ + echo " "; + } + $date = $generator->procMtime($row['time']); + echo "".$date[0]." ".date('H:i',$row['time'])." "; + echo "
    There is no +
    information available.
    "; +if($type==18 or $type==19 or $type==20 or $type==21){ + echo "\"".$topic."\""; + }else{ + 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 = ($oasis['name']); + 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." : + "$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/.htaccess b/Templates/Message/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Message/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/Message/archive.tpl b/Templates/Message/archive.tpl new file mode 100644 index 00000000..15cbf7bd --- /dev/null +++ b/Templates/Message/archive.tpl @@ -0,0 +1,69 @@ +
    +

    Messages

    + +
    + + + + + + + + + archived1) >= $i) { + if($message->archived[$i-1]['owner'] == 0) { + echo ""; + } + else { + echo ""; + } + echo " + + "; + } + $name++; + } + if(count($message->archived1) == 0) { + echo ""; + } + ?> +
    SubjectSenderSent
    + + + archived1) < 10) { + echo "«»"; + } + else if (!isset($_GET['s']) && count($message->archived1) > 10) { + echo "«»"; + } + else if(isset($_GET['s']) && count($message->archived1) > $_GET['s']) { + if(count($message->archived1) > ($_GET['s']+10) && $_GET['s']-10 < count($message->archived1) && $_GET['s'] != 0) { + echo "«»"; + } + else if(count($message->archived1) > $_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..9d2380e6 --- /dev/null +++ b/Templates/Message/inbox.tpl @@ -0,0 +1,84 @@ +
    +

    Messages

    + +
    + + + + + + + + inbox1) >= $i) { + if($message->inbox1[$i-1]['owner'] <= 1) { + echo ""; + } + else { + echo ""; + } + echo " + + "; + } + else { + echo " + "; + } + } + $name++; + } + if(count($message->inbox1) == 0) { + echo ""; + } + ?> +
    SubjectSenderSent
    +uid."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + $date2=strtotime("NOW"); + if ($golds['plus'] <= $date2) { ?> + + + + + + plus) { echo ""; } ?> + + inbox1) < 10) { + echo "«»"; + } + else if (!isset($_GET['s']) && count($message->inbox1) > 10) { + echo "«»"; + } + else if(isset($_GET['s']) && count($message->inbox1) > $_GET['s']) { + if(count($message->inbox1) > ($_GET['s']+10) && $_GET['s']-10 < count($message->inbox1) && $_GET['s'] != 0) { + echo "«»"; + } + else if(count($message->inbox1) > $_GET['s']+10) { + echo "«»"; + } + else { + echo "«»"; + } + } + ?>
    inbox1[$i-1]['id']."\" />inbox1[$i-1]['id']."\">".$message->inbox1[$i-1]['topic']." "; + if($message->inbox1[$i-1]['viewed'] == 0) { + echo "(new)"; + } + $date = $generator->procMtime($message->inbox1[$i-1]['time']); + if($message->inbox1[$i-1]['owner'] <= 1) { + echo "".$database->getUserField($message->inbox1[$i-1]['owner'],'username',0)."".$date[0]." ".$date[1]."
    inbox1[$i-1]['owner']."\">".$database->getUserField($message->inbox1[$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..6d287bbe --- /dev/null +++ b/Templates/Message/read.tpl @@ -0,0 +1,41 @@ +reading['message']; +$alliance = $message->reading['alliance']; +$player = $message->reading['player']; +$coor = $message->reading['coor']; +$report = $message->reading['report']; +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..708e6a0a --- /dev/null +++ b/Templates/Message/sent.tpl @@ -0,0 +1,85 @@ + +
    +

    Messages

    + +
    + + + + + + + + + + + sent1) >= $i) { + if($message->sent1[$i-1]['target'] == 0) { + echo ""; + } + else { + echo ""; + } + echo " + + "; + } + $name++; + } + if(count($message->sent1) == 0) { + echo ""; + } + ?> +
    SubjectRecipientSent
    uid."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + $date2=strtotime("NOW"); + if ($golds['plus'] <= $date2) { ?> + + + sent1) < 10) { + echo "«»"; + } + else if (!isset($_GET['s']) && count($message->sent1) > 10) { + echo "«»"; + } + else if(isset($_GET['s']) && count($message->sent1) > $_GET['s']) { + if(count($message->sent1) > ($_GET['s']+10) && $_GET['s']-10 < count($message->sent1) && $_GET['s'] != 0) { + echo "«»"; + } + else if(count($message->sent1) > $_GET['s']+10) { + echo "«»"; + } + else { + echo "«»"; + } + } + ?>
    sent1[$i-1]['id']."\" />sent1[$i-1]['id']."\">".$message->sent1[$i-1]['topic']." "; + if($message->sent1[$i-1]['viewed'] == 0) { + echo "(unread)"; + } + $date = $generator->procMtime($message->sent1[$i-1]['time']); + echo "sent1[$i-1]['target']."\">".$database->getUserField($message->sent1[$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..d528d746 --- /dev/null +++ b/Templates/Message/write.tpl @@ -0,0 +1,166 @@ +
    +

    Messages

    +getUserArray($session->uid, 1); +?> + +
    +
    +
    + + + +
    +
    +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

    +
    + + + +"; } ?> + + "; }else{ echo "";}}else if($user['friend'.$i.'wait'] == 0){ +if(is_int($i/2)){ echo ""; } ?> + + getUserArray($user['friend'.$i], 1); + if ((time()-600) < $friend['timestamp']){ // 0 Min - 10 Min + echo " "; + }elseif ((time()-86400) < $friend['timestamp'] && (time()-600) > $friend['timestamp']){ // 10 Min - 1 Days + echo " "; + }elseif ((time()-259200) < $friend['timestamp'] && (time()-86400) > $friend['timestamp']){ // 1-3 Days + echo " "; + }elseif ((time()-604800) < $friend['timestamp'] && (time()-259200) > $friend['timestamp']){ + echo " "; + }else{ + echo " "; + } +if(!is_int($i/2)){ echo ""; }else{ echo "";} + }else{ +$friend = $database->getUserArray($user['friend'.$i.'wait'], 1); +$friendwait = 0; +for($j=0;$j<20;$j++) { +if($friend['friend'.$j.'wait'] == $session->uid){ +$wait = $friend['friend'.$j]; +$friendwait = $friend['id']; +} +} +if($wait == 0){ +if(is_int($i/2)){ echo ""; } ?> + + "; +if(!is_int($i/2)){ echo ""; }else{ echo "";} +}else{ +if(is_int($i/2)){ echo ""; } ?> + + +"; }else{ echo "";} +} + }} ?> +
    + +
    delete + ".$database->getUserField($user['friend'.$i],"username",0).""; ?> + Now onlineOfflineLast 3 daysLast 7 daysinactive
    delete + ".$database->getUserField($user['friend'.$i],"username",0).""; ?> +
    delete + ".$database->getUserField($friendwait,"username",0).""; ?> + confirm
    +

    + +

    +
    close adressbook
    +
    +
    +
    +Warning: you can't use the values [message] or [/message] in your message because it can cause problem with bbcode system. +
    \ No newline at end of file diff --git a/Templates/News/.htaccess b/Templates/News/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/News/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/News/home/.htaccess b/Templates/News/home/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/News/home/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/News/home/home1.tpl b/Templates/News/home/home1.tpl new file mode 100644 index 00000000..8300ef52 --- /dev/null +++ b/Templates/News/home/home1.tpl @@ -0,0 +1 @@ +
    TravianX
    \ 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..8300ef52 --- /dev/null +++ b/Templates/News/home/home2.tpl @@ -0,0 +1 @@ +
    TravianX
    \ 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..8300ef52 --- /dev/null +++ b/Templates/News/home/home3.tpl @@ -0,0 +1 @@ +
    TravianX
    \ No newline at end of file diff --git a/Templates/News/newsbox1.tpl b/Templates/News/newsbox1.tpl new file mode 100644 index 00000000..07e57449 --- /dev/null +++ b/Templates/News/newsbox1.tpl @@ -0,0 +1,4 @@ +
    newsbox 1
    +
    +
    TravianX
    +
    \ No newline at end of file diff --git a/Templates/News/newsbox2.tpl b/Templates/News/newsbox2.tpl new file mode 100644 index 00000000..62e401f8 --- /dev/null +++ b/Templates/News/newsbox2.tpl @@ -0,0 +1,4 @@ +
    newsbox 2
    +
    +
    TravianX
    +
    \ No newline at end of file diff --git a/Templates/News/newsbox3.tpl b/Templates/News/newsbox3.tpl new file mode 100644 index 00000000..a069d9d8 --- /dev/null +++ b/Templates/News/newsbox3.tpl @@ -0,0 +1,4 @@ +
    newsbox 3
    +
    +
    TravianX
    +
    \ No newline at end of file diff --git a/Templates/Notice/.htaccess b/Templates/Notice/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Notice/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/Notice/0.tpl b/Templates/Notice/0.tpl new file mode 100644 index 00000000..c3bef1fb --- /dev/null +++ b/Templates/Notice/0.tpl @@ -0,0 +1,284 @@ +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 + + +
    + + + + + + + + + + + + + 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/0x.tpl b/Templates/Notice/0x.tpl new file mode 100644 index 00000000..d5a5c8b9 --- /dev/null +++ b/Templates/Notice/0x.tpl @@ -0,0 +1,287 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    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 + + +
    + + + + + + + + + + + + + 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..32c39814 --- /dev/null +++ b/Templates/Notice/1.tpl @@ -0,0 +1,400 @@ +readingNotice['data']); +if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ 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..09ffb8f6 --- /dev/null +++ b/Templates/Notice/15.tpl @@ -0,0 +1,69 @@ +readingNotice['data']); +if(isset($dataarray[24]) and $dataarray[24]!=0){$colspan="11";}else{$colspan="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if(isset($dataarray[24]) and $dataarray[24]!=0){ + echo ""; +} +echo ""; +for($i=4;$i<=13;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[24]) and $dataarray[24]!=0){ + echo ""; +} +echo ""; +for($i=14;$i<=23;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[24]) and $dataarray[24]!=0){ + if ($dataarray[25]==0){$tdclass='class="none"';} + echo ""; +} +?> + +
    Defender">getUserField($dataarray[0],"username",0); ?> in the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[24]
    Casualties0".$dataarray[$i]."$dataarray[25]
    +
    \ No newline at end of file diff --git a/Templates/Notice/16.tpl b/Templates/Notice/16.tpl new file mode 100644 index 00000000..09ffb8f6 --- /dev/null +++ b/Templates/Notice/16.tpl @@ -0,0 +1,69 @@ +readingNotice['data']); +if(isset($dataarray[24]) and $dataarray[24]!=0){$colspan="11";}else{$colspan="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if(isset($dataarray[24]) and $dataarray[24]!=0){ + echo ""; +} +echo ""; +for($i=4;$i<=13;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[24]) and $dataarray[24]!=0){ + echo ""; +} +echo ""; +for($i=14;$i<=23;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[24]) and $dataarray[24]!=0){ + if ($dataarray[25]==0){$tdclass='class="none"';} + echo ""; +} +?> + +
    Defender">getUserField($dataarray[0],"username",0); ?> in the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[24]
    Casualties0".$dataarray[$i]."$dataarray[25]
    +
    \ No newline at end of file diff --git a/Templates/Notice/17.tpl b/Templates/Notice/17.tpl new file mode 100644 index 00000000..09ffb8f6 --- /dev/null +++ b/Templates/Notice/17.tpl @@ -0,0 +1,69 @@ +readingNotice['data']); +if(isset($dataarray[24]) and $dataarray[24]!=0){$colspan="11";}else{$colspan="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if(isset($dataarray[24]) and $dataarray[24]!=0){ + echo ""; +} +echo ""; +for($i=4;$i<=13;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[24]) and $dataarray[24]!=0){ + echo ""; +} +echo ""; +for($i=14;$i<=23;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[24]) and $dataarray[24]!=0){ + if ($dataarray[25]==0){$tdclass='class="none"';} + echo ""; +} +?> + +
    Defender">getUserField($dataarray[0],"username",0); ?> in the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[24]
    Casualties0".$dataarray[$i]."$dataarray[25]
    +
    \ No newline at end of file diff --git a/Templates/Notice/18.tpl b/Templates/Notice/18.tpl new file mode 100644 index 00000000..3a4c20e0 --- /dev/null +++ b/Templates/Notice/18.tpl @@ -0,0 +1,298 @@ +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 ""; + } +} +if($dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0){ +echo ""; +for($i=152;$i<=161;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + 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]."
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    + + + + + + + + + + + + + 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/18x.tpl b/Templates/Notice/18x.tpl new file mode 100644 index 00000000..bb723cc5 --- /dev/null +++ b/Templates/Notice/18x.tpl @@ -0,0 +1,301 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    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 ""; + } +} +if($dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0){ +echo ""; +for($i=152;$i<=161;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + 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]."
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    + + + + + + + + + + + + + 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/19.tpl b/Templates/Notice/19.tpl new file mode 100644 index 00000000..0ccd2ec4 --- /dev/null +++ b/Templates/Notice/19.tpl @@ -0,0 +1,271 @@ +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 ""; + } +} +if($dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0){ +echo ""; +for($i=152;$i<=161;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +?> +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    Prisoners0".$dataarray[$i]."$dataarray[161]
    + + + + + + + + + + + + + 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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$dataarray[$i]."
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/19x.tpl b/Templates/Notice/19x.tpl new file mode 100644 index 00000000..c1a19186 --- /dev/null +++ b/Templates/Notice/19x.tpl @@ -0,0 +1,274 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    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 ""; + } +} +if($dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0){ +echo ""; +for($i=152;$i<=161;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +?> +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     
    Troops0".$dataarray[$i]."
    Casualties0".$dataarray[$i]."
    Prisoners0".$dataarray[$i]."$dataarray[161]
    + + + + + + + + + + + + + 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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$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"; } ?>
     
    Troops?".$dataarray[$i]."
    Casualties?".$dataarray[$i]."
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/1x.tpl b/Templates/Notice/1x.tpl new file mode 100644 index 00000000..cbb40a4b --- /dev/null +++ b/Templates/Notice/1x.tpl @@ -0,0 +1,403 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/2.tpl b/Templates/Notice/2.tpl new file mode 100644 index 00000000..32c39814 --- /dev/null +++ b/Templates/Notice/2.tpl @@ -0,0 +1,400 @@ +readingNotice['data']); +if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/20.tpl b/Templates/Notice/20.tpl new file mode 100644 index 00000000..3a4c20e0 --- /dev/null +++ b/Templates/Notice/20.tpl @@ -0,0 +1,298 @@ +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 ""; + } +} +if($dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0){ +echo ""; +for($i=152;$i<=161;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + 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]."
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    + + + + + + + + + + + + + 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/20x.tpl b/Templates/Notice/20x.tpl new file mode 100644 index 00000000..bb723cc5 --- /dev/null +++ b/Templates/Notice/20x.tpl @@ -0,0 +1,301 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    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 ""; + } +} +if($dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0){ +echo ""; +for($i=152;$i<=161;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + 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]."
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    + + + + + + + + + + + + + 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/21.tpl b/Templates/Notice/21.tpl new file mode 100644 index 00000000..3a4c20e0 --- /dev/null +++ b/Templates/Notice/21.tpl @@ -0,0 +1,298 @@ +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 ""; + } +} +if($dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0){ +echo ""; +for($i=152;$i<=161;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + 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]."
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    + + + + + + + + + + + + + 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/21x.tpl b/Templates/Notice/21x.tpl new file mode 100644 index 00000000..bb723cc5 --- /dev/null +++ b/Templates/Notice/21x.tpl @@ -0,0 +1,301 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    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 ""; + } +} +if($dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0){ +echo ""; +for($i=152;$i<=161;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + 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]."
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    + + + + + + + + + + + + + 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/22.tpl b/Templates/Notice/22.tpl new file mode 100644 index 00000000..1916eb01 --- /dev/null +++ b/Templates/Notice/22.tpl @@ -0,0 +1,77 @@ +readingNotice['data']); +if(isset($dataarray[14]) and $dataarray[14]!=0){$colspan="11";}else{$colspan="10";} +if($dataarray[15] == 1){ +$image = "peace"; +}else if($dataarray[15] == 2){ +$image = "xmas"; +}else if($dataarray[15] == 3){ +$image = "newy"; +}else{ +$image = "easter"; +} +if($dataarray[15] == 1){ +$message1 = "".$database->getUserField($dataarray[0],"username",0)." visited ".$database->getUserField($dataarray[2],"username",0)."'s troops"; +}else if($dataarray[15] == 2){ +$message1 = "".$database->getUserField($dataarray[0],"username",0)." wishes you Merry Christmas"; +}else if($dataarray[15] == 3){ +$message1 = "".$database->getUserField($dataarray[0],"username",0)." wishes you Happy New Year"; +}else{ +$message1 = "".$database->getUserField($dataarray[0],"username",0)." wishes you Happy Easter"; +} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if(isset($dataarray[14]) and $dataarray[14]!=0){ + echo ""; +} +echo ""; +for($i=4;$i<=13;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[14]) and $dataarray[14]!=0){ + echo ""; +} +?> + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[14]
    Information + Peace + +
    +
    \ No newline at end of file diff --git a/Templates/Notice/2x.tpl b/Templates/Notice/2x.tpl new file mode 100644 index 00000000..cbb40a4b --- /dev/null +++ b/Templates/Notice/2x.tpl @@ -0,0 +1,403 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/3.tpl b/Templates/Notice/3.tpl new file mode 100644 index 00000000..90875dde --- /dev/null +++ b/Templates/Notice/3.tpl @@ -0,0 +1,288 @@ +readingNotice['data']); +if(isset($dataarray[151]) and $dataarray[151]!=0){$colspan="11";}else{$colspan="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if(isset($dataarray[151]) and $dataarray[151]!=0){ + echo ""; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[151]) and $dataarray[151]!=0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[151]) and $dataarray[151]!=0){ + if ($dataarray[152]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0 or $dataarray[162] != 0){ +echo ""; +for($i=153;$i<=162;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[151]) and $dataarray[151]!=0){ + if ($dataarray[163]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; ?> + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[151]
    Casualties0".$dataarray[$i]."$dataarray[152]
    Prisoners0".$dataarray[$i]."$dataarray[163]
    + + + + + + + + + + + + + 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/3x.tpl b/Templates/Notice/3x.tpl new file mode 100644 index 00000000..90a04826 --- /dev/null +++ b/Templates/Notice/3x.tpl @@ -0,0 +1,289 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +if($dataarray[151]!='' and $dataarray[151]!=0){$colspan="11";}else{$colspan="10";} +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if ($dataarray[151]!="" and $dataarray[151]!=0){ + echo ""; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if ($dataarray[151]!="" and $dataarray[151]!=0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if ($dataarray[151]!="" and $dataarray[151]!=0){ + if ($dataarray[152]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0 or $dataarray[161] != 0 or $dataarray[162] != 0){ +echo ""; +for($i=153;$i<=162;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[151]) and $dataarray[151]!=0){ + if ($dataarray[163]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; ?> +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[151]
    Casualties0".$dataarray[$i]."$dataarray[152]
    Prisoners0".$dataarray[$i]."$dataarray[163]
    + + + + + + + + + + + + + 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..32c39814 --- /dev/null +++ b/Templates/Notice/4.tpl @@ -0,0 +1,400 @@ +readingNotice['data']); +if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/4x.tpl b/Templates/Notice/4x.tpl new file mode 100644 index 00000000..cbb40a4b --- /dev/null +++ b/Templates/Notice/4x.tpl @@ -0,0 +1,403 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/5.tpl b/Templates/Notice/5.tpl new file mode 100644 index 00000000..32c39814 --- /dev/null +++ b/Templates/Notice/5.tpl @@ -0,0 +1,400 @@ +readingNotice['data']); +if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/5x.tpl b/Templates/Notice/5x.tpl new file mode 100644 index 00000000..cbb40a4b --- /dev/null +++ b/Templates/Notice/5x.tpl @@ -0,0 +1,403 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/6.tpl b/Templates/Notice/6.tpl new file mode 100644 index 00000000..32c39814 --- /dev/null +++ b/Templates/Notice/6.tpl @@ -0,0 +1,400 @@ +readingNotice['data']); +if(isset($dataarray[147]) and $dataarray[147]!=0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/6x.tpl b/Templates/Notice/6x.tpl new file mode 100644 index 00000000..cbb40a4b --- /dev/null +++ b/Templates/Notice/6x.tpl @@ -0,0 +1,403 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";} +if(isset($dataarray[149]) and $dataarray[149]!=0){$colspan2="11";}else{$colspan2="10";} +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    Information + + +
    Bounty +
    Lumber | Clay | Iron | Crop
    carry
    +
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=35;$i<=44;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=45;$i<=54;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '1' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=56;$i<=65;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=66;$i<=75;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '2' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=77;$i<=86;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=87;$i<=96;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '3' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=98;$i<=107;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=108;$i<=117;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '4' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + + + + + + + + + + + + + + + + getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=119;$i<=128;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + echo ""; +} +echo ""; +for($i=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if($targettribe == '5' and isset($dataarray[149]) and $dataarray[149]!=0){ + if ($dataarray[150]==0){$tdclass1='class="none"';} + echo ""; +} +?> +
    Defender + + getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>getUserField($dataarray[28],"id",0).'">'.$database->getUserField($dataarray[28],"username",0).' from the village '.stripslashes($dataarray[30]).''; } else { echo"Reinforcement"; } ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[149]
    Casualties0".$dataarray[$i]."$dataarray[150]
    + + +
    \ No newline at end of file diff --git a/Templates/Notice/7.tpl b/Templates/Notice/7.tpl new file mode 100644 index 00000000..d75ffc91 --- /dev/null +++ b/Templates/Notice/7.tpl @@ -0,0 +1,398 @@ +readingNotice['data']); +if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    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=118;$i<=127;$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=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=139;$i<=148;$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/7x.tpl b/Templates/Notice/7x.tpl new file mode 100644 index 00000000..46b7d845 --- /dev/null +++ b/Templates/Notice/7x.tpl @@ -0,0 +1,403 @@ +getNotice2($_GET['id'], 'topic'); +$time = $database->getNotice2($_GET['id'], 'time'); +$data = $database->getNotice2($_GET['id'], 'data'); +$dataarray = explode(",",$data); +if(isset($dataarray[147]) and $dataarray[147] != 0){$colspan="11";}else{$colspan="10";} +?> + + + + + + + + + procMtime($time); ?> + + + + + + +
    Subject:
    Sent:on at ".$date[1]; ?> hour
    + + + + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} + +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} + +echo ""; +for($i=3;$i<=12;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + echo ""; +} +echo ""; +for($i=13;$i<=22;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if (isset($dataarray[147]) and $dataarray[147] != 0){ + if ($dataarray[148]==0){$tdclass='class="none"';} + echo ""; +} +if($dataarray[151] != 0 or $dataarray[152] != 0 or $dataarray[153] != 0 or $dataarray[154] != 0 or $dataarray[155] != 0 or $dataarray[156] != 0 or $dataarray[157] != 0 or $dataarray[158] != 0 or $dataarray[159] != 0 or $dataarray[160] != 0){ +echo ""; +for($i=151;$i<=160;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +if(isset($dataarray[147]) and $dataarray[147]!=0){ + if ($dataarray[161]==0){$tdclass='class="none"';} + echo ""; +} +} +echo ""; +if ($dataarray[139]!='' and $dataarray[140]!=''){ //ram +?> + + + + + + + + + + +
    Attacker">getUserField($dataarray[0],"username",0); ?> from the village getVillageField($dataarray[1],"name"); ?>
     \"Hero\"
    Troops0".$dataarray[$i]."$dataarray[147]
    Casualties0".$dataarray[$i]."$dataarray[148]
    Prisoners0".$dataarray[$i]."$dataarray[161]
    Information + Ram + +
    Information + Catapult + +
    Information + Chief + +
    Information + + +
    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=118;$i<=127;$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=129;$i<=138;$i++) { + if($dataarray[$i] == 0) { + echo ""; + } + else { + echo ""; + } +} +echo ""; +for($i=139;$i<=148;$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..b9974bae --- /dev/null +++ b/Templates/Notice/8.tpl @@ -0,0 +1,56 @@ +readingNotice['data']); +if($dataarray[13]!='' or $dataarray!=0){$colspan="11";}else{$colspan="10";} +?> + + + + + + + + + procMtime($message->readingNotice['time']); ?> + + + + + + +
    Subject:readingNotice['topic']; ?>
    Sent:on at ".$date[1]; ?>
    + + + + + + +getUnitName($i)."\" alt=\"".$technology->getUnitName($i)."\" />"; +} +if($dataarray[13]!=0){ +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 ""; + $unitarray['hero'] = 1; +} + +?> + + +
    sender">getUserField($dataarray[1],"username",0); ?> from the village getMapCheck($dataarray[0])."'>".$database->getVillageField($dataarray[0],name).""; ?>
     
    Troops0".$dataarray[$i]."".$dataarray[13]."
    upkeep +getUpkeep($unitarray,$dataarray[2]); ?>Cropper hour
    diff --git a/Templates/Notice/9.tpl b/Templates/Notice/9.tpl new file mode 100644 index 00000000..88229cea --- /dev/null +++ b/Templates/Notice/9.tpl @@ -0,0 +1,4 @@ +getNotice2($_GET['id'], 'archive'); +include("".$archive.".tpl"); +?> \ No newline at end of file diff --git a/Templates/Notice/9x.tpl b/Templates/Notice/9x.tpl new file mode 100644 index 00000000..97750ece --- /dev/null +++ b/Templates/Notice/9x.tpl @@ -0,0 +1,4 @@ +getNotice2($_GET['id'], 'archive'); +include("".$archive."x.tpl"); +?> \ No newline at end of file diff --git a/Templates/Notice/all.tpl b/Templates/Notice/all.tpl new file mode 100644 index 00000000..c1169bca --- /dev/null +++ b/Templates/Notice/all.tpl @@ -0,0 +1,97 @@ + +
    + + + + + + + + + + + + + +noticearray) >= $i) { + echo " + "; + } + $name++; + } + if(count($message->noticearray) == 0) { + echo ""; + } + ?> + + +
    Subject: +Sent
    uid."'") 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']; + if($type==15 or $type==16 or $type==17){ + $type = $type-11; + echo "\"".$noticeClass[$type]."\""; + }else if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){ + echo "\"".$noticeClass[$type]."\""; + }else{ + 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/.htaccess b/Templates/Plus/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Plus/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/Plus/1.tpl b/Templates/Plus/1.tpl new file mode 100644 index 00000000..22305d73 --- /dev/null +++ b/Templates/Plus/1.tpl @@ -0,0 +1,439 @@ + + + + +

    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..44ff814e --- /dev/null +++ b/Templates/Plus/10.tpl @@ -0,0 +1,55 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") 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($session->sit == 0) { +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyGold)) { + +if($golds['b2'] < time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b2 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set b2 = '".($golds['b2']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); +} + + +$done1 = "+25% Production: Clay"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `id`='".$session->uid."'") 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"; +} +} +} + + + + + + +header("Location: plus.php?id=3"); +}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..3914f63a --- /dev/null +++ b/Templates/Plus/11.tpl @@ -0,0 +1,55 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") 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($session->sit == 0) { +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyGold)) { + +if($golds['b3'] < time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b3 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set b3 = '".($golds['b3']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); +} + + +$done1 = "+25% Production: Iron"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `id`='".$session->uid."'") 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"; +} +} +} + + + + + + +header("Location: plus.php?id=3"); +}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..3142525d --- /dev/null +++ b/Templates/Plus/12.tpl @@ -0,0 +1,55 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") 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($session->sit == 0) { +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyGold)) { + +if($golds['b4'] < time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b4 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set b4 = '".($golds['b4']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); +} + + +$done1 = "+25% Production: Crop"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `id`='".$session->uid."'") 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"; +} +} +} + + + + + + +header("Location: plus.php?id=3"); +}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..2c2e977a --- /dev/null +++ b/Templates/Plus/13.tpl @@ -0,0 +1,48 @@ + \ No newline at end of file diff --git a/Templates/Plus/14.tpl b/Templates/Plus/14.tpl new file mode 100644 index 00000000..5bab34aa --- /dev/null +++ b/Templates/Plus/14.tpl @@ -0,0 +1,33 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") 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 `id`='".$session->uid."'") 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()); + +} + +header("Location: plus.php?id=3"); +}else{ +header("Location: banned.php"); +} + ?> \ No newline at end of file diff --git a/Templates/Plus/15.tpl b/Templates/Plus/15.tpl new file mode 100644 index 00000000..4f3f1e1a --- /dev/null +++ b/Templates/Plus/15.tpl @@ -0,0 +1,12 @@ +access != BANNED){ +if($session->gold >= 100 && $session->sit == 0 && $session->goldclub == 0) { +mysql_query("UPDATE ".TB_PREFIX."users set goldclub = 1, gold = gold - 100 where `id`='".$session->uid."'"); +} +header("Location: plus.php?id=3"); + +}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..3f566b45 --- /dev/null +++ b/Templates/Plus/3.tpl @@ -0,0 +1,487 @@ +uid."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + +include("Templates/Plus/pmenu.tpl"); + + + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") 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 `id`='".$session->uid."'") 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 + +uid."'") 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'; + } +} +} + ?> + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Travian Gold Club
    DescriptionDurationGoldAction
    +Gold Club
    + + +
    Whole game round + Gold100 + +uid."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + +if (mysql_num_rows($MyGold)) { + if($golds['goldclub']==0){ + if($golds['gold'] > 99) { + echo ' + Activate'; +}else{ + echo ' + too little gold'; + +}} else { + echo 'On';} +} + ?> +
    + \ 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..fa8e59cd --- /dev/null +++ b/Templates/Plus/5.tpl @@ -0,0 +1,74 @@ + + +

    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: +
    + anmelden.php?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.

    + + + + + + + + + + + + + + + + + + + getInvitedUser($session->uid); + if(count($invite) > 0){ + foreach($invite as $invited) { + $varray = $database->getProfileVillages($invited['id']); + $totalpop = 0; + foreach($varray as $vil) { + $totalpop += $vil['pop']; + } + ?> + + + + + + + + + + + + + + + +
    Players brought in
    UIDMember 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..7b957301 --- /dev/null +++ b/Templates/Plus/7.tpl @@ -0,0 +1,68 @@ +access!=BANNED){ + $ww = 1; + foreach($building->buildArray as $jobs) { + if($jobs['wid']==$village->wid){ + $wwvillage = $database->getResourceLevel($jobs['wid']); + if($wwvillage['f99t']!=40){ + $level = $jobs['level']; + if($jobs['type'] != 25 AND $jobs['type'] != 26 AND $jobs['type'] != 40) { + $finish = 1; + $resource = $building->resourceRequired($jobs['field'],$jobs['type']); + if($jobs['master'] == 0){ + $q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = ".$jobs['level'].", f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid']; + }else{ + $villwood = $database->getVillageField($jobs['wid'],'wood'); + $villclay = $database->getVillageField($jobs['wid'],'clay'); + $villiron = $database->getVillageField($jobs['wid'],'iron'); + $villcrop = $database->getVillageField($jobs['wid'],'crop'); + $type = $jobs['type']; + $buildarray = $GLOBALS["bid".$type]; + $buildwood = $buildarray[$level]['wood']; + $buildclay = $buildarray[$level]['clay']; + $buildiron = $buildarray[$level]['iron']; + $buildcrop = $buildarray[$level]['crop']; + if($buildwood < $villwood && $buildclay < $villclay && $buildiron < $villiron && $buildcrop < $villcrop){ + $enought_res = 1; + $q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = ".$jobs['level'].", f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid']; + } + } + if($database->query($q) && ($enought_res == 1 or $jobs['master'] == 0)) { + $database->modifyPop($jobs['wid'],$resource['pop'],0); + $database->addCP($jobs['wid'],$resource['cp']); + $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['field'] >= 19 && ($session->tribe == 1 || $session->tribe == 5 || ALLOW_ALL_TRIBE)) || (!ALLOW_ALL_TRIBE && $session->tribe != 1 && $session->tribe != 5)) { $innertimestamp = $jobs['timestamp']; } + } + } + } + } + $wwvillage1 = $database->getResourceLevel($village->wid); + if($wwvillage1['f99t']!=40){ + $ww = 0; + } + if($ww == 0){ + $database->finishDemolition($village->wid); + $technology->finishTech(); + $logging->goldFinLog($village->wid); + $database->modifyGold($session->uid,2,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: plus.php?id=3"); + }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..d41868e6 --- /dev/null +++ b/Templates/Plus/8.tpl @@ -0,0 +1,56 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") 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($session->sit == 0) { +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 `id`='".$session->uid."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set plus = '".($golds['12']+PLUS_TIME)."' where `id`='".$session->uid."'") or die(mysql_error()); +} + + +$done1 = "  Plus Account"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-10)." where `id`='".$session->uid."'") 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"; +} +} +} + + + + + + +header("Location: plus.php?id=3"); +}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..cffba573 --- /dev/null +++ b/Templates/Plus/9.tpl @@ -0,0 +1,55 @@ +access != BANNED){ + $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysql_error()); + $golds = mysql_fetch_array($MyGold); + + $MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") 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($session->sit == 0) { +if (mysql_num_rows($MyGold)) { + if($golds['6'] > 2) { + +if (mysql_num_rows($MyGold)) { + +if($golds['b1'] < time()) { +mysql_query("UPDATE ".TB_PREFIX."users set b1 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); +} else { +mysql_query("UPDATE ".TB_PREFIX."users set b1 = '".($golds['b1']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysql_error()); +} + + +$done1 = "+25% Production: Lumber"; + mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `id`='".$session->uid."'") 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"; +} +} +} + + + + + + +header("Location: plus.php?id=3"); +}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..cd42fd83 --- /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 `id`='".$session->uid."'") 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 `id`='".$session->uid."'") 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 `id`='".$session->uid."'") 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 `id`='".$session->uid."'") 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/invite.tpl b/Templates/Plus/invite.tpl new file mode 100644 index 00000000..dd48269a --- /dev/null +++ b/Templates/Plus/invite.tpl @@ -0,0 +1,80 @@ + + +

    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){ ?> +
    +

    +

    Own text:

    +

    +
    + +

    » Invite by e-mail

    + +

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

    Your personal REF Link: +
    + anmelden.php?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.

    + + + + + + + + + + + + + + + + + + + + + + + getInvitedUser($session->uid); + if(count($invite) > 0){ + foreach($invite as $invited) { + $varray = $database->getProfileVillages($invited['id']); + $totalpop = 0; + foreach($varray as $vil) { + $totalpop += $vil['pop']; + } + ?> + + + + + + + + + + + + + + +
    Players brought in
    WorldUIDMember sinceInhabitantsVillages
    You have not brought in any new players yet.
    + 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/.htaccess b/Templates/Profile/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Profile/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/Profile/account.tpl b/Templates/Profile/account.tpl new file mode 100644 index 00000000..a84d46bf --- /dev/null +++ b/Templates/Profile/account.tpl @@ -0,0 +1,144 @@ +

    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..d069d2bb --- /dev/null +++ b/Templates/Profile/graphic.tpl @@ -0,0 +1,106 @@ + +

    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
    + uid); + } + ?> \ No newline at end of file diff --git a/Templates/Profile/medal.php b/Templates/Profile/medal.php new file mode 100644 index 00000000..fe10cf18 --- /dev/null +++ b/Templates/Profile/medal.php @@ -0,0 +1,131 @@ +gpack == null || GP_ENABLE == false) { + $gpack= GP_LOCATE; + } else { + $gpack= $session->gpack; + } + + +//de bird +if($displayarray['protect'] > time()){ +$secondsDiff = $displayarray['protect'] - time(); +$remainingDay = floor($secondsDiff/60/60/24); +$remainingHour = floor(($secondsDiff-($remainingDay*60*60))/3600); +$remainingMinutes = floor(($secondsDiff-($remainingDay*60*60)-($remainingHour*60*60))/60); +$remainingSeconds = floor(($secondsDiff-($remainingDay*60*60)-($remainingHour*60*60))-($remainingMinutes*60)); +if(strlen($remainingSeconds) <= 1){ +$nul1 = "0";} +if(strlen($remainingMinutes) <= 1){ +$nul2 = "0";} +if(strlen($remainingHour) <= 1){ $nul3 = "0"; } +$left="$nul3$remainingHour:$nul2$remainingMinutes:$nul1$remainingSeconds"; +$profiel = preg_replace("/\[#0]/is",'', $profiel, 1); +} else { +$geregistreerd=date('d-m-Y', ($displayarray['regtime'])); +$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/menu2.tpl b/Templates/Profile/menu2.tpl new file mode 100644 index 00000000..736564d1 --- /dev/null +++ b/Templates/Profile/menu2.tpl @@ -0,0 +1,14 @@ +
    + >Overview + | Profile + | Preferences + | Account + + | Graphic pack + + +
    \ No newline at end of file diff --git a/Templates/Profile/notfound.tpl b/Templates/Profile/notfound.tpl new file mode 100644 index 00000000..dc989042 --- /dev/null +++ b/Templates/Profile/notfound.tpl @@ -0,0 +1,2 @@ +procRankReq($_GET); +$_GET['uid'] = preg_replace("/[^0-9]/","",$_GET['uid']); +$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) { +if($session->sit == 0){ +include("menu.tpl"); +}else{ +include("menu2.tpl"); +} +} +?> + + + + + + + + + + + + + + + + + + + + +
    Player
    DetailsDescription
    + + +"; } ?> + + + + + + + + + + + + + + + + + + + + + + + + + "; + } + //Gender + if(isset($displayarray['gender']) && $displayarray['gender'] != 0) { + $gender = ($displayarray['gender']== 1)? "Male" : "Female"; + echo ""; + } + //Location + if($displayarray['location'] != "") { + echo ""; + } + ?> + + + + + uid) { + if($session->sit == 0){ + echo ""; + }else{ + echo ""; + } + } else { + echo ""; + } + ?> + + + + + +
    Banned
    RankgetUserRank($displayarray['id']); ?>
    Tribe
    AlliancegetAllianceName($displayarray['alliance']); + echo "".$displayalliance.""; + } ?>
    Villages
    Population
    Age$age
    Gender".$gender."
    Location".$displayarray['location']."
    » Change profile » 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..31909560 --- /dev/null +++ b/Templates/Profile/preference.tpl @@ -0,0 +1,249 @@ +removeLinks($_GET['del'],$session->uid); + header("Location: spieler.php?s=2"); +} +################################################################################# +## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ## +## --------------------------------------------------------------------------- ## +## Filename links.tpl ## +## Developed by: Slim, Manuel Mannhardt < manuel_mannhardt@web.de > ## +## 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_real_escape_string($value); + } + + if(substr($key, 0, 2) == 'id') { + $i = substr($key, 2); + $links[$i]['id'] = mysql_real_escape_string($value); + } + + if(substr($key, 0, 8) == 'linkname') { + $i = substr($key, 8); + $links[$i]['linkname'] = mysql_real_escape_string($value); + } + + if(substr($key, 0, 8) == 'linkziel') { + $i = substr($key, 8); + $links[$i]['linkziel'] = mysql_real_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; + if($session->access!=BANNED){ + $query = mysql_query('INSERT INTO `' . TB_PREFIX . 'links` (`userid`, `name`, `url`, `pos`) VALUES (' . $userid . ', \'' . $link['linkname'] . '\', \'' . $link['linkziel'] . '\', ' . $link['nr'] . ')'); + }else{ + header("Location: banned.php"); + } + } 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..783d2793 --- /dev/null +++ b/Templates/Profile/profile.tpl @@ -0,0 +1,146 @@ +

    Player profile

    + +getProfileMedal($session->uid); + +include("menu.tpl"); ?> +
    + + + + + + + + + + + + + + + + + + + userinfo['birthday'] != 0) { + $bday = explode("-",$session->userinfo['birthday']); + } + else { + $bday = array('','',''); + } + ?> + + getProfileVillages($session->uid); + $rowspan = 7+count($varray); + ?> + + + + + + + + + + "; + } + ?> + +
    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/.htaccess b/Templates/Ranking/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Ranking/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/Ranking/alliance.tpl b/Templates/Ranking/alliance.tpl new file mode 100644 index 00000000..f48e3bcd --- /dev/null +++ b/Templates/Ranking/alliance.tpl @@ -0,0 +1,57 @@ + +

    The alliance "" does not exist.

    + + + + + + + + + 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..9af9ee68 --- /dev/null +++ b/Templates/Ranking/alliance_attack.tpl @@ -0,0 +1,57 @@ + +

    The alliance "" does not exist.

    + + + + + + + + + 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..8551bc94 --- /dev/null +++ b/Templates/Ranking/alliance_defend.tpl @@ -0,0 +1,57 @@ + +

    The alliance "" does not exist.

    + + + + + + + + + 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..e72814ee --- /dev/null +++ b/Templates/Ranking/ally_top10.tpl @@ -0,0 +1,237 @@ + alliance."' ORDER BY ap DESC Limit 1"); + ?> + + + + + + +
    Top 10 Alliances
    + + + + + + + + + + + + + +alliance) { + $place = $i; + } + if($row['id']==$session->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']."
    ".$place." ".$row['tag']."".$row['tag']."".$row['ap']."
    + + +alliance."' ORDER BY dp DESC Limit 1"); +?> + + + + + + + + + + + + + +alliance) { + $place1 = $i; + } + if($row['id']==$session->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']."
    ".$place1." ".$row['tag']."".$row['tag']."".$row['dp']."
    + +alliance."' ORDER BY clp DESC Limit 1"); +?> +
    + + + + + + + + + + + + + +alliance) { + $place2 = $i; + } + if($row['id']==$session->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.AlliancePopulation
    ".$i++.". ".$row['tag']."".$row['clp']."
    ".$place2." ".$row['tag']."".$row['tag']."".$row['clp']."
    +alliance."' ORDER BY RR DESC Limit 1"); +?> + + + + + + + + + + + + + += 0) { + if($row['id']==$session->alliance) { + $place3 = $i; + } + if($row['id']==$session->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']."
    ".$place3." ".$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..2bc7ce71 --- /dev/null +++ b/Templates/Ranking/general.tpl @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Players
    Registered players
    Active players
    Players online
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Tribes
    TribeRegisteredPercent
    Romans
    Teutons
    Gauls
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Miscellaneous
    AttacksCasualtiesDate
    getAttackByDate(time()); ?>getAttackCasualties(time()); ?>
    getAttackByDate(time()-(86400*1)); ?>getAttackCasualties(time()-(86400*1)); ?>
    getAttackByDate(time()-(86400*2)); ?>getAttackCasualties(time()-(86400*2)); ?>
    getAttackByDate(time()-(86400*3)); ?>getAttackCasualties(time()-(86400*3)); ?>
    getAttackByDate(time()-(86400*4)); ?>getAttackCasualties(time()-(86400*4)); ?>
    getAttackByDate(time()-(86400*5)); ?>getAttackCasualties(time()-(86400*5)); ?>
    getAttackByDate(time()-(86400*6)); ?>getAttackCasualties(time()-(86400*6)); ?>
    + + + diff --git a/Templates/Ranking/heroes.tpl b/Templates/Ranking/heroes.tpl new file mode 100644 index 00000000..2d708188 --- /dev/null +++ b/Templates/Ranking/heroes.tpl @@ -0,0 +1,75 @@ + | +| Copyright: TravianX Project All rights reserved | +\** --------------------------------------------------- **/ + if(!is_numeric($_SESSION['search'])) { + ?> +

    The user "" does not exist or has no hero.

    + + +
    + + + + + + + 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..0b377983 --- /dev/null +++ b/Templates/Ranking/overview.tpl @@ -0,0 +1,69 @@ + +

    The user "" does not exist.

    + + + + + + + + + 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..6332cb17 --- /dev/null +++ b/Templates/Ranking/player_1.tpl @@ -0,0 +1,69 @@ + +

    The user "" does not exist.

    + + + + + + + + + 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($database->getUserByTribe(1)) > 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..4808d978 --- /dev/null +++ b/Templates/Ranking/player_2.tpl @@ -0,0 +1,69 @@ + +

    The user "" does not exist.

    + + + + + + + + + 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($database->getUserByTribe(2)) > 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..f48365b9 --- /dev/null +++ b/Templates/Ranking/player_3.tpl @@ -0,0 +1,69 @@ + +

    The user "" does not exist.

    + + + + + + + + + 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($database->getUserByTribe(3)) > 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..0318bf2a --- /dev/null +++ b/Templates/Ranking/player_attack.tpl @@ -0,0 +1,61 @@ + +

    The user "" does not exist.

    + + + + + + + + + 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..66f81d90 --- /dev/null +++ b/Templates/Ranking/player_defend.tpl @@ -0,0 +1,63 @@ + +

    The user "" does not exist.

    + +
    + 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..653b8195 --- /dev/null +++ b/Templates/Ranking/player_top10.tpl @@ -0,0 +1,236 @@ + 5 AND tribe<=3 AND tribe > 0 ORDER BY ap DESC, id DESC Limit 10"); + $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = '".$session->uid."' ORDER BY ap DESC Limit 1"); + ?> + + + + + + +
    Top 10 players
    + + + + + + + + + + + + + +uid) { + if($row['id']==$session->uid) { + $place = $i; + } + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + +uid) { + echo ""; } else { echo ""; } + echo ""; + if($row['id'] == $session->uid) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } +?> + +
    Instructions + Attackers of the week
    No.PlayerPoints
    ".$i++.". ".$row['username']."".$row['ap']."
    ".$place." ".$row['username']."".$row['username']."".$row['ap']."
    + + + 5 AND tribe<=3 AND tribe > 0 ORDER BY dp DESC, id DESC Limit 10"); + $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = '".$session->uid."' ORDER BY dp DESC Limit 1"); +?> + + + + + + + + + + + + + +uid) { + $place1 = $i; + } + if($row['id']==$session->uid) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + + +uid) { + echo ""; } else { echo ""; } + echo ""; + if($row['id'] == $session->uid) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } +?> + +
    Instructions + Defenders of the week
    No.PlayerPoints
    ".$i++.". ".$row['username']."".$row['dp']."
    ".$place1." ".$row['username']."".$row['username']."".$row['dp']."
    + + 5 AND tribe<=3 AND tribe > 0 ORDER BY clp DESC, id DESC Limit 10"); + $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = '".$session->uid."' ORDER BY clp DESC Limit 1"); +?> +
    + + + + + + + + + + + + + +uid) { + $place2 = $i; + } + if($row['id']==$session->uid) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } +?> + + + +uid) { + echo ""; } else { echo ""; } + echo ""; + if($row['id'] == $session->uid) { + echo ""; } else { echo ""; } echo ""; + echo ""; + } +?> + +
    Instructions + Climbers of the week
    No.PlayerRanks
    ".$i++.". ".$row['username']."".$row['clp']."
    ".$place2." ".$row['username']."".$row['username']."".$row['clp']."
    + 5 AND tribe<=3 AND tribe > 0 ORDER BY RR DESC, id DESC Limit 10"); + $result2 = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE id = '".$session->uid."' ORDER BY RR DESC Limit 1"); +?> + + + + + + + + + + + + + += 0) { + if($row['id']==$session->uid) { + $place3 = $i; + } + if($row['id']==$session->uid) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + echo ""; + echo ""; + } + } +?> + + + +uid) { + echo ""; } else { echo ""; } + echo ""; + if($row['id']==$session->uid) { + echo ""; } else { echo ""; } + echo ""; + echo ""; + } + + mysql_close($con); +?> + +
    Instructions + Robbers of the week
    No.PlayerResources
    ".$i++.". ".$row['username']."".$row['RR']."
    ".$place3." ".$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..a6ed8d42 --- /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..fe7585bf --- /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..7e7aa6ca --- /dev/null +++ b/Templates/Simulator/def_end.tpl @@ -0,0 +1,73 @@ + + + + + + + +
    +
    + +
    +
    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)) { + if($_POST['wall2'] != 0){ + $wall2 = $_POST['wall2']; + }else{ + $wall2 = 0; + } + echo " + + + + + + "; + } + if(in_array(3,$target)) { + if($_POST['wall3'] != 0){ + $wall3 = $_POST['wall3']; + }else{ + $wall3 = 0; + } + 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/.htaccess b/Templates/Tutorial/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/Tutorial/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/Tutorial/1.tpl b/Templates/Tutorial/1.tpl new file mode 100644 index 00000000..68cd07a2 --- /dev/null +++ b/Templates/Tutorial/1.tpl @@ -0,0 +1,69 @@ + +

    (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..9266ee3a --- /dev/null +++ b/Templates/Tutorial/2.tpl @@ -0,0 +1,69 @@ + +

    (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..0342c537 --- /dev/null +++ b/Templates/Tutorial/3.tpl @@ -0,0 +1,69 @@ + +

    (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..a90f0776 --- /dev/null +++ b/Templates/Tutorial/4.tpl @@ -0,0 +1,65 @@ + +

    (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..3fe6888e --- /dev/null +++ b/Templates/Tutorial/5.tpl @@ -0,0 +1,73 @@ + +

    (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/.htaccess b/Templates/a2b/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/a2b/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/a2b/attack.tpl b/Templates/a2b/attack.tpl new file mode 100644 index 00000000..9692246c --- /dev/null +++ b/Templates/a2b/attack.tpl @@ -0,0 +1,458 @@ +getCoor($village->wid); + +$from = array('x'=>$eigen['x'], 'y'=>$eigen['y']); + +$to = array('x'=>$coor['x'], 'y'=>$coor['y']); + + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } +$time = round($generator->procDistanceTime($from,$to,300,0)/$fastertroops); +$foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); +if(count($foolartefact) > 0){ +foreach($foolartefact as $arte){ +if($arte['bad_effect'] == 1){ +$time *= $arte['effect2']; +}else{ +$time /= $arte['effect2']; +$time = round($time); +} +} +} + +// 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) { +if ($process['c'] != 2){ +$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); +?> + +

    + + + + + + + + + + + + + + + + + + + + + + + + +
    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; + + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $time = round($generator->procDistanceTime($from,$to,min($speeds),1)/$fastertroops); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $time *= $arte['effect2']; + }else{ + $time /= $arte['effect2']; + $time = round($time); + } + } + } + + ?> + + + + + + + + + +
    ">
    \"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'];} ?>
    Options">Scout 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/attack_5.tpl b/Templates/a2b/attack_5.tpl new file mode 100644 index 00000000..e725e589 --- /dev/null +++ b/Templates/a2b/attack_5.tpl @@ -0,0 +1,448 @@ +getCoor($village->wid); + +$from = array('x'=>$eigen['x'], 'y'=>$eigen['y']); + +$to = array('x'=>$coor['x'], 'y'=>$coor['y']); + + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } +$time = round($generator->procDistanceTime($from,$to,300,0)/$fastertroops); +$foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); +if(count($foolartefact) > 0){ +foreach($foolartefact as $arte){ +if($arte['bad_effect'] == 1){ +$time *= $arte['effect2']; +}else{ +$time /= $arte['effect2']; +$time = round($time); +} +} +} +// 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']; $scout=1; } + if (!isset($process['t4']) || $process['t4'] == ''){ $t4='0'; }else{ $t4=$process['t4']; } + 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']; } + $totalunits =$process['t1']+$process['t2']+$process['t4']+$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 = "Normal attack"; + +}else{ + +$actionType = "Raid"; + +} + +?> + +

    + +
    + + + + + + + + + + + + + + + + + + + + + + + +
    Destination: (|)
    Owner:getUserField($process['2'],'username',0); ?>
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0) + + { + + $speeds[] = ${'u'.(($session->tribe-5)*10+$i)}['speed']; + + if($i != 4) + + $scout = 0; + + } + + + + } + + } + + + + if($scout) + + $process['c'] = 1; + + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $time = round($generator->procDistanceTime($from,$to,min($speeds),1)/$fastertroops); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $time *= $arte['effect2']; + }else{ + $time /= $arte['effect2']; + $time = round($time); + } + } + } + ?> + + + + + + + + + +
    ">
    PikemanThorned WarriorGuardsman></td>
+
+                        <td><img src=AxeriderNatarian KnightWar ElephantBalistaNatarian EmperorSettler
    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'];} ?>
    Options">Scout 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
    + +
    + + + + + + + + + + + + +

    + + +
    + + \ No newline at end of file diff --git a/Templates/a2b/newdorf.tpl b/Templates/a2b/newdorf.tpl new file mode 100644 index 00000000..728969ef --- /dev/null +++ b/Templates/a2b/newdorf.tpl @@ -0,0 +1,99 @@ +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']); + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } +$time = round($generator->procDistanceTime($from,$to,300,0)/$fastertroops); +$foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); +if(count($foolartefact) > 0){ +foreach($foolartefact as $arte){ +if($arte['bad_effect'] == 1){ +$time *= $arte['effect2']; +}else{ +$time /= $arte['effect2']; +$time = round($time); +} +} +} +echo '
    ';
    +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 + Lumber750 | + Clay750 | + Iron750 | + Crop750
    +

    +getProfileVillages($session->uid)); +$need_cps = ${'cp'.$mode}[$total+1]; +$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..6b8b4b34 --- /dev/null +++ b/Templates/a2b/search.tpl @@ -0,0 +1,58 @@ + + + + + + + + + + + + + + + +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..0ba80971 --- /dev/null +++ b/Templates/a2b/sendback_1.tpl @@ -0,0 +1,190 @@ +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
    + + + "; + + ?> + + "; + + ?> + "; + + ?> + + + "; + + ?> + + + "; + + ?> + + "; + + ?> + "; + + ?> + "; + + ?> + + + "; + + ?> + "; + if($enforce['hero']>0){ + ?> + "; + } + ?> + + +
    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'].")Hero + (".$enforce['hero'].")
    + + + + + + + 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']; + } + } + } + if ($enforce['hero']>0){ + $qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$to['owner'].""; + $resulth = mysql_query($qh); + $hero_f=mysql_fetch_array($resulth); + $hero_unit=$hero_f['unit']; + $speeds[] = $GLOBALS['u'.$hero_unit]['speed']; + } + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $time = round($generator->procDistanceTime($fromCor,$toCor,min($speeds),1)/$fastertroops); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $time *= $arte['effect2']; + }else{ + $time /= $arte['effect2']; + $time = round($time); + } + } + } + ?> + + + + +
    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..e7321208 --- /dev/null +++ b/Templates/a2b/sendback_2.tpl @@ -0,0 +1,191 @@ +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
    + + + + "; + + ?> + + "; + + ?> + "; + + ?> + + + "; + + ?> + + + "; + + ?> + + "; + + ?> + "; + + ?> + "; + + ?> + + + "; + + ?> + "; + if($enforce['hero']>0){ + ?> + "; + } + ?> + + +
    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'].")Hero + (".$enforce['hero'].")
    + + + + + + + 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']; + } + } + } + if ($enforce['hero']>0){ + $qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$to['owner'].""; + $resulth = mysql_query($qh); + $hero_f=mysql_fetch_array($resulth); + $hero_unit=$hero_f['unit']; + $speeds[] = $GLOBALS['u'.$hero_unit]['speed']; + } + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $time = round($generator->procDistanceTime($fromCor,$toCor,min($speeds),1)/$fastertroops); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $time *= $arte['effect2']; + }else{ + $time /= $arte['effect2']; + $time = round($time); + } + } + } + ?> + + + + +
    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..abd510b3 --- /dev/null +++ b/Templates/a2b/sendback_3.tpl @@ -0,0 +1,190 @@ +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
    + + + + "; + + ?> + + "; + + ?> + "; + + ?> + + "; + + ?> + + + "; + + ?> + + "; + + ?> + "; + + ?> + "; + + ?> + + + "; + + ?> + "; + if($enforce['hero']>0){ + ?> + "; + } + ?> + + +
    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'].")Hero + (".$enforce['hero'].")
    + + + + + + + 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']; + } + } + } + if ($enforce['hero']>0){ + $qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$to['owner'].""; + $resulth = mysql_query($qh); + $hero_f=mysql_fetch_array($resulth); + $hero_unit=$hero_f['unit']; + $speeds[] = $GLOBALS['u'.$hero_unit]['speed']; + } + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $time = round($generator->procDistanceTime($fromCor,$toCor,min($speeds),1)/$fastertroops); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $time *= $arte['effect2']; + }else{ + $time /= $arte['effect2']; + $time = round($time); + } + } + } + ?> + + + + +
    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..990a88d0 --- /dev/null +++ b/Templates/a2b/sendback_4.tpl @@ -0,0 +1,191 @@ +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
    + + + + "; + + ?> + + "; + + ?> + "; + + ?> + + + "; + + ?> + + + "; + + ?> + + "; + + ?> + "; + + ?> + "; + + ?> + + + "; + + ?> + "; + if($enforce['hero']>0){ + ?> + "; + } + ?> + + +
    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'].")Hero + (".$enforce['hero'].")
    + + + + + + + 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']; + } + } + } + if ($enforce['hero']>0){ + $qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$to['owner'].""; + $resulth = mysql_query($qh); + $hero_f=mysql_fetch_array($resulth); + $hero_unit=$hero_f['unit']; + $speeds[] = $GLOBALS['u'.$hero_unit]['speed']; + } + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $time = round($generator->procDistanceTime($fromCor,$toCor,min($speeds),1)/$fastertroops); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $time *= $arte['effect2']; + }else{ + $time /= $arte['effect2']; + $time = round($time); + } + } + } + ?> + + + + +
    Arrived: +
    in getTimeFormat($time); ?>
    +
    at hours
    +
    + + + + + + + + +

    + +
    + \ No newline at end of file diff --git a/Templates/a2b/sendback_5.tpl b/Templates/a2b/sendback_5.tpl new file mode 100644 index 00000000..f6007fce --- /dev/null +++ b/Templates/a2b/sendback_5.tpl @@ -0,0 +1,191 @@ +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
    + + + "; + + ?> + + "; + + ?> + "; + + ?> + + + "; + + ?> + + + "; + + ?> + + "; + + ?> + "; + + ?> + "; + + ?> + + + "; + + ?> + "; + if($enforce['hero']>0){ + ?> + "; + } + ?> + + +
    Pikeman name="t1" value="" maxlength="6" type="text"> + (".$enforce['u41'].")Bird of Prey name="t4" value="" maxlength="6" type="text"> + (".$enforce['u44'].")War Elephant name="t7" value="" maxlength="6" type="text"> + (".$enforce['u47'].")Natarian Emperor name="t9" value="" maxlength="6" type="text"> + (".$enforce['u49'].")
    Thorned Warrior name="t2" value="" maxlength="6" type="text"> + (".$enforce['u42'].")Axerider name="t5" value="" maxlength="6" type="text"> + (".$enforce['u45'].")Balista name="t8" value="" maxlength="6" type="text"> + (".$enforce['u48'].")Settler name="t10" value="" maxlength="6" type="text"> + (".$enforce['u50'].")
    Guardsman name="t3" value="" maxlength="6" type="text"> + (".$enforce['u3'].")Natarian Knight name="t6" value="" maxlength="6" type="text"> + (".$enforce['u6'].")Hero + (".$enforce['hero'].")
    + + + + + + + tribe; + $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']; + } + } + } + if ($enforce['hero']>0){ + $qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$to['owner'].""; + $resulth = mysql_query($qh); + $hero_f=mysql_fetch_array($resulth); + $hero_unit=$hero_f['unit']; + $speeds[] = $GLOBALS['u'.$hero_unit]['speed']; + } + $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $time = round($generator->procDistanceTime($fromCor,$toCor,min($speeds),1)/$fastertroops); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $time *= $arte['effect2']; + }else{ + $time /= $arte['effect2']; + $time = round($time); + } + } + } + ?> + + + + +
    Arrived: +
    in getTimeFormat($time); ?>
    +
    at hours
    +
    + + + + + + + + +

    + +
    + + \ No newline at end of file diff --git a/Templates/a2b/startRaid.tpl b/Templates/a2b/startRaid.tpl new file mode 100644 index 00000000..46593a28 --- /dev/null +++ b/Templates/a2b/startRaid.tpl @@ -0,0 +1,101 @@ +getFLData($lid); + $sql = "SELECT * FROM ".TB_PREFIX."raidlist WHERE lid = ".$lid." order by id asc"; + $array = $database->query_return($sql); + foreach($array as $row){ + $sql1 = mysql_fetch_array(mysql_query("SELECT * FROM ".TB_PREFIX."units WHERE vref = ".$getFLData['wref'])); + $sid = $row['id']; + $wref = $row['towref']; + $t1 = $row['t1'];$t2 = $row['t2'];$t3 = $row['t3'];$t4 = $row['t4'];$t5 = $row['t5']; + $t6 = $row['t6'];$t7 = $row['t7'];$t8 = $row['t8'];$t9 = $row['t9'];$t10 = $row['t10']; + $t11 = 0; + $villageOwner = $database->getVillageField($wref,'owner'); + $userAccess = $database->getUserField($villageOwner,'access',0); + if($userAccess != '0' && $userAccess != '8' && $userAccess != '9'){ + if($tribe == 1){ $uname = "u"; } elseif($tribe == 2){ $uname = "u1"; } elseif($tribe == 3){ $uname = "u2"; }elseif($tribe == 4){ $uname = "u3"; }else {$uname = "u4"; } + if($tribe == 1){ $uname1 = "u1"; } elseif($tribe == 2){ $uname1 = "u2"; } elseif($tribe == 3){ $uname1 = "u3"; }elseif($tribe == 4){ $uname1 = "u4"; }else {$uname1 = "u5"; } + if($tribe == 1){ $uname2 = ""; } elseif($tribe == 2){ $uname2 = "1"; } elseif($tribe == 3){ $uname2 = "2"; }elseif($tribe == 4){ $uname2 = "3"; }else {$uname2 = "4"; } + if($sql1[$uname.'1']>=$t1 && $sql1[$uname.'2']>=$t2 && $sql1[$uname.'3']>=$t3 && $sql1[$uname.'4']>=$t4 && $sql1[$uname.'5']>=$t5 && $sql1[$uname.'6']>=$t6 && $sql1[$uname.'7']>=$t7 && $sql1[$uname.'8']>=$t8 && $sql1[$uname.'9']>=$t9 && $sql1[$uname1.'0']>=$t10 && $sql1['hero']>=$t11){ + if($_POST['slot'.$sid]=='on'){ + $ckey = $generator->generateRandStr(6); + $id = $database->addA2b($ckey,time(),$wref,$t1,$t2,$t3,$t4,$t5,$t6,$t7,$t8,$t9,$t10,$t11,4); + + $data = $database->getA2b($ckey, time()); + + $eigen = $database->getCoor($getFLData['wref']); + $from = array('x'=>$eigen['x'], 'y'=>$eigen['y']); + $ander = $database->getCoor($data['to_vid']); + $to = array('x'=>$ander['x'], 'y'=>$ander['y']); + $start = ($tribe-1)*10+1; + $end = ($tribe*10); + + $speeds = array(); + $scout = 1; + + //find slowest unit. + for($i=1;$i<=10;$i++){ + if ($data['u'.$i]){ + if($data['u'.$i] != '' && $data['u'.$i] > 0){ + if($unitarray) { reset($unitarray); } + $unitarray = $GLOBALS["u".(($tribe-1)*10+$i)]; + $speeds[] = $unitarray['speed']; + } + } + } + + $artefact = count($database->getOwnUniqueArtefactInfo2($getFLData['owner'],2,3,0)); + $artefact1 = count($database->getOwnUniqueArtefactInfo2($getFLData['wref'],2,1,1)); + $artefact2 = count($database->getOwnUniqueArtefactInfo2($getFLData['owner'],2,2,0)); + if($artefact > 0){ + $fastertroops = 3; + }else if($artefact1 > 0){ + $fastertroops = 2; + }else if($artefact2 > 0){ + $fastertroops = 1.5; + }else{ + $fastertroops = 1; + } + $time = round($generator->procDistanceTime($from,$to,min($speeds),1)/$fastertroops); + $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); + if(count($foolartefact) > 0){ + foreach($foolartefact as $arte){ + if($arte['bad_effect'] == 1){ + $time *= $arte['effect2']; + }else{ + $time /= $arte['effect2']; + $time = round($time); + } + } + } + if($data['u7'] > 0){ + $ctar1 = 99; + }else{ + $ctar1 = 0; + } + $ctar2 = 0; + $abdata = $database->getABTech($getFLData['wref']); + $reference = $database->addAttack(($getFLData['wref']),$data['u1'],$data['u2'],$data['u3'],$data['u4'],$data['u5'],$data['u6'],$data['u7'],$data['u8'],$data['u9'],$data['u10'],$data['u11'],$data['type'],$ctar1,$ctar2,0,$abdata['b1'],$abdata['b2'],$abdata['b3'],$abdata['b4'],$abdata['b5'],$abdata['b6'],$abdata['b7'],$abdata['b8']); + $totalunits = $data['u1']+$data['u2']+$data['u3']+$data['u4']+$data['u5']+$data['u6']+$data['u7']+$data['u8']+$data['u9']+$data['u10']+$data['u11']; + $database->modifyUnit($getFLData['wref'], array($uname2.'1'), array($data['u1']), array(0)); + $database->modifyUnit($getFLData['wref'], array($uname2.'2'), array($data['u2']), array(0)); + $database->modifyUnit($getFLData['wref'], array($uname2.'3'), array($data['u3']), array(0)); + $database->modifyUnit($getFLData['wref'], array($uname2.'4'), array($data['u4']), array(0)); + $database->modifyUnit($getFLData['wref'], array($uname2.'5'), array($data['u5']), array(0)); + $database->modifyUnit($getFLData['wref'], array($uname2.'6'), array($data['u6']), array(0)); + $database->modifyUnit($getFLData['wref'], array($uname2.'7'), array($data['u7']), array(0)); + $database->modifyUnit($getFLData['wref'], array($uname2.'8'), array($data['u8']), array(0)); + $database->modifyUnit($getFLData['wref'], array($uname2.'9'), array($data['u9']), array(0)); + $database->modifyUnit($getFLData['wref'], array($uname2.'10'), array($data['u10']), array(0)); + $database->modifyUnit($getFLData['wref'], array('hero'), array($data['u11']), array(0)); + + $database->addMovement(3,$getFLData['wref'],$data['to_vid'],$reference,time(),($time+time())); + } + } + } + } +header("Location: build.php?id=39&t=99"); +?> \ 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/a2b/units_5.tpl b/Templates/a2b/units_5.tpl new file mode 100644 index 00000000..4e3d0c6f --- /dev/null +++ b/Templates/a2b/units_5.tpl @@ -0,0 +1,99 @@ +

    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 U41; ?> unitarray['u41']<=0) {echo ' disabled="disabled"';}?> name="t1" value="" maxlength="6" type="text"> + unitarray['u41']>0){ + echo "unitarray['u41']."; return false;\">(".$village->unitarray['u41'].")<?php echo U44; ?> unitarray['u44']<=0) {echo ' disabled="disabled"';}?> name="t4" value="" maxlength="6" type="text"> + unitarray['u44']>0){ + echo "unitarray['u44']."; return false;\">(".$village->unitarray['u44'].")<?php echo U47; ?> unitarray['u47']<=0) {echo ' disabled="disabled"';}?> name="t7" value="" maxlength="6" type="text"> + unitarray['u47']>0){ + echo "unitarray['u47']."; return false;\">(".$village->unitarray['u47'].")<?php echo U49; ?> unitarray['u49']<=0) {echo ' disabled="disabled"';}?> name="t9" value="" maxlength="6" type="text"> + unitarray['u49']>0){ + echo "unitarray['u49']."; return false;\">(".$village->unitarray['u49'].")
    <?php echo U42; ?> unitarray['u42']<=0) {echo ' disabled="disabled"';}?> name="t2" value="" maxlength="6" type="text"> + unitarray['u42']>0){ + echo "unitarray['u42']."; return false;\">(".$village->unitarray['u42'].")<?php echo U45; ?> unitarray['u45']<=0) {echo ' disabled="disabled"';}?> name="t5" value="" maxlength="6" type="text"> + unitarray['u45']>0){ + echo "unitarray['u45']."; return false;\">(".$village->unitarray['u45'].")<?php echo U48; ?> unitarray['u48']<=0) {echo ' disabled="disabled"';}?> name="t8" value="" maxlength="6" type="text"> + unitarray['u48']>0){ + echo "unitarray['u48']."; return false;\">(".$village->unitarray['u48'].")<?php echo U50; ?> unitarray['u50']<=0) {echo ' disabled="disabled"';}?> name="t10" value="" maxlength="6" type="text"> + unitarray['u50']>0){ + echo "unitarray['u50']."; return false;\">(".$village->unitarray['u50'].")
    <?php echo U43; ?> unitarray['u43']<=0) {echo ' disabled="disabled"';}?> name="t3" value="" maxlength="6" type="text"> + unitarray['u43']>0){ + echo "unitarray['u43']."; return false;\">(".$village->unitarray['u43'].")<?php echo U46; ?> unitarray['u46']<=0) {echo ' disabled="disabled"';}?> name="t6" value="" maxlength="6" type="text"> + unitarray['u46']>0){ + echo "unitarray['u46']."; return false;\">(".$village->unitarray['u46'].")
    + diff --git a/Templates/activate/.htaccess b/Templates/activate/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/activate/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/activate/activate.tpl b/Templates/activate/activate.tpl new file mode 100644 index 00000000..308c0d30 --- /dev/null +++ b/Templates/activate/activate.tpl @@ -0,0 +1,208 @@ +
    + date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i')){ ?> +
    Activation Availble in:
    + + +

    + date('m/d/Y') or START_DATE == date('m/d/Y') && START_TIME <= date('H:i')){ + ?> +

    Activation Availble in:
    + + +
    +
    +

    + 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..c9c17ed9 --- /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/.htaccess b/Templates/dorf3/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/dorf3/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file 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..b01deb66 --- /dev/null +++ b/Templates/dorf3/5.tpl @@ -0,0 +1,63 @@ + + + +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 ''; + $movement = $database->getVillageMovement($vid); + 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]; + } + $uni['u'.$i] += $movement['u'.$i]; + $unit_total['u'.$i] += $movement['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']; + } + $uni['hero'] += $movement['hero']; + $unit_total['hero'] += $movement['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..cbdb3373 --- /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..696df9e4 --- /dev/null +++ b/Templates/footer.tpl @@ -0,0 +1,37 @@ + + + + + \ No newline at end of file diff --git a/Templates/goldClub/.htaccess b/Templates/goldClub/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/Templates/goldClub/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/Templates/goldClub/farmlist.tpl b/Templates/goldClub/farmlist.tpl new file mode 100644 index 00000000..ba9be399 --- /dev/null +++ b/Templates/goldClub/farmlist.tpl @@ -0,0 +1,370 @@ +createFarmList($_POST['did'], $session->uid, $_POST['name']); +}else if(isset($_GET['t'])==99 && isset($_POST['action'])=='addList'){ + header("Location: build.php?gid=16&t=99&action=addList"); +} + +$sql = mysql_query("SELECT * FROM ".TB_PREFIX."farmlist WHERE owner = $session->uid ORDER BY wref = $village->wid DESC"); +$query = mysql_num_rows($sql); +while($row = mysql_fetch_array($sql)){ + $lid = $row["id"]; + $lname = $row["name"]; + $lowner = $row["owner"]; + $lwref = $row["wref"]; + $lvname = $database->getVillageField($row["wref"], 'name'); + if($lwref == $village->wid){ +?> +
    + + + + + + +
    + delete + - + Loading... +
    +
    +
    + +
    +
    + + + + + + + + + + + + + + +There is no any raid list.'; +}else{ +while($row = mysql_fetch_array($sql2)){ +$id= $row['id'];$lid = $row['lid'];$towref = $row['towref'];$x = $row['x'];$y = $row['y']; +if($village->wid == $towref){ + $distance = '0'; +}else{ + $distance = $row['distance']; +} + +$t1 = $row['t1'];$t2 = $row['t2'];$t3 = $row['t3'];$t4 = $row['t4'];$t5 = $row['t5'];$t6 = $row['t6'];$t7 = $row['t7']; +$t8 = $row['t8'];$t9 = $row['t9'];$t10 = $row['t10']; +$vdata = $database->getVillage($towref); + +?> + + + + + + + + + + + + +
    VillageEwDistanceTroopsLastRaid
    + + + + + + + getMovement(3,$towref,1); + $att = ''; + + if (count($incoming_attacks) > 0) { + $inc_atts = count($incoming_attacks); + if($incoming_attacks[$i]['attack_type'] == 2) { + $inc_atts -= 1; + } + if($inc_atts > 0) { + echo ''; + } + } + ?> + + -"; }; ?> + +tribe == 1){ + if($t1 != 0){ + echo '
    '.$t1.'
    '; } + if($t2 != 0){ + echo '
    '.$t2.'
    '; } + if($t3 != 0){ + echo '
    '.$t3.'
    '; } + if($t4 != 0){ + echo '
    '.$t4.'
    '; } + if($t5 != 0){ + echo '
    '.$t5.'
    '; } + if($t6 != 0){ + echo '
    '.$t6.'
    '; } + if($t7 != 0){ + echo '
    '.$t7.'
    '; } + if($t8 != 0){ + echo '
    '.$t8.'
    '; } + if($t9 != 0){ + echo '
    '.$t9.'
    '; } + if($t10 != 0){ + echo '
    '.$t10.'
    '; } + }elseif($session->tribe == 2){ + if($t1 != 0){ + echo '
    '.$t1.'
    '; } + if($t2 != 0){ + echo '
    '.$t2.'
    '; } + if($t3 != 0){ + echo '
    '.$t3.'
    '; } + if($t4 != 0){ + echo '
    '.$t4.'
    '; } + if($t5 != 0){ + echo '
    '.$t5.'
    '; } + if($t6 != 0){ + echo '
    '.$t6.'
    '; } + if($t7 != 0){ + echo '
    '.$t7.'
    '; } + if($t8 != 0){ + echo '
    '.$t8.'
    '; } + if($t9 != 0){ + echo '
    '.$t9.'
    '; } + if($t10 != 0){ + echo '
    '.$t10.'
    '; } + + }elseif($session->tribe == 3){ + if($t1 != 0){ + echo '
    '.$t1.'
    '; } + if($t2 != 0){ + echo '
    '.$t2.'
    '; } + if($t3 != 0){ + echo '
    '.$t3.'
    '; } + if($t4 != 0){ + echo '
    '.$t4.'
    '; } + if($t5 != 0){ + echo '
    '.$t5.'
    '; } + if($t6 != 0){ + echo '
    '.$t6.'
    '; } + if($t7 != 0){ + echo '
    '.$t7.'
    '; } + if($t8 != 0){ + echo '
    '.$t8.'
    '; } + if($t9 != 0){ + echo '
    '.$t9.'
    '; } + if($t10 != 0){ + echo '
    '.$t10.'
    '; } + } +?> + + + +
    +uid." ORDER BY time DESC Limit 1"); +if(mysql_num_rows($getnotice) > 0){ +while($row2 = mysql_fetch_array($getnotice)){ + $dataarray = explode(",",$row2['data']); + $type2 = $row2['ntype']; + echo " "; + + $allres = ($dataarray[25]+$dataarray[26]+$dataarray[27]+$dataarray[28]); + $carry = $dataarray[29]; + + if ($dataarray[25]+$dataarray[26]+$dataarray[27]+$dataarray[28] == 0) { + echo ""; + + } elseif ($dataarray[25]+$dataarray[26]+$dataarray[27]+$dataarray[28] != $dataarray[29]) { + echo ""; + + } else { + echo ""; + } + + $date = $generator->procMtime($row2['time']); + echo "".$date[0]." ".date('H:i',$row2['time'])." "; +} +} +?> +
    +
    + edit +
    +
    + + + + + + +
    + + +
    + +
    +tribe-1)*10+1; +$end = ($session->tribe*10); +$un = 1; +for($i=$start;$i<=$end;$i++){ + echo ' + + 0 + '; +} +?> +
    +
    + +
    + + + + +
    +
    +
    + delete + - + Loading... +
    +
    Details
    +
    +
    +
    +
    +
    + + +getUnit($village->wid); + +if($session->tribe==1){ + $unit1 = $getUnit['u1'];$unit2 = $getUnit['u2'];$unit3 = $getUnit['u3'];$unit4 = $getUnit['u4'];$unit5 = $getUnit['u5']; + $unit6 = $getUnit['u6'];$unit7 = $getUnit['u7'];$unit8 = $getUnit['u8'];$unit9 = $getUnit['u9'];$unit10 = $getUnit['u10']; +}elseif($session->tribe==2){ + $unit1 = $getUnit['u11'];$unit2 = $getUnit['u12'];$unit3 = $getUnit['u13'];$unit4 = $getUnit['u14'];$unit5 = $getUnit['u15']; + $unit6 = $getUnit['u16'];$unit7 = $getUnit['u17'];$unit8 = $getUnit['u18'];$unit9 = $getUnit['u19'];$unit10 = $getUnit['u20']; +}elseif($session->tribe==3){ + $unit1 = $getUnit['u21'];$unit2 = $getUnit['u22'];$unit3 = $getUnit['u23'];$unit4 = $getUnit['u24'];$unit5 = $getUnit['u25']; + $unit6 = $getUnit['u26'];$unit7 = $getUnit['u27'];$unit8 = $getUnit['u28'];$unit9 = $getUnit['u29'];$unit10 = $getUnit['u30']; +} +?> + +getVilFarmlist($village->wid)){ +?> + + + + + + +

    Create a new list

    +
    +
    + + + + + + + + + + +
    + Name: + +
    + Village: + + +
    + +
    +
    + + +
    +
    diff --git a/Templates/goldClub/farmlist_addraid.tpl b/Templates/goldClub/farmlist_addraid.tpl new file mode 100644 index 00000000..77c4cf0b --- /dev/null +++ b/Templates/goldClub/farmlist_addraid.tpl @@ -0,0 +1,163 @@ +getFLData($_GET['lid']); +if($FLData['owner'] == $session->uid){ +if(isset($_POST['action']) == 'addSlot' && $_POST['lid']) { + +$troops = "".$_POST['t1']."+".$_POST['t2']."+".$_POST['t3']."+".$_POST['t4']."+".$_POST['t5']."+".$_POST['t6']."+".$_POST['t7']."+".$_POST['t8']."+".$_POST['t9']."+".$_POST['t10'].""; + +if($_POST['target_id'] != ""){ +$Wref = $_POST['target_id']; +$WrefCoor = $database->getCoor($Wref); +$WrefX = $WrefCoor['x']; +$WrefY = $WrefCoor['y']; +$type = $database->getVillageType2($Wref); +$oasistype = $type['oasistype']; +$vdata = $database->getVillage($Wref); +}elseif($_POST['x']!="" && $_POST['y']!="" && is_numeric($_POST['x']) && is_numeric($_POST['y'])){ +$Wref = $database->getVilWref($_POST['x'], $_POST['y']); +$WrefX = $_POST['x']; +$WrefY = $_POST['y']; +$type = $database->getVillageType2($Wref); +$oasistype = $type['oasistype']; +$vdata = $database->getVillage($Wref); +} + if($_POST['x']=="" && $_POST['y']=="" && $_POST['target_id'] == ""){ + $errormsg .= "Enter coordinates."; + }elseif(($_POST['x']=="" || $_POST['y']=="") && $_POST['target_id'] == ""){ + $errormsg .= "Enter the correct coordinates."; + }elseif($oasistype == 0 && $vdata == 0){ + $errormsg .= "There is no village on those coordinates."; + }elseif($troops == "0"){ + $errormsg .= "No troops has been selected."; + }elseif($database->hasBeginnerProtection($Wref)==1){ + $errormsg .= "Player under protection."; + }else{ + + if($_POST['target_id'] != ""){ + $Wref = $_POST['target_id']; + $WrefCoor = $database->getCoor($Wref); + $WrefX = $WrefCoor['x']; + $WrefY = $WrefCoor['y']; + }else{ + $Wref = $database->getVilWref($_POST['x'], $_POST['y']); + $WrefX = $_POST['x']; + $WrefY = $_POST['y']; + } + $coor = $database->getCoor($village->wid); + + 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); + } + + $distance = getDistance($coor['x'], $coor['y'], $WrefX, $WrefY); + + $database->addSlotFarm($_POST['lid'], $Wref, $WrefX, $WrefY, $distance, $_POST['t1'], $_POST['t2'], $_POST['t3'], $_POST['t4'], $_POST['t5'], $_POST['t6'], $_POST['t7'], $_POST['t8'], $_POST['t9'], $_POST['t10']); + + header("Location: build.php?id=39&t=99"); +} +} +?> + +
    +

    Add Slot

    + + + + +
    +
    + + + + + + + + + + + + + +
    Farm Name: + +
    Select target: + +
    +
    + + +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + + + +
    +
    + diff --git a/Templates/goldClub/farmlist_editraid.tpl b/Templates/goldClub/farmlist_editraid.tpl new file mode 100644 index 00000000..f02cdf8c --- /dev/null +++ b/Templates/goldClub/farmlist_editraid.tpl @@ -0,0 +1,170 @@ +getRaidList($_GET['eid']); +$x = $eiddata['x']; +$y = $eiddata['y']; +$t1 = $eiddata['t1'];$t2 = $eiddata['t2'];$t3 = $eiddata['t3'];$t4 = $eiddata['t4'];$t5 = $eiddata['t5'];$t6 = $eiddata['t6'];$t7 = $eiddata['t7'];$t8 = $eiddata['t8'];$t9 = $eiddata['t9'];$t10 = $eiddata['t10']; +$FLData = $database->getFLData($eiddata['lid']); +} + +if(isset($_POST['action']) == 'editSlot' && $_POST['eid']) { +if($_POST['target_id'] != ""){ +$Wref = $_POST['target_id']; +$WrefCoor = $database->getCoor($Wref); +$WrefX = $WrefCoor['x']; +$WrefY = $WrefCoor['y']; +$type = $database->getVillageType2($Wref); +$oasistype = $type['oasistype']; +$vdata = $database->getVillage($Wref); +}elseif($_POST['x']!="" && $_POST['y']!="" && is_numeric($_POST['x']) && is_numeric($_POST['y'])){ +$Wref = $database->getVilWref($_POST['x'], $_POST['y']); +$WrefX = $_POST['x']; +$WrefY = $_POST['y']; +$type = $database->getVillageType2($Wref); +$oasistype = $type['oasistype']; +$vdata = $database->getVillage($Wref); +} +$troops = "".$_POST['t1']."+".$_POST['t2']."+".$_POST['t3']."+".$_POST['t4']."+".$_POST['t5']."+".$_POST['t6']."+".$_POST['t7']."+".$_POST['t8']."+".$_POST['t9']."+".$_POST['t10'].""; + + if($_POST['x']=="" && $_POST['y']=="" && $_POST['target_id'] == ""){ + $errormsg .= "Enter coordinates."; + }elseif(($_POST['x']=="" || $_POST['y']=="") && $_POST['target_id'] == ""){ + $errormsg .= "Enter the correct coordinates."; + }elseif($oasistype == 0 && $vdata == 0){ + $errormsg .= "There is no village on those coordinates."; + }elseif($troops == "0"){ + $errormsg .= "No troops has been selected."; + }else{ + + if($_POST['target_id'] != ""){ + $Wref = $_POST['target_id']; + $WrefCoor = $database->getCoor($Wref); + $WrefX = $WrefCoor['x']; + $WrefY = $WrefCoor['y']; + }else{ + $Wref = $database->getVilWref($_POST['x'], $_POST['y']); + $WrefX = $_POST['x']; + $WrefY = $_POST['y']; + } + $coor = $database->getCoor($village->wid); + + 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); + } + $distance = getDistance($coor['x'], $coor['y'], $WrefX, $WrefY); + + $database->editSlotFarm($_GET['eid'], $_POST['lid'], $Wref, $WrefX, $WrefY, $distance, $_POST['t1'], $_POST['t2'], $_POST['t3'], $_POST['t4'], $_POST['t5'], $_POST['t6'], $_POST['t7'], $_POST['t8'], $_POST['t9'], $_POST['t10']); + + header("Location: build.php?id=39&t=99"); +} +} +if($FLData['owner'] == $session->uid){ +?> + +
    +

    Add Slot

    + + + + +
    +
    + +getRaidList($_GET["eid"]); +$lid2 = $getlid['lid']; +?> + + + + + + + + + + + + + +
    Farm Name: + +
    Select target: + +
    +
    + + +
    +
    + + +
    +
    +
    +
    + + +
    +
    +
    +
    +
    + + + +  + +
    +
    + \ No newline at end of file diff --git a/Templates/goldClub/trooplist.tpl b/Templates/goldClub/trooplist.tpl new file mode 100644 index 00000000..2db26535 --- /dev/null +++ b/Templates/goldClub/trooplist.tpl @@ -0,0 +1,141 @@ +tribe == 1){ +?> +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + +
    +
    +tribe == 2){ ?> +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + +
    +
    +tribe == 3){ ?> +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + +
    +
    + \ No newline at end of file diff --git a/Templates/goldClub/trooplist2.tpl b/Templates/goldClub/trooplist2.tpl new file mode 100644 index 00000000..019c9b7d --- /dev/null +++ b/Templates/goldClub/trooplist2.tpl @@ -0,0 +1,141 @@ +tribe == 1){ +?> +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + +
    +
    +tribe == 2){ ?> +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + +
    +
    +tribe == 3){ ?> +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + + +
    + +
    +
    + \ 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/indexnews.tpl b/Templates/indexnews.tpl new file mode 100644 index 00000000..c3a7c263 --- /dev/null +++ b/Templates/indexnews.tpl @@ -0,0 +1,20 @@ + +

    [Release by: ZravianX]

    +

    Thank you for using our version!

    \ No newline at end of file diff --git a/Templates/links.tpl b/Templates/links.tpl new file mode 100644 index 00000000..ae33f4bc --- /dev/null +++ b/Templates/links.tpl @@ -0,0 +1,39 @@ + ## +## 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..98fd180f --- /dev/null +++ b/Templates/menu.tpl @@ -0,0 +1,119 @@ +logged_in) { +?> + + + + + + + + + +
    + + +

    +
    + +
    + + + +

    access == MULTIHUNTER) { + + echo "Multihunter Panel"; + } ?> access == ADMIN) { + echo "".ADMIN_PANEL.""; + echo "".MASS_MESSAGE.""; + echo "".UPDATE_T_10.""; + echo "".SYSTEM_MESSAGE.""; + echo "Create Natars"; + } ?>

    + + +

    Travian Plus + +

    + isDeleting($session->uid); + if($timestamp) { + echo ""; + if($timestamp > time()+48*3600) { + echo "uid."&a=1&e=4\">\"Cancel "; + } + $time=$generator->getTimeFormat(($timestamp-time())); + echo " The account will be deleted in ".$time." ."; + } + ?> +
    + +
    +

    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..8fc611e8 --- /dev/null +++ b/Templates/movement.tpl @@ -0,0 +1,132 @@ +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))+count($database->getMovement(7,$village->wid,1))-count($database->getMovement(8,$village->wid,1))); + +if($aantal > 0){ + echo ''; +} + +$NextArrival = array(); +$NextArrival1 = array(); +$NextArrival2 = array(); +$NextArrival3 = array(); + +/* Units coming back from Reinf,attack,raid,evasion or reinf to my town */ +$aantal = count($database->getMovement(4,$village->wid,1))+count($database->getMovement(7,$village->wid,1)); +$aantal2 = $database->getMovement(4,$village->wid,1); +$aantal3 = $database->getMovement(7,$village->wid,1); +$aantal4 = count($database->getMovement(3,$village->wid,1)); +$lala = $aantal4; +$aantal5 = $database->getMovement(3,$village->wid,1); +for($i=0;$i<$aantal4;$i++){ + if(($aantal5[$i]['attack_type']==1) or ($aantal5[$i]['attack_type']==3) or ($aantal5[$i]['attack_type']==4)) { $lala -= 1; } +} +$aantal = $aantal+$lala; +if($aantal > 0){ + foreach($aantal2 as $receive) { + $action = 'def1'; + $aclass = 'd1'; + $title = ''.ARRIVING_REINF_TROOPS.''; + $short = ''.ARRIVING_REINF_TROOPS_SHORT.''; + $NextArrival[] = $receive['endtime']; + } + foreach($aantal3 as $receive) { + $action = 'def1'; + $aclass = 'd1'; + $title = ''.ARRIVING_REINF_TROOPS.''; + $short = ''.ARRIVING_REINF_TROOPS_SHORT.''; + $NextArrival[] = $receive['endtime']; + } + foreach($aantal5 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; +} + +/* attack/raid on you! */ +$aantal = count($database->getMovement(3,$village->wid,1)); +$aantal1 = count($database->getMovement(3,$village->wid,1)); +$aantal2 = $database->getMovement(3,$village->wid,1); +for($i=0;$i<$aantal1;$i++){ + if($aantal2[$i]['attack_type'] == 2) { $aantal -= 1; } + if($aantal2[$i]['attack_type'] == 1) { $aantal -= 1; } +} + +if($aantal > 0){ + if(!empty($NextArrival1)) { reset($NextArrival1); } + foreach($aantal2 as $receive) { + if ($receive['attack_type'] != 2 && $receive['attack_type'] != 1) { + $action = 'att1'; + $aclass = 'a1'; + $title = ''.OWN_ATTACKING_TROOPS.''; + $short = ''.ATTACK.''; + $NextArrival1[] = $receive['endtime']; + } + } + echo ' + '; + $timer += 1; +} + +/* on attack, raid */ +$aantal = count($database->getMovement(3,$village->wid,0)); +$aantal1 = count($database->getMovement(3,$village->wid,0)); +$aantal2 = $database->getMovement(3,$village->wid,0); +for($i=0;$i<$aantal1;$i++){ + if($aantal2[$i]['attack_type'] == 2) { $aantal -= 1; } +} +if($aantal > 0){ + if(!empty($NextArrival2)) { reset($NextArrival2); } + foreach($aantal2 as $receive) { + if ($receive['attack_type'] != 2) { + $action = 'att2'; + $aclass = 'a2'; + $title = ''.OWN_ATTACKING_TROOPS.''; + $short = ''.ATTACK.''; + $NextArrival2[] = $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($NextArrival3)) { reset($NextArrival3); } + foreach($aantal2 as $receive) { + if ($receive['attack_type'] == 2) { + $action = 'def2'; + $aclass = 'd2'; + $title = ''.OWN_REINFORCING_TROOPS.''; + $short = ''.ARRIVING_REINF_TROOPS_SHORT.''; + $NextArrival3[] = $receive['endtime']; + } + } + echo ' + '; + $timer += 1; +} \ No newline at end of file diff --git a/Templates/multivillage.tpl b/Templates/multivillage.tpl new file mode 100644 index 00000000..fcf64e92 --- /dev/null +++ b/Templates/multivillage.tpl @@ -0,0 +1,122 @@ +villages) > 1){?> +
    '.TROOP_MOVEMENTS.'
    '.$title.'»
    '.$aantal.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival)-time()).' '.HOURS.'
    '.$title.'»
    '.$aantal.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival1)-time()).' '.HOURS.'
    '.$title.'»
    '.$aantal.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival2)-time()).' '.HOURS.'
    '.$title.'»
    '.$lala.' '.$short.'
    in '.$generator->getTimeFormat(min($NextArrival3)-time()).' '.HOURS.'
    + + getArrayMemberVillage($session->uid); +if(isset($_GET['w'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['r'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['o'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['z'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['s'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['c'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['t'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['d'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['aid'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['uid'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['vill']) && isset($_GET['id'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + } +} +else if(isset($_GET['t']) && isset($_GET['id'])) { + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + }}else{ + for($i=1;$i<=count($session->villages);++$i){echo' + + + + '; + }}?> + +
    :
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$returnVillageArray[$i-1]['x'].'
    |
    '.$returnVillageArray[$i-1]['y'].')
    ('.$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..108fc3bc --- /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..ab1b58a6 --- /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..adfe8f2e --- /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..bb419396 --- /dev/null +++ b/Templates/troops.tpl @@ -0,0 +1,37 @@ + + + + + +getAllUnits($village->wid,True,1); +$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..7ffa5c29 --- /dev/null +++ b/a2b.php @@ -0,0 +1,279 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; +if(isset($_GET['w'])) { + header("Location: ".$_SERVER['PHP_SELF']."?w=".$_GET['w']); +} +else if(isset($_GET['r'])) { + header("Location: ".$_SERVER['PHP_SELF']."?r=".$_GET['r']); +} +else if(isset($_GET['o'])) { + header("Location: ".$_SERVER['PHP_SELF']."?o=".$_GET['o']); +} +else if(isset($_GET['z'])) { + header("Location: ".$_SERVER['PHP_SELF']."?z=".$_GET['z']); +} +else if($_GET['id']!=0){ + header("Location: ".$_SERVER['PHP_SELF']); +} +} +else { +$building->procBuild($_GET); +} + +if(isset($_GET['id'])) { + $id = preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']); +} +if(isset($_GET['w'])) { + $w = preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['w']); +} +if(isset($_GET['r'])) { + $r = preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['r']); +} +if(isset($_GET['delprisoners'])) { + $delprisoners = preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['delprisoners']); +} +if(isset($_GET['o'])) { + $o = preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['o']); + $oid = preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['z']); + $too = $database->getOasisField($oid,"conqured"); + if($too['conqured'] == 0){$disabledr ="disabled=disabled"; $disabled ="disabled=disabled";}else{ + $disabledr =""; + if($session->sit == 0){ + $disabled =""; + }else{ + $disabled ="disabled=disabled"; + } + } + $checked ="checked=checked"; +}else{ + if($session->sit == 0){ + $disabled =""; + }else{ + $disabled ="disabled=disabled"; + } +} + $process = $units->procUnits($_POST); + $automation->isWinner(); +?> + + + + + <?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($delprisoners)){ + $prisoner = $database->getPrisonersByID($delprisoners); + if($prisoner['wref'] == $village->wid){ + $p_owner = $database->getVillageField($prisoner['from'],"owner"); + $p_eigen = $database->getCoor($prisoner['wref']); + $p_from = array('x'=>$p_eigen['x'], 'y'=>$p_eigen['y']); + $p_ander = $database->getCoor($prisoner['from']); + $p_to = array('x'=>$p_ander['x'], 'y'=>$p_ander['y']); + $p_tribe = $database->getUserField($p_owner,"tribe",0); + + $p_speeds = array(); + + //find slowest unit. + for($i=1;$i<=10;$i++){ + if ($prisoner['t'.$i]){ + if($prisoner['t'.$i] != '' && $prisoner['t'.$i] > 0){ + if($p_unitarray) { reset($p_unitarray); } + $p_unitarray = $GLOBALS["u".(($p_tribe-1)*10+$i)]; + $p_speeds[] = $p_unitarray['speed']; + } + } + } + + if ($prisoner['t11']>0){ + $p_qh = "SELECT * FROM ".TB_PREFIX."hero WHERE uid = ".$p_owner.""; + $p_resulth = mysql_query($p_qh); + $p_hero_f=mysql_fetch_array($p_resulth); + $p_hero_unit=$p_hero_f['unit']; + $p_speeds[] = $GLOBALS['u'.$p_hero_unit]['speed']; + } + + $p_artefact = count($database->getOwnUniqueArtefactInfo2($p_owner,2,3,0)); + $p_artefact1 = count($database->getOwnUniqueArtefactInfo2($prisoner['from'],2,1,1)); + $p_artefact2 = count($database->getOwnUniqueArtefactInfo2($p_owner,2,2,0)); + if($p_artefact > 0){ + $p_fastertroops = 3; + }else if($p_artefact1 > 0){ + $p_fastertroops = 2; + }else if($p_artefact2 > 0){ + $p_fastertroops = 1.5; + }else{ + $p_fastertroops = 1; + } + $p_time = round($automation->procDistanceTime($p_to,$p_from,min($p_speeds),1)/$p_fastertroops); + $p_reference = $database->addAttack($prisoner['from'],$prisoner['t1'],$prisoner['t2'],$prisoner['t3'],$prisoner['t4'],$prisoner['t5'],$prisoner['t6'],$prisoner['t7'],$prisoner['t8'],$prisoner['t9'],$prisoner['t10'],$prisoner['t11'],3,0,0,0,0,0,0,0,0,0,0,0); + $database->addMovement(4,$prisoner['wref'],$prisoner['from'],$p_reference,time(),($p_time+time())); + $troops = $prisoner['t1']+$prisoner['t2']+$prisoner['t3']+$prisoner['t4']+$prisoner['t5']+$prisoner['t6']+$prisoner['t7']+$prisoner['t8']+$prisoner['t9']+$prisoner['t10']+$prisoner['t11']; + $database->modifyUnit($prisoner['wref'],array("99o"),array($troops),array(0)); + $database->deletePrisoners($prisoner['id']); + }else if($prisoner['from'] == $village->wid){ + $troops = $prisoner['t1']+$prisoner['t2']+$prisoner['t3']+$prisoner['t4']+$prisoner['t5']+$prisoner['t6']+$prisoner['t7']+$prisoner['t8']+$prisoner['t9']+$prisoner['t10']+$prisoner['t11']; + if($prisoner['t11'] > 0){ + $p_owner = $database->getVillageField($prisoner['from'],"owner"); + mysql_query("UPDATE ".TB_PREFIX."hero SET `dead` = '1', `health` = '0' WHERE `uid` = '".$p_owner."'"); + } + $database->modifyUnit($prisoner['wref'],array("99o"),array($troops),array(0)); + $database->deletePrisoners($prisoner['id']); + } + header("Location: build.php?id=39");} 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..8422050d --- /dev/null +++ b/activate.php @@ -0,0 +1,82 @@ + + + + + <?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"); + } + +?> +
    +
    +
    + +
    +
    + + +
    + + +
    + + \ No newline at end of file diff --git a/ajax.php b/ajax.php new file mode 100644 index 00000000..983b1b40 --- /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..eebc596f --- /dev/null +++ b/allianz.php @@ -0,0 +1,340 @@ +pageLoadTimeStart(); + $alliance->procAlliance($_GET); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + if(isset($_GET['s'])){ + header("Location: ".$_SERVER['PHP_SELF']."?s=".preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['s'])); + }else if(isset($_GET['aid'])){ + header("Location: ".$_SERVER['PHP_SELF']."?aid=".preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['aid'])); + } + else{ + header("Location: ".$_SERVER['PHP_SELF']); +} +} + if(isset($_GET['s'])){ + $automation->isWinner(); + } + +if(isset($_GET['fid'])){ +$fid = preg_replace("/[^0-9]/","",$_GET['fid']); +$forum = mysql_query("SELECT * FROM " . TB_PREFIX . "forum_cat WHERE id = ".$fid.""); +$forum_type = mysql_fetch_array($forum); +if($forum_type['forum_name'] != "" && $forum_type['forum_area'] == 0){ +if($forum_type['alliance'] != $session->alliance){ + header("Location: ".$_SERVER['PHP_SELF']); +} +} +}else if(isset($_GET['fid2'])){ +$fid = preg_replace("/[^0-9]/","",$_GET['fid2']); +$forum = mysql_query("SELECT * FROM " . TB_PREFIX . "forum_cat WHERE id = ".$fid.""); +$forum_type = mysql_fetch_array($forum); +if($forum_type['forum_name'] != "" && $forum_type['forum_area'] != 1){ +if($forum_type['forum_area'] == 0){ +if($forum_type['alliance'] != $session->alliance){ + header("Location: ".$_SERVER['PHP_SELF']); +} +}else if($forum_type['forum_area'] == 2){ +if($forum_type['alliance'] != $session->alliance){ +}else if($forum_type['forum_area'] == 3){ + +} + +}else{ + header("Location: ".$_SERVER['PHP_SELF']); +} +} +} +if($_GET['aid'] or $_GET['fid'] or $_GET['fid2'] or $session->alliance!=0){ +?> + + + + <?php + + echo SERVER_NAME + +?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + +?> + + + + + +
    + +
    +
    + +
    +getAlliancePermission($session->uid, "opt4", 0); + include ("Templates/menu.tpl"); + + if(isset($_GET['s']) && $_GET['s'] == 2) { + echo '
    '; + } else { + echo '
    '; + } + + if(isset($_GET['s'])) { + if($_GET['s'] != 5 or $session->sit == 0){ + 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 + }else{ + header("Location: ".$_SERVER['PHP_SELF']); + }}else if(isset($_GET['delinvite']) && $invite_permission == 1){ + include ("Templates/Alliance/invite.tpl"); + } 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: + $alliance->setForumLink($_POST); + 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: + $database->diplomacyCancelOffer($_POST['id']); + include ("Templates/Alliance/chgdiplo.tpl"); + break; + case 102: + $database->diplomacyInviteDenied($_POST['id'], $_POST['alli2']); + include ("Templates/Alliance/chgdiplo.tpl"); + break; + case 103: + if($database->checkDiplomacyInviteAccept($session->alliance, $_POST['type'])){ + $database->diplomacyInviteAccept($_POST['id'], $_POST['alli2']); + } + include ("Templates/Alliance/chgdiplo.tpl"); + break; + case 104: + $database->diplomacyCancelExistingRelationship($_POST['id'], $_POST['alli2']); + include ("Templates/Alliance/chgdiplo.tpl"); + } + } else { + include ("Templates/Alliance/overview.tpl"); + } + +?> +
    +



    + +
    +
    +
    + +
    + + +
    +
    +
    + pageLoadTimeEnd() - $start) * 1000); + +?> ms + +
    +
    +
    +
    + +
    + + +uid); +} +?> \ No newline at end of file diff --git a/anleitung.php b/anleitung.php new file mode 100644 index 00000000..3fe2ff13 --- /dev/null +++ b/anleitung.php @@ -0,0 +1,152 @@ + + + + + <?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..3f06e3b2 --- /dev/null +++ b/anmelden.php @@ -0,0 +1,152 @@ + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    + + + + + +
    + +
    + +
    +
    + + +
    + + +
    + + \ No newline at end of file diff --git a/banned.php b/banned.php new file mode 100644 index 00000000..44f9e787 --- /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..cf48ab67 --- /dev/null +++ b/berichte.php @@ -0,0 +1,159 @@ +pageLoadTimeStart(); +$message->noticeType($_GET); +$message->procNotice($_POST); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; +if(isset($_GET['t'])) { + header("Location: ".$_SERVER['PHP_SELF']."?t=".$_GET['t']); +}else if(isset($_GET['vill']) && isset($_GET['id'])) { + header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']."&vill=".$_GET['vill'].""); +}else if($_GET['id']!=0) { + header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']); +}else{ + header("Location: ".$_SERVER['PHP_SELF']); +} +} +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    +

    Reports

    +
    + >All + | >Trade + | >Reinforcement + | >Attacks + | >Miscellaneous + plus) { + echo "| Archive"; + } + ?> +
    +alliance==$_GET['aid']){ + + if(isset($_GET['id'])) { + $ally = $database->getNotice2(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']), 'ally'); + if($session->alliance==$ally){ + $type = $database->getNotice2(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']), 'ntype'); + if($type!=10 or $type!=11 or $type!=12 or $type!=13 or $type!=14 or $type!=15 or $type!=16 or $type!=17){ + include("Templates/Notice/".$type."x.tpl"); + } + } + } + } +} +}else if(isset($_GET['vill'])){ + + if(isset($_GET['id'])) { + $ally = $database->getNotice2($_GET['id'], 'ally'); + if($database->getNotice2(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']), 'uid') == $session->uid){ + $type = ($message->readingNotice['ntype'] == 9)? $message->readingNotice['archive'] : $message->readingNotice['ntype']; + include("Templates/Notice/".$type.".tpl"); + }else if($session->alliance==$ally){ + $type = $database->getNotice2($_GET['id'], 'ntype'); + if($type!=10 or $type!=11 or $type!=12 or $type!=13 or $type!=14 or $type!=15 or $type!=16 or $type!=17){ + include("Templates/Notice/".$type."x.tpl"); + } + } + } + + }else if(isset($_GET['id'])) { + if($database->getNotice2(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']), 'uid') == $session->uid){ + $type = ($message->readingNotice['ntype'] == 9)? $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..dc9d5982 --- /dev/null +++ b/build.php @@ -0,0 +1,388 @@ +natar == 0){ +header("Location: dorf2.php"); +} + +$start = $generator->pageLoadTimeStart(); +$alliance->procAlliForm($_POST); +$technology->procTech($_POST); +$market->procMarket($_POST); +if(isset($_GET['gid'])) { + $_GET['id'] = strval($building->getTypeField(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['gid']))); +} else if(isset($_POST['id'])) { + $_GET['id'] = preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['id']); // WTF is this? +} +if(isset($_POST['t'])){ + $_GET['t'] = preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['t']); +} +if(isset($_GET['id'])) { + if (!ctype_digit(preg_replace("/[^a-zA-Z0-9_-]/","",$_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($session->goldclub == 1 && count($session->villages) > 1){ + if(isset($_GET['routeid'])){ + $routeid = $_GET['routeid']; + } + if(isset($_POST['action']) && $_POST['action'] == 'addRoute') { + if($session->access != BANNED){ + if($session->gold >= 2) { + for($i=1;$i<=4;$i++){ + if($_POST['r'.$i] == ""){ + $_POST['r'.$i] = 0; + } + } + $totalres = preg_replace("/[^0-9]/","",$_POST['r1'])+preg_replace("/[^0-9]/","",$_POST['r2'])+preg_replace("/[^0-9]/","",$_POST['r3'])+preg_replace("/[^0-9]/","",$_POST['r4']); + $reqMerc = ceil(($totalres-0.1)/$market->maxcarry); + $second = date("s"); + $minute = date("i"); + $hour = date("G")-$_POST['start']; + if(date("G") > $_POST['start']){ + $day = 1; + }else{ + $day = 0; + } + $timestamp = strtotime("-$hour hours -$second second -$minute minutes +$day day"); + if($totalres > 0){ + $database->createTradeRoute($session->uid,$_POST['tvillage'],$village->wid,$_POST['r1'],$_POST['r2'],$_POST['r3'],$_POST['r4'],$_POST['start'],$_POST['deliveries'],$reqMerc,$timestamp); + header("Location: build.php?gid=17&t=4"); + $route = 1; + }else{ + header("Location: build.php?gid=17&t=4&create"); + $route = 1; + } + } + }else{ + $route = 0; + header("Location: banned.php"); + } + } + if(isset($_GET['action']) && $_GET['action'] == 'extendRoute') { + if($session->access != BANNED){ + if($session->gold >= 2) { + $traderoute = $database->getTradeRouteUid($_GET['routeid']); + if($traderoute == $session->uid){ + $database->editTradeRoute($_GET['routeid'],"timeleft",604800,1); + $newgold = $session->gold-2; + $database->updateUserField($session->uid,'gold',$newgold,1); + header("Location: build.php?gid=17&t=4"); + $route = 1; + unset($routeid); + }else{ + header("Location: build.php?gid=17&t=4"); + $route = 1; + unset($routeid); + } + }else{ + header("Location: build.php?gid=17&t=4"); + $route = 1; + } + }else{ + $route = 0; + header("Location: banned.php"); + } + } + if(isset($_POST['action']) && $_POST['action'] == 'editRoute') { + if($session->access != BANNED){ + $totalres = $_POST['r1']+$_POST['r2']+$_POST['r3']+$_POST['r4']; + $reqMerc = ceil(($totalres-0.1)/$market->maxcarry); + if($totalres > 0){ + $database->editTradeRoute($_POST['routeid'],"wood",$_POST['r1'],0); + $database->editTradeRoute($_POST['routeid'],"clay",$_POST['r2'],0); + $database->editTradeRoute($_POST['routeid'],"iron",$_POST['r3'],0); + $database->editTradeRoute($_POST['routeid'],"crop",$_POST['r4'],0); + $database->editTradeRoute($_POST['routeid'],"start",$_POST['start'],0); + $database->editTradeRoute($_POST['routeid'],"deliveries",$_POST['deliveries'],0); + $database->editTradeRoute($_POST['routeid'],"merchant",$reqMerc,0); + $second = date("s"); + $minute = date("i"); + $hour = date("G")-$_POST['start']; + if(date("G") > $_POST['start']){ + $day = 1; + }else{ + $day = 0; + } + $timestamp = strtotime("-$hour hours -$second seconds -$minute minutes +$day day"); + $database->editTradeRoute($_POST['routeid'],"timestamp",$timestamp,0); + } + header("Location: build.php?gid=17&t=4"); + $route = 1; + unset($routeid); + }else{ + $route = 0; + header("Location: banned.php"); + } + } + if(isset($_GET['action']) && $_GET['action'] == 'delRoute') { + if($session->access != BANNED){ + $traderoute = $database->getTradeRouteUid($_GET['routeid']); + if($traderoute == $session->uid){ + $database->deleteTradeRoute($_GET['routeid']); + header("Location: build.php?gid=17&t=4"); + $route = 1; + unset($routeid); + }else{ + header("Location: build.php?gid=17&t=4"); + $route = 1; + unset($routeid); + } + }else{ + $route = 0; + header("Location: banned.php"); + } + } +} +if($session->goldclub == 1){ + if(isset($_GET['t'])==99) { + + if($_GET['action'] == 'addList') { + $create = 1; + }else if($_GET['action'] == 'addraid') { + $create = 2; + }else if($_GET['action'] == 'showSlot' && $_GET['eid']) { + $create = 3; + }else{ + $create = 0; + } + + if($_GET['slid']) { + $FLData = $database->getFLData($_GET['slid']); + if($FLData['owner'] == $session->uid){ + $checked[$_GET['slid']] = 1; + } + } + + if($_GET['action'] == 'deleteList') { + $database->delFarmList($_GET['lid'], $session->uid); + header("Location: build.php?id=39&t=99"); + }elseif($_GET['action'] == 'deleteSlot') { + $database->delSlotFarm($_GET['eid']); + header("Location: build.php?id=39&t=99"); + } + if($_POST['action'] == 'startRaid'){ + if($session->access != BANNED){ + include ("Templates/a2b/startRaid.tpl"); + }else{ + header("Location: banned.php"); + } + } + + if(isset($_GET['slid']) && is_numeric($_GET['slid'])) { + $FLData = $database->getFLData($_GET['slid']); + if($FLData['owner'] == $session->uid){ + $checked[$_GET['slid']] = 1; + } + } + + if(isset($_GET['evasion']) && is_numeric($_GET['evasion'])) { + $evasionvillage = $database->getVillage($_GET['evasion']); + if($evasionvillage['owner'] == $session->uid){ + $database->setVillageEvasion($_GET['evasion']); + } + header("Location: build.php?id=39&t=99"); + } + + if(isset($_POST['maxevasion']) && is_numeric($_POST['maxevasion'])) { + $database->updateUserField($session->uid, "maxevasion", $_POST['maxevasion'], 1); + header("Location: build.php?id=39&t=99"); + } + } +}else{ +$create = 0; +} + +if (isset($_POST['a']) == 533374 && isset($_POST['id']) == 39){ +if($session->access != BANNED){ + $units->Settlers($_POST); +}else{ +header("Location: banned.php"); +} +} +if($_GET['mode']=='troops' && $_GET['cancel']==1){ +if($session->access != BANNED){ +$oldmovement=$database->getMovementById($_GET['moveid']); +$now=time(); +if(($now-$oldmovement[0]['starttime'])<90 && $oldmovement[0]['from'] == $village->wid){ + +$qc="SELECT * FROM " . TB_PREFIX . "movement where proc = 0 and moveid = ".$_GET['moveid']; +$resultc=$database->query($qc) or die(mysql_error()); + + if (mysql_num_rows($resultc)==1){ + + $q = "UPDATE " . TB_PREFIX . "movement set proc = 1 where proc = 0 and moveid = ".$_GET['moveid']; + $database->query($q); + $end=$now+($now-$oldmovement[0]['starttime']); + //echo "6,".$oldmovement[0]['to'].",".$oldmovement[0]['from'].",0,".$now.",".$end; + $q2 = "SELECT id FROM " . TB_PREFIX . "send ORDER BY id DESC"; + $lastid=mysql_fetch_array(mysql_query($q2)); + $newid=$lastid['id']+1; + $q2 = "INSERT INTO " . TB_PREFIX . "send values ($newid,0,0,0,0,0)"; + $database->query($q2); + $database->addMovement(4,$oldmovement[0]['to'],$oldmovement[0]['from'],$oldmovement[0]['ref'],$now,$end); + + + $database->addMovement(6,$oldmovement[0]['to'],$oldmovement[0]['from'],$newid,$now,$end); + } +} +header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']); +}else{ +header("Location: banned.php"); +} +} +if(isset($_GET['id'])){ +$automation->isWinner(); +} +?> + + + + <?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"); + } + if($_GET['buildingFinish'] == 1) { + if($session->gold >= 2) { + $building->finishAll(); + header("Location: build.php?gid=15"); + } + } + } +}else{ +header("Location: dorf1.php"); +} +?> + +
    + +



    + +
    +
    + + +
    + + +
    +
    +
    +Calculated in pageLoadTimeEnd()-$start)*1000); +?> ms + +
    Server time: +
    +
    +
    + +
    + + \ No newline at end of file diff --git a/cache/.htaccess b/cache/.htaccess new file mode 100644 index 00000000..d87fe95b --- /dev/null +++ b/cache/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file 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..efc928b3 --- /dev/null +++ b/create_account.php @@ -0,0 +1,512 @@ +access < ADMIN){ + die("Access Denied: You are not Admin!"); + }else{ + +$start = $generator->pageLoadTimeStart(); + +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    +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($_POST['password']); + $email = "natars@noreply.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 = " . (20000 * $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'); + } + $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%'","Construction plans + + + +Countless days have passed since the first battles upon the walls of the cursed villages of the Dread Natars, many armies of both the free ones and the Natarian empire struggled and died before the walls of the many strongholds from which the Natars had once ruled all creation. Now with the dust settled and a relative calm having settled in, armies began to count their losses and collect their dead, the stench of combat still lingering in the night air, a smell of a slaughter unforgettable in its extent and brutality yet soon to be dwarfed by yet others. The largest armies of the free ones and the Dread Natars were marshalling for yet another renewed assault upon the coveted former strongholds of the Natarian Empire. + +Soon scouts arrived telling of a most awesome sight and a chilling reminder, a dread army of an unfathomable size had been spotted marshalling at the end of the world, the Natarian capital, a force so great and unstoppable that the dust from their march would choke off all light, a force so brutal and ruthless that it would crush all hope. The free people knew that they had to race now, race against time and the endless hordes of the Natarian Empire to raise a Wonder of the World to restore the world to peace and vanquish the Natarian threat. + +But to raise such a great Wonder would be no easy task, one would need construction plans created in the distant past, plans of such an arcane nature that even the very wisest of sages knew not their contents or locations. + +Tens of thousands of scouts roamed across all existence searching in vain for these mystical plans, looking in all places but the dreaded Natarian Capital, yet could not find them. Today however, they return bearing good news, they return baring the locations of the plans, hidden by the armies of the Natars inside secret strongholds constructed to be hidden from the eyes of man. + +Now begins the final stretch, when the greatest armies of the Free people and the Natars will clash across the world for the fate of all that lies under heaven. This is the war that will echo across the eons, this is your war, and here you shall etch your name across history, here you shall become legend. + + +Facts: +To steal one, the following things must happen: +you must attack the village (NO Raid!) +WIN the Attack +destroy the treasury +an empty treasury lvl 10 MUST be in the village where that attack came from +have a hero in an attack + +If not, the next attack on that village, winning with a hero and empty treasury will take the building plan. + +To build a WW, you must own a plan yourself (you = the WW village owner) from lvl 0 to 49, from 50 to 100 you need an additional plan in your alliance! Two plans in the WW village account would not work! + +The construction plans are conquerable immediately when they appear to the server. + +There will be a countdown in game, showing the exact time of the release, 5 days prior to the launch." ,$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()); + } + + echo "Done"; +}else{ +?> +
    + +

    + Choose Password + + +
    Password:
    +

    + +
    +
    +
    + +
    +



    + +
    +
    +
    + +
    + + +
    +
    +
    + pageLoadTimeEnd()-$start)*1000); +?> ms + +
    +
    +
    +
    + +
    + + + \ No newline at end of file diff --git a/crop_finder.php b/crop_finder.php new file mode 100644 index 00000000..5eb96515 --- /dev/null +++ b/crop_finder.php @@ -0,0 +1,357 @@ + | +| Dzoki < dzoki.travian@gmail.com > | +| Copyright: TravianX Project All rights reserved | +\*-------------------------------------------------------*/ + + include ("GameEngine/Village.php"); + + if($session->goldclub == 0) { + header("Location: plus.php?id=3"); + } + + if($_POST['type'] == 15) { + header("Location: ".$_SERVER['PHP_SELF']."?s=1&x=" . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['x']) . '&y=' . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['y'])); + } elseif($_POST['type'] == 9) { + header("Location: ".$_SERVER['PHP_SELF']."?s=2&x=" . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['x']) . '&y=' . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['y'])); + } elseif($_POST['type'] == 'both') { + header("Location: ".$_SERVER['PHP_SELF']."?s=3&x=" . preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['x']) . '&y=' . preg_replace("/[^a-zA-Z0-9_-]/","",$_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: +
    +
    +
    + +
    + + \ No newline at end of file diff --git a/dorf1.php b/dorf1.php new file mode 100644 index 00000000..488e3ddb --- /dev/null +++ b/dorf1.php @@ -0,0 +1,120 @@ +pageLoadTimeStart(); +if(isset($_GET['ok'])){ +$database->updateUserField($session->uid,'ok','0','1'); $_SESSION['ok'] = '0'; +} +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +}else{ +$building->procBuild($_GET); +} +if(isset($_GET['master']) && isset($_GET['id']) && isset($_GET['time']) && $session->gold >= 1 && $session->goldclub && $village->master == 0) { +if($session->access!=BANNED){ +$level = $database->getResourceLevel($village->wid); +$database->addBuilding($village->wid, $_GET['id'], $_GET['master'], 1, $_GET['time'], 1, $level['f'.$_GET['id']] + 1 + count($database->getBuildingByField($village->wid,$_GET['id']))); +header("Location: ".$_SERVER['PHP_SELF']); +}else{ +header("Location: banned.php"); +} +} +?> + + + + <?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..ce99119e --- /dev/null +++ b/dorf2.php @@ -0,0 +1,109 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +}else{ +$building->procBuild($_GET); +} +if(isset($_GET['master']) && isset($_GET['id']) && isset($_GET['time']) && $session->gold >= 1 && $session->goldclub && $village->master == 0) { +if($session->access!=BANNED){ +$level = $database->getResourceLevel($village->wid); +$database->addBuilding($village->wid, $_GET['id'], $_GET['master'], 1, $_GET['time'], 1, $level['f'.$_GET['id']] + 1 + count($database->getBuildingByField($village->wid,$_GET['id']))); +header("Location: ".$_SERVER['PHP_SELF']); +}else{ +header("Location: banned.php"); +} +} +?> + + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    +

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

    +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..cc1e579c --- /dev/null +++ b/dorf3.php @@ -0,0 +1,118 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + if(isset($_GET['s'])){ + header("Location: ".$_SERVER['PHP_SELF']."?s=".$_GET['s']); + }else{ + 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..fd6a9a42 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..1d6190b7 --- /dev/null +++ b/gpack/travian/flaggs.css @@ -0,0 +1,254 @@ +@charset UTF-8; +#flags{position:absolute;top:0;left:0;width:100%;text-align:center;} +#region_select{color:#FFF;font-size:10px;text-transform:uppercase;width:120px;background-color:#535353;border:1px solid #777;margin-right:15px;position:relative;top:-2px;padding:1px 0 1px 4px;} +#flags div{display:inline;} +#flag_box img{margin-top:9px;height:11px;width:16px;background-image:url(elements/country_sprite.gif);} +#flag_box a{margin:4px;} +.flag_ad{background-position:0 0;} +.flag_ae{background-position:-16px 0;} +.flag_af{background-position:-32px 0;} +.flag_ag{background-position:-48px 0;} +.flag_ai{background-position:-64px 0;} +.flag_al{background-position:-80px 0;} +.flag_am{background-position:-96px 0;} +.flag_an{background-position:-112px 0;} +.flag_ao{background-position:-128px 0;} +.flag_ar{background-position:-144px 0;} +.flag_as{background-position:-160px 0;} +.flag_at{background-position:-176px 0;} +.flag_au{background-position:-192px 0;} +.flag_aw{background-position:-208px 0;} +.flag_ax{background-position:-224px 0;} +.flag_az{background-position:-240px 0;} +.flag_ba{background-position:-256px 0;} +.flag_bb{background-position:-272px 0;} +.flag_bd{background-position:-288px 0;} +.flag_be{background-position:-304px 0;} +.flag_bf{background-position:-320px 0;} +.flag_bg{background-position:-336px 0;} +.flag_bh{background-position:-352px 0;} +.flag_bi{background-position:-368px 0;} +.flag_bj{background-position:-384px 0;} +.flag_bm{background-position:-400px 0;} +.flag_bn{background-position:-416px 0;} +.flag_bo{background-position:-432px 0;} +.flag_br{background-position:-448px 0;} +.flag_bs{background-position:-464px 0;} +.flag_bt{background-position:-480px 0;} +.flag_bv{background-position:-496px 0;} +.flag_bw{background-position:-512px 0;} +.flag_by{background-position:-528px 0;} +.flag_bz{background-position:-544px 0;} +.flag_ca{background-position:-560px 0;} +.flag_catalonia{background-position:-576px 0;} +.flag_cc{background-position:-592px 0;} +.flag_cd{background-position:-608px 0;} +.flag_cf{background-position:-624px 0;} +.flag_cg{background-position:-640px 0;} +.flag_ch{background-position:-656px 0;} +.flag_ci{background-position:-672px 0;} +.flag_ck{background-position:-688px 0;} +.flag_cl{background-position:-704px 0;} +.flag_cm{background-position:-720px 0;} +.flag_cn{background-position:-736px 0;} +.flag_co{background-position:-752px 0;} +.flag_cr{background-position:-768px 0;} +.flag_cs{background-position:-784px 0;} +.flag_cu{background-position:-800px 0;} +.flag_cv{background-position:-816px 0;} +.flag_cx{background-position:-832px 0;} +.flag_cy{background-position:-848px 0;} +.flag_cz{background-position:-864px 0;} +.flag_de{background-position:-880px 0;} +.flag_dj{background-position:-896px 0;} +.flag_dk{background-position:-912px 0;} +.flag_dm{background-position:-928px 0;} +.flag_do{background-position:-944px 0;} +.flag_dz{background-position:-960px 0;} +.flag_ec{background-position:-976px 0;} +.flag_ee{background-position:-992px 0;} +.flag_eg{background-position:-1008px 0;} +.flag_eh{background-position:-1024px 0;} +.flag_en{background-position:-1040px 0;} +.flag_er{background-position:-1056px 0;} +.flag_es,.flag_net{background-position:-1072px 0;} +.flag_et{background-position:-1088px 0;} +.flag_europeanunion{background-position:-1104px 0;} +.flag_fam{background-position:-1120px 0;} +.flag_fi{background-position:-1136px 0;} +.flag_fj{background-position:-1152px 0;} +.flag_fk{background-position:-1168px 0;} +.flag_fm{background-position:-1184px 0;} +.flag_fo{background-position:-1200px 0;} +.flag_fr{background-position:-1216px 0;} +.flag_ga{background-position:-1232px 0;} +.flag_uk,.flag_gb{background-position:-1248px 0;} +.flag_gd{background-position:-1264px 0;} +.flag_ge{background-position:-1280px 0;} +.flag_gf{background-position:-1296px 0;} +.flag_gh{background-position:-1312px 0;} +.flag_gi{background-position:-1328px 0;} +.flag_gl{background-position:-1344px 0;} +.flag_gm{background-position:-1360px 0;} +.flag_gn{background-position:-1376px 0;} +.flag_gp{background-position:-1392px 0;} +.flag_gq{background-position:-1408px 0;} +.flag_gr{background-position:-1424px 0;} +.flag_gs{background-position:-1440px 0;} +.flag_gt{background-position:-1456px 0;} +.flag_gu{background-position:-1472px 0;} +.flag_gw{background-position:-1488px 0;} +.flag_gy{background-position:-1504px 0;} +.flag_hk{background-position:-1520px 0;} +.flag_hm{background-position:-1536px 0;} +.flag_hn{background-position:-1552px 0;} +.flag_hr{background-position:-1568px 0;} +.flag_ht{background-position:-1584px 0;} +.flag_hu{background-position:-1600px 0;} +.flag_id{background-position:-1616px 0;} +.flag_ie{background-position:-1632px 0;} +.flag_il{background-position:-1648px 0;} +.flag_in{background-position:-1664px 0;} +.flag_io{background-position:-1680px 0;} +.flag_iq{background-position:-1696px 0;} +.flag_ir{background-position:-1712px 0;} +.flag_is{background-position:-1728px 0;} +.flag_it{background-position:-1744px 0;} +.flag_jm{background-position:-1760px 0;} +.flag_jo{background-position:-1776px 0;} +.flag_jp{background-position:-1792px 0;} +.flag_ke{background-position:-1808px 0;} +.flag_kg{background-position:-1824px 0;} +.flag_kh{background-position:-1840px 0;} +.flag_ki{background-position:-1856px 0;} +.flag_km{background-position:-1872px 0;} +.flag_kn{background-position:-1888px 0;} +.flag_kp{background-position:-1904px 0;} +.flag_kr{background-position:-1920px 0;} +.flag_kw{background-position:-1936px 0;} +.flag_ky{background-position:-1952px 0;} +.flag_kz{background-position:-1968px 0;} +.flag_la{background-position:-1984px 0;} +.flag_lb{background-position:-2000px 0;} +.flag_lc{background-position:-2016px 0;} +.flag_li{background-position:-2032px 0;} +.flag_lk{background-position:-2048px 0;} +.flag_lr{background-position:-2064px 0;} +.flag_ls{background-position:-2080px 0;} +.flag_lt{background-position:-2096px 0;} +.flag_lu{background-position:-2112px 0;} +.flag_lv{background-position:-2128px 0;} +.flag_ly{background-position:-2144px 0;} +.flag_ma{background-position:-2160px 0;} +.flag_mc{background-position:-2176px 0;} +.flag_md{background-position:-2192px 0;} +.flag_me{background-position:-2208px 0;} +.flag_mg{background-position:-2224px 0;} +.flag_mh{background-position:-2240px 0;} +.flag_mk{background-position:-2256px 0;} +.flag_ml{background-position:-2272px 0;} +.flag_mm{background-position:-2288px 0;} +.flag_mn{background-position:-2304px 0;} +.flag_mo{background-position:-2320px 0;} +.flag_mp{background-position:-2336px 0;} +.flag_mq{background-position:-2352px 0;} +.flag_mr{background-position:-2368px 0;} +.flag_ms{background-position:-2384px 0;} +.flag_mt{background-position:-2400px 0;} +.flag_mu{background-position:-2416px 0;} +.flag_mv{background-position:-2432px 0;} +.flag_mw{background-position:-2448px 0;} +.flag_mx{background-position:-2464px 0;} +.flag_my{background-position:-2480px 0;} +.flag_mz{background-position:-2496px 0;} +.flag_na{background-position:-2512px 0;} +.flag_nc{background-position:-2528px 0;} +.flag_ne{background-position:-2544px 0;} +.flag_nf{background-position:-2560px 0;} +.flag_ng{background-position:-2576px 0;} +.flag_ni{background-position:-2592px 0;} +.flag_nl{background-position:-2608px 0;} +.flag_no{background-position:-2624px 0;} +.flag_np{background-position:-2640px 0;} +.flag_nr{background-position:-2656px 0;} +.flag_nu{background-position:-2672px 0;} +.flag_nz{background-position:-2688px 0;} +.flag_om{background-position:-2704px 0;} +.flag_pa{background-position:-2720px 0;} +.flag_pe{background-position:-2736px 0;} +.flag_pf{background-position:-2752px 0;} +.flag_pg{background-position:-2768px 0;} +.flag_ph{background-position:-2784px 0;} +.flag_pk{background-position:-2800px 0;} +.flag_pl{background-position:-2816px 0;} +.flag_pm{background-position:-2832px 0;} +.flag_pn{background-position:-2848px 0;} +.flag_pr{background-position:-2864px 0;} +.flag_ps{background-position:-2880px 0;} +.flag_pt{background-position:-2896px 0;} +.flag_pw{background-position:-2912px 0;} +.flag_py{background-position:-2928px 0;} +.flag_qa{background-position:-2944px 0;} +.flag_re{background-position:-2960px 0;} +.flag_ro{background-position:-2976px 0;} +.flag_rs{background-position:-2992px 0;} +.flag_ru{background-position:-3008px 0;} +.flag_rw{background-position:-3024px 0;} +.flag_sa{background-position:-3040px 0;} +.flag_sb{background-position:-3056px 0;} +.flag_sc{background-position:-3072px 0;} +.flag_scotland{background-position:-3088px 0;} +.flag_sd{background-position:-3104px 0;} +.flag_se{background-position:-3120px 0;} +.flag_sg{background-position:-3136px 0;} +.flag_sh{background-position:-3152px 0;} +.flag_si{background-position:-3168px 0;} +.flag_sj{background-position:-3184px 0;} +.flag_sk{background-position:-3200px 0;} +.flag_sl{background-position:-3216px 0;} +.flag_sm{background-position:-3232px 0;} +.flag_sn{background-position:-3248px 0;} +.flag_so{background-position:-3264px 0;} +.flag_sr{background-position:-3280px 0;} +.flag_st{background-position:-3296px 0;} +.flag_sv{background-position:-3312px 0;} +.flag_sy{background-position:-3328px 0;} +.flag_sz{background-position:-3344px 0;} +.flag_tc{background-position:-3360px 0;} +.flag_td{background-position:-3376px 0;} +.flag_tf{background-position:-3392px 0;} +.flag_tg{background-position:-3408px 0;} +.flag_th{background-position:-3424px 0;} +.flag_tj{background-position:-3440px 0;} +.flag_tk{background-position:-3456px 0;} +.flag_tl{background-position:-3472px 0;} +.flag_tm{background-position:-3488px 0;} +.flag_tn{background-position:-3504px 0;} +.flag_to{background-position:-3520px 0;} +.flag_tr{background-position:-3536px 0;} +.flag_tt{background-position:-3552px 0;} +.flag_tv{background-position:-3568px 0;} +.flag_tw{background-position:-3584px 0;} +.flag_tz{background-position:-3600px 0;} +.flag_ua{background-position:-3616px 0;} +.flag_ug{background-position:-3632px 0;} +.flag_um{background-position:-3648px 0;} +.flag_us{background-position:-3664px 0;} +.flag_uy{background-position:-3680px 0;} +.flag_uz{background-position:-3696px 0;} +.flag_va{background-position:-3712px 0;} +.flag_vc{background-position:-3728px 0;} +.flag_ve{background-position:-3744px 0;} +.flag_vg{background-position:-3760px 0;} +.flag_vi{background-position:-3776px 0;} +.flag_vn{background-position:-3792px 0;} +.flag_vu{background-position:-3808px 0;} +.flag_wales{background-position:-3824px 0;} +.flag_wf{background-position:-3840px 0;} +.flag_ws{background-position:-3856px 0;} +.flag_ye{background-position:-3872px 0;} +.flag_yt{background-position:-3888px 0;} +.flag_za{background-position:-3904px 0;} +.flag_zm{background-position:-3920px 0;} +.flag_zw{background-position:-3936px 0;} +.flag_com{background-position:-3952px 0;} diff --git a/gpack/travian/images/anleitung_background.gif b/gpack/travian/images/anleitung_background.gif new file mode 100644 index 00000000..3388871f Binary files /dev/null and b/gpack/travian/images/anleitung_background.gif differ diff --git a/gpack/travian/images/anleitung_footer.gif b/gpack/travian/images/anleitung_footer.gif new file mode 100644 index 00000000..a9d23566 Binary files /dev/null and b/gpack/travian/images/anleitung_footer.gif differ diff --git a/gpack/travian/images/anleitung_header.gif b/gpack/travian/images/anleitung_header.gif new file mode 100644 index 00000000..93f996fc Binary files /dev/null and b/gpack/travian/images/anleitung_header.gif differ diff --git a/gpack/travian/images/artwork-ltr.jpg b/gpack/travian/images/artwork-ltr.jpg new file mode 100644 index 00000000..5719683c Binary files /dev/null and b/gpack/travian/images/artwork-ltr.jpg 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-left.gif b/gpack/travian/images/buttons_screenshots-left.gif new file mode 100644 index 00000000..af022041 Binary files /dev/null and b/gpack/travian/images/buttons_screenshots-left.gif differ diff --git a/gpack/travian/images/buttons_screenshots-right.gif b/gpack/travian/images/buttons_screenshots-right.gif new file mode 100644 index 00000000..09749a14 Binary files /dev/null and b/gpack/travian/images/buttons_screenshots-right.gif 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-ltr.jpg b/gpack/travian/images/count_background-ltr.jpg new file mode 100644 index 00000000..b38bd67a Binary files /dev/null and b/gpack/travian/images/count_background-ltr.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/gameworld_background.jpg b/gpack/travian/images/gameworld_background.jpg new file mode 100644 index 00000000..6faabda8 Binary files /dev/null and b/gpack/travian/images/gameworld_background.jpg differ diff --git a/gpack/travian/images/gameworld_footer.jpg b/gpack/travian/images/gameworld_footer.jpg new file mode 100644 index 00000000..85daf834 Binary files /dev/null and b/gpack/travian/images/gameworld_footer.jpg differ diff --git a/gpack/travian/images/gameworld_header.jpg b/gpack/travian/images/gameworld_header.jpg new file mode 100644 index 00000000..6fae2d99 Binary files /dev/null and b/gpack/travian/images/gameworld_header.jpg differ diff --git a/gpack/travian/images/info_background-ltr.jpg b/gpack/travian/images/info_background-ltr.jpg new file mode 100644 index 00000000..7c3125b3 Binary files /dev/null and b/gpack/travian/images/info_background-ltr.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-ltr.jpg b/gpack/travian/images/logo_background-ltr.jpg new file mode 100644 index 00000000..c2efefd4 Binary files /dev/null and b/gpack/travian/images/logo_background-ltr.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/popup-left.gif b/gpack/travian/images/popup-left.gif new file mode 100644 index 00000000..16f3031b Binary files /dev/null and b/gpack/travian/images/popup-left.gif differ diff --git a/gpack/travian/images/popup-next.gif b/gpack/travian/images/popup-next.gif new file mode 100644 index 00000000..ed1006dd Binary files /dev/null and b/gpack/travian/images/popup-next.gif differ diff --git a/gpack/travian/images/popup-prev.gif b/gpack/travian/images/popup-prev.gif new file mode 100644 index 00000000..16f3031b Binary files /dev/null and b/gpack/travian/images/popup-prev.gif differ diff --git a/gpack/travian/images/popup-right.gif b/gpack/travian/images/popup-right.gif new file mode 100644 index 00000000..ed1006dd Binary files /dev/null and b/gpack/travian/images/popup-right.gif differ diff --git a/gpack/travian/images/popup_close.gif b/gpack/travian/images/popup_close.gif new file mode 100644 index 00000000..a262cd23 Binary files /dev/null and b/gpack/travian/images/popup_close.gif differ diff --git a/gpack/travian/images/screenshot_footer.gif b/gpack/travian/images/screenshot_footer.gif new file mode 100644 index 00000000..08be6f27 Binary files /dev/null and b/gpack/travian/images/screenshot_footer.gif differ diff --git a/gpack/travian/images/screenshot_header.jpg b/gpack/travian/images/screenshot_header.jpg new file mode 100644 index 00000000..0277a42e Binary files /dev/null and b/gpack/travian/images/screenshot_header.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/images/social_abstand.jpg b/gpack/travian/images/social_abstand.jpg new file mode 100644 index 00000000..7c3f2eca Binary files /dev/null and b/gpack/travian/images/social_abstand.jpg differ diff --git a/gpack/travian/images/social_box1-ltr.jpg b/gpack/travian/images/social_box1-ltr.jpg new file mode 100644 index 00000000..babe28f8 Binary files /dev/null and b/gpack/travian/images/social_box1-ltr.jpg differ diff --git a/gpack/travian/images/social_box2-ltr.jpg b/gpack/travian/images/social_box2-ltr.jpg new file mode 100644 index 00000000..23d6c002 Binary files /dev/null and b/gpack/travian/images/social_box2-ltr.jpg differ diff --git a/gpack/travian/images/social_button1.gif b/gpack/travian/images/social_button1.gif new file mode 100644 index 00000000..d60369d4 Binary files /dev/null and b/gpack/travian/images/social_button1.gif differ diff --git a/gpack/travian/images/social_button2.gif b/gpack/travian/images/social_button2.gif new file mode 100644 index 00000000..3c018ee6 Binary files /dev/null and b/gpack/travian/images/social_button2.gif differ diff --git a/gpack/travian/images/social_landing_hg-ltr.jpg b/gpack/travian/images/social_landing_hg-ltr.jpg new file mode 100644 index 00000000..1e197816 Binary files /dev/null and b/gpack/travian/images/social_landing_hg-ltr.jpg differ diff --git a/gpack/travian/main.css b/gpack/travian/main.css new file mode 100644 index 00000000..89ae6e17 --- /dev/null +++ b/gpack/travian/main.css @@ -0,0 +1,1033 @@ +@charset utf-8; +/* allgemeines */ +body +{ + background-color:#FFF; + direction:ltr; + font-size:13px; + line-height:19px; + margin:0; + text-align:left +} + +html +{ + overflow-y:scroll +} + +html,body +{ + height:100%; + margin:0; + padding:0 +} + +body,button,input,select,textarea +{ + font-family:Arial, Verdana, Helvetica, sans-serif +} + +a +{ + font-size:13px; + text-decoration:none +} + +a:hover +{ + color:#00BC00; + text-decoration:underline +} + +#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 +} + +.wrapper +{ + height:auto!important; + min-height:100%; + min-width:845px; + position:relative; + text-align:center +} + +img.dynamic_btn,img.dynamic_img +{ + background-position:top; + background-repeat:no-repeat +} + +img.over +{ + background-position:bottom +} + +img.clicked +{ + background-position:center +} + +.f16 +{ + font-size:16pt +} + +.f10 +{ + font-size:10pt +} + +.f9 +{ + font-size:9pt; + font-weight:400; + line-height:140% +} + +.f8 +{ + font-size:8pt +} + +.f7 +{ + font-size:7pt +} + +.f6 +{ + font-size:6pt +} + +.c +{ + color:silver +} + +.c0 +{ + color:#000 +} + +.c3 +{ + color:#228B22 +} + +.c4 +{ + color:#F2C700 +} + +.c5 +{ + color:red +} + +body.contentpage h1 +{ + font-size:26px; + margin-bottom:40px; + padding-top:70px; + text-align:center +} + +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-bottom:15px; + margin-top:15px +} + +body.contentpage .rules strong +{ + color:#2A720B +} + +body.contentpage .rules ul strong +{ + color:#3BAE18 +} + +body.contentpage table.table_data +{ + background-color:silver; + text-align:center; + width:550px +} + +body.contentpage table.culture_points +{ + margin:15px 110px; + width:650px +} + +#tutorial_nav,body.contentpage table.tutorial_table +{ + background-color:#fff; + table-layout:fixed; + width:550px +} + +body.contentpage #content td.beschreibung +{ + padding-top:50px; + text-align:left +} + +body.contentpage table.tutorial_table td.visual +{ + font-size:11px; + font-style:italic; + text-align:center +} + +body.contentpage table.tutorial_table td.visual img +{ + display:block; + margin:auto +} + +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 +} + +td.text,th.text +{ + padding-left:7px; + text-align:left +} + +body.contentpage #content h2 +{ + color:#71d000; + font-size:16px; + line-height:20px; + margin:50px 160px 10px +} + +body.contentpage #content h3 +{ + font-size:14px; + line-height:18px; + margin:15px 160px 5px +} + +body.contentpage #content table h3 +{ + margin:3px +} + +body.contentpage #content ul +{ + margin-top:5px +} + +#content .question +{ + color:#333; + font-style:italic; + padding-top:30px +} + +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 +{ + left:0; + margin:0 auto; + position:absolute; + right:0; + top:0; + width:100%; + z-index:10 +} + +body.indexpage #header +{ + background:transparent url(images/artwork.jpg) no-repeat top center; + height:389px; + overflow:auto +} + +body.contentpage #header +{ + background:transparent none; + height:200px +} + +#country_select +{ + background:#fff url(images/country_background.jpg) repeat-x top; + height:30px; + left:0; + position:absolute; + top:0; + width:100%; + z-index:500 +} + +#navigation +{ + height:114px; + left:50%; + margin-left:-437px; + position:absolute; + top:52px; + width:830px; + z-index:80 +} + +.contentpage #navigation +{ + background:url(images/logo_background.jpg) no-repeat top left +} + +#navigation table.menu +{ + position:absolute; + right:25px; + top:30px; + width:500px +} + +#navigation .menu td +{ + text-align:center +} + +#navigation .menu a +{ + color:#333; + font-size:14px; + line-height:20px; + padding:6px 10px 7px 0; + text-decoration:none; + text-shadow:1px 1px 1px #fff +} + +#navigation .menu a.mark +{ + color:#a20327 +} + +#navigation a.home +{ + height:85px; + left:55px; + position:absolute; + top:0; + width:250px +} + +#navigation .menu a span +{ + padding:6px 0 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 +} + +#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 +{ + color:#574b2e; + font-weight:700; + height:50px; + left:50%; + margin-left:-151px; + position:absolute; + top:277px; + width:145px; + z-index:250 +} + +#register_now a +{ + color:#574b2e; + display:block; + font-size:21px; + margin-top:7px +} + +#register_now span +{ + font-size:9px +} + +#t4play +{ + left:50%; + margin-left:30px; + position:absolute; + top:109px; + z-index:250 +} + +#t4play img +{ + height:290px; + width:460px +} + +#content +{ + position:relative; + z-index:50 +} + +body.indexpage #content +{ + padding-bottom:120px; + padding-top:367px +} + +body.contentpage #content +{ + padding-bottom:160px; + padding-top:177px +} + +#content .grit +{ + margin:0 auto; + position:relative +} + +body.indexpage #content .grit +{ + background:transparent none; + width:830px +} + +body.contentpage #content .grit +{ + background:transparent url(images/content_background.jpg) no-repeat top left; + min-height:400px; + width:840px +} + +.grit .infobox +{ + background:transparent url(images/info_background.jpg) no-repeat top left; + float:left; + margin-left:15px; + margin-right:9px; + min-height:391px; + width:378px +} + +.grit .infobox div +{ + padding-left:43px; + padding-right:30px +} + +#what_is_travian +{ + padding-top:5px +} + +#what_is_travian h2 +{ + color:#71d000; + font-size:18px; + font-weight:400; + line-height:20px; + margin-bottom:10px; + text-shadow:0 2px 1px #fff +} + +#what_is_travian .play_now +{ + margin:10px 0 +} + +#player_counter +{ + background:transparent url(images/count_background.jpg) no-repeat top left; + height:98px; + left:23px; + padding:0; + position:relative; + width:330px +} + +#player_counter table +{ + border-spacing:0; + left:135px; + position:absolute; + top:20px; + width:165px +} + +#about_the_game h2 +{ + font-size:15px; + line-height:20px; + margin-bottom:5px +} + +#about_the_game ul +{ + margin:5px 0 0 15px; + padding:0 +} + +#about_the_game li +{ + line-height:19px +} + +#news_from_forum h2 +{ + cursor:pointer; + font-size:15px; + line-height:20px; + margin-bottom:5px +} + +#news_from_forum ul +{ + border-top:1px solid #999; + list-style:none; + margin:5px 10px 0 0; + padding:0 +} + +#news_from_forum li +{ + border-bottom:1px solid #999; + line-height:19px; + padding:3px 5px +} + +.grit .secondarybox +{ + background:transparent url(images/news_background.jpg) repeat-y top left; + float:left; + margin-top:22px; + width:397px +} + +.grit #screenshots +{ + background:transparent url(images/screenshots_background.jpg) no-repeat top left; + height:134px; + position:relative; + width:397px +} + +#screenshots h2 +{ + color:#fff; + font-size:13px; + margin:0; + padding:23px 20px 0 +} + +#screenshots_preview +{ + height:73px; + margin:7px 53px; + overflow:hidden; + padding:0; + position:absolute; + width:294px +} + +#screenshot_list +{ + height:73px; + list-style:none; + margin:0; + padding:0 +} + +#screenshots .navi img +{ + height:26px; + position:absolute; + top:70px; + width:26px +} + +#screenshots .next img +{ + background-image:url(images/buttons_screenshots_next.gif); + right:7px +} + +#screenshots .prev img +{ + background-image:url(images/buttons_screenshots_prev.gif); + left:10px +} + +#screenshot_list img +{ + height:73px; + width:98px +} + +#newsbox +{ + background:transparent url(images/news_footer.jpg) no-repeat bottom left; + padding-bottom:25px +} + +#newsbox h2 +{ + background:transparent url(images/news_header.jpg) no-repeat top left; + color:#4c4c4c; + display:block; + font-size:17px; + height:30px; + margin:0; + padding:7px 15px 0 +} + +#newsbox .news +{ + background:transparent url(images/news_spacer.jpg) no-repeat bottom left; + padding-bottom:0; + padding-left:15px; + width:397px +} + +#newsbox .news h4 +{ + margin:3px 0 0 +} + +#newsbox .news p.date +{ + color:#999; + font-size:11px; + padding-bottom:0 +} + +#newsbox .news p +{ + margin:0; + padding-bottom:10px; + padding-right:30px +} + +#footer +{ + background:#F1F1F1 url(images/footer_background.jpg) repeat-x top; + bottom:0; + height:90px; + left:0; + margin:0 auto; + position:absolute; + right:0; + z-index:80 +} + +#footer .logo_traviangames +{ + background-image:url(images/logo_traviangames.jpg); + height:34px; + width:182px +} + +#footer .logo +{ + left:6px; + position:absolute; + top:20px +} + +#footer li,#footer a +{ + color:#787878; + font-size:11px; + line-height:20px +} + +#footer .menu +{ + position:absolute; + right:9px; + top:18px +} + +#footer .container +{ + margin:0 auto; + position:relative; + width:840px +} + +#footer .copyright +{ + clear:left; + direction:ltr; + position:absolute; + right:3px; + top:20px +} + +#footer ul.menu a +{ + padding:0 3px +} + +.overlay +{ + bottom:0; + left:0; + position:absolute; + right:0; + top:0; + z-index:400 +} + +.overlay .mask +{ + background-color:#000; + filter:alpha(opacity=25); + height:100%; + opacity:0.25; + position:fixed; + width:100% +} + +.overlay_content +{ + position:absolute; + right:50%; + top:150px; + z-index:600 +} + +.overlay_content .closer img +{ + background-image:url(images/popup_close.gif); + height:25px; + position:absolute; + right:15px; + top:15px; + width:25px +} + +.overlay_content .footer +{ + clear:both; + height:10px +} + +.overlay_content h2,.overlay_content h4 +{ + font-size:16px; + line-height:20px; + margin:0; + padding:20px 20px 0 +} + +#screenshot_layer .overlay_content +{ + background:#fff url(images/screenshot_background.gif) repeat-y top left; + margin-right:-322px; + text-align:center; + width:644px +} + +#screenshot_layer h4 +{ + background:transparent url(images/screenshot_header.jpg) no-repeat top left; + padding-bottom:15px; + text-align:center +} + +#screenshot_layer #screen_desc +{ + font-size:12px; + margin:20px 0; + padding:0 40px +} + +.screenshot_view img +{ + border:1px solid #ccc +} + +#screenshot_layer .footer +{ + background:transparent url(images/screenshot_footer.gif) no-repeat bottom left +} + +#screenshot_layer .navi img +{ + height:25px; + position:absolute; + top:250px; + width:25px +} + +#screenshot_layer .next img +{ + background-image:url(images/popup_next.gif); + right:20px +} + +#screenshot_layer .prev img +{ + background-image:url(images/popup_prev.gif); + left:20px +} + +#iframe_layer .overlay_content +{ + background:#fff url(images/anleitung_background.gif) repeat-y top left; + margin-right:-225px; + width:450px +} + +#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 .overlay_content,#signup_layer .overlay_content +{ + background:#fff url(images/gameworld_background.jpg) repeat-y top left; + margin-right:-192px; + width:384px +} + +#login_layer h2,#signup_layer h2 +{ + background:transparent url(images/gameworld_header.jpg) no-repeat top left; + color:#71d000 +} + +#login_layer .footer,#signup_layer .footer +{ + background:transparent url(images/gameworld_footer.jpg) no-repeat bottom left +} + +ul.world_list +{ + list-style:none; + margin:0; + padding:7px +} + +.world_list li +{ + background-repeat:no-repeat; + float:left; + margin:4px 5px; + position:relative +} + +.world_list li div +{ + position:absolute +} + +.world_list li img +{ + position:absolute; + z-index:30 +} + +.world_list .w_small .players +{ + left:123px; + top:5px +} + +.world_list .w_small .online +{ + left:123px; + top:22px +} + +.world_list .w_big .players +{ + right:20px; + top:15px +} + +.world_list .w_big .online +{ + right:20px; + top:33px +} + +.world_list .label_players +{ + left:235px; + top:15px +} + +.world_list .label_online +{ + left:235px; + top:33px +} + +.world_list .worldstart +{ + right:20px; + top:10px +} + +.world_list .timer +{ + bottom:15px; + right:20px +} + +a,a:visited,.c1 +{ + color:#71D000 +} + +a:active,.e,.c2 +{ + color:#FF8000 +} + +#content a,.b,#player_counter table td +{ + font-weight:700 +} + +.menu li,#screenshot_list li +{ + float:left +} + +.wrapper #content,#tutorial_nav td.nav_prev,table.middle td.no +{ + text-align:left +} + +.t,#player_counter table th,#news_from_forum li a +{ + font-weight:400 +} + +h1,body.contentpage form table,body.contentpage #content td li,body.contentpage #content td form,#what_is_travian p +{ + margin:0 +} + +#tutorial_nav td.nav_next,table.middle td.yes +{ + text-align:right +} + +#header h1,.hide,.grit #screenshots .prev img,#screenshot_layer,#screenshot_layer h3,#iframe_layer,#login_layer,#signup_layer +{ + display:none +} + +.ie6 #navigation .menu a:hover,.ie7 #navigation .menu a:hover,.ie6 #navigation .menu a:hover span,.ie7 #navigation .menu a:hover span +{ + background:transparent +} + +#screenshot_layer #frame_box,#iframe_layer #frame_box +{ + margin:0 20px +} + +.world_list li.w_big,.world_list .w_big img +{ + height:64px; + width:361px +} + +.world_list li.w_small,.world_list .w_small img +{ + height:46px; + width:175px +} diff --git a/gpack/travian/main_en.css b/gpack/travian/main_en.css new file mode 100644 index 00000000..956501e3 --- /dev/null +++ b/gpack/travian/main_en.css @@ -0,0 +1,127 @@ +@CHARSET "UTF-8";body{background-color:#FFF;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%;}.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;}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;} +h1{margin:0;}body.contentPage h1{text-align:center;padding-top:70px;margin-bottom:40px;font-size:26px;} +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:0;}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;}#header{position:absolute;margin:0 auto;right:0;left:0;width:100%;} +#header{top:0;z-index:10;}body.indexPage #header{height:389px;overflow:auto;}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;} +#navigation{position:absolute;top:52px;left:50%;margin-left:-437px;width:830px;height:114px;z-index:80;} +#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:0;} +#navigation .menu a{padding:6px 10px 7px 0;}#navigation .menu a span{padding:6px 0 7px 10px;} +#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;} +.grit .infobox{float:left;margin-right:9px;margin-left:15px;min-height:391px;width:378px;} +.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:0 2px 1px #fff;} +#what_is_travian .play_now{margin:10px 0;}#player_counter{position:relative;padding:0;left:23px;height:98px;width:330px;} +#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 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;width:397px;} +.grit #screenshots{position:relative;height:134px;width:397px;}.grit #screenshots .prev img{display:none;} +#screenshots h2{margin:0;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;}#screenshots .prev img{left:10px;}#screenshot_list li{float:left;} +#screenshot_list img{width:98px;height:73px;}#newsbox{padding-bottom:25px;}#newsbox h2{display:block;padding:7px 15px 0;height:30px;margin:0;font-size:17px;color:#4c4c4c;} +#newsbox .news{width:397px;padding-bottom:0;padding-left:15px;}#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{position:absolute;margin:0 auto;right:0;left:0;bottom:0;height:90px;z-index:80;} +#footer .logo_traviangames{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:0;left:0;right:0;bottom:0;z-index:400;} +.overlay .mask{position:fixed;background-color:#000;opacity:.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;height:25px;width:25px;} +.overlay_content .footer{clear:both;height:10px;}.overlay_content h2,.overlay_content h4{margin:0;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;text-align:center;} +#screenshot_layer h4{text-align:center;padding-bottom:15px;}#screen_desc{margin:20px 0;padding:0 40px;font-size:12px;} +.screenshot_view img{border:1px solid #ccc;}#screenshot_layer .navi img{position:absolute;width:25px;height:25px;top:250px;} +#screenshot_layer .next img{right:20px;}#screenshot_layer .prev img{left:20px;}#iframe_layer{display:none;} +#iframe_layer .overlay_content{width:450px;margin-right:-225px;}#frame_box{margin:0 20px;} +#iframe_layer h2{padding-bottom:15px;}#login_layer,#signup_layer{display:none;}#login_layer .overlay_content,#signup_layer .overlay_content{width:384px;margin-right:-192px;} +#login_layer h2,#signup_layer h2{color:#71d000;}ul.world_list{padding:7px;margin:0;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:relative;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;} +body.socialPage .statHeader{margin-top:22px;padding-bottom:8px;}body.socialPage #header{transparent;height:389px;overflow:auto;} +body.socialPage .infobox .space{min-height:54px;}body.socialPage .secondarybox h2{font-size:25px;line-height:30px;} +body.socialPage .grit .infobox{float:left;margin-left:15px;margin-right:9px;min-height:391px;width:378px;} +body.socialPage #content{padding-top:210px;}.socialPage .secondarybox{margin-left:8px;padding-left:40px;padding-right:40px;margin-top:0;width:415px;min-height:390px;} +body.socialPage #content .grit{width:930px;}body.socialPage a.buttonLink{display:block;clear:both;color:white;height:43px;text-align:center;vertical-align:center;padding-top:23px;margin-top:10px;font-size:16px;} +body.socialPage a.buttonLink:HOVER{color:white;}img{border:0;}img.dynamic_btn,img.dynamic_img{background-position:top;background-repeat:no-repeat;} +img.over{background-position:bottom;}img.clicked{background-position:center;}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;} +body.indexPage #header{background:transparent url("images/artwork-ltr.jpg") no-repeat top center;} +#country_select{background:#fff url("images/country_background.jpg") repeat-x top;} +.contentPage #navigation{background:url("images/logo_background-ltr.jpg") no-repeat top left;} +#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;} +#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;} +body.contentPage #content .grit{background:transparent url("images/content_background.jpg") no-repeat top left;} +.grit .infobox{background:transparent url("images/info_background-ltr.jpg") no-repeat top left;} +.grit .secondarybox{background:transparent url("images/news_background.jpg") repeat-y top left;} +.grit #screenshots{background:transparent url("images/screenshots_background.jpg") no-repeat top left;} +#screenshots .next img{background-image:url("images/buttons_screenshots-right.gif");} +#screenshots .prev img{background-image:url("images/buttons_screenshots-left.gif");} +#player_counter{background:transparent url("images/count_background-ltr.jpg") no-repeat top left;} +#newsbox{background:transparent url("images/news_footer.jpg") no-repeat bottom left;} +#newsbox h2{background:transparent url("images/news_header.jpg") no-repeat top left;} +#newsbox .news{background:transparent url("images/news_spacer.jpg") no-repeat bottom left;} +#footer{background:#F1F1F1 url("images/footer_background.jpg") repeat-x top;}#footer .logo_traviangames{background-image:url("images/logo_traviangames.jpg");} +.overlay_content .closer img{background-image:url("images/popup_close.gif");}#screenshot_layer .overlay_content{background:#fff url("images/screenshot_background.gif") repeat-y top left;} +#screenshot_layer h4{background:transparent url("images/screenshot_header.jpg") no-repeat top left;} +#screenshot_layer .footer{background:transparent url("images/screenshot_footer.gif") no-repeat bottom left;} +#screenshot_layer .next img{background-image:url("images/popup-right.gif");}#screenshot_layer .prev img{background-image:url("images/popup-left.gif");} +#login_layer .overlay_content,#signup_layer .overlay_content{background:#fff url("images/gameworld_background.jpg") repeat-y top left;} +#login_layer h2,#signup_layer h2{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;} +#iframe_layer h2{background:transparent url("images/anleitung_header.gif") no-repeat top left;} +#iframe_layer .footer{background:transparent url("images/anleitung_footer.gif") no-repeat bottom left;} +#iframe_layer .overlay_content{background:#fff url("images/anleitung_background.gif") repeat-y top left;} +.socialPage .grit .infobox{background:url("images/social_box1-ltr.jpg") no-repeat scroll left top transparent;} +.socialPage .secondarybox{background:url("images/social_box2-ltr.jpg") no-repeat scroll left top transparent;} +.socialPage a.buttonLink{background:url("images/social_button1.gif") no-repeat scroll center center;} +.socialPage a.buttonLink:HOVER{background:url("images/social_button2.gif") no-repeat scroll center center;} +body.socialPage #header{background:url("images/social_landing_hg-ltr.jpg") no-repeat scroll center top;} +body.socialPage{background:url("images/social_abstand.jpg") repeat-x scroll center top #FFF;} +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;} +.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{color:#FF8000;}.c{color:#C0C0C0;} +.c0{color:#000;}.c1{color:#71D000;}.c2{color:#FF8000;}.c3{color:#228B22;}.c4{color:#F2C700;} +.c5{color:#F00;}.b{font-weight:bold;}.t{font-weight:normal;} \ No newline at end of file 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/banner-zravianx.png b/gpack/travian_default/images/banner-zravianx.png new file mode 100644 index 00000000..d21b94ad Binary files /dev/null and b/gpack/travian_default/images/banner-zravianx.png 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/footer_logo.png b/gpack/travian_default/images/footer_logo.png new file mode 100644 index 00000000..e1bd1b68 Binary files /dev/null and b/gpack/travian_default/images/footer_logo.png differ diff --git a/gpack/travian_default/images/footer_logo.psd b/gpack/travian_default/images/footer_logo.psd new file mode 100644 index 00000000..c1a3cc09 Binary files /dev/null and b/gpack/travian_default/images/footer_logo.psd differ diff --git a/gpack/travian_default/images/footer_logo_traviangames.gif b/gpack/travian_default/images/footer_logo_traviangames.gif new file mode 100644 index 00000000..30b763b5 Binary files /dev/null and b/gpack/travian_default/images/footer_logo_traviangames.gif differ diff --git a/gpack/travian_default/images/footer_logo_zravianx.gif b/gpack/travian_default/images/footer_logo_zravianx.gif new file mode 100644 index 00000000..e3b749de Binary files /dev/null and b/gpack/travian_default/images/footer_logo_zravianx.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/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_all.gif b/gpack/travian_default/img/a/def_all.gif new file mode 100644 index 00000000..796262bc Binary files /dev/null and b/gpack/travian_default/img/a/def_all.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/type-1.gif b/gpack/travian_default/img/artefact/type-1.gif new file mode 100644 index 00000000..ca5322bb Binary files /dev/null and b/gpack/travian_default/img/artefact/type-1.gif differ diff --git a/gpack/travian_default/img/artefact/type-10.gif b/gpack/travian_default/img/artefact/type-10.gif new file mode 100644 index 00000000..be259efe Binary files /dev/null and b/gpack/travian_default/img/artefact/type-10.gif differ diff --git a/gpack/travian_default/img/artefact/type-2.gif b/gpack/travian_default/img/artefact/type-2.gif new file mode 100644 index 00000000..cca12681 Binary files /dev/null and b/gpack/travian_default/img/artefact/type-2.gif differ diff --git a/gpack/travian_default/img/artefact/type-4.gif b/gpack/travian_default/img/artefact/type-4.gif new file mode 100644 index 00000000..279b87bc Binary files /dev/null and b/gpack/travian_default/img/artefact/type-4.gif differ diff --git a/gpack/travian_default/img/artefact/type-5.gif b/gpack/travian_default/img/artefact/type-5.gif new file mode 100644 index 00000000..36f2ac3f Binary files /dev/null and b/gpack/travian_default/img/artefact/type-5.gif differ diff --git a/gpack/travian_default/img/artefact/type-6.gif b/gpack/travian_default/img/artefact/type-6.gif new file mode 100644 index 00000000..4fac61de Binary files /dev/null and b/gpack/travian_default/img/artefact/type-6.gif differ diff --git a/gpack/travian_default/img/artefact/type-8.gif b/gpack/travian_default/img/artefact/type-8.gif new file mode 100644 index 00000000..6fe885d3 Binary files /dev/null and b/gpack/travian_default/img/artefact/type-8.gif differ diff --git a/gpack/travian_default/img/artefact/type-9.gif b/gpack/travian_default/img/artefact/type-9.gif new file mode 100644 index 00000000..63580fde Binary files /dev/null and b/gpack/travian_default/img/artefact/type-9.gif differ diff --git a/gpack/travian_default/img/artefact/type-fool.gif b/gpack/travian_default/img/artefact/type-fool.gif new file mode 100644 index 00000000..17480d7b Binary files /dev/null and b/gpack/travian_default/img/artefact/type-fool.gif 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/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/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/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/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/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/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/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/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/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/no_ads.png b/gpack/travian_default/img/p/no_ads.png new file mode 100644 index 00000000..4ef8f4e8 Binary files /dev/null and b/gpack/travian_default/img/p/no_ads.png 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/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/l0.jpg b/gpack/travian_default/img/q/l0.jpg new file mode 100644 index 00000000..5f700f4b Binary files /dev/null and b/gpack/travian_default/img/q/l0.jpg differ diff --git a/gpack/travian_default/img/q/l0g.jpg b/gpack/travian_default/img/q/l0g.jpg new file mode 100644 index 00000000..5f700f4b Binary files /dev/null and b/gpack/travian_default/img/q/l0g.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/l4.jpg b/gpack/travian_default/img/q/l4.jpg new file mode 100644 index 00000000..5f700f4b Binary files /dev/null and b/gpack/travian_default/img/q/l4.jpg differ diff --git a/gpack/travian_default/img/q/l4g.jpg b/gpack/travian_default/img/q/l4g.jpg new file mode 100644 index 00000000..5f700f4b Binary files /dev/null and b/gpack/travian_default/img/q/l4g.jpg differ diff --git a/gpack/travian_default/img/q/l5.jpg b/gpack/travian_default/img/q/l5.jpg new file mode 100644 index 00000000..5f700f4b Binary files /dev/null and b/gpack/travian_default/img/q/l5.jpg differ diff --git a/gpack/travian_default/img/q/l5g.jpg b/gpack/travian_default/img/q/l5g.jpg new file mode 100644 index 00000000..5f700f4b Binary files /dev/null and b/gpack/travian_default/img/q/l5g.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/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/peace.gif b/gpack/travian_default/img/r/peace.gif new file mode 100644 index 00000000..7b1f6d30 Binary files /dev/null and b/gpack/travian_default/img/r/peace.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/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/scouts/18.gif b/gpack/travian_default/img/scouts/18.gif new file mode 100644 index 00000000..18817d87 Binary files /dev/null and b/gpack/travian_default/img/scouts/18.gif differ diff --git a/gpack/travian_default/img/scouts/19.gif b/gpack/travian_default/img/scouts/19.gif new file mode 100644 index 00000000..656b9fac Binary files /dev/null and b/gpack/travian_default/img/scouts/19.gif differ diff --git a/gpack/travian_default/img/scouts/20.gif b/gpack/travian_default/img/scouts/20.gif new file mode 100644 index 00000000..573c08b8 Binary files /dev/null and b/gpack/travian_default/img/scouts/20.gif differ diff --git a/gpack/travian_default/img/scouts/21.gif b/gpack/travian_default/img/scouts/21.gif new file mode 100644 index 00000000..227e33eb Binary files /dev/null and b/gpack/travian_default/img/scouts/21.gif differ diff --git a/gpack/travian_default/img/scouts/22.gif b/gpack/travian_default/img/scouts/22.gif new file mode 100644 index 00000000..f6cc1d98 Binary files /dev/null and b/gpack/travian_default/img/scouts/22.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/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..e5465ea5 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/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..2fad05ce 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..63595402 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/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/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/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/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/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..5659810b --- /dev/null +++ b/gpack/travian_default/lang/en/compact.css @@ -0,0 +1,9008 @@ +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/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..f4d832eb --- /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/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/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/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/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..4eb17ad4 --- /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..dd74c4a5 --- /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..0118d4bb --- /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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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..f4d832eb --- /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/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/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/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/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..4eb17ad4 --- /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..dd74c4a5 --- /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..0118d4bb --- /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/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..8f55ef85 --- /dev/null +++ b/img/admin/admin.css @@ -0,0 +1,522 @@ +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;} \ No newline at end of file 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/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/b/update.png b/img/admin/b/update.png new file mode 100644 index 00000000..1483381c Binary files /dev/null and b/img/admin/b/update.png 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/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/logo.jpg b/img/admin/logo.jpg new file mode 100644 index 00000000..080b6efa Binary files /dev/null and b/img/admin/logo.jpg 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/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 - copia.gif b/img/admin/x1 - copia.gif new file mode 100644 index 00000000..dd077cce Binary files /dev/null and b/img/admin/x1 - copia.gif differ diff --git a/img/admin/x1.gif b/img/admin/x1.gif new file mode 100644 index 00000000..61047209 Binary files /dev/null and b/img/admin/x1.gif differ diff --git a/img/admin/x2 - copia.gif b/img/admin/x2 - copia.gif new file mode 100644 index 00000000..98df7bb3 Binary files /dev/null and b/img/admin/x2 - copia.gif differ diff --git a/img/admin/x2.gif b/img/admin/x2.gif new file mode 100644 index 00000000..74680190 Binary files /dev/null and b/img/admin/x2.gif differ diff --git a/img/admin/x3 - copia.gif b/img/admin/x3 - copia.gif new file mode 100644 index 00000000..869faf6f Binary files /dev/null and b/img/admin/x3 - copia.gif differ diff --git a/img/admin/x3.gif b/img/admin/x3.gif new file mode 100644 index 00000000..745246e1 Binary files /dev/null and b/img/admin/x3.gif differ diff --git a/img/admin/x4 - copia.gif b/img/admin/x4 - copia.gif new file mode 100644 index 00000000..ef8c0ce4 Binary files /dev/null and b/img/admin/x4 - copia.gif differ diff --git a/img/admin/x4.gif b/img/admin/x4.gif new file mode 100644 index 00000000..479788fa Binary files /dev/null and b/img/admin/x4.gif differ diff --git a/img/admin/x5 - copia.gif b/img/admin/x5 - copia.gif new file mode 100644 index 00000000..8cfa7c35 Binary files /dev/null and b/img/admin/x5 - copia.gif differ diff --git a/img/admin/x5.gif b/img/admin/x5.gif new file mode 100644 index 00000000..12674cac Binary files /dev/null and b/img/admin/x5.gif 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/s/s7.png b/img/en/s/s7.png new file mode 100644 index 00000000..19326469 Binary files /dev/null and b/img/en/s/s7.png differ diff --git a/img/en/s/s8.png b/img/en/s/s8.png new file mode 100644 index 00000000..4e92456f Binary files /dev/null and b/img/en/s/s8.png 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/en/tut/dorf_gross.jpg b/img/en/tut/dorf_gross.jpg new file mode 100644 index 00000000..39608be5 Binary files /dev/null and b/img/en/tut/dorf_gross.jpg differ diff --git a/img/en/tut/dorf_klein.jpg b/img/en/tut/dorf_klein.jpg new file mode 100644 index 00000000..18784724 Binary files /dev/null and b/img/en/tut/dorf_klein.jpg differ diff --git a/img/en/tut/dorfzentrum1.gif b/img/en/tut/dorfzentrum1.gif new file mode 100644 index 00000000..a2eee3e1 Binary files /dev/null and b/img/en/tut/dorfzentrum1.gif differ diff --git a/img/en/tut/dorfzentrum2.gif b/img/en/tut/dorfzentrum2.gif new file mode 100644 index 00000000..662bc3da Binary files /dev/null and b/img/en/tut/dorfzentrum2.gif differ diff --git a/img/en/tut/karte.jpg b/img/en/tut/karte.jpg new file mode 100644 index 00000000..2a349111 Binary files /dev/null and b/img/en/tut/karte.jpg differ diff --git a/img/en/tut/navi.jpg b/img/en/tut/navi.jpg new file mode 100644 index 00000000..b85f089e Binary files /dev/null and b/img/en/tut/navi.jpg differ diff --git a/img/en/tut/rohstofffeld.gif b/img/en/tut/rohstofffeld.gif new file mode 100644 index 00000000..6b53bdbc Binary files /dev/null and b/img/en/tut/rohstofffeld.gif differ diff --git a/img/en/tut/rohstofffeld2.gif b/img/en/tut/rohstofffeld2.gif new file mode 100644 index 00000000..3c92b8f1 Binary files /dev/null and b/img/en/tut/rohstofffeld2.gif differ diff --git a/img/en/welten/en10_big.jpg b/img/en/welten/en10_big.jpg new file mode 100644 index 00000000..5f12bd69 Binary files /dev/null and b/img/en/welten/en10_big.jpg differ diff --git a/img/en/welten/en10_big_g.jpg b/img/en/welten/en10_big_g.jpg new file mode 100644 index 00000000..a469df51 Binary files /dev/null and b/img/en/welten/en10_big_g.jpg differ diff --git a/img/en/welten/en11_big.jpg b/img/en/welten/en11_big.jpg new file mode 100644 index 00000000..59b08e4e Binary files /dev/null and b/img/en/welten/en11_big.jpg differ diff --git a/img/en/welten/en11_big_g.jpg b/img/en/welten/en11_big_g.jpg new file mode 100644 index 00000000..f7f94015 Binary files /dev/null and b/img/en/welten/en11_big_g.jpg differ diff --git a/img/en/welten/en12_big.jpg b/img/en/welten/en12_big.jpg new file mode 100644 index 00000000..266570bc Binary files /dev/null and b/img/en/welten/en12_big.jpg differ diff --git a/img/en/welten/en12_big_g.jpg b/img/en/welten/en12_big_g.jpg new file mode 100644 index 00000000..d2471de8 Binary files /dev/null and b/img/en/welten/en12_big_g.jpg differ diff --git a/img/en/welten/en13_big.jpg b/img/en/welten/en13_big.jpg new file mode 100644 index 00000000..99a875c3 Binary files /dev/null and b/img/en/welten/en13_big.jpg differ diff --git a/img/en/welten/en13_big_g.jpg b/img/en/welten/en13_big_g.jpg new file mode 100644 index 00000000..8e30efa4 Binary files /dev/null and b/img/en/welten/en13_big_g.jpg differ diff --git a/img/en/welten/en14_big.jpg b/img/en/welten/en14_big.jpg new file mode 100644 index 00000000..56907a64 Binary files /dev/null and b/img/en/welten/en14_big.jpg differ diff --git a/img/en/welten/en14_big_g.jpg b/img/en/welten/en14_big_g.jpg new file mode 100644 index 00000000..ec1b3273 Binary files /dev/null and b/img/en/welten/en14_big_g.jpg differ diff --git a/img/en/welten/en15_big.jpg b/img/en/welten/en15_big.jpg new file mode 100644 index 00000000..86ba4e84 Binary files /dev/null and b/img/en/welten/en15_big.jpg differ diff --git a/img/en/welten/en15_big_g.jpg b/img/en/welten/en15_big_g.jpg new file mode 100644 index 00000000..608975de Binary files /dev/null and b/img/en/welten/en15_big_g.jpg differ diff --git a/img/en/welten/en1_big.jpg b/img/en/welten/en1_big.jpg new file mode 100644 index 00000000..0eb2b591 Binary files /dev/null and b/img/en/welten/en1_big.jpg differ diff --git a/img/en/welten/en1_big_g.jpg b/img/en/welten/en1_big_g.jpg new file mode 100644 index 00000000..9d3ade8e Binary files /dev/null and b/img/en/welten/en1_big_g.jpg differ diff --git a/img/en/welten/en2_big.jpg b/img/en/welten/en2_big.jpg new file mode 100644 index 00000000..8c1ff257 Binary files /dev/null and b/img/en/welten/en2_big.jpg differ diff --git a/img/en/welten/en2_big_g.jpg b/img/en/welten/en2_big_g.jpg new file mode 100644 index 00000000..98cbce1e Binary files /dev/null and b/img/en/welten/en2_big_g.jpg differ diff --git a/img/en/welten/en3_big.jpg b/img/en/welten/en3_big.jpg new file mode 100644 index 00000000..806cdfcf Binary files /dev/null and b/img/en/welten/en3_big.jpg differ diff --git a/img/en/welten/en3_big_g.jpg b/img/en/welten/en3_big_g.jpg new file mode 100644 index 00000000..01673594 Binary files /dev/null and b/img/en/welten/en3_big_g.jpg differ diff --git a/img/en/welten/en4_big.jpg b/img/en/welten/en4_big.jpg new file mode 100644 index 00000000..81baaba5 Binary files /dev/null and b/img/en/welten/en4_big.jpg differ diff --git a/img/en/welten/en4_big_g.jpg b/img/en/welten/en4_big_g.jpg new file mode 100644 index 00000000..770ed380 Binary files /dev/null and b/img/en/welten/en4_big_g.jpg differ diff --git a/img/en/welten/en5_big.jpg b/img/en/welten/en5_big.jpg new file mode 100644 index 00000000..b41a44f9 Binary files /dev/null and b/img/en/welten/en5_big.jpg differ diff --git a/img/en/welten/en5_big_g.jpg b/img/en/welten/en5_big_g.jpg new file mode 100644 index 00000000..649de9b2 Binary files /dev/null and b/img/en/welten/en5_big_g.jpg differ diff --git a/img/en/welten/en6_big.jpg b/img/en/welten/en6_big.jpg new file mode 100644 index 00000000..6998dc6c Binary files /dev/null and b/img/en/welten/en6_big.jpg differ diff --git a/img/en/welten/en6_big_g.jpg b/img/en/welten/en6_big_g.jpg new file mode 100644 index 00000000..c8565eb3 Binary files /dev/null and b/img/en/welten/en6_big_g.jpg differ diff --git a/img/en/welten/en7_big.jpg b/img/en/welten/en7_big.jpg new file mode 100644 index 00000000..d45d96f1 Binary files /dev/null and b/img/en/welten/en7_big.jpg differ diff --git a/img/en/welten/en7_big_g.jpg b/img/en/welten/en7_big_g.jpg new file mode 100644 index 00000000..711537c8 Binary files /dev/null and b/img/en/welten/en7_big_g.jpg differ diff --git a/img/en/welten/en8_big.jpg b/img/en/welten/en8_big.jpg new file mode 100644 index 00000000..45f60527 Binary files /dev/null and b/img/en/welten/en8_big.jpg differ diff --git a/img/en/welten/en8_big_g.jpg b/img/en/welten/en8_big_g.jpg new file mode 100644 index 00000000..71af20ef Binary files /dev/null and b/img/en/welten/en8_big_g.jpg differ diff --git a/img/en/welten/en9_big.jpg b/img/en/welten/en9_big.jpg new file mode 100644 index 00000000..95049c05 Binary files /dev/null and b/img/en/welten/en9_big.jpg differ diff --git a/img/en/welten/en9_big_g.jpg b/img/en/welten/en9_big_g.jpg new file mode 100644 index 00000000..af3f3de2 Binary files /dev/null and b/img/en/welten/en9_big_g.jpg differ diff --git a/img/en/welten/enx_big.jpg b/img/en/welten/enx_big.jpg new file mode 100644 index 00000000..483f5149 Binary files /dev/null and b/img/en/welten/enx_big.jpg differ diff --git a/img/en/welten/enx_big_g.jpg b/img/en/welten/enx_big_g.jpg new file mode 100644 index 00000000..f38d5339 Binary files /dev/null and b/img/en/welten/enx_big_g.jpg differ diff --git a/img/img.css b/img/img.css new file mode 100644 index 00000000..1343d631 --- /dev/null +++ b/img/img.css @@ -0,0 +1,434 @@ +@charset UTF-8; +#header{background:url(un/l/mw.gif) repeat-x 0 -28px;} +#mid{background:url(un/a/rand.gif) repeat-y 130px 0;} +#footer{background:url(un/a/btm.gif) repeat-x;} +.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{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;} +#n1 img,#n2 img,#n3 img,#n4 img,#n5{background-position:0 -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:0 -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 0 -21px;} +#sleft a:hover{background:url(un/a/n12.gif) no-repeat;} +#sleft #logo:hover{background:none;} +.roman{background:url(http://img.travian.org/img/de/temp/roemer.gif) no-repeat;} +.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 .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;} +.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;} +.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;} +.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;} +.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);} +.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;} +.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;} +.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 #levels div{background:url(un/g/s/glvl.gif) no-repeat;} +.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;} +.bar{background:url(un/a/c3.gif) repeat-x;} +#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;} +.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;} +.online1,.online2,.online3,.online4,.online5{background-image:url(un/a/online.gif);background-repeat:no-repeat;} +.online2{background-position:-15px 0;} +.online3{background-position:-30px 0;} +.online4{background-position:-45px 0;} +.online5{background-position:-60px 0;} +.statistics #submenu img{background-repeat:no-repeat;background-position:left 0;} +.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 0;} +#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;} +#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);} +#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);} +#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);} +.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;} +.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;} +#sright #vlswitch,#sright #llswitch,.village2 #lswitch.on{background:url(un/g/s/glvlm.gif) no-repeat;} +#sright #vlswitch.off,#sright #llswitch.off,.village2 #lswitch{background:url(un/g/s/glvlp.gif) no-repeat;} +.level1,.level11,.level21,.online1{background-position:0 0;} +#map_content .m3,#map_content .m4{background:url(un/m/matt.gif) no-repeat;} diff --git a/img/portal_ltr.css b/img/portal_ltr.css new file mode 100644 index 00000000..94db20bf --- /dev/null +++ b/img/portal_ltr.css @@ -0,0 +1,243 @@ +@charset UTF-8; +BODY{background-color:#c6df7a;text-align:center;font-family:Arial;font-size:11px;background-repeat:repeat-x;background-position:center 0;min-width:962px;direction:ltr;margin:0;padding:0;} +DIV,H1,P{text-align:left;margin:0;padding:0;} +A{outline:none;font-weight:700;color:#000;} +IMG{border:none;} +.clear{clear:both;} +DIV#page{position:relative;width:960px;height:606px;text-align:left;background-position:-670px 0;margin:0 auto;} +DIV#blackOverlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000;z-index:1000;} +DIV#logo{position:absolute;width:304px;height:150px;left:680px;top:29px;background-repeat:no-repeat;} +DIV#page A.male{display:block;position:absolute;left:311px;top:221px;width:202px;height:142px;background-position:0 250px;background-repeat:no-repeat;} +DIV#page A.male:hover{background-position:0 -250px;} +BODY.newsbox DIV#page A.male:hover{background-position:0 -2250px;} +DIV#page A.female{display:block;position:absolute;left:767px;top:257px;width:118px;height:155px;background-position:0 250px;background-repeat:no-repeat;} +DIV#page A.female:hover{background-position:0 0;} +BODY.newsbox DIV#page A.female:hover{background-position:0 -2000px;} +DIV#page A.pet{display:block;position:absolute;left:201px;top:389px;width:122px;height:120px;background-position:0 250px;background-repeat:no-repeat;} +DIV#page A.pet:hover{background-position:0 -500px;} +DIV#page DIV#fighters{display:block;position:absolute;top:261px;left:-38px;width:226px;height:151px;background-position:0 250px;background-repeat:no-repeat;} +DIV#page DIV#fighters.alt{background-position:0 -750px;} +DIV#page DIV#lady{display:block;position:absolute;top:138px;left:196px;width:69px;height:69px;background-position:0 250px;background-repeat:no-repeat;} +DIV#page DIV#lady.alt{background-position:0 -1820px;} +DIV#page DIV#stream{display:block;position:absolute;top:134px;left:823px;width:246px;height:100px;background-position:0 250px;background-repeat:no-repeat;} +DIV#page DIV#stream.alt{background-position:0 -1600px;} +DIV#page DIV#smoke{position:absolute;top:0;left:463px;width:63px;height:53px;background-position:0 250px;background-repeat:no-repeat;} +DIV#page DIV#smoke.alt{background-position:0 -1700px;} +DIV#page DIV#mouse{position:absolute;width:38px;height:248px;top:-20px;left:685px;} +DIV#page DIV#mousecover{position:absolute;width:48px;height:227px;top:-25px;left:680px;} +DIV#page DIV#flag{position:absolute;width:50px;height:29px;top:9px;left:228px;background-position:0 -1050px;} +DIV#page DIV#flowergirl{position:absolute;width:92px;height:75px;top:300px;left:912px;background-position:0 -1100px;} +DIV#page DIV#chopper{position:absolute;width:68px;height:57px;top:246px;left:906px;background-position:-100px -1100px;} +DIV#page DIV#bird{position:absolute;width:82px;height:34px;top:219px;left:1006px;background-position:-168px -1100px;} +DIV#page DIV#spider{position:absolute;width:29px;height:45px;top:433px;left:572px;background-position:0 -1000px;} +A.playfree{display:block;position:absolute;left:520px;top:380px;width:222px;height:46px;background-position:0 top;} +A.playfree:hover{background-position:-222px top;} +DIV#page A.trailer{display:block;position:absolute;left:563px;top:248px;width:98px;height:28px;background-position:0 top;} +DIV#page A.trailer:hover{background-position:98px top;} +DIV#page A.screenshots{display:block;position:absolute;left:563px;top:283px;width:135px;height:28px;background-position:0 top;} +DIV#page A.screenshots:hover{background-position:135px top;} +DIV#page DIV.menu{display:block;position:absolute;top:624px;left:151px;font-size:11px;line-height:16px;} +TABLE#stats{position:absolute;top:321px;left:575px;width:116px;} +TABLE#stats td{text-align:right;white-space:nowrap;} +TABLE#stats th{text-align:left;white-space:nowrap;} +DIV#page DIV.menu A{color:#263315;} +DIV#menu SPAN.copyright{font-size:10px;display:block;direction:ltr;} +DIV#menu SPAN.copyright A{font-weight:400;text-decoration:none;color:#00000;} +DIV#menu SPAN.copyright A:hover{text-decoration:underline;} +DIV#loginBox{display:block;position:absolute;right:6px;left:414px;top:604px;width:540px;height:57px;background-position:0 114px;} +DIV#loginBox A,DIV#loginBox SPAN{display:block;position:absolute;font-size:11px;font-weight:700;color:#000;} +DIV#loginBox SPAN.one{width:6px;height:57px;background-position:0 top;left:-2px;} +DIV#loginBox SPAN.two{width:6px;height:57px;background-position:0 bottom;right:-2px;} +DIV#loginBox DIV.loginName{position:absolute;top:19px;right:262px;} +DIV#loginBox DIV.password{position:absolute;top:19px;right:125px;} +DIV#loginBox INPUT.loginTextField{width:116px;height:20px;padding:3px 0 0 4px;} +DIV#loginBox DIV.loginName INPUT.loginTextField{height:18px;padding:5px 0 0 4px;} +DIV#page DIV#loginBox DIV.socialLinkFacebook{position:absolute;display:block;width:24px;height:24px;right:-3px;top:-27px;cursor:pointer;} +DIV#fbMenu{bottom:23px;position:absolute;left:10px;top:42px;z-index:1;display:none;} +DIV#fbMenu A{display:block;position:relative;height:6px;width:100%;line-height:6px;text-align:center;font-weight:700;text-decoration:none;background-color:#fff;color:#3B5998;border:#BDC7D8 1px solid;margin-top:-1px;padding:6px;} +DIV#fbMenu A:hover{background-color:#3B5998;color:#fff;border-color:#3B5998;} +DIV#loginBox A#fbConnectLogin,A.fbConnectLogin{display:block;width:81px;height:22px;position:relative;} +DIV#loginBox A#fbConnectLogin{position:absolute;left:15px;top:19px;} +DIV#loginBox A#fbConnectLogin.dropdown{width:94px;left:10px;} +DIV#loginBox A#fbConnectShowMenu{display:block;height:22px;width:18px;position:absolute;top:19px;left:86px;z-index:5;} +DIV.register A#fbConnectRegister{position:absolute;display:block;width:81px;height:22px;left:186px;top:2px;} +IMG.fbLink{margin-bottom:-2px;} +DIV.register A#fbAlreadyRegistered{display:block;margin-top:20px;} +DIV.fb{width:25px;height:25px;float:left;margin-right:11px;} +DIV.fb DIV.column{width:150px;float:left;} +DIV.fb DIV.column INPUT{width:130px;} +DIV#loginBox SPAN.fbOr{left:109px;top:22px;position:absolute;display:block;font-size:14px;width:35px;text-align:center;} +DIV.register SPAN.fbOr{display:block;left:139px;position:absolute;top:3px;} +DIV#page A.stamp{display:block;position:absolute;width:116px;height:117px;left:21px;top:585px;} +DIV#page A.stamp.alternate{background-position:-116px;display:none;} +DIV#page A.stamp.pro7{background-position:-348px;top:15px;left:60px;} +DIV#page A.stamp.alternate.pro7{background-position:-348px;} +DIV#page A.stamp.sat1{background-position:-464px;top:15px;left:60px;} +DIV#page A.stamp.alternate.sat1{background-position:-580px;} +DIV#loginBox SPAN.labelLogin{right:266px;top:4px;color:#403120;width:116px;} +DIV#loginBox SPAN.labelPassword{right:130px;top:4px;color:#403120;width:116px;} +DIV#loginBox A.forgotPassword{left:14px;top:61px;color:#263315;} +DIV#loginBox SPAN.register{right:14px;top:61px;width:240px;color:#263315;text-align:right;} +DIV#loginBox SPAN.register A{display:inline;position:relative;color:#263315;} +DIV#loginBox DIV.loginError{position:absolute;bottom:60px;left:0;z-index:1000;} +DIV#loginBox DIV.loginError DIV{width:401px;background-repeat:repeat-y;} +DIV#loginBox DIV.loginError A{position:relative;display:inline;} +DIV#loginBox DIV.loginError DIV.top{height:12px;background-position:bottom left;} +DIV#loginBox DIV.loginError DIV.mid{background-position:top right;text-align:center;color:#FFF;padding-top:2px;} +DIV#loginBox DIV.loginError DIV.bottom{height:12px;background-position:top center;} +DIV#page DIV.bubble{display:none;position:absolute;width:169px;background-position:338px top;z-index:200;} +DIV#page DIV.bubble DIV.top{width:169px;height:20px;background-position:0 17px;background-repeat:no-repeat;} +DIV#page DIV.bubble DIV.bottom{width:169px;height:20px;background-position:-338px top;background-repeat:no-repeat;} +DIV#page DIV.bubble DIV.content{background-position:-169px top;line-height:18px;text-align:center;padding:14px 12px;} +DIV#page DIV.petBubble{bottom:179px;left:169px;} +DIV#page DIV.maleBubble{bottom:335px;left:289px;} +DIV#page DIV.femaleBubble{left:746px;bottom:301px;} +INPUT.loginTextField{background-color:transparent;border-color:#d9d9d9;border-style:solid;border-width:0 1px 1px 0;} +INPUT.formTextField{display:block;width:229px;background-color:transparent;border:#a69f74 1px solid;height:24px;font-size:16px;background:#FFF;margin:0;padding:4px 4px 0;} +INPUT.formTextField.err{border-color:#ee5759;border-style:solid;border-width:1px 2px 2px 1px;} +INPUT.formTextField.mini{width:55px;margin-right:7px;} +INPUT.formTextField.minimini{width:30px;} +DIV.codeEntry{height:54px;margin:-12px 0 -2px;} +TABLE.codeEntry{margin-left:-3px;} +LABEL{font-weight:700;height:13px;padding-top:2px;margin-top:-1px;margin-bottom:-1px;display:block;} +A.button{display:block;height:28px;text-align:center;line-height:25px;color:#000;text-decoration:none;background-position:0 top;} +A.button:hover{text-decoration:none;background-position:0 bottom;} +BODY.portal A.button SPAN{position:relative;display:block;float:right;width:4px;margin-right:-4px;height:28px;background-position:4px top;} +A.button:hover SPAN{text-decoration:none;background-position:4px bottom;} +A.submit{width:120px;margin-bottom:20px;} +A.sendActMail{width:180px;} +DIV.dialog DIV.formError DIV{width:438px;} +DIV.dialog DIV.formError DIV.top{height:20px;background-position:0 bottom;background-repeat:no-repeat;} +DIV.dialog DIV.formError DIV.mid{background-position:438px top;text-align:center;color:#f11616;font-weight:700;} +DIV.dialog DIV.formError DIV.bottom{height:20px;background-position:-438px 0;background-repeat:no-repeat;} +DIV.dialog{display:none;position:absolute;left:50%;top:100px;z-index:1001;padding-left:67px;background-repeat:no-repeat;background-position:left bottom;color:#403120;} +DIV.dialog A{font-weight:400;color:#403120;} +DIV.dialog A.inactive{color:#bbb;} +DIV.dialog H1{font-size:24px;height:16px;margin:18px 0 16px;} +DIV.dialog H2{font-size:16px;white-space:nowrap;margin:0;} +DIV.dialog H3{font-size:12px;margin:0;} +DIV.dialog DIV.content{position:absolute;top:0;left:70px;} +DIV.dialog INPUT{color:#000;} +DIV.register DIV.column{float:left;width:220px;} +DIV.dialog A.close{display:block;float:right;position:relative;width:39px;height:39px;background-position:0 top;z-index:1500;} +DIV.dialog DIV.center{width:594px;} +DIV.dialog DIV.formpage{width:460px;} +DIV.dialogBig{width:650px;height:683px;margin-left:-325px;} +DIV.dialogBig DIV.center{width:594px;padding-top:63px;} +DIV.dialogMedium{width:570px;height:508px;margin-left:-285px;} +DIV.dialogMedium DIV.center{margin-left:20px;width:594px;padding-top:83px;} +DIV.dialogWide{top:px;width:850px;margin-left:-425px;} +DIV.dialogWide A.close{left:-25px;top:-15px;} +DIV.register DIV.options{margin-left:42px;width:120px;} +DIV.register DIV.options TABLE{margin-top:8px;} +DIV.register DIV.options TH{height:18px;padding:0 10px;} +DIV.register TABLE.rules{margin:12px 0 12px -3px;} +DIV.register TABLE.rules TH{width:25px;vertical-align:top;} +DIV.register DIV.note{font-size:10px;margin-bottom:-3px;} +DIV.register DIV.formError{position:absolute;top:52px;} +DIV.register DIV#registrationMan{position:absolute;width:50px;height:50px;top:260px;left:350px;} +DIV.register.boxcode DIV#registrationMan{top:306px;} +BODY.partner DIV#formpageRegister H1{margin-top:0;} +BODY.partner DIV#formpageRegister DIV#errmsgFrame{background-color:#F9F7EB;top:57px;} +BODY.partner TABLE#register_agb{margin-top:6px;margin-bottom:6px;} +DIV.imprint{margin-top:-32px;} +DIV#adaptor{position:relative;left:0;top:0;} +DIV#page DIV.adapted A.stamp{top:570px;} +DIV#page DIV.adapted DIV.menu{top:662px;} +DIV.register .errmark,DIV.loginBox .errmark{border:2px red solid;position:relative;top:-2px;left:-2px;} +DIV.register TABLE#register_race.errmark{margin-bottom:-4px;} +DIV.register INPUT#register_name.errmark,DIV.register INPUT#register_password.errmark,DIV.register INPUT#register_confirm.errmark,DIV.register INPUT#register_email.errmark{height:22px;} +DIV.register TABLE#register_agb{height:24px;line-height:12px;margin-top:25px;} +DIV.register TABLE#register_boxcode{height:24px;} +DIV.race_1{background-image:url(/img/ani/roemer_stand.gif);} +DIV.race_2{background-image:url(/img/ani/germane_stand.gif);} +DIV.race_3{background-image:url(/img/ani/gallier_stand.gif);} +DIV.female DIV.race_1{background-image:url(/img/ani/roemerin_stand.gif);} +DIV.female DIV.race_2{background-image:url(/img/ani/germanin_stand.gif);} +DIV.female DIV.race_3{background-image:url(/img/ani/gallierin_stand.gif);} +DIV.dialog DIV.screenshot TABLE{position:relative;width:800px;left:0;} +DIV.dialog DIV.screenshot TD{color:#fff;text-align:center;font-weight:700;} +DIV.dialog DIV.screenshot A.navi{display:block;width:53px;height:53px;} +DIV.dialog DIV.screenshot A.navi.prev{background-position:top left;} +DIV.dialog DIV.screenshot A.navi.next{background-position:top right;} +DIV.dialog DIV.screenshot A.navi.prev:hover{background-position:bottom left;} +DIV.dialog DIV.screenshot A.navi.next:hover{background-position:bottom right;} +DIV.dialog DIV.screenshot A.navi.prev.disable:hover{background-position:top left;cursor:default;} +DIV.dialog DIV.screenshot A.navi.next.disable:hover{background-position:top right;cursor:default;} +DIV.forum{height:483px;} +DIV#forumScroll{position:relative;height:140px;overflow:hidden;} +DIV#forumScroll P{width:415px;position:absolute;top:0;margin:0;padding:0;} +DIV#forumBar{position:absolute;top:19px;right:0;width:18px;height:102px;} +A#forumDot{display:block;position:absolute;width:12px;height:29px;margin-left:3px;background-position:0 top;} +A#scrollUp,A#scrollDown{position:absolute;right:0;display:block;width:18px;height:19px;background-position:0 top;} +A#scrollUp{top:0;} +A#scrollDown{top:121px;} +OBJECT#trailer{position:absolute;top:50px;left:50px;} +DIV.trailer A.close{left:-135px;top:15px;} +DIV.loginExtended DIV.formError{margin-bottom:-14px;} +A.checkbox{display:block;width:14px;height:13px;background-position:0 top;} +A.radioButton{display:block;width:14px;height:14px;background-position:0 top;} +INPUT.hiddenSubmit{display:inline;height:0;width:0;line-height:0;border:0;margin:0;padding:0;} +IFRAME.forum{display:block;position:absolute;top:120px;left:0;border-style:solid;border-width:2px 0 0 2px;} +DIV#loadNotify{position:absolute;width:100px;height:100px;top:0;left:0;background-repeat:no-repeat;z-index:1000;display:none;} +DIV#page DIV#newsbox{position:absolute;width:303px;height:426px;top:136px;left:480px;} +DIV#page DIV#newstext1,DIV#page DIV#newstext2{position:absolute;top:252px;left:43px;width:219px;text-align:center;} +DIV#page DIV#newstext2{top:350px;} +DIV#page DIV#newsbox b{color:#a41515;} +DIV#page DIV#newsbox a{font-weight:400;text-decoration:underline;} +BODY.newsbox DIV#page DIV#mouse{top:-85px;} +BODY.newsbox DIV#page DIV#mousecover{top:-90px;} +BODY.newsbox DIV#page A.trailer{top:183px;} +BODY.newsbox DIV#page A.screenshots{top:218px;} +BODY.newsbox TABLE#stats{top:256px;} +BODY.newsbox DIV#page A.playfree{top:315px;} +div#StartseitenDescription{line-height:16px;width:257px;left:-50px;padding-top:10px;position:absolute;top:650px;z-index:100;} +div#StartseitenDescription div.descHeader{background-image:url(../img/portal/interface/textfeld257_1.png);background-repeat:no-repeat;width:257px;height:53px;} +div#StartseitenDescription div.descContent{background-image:url(../img/portal/interface/textfeld257_2.png);width:227px;padding-left:20px;padding-right:10px;} +div#StartseitenDescription div.descFooter{background-image:url(../img/portal/interface/textfeld257_3.png);background-repeat:no-repeat;width:257px;height:38px;} +DIV#betaSign{color:red;font-size:16px;font-style:italic;font-weight:700;right:240px;position:absolute;text-transform:uppercase;top:115px;} +.interface_background{background-image:url(../img/portal/interface/background.jpg);} +.interface_chars{background-image:url(../img/portal/interface/chars/chars.jpg);} +.interface_chars_mouse{background-image:url(/img/portal/interface/chars/mouse.png);} +.interface_playfree{background-image:url(../img/lang/de/portal/interface/playfree.gif);} +.interface_logo{background-image:url(../img/lang/de/portal/interface/logo.gif);} +.interface_trailer{background-image:url(../img/lang/de/portal/interface/trailer.gif);} +.interface_screenshots{background-image:url(../img/lang/de/portal/interface/screenshots.gif);} +.interface_loginbox{background-image:url(../img/portal/interface/loginbox.gif);} +.interface_forms_button_loginbutton{background-image:url(../img/portal/interface/forms/button/loginbutton.png);} +.interface_forms_button_button{background-image:url(../img/portal/interface/forms/button/button.png);} +.interface_textfield{background-image:url(../img/portal/interface/loginfield.gif);} +.interface_stamp{background-image:url(../img/portal/interface/stamp.gif);} +.interface_errmsg_loginerror{background-image:url(../img/portal/interface/errmsg/loginerror.png);} +.interface_facebook_24{background-image:url(../img/portal/interface/facebook_24.gif);} +.interface_bubble{background-image:url(../img/portal/interface/bubble.png);} +.interface_dialog_big_background{background-image:url(../img/portal/interface/dialog/big/background.gif);} +.interface_dialog_close{background-image:url(../img/portal/interface/dialog/close.png);} +.interface_dialog_medium_background{background-image:url(../img/portal/interface/dialog/medium/background.gif);} +.interface_dialog_screenshots_arrows{background-image:url(../img/portal/interface/dialog/screenshots/arrows.png);} +.interface_scroll_up{background-image:url(../img/portal/interface/scroll/up.png);} +.interface_scroll_down{background-image:url(../img/portal/interface/scroll/down.png);} +.interface_scroll_dot{background-image:url(../img/portal/interface/scroll/dot.gif);} +.interface_scroll_tile{background-image:url(../img/portal/interface/scroll/tile.gif);} +.interface_forms_checkbox_off{background-image:url(../img/portal/interface/forms/checkbox/off.png);} +.interface_forms_checkbox_on{background-image:url(../img/portal/interface/forms/checkbox/on.png);} +.interface_forms_radio_off{background-image:url(../img/portal/interface/forms/radio/off.png);} +.interface_forms_radio_on{background-image:url(../img/portal/interface/forms/radio/on.png);} +.interface_errmsg_form{background-image:url(../img/portal/interface/errmsg/form.png);} +.interface_ajax_loader_white{background-image:url(../img/portal/interface/ajax-loader-white.gif);} +.interface_fbconnect{background-image:url(../img/portal/interface/fb-connect.gif);} +.interface_fbconnect_dropdown{background-image:url(../img/portal/interface/fb-connect-dropdown.gif);} +.interface_fbconnect_large{background-image:url(../img/portal/interface/fb-connect-large.gif);} +.interface_fb{background-image:url(../img/portal/interface/fb.gif);} +.interface_newsbox1{background-image:url(../img/portal/interface/newsbox1.jpg);} +.interface_newsbox2{background-image:url(../img/portal/interface/newsbox2.jpg);} +#helpPlayerTitle{text-align:center;font-seize:10pt;font-weight:700;width:450px;margin-bottom:5px;} +div.dialogMedium A.playfree{position:absolute;display:none;left:120px;} +A:HOVER,A.imglink,A.imglink:hover{text-decoration:none;} +DIV#loginBox A.loginButton,DIV#transferBox A.transferButton{top:19px;right:12px;width:99px;height:28px;} +DIV#loginBox A.loginButton span,DIV.register DIV.submitBox{position:relative;} +SPAN.fbOr,DIV.dialog A.button{font-weight:700;} +DIV.forgot INPUT.formTextField,DIV.register DIV#registrationManCont{display:inline;} +DIV#page A.hidden,DIV.dialog DIV.formError.off,DIV.dialog H1.caption,INPUT.styledCheckbox,INPUT.styledRadio,BODY.newsbox DIV#page DIV#spider{display:none;} +DIV.dialog A.close:hover,A#forumDot:hover,A#scrollUp:hover,A#scrollDown:hover{background-position:0 bottom;} +A.checkbox:hover,A.radioButton:hover{background-position:0 center;} diff --git a/img/t4n/Teaser_Prelandingpage_EN.png b/img/t4n/Teaser_Prelandingpage_EN.png new file mode 100644 index 00000000..7f2d1f16 Binary files /dev/null and b/img/t4n/Teaser_Prelandingpage_EN.png differ diff --git a/img/travian_basics.css b/img/travian_basics.css new file mode 100644 index 00000000..2865b61d --- /dev/null +++ b/img/travian_basics.css @@ -0,0 +1,4 @@ +@CHARSET "UTF-8"; + +/* ------------------- New CSS styles ------------------- */ +/* ------------------------------------------------------ */ \ No newline at end of file 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/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/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/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/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/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/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/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..25e4a9d6 --- /dev/null +++ b/index.php @@ -0,0 +1,275 @@ + + + + + Powered by ZravianX - <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + +
    +
    +
    + + +
    + + + +
    + + Travian 4 + +
    + +
    + + +
    +
    +
    +
    +
    +

    +

    +

    +
    +
    + + + + + + + + + + + + + + + + + + + + +
    :
    :
    :
    +
    +
    +

    :

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

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

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

    + Close +
      +
    • + World" /> +
      :
      +
      :
      +
      +
      +
    • +
    + +
    +
    +
    +
    +
    +

    + Close +
      +
    • + World" /> +
      :
      +
      :
      +
      +
      +
    • +
    + +
    +
    +
    +
    +
    + Close +

    +
    + +
    +
    +
    +
    +
    +

    + Close +
    +

    + Screenshot +
    +
    + + + +
    +
    + + + \ No newline at end of file diff --git a/install/data/.htaccess b/install/data/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/install/data/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/install/data/constant_format.tpl b/install/data/constant_format.tpl new file mode 100644 index 00000000..1e250310 --- /dev/null +++ b/install/data/constant_format.tpl @@ -0,0 +1,281 @@ + \ No newline at end of file diff --git a/install/data/sql.sql b/install/data/sql.sql new file mode 100644 index 00000000..f1b79b8f --- /dev/null +++ b/install/data/sql.sql @@ -0,0 +1,1557 @@ +-- 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(11) unsigned NOT NULL AUTO_INCREMENT, + `ckey` varchar(255) NOT NULL, + `time_check` int(11) unsigned NOT NULL DEFAULT '0', + `to_vid` int(11) 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(11) unsigned NOT NULL, + `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=MYISAM 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(100) NOT NULL, + `password` varchar(100) 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(11) 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(100) 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(11) 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, + `del` tinyint(1) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `vref` int(11) unsigned NOT NULL, + `owner` int(11) unsigned NOT NULL, + `type` tinyint(2) unsigned NOT NULL, + `size` tinyint(1) unsigned NOT NULL, + `conquered` int(11) unsigned NOT NULL, + `name` varchar(100) NOT NULL, + `desc` text NOT NULL, + `effect` varchar(100) NOT NULL, + `img` varchar(20) NOT NULL, + `active` tinyint(1) unsigned NOT NULL, + `kind` tinyint(1) unsigned NOT NULL, + `bad_effect` tinyint(1) unsigned NOT NULL, + `effect2` tinyint(2) unsigned NOT NULL, + `lastupdate` int(11) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MYISAM 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(11) unsigned NOT NULL AUTO_INCREMENT, + `name` varchar(100) NOT NULL, + `tag` varchar(100) NOT NULL, + `leader` int(11) unsigned NOT NULL, + `coor` int(11) unsigned NOT NULL, + `advisor` int(11) unsigned NOT NULL, + `recruiter` int(11) 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', + `forumlink` varchar(150) NOT NULL, + 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(11) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(11) unsigned NOT NULL, + `alliance` int(11) unsigned NOT NULL, + `sender` int(11) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `aid` int(11) NOT NULL, + `comment` text NOT NULL, + `date` int(11) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(11) unsigned NOT NULL, + `alliance` int(11) unsigned NOT NULL, + `rank` varchar(100) 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(11) 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(11) NOT NULL, + `name` varchar(100) NOT NULL, + `reason` varchar(30) NOT NULL, + `time` int(11) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(11) unsigned NOT NULL, + `field` tinyint(2) unsigned NOT NULL, + `type` tinyint(2) unsigned NOT NULL, + `loopcon` tinyint(1) unsigned NOT NULL, + `timestamp` int(11) unsigned NOT NULL, + `master` tinyint(1) unsigned NOT NULL, + `level` tinyint(3) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(11) 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(11) 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(11) unsigned NOT NULL, + `timestamp` int(11) 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(11) unsigned NOT NULL, + `buildnumber` int(11) unsigned NOT NULL DEFAULT '0', + `lvl` int(11) 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%diplomacy` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%diplomacy` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `alli1` int(11) unsigned NOT NULL, + `alli2` int(11) unsigned NOT NULL, + `type` tinyint(1) unsigned NOT NULL, + `accepted` tinyint(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(11) 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(11) unsigned NOT NULL DEFAULT '0', + `vref` int(11) 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%farmlist` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%farmlist` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `wref` int(11) unsigned NOT NULL, + `owner` int(11) unsigned NOT NULL, + `name` varchar(100) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%farmlist` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%fdata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%fdata` ( + `vref` int(11) 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(100) 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, + `alliance0` int(11) unsigned NOT NULL, + `player0` int(11) unsigned NOT NULL, + `coor0` int(11) unsigned NOT NULL, + `report0` int(11) unsigned 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, + `alliance0` int(11) unsigned NOT NULL, + `player0` int(11) unsigned NOT NULL, + `coor0` int(11) unsigned NOT NULL, + `report0` int(11) unsigned 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%general` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%general` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `casualties` int(11) unsigned NOT NULL, + `time` int(11) unsigned NOT NULL, + `shown` tinyint(1) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%general` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%gold_fin_log` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%gold_fin_log` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(11) 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` int(11) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(11) unsigned NOT NULL, + `unit` smallint(2) unsigned NOT NULL, + `name` tinytext NOT NULL, + `wref` int(11) unsigned NOT NULL, + `level` tinyint(3) unsigned NOT NULL, + `points` int(3) unsigned NOT NULL, + `experience` int(11) NOT NULL, + `dead` tinyint(1) unsigned NOT NULL, + `health` float(12,9) unsigned NOT NULL, + `attack` tinyint(3) unsigned NOT NULL, + `defence` tinyint(3) unsigned NOT NULL, + `attackbonus` tinyint(3) unsigned NOT NULL, + `defencebonus` tinyint(3) unsigned NOT NULL, + `regeneration` tinyint(3) unsigned NOT NULL, + `autoregen` int(2) NOT NULL, + `lastupdate` int(11) unsigned NOT NULL, + `trainingtime` int(11) unsigned NOT NULL, + `inrevive` tinyint(1) unsigned NOT NULL, + `intraining` tinyint(1) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `user` int(11) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(11) 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(11) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(11) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `target` int(11) unsigned NOT NULL, + `owner` int(11) unsigned NOT NULL, + `topic` varchar(100) 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', + `deltarget` int(11) unsigned NOT NULL, + `delowner` int(11) unsigned NOT NULL, + `alliance` int(11) unsigned NOT NULL, + `player` int(11) unsigned NOT NULL, + `coor` int(11) unsigned NOT NULL, + `report` int(11) unsigned NOT NULL, + 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(11) unsigned NOT NULL AUTO_INCREMENT, + `userid` int(11) unsigned NOT NULL, + `categorie` int(11) unsigned NOT NULL, + `plaats` int(11) unsigned NOT NULL, + `week` int(11) unsigned NOT NULL, + `points` varchar(15) NOT NULL, + `img` varchar(10) NOT NULL, + `del` tinyint(1) unsigned 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(11) 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', + `ref2` int(11) unsigned NOT NULL DEFAULT '0', + `starttime` int(11) unsigned NOT NULL DEFAULT '0', + `endtime` int(11) unsigned NOT NULL DEFAULT '0', + `proc` tinyint(1) unsigned NOT NULL DEFAULT '0', + `send` tinyint(1) unsigned NOT NULL, + `wood` int(11) unsigned NOT NULL, + `clay` int(11) unsigned NOT NULL, + `iron` int(11) unsigned NOT NULL, + `crop` int(11) unsigned NOT NULL, + 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(11) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(11) unsigned NOT NULL, + `toWref` int(11) unsigned NOT NULL, + `ally` int(11) unsigned NOT NULL, + `topic` text NOT NULL, + `ntype` tinyint(1) unsigned NOT NULL, + `data` text NOT NULL, + `time` int(11) unsigned NOT NULL, + `viewed` tinyint(1) unsigned NOT NULL, + `archive` tinyint(1) unsigned NOT NULL, + `del` 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(11) unsigned NOT NULL, + `type` tinyint(2) unsigned NOT NULL, + `conqured` int(11) unsigned NOT NULL, + `wood` int(11) unsigned NOT NULL, + `iron` int(11) unsigned NOT NULL, + `clay` int(11) unsigned NOT NULL, + `maxstore` int(11) unsigned NOT NULL, + `crop` int(11) unsigned NOT NULL, + `maxcrop` int(11) unsigned NOT NULL, + `lastupdated` int(11) unsigned NOT NULL, + `loyalty` int(11) NOT NULL DEFAULT '100', + `owner` int(11) unsigned NOT NULL DEFAULT '2', + `name` varchar(32) NOT NULL DEFAULT 'Unoccupied Oasis', + `high` tinyint(1) unsigned NOT NULL, + 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, + `uid` int(11) unsigned NOT NULL, + `time` varchar(32) NOT NULL, + `sit` tinyint(1) unsigned NOT NULL, + UNIQUE KEY `name` (`name`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8; + +-- +-- Dumping data for table `%prefix%online` +-- + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%PREFIX%prisoners` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%prisoners` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `wref` int(11) unsigned NOT NULL, + `from` 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, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%PREFIX%prisoners` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%raidlist` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%raidlist` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `lid` int(11) NOT NULL, + `towref` int(11) unsigned NOT NULL, + `x` int(11) NOT NULL, + `y` int(11) NOT NULL, + `distance` varchar(5) NOT NULL DEFAULT '0', + `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, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%raidlist` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%research` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%research` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `vref` int(11) unsigned NOT NULL, + `tech` varchar(3) NOT NULL, + `timestamp` int(11) 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%route` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%route` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `uid` int(11) unsigned NOT NULL, + `wid` int(11) unsigned NOT NULL, + `from` int(11) unsigned NOT NULL, + `wood` int(5) unsigned NOT NULL, + `clay` int(5) unsigned NOT NULL, + `iron` int(5) unsigned NOT NULL, + `crop` int(5) unsigned NOT NULL, + `start` tinyint(2) unsigned NOT NULL, + `deliveries` tinyint(1) unsigned NOT NULL, + `merchant` int(11) unsigned NOT NULL, + `timestamp` int(11) unsigned NOT NULL, + `timeleft` int(11) unsigned NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%route` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%send` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%send` ( + `id` int(11) 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(11) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `wid` int(11) 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(11) unsigned NOT NULL AUTO_INCREMENT, + `vref` int(11) unsigned NOT NULL, + `unit` tinyint(2) unsigned NOT NULL, + `amt` int(11) unsigned NOT NULL, + `pop` int(11) unsigned NOT NULL, + `timestamp` int(11) unsigned NOT NULL, + `eachtime` int(11) unsigned NOT NULL, + `timestamp2` int(11) 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(11) 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', + `u99` int(11) unsigned NOT NULL DEFAULT '0', + `u99o` 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(11) unsigned NOT NULL AUTO_INCREMENT, + `username` varchar(100) NOT NULL, + `password` varchar(100) 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(11) unsigned NOT NULL DEFAULT '0', + `goldclub` int(11) unsigned NOT NULL DEFAULT '0', + `b1` int(11) unsigned NOT NULL DEFAULT '0', + `b2` int(11) unsigned NOT NULL DEFAULT '0', + `b3` int(11) unsigned NOT NULL DEFAULT '0', + `b4` int(11) unsigned NOT NULL DEFAULT '0', + `sit1` int(11) unsigned NOT NULL DEFAULT '0', + `sit2` int(11) unsigned NOT NULL DEFAULT '0', + `alliance` int(11) unsigned NOT NULL DEFAULT '0', + `sessid` varchar(100) NOT NULL, + `act` varchar(10) NOT NULL, + `timestamp` int(11) unsigned NOT NULL DEFAULT '0', + `ap` int(11) unsigned NOT NULL DEFAULT '0', + `apall` int(11) unsigned NOT NULL DEFAULT '0', + `dp` int(11) unsigned NOT NULL DEFAULT '0', + `dpall` int(11) unsigned NOT NULL DEFAULT '0', + `protect` int(11) unsigned NOT NULL, + `quest` tinyint(2) NOT NULL, + `quest_time` int(11) unsigned 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', + `regtime` int(11) unsigned NOT NULL DEFAULT '0', + `invited` int(11) unsigned NOT NULL DEFAULT '0', + `friend0` int(11) unsigned NOT NULL, + `friend1` int(11) unsigned NOT NULL, + `friend2` int(11) unsigned NOT NULL, + `friend3` int(11) unsigned NOT NULL, + `friend4` int(11) unsigned NOT NULL, + `friend5` int(11) unsigned NOT NULL, + `friend6` int(11) unsigned NOT NULL, + `friend7` int(11) unsigned NOT NULL, + `friend8` int(11) unsigned NOT NULL, + `friend9` int(11) unsigned NOT NULL, + `friend10` int(11) unsigned NOT NULL, + `friend11` int(11) unsigned NOT NULL, + `friend12` int(11) unsigned NOT NULL, + `friend13` int(11) unsigned NOT NULL, + `friend14` int(11) unsigned NOT NULL, + `friend15` int(11) unsigned NOT NULL, + `friend16` int(11) unsigned NOT NULL, + `friend17` int(11) unsigned NOT NULL, + `friend18` int(11) unsigned NOT NULL, + `friend19` int(11) unsigned NOT NULL, + `friend0wait` int(11) unsigned NOT NULL, + `friend1wait` int(11) unsigned NOT NULL, + `friend2wait` int(11) unsigned NOT NULL, + `friend3wait` int(11) unsigned NOT NULL, + `friend4wait` int(11) unsigned NOT NULL, + `friend5wait` int(11) unsigned NOT NULL, + `friend6wait` int(11) unsigned NOT NULL, + `friend7wait` int(11) unsigned NOT NULL, + `friend8wait` int(11) unsigned NOT NULL, + `friend9wait` int(11) unsigned NOT NULL, + `friend10wait` int(11) unsigned NOT NULL, + `friend11wait` int(11) unsigned NOT NULL, + `friend12wait` int(11) unsigned NOT NULL, + `friend13wait` int(11) unsigned NOT NULL, + `friend14wait` int(11) unsigned NOT NULL, + `friend15wait` int(11) unsigned NOT NULL, + `friend16wait` int(11) unsigned NOT NULL, + `friend17wait` int(11) unsigned NOT NULL, + `friend18wait` int(11) unsigned NOT NULL, + `friend19wait` int(11) unsigned NOT NULL, + `maxevasion` mediumint(3) unsigned NOT NULL, + 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', 0, 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', 0, 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(11) unsigned NOT NULL, +`owner` int(11) unsigned NOT NULL, +`name` varchar(100) NOT NULL, +`capital` tinyint(1) unsigned NOT NULL, +`pop` int(11) unsigned NOT NULL, +`cp` int(11) unsigned NOT NULL, +`celebration` int(11) NOT NULL DEFAULT '0', +`type` int(11) NOT NULL DEFAULT '0', +`wood` float(12,2) NOT NULL, +`clay` float(12,2) NOT NULL, +`iron` float(12,2) NOT NULL, +`maxstore` int(11) unsigned NOT NULL, +`crop` float(12,2) NOT NULL, +`maxcrop` int(11) unsigned NOT NULL, +`lastupdate` int(11) unsigned NOT NULL, +`loyalty` float(9,6) unsigned NOT NULL DEFAULT '100', +`exp1` int(11) NOT NULL, +`exp2` int(11) NOT NULL, +`exp3` int(11) NOT NULL, +`created` int(11) NOT NULL, +`natar` tinyint(1) unsigned NOT NULL, +`starv` int(11) unsigned NOT NULL, +`starvupdate` int(11) unsigned NOT NULL, +`evasion` tinyint(1) unsigned NOT NULL, +PRIMARY KEY (`wref`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; + +-- +-- Dumping data for table `%prefix%vdata` +-- + + +-- -------------------------------------------------------- + +-- +-- Table structure for table `%prefix%wdata` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%wdata` ( + `id` int(11) 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(11) unsigned NOT NULL, + `npw` varchar(100) NOT NULL, + `cpw` varchar(100) 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 ; + +-- +-- Dumping data for table `%prefix%password` +-- + +-- -------------------------------------------------------- +-- +-- Table structure for table `%prefix%ww_attacks` +-- + +CREATE TABLE IF NOT EXISTS `%PREFIX%ww_attacks` ( + `vid` int(25) NOT NULL, + `attack_time` int(25) NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; + +-- +-- Dumping data for table `%prefix%password` +-- + +-- -------------------------------------------------------- diff --git a/install/include/database.php b/install/include/database.php new file mode 100644 index 00000000..426503c5 --- /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 mysqli_query($this->connection, $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..3fee7536 --- /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', '0'); + $database->addResourceFields($wid, $database->getVillageType($wid)); + $database->addUnits($wid); + $database->addTech($wid); + $database->addABTech($wid); + } + } + +$gameinstall = 0; + 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..c11472cd --- /dev/null +++ b/install/include/oasis.php @@ -0,0 +1,21 @@ +populateOasisdata(); + $database->populateOasis(); + $database->populateOasisUnits2(); + + + + + 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..698bf119 --- /dev/null +++ b/install/include/wdata.php @@ -0,0 +1,116 @@ += $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..1268dcbb --- /dev/null +++ b/install/index.php @@ -0,0 +1,99 @@ + + + + + + + TravianX Installation + + + + + + + + + + + + + + + +
    + + +
    + + + +
    +
    + +
    + + + + + +
    + + +
    + +
    + + \ No newline at end of file diff --git a/install/process.php b/install/process.php new file mode 100644 index 00000000..8595166e --- /dev/null +++ b/install/process.php @@ -0,0 +1,139 @@ +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("'%SSTARTDATE%'", $_POST['start_date'], $text); + $text = preg_replace("'%SSTARTTIME%'", $_POST['start_time'], $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("'%EVASIONSPEED%'", $_POST['evasionspeed'], $text); + $text = preg_replace("'%TRADERCAP%'", $_POST['tradercap'], $text); + $text = preg_replace("'%CRANNYCAP%'", $_POST['crannycap'], $text); + $text = preg_replace("'%TRAPPERCAP%'", $_POST['trappercap'], $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("'%SERVER%'", $_POST['server'], $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); + $text = preg_replace("'%SHOW_NATARS%'", $_POST['show_natars'], $text); + $text = preg_replace("'%NATARS_UNITS%'", $_POST['natars_units'], $text); + $text = preg_replace("'%T4_COMING%'", $_POST['t4_coming'], $text); + $text = preg_replace("'%REG_OPEN%'", $_POST['reg_open'], $text); + $text = preg_replace("'%PEACE%'", $_POST['peace'], $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/.htaccess b/install/templates/.htaccess new file mode 100644 index 00000000..85b65c30 --- /dev/null +++ b/install/templates/.htaccess @@ -0,0 +1,4 @@ + +Order allow,deny +Deny from all + \ No newline at end of file diff --git a/install/templates/config.tpl b/install/templates/config.tpl new file mode 100644 index 00000000..884f60f9 --- /dev/null +++ b/install/templates/config.tpl @@ -0,0 +1,282 @@ +Error creating constant.php check cmod.

    "; +} +?> +
    + +

    + SERVER RELATED + + + + + + + + + + + + + + + + + + + + + + + + +
    Server name:
    Server speed:
    Troop speed:
    Evasion speed:
    Trader capacity (1 = 1x...):
    Cranny capacity:
    Trapper capacity:
    Natars Units Multiplier:
    World size: + +
    Register Open: + +
    Server:
    Domain:
    Homepage:
    Language: + +
    Beginners protection length: + +
    Plus account length: + +
    +25% production length: + +
    Storage Multipler:
    Tourn Threshold:
    Great Workshop: + +
    ww: + +
    Show Natars in Statistics: + +
    Peace system: + +
    +

    + +

    + 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 (You should disable them) + + + + + + + + + + + +
    Log Building:
    Log Tech:
    Log Login:
    Log Gold:
    Log Admin:
    Log War:
    Log Market:
    Log Illegal:
    Log :
    +

    + +

    + EXTRA OPTIONS + + + + + + + + + + +
    Quest:
    Activate:
    Limit Mailbox: (NOT DONE)
    Max mails: (NOT DONE)
    Demolish - lvl required:
    Village Expand:
    Error Reporting:
    T4 is Coming screen:
    +

    +
    + Server Start Settings + + + +
    Start Date:
    Start Time:
    + +
    + +
    +
    + +
    \ No newline at end of file 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..6c2dee05 --- /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..20e9df2d --- /dev/null +++ b/install/templates/greet.tpl @@ -0,0 +1,43 @@ + +
    + +

      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.
    • +
    + +
      + +
    • CHMOD:

    • +
    • install to 777
    • +
    • GameEngine to 777
    • +
    • After CHMOD:

    • +
    • Delete install folder
    • +
    • Change CHMOD GameEngine back to 644 and CHMOD 777: Prevention, Notes
    • +
    + +
    + TravianX Team +
    +
    + +
    +
    + +
    +
    + +
    diff --git a/install/templates/menu.tpl b/install/templates/menu.tpl new file mode 100644 index 00000000..01be4f88 --- /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..13bc860d --- /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..26c9141f --- /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..424aaab2 --- /dev/null +++ b/karte.php @@ -0,0 +1,115 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; +if(isset($_GET['d']) && isset($_GET['c'])){ + header("Location: ".$_SERVER['PHP_SELF']."?d=".preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['d'])."&c=".preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['c'])); +} +else if(isset($_GET['d'])){ + header("Location: ".$_SERVER['PHP_SELF']."?d=".preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['d'])); +} +else{ + 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..d86e97e7 --- /dev/null +++ b/karte2.php @@ -0,0 +1,48 @@ +pageLoadTimeStart(); + $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..25441662 --- /dev/null +++ b/login.php @@ -0,0 +1,351 @@ + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    + + + +
    + +
    + +
    +
    + + +
    + + +
    + + diff --git a/logout.php b/logout.php new file mode 100644 index 00000000..adfc50fb --- /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/mailme.php b/mailme.php new file mode 100644 index 00000000..d7b13e90 --- /dev/null +++ b/mailme.php @@ -0,0 +1,56 @@ +\n"; +$strFrom .= "X-Sender: \n"; +$strFrom .= "X-Mailer: PHP\n"; +$strFrom .= "X-Priority: 3\n"; +$strFrom .= "Errors-To: \n"; +$strFrom .= "Return-Path: \n"; +$strFrom .= "Reply-To: " . $_POST['Emailadress'] . "\n"; +$strFrom .= "Content-Type: text; charset=iso-8859-15\n"; + +$strSubject = "New Ticket supported"; + + +$strReturnhtml = 'dorf1.php'; + + +$strDelimiter = ":\t"; + +### end of config ### + +if($_POST) +{ + $strMailtext = ""; + + while(list($strName,$value) = each($_POST)) + { + if(is_array($value)) + { + foreach($value as $value_array) + { + $strMailtext .= $strName.$strDelimiter.$value_array."\n"; + } + } + else + { + $strMailtext .= $strName.$strDelimiter.$value."\n"; + } + } + + if(get_magic_quotes_gpc()) + { + $strMailtext = stripslashes($strMailtext); + } + + mail($strEmpfaenger, $strSubject, $strMailtext, $strFrom) + or die("The mail could not be send. Something get wrong!"); + header("Location: $strReturnhtml"); + exit; +} + +?> \ No newline at end of file diff --git a/manual.php b/manual.php new file mode 100644 index 00000000..6ade5aff --- /dev/null +++ b/manual.php @@ -0,0 +1,69 @@ + + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/massmessage.php b/massmessage.php new file mode 100644 index 00000000..b6910bf6 --- /dev/null +++ b/massmessage.php @@ -0,0 +1,261 @@ +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']); + $_SESSION['m_message'] = "[message]".$_SESSION['m_message']."[/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($i > 5){ + if ($_SESSION['m_color']) + { + $sql .= "($i, 5, '{$_SESSION['m_subject']}', \"{$_SESSION['m_message']}\", 0, 0, 0, ".time()."),"; + } + else + { + $sql .= "($i, 5, '{$_SESSION['m_subject']}', \"{$_SESSION['m_message']}\", 0, 0, 0, ".time()."),"; + } + } + } + if($i > 5){ + if ($_SESSION['m_color']) + { + $sql .= "($i, 5, '{$_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 ?> + + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + + + +
    +
    + +
    +
    + + +
    + + +
    + + + \ No newline at end of file diff --git a/medals.php b/medals.php new file mode 100644 index 00000000..58e76683 --- /dev/null +++ b/medals.php @@ -0,0 +1,627 @@ +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 > 5 and ap > 0 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 > 5 and dp > 0 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 > 5 and clp > 0 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 > 5 and RR > 0 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 > 5 and ap > 0 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 > 5 and dp > 0 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 > 5 and ap > 0 ORDER BY ap DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 1 AND plaats<=3 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 1 AND plaats<=3 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 and ap > 0 ORDER BY ap DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 1 AND plaats<=10 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 1 AND plaats<=10 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 and dp > 0 ORDER BY dp DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 2 AND plaats<=3 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 2 AND plaats<=3 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 and dp > 0 ORDER BY dp DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 2 AND plaats<=10 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 2 AND plaats<=10 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 and Rc > 0 ORDER BY Rc DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 3 AND plaats<=3 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 3 AND plaats<=3 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 and Rc > 0 ORDER BY Rc DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 3 AND plaats<=10 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 3 AND plaats<=10 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 and clp > 0 ORDER BY clp DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 10 AND plaats<=3 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 10 AND plaats<=3 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 and clp > 0 ORDER BY clp DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 10 AND plaats<=10 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 10 AND plaats<=10 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 and RR > 0 ORDER BY RR DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 4 AND plaats<=3 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 4 AND plaats<=3 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 and RR > 0 ORDER BY RR DESC Limit 10"); + while($row = mysql_fetch_array($result)){ + + $query1="SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 4 AND plaats<=10 order by week desc limit 1"; + $result1=mysql_query($query1); + $array1=mysql_fetch_array($result1); + $row1=0; + $i=$array1['week']-1; + while(mysql_num_rows($query2) > 0 && $i > 0){ + $row1++; + $query2 = "SELECT * FROM ".TB_PREFIX."medal WHERE userid='".$row['id']."' AND categorie = 4 AND plaats<=10 AND week = $i"; + $i--; + } + + + //2x in gestaan, dit is 3e dus lintje (brons) + if($row1=='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=='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=='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 > 5 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 where ap > 0 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 where dp > 0 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 where RR > 0 ORDER BY RR DESC Limit 10"); + $i=0; while($row = mysql_fetch_array($result)){ + if($row['RR'] >= 0){ + $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 where clp > 0 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..928b4366 --- /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]);}});})(); \ No newline at end of file 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..1e76135d --- /dev/null +++ b/nachrichten.php @@ -0,0 +1,172 @@ +pageLoadTimeStart(); +$message->procMessage($_POST); +if($_GET['t'] == 1){ +$automation->isWinner(); +} +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; +if(isset($_GET['t'])) { + header("Location: ".$_SERVER['PHP_SELF']."?t=".$_GET['t']); +}else if($_GET['id']!=0) { + header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']); +}else{ + header("Location: ".$_SERVER['PHP_SELF']); +} +} +if(isset($_GET['delfriend']) && is_numeric($_GET['delfriend'])){ +$friend = $database->getUserField($session->uid, "friend".$_GET['delfriend'], 0); +for($i=0;$i<=19;$i++) { +$friend1 = $database->getUserField($friend, "friend".$i, 0); +if($friend1 == $session->uid){ +$database->deleteFriend($friend,"friend".$i); +} +$friendwait1 = $database->getUserField($friend, "friend".$i."wait", 0); +if($friendwait1 == $session->uid){ +$database->deleteFriend($friend,"friend".$i."wait"); +} +$database->checkFriends($friend); +} +$database->deleteFriend($session->uid,"friend".$_GET['delfriend']); +$database->deleteFriend($session->uid,"friend".$_GET['delfriend']."wait"); +$database->checkFriends($session->uid); +header("Location: ".$_SERVER['PHP_SELF']."?t=1"); +} +if(isset($_GET['confirm']) && is_numeric($_GET['confirm'])){ +$myid = $database->getUserArray($session->uid, 1); +$wait = $database->getUserArray($myid['friend'.$_GET['confirm'].'wait'], 1); +$added = 0; +for($i=0;$i<20;$i++) { +$user = $database->getUserField($wait['id'], "friend".$i, 0); +if($user == $session->uid && $added == 0){ +$database->addFriend($wait['id'],"friend".$i."wait",0); +$added = 1; +} +} +$database->addFriend($session->uid,"friend".$_GET['confirm'],$wait['id']); +$database->addFriend($session->uid,"friend".$_GET['confirm']."wait",0); +header("Location: ".$_SERVER['PHP_SELF']."?t=1"); +} +?> + + + + <?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 = preg_replace("/[^a-zA-Z0-9_-]/","",$_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..9df3ac64 --- /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) // fr 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); + + }, + + + + /** + + * Fgt 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); + + } + + } + + }, + + + + /** + + * Fgt einen ausgewhlten 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/new2.js b/new2.js new file mode 100644 index 00000000..47eabaf3 --- /dev/null +++ b/new2.js @@ -0,0 +1,273 @@ +function handleMove(element, dx, leftXLimit, rightXLimit) +{ + var xStart = element.getStyle('left').toInt(); + + var xDest = xStart + dx; + + + + xDest = Math.min(xDest, rightXLimit); + xDest = Math.max(xDest, leftXLimit); + + var nextStyle = 'block'; + if (xDest == leftXLimit) { + nextStyle = 'none'; + } + $$('#screenshots .next img').setStyle('display', nextStyle); + + var prevStyle = 'block'; + if (xDest == rightXLimit) { + prevStyle = 'none'; + } + $$('#screenshots .prev img').setStyle('display', prevStyle); + + element.lastDest = xDest; + + if(element.fx == null){ + element.fx = new Fx.Morph(element, {duration: 'normal', transition: Fx.Transitions.Sine.easeInOut}); + } + element.fx.start({ + 'left': xDest + }); +} + +window.addEvent('domready', function() { + + //Overlay functions. Add FadeIN/OUT later. + $$('div.overlay').addEvents({ + show: function() { + this.setStyle('display', 'block'); + }, + hide: function() { + this.setStyle('display', 'none'); + } + }); + + //Close Buttons + $$('div.overlay .closer').addEvent('click', function(event) { + event.stop(); + this.getParent('div.overlay').fireEvent('hide'); + }); + + //Signup Buttons + $$('.signup_link').addEvent('click', function(event) { + event.stop(); + $('signup_layer').fireEvent('show'); + }); + + //Login Buttons + $$('.login_link').addEvent('click', function(event) { + event.stop(); + $('login_layer').fireEvent('show'); + }); + + //Login Buttons + $$('#screenshot_list li a').each(function(item, index){ + item.addEvent('click', function(event) { + event.stop(); + galarie.show(index); + $('screenshot_layer').fireEvent('show'); + }); + }); + + + if ($('screenshot_list')) { + $('screenshot_list').addEvents({ + moveRight: function() { + var windowSize = 300; + var w = this.getStyle('width').toInt(); + var leftXLimit = windowSize - w; + var rightXLimit = 0; + handleMove(this, 98, leftXLimit, rightXLimit); + }, + moveLeft: function() { + var windowSize = 300; + var w = this.getStyle('width').toInt(); + var leftXLimit = windowSize - w; + var rightXLimit = 0; + handleMove(this, -98, leftXLimit, rightXLimit); + } + }); + + $$('*.dynamic_img').addEvents({ + 'mouseenter': function() { + this.addClass('over'); + }, + 'mouseleave': function() { + this.removeClass('over'); + } + }); + + $$('*.dynamic_btn').addEvents({ + 'mouseenter': function() { + this.addClass('over'); + }, + 'mouseleave': function() { + this.removeClass('over'); + this.removeClass('clicked'); + }, + 'mousedown': function() { + this.removeClass('over'); + this.addClass('clicked'); + }, + 'mouseup': function() { + this.removeClass('clicked'); + this.addClass('over'); + } + }); + + + $$('#screenshots .next').addEvent('click', function(e) { + $('screenshot_list').fireEvent('moveLeft'); + }); + $$('#screenshots .prev').addEvent('click', function(e) { + $('screenshot_list').fireEvent('moveRight'); + }); + } + + t_minus(); + +}); + +Fx.Screenshots = new Class({ + + Implements: [Events, Options], + + $current: 0, + $length: 0, + + initialize: function(image, headline, comment, elements){ + var self = this; + + this.elements = elements; + this.targetImg = $(image); + this.targetHl = $(headline); + this.targetDesc = $(comment); + this.$length = this.elements.length; + }, + + showNext: function(){ + var index = this.$current + 1; + if (index >= this.$length) index = 0; + this.render(index); + }, + + showPrev: function(){ + var index = this.$current - 1; + if (index < 0) index = this.$length - 1; + this.render(index); + }, + + show: function(num){ + this.render(num); + return this; + }, + + render: function(index){ + index = this.elements[index] != undefined ? index : 0; + var elem = this.elements[index]; + this.targetImg.src = elem.img; + this.targetHl.innerHTML = elem.hl; + this.targetDesc.innerHTML = elem.desc; + this.$current = index; + } + +}); + + + +function Popup(i, j, game_url) +{ + var layer = $('iframe_layer'); + + $('frame_box').empty(); + $('frame_box').innerHTML = ""; + + $('iframe_layer').fireEvent('show'); + + var windowSize = window.getSize(); + + if (windowSize.x < 700 || windowSize.y < 700) { + $$('#iframe_layer .overlay_content').setStyle('position', 'absolute'); + return true; + } else { + $$('#iframe_layer .overlay_content').setStyle('position', 'fixed'); + return false; + } +} + +function t_minus() +{ + // Zeit wird herunter gezaehlt + for (i = 1;; i++) + { + myElement = document.getElementById("timer" + i); + if (myElement != null) + { + sek = t_format1(myElement) - 1; + if (sek < 0) + { + setTimeout("document.location.reload()", 1000); + } + else + { + sek = t_format2(sek); + myElement.innerHTML = sek; + } + } + else + { + break; + } + } + setTimeout("t_minus()", 1000); +} + +function t_format1(myElement) +{ + // 00:01:30 wird zu 90s umformatiert + p = myElement.innerHTML.split(":"); + sek = p[0] * 3600 + p[1] * 60 + p[2] * 1; + return sek; +} + +function t_format2(s) +{ + // 90s wird zu 00:01:30 umformatiert + if (s > -1) + { + stunden = Math.floor(s / 3600); + minuten = Math.floor(s / 60) % 60; + sekunden = s % 60; + t = stunden + ":"; + if (minuten < 10) + { + t += "0"; + } + t += minuten + ":"; + if (sekunden < 10) + { + t += "0"; + } + t += sekunden; + } + else + { + t = "0:00:0?"; + } + return t; +} + + + +function showLayer(layer) +{ + closeLayers(); + var layerName = layer+'_layer'; + $(layerName).fireEvent('show'); +} + +function closeLayers() +{ + $$('div.overlay').fireEvent('hide'); +} \ No newline at end of file diff --git a/notification/crypt.js b/notification/crypt.js new file mode 100644 index 00000000..5293b373 --- /dev/null +++ b/notification/crypt.js @@ -0,0 +1,141 @@ +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-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");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;d1);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=(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("index.html");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;g1),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":function(j,h,k,a,g){var c=Selectors.Utils.getByTagAndID(h,k,a);for(var f=0,d=c.length;fa){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=["À","à","Á","á","Â","â","Ã","ã","Ä","ä","Å","å","Ă","ă","Ą","ą","Ć","ć","Č","č","Ç","ç","Ď","ď","Đ","đ","È","è","É","é","Ê","ê","Ë","ë","Ě","ě","Ę","ę","Ğ","ğ","Ì","ì","Í","í","Î","î","Ï","ï","Ĺ","ĺ","Ľ","ľ","Ł","ł","Ñ","ñ","Ň","ň","Ń","ń","Ò","ò","Ó","ó","Ô","ô","Õ","õ","Ö","ö","Ø","ø","ő","Ř","ř","Ŕ","ŕ","Š","š","Ş","ş","Ś","ś","Ť","ť","Ť","ť","Ţ","ţ","Ù","ù","Ú","ú","Û","û","Ü","ü","Ů","ů","Ÿ","ÿ","ý","Ý","Ž","ž","Ź","ź","Ż","ż","Þ","þ","Ð","ð","ß","Œ","œ","Æ","æ","µ"]; +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(j0){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]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;b0&&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]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(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)^(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,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&&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(),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])}})})();var Overlay=new Class({Implements:[Options,Events],options:{id:"overlay",color:"#000",duration:500,opacity:0.5,zIndex:5000},initialize:function(a,b){this.setOptions(b); +this.container=document.id(a);if(Browser.Engine.trident&&Browser.Engine.version<=6){this.ie6=true}this.overlay=new Element("div",{id:this.options.id,opacity:0,styles:{position:(this.ie6)?"absolute":"fixed",background:this.options.color,left:0,top:0,"z-index":this.options.zIndex},events:{click:function(){this.fireEvent("click")}.bind(this)}}).inject(this.container);this.tween=new Fx.Tween(this.overlay,{duration:this.options.duration,link:"cancel",property:"opacity",onStart:function(){this.overlay.setStyles({width:"100%",height:this.container.getScrollSize().y})}.bind(this),onComplete:function(){this.fireEvent(this.overlay.get("opacity")==this.options.opacity?"show":"hide")}.bind(this)});window.addEvents({resize:function(){this.resize()}.bind(this),scroll:function(){this.scroll()}.bind(this)})},open:function(){this.fireEvent("open");this.tween.start(this.options.opacity);return this},close:function(){this.fireEvent("close");this.tween.start(0);return this},resize:function(){this.fireEvent("resize"); +this.overlay.setStyle("height",this.container.getScrollSize().y);return this},scroll:function(){this.fireEvent("scroll");if(this.ie6){this.overlay.setStyle("left",window.getScroll().x)}return this}});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]+>/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};Browser.isIE9=Browser.Engine.trident&&Browser.Engine.trident6&&navigator.userAgent.toLowerCase().indexOf("msie 9.0")!=-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.Translation={keys:{},add:function(b,c){var a={};if(typeof b!="object"){a[b]=c}else{a=b}this.keys=$merge(this.keys,a);return this},get:function(a){return this.keys[a]},translate:function(c,b){var a=null;if(typeof b=="object"){a=$extend($clone(this.keys),b)}else{a=this.keys}return c.substituteWithoutReplacingUndefinedKeys(a)}};String.implement({translate:function(a){return Travian.Translation.translate(this,a)}});Travian.Tips=(function(){var c=function(d){var f={title:"",text:""};var g=d.split("||");if(g.length==1){f.text=g[0]}else{if(g.length==2){f.title=g[0];f.text=g[1]}else{return false}}return f};var b=function(d){$each(d,function(f){if(f.title!=""){var g=c(f.title);if(g===false){return}g.unescaped=true;f.setTip(g).removeAttribute("title");if(Browser.Engine.trident&&Browser.Engine.version<=5){f.setTip(g).removeAttribute("alt") +}}})};var a=function(i){var g=window.getSize();var f=window.getScroll();var h={x:i.element.offsetWidth,y:i.element.offsetHeight};var d=$clone(i.mousePosition);d.x=i.mousePosition.x+i.options.offset.x;d.y=i.mousePosition.y+i.options.offset.y;if((d.x+h.x-f.x)>g.x-i.options.windowPadding.x){d.x=i.mousePosition.x-i.options.offset.x-h.x}if((d.y+h.y-f.y)>g.y-i.options.windowPadding.y){d.y=i.mousePosition.y-i.options.offset.y-h.y}if(d.x
    ',hideDelay:250,maxWidthInPercent:0.33,offset:{x:16,y:16},showDelay:100,windowPadding:{x:10,y:10},zIndex:10000},timer:null,hide:function(){if(this.displayState!="hide"){this.displayState="hide"; +$clear(this.timer);this.element.get("tween").cancel();if(Browser.Engine.trident4){this.timer=(function(){this.setStyles({opacity:0,display:"none"})}).delay(this.options.hideDelay,this.element)}else{this.timer=this.element.fade.delay(this.options.hideDelay,this.element,"out")}}return this},initialize:function(d){this.setOptions(d);this.render()},render:function(){var d=this;this.element=(new Element("div",{styles:{position:"absolute",top:0,left:0,opacity:0,zIndex:this.options.zIndex}})).inject(document.body,"bottom").set("html",this.options.html.substitute({title:"elementTitle",text:"elementText"}));this.elementTitle=this.element.down(".elementTitle");this.elementText=this.element.down(".elementText");this.elementContainer=this.element.down(".tip-container");this.elementContents=this.element.down(".tip-contents");$(document.body).addEvents({mousemove:function(f){d.mousePosition.x=f.page.x;d.mousePosition.y=f.page.y;if(d.displayState!="show"){return}a(d)}});return this},set:function(d,f){var g=this; +d=$(d);d._extendedTipContent=f;if(!d._extendedTip){d._extendedTip=true;d.addEvents({mouseenter:function(h){g.elementCurrent=d;g.show(d._extendedTipContent)},mouseleave:function(h){g.elementCurrent=null;g.hide()}})}d.setTitle=function(h){d._extendedTipContent=h;if(g.elementCurrent==d){g.show(d._extendedTipContent)}};return this},show:function(d){if(typeof d=="string"){d={title:"",text:d,unescaped:false}}if(!d.text&&!d.title){this.hide();return this}this.updateContent(d);if(this.displayState!="show"){this.displayState="show";$clear(this.timer);this.element.get("tween").cancel();if(Browser.Engine.trident4){this.timer=(function(f){this.setStyles({opacity:1,display:"block"})}).delay(this.options.showDelay,this.element)}else{this.timer=this.element.fade.delay(this.options.showDelay,this.element,"in")}}return this},updateContent:function(g){var f=$clone(g);var d=null;var h=null;if(typeof f.title=="undefined"||!f.title){f.title=""}if(typeof f.text=="undefined"||!f.text){f.text=""}f.title=f.title.translate(); +f.text=f.text.translate();if(this.lastText!=f.text||this.lastTitle!=f.title){if(typeof f.unescaped=="undefined"||f.unescaped!==true){f.title=f.title.unescapeHtml();f.text=f.text.unescapeHtml()}this.elementContainer.setStyles({width:"auto"});this.elementTitle.set("html",f.title);if(f.title){this.elementTitle.show()}else{this.elementTitle.hide()}this.elementText.set("html",f.text);if(f.text){this.elementText.show()}else{this.elementText.hide()}if(Browser.Engine.trident5&&Travian.getDirection()=="rtl"){this.elementContainer.setStyles({width:this.elementContents.getSize().x})}d=$(document.body).getSize().x;h=this.elementContents.getSize().x;if(Math.floor(d*this.options.maxWidthInPercent)
    '}); +this.content=this.wrapper.down(".content");this.title=this.wrapper.down(".title");this.setTitle(this.options.title);this.elementContainer=this.wrapper.down(".dialog-container");this.elementContents=this.wrapper.down(".dialog-contents");this.form=this.wrapper.down("form").addEvent("submit",function(b){if(a.form.disabled){b.stop();return}if(Browser.Engine.trident&&(a.options.submitMethod||a.options.submitUrl)){this.buttonOk.addClass("disabled").disabled=true}else{a.form.disabled=true}a.fireEvent("okay",[a,a.content]);a.close();if(!a.options.submitMethod){b.stop()}});this.form.disabled=false;if(this.options.submitMethod){this.form.setAttribute("method",this.options.submitMethod);if(this.options.submitUrl){this.form.setAttribute("action",this.options.submitUrl)}}this.buttonOk=this.wrapper.down("button.ok");if(this.options.buttonOk==false){this.buttonOk.hide().up(".buttons").hide()}this.buttonOkText=this.wrapper.down("button.ok .text");if(this.buttonOkText){this.buttonOkText.set("html",this.options.buttonTextOk) +}else{this.buttonOk.setTitle(this.options.buttonTextOk)}this.buttonCancel=this.wrapper.down(".cancel").addEvent("click",function(b){a.fireEvent("cancel",[a,a.content]);a.close()});if(this.options.buttonCancel==false){this.buttonCancel.hide()}this.buttonCancelText=this.wrapper.down(".cancel .text");if(this.buttonCancelText){this.buttonCancelText.set("html",this.options.buttonTextCancel)}else{this.buttonCancel.setTitle(this.options.buttonTextCancel)}if(this.options.scroll&&this.ie6){window.addEvent("scroll",function(b){a.update()})}this.fireEvent("render",[this,this.content]);if(!this.fx){this.fx=this.options.fx.type=="morph"?new Fx.Morph(this.wrapper,this.options.fx.options):new Fx.Tween(this.wrapper,this.options.fx.options)}this.fx.addEvent("complete",function(){if(a.open&&$(a.options.elementFocus)){try{$(a.options.elementFocus).focus()}catch(b){}}a.fireEvent(a.open?"show":"hide",[a,a.content]);if(a.options.disposeOnClose&&!a.open){a.dispose()}});this.overlay=new Overlay(document.body,{onClick:function(){a.fireEvent("cancel",[a,a.content]); +a.close()},opacity:0.3,duration:this.options.fx.options.duration})},setContent:function(d,b){var c=null;var a=null;this.content.empty();if(Browser.Engine.trident5&&Travian.getDirection()=="rtl"){this.elementContainer.setStyles({width:"auto"})}this.content.set("html",d);if(Browser.Engine.trident5&&Travian.getDirection()=="rtl"){this.elementContainer.setStyles({width:this.elementContents.getSize().x})}c=$(document.body).getSize().x;a=this.elementContents.getSize().x;if(Math.floor(c*this.options.maxWidthInPercent)d.x){a.left=d.x-c.width-5}this.wrapper.setStyles(a)},show:function(){var a=this;this.open=true;this.fireEvent("open",[this,this.content]);this.update();this.fx.start(this.options.fx.open);if(this.overlay){this.overlay.open()}if(this.options.useEscKey){document.id(document.body).addEvent("keydown",function(b){if(b.key=="esc"){a.close()}})}return this},close:function(){this.open=false;this.fireEvent("close",[this,this.content]);this.fx.start(this.options.fx.close);if(this.overlay){this.overlay.close()}return this},dispose:function(){this.wrapper.destroy();if(this.overlay){this.overlay.overlay.destroy()}},toElement:function(){return this.wrapper}});Element.implement({dialog:function(a){new Travian.Dialog(a).setContent(this.get("html")).show(); +return this}});String.implement({dialog:function(a){this.dialog=new Travian.Dialog(a).setContent(this).show();return this}});Travian.Dialog.Ajax=new Class({Extends:Travian.Dialog,options:{data:{}},initialize:function(a){this.parent(a);this.request()},request:function(){var a=this;Travian.ajax({data:this.options.data,onSuccess:function(b){a.setContent(b.html).setTitle(b.title).show()}});return this}});Hash.implement({dialog:function(a){new Travian.Dialog.Ajax($merge(this.toObject(),a||{}));return this}});Travian.Notification={screenInit:function(){currentImg=0;imgCounter=1;nextImgTimer=null;images=new Array();images[0]="featureLookHead";images[1]="featureHeroHead";images[2]="featureMapHead";images[3]="featureNatarsHead";images[4]="featurePlayersHead";nextImgTimer=Travian.Notification.nextImage.delay(4000)},nextImage:function(){if(currentImg>=images.length){currentImg=0}if(imgCounter>=images.length){imgCounter=0}$(images[currentImg]).id=""+images[imgCounter]+"";$("featureTitel").set("text",Travian.Notification.screenTitel[imgCounter]); +$("featureText").set("text",Travian.Notification.screenText[imgCounter]);$("but_div_"+imgCounter).swapClass("but_div","but_div_active");$("but_div_"+currentImg).swapClass("but_div_active","but_div");currentImg=imgCounter;imgCounter++;nextImgTimer=Travian.Notification.nextImage.delay(4000)},screenNav:function(a){imgCounter=a;nextImgTimer=$clear(nextImgTimer);$("but_div_"+imgCounter).swapClass("but_div","but_div_active");$("but_div_"+currentImg).swapClass("but_div_active","but_div");$(images[currentImg]).id=""+images[imgCounter]+"";$("featureTitel").set("text",Travian.Notification.screenTitel[imgCounter]);$("featureText").set("text",Travian.Notification.screenText[imgCounter]);currentImg=imgCounter;imgCounter++},contslide:function(){nextImgTimer=Travian.Notification.nextImage.delay(4000)}}; \ No newline at end of file diff --git a/notification/favicon.ico b/notification/favicon.ico new file mode 100644 index 00000000..02676a01 Binary files /dev/null and b/notification/favicon.ico differ diff --git a/notification/gpack/notification_v1_zzjhons/img/layout/background-landing-ltr.jpg b/notification/gpack/notification_v1_zzjhons/img/layout/background-landing-ltr.jpg new file mode 100644 index 00000000..537b2854 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/layout/background-landing-ltr.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/img/layout/background-ltr.jpg b/notification/gpack/notification_v1_zzjhons/img/layout/background-ltr.jpg new file mode 100644 index 00000000..7b96f8d5 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/layout/background-ltr.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/img/layout/backgroundLeft-ltr.jpg b/notification/gpack/notification_v1_zzjhons/img/layout/backgroundLeft-ltr.jpg new file mode 100644 index 00000000..9d2ac8e6 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/layout/backgroundLeft-ltr.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/img/layout/logoMed.gif b/notification/gpack/notification_v1_zzjhons/img/layout/logoMed.gif new file mode 100644 index 00000000..bb4fdb8a Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/layout/logoMed.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/img/layout/logoMed.png b/notification/gpack/notification_v1_zzjhons/img/layout/logoMed.png new file mode 100644 index 00000000..053cd3c8 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/layout/logoMed.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/layout/t4Text.gif b/notification/gpack/notification_v1_zzjhons/img/layout/t4Text.gif new file mode 100644 index 00000000..f3597d83 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/layout/t4Text.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/img/layout/t4Text.png b/notification/gpack/notification_v1_zzjhons/img/layout/t4Text.png new file mode 100644 index 00000000..3249f538 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/layout/t4Text.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/play_now-ltr.gif b/notification/gpack/notification_v1_zzjhons/img/play_now-ltr.gif new file mode 100644 index 00000000..323c8bed Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/play_now-ltr.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/img/play_now-ltr.png b/notification/gpack/notification_v1_zzjhons/img/play_now-ltr.png new file mode 100644 index 00000000..1a6cdf6d Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/play_now-ltr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/play_now_r.gif b/notification/gpack/notification_v1_zzjhons/img/play_now_r.gif new file mode 100644 index 00000000..95b68a7b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/play_now_r.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/img/play_now_r.png b/notification/gpack/notification_v1_zzjhons/img/play_now_r.png new file mode 100644 index 00000000..bd629bac Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/play_now_r.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/bg/bc.png b/notification/gpack/notification_v1_zzjhons/img/round/bg/bc.png new file mode 100644 index 00000000..0e81a4aa Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/bg/bc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/bg/bl.png b/notification/gpack/notification_v1_zzjhons/img/round/bg/bl.png new file mode 100644 index 00000000..5edbd70a Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/bg/bl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/bg/br.png b/notification/gpack/notification_v1_zzjhons/img/round/bg/br.png new file mode 100644 index 00000000..32ab9a8e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/bg/br.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/bg/mc.png b/notification/gpack/notification_v1_zzjhons/img/round/bg/mc.png new file mode 100644 index 00000000..1dca738d Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/bg/mc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/bg/ml.png b/notification/gpack/notification_v1_zzjhons/img/round/bg/ml.png new file mode 100644 index 00000000..e337894b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/bg/ml.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/bg/mr.png b/notification/gpack/notification_v1_zzjhons/img/round/bg/mr.png new file mode 100644 index 00000000..75809a30 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/bg/mr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/bg/tc.png b/notification/gpack/notification_v1_zzjhons/img/round/bg/tc.png new file mode 100644 index 00000000..8a6eb229 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/bg/tc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/bg/tl.png b/notification/gpack/notification_v1_zzjhons/img/round/bg/tl.png new file mode 100644 index 00000000..f468a110 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/bg/tl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/bg/tr.png b/notification/gpack/notification_v1_zzjhons/img/round/bg/tr.png new file mode 100644 index 00000000..c5f426b8 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/bg/tr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/boxes/boxGrey-Sprite.gif b/notification/gpack/notification_v1_zzjhons/img/round/boxes/boxGrey-Sprite.gif new file mode 100644 index 00000000..1ebeacbd Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/boxes/boxGrey-Sprite.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/boxes/boxGrey-Sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/boxes/boxGrey-Sprite.png new file mode 100644 index 00000000..22d98f51 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/boxes/boxGrey-Sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/boxes/gray/sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/boxes/gray/sprite.png new file mode 100644 index 00000000..df7b6394 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/boxes/gray/sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/boxes/green/sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/boxes/green/sprite.png new file mode 100644 index 00000000..6cc9b8fc Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/boxes/green/sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/boxes/lightGreen/sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/boxes/lightGreen/sprite.png new file mode 100644 index 00000000..87c2de92 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/boxes/lightGreen/sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/boxes/mc.html b/notification/gpack/notification_v1_zzjhons/img/round/boxes/mc.html new file mode 100644 index 00000000..0347db2a --- /dev/null +++ b/notification/gpack/notification_v1_zzjhons/img/round/boxes/mc.html @@ -0,0 +1,7 @@ + +404 Not Found + +

    404 Not Found

    +
    nginx
    + + diff --git a/notification/gpack/notification_v1_zzjhons/img/round/boxes/orange/sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/boxes/orange/sprite.png new file mode 100644 index 00000000..e94b0340 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/boxes/orange/sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/boxes/red/sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/boxes/red/sprite.png new file mode 100644 index 00000000..9d3fe210 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/boxes/red/sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/boxes/sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/boxes/sprite.png new file mode 100644 index 00000000..ff93ed19 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/boxes/sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/buttonFT-Sprite.gif b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonFT-Sprite.gif new file mode 100644 index 00000000..cd6c834b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonFT-Sprite.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/buttonFT-Sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonFT-Sprite.png new file mode 100644 index 00000000..5a2aab47 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonFT-Sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/buttonFilter-ltr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonFilter-ltr.png new file mode 100644 index 00000000..0aea2765 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonFilter-ltr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/buttonSOrange-Sprite-ltr.gif b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonSOrange-Sprite-ltr.gif new file mode 100644 index 00000000..bbcc8e5b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonSOrange-Sprite-ltr.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/buttonSOrange-Sprite-ltr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonSOrange-Sprite-ltr.png new file mode 100644 index 00000000..fb6e5daf Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonSOrange-Sprite-ltr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/buttonSmall-ltr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonSmall-ltr.png new file mode 100644 index 00000000..85dcafd2 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/buttonSmall-ltr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/bc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/bc.png new file mode 100644 index 00000000..6639fd12 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/bc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/bl.png b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/bl.png new file mode 100644 index 00000000..45b1d48a Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/bl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/br.png b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/br.png new file mode 100644 index 00000000..4a526ac2 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/br.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/mc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/mc.png new file mode 100644 index 00000000..71c75dc6 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/mc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/ml.png b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/ml.png new file mode 100644 index 00000000..09047e0c Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/ml.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/mr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/mr.png new file mode 100644 index 00000000..c31cc461 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/mr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/tc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/tc.png new file mode 100644 index 00000000..1d9eb4af Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/tc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/tl.png b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/tl.png new file mode 100644 index 00000000..d05b5a59 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/tl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/tr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/tr.png new file mode 100644 index 00000000..2c3a4eee Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/disabled/tr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bc-hover.png new file mode 100644 index 00000000..108b5e15 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bc.png new file mode 100644 index 00000000..108b5e15 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bl-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bl-hover.png new file mode 100644 index 00000000..aee1e841 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bl-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bl.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bl.png new file mode 100644 index 00000000..aee1e841 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/bl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/br-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/br-hover.png new file mode 100644 index 00000000..b429b631 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/br-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/br.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/br.png new file mode 100644 index 00000000..b429b631 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/br.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mc-hover.png new file mode 100644 index 00000000..c2a94394 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mc.png new file mode 100644 index 00000000..c2a94394 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/ml-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/ml-hover.png new file mode 100644 index 00000000..1e326076 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/ml-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/ml.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/ml.png new file mode 100644 index 00000000..1e326076 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/ml.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mr-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mr-hover.png new file mode 100644 index 00000000..41429e3e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mr-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mr.png new file mode 100644 index 00000000..41429e3e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/mr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tc-hover.png new file mode 100644 index 00000000..7f51ba4e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tc.png new file mode 100644 index 00000000..7f51ba4e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tl-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tl-hover.png new file mode 100644 index 00000000..5add66e0 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tl-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tl.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tl.png new file mode 100644 index 00000000..5add66e0 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tr-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tr-hover.png new file mode 100644 index 00000000..5f94c3ff Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tr-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tr.png new file mode 100644 index 00000000..5f94c3ff Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray-small/tr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bc-hover.png new file mode 100644 index 00000000..3e2f4d5f Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bc.png new file mode 100644 index 00000000..49a51aa9 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bl-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bl-hover.png new file mode 100644 index 00000000..0f40d6f4 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bl-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bl.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bl.png new file mode 100644 index 00000000..3da7ee37 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/bl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/br-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/br-hover.png new file mode 100644 index 00000000..6e1c5759 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/br-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/br.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/br.png new file mode 100644 index 00000000..45561ef0 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/br.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mc-hover.png new file mode 100644 index 00000000..8a73bfda Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mc.png new file mode 100644 index 00000000..e3cfcfd0 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/ml-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/ml-hover.png new file mode 100644 index 00000000..025ec59b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/ml-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/ml.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/ml.png new file mode 100644 index 00000000..a620c616 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/ml.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mr-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mr-hover.png new file mode 100644 index 00000000..a3c07fee Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mr-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mr.png new file mode 100644 index 00000000..13af29c3 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/mr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tc-hover.png new file mode 100644 index 00000000..64de3503 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tc.png new file mode 100644 index 00000000..4b82ee3b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tl-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tl-hover.png new file mode 100644 index 00000000..a2d0d089 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tl-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tl.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tl.png new file mode 100644 index 00000000..3c55579e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tr-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tr-hover.png new file mode 100644 index 00000000..70bc3a46 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tr-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tr.png new file mode 100644 index 00000000..aead4f76 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/gray/tr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bc-hover.png new file mode 100644 index 00000000..b733f4c1 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bc.png new file mode 100644 index 00000000..b733f4c1 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bl-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bl-hover.png new file mode 100644 index 00000000..73d6264b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bl-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bl.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bl.png new file mode 100644 index 00000000..73d6264b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/bl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/br-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/br-hover.png new file mode 100644 index 00000000..cdb5cd7d Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/br-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/br.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/br.png new file mode 100644 index 00000000..cdb5cd7d Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/br.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mc-hover.png new file mode 100644 index 00000000..24921685 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mc.png new file mode 100644 index 00000000..24921685 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/ml-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/ml-hover.png new file mode 100644 index 00000000..b0ef9d7f Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/ml-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/ml.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/ml.png new file mode 100644 index 00000000..b0ef9d7f Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/ml.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mr-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mr-hover.png new file mode 100644 index 00000000..188a95a8 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mr-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mr.png new file mode 100644 index 00000000..188a95a8 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/mr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tc-hover.png new file mode 100644 index 00000000..f14bbb06 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tc.png new file mode 100644 index 00000000..f14bbb06 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tl-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tl-hover.png new file mode 100644 index 00000000..06d67c05 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tl-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tl.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tl.png new file mode 100644 index 00000000..06d67c05 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tr-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tr-hover.png new file mode 100644 index 00000000..bcbed837 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tr-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tr.png new file mode 100644 index 00000000..bcbed837 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green-small/tr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green/mc-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green/mc-hover.png new file mode 100644 index 00000000..71c75dc6 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green/mc-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green/mc.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green/mc.png new file mode 100644 index 00000000..41d0588f Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green/mc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green/sprite-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green/sprite-hover.png new file mode 100644 index 00000000..782c8e04 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green/sprite-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/green/sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/button/green/sprite.png new file mode 100644 index 00000000..a10f64dc Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/green/sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/letterSprite-ltr.gif b/notification/gpack/notification_v1_zzjhons/img/round/button/letterSprite-ltr.gif new file mode 100644 index 00000000..5aab534e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/letterSprite-ltr.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/letterSprite-ltr.png b/notification/gpack/notification_v1_zzjhons/img/round/button/letterSprite-ltr.png new file mode 100644 index 00000000..91b45b7e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/letterSprite-ltr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/orange/sprite-hover.png b/notification/gpack/notification_v1_zzjhons/img/round/button/orange/sprite-hover.png new file mode 100644 index 00000000..274cd6c2 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/orange/sprite-hover.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/button/orange/sprite.png b/notification/gpack/notification_v1_zzjhons/img/round/button/orange/sprite.png new file mode 100644 index 00000000..75ba8f16 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/button/orange/sprite.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/dialog/bc.png b/notification/gpack/notification_v1_zzjhons/img/round/dialog/bc.png new file mode 100644 index 00000000..2fc3fd8a Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/dialog/bc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/dialog/bl.png b/notification/gpack/notification_v1_zzjhons/img/round/dialog/bl.png new file mode 100644 index 00000000..b11e3a5c Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/dialog/bl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/dialog/br.png b/notification/gpack/notification_v1_zzjhons/img/round/dialog/br.png new file mode 100644 index 00000000..2d2e7828 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/dialog/br.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/dialog/mc.png b/notification/gpack/notification_v1_zzjhons/img/round/dialog/mc.png new file mode 100644 index 00000000..32a8305e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/dialog/mc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/dialog/ml.png b/notification/gpack/notification_v1_zzjhons/img/round/dialog/ml.png new file mode 100644 index 00000000..32a8305e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/dialog/ml.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/dialog/mr.png b/notification/gpack/notification_v1_zzjhons/img/round/dialog/mr.png new file mode 100644 index 00000000..32a8305e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/dialog/mr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/dialog/tc.png b/notification/gpack/notification_v1_zzjhons/img/round/dialog/tc.png new file mode 100644 index 00000000..2fc3fd8a Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/dialog/tc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/dialog/tl.png b/notification/gpack/notification_v1_zzjhons/img/round/dialog/tl.png new file mode 100644 index 00000000..bec3348e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/dialog/tl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/dialog/tr.png b/notification/gpack/notification_v1_zzjhons/img/round/dialog/tr.png new file mode 100644 index 00000000..6efcbc11 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/dialog/tr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/tips/bc.png b/notification/gpack/notification_v1_zzjhons/img/round/tips/bc.png new file mode 100644 index 00000000..2fc3fd8a Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/tips/bc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/tips/bl.png b/notification/gpack/notification_v1_zzjhons/img/round/tips/bl.png new file mode 100644 index 00000000..b11e3a5c Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/tips/bl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/tips/br.png b/notification/gpack/notification_v1_zzjhons/img/round/tips/br.png new file mode 100644 index 00000000..2d2e7828 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/tips/br.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/tips/mc.png b/notification/gpack/notification_v1_zzjhons/img/round/tips/mc.png new file mode 100644 index 00000000..32a8305e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/tips/mc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/tips/ml.png b/notification/gpack/notification_v1_zzjhons/img/round/tips/ml.png new file mode 100644 index 00000000..32a8305e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/tips/ml.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/tips/mr.png b/notification/gpack/notification_v1_zzjhons/img/round/tips/mr.png new file mode 100644 index 00000000..32a8305e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/tips/mr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/tips/tc.png b/notification/gpack/notification_v1_zzjhons/img/round/tips/tc.png new file mode 100644 index 00000000..2fc3fd8a Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/tips/tc.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/tips/tl.png b/notification/gpack/notification_v1_zzjhons/img/round/tips/tl.png new file mode 100644 index 00000000..bec3348e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/tips/tl.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/round/tips/tr.png b/notification/gpack/notification_v1_zzjhons/img/round/tips/tr.png new file mode 100644 index 00000000..6efcbc11 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/round/tips/tr.png differ diff --git a/notification/gpack/notification_v1_zzjhons/img/screens/featureHeroHead.jpg b/notification/gpack/notification_v1_zzjhons/img/screens/featureHeroHead.jpg new file mode 100644 index 00000000..09562317 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/screens/featureHeroHead.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/img/screens/featureLookHead.jpg b/notification/gpack/notification_v1_zzjhons/img/screens/featureLookHead.jpg new file mode 100644 index 00000000..0253f2d7 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/screens/featureLookHead.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/img/screens/featureMapHead.jpg b/notification/gpack/notification_v1_zzjhons/img/screens/featureMapHead.jpg new file mode 100644 index 00000000..865c84c6 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/screens/featureMapHead.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/img/screens/featureNatarsHead.jpg b/notification/gpack/notification_v1_zzjhons/img/screens/featureNatarsHead.jpg new file mode 100644 index 00000000..f29deb1b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/screens/featureNatarsHead.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/img/screens/featurePlayersHead.jpg b/notification/gpack/notification_v1_zzjhons/img/screens/featurePlayersHead.jpg new file mode 100644 index 00000000..06bf9804 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/img/screens/featurePlayersHead.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/b/ok.gif b/notification/gpack/notification_v1_zzjhons/lang/en/b/ok.gif new file mode 100644 index 00000000..f207a4e0 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/b/ok.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/compact.css b/notification/gpack/notification_v1_zzjhons/lang/en/compact.css new file mode 100644 index 00000000..85daf6da --- /dev/null +++ b/notification/gpack/notification_v1_zzjhons/lang/en/compact.css @@ -0,0 +1,292 @@ +@CHARSET "UTF-8";body{text-align:left;direction:ltr;margin:0;background-color:#A1BB79;color:#252525;font-size:13px;font-family:Arial,Helvetica,Verdana,sans-serif;font-weight:normal;line-height:16px;min-width:990px;height:100%;} +body #backgroundLeft{background:url("../../img/layout/backgroundLeft-ltr.jpg") repeat-x scroll left top transparent;left:0;min-height:960px;position:absolute;width:50%;z-index:1;} +body #backgroundRight{background:url("../../img/layout/backgroundLeft-ltr.jpg") repeat-x scroll left top transparent;min-height:960px;position:absolute;right:0;width:50%;z-index:1;} +body #background{background:url("../../img/layout/background-ltr.jpg") no-repeat scroll center top transparent;min-height:960px;position:relative;z-index:2;} +body.landingPage #background{background:url("../../img/layout/background-landing-ltr.jpg") no-repeat scroll center top transparent;min-height:960px;position:relative;z-index:2;} +body #content-container{clear:both;margin:0 auto;width:797px;height:869px;position:relative;} +body #footer-container{clear:both;margin:0 auto;width:797px;}body #footer{color:#FFF;float:left;top:780px;font-size:11px;margin:0 auto;padding-top:10px;text-align:center;width:797px;position:absolute;} +body #footer a{color:#FFF;font-weight:400;text-decoration:none;}img{border:0;}h1,h2,h4,span,form,img,li{margin:0;padding:0;} +h1{font-size:18px;margin-bottom:8px;}h2{font-size:15px;color:#252525;}h4{font-size:14px;color:#252525;margin-bottom:12px;} +h4.spacer,div.spacer,table.spacer{margin-top:20px;}p{margin:14px 0;padding:0;}*{background-repeat:no-repeat;background-position:top left;} +a,.a{text-decoration:none;font-weight:bold;color:#99C01A;cursor:pointer;}a:visited{color:#99C01A;} +a:active{color:#FF8000;}a:hover,.a:hover{color:#00BC00;}.a.disabled{color:#777;cursor:default;} +.a.arrow.disabled{background-position:left -14px;}.openedClosedSwitch{display:inline-block;line-height:18px;padding-left:22px;font-weight:bold;color:#99C01A;cursor:pointer;} +label{white-space:nowrap;}#msfilter{width:1px;height:1px;position:absolute;z-index:99;} +input.text,select{border:1px solid #CCC;padding:1px 2px;margin:0;font-size:11px;font-family:Arial,Helvetica,Verdana,sans-serif;} +textarea{border:1px solid #CCC;padding:0;margin:0;line-height:16px;font-size:13px;font-family:Arial,Helvetica,Verdana,sans-serif;} +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:#C9C9C9;margin:0;line-height:16px;width:100%;empty-cells:show;} +table td,table th{vertical-align:middle;text-align:left;padding:0;font-weight:normal;font-size:13px;background-color:#FFF;} +table thead td,table thead th{color:#252525;padding:6px 3px 3px;text-align:center;} +table tbody th,table tbody td{padding:6px 9px 3px;}table tbody td.noData{text-align:center;} +table tr.hl th,table tr.hl td{background-color:#e7f0ca;}table tbody tr.hover:hover th,table tbody tr.hover:hover td{background-color:#fce6c4;} +table td.empty{height:1px;padding:0;}table.transparent,table.transparent td,table.transparent th{background-color:transparent;} +table.compact,table.compact thead th,table.compact thead td,table.compact tbody th,table.compact tbody td{padding:0;} +.none,.inactive,.disabled,.noData{color:#777;}.error,.alert{color:#DE0000;}.warning{color:#F88C1F;} +.info{color:#228B22;}.hide{display:none;}div.clear,span.clear{clear:both;width:0;height:0;line-height:0;font-size:0;} +.tip{font-size:11px;position:relative;}.tip .title{color:#FFF;font-weight:bold;font-size:12px;} +.tip .text{color:#D0D0D0;}.tip .tip-container{position:relative;padding:4px;}.tip .tip-contents{position:relative;width:100%;padding:0 5px;} +.tip .tl,.tip .tc,.tip .tr,.tip .ml,.tip .mc,.tip .mr,.tip .bl,.tip .bc,.tip .br{position:absolute;} +.tip .tl,.tip .tr,.tip .bl,.tip .br{background-repeat:no-repeat;}.tip .tc,.tip .bc{background-repeat:repeat-x;} +.tip .ml,.tip .mr{background-repeat:repeat-y;}.tip .mc{background-repeat:repeat;} +.tip .tl{left:0;top:0;width:4px;height:4px;}.tip .tc{left:4px;top:0;right:4px;height:4px;} +.tip .tr{right:0;top:0;width:4px;height:4px;}.tip .ml{left:0;top:4px;width:4px;bottom:4px;} +.tip .mc{left:4px;top:4px;right:4px;bottom:4px;}.tip .mr{right:0;top:4px;width:4px;bottom:4px;} +.tip .bl{left:0;bottom:0;width:4px;height:4px;}.tip .bc{left:4px;bottom:0;right:4px;height:4px;} +.tip .br{right:0;bottom:0;width:4px;height:4px;}.tip .tl{background-image:url(../../img/round/tips/tl.png);} +.tip .tc{background-image:url(../../img/round/tips/tc.png);}.tip .tr{background-image:url(../../img/round/tips/tr.png);} +.tip .ml{background-image:url(../../img/round/tips/ml.png);}.tip .mc{background-image:url(../../img/round/tips/mc.png);} +.tip .mr{background-image:url(../../img/round/tips/mr.png);}.tip .bl{background-image:url(../../img/round/tips/bl.png);} +.tip .bc{background-image:url(../../img/round/tips/bc.png);}.tip .br{background-image:url(../../img/round/tips/br.png);} +.ie6 .tip .tl{background-image:none;}.ie6 .tip .tc{background-image:none;}.ie6 .tip .tr{background-image:none;} +.ie6 .tip .ml{background-image:none;}.ie6 .tip .mc{background-image:none;}.ie6 .tip .mr{background-image:none;} +.ie6 .tip .bl{background-image:none;}.ie6 .tip .bc{background-image:none;}.ie6 .tip .br{background-image:none;} +.ie6 .tip .tip-contents{background:transparent url(../../img/round/tips/mc.png) repeat;} +.dialog{font-size:11px;color:#FFF;}.dialog .dialog-contents .title{font-weight:bold;font-size:12px;margin-bottom:10px;text-align:center;} +.dialog .dialog-contents .buttons{text-align:center;margin-top:10px;}.dialog .dialog-contents .cancel{position:absolute;right:-8px;top:-8px;} +.dialog .dialog-container{position:relative;padding:15px 17px 15px 17px;}.dialog .dialog-contents{position:relative;width:100%;} +.dialog .dialog-tl,.dialog .dialog-tc,.dialog .dialog-tr,.dialog .dialog-ml,.dialog .dialog-mc,.dialog .dialog-mr,.dialog .dialog-bl,.dialog .dialog-bc,.dialog .dialog-br,.dialog .dialog-background-tl,.dialog .dialog-background-tc,.dialog .dialog-background-tr,.dialog .dialog-background-ml,.dialog .dialog-background-mc,.dialog .dialog-background-mr,.dialog .dialog-background-bl,.dialog .dialog-background-bc,.dialog .dialog-background-br{position:absolute;} +.dialog .dialog-tl,.dialog .dialog-tr,.dialog .dialog-bl,.dialog .dialog-br,.dialog .dialog-background-tl,.dialog .dialog-background-tr,.dialog .dialog-background-bl,.dialog .dialog-background-br{background-repeat:no-repeat;} +.dialog .dialog-tc,.dialog .dialog-bc,.dialog .dialog-background-tc,.dialog .dialog-background-bc{background-repeat:repeat-x;} +.dialog .dialog-ml,.dialog .dialog-mr,.dialog .dialog-background-ml,.dialog .dialog-background-mr{background-repeat:repeat-y;} +.dialog .dialog-mc,.dialog .dialog-background-mc{background-repeat:repeat;}.dialog .dialog-tl{left:0;top:0;width:4px;height:4px;} +.dialog .dialog-tc{left:4px;top:0;right:4px;height:4px;}.dialog .dialog-tr{right:0;top:0;width:4px;height:4px;} +.dialog .dialog-ml{left:0;top:4px;width:4px;bottom:4px;}.dialog .dialog-mc{left:4px;top:4px;right:4px;bottom:4px;} +.dialog .dialog-mr{right:0;top:4px;width:4px;bottom:4px;}.dialog .dialog-bl{left:0;bottom:0;width:4px;height:4px;} +.dialog .dialog-bc{left:4px;bottom:0;right:4px;height:4px;}.dialog .dialog-br{right:0;bottom:0;width:4px;height:4px;} +.dialog .dialog-background-tl{left:-3px;top:-3px;width:8px;height:8px;}.dialog .dialog-background-tc{left:5px;top:-3px;right:5px;height:8px;} +.dialog .dialog-background-tr{right:-3px;top:-3px;width:8px;height:8px;}.dialog .dialog-background-ml{left:-3px;top:5px;width:8px;bottom:5px;} +.dialog .dialog-background-mc{left:5px;top:5px;right:5px;bottom:5px;}.dialog .dialog-background-mr{right:-3px;top:5px;width:8px;bottom:5px;} +.dialog .dialog-background-bl{left:-3px;bottom:-3px;width:8px;height:8px;}.dialog .dialog-background-bc{left:5px;bottom:-3px;right:5px;height:8px;} +.dialog .dialog-background-br{right:-3px;bottom:-3px;width:8px;height:8px;}.dialog .dialog-tl{background-image:url(../../img/round/dialog/tl.png);} +.dialog .dialog-tc{background-image:url(../../img/round/dialog/tc.png);}.dialog .dialog-tr{background-image:url(../../img/round/dialog/tr.png);} +.dialog .dialog-ml{background-image:url(../../img/round/dialog/ml.png);}.dialog .dialog-mc{background-image:url(../../img/round/dialog/mc.png);} +.dialog .dialog-mr{background-image:url(../../img/round/dialog/mr.png);}.dialog .dialog-bl{background-image:url(../../img/round/dialog/bl.png);} +.dialog .dialog-bc{background-image:url(../../img/round/dialog/bc.png);}.dialog .dialog-br{background-image:url(../../img/round/dialog/br.png);} +.dialog .dialog-background-tl{background-image:url(../../img/round/bg/tl.png);}.dialog .dialog-background-tc{background-image:url(../../img/round/bg/tc.png);} +.dialog .dialog-background-tr{background-image:url(../../img/round/bg/tr.png);}.dialog .dialog-background-ml{background-image:url(../../img/round/bg/ml.png);} +.dialog .dialog-background-mc{background-image:url(../../img/round/bg/mc.png);}.dialog .dialog-background-mr{background-image:url(../../img/round/bg/mr.png);} +.dialog .dialog-background-bl{background-image:url(../../img/round/bg/bl.png);}.dialog .dialog-background-bc{background-image:url(../../img/round/bg/bc.png);} +.dialog .dialog-background-br{background-image:url(../../img/round/bg/br.png);}.ie6 .dialog .dialog-container{background:transparent url(../../img/round/dialog/mc.png) repeat;} +.ie6 .dialog .dialog-tl{background-image:none;}.ie6 .dialog .dialog-tc{background-image:none;} +.ie6 .dialog .dialog-tr{background-image:none;}.ie6 .dialog .dialog-ml{background-image:none;} +.ie6 .dialog .dialog-mc{background-image:none;}.ie6 .dialog .dialog-mr{background-image:none;} +.ie6 .dialog .dialog-bl{background-image:none;}.ie6 .dialog .dialog-bc{background-image:none;} +.ie6 .dialog .dialog-br{background-image:none;}.ie6 .dialog .dialog-background-tl{background-image:none;} +.ie6 .dialog .dialog-background-tc{background-image:none;}.ie6 .dialog .dialog-background-tr{background-image:none;} +.ie6 .dialog .dialog-background-ml{background-image:none;}.ie6 .dialog .dialog-background-mc{background-image:none;} +.ie6 .dialog .dialog-background-mr{background-image:none;}.ie6 .dialog .dialog-background-bl{background-image:none;} +.ie6 .dialog .dialog-background-bc{background-image:none;}.ie6 .dialog .dialog-background-br{background-image:none;} +.iconButton{background-color:transparent;background-position:0 top;background-repeat:no-repeat;background-attachment:scroll;cursor:pointer;float:left;position:relative;height:16px;width:16px;} +.iconButton.checked{background-position:-16px top;}.iconButton:hover{background-position:-32px top;} +.iconButton.disabled{background-position:-48px top;}.iconButton.disabled:hover{background-position:-48px top;} +.iconButton.small{height:7px;width:7px;}.iconButton.small.checked{background-position:-7px top;} +.iconButton.small:hover{background-position:-14px top;}.iconButton.small.disabled{background-position:-21px top;} +.iconButton.small.disabled:hover{background-position:-28px top;}button,button:hover,button:focus{background-color:transparent;border:0 solid transparent;padding:0;margin:0;cursor:pointer;font-size:11px;line-height:15px;white-space:nowrap;font-family:Arial,Helvetica,Verdana,sans-serif;} +button.disabled{cursor:default;}.ie6 button,.ie6 button:hover,.ie6 button:focus{border:1px ridge;} +.ie6 button.disabled{cursor:default;}button .btl,button .btc,button .btr,button .bml,button .bmc,button .bmr,button .bbl,button .bbc,button .bbr{background-color:transparent;background-position:left top;} +button .btc,button .bmc,button .bbc{margin-left:3px;margin-right:3px;width:auto;} +button .btl{background-repeat:no-repeat;}button .btc{background-repeat:repeat-x;} +button .btr{background-position:right top;background-repeat:no-repeat;}button .bml{background-repeat:repeat-y;} +button .bmc{background-repeat:repeat;}button .bmr{background-position:right top;background-repeat:repeat-y;} +button .bbl,button .bbc{background-position:left bottom;}button .bbl{background-repeat:no-repeat;} +button .bbc{background-repeat:repeat-x;}button .bbr{background-position:right bottom;background-repeat:no-repeat;} +button .button-container{position:relative;padding:5px 20px;}.gecko button .button-container,.safari button .button-container{margin:-1px -3px;} +.ie7 button .button-container{padding:5px 7px;}.ie6 button .button-container{color:#000;} +button.small .button-container{padding:3px 15px;margin-top:-2px;}.ie button.small .button-container{margin-top:-1px;} +button .button-contents{position:relative;color:#FFF;font-weight:bold;font-size:11px;line-height:15px;} +.ie6 button .button-contents{position:static;}button.small .button-contents{color:#FFF;font-weight:normal;font-size:9px;line-height:12px;margin-top:0;line-height:10px;} +.webkit.chrome button.small .button-contents,.ie button.small .button-contents{margin-top:0;height:10px;overflow:hidden;} +button .button-position,button .btl,button .btc,button .btr,button .bml,button .bmc,button .bmr,button .bbl,button .bbc,button .bbr{position:absolute;left:0;top:0;right:0;bottom:0;} +.ie6 button .button-position{display:none;}button .bml{top:3px;bottom:3px;top:10px;bottom:10px;} +button .btc,button .bmc,button .bbc{margin-left:10px;margin-right:10px;width:auto;} +button.small .bml{top:3px;bottom:3px;}button.small .btc,button.small .bmc,button.small .bbc{margin-left:5px;margin-right:5px;width:auto;} +button .btl,button .bbl,button .btr,button .bbr,button .btc{background-image:url(../../img/round/button/green/sprite.png);} +button .btc{background-position:-12px -25px;}button:hover .btl,button:hover .bbl,button:hover .btr,button:hover .bbr,button:hover .btc{background-image:url(../../img/round/button/green/sprite-hover.png);} +button:hover .btc{background-position:-12px -25px;}.ie6 button{background-image:url(../../img/round/button/green/mc.html);background-repeat:repeat;} +.ie6 button:hover{background-image:url(../../img/round/button/green/mc-hover.html);background-repeat:repeat;} +button.gray .btc{background-position:0 0;}button.gray .btl{background-image:url(../../img/round/button/gray/tl.png);} +button.gray:hover .btl{background-image:url(../../img/round/button/gray/tl-hover.png);} +button.gray .btc{background-image:url(../../img/round/button/gray/tc.png);}button.gray:hover .btc{background-image:url(../../img/round/button/gray/tc-hover.png);} +button.gray .btr{background-image:url(../../img/round/button/gray/tr.png);}button.gray:hover .btr{background-image:url(../../img/round/button/gray/tr-hover.png);} +button.gray .bml{background-image:url(../../img/round/button/gray/ml.png);}button.gray:hover .bml{background-image:url(../../img/round/button/gray/ml-hover.png);} +button.gray .bmc{background-image:url(../../img/round/button/gray/mc.png);}button.gray:hover .bmc{background-image:url(../../img/round/button/gray/mc-hover.png);} +button.gray .bmr{background-image:url(../../img/round/button/gray/mr.png);}button.gray:hover .bmr{background-image:url(../../img/round/button/gray/mr-hover.png);} +button.gray .bbl{background-image:url(../../img/round/button/gray/bl.png);}button.gray:hover .bbl{background-image:url(../../img/round/button/gray/bl-hover.png);} +button.gray .bbc{background-image:url(../../img/round/button/gray/bc.png);}button.gray:hover .bbc{background-image:url(../../img/round/button/gray/bc-hover.png);} +button.gray .bbr{background-image:url(../../img/round/button/gray/br.png);}button.gray:hover .bbr{background-image:url(../../img/round/button/gray/br-hover.png);} +.ie6 button.gray{background-image:url(../../img/round/button/gray/mc.png);background-repeat:repeat;} +.ie6 button.gray:hover{background-image:url(../../img/round/button/gray/mc-hover.png);background-repeat:repeat;} +button.disabled .btc{background-position:0 0;}button.disabled .btl{background-image:url(../../img/round/button/disabled/tl.png);} +button.disabled .btc{background-image:url(../../img/round/button/disabled/tc.png);} +button.disabled .btr{background-image:url(../../img/round/button/disabled/tr.png);} +button.disabled .bml{background-image:url(../../img/round/button/disabled/ml.png);} +button.disabled .bmc{background-image:url(../../img/round/button/disabled/mc.png);} +button.disabled .bmr{background-image:url(../../img/round/button/disabled/mr.png);} +button.disabled .bbl{background-image:url(../../img/round/button/disabled/bl.png);} +button.disabled .bbc{background-image:url(../../img/round/button/disabled/bc.png);} +button.disabled .bbr{background-image:url(../../img/round/button/disabled/br.png);} +.ie6 button.disabled{background-image:url(../../img/round/button/disabled/mc.png);background-repeat:repeat;} +button.small .btc{background-position:0 0;}button.small .btl{background-image:url(../../img/round/button/green-small/tl.png);} +button.small:hover .btl{background-image:url(../../img/round/button/green-small/tl-hover.png);} +button.small .btc{background-image:url(../../img/round/button/green-small/tc.png);} +button.small:hover .btc{background-image:url(../../img/round/button/green-small/tc-hover.png);} +button.small .btr{background-image:url(../../img/round/button/green-small/tr.png);} +button.small:hover .btr{background-image:url(../../img/round/button/green-small/tr-hover.png);} +button.small .bml{background-image:url(../../img/round/button/green-small/ml.png);} +button.small:hover .bml{background-image:url(../../img/round/button/green-small/ml-hover.png);} +button.small .bmc{background-image:url(../../img/round/button/green-small/mc.png);} +button.small:hover .bmc{background-image:url(../../img/round/button/green-small/mc-hover.png);} +button.small .bmr{background-image:url(../../img/round/button/green-small/mr.png);} +button.small:hover .bmr{background-image:url(../../img/round/button/green-small/mr-hover.png);} +button.small .bbl{background-image:url(../../img/round/button/green-small/bl.png);} +button.small:hover .bbl{background-image:url(../../img/round/button/green-small/bl-hover.png);} +button.small .bbc{background-image:url(../../img/round/button/green-small/bc.png);} +button.small:hover .bbc{background-image:url(../../img/round/button/green-small/bc-hover.png);} +button.small .bbr{background-image:url(../../img/round/button/green-small/br.png);} +button.small:hover .bbr{background-image:url(../../img/round/button/green-small/br-hover.png);} +.ie6 button.small{background-image:url(../../img/round/button/green-small/mc.png);background-repeat:repeat;} +.ie6 button.small:hover{background-image:url(../../img/round/button/green-small/mc-hover.png);background-repeat:repeat;} +button.small.gray .btl{background-image:url(../../img/round/button/gray-small/tl.png);} +button.small.gray:hover .btl{background-image:url(../../img/round/button/gray-small/tl-hover.png);} +button.small.gray .btc{background-image:url(../../img/round/button/gray-small/tc.png);} +button.small.gray:hover .btc{background-image:url(../../img/round/button/gray-small/tc-hover.png);} +button.small.gray .btr{background-image:url(../../img/round/button/gray-small/tr.png);} +button.small.gray:hover .btr{background-image:url(../../img/round/button/gray-small/tr-hover.png);} +button.small.gray .bml{background-image:url(../../img/round/button/gray-small/ml.png);} +button.small.gray:hover .bml{background-image:url(../../img/round/button/gray-small/ml-hover.png);} +button.small.gray .bmc{background-image:url(../../img/round/button/gray-small/mc.png);} +button.small.gray:hover .bmc{background-image:url(../../img/round/button/gray-small/mc-hover.png);} +button.small.gray .bmr{background-image:url(../../img/round/button/gray-small/mr.png);} +button.small.gray:hover .bmr{background-image:url(../../img/round/button/gray-small/mr-hover.png);} +button.small.gray .bbl{background-image:url(../../img/round/button/gray-small/bl.png);} +button.small.gray:hover .bbl{background-image:url(../../img/round/button/gray-small/bl-hover.png);} +button.small.gray .bbc{background-image:url(../../img/round/button/gray-small/bc.png);} +button.small.gray:hover .bbc{background-image:url(../../img/round/button/gray-small/bc-hover.png);} +button.small.gray .bbr{background-image:url(../../img/round/button/gray-small/br.png);} +button.small.gray:hover .bbr{background-image:url(../../img/round/button/gray-small/br-hover.png);} +.ie6 button.small.gray{background-image:url(../../img/round/button/gray-small/mc.png);background-repeat:repeat;} +.ie6 button.small.gray:hover{background-image:url(../../img/round/button/gray-small/mc-hover.png);background-repeat:repeat;} +button.icon{width:24px;height:24px;background-image:url(../../img/round/button/buttonSmall-ltr.png);} +button.icon:hover{background-position:left -34px;}button.icon.disabled:hover{background-position:left top;} +button.icon img{position:relative;}.gecko button.icon img{top:-1px;}button.iconFilter{width:20px;height:20px;margin:2px;background-color:#FFF;} +button.iconFilterActive{width:24px;height:24px;margin:0;background-image:url(../../img/round/button/buttonFilter-ltr.png);} +button.iconFilter img{position:relative;}.gecko button.iconFilter img{top:-1px;left:-1px;} +.safari button.iconFilter img{left:-1px;}.gecko button.iconFilterActive img,.safari button.iconFilterActive img{left:0;} +.boxes{position:relative;}.boxes .boxes-container{position:relative;padding:11px;} +.boxes .boxes-contents{position:relative;}.boxes .boxes-tl,.boxes .boxes-tc,.boxes .boxes-tr,.boxes .boxes-ml,.boxes .boxes-mc,.boxes .boxes-mr,.boxes .boxes-bl,.boxes .boxes-bc,.boxes .boxes-br{position:absolute;} +.boxes .boxes-tl{left:0;top:0;width:11px;height:11px;}.boxes .boxes-tc{left:11px;top:0;right:11px;height:11px;} +.boxes .boxes-tr{right:0;top:0;width:11px;height:11px;}.boxes .boxes-ml{left:0;top:11px;width:11px;bottom:11px;} +.boxes .boxes-mc{left:11px;top:11px;right:11px;bottom:11px;}.boxes .boxes-mr{right:0;top:11px;width:11px;bottom:11px;} +.boxes .boxes-bl{left:0;bottom:0;width:11px;height:11px;}.boxes .boxes-bc{left:11px;bottom:0;right:11px;height:11px;} +.boxes .boxes-br{right:0;bottom:0;width:11px;height:11px;}.boxes .boxes-tl,.boxes .boxes-tc,.boxes .boxes-tr,.boxes .boxes-ml,.boxes .boxes-mc,.boxes .boxes-mr,.boxes .boxes-bl,.boxes .boxes-bc,.boxes .boxes-br{background-color:transparent;background-position:left top;} +.boxes .boxes-tl{background-repeat:no-repeat;}.boxes .boxes-tc{background-repeat:repeat-x;} +.boxes .boxes-tr{background-position:right top;background-repeat:no-repeat;}.boxes .boxes-ml{background-repeat:repeat-y;} +.boxes .boxes-mc{background-repeat:repeat;}.boxes .boxes-mr{background-position:right top;background-repeat:repeat-y;} +.boxes .boxes-bl,.boxes .boxes-bc{background-position:left bottom;}.boxes .boxes-bl{background-repeat:no-repeat;} +.boxes .boxes-bc{background-repeat:repeat-x;}.boxes .boxes-br{background-position:right bottom;background-repeat:no-repeat;} +.boxes .boxes-tl,.boxes .boxes-tc,.boxes .boxes-tr,.boxes .boxes-ml,.boxes .boxes-mc,.boxes .boxes-mr,.boxes .boxes-bl,.boxes .boxes-bc,.boxes .boxes-br{background-image:url(../../img/round/boxes/sprite.png);} +.boxes .boxes-tl{background-position:1px 2px;}.boxes .boxes-tc{background-position:-40px 2px;} +.boxes .boxes-tr{background-position:-21px 2px;}.boxes .boxes-ml{background-position:-199px -40px;} +.boxes .boxes-mc{background-position:0 -40px;}.boxes .boxes-mr{background-position:-220px -40px;} +.boxes .boxes-bl{background-position:1px -20px;}.boxes .boxes-bc{background-position:-40px -20px;} +.boxes .boxes-br{background-position:-21px -20px;}.ie6 .boxes .boxes-tl{background-image:none;} +.ie6 .boxes .boxes-tc{background-image:none;}.ie6 .boxes .boxes-tr{background-image:none;} +.ie6 .boxes .boxes-ml{background-image:none;}.ie6 .boxes .boxes-mc{background-image:none;} +.ie6 .boxes .boxes-mr{background-image:none;}.ie6 .boxes .boxes-bl{background-image:none;} +.ie6 .boxes .boxes-bc{background-image:none;}.ie6 .boxes .boxes-br{background-image:none;} +.ie6 .boxes .boxes-contents{background-image:url(../../img/round/boxes/mc.html);background-repeat:repeat;} +.boxesColor .boxes-container{padding:4px 0;}.boxesColor .boxes-tl{left:0;top:0;width:4px;height:4px;} +.boxesColor .boxes-tc{left:4px;top:0;right:4px;height:4px;}.boxesColor .boxes-tr{right:0;top:0;width:4px;height:4px;} +.boxesColor .boxes-ml{left:0;top:4px;width:4px;bottom:4px;}.boxesColor .boxes-mc{left:4px;top:4px;right:4px;bottom:4px;} +.boxesColor .boxes-mr{right:0;top:4px;width:4px;bottom:4px;}.boxesColor .boxes-bl{left:0;bottom:0;width:4px;height:4px;} +.boxesColor .boxes-bc{left:4px;bottom:0;right:4px;height:4px;}.boxesColor .boxes-br{right:0;bottom:0;width:4px;height:4px;} +.boxesColor.gray .boxes-tl,.boxesColor.gray .boxes-tc,.boxesColor.gray .boxes-tr,.boxesColor.gray .boxes-ml,.boxesColor.gray .boxes-mc,.boxesColor.gray .boxes-mr,.boxesColor.gray .boxes-bl,.boxesColor.gray .boxes-bc,.boxesColor.gray .boxes-br{background-image:url(../../img/round/boxes/gray/sprite.png);} +.boxesColor.gray .boxes-ml,.boxesColor.gray .boxes-mr,.boxesColor.gray .boxes-tc,.boxesColor.gray .boxes-bc,.boxesColor.gray .boxes-bc,.boxesColor.gray .boxes-mc{background-image:none;background-color:#e4e4e4;} +.boxesColor.gray .boxes-tl{background-position:0 0;}.boxesColor.gray .boxes-tr{background-position:-25px 0;} +.boxesColor.gray .boxes-bl{background-position:0 -26px;}.boxesColor.gray .boxes-br{background-position:-26px -26px;} +.boxesColor.orange .boxes-container{color:#FFF;}.boxesColor.orange .boxes-tl,.boxesColor.orange .boxes-tc,.boxesColor.orange .boxes-tr,.boxesColor.orange .boxes-ml,.boxesColor.orange .boxes-mc,.boxesColor.orange .boxes-mr,.boxesColor.orange .boxes-bl,.boxesColor.orange .boxes-bc,.boxesColor.orange .boxes-br{background-image:url(../../img/round/boxes/orange/sprite.png);} +.boxesColor.orange .boxes-ml,.boxesColor.orange .boxes-mr,.boxesColor.orange .boxes-tc,.boxesColor.orange .boxes-bc,.boxesColor.orange .boxes-bc,.boxesColor.orange .boxes-mc{background-image:none;background-color:#f88c1f;} +.boxesColor.orange .boxes-tl{background-position:0 0;}.boxesColor.orange .boxes-tr{background-position:-25px 0;} +.boxesColor.orange .boxes-bl{background-position:0 -26px;}.boxesColor.orange .boxes-br{background-position:-26px -26px;} +.boxesColor.green .boxes-container{color:#FFF;}.boxesColor.green .boxes-tl,.boxesColor.green .boxes-tc,.boxesColor.green .boxes-tr,.boxesColor.green .boxes-ml,.boxesColor.green .boxes-mc,.boxesColor.green .boxes-mr,.boxesColor.green .boxes-bl,.boxesColor.green .boxes-bc,.boxesColor.green .boxes-br{background-image:url(../../img/round/boxes/green/sprite.png);} +.boxesColor.green .boxes-ml,.boxesColor.green .boxes-mr,.boxesColor.green .boxes-tc,.boxesColor.green .boxes-bc,.boxesColor.green .boxes-bc,.boxesColor.green .boxes-mc{background-image:none;background-color:#498843;} +.boxesColor.green .boxes-tl{background-position:0 0;}.boxesColor.green .boxes-tr{background-position:-25px 0;} +.boxesColor.green .boxes-bl{background-position:0 -26px;}.boxesColor.green .boxes-br{background-position:-26px -26px;} +.boxesColor.red .boxes-container{color:#FFF;}.boxesColor.red .boxes-tl,.boxesColor.red .boxes-tc,.boxesColor.red .boxes-tr,.boxesColor.red .boxes-ml,.boxesColor.red .boxes-mc,.boxesColor.red .boxes-mr,.boxesColor.red .boxes-bl,.boxesColor.red .boxes-bc,.boxesColor.red .boxes-br{background-image:url(../../img/round/boxes/red/sprite.png);} +.boxesColor.red .boxes-ml,.boxesColor.red .boxes-mr,.boxesColor.red .boxes-tc,.boxesColor.red .boxes-bc,.boxesColor.red .boxes-bc,.boxesColor.red .boxes-mc{background-image:none;background-color:#de0000;} +.boxesColor.red .boxes-tl{background-position:0 0;}.boxesColor.red .boxes-tr{background-position:-25px 0;} +.boxesColor.red .boxes-bl{background-position:0 -26px;}.boxesColor.red .boxes-br{background-position:-26px -26px;} +.boxesColor.lightGreen .boxes-container{color:#FFF;}.boxesColor.lightGreen .boxes-tl,.boxesColor.lightGreen .boxes-tc,.boxesColor.lightGreen .boxes-tr,.boxesColor.lightGreen .boxes-ml,.boxesColor.lightGreen .boxes-mc,.boxesColor.lightGreen .boxes-mr,.boxesColor.lightGreen .boxes-bl,.boxesColor.lightGreen .boxes-bc,.boxesColor.lightGreen .boxes-br{background-image:url(../../img/round/boxes/lightGreen/sprite.png);} +.boxesColor.lightGreen .boxes-ml,.boxesColor.lightGreen .boxes-mr,.boxesColor.lightGreen .boxes-tc,.boxesColor.lightGreen .boxes-bc,.boxesColor.lightGreen .boxes-bc,.boxesColor.lightGreen .boxes-mc{background-image:none;background-color:#99c01a;} +.boxesColor.lightGreen .boxes-tl{background-position:0 0;}.boxesColor.lightGreen .boxes-tr{background-position:-25px 0;} +.boxesColor.lightGreen .boxes-bl{background-position:0 -26px;}.boxesColor.lightGreen .boxes-br{background-position:-26px -26px;} +.ie6 .boxesColor .boxes-tl{background-image:none;}.ie6 .boxesColor .boxes-tc{background-image:none;} +.ie6 .boxesColor .boxes-tr{background-image:none;}.ie6 .boxesColor .boxes-ml{background-image:none;} +.ie6 .boxesColor .boxes-mc{background-image:none;}.ie6 .boxesColor .boxes-mr{background-image:none;} +.ie6 .boxesColor .boxes-bl{background-image:none;}.ie6 .boxesColor .boxes-bc{background-image:none;} +.ie6 .boxesColor .boxes-br{background-image:none;}.ie6 .boxesColor .boxes-contents{background-image:none;} +body,a,a:visited{color:#FFF;}a:hover{color:#F5F5F5;}h2{color:#FFF;font-size:14px;white-space:nowrap;overflow:hidden;width:550px;} +h1#first{margin-bottom:18px;white-space:nowrap;}h2#first{float:right;position:absolute;bottom:0;} +label.maillabel,span.registerSuccessfulThanks,span.registerSuccessfulInfo,span.PopupTitle{font-size:16px;font-weight:bold;color:#498843;} +label.maillabel{float:left;position:relative;top:4px;}span.registerSuccessfulInfo{font-weight:normal;font-size:14px;} +label.newslabel{white-space:normal;position:relative;left:6px;bottom:2px;float:left;padding-left:1px;width:510px;} +a.devlabel,a.sendTolabel,a.registerSuccessfulPlay{cursor:pointer;position:relative;} +a.devlabel{padding-left:41px;padding-top:8px;padding-bottom:8px;background-image:url(../../img/round/button/buttonSOrange-Sprite-ltr.png);background-position:left top;white-space:nowrap;overflow:hidden;float:left;} +body.ie6 a.devlabel{background-image:url(../../img/round/button/buttonSOrange-Sprite-ltr.gif);} +a.devlabel:hover{background-position:left -38px;}a.sendTolabel{top:7px;padding-left:28px;margin-left:14px;margin-right:5px;background-image:url(../../img/round/button/letterSprite-ltr.png);background-position:left 3px;float:right;display:inline-block;} +body.ie7 a.sendTolabel{float:none;left:12px;}body.ie6 a.sendTolabel{background-image:url(../../img/round/button/letterSprite-ltr.gif);float:none;left:12px;} +a.sendTolabel:hover{background-position:left -13px;}a.registerSuccessfulPlay{display:inline-block;font-size:16px;padding-left:40px;padding-top:8px;padding-bottom:8px;top:24px;left:1px;background-image:url(../../img/round/button/buttonSOrange-Sprite-ltr.png);background-position:left top;float:left;} +body.ie6 a.registerSuccessfulPlay{background-image:url(../../img/round/button/buttonSOrange-Sprite-ltr.gif);} +a.registerSuccessfulPlay:hover{background-position:left -38px;}#form-container input.text{border:1px solid #498843;font-size:13px;position:relative;left:8px;} +body.ie6 #form-container input.text{bottom:4px;}body.ie7 #form-container input.text{bottom:7px;} +#sendMailMessage{position:relative;left:10px;overflow:auto;width:261px;height:85px;margin-top:5px;margin-bottom:5px;} +#errordiv{font-size:11px;line-height:12px;height:12px;position:relative;bottom:4px;} +#checks{position:relative;bottom:2px;font-size:12px;width:535px;overflow:hidden;} +#checks input.check{float:left;}body #backgroundLeft{height:960px;}body #backgroundRight{height:960px;} +body #header img{background-image:url("../../img/layout/t4Text.png");position:relative;top:9px;width:221px;height:35px;} +body.ie6 #header img{background-image:url("../../img/layout/t4Text.gif");}#logoMed{position:absolute;top:23px;left:1px;width:223px;height:79px;background-image:url(../../img/layout/logoMed.png);} +body.ie6 #logoMed{background-image:url(../../img/layout/logoMed.gif);}body #content-container{font-size:13px;} +body #header{top:130px;font-size:20px;font-weight:bold;margin:0 auto;text-align:center;width:797px;height:55px;position:absolute;} +#text-container{top:218px;left:23px;height:100px;width:635px;position:absolute;overflow:hidden;} +#senden-container{top:316px;left:23px;height:114px;width:700px;position:absolute;} +#form-container{left:18px;top:18px;position:relative;width:600px;height:80px;}#js-container{top:447px;left:22px;height:232px;width:549px;position:absolute;} +#facebook-container{background-color:#fff;top:460px;left:588px;height:260px;width:182px;position:absolute;} +#fb-container{overflow:hidden;height:260px;width:182px;position:relative;}#devBlog-container{top:693px;left:23px;height:40px;width:320px;position:absolute;} +#fbt-container{top:693px;left:345px;height:40px;width:225px;position:absolute;}body.landingPage #fbt-container{left:549px;} +body #footer{top:771px;}button.orange .btl,button.orange .bbl,button.orange .btr,button.orange .bbr,button.orange .btc{background-image:url(../../img/round/button/orange/sprite.png);} +button.orange:hover .btl,button.orange:hover .bbl,button.orange:hover .btr,button.orange:hover .bbr,button.orange:hover .btc{background-image:url(../../img/round/button/orange/sprite-hover.png);} +button.orange .btl{background-position:left top;}button.orange .btc{background-position:-13px -26px;} +button.orange .btr{background-position:right top;}button.orange:hover .btl{background-position:left top;} +button.orange:hover .btc{background-position:-13px -26px;}button.orange:hover .btr{background-position:right top;} +button.orange .bbl{background-position:left bottom;}button.orange .bbc{background-position:0 0;} +button.orange .bbr{background-position:right bottom;}button.orange:hover .bbl{background-position:left bottom;} +button.orange:hover .bbc{background-position:0 0;}button.orange:hover .bbr{background-position:right bottom;} +button#sendRegisterMail{position:relative;bottom:1px;left:13px;}body.ie6 button#sendRegisterMail{background-image:none;background-color:#f8b341;height:25px;} +button#sendRegisterMail .button-contents{line-height:16px;}button.orange .bml{top:13px;bottom:13px;} +button.orange .btc,button.orange .bmc,button.orange .bbc{margin-left:13px;margin-right:13px;width:auto;} +#twitter{margin:8px;float:right;width:16px;height:16px;background-image:url(../../img/round/button/buttonFT-Sprite.png);background-position:left top;} +body.ie6 #twitter{background-image:url(../../img/round/button/buttonFT-Sprite.gif);} +#twitter:hover{background-position:left -21px;}#facebook{margin:8px;margin-right:0;float:right;width:16px;height:16px;background-image:url(../../img/round/button/buttonFT-Sprite.png);background-position:right top;} +body.ie6 #facebook{background-image:url(../../img/round/button/buttonFT-Sprite.gif);} +#facebook:hover{background-position:right -21px;}#bgl{background-image:url(../../img/round/boxes/boxGrey-Sprite.png);width:auto;height:31px;float:right;position:relative;max-width:159px;white-space:nowrap;overflow:hidden;} +body.ie6 #bgl{background-image:url(../../img/round/boxes/boxGrey-Sprite.gif);}#bgr{background-image:url(../../img/round/boxes/boxGrey-Sprite.png);color:black;width:5px;height:31px;float:right;background-position:right 0;margin-right:5px;} +body.ie6 #bgr{background-image:url(../../img/round/boxes/boxGrey-Sprite.gif);}#screensNav-container{position:absolute;height:170px;width:33px;left:287px;top:44px;} +#featureHeroHead,#featureLookHead,#featureMapHead,#featureNatarsHead,#featurePlayersHead{height:179px;width:266px;position:absolute;left:15px;top:40px;} +#featureHeroHead{background-image:url(../../img/screens/featureHeroHead.jpg);}#featureLookHead{background-image:url(../../img/screens/featureLookHead.jpg);} +body.landingPage #featureLookHead{width:264px;}#featureMapHead{background-image:url(../../img/screens/featureMapHead.jpg);} +#featureNatarsHead{background-image:url(../../img/screens/featureNatarsHead.jpg);} +#featurePlayersHead{background-image:url(../../img/screens/featurePlayersHead.jpg);} +#textContainer{position:absolute;width:190px;height:178px;left:343px;top:42px;}body.landingPage #textContainer{left:310px;width:400px;} +#featureTitel{position:relative;width:190px;overflow:hidden;font-size:15px;font-weight:bold;display:block;} +#featureText{position:relative;height:150px;width:190px;top:10px;overflow:hidden;} +.but_div,.but_div_active{height:34px;width:33px;position:relative;}.but_div_active{background-image:url(../../img/round/button/buttonSOrange-Sprite-ltr.png);background-position:0 bottom;} +body.ie6 .but_div_active{background-image:url(../../img/round/button/buttonSOrange-Sprite-ltr.gif);} +.playnow{height:53px;min-width:220px;position:absolute;top:25px;left:25px;white-space:nowrap;} +.ie6 .playnow{min-width:220px;width:auto!important;width:220px;}.playnow-bg{height:53px;width:50%;margin-left:90px;position:absolute;z-index:-2;background-image:url(../../img/play_now_r.png);background-repeat:repeat-x;} +.ie6 .playnow-bg{background-image:url(../../img/play_now_r.gif);}.playnow-left{height:53px;position:absolute;left:-30px;z-index:-1;top:0;width:122px;background-image:url(../../img/play_now-ltr.png);background-position:left top;} +.playnow-right{height:53px;position:absolute;right:-52px;top:0;z-index:-1;width:180px;background-image:url(../../img/play_now-ltr.png);background-position:right top;} +.ie6 .playnow-left,.ie6.playnow-right{background-image:url(../../img/play_now-ltr.gif);} +.playnow h1.play{font-size:25px;margin-top:13px;max-width:437px;overflow:hidden;color:#FFF;font-weight:bold;line-height:23px;} +.ie7 .playnow h1.play{padding-top:13px;}a.play{text-decoration:none;color:#fff;font-weight:bold;} +.playnow a.play:hover{text-decoration:none;color:#fceed5;} \ No newline at end of file diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/f/newforum.gif b/notification/gpack/notification_v1_zzjhons/lang/en/f/newforum.gif new file mode 100644 index 00000000..9c9195f3 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/f/newforum.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/f/post.gif b/notification/gpack/notification_v1_zzjhons/lang/en/f/post.gif new file mode 100644 index 00000000..0dfda4c9 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/f/post.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/f/reply.gif b/notification/gpack/notification_v1_zzjhons/lang/en/f/reply.gif new file mode 100644 index 00000000..199f100e Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/f/reply.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/f/result.gif b/notification/gpack/notification_v1_zzjhons/lang/en/f/result.gif new file mode 100644 index 00000000..12b42aa7 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/f/result.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/f/vote.gif b/notification/gpack/notification_v1_zzjhons/lang/en/f/vote.gif new file mode 100644 index 00000000..20a1ea2c Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/f/vote.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/f/voting.gif b/notification/gpack/notification_v1_zzjhons/lang/en/f/voting.gif new file mode 100644 index 00000000..ee68b11a Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/f/voting.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/lang.css b/notification/gpack/notification_v1_zzjhons/lang/en/lang.css new file mode 100644 index 00000000..0899e013 --- /dev/null +++ b/notification/gpack/notification_v1_zzjhons/lang/en/lang.css @@ -0,0 +1,129 @@ +@CHARSET "UTF-8"; + +/* + *------------------------------------------------------------------------------ + * LANG is used to define the language-specific images. + * + * Contains: + * width, height, background-image, background-repeat, background-position + *------------------------------------------------------------------------------ + */ + +/* ------------------- Buttons ------------------- */ +/* ----------------------------------------------- */ +/* Ally Forum */ +div.forum input#fbtn_ok { + width: 47px; + background-image: url(b/ok.html); +} + +div.forum input#fbtn_vote { + width: 97px; + background-image: url(f/vote.html); +} + +div.forum input#fbtn_result { + width: 97px; + background-image: url(f/result.html); +} + +div.forum input#fbtn_voting { + width: 97px; + background-image: url(f/voting.html); +} + +div.forum img#fbtn_reply { + width: 97px; + background-image: url(f/reply.html); +} + +div.forum img#fbtn_post { + width: 97px; + background-image: url(f/post.html); +} + +div.forum img#fbtn_newforum { + width: 97px; + background-image: url(f/newforum.html); +} + +/* ------------------- Images ------------------- */ +/* ---------------------------------------------- */ +/* plus previews */ +div.plus table#plus_features td.preview img.autovv { + width: 200px; + background-image: url(p/autovv.html); + height: 56px; +} + +div.plus table#plus_features td.preview img.bfilter { + width: 200px; + background-image: url(p/bfilter.html); + height: 45px; +} + +div.plus table#plus_features td.preview img.dorf3 { + width: 200px; + background-image: url(p/dorf3.html); + height: 186px; +} + +div.plus table#plus_features td.preview img.p1 { + width: 179px; + background-image: url(p/p1.html); + height: 29px; +} + +div.plus table#plus_features td.preview img.p3 { + width: 163px; + background-image: url(p/p3.html); + height: 120px; +} + +div.plus table#plus_features td.preview img.p4 { + width: 197px; + background-image: url(p/p4.html); + height: 41px; +} + +div.plus table#plus_features td.preview img.p5 { + width: 132px; + background-image: url(p/p5.html); + height: 51px; +} + +div.plus table#plus_features td.preview img.p6 { + width: 111px; + background-image: url(p/p6.html); + height: 29px; +} + +div.plus table#plus_features td.preview img.p7 { + width: 61px; + background-image: url(p/p7.html); + height: 86px; +} + +div.plus table#plus_features td.preview img.p8 { + width: 117px; + background-image: url(p/p8.html); + height: 121px; +} + +div.plus table#plus_features td.preview img.sort { + width: 200px; + background-image: url(p/sort.html); + height: 38px; +} + +div.plus table#plus_features td.preview img.st1 { + width: 200px; + background-image: url(p/st1.html); + height: 90px; +} + +div.plus table#plus_features td.preview img.xxl_map { + width: 146px; + background-image: url(p/xxl_map.html); + height: 112px; +} \ No newline at end of file diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/autovv.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/autovv.gif new file mode 100644 index 00000000..3ebc0d00 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/autovv.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/bfilter.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/bfilter.gif new file mode 100644 index 00000000..97942339 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/bfilter.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/dorf3.jpg b/notification/gpack/notification_v1_zzjhons/lang/en/p/dorf3.jpg new file mode 100644 index 00000000..f32ca5b8 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/dorf3.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/p1.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/p1.gif new file mode 100644 index 00000000..6f6d868a Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/p1.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/p3.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/p3.gif new file mode 100644 index 00000000..eca80249 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/p3.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/p4.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/p4.gif new file mode 100644 index 00000000..113f4a27 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/p4.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/p5.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/p5.gif new file mode 100644 index 00000000..9dad5211 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/p5.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/p6.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/p6.gif new file mode 100644 index 00000000..cf63c4eb Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/p6.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/p7.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/p7.gif new file mode 100644 index 00000000..2f558af3 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/p7.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/p8.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/p8.gif new file mode 100644 index 00000000..bc8e346b Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/p8.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/sort.jpg b/notification/gpack/notification_v1_zzjhons/lang/en/p/sort.jpg new file mode 100644 index 00000000..c02c1c7d Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/sort.jpg differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/st1.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/st1.gif new file mode 100644 index 00000000..f3cc7f32 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/st1.gif differ diff --git a/notification/gpack/notification_v1_zzjhons/lang/en/p/xxl_map.gif b/notification/gpack/notification_v1_zzjhons/lang/en/p/xxl_map.gif new file mode 100644 index 00000000..6b6ffc70 Binary files /dev/null and b/notification/gpack/notification_v1_zzjhons/lang/en/p/xxl_map.gif differ diff --git a/notification/img/x.gif b/notification/img/x.gif new file mode 100644 index 00000000..c95709f1 Binary files /dev/null and b/notification/img/x.gif differ diff --git a/notification/index.php b/notification/index.php new file mode 100644 index 00000000..99ea1ff4 --- /dev/null +++ b/notification/index.php @@ -0,0 +1,163 @@ + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + +
    +
    +
    +
    + Logo + +
    +

    +
    +
    +
    +

    :

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

    :

    + <?php echo $lang['notification']['screenshots']; ?> +
    + + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    + + +
    + +
    + +
    + + + \ No newline at end of file diff --git a/notification/lang/en.php b/notification/lang/en.php new file mode 100644 index 00000000..8f586fd9 --- /dev/null +++ b/notification/lang/en.php @@ -0,0 +1,43 @@ + \ No newline at end of file diff --git a/packages.php b/packages.php new file mode 100644 index 00000000..8000a1d4 --- /dev/null +++ b/packages.php @@ -0,0 +1,113 @@ +pageLoadTimeStart(); +$id = $_GET['id']; +if($session->access != BANNED){ +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + +
    + +
    +



    + +
    +
    +
    + +
    + + +
    +
    +
    + pageLoadTimeEnd()-$start)*1000); +?> ms + +
    +
    +
    +
    + +
    + + + diff --git a/password.php b/password.php new file mode 100644 index 00000000..2d66eb3f --- /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..90c76df0 --- /dev/null +++ b/plus.php @@ -0,0 +1,158 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +else { + $building->procBuild($_GET); +} +$automation->isWinner(); +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + + 15) { +include("Templates/Plus/3.tpl"); +} +if(isset($_POST['mail'])) { +$mailer->sendInvite($_POST['mail'],$session->uid,$_POST['text']); +} +?> + +



    + +
    +
    +
    + +
    + + +
    +
    +
    +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..d2cd0e2f --- /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..4c30bf0c --- /dev/null +++ b/spieler.php @@ -0,0 +1,188 @@ +pageLoadTimeStart(); +$profile->procProfile($_POST); +$profile->procSpecial($_GET); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + if(isset($_GET['s'])){ + header("Location: ".$_SERVER['PHP_SELF']."?s=".preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['s'])); + }else if(isset($_GET['uid'])){ + header("Location: ".$_SERVER['PHP_SELF']."?uid=".preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['uid'])); + }else{ + header("Location: ".$_SERVER['PHP_SELF']); +} +} +else { + $building->procBuild($_GET); +} + +if(isset($_GET['s'])){ +$automation->isWinner(); +} +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) { + echo " + + "; + } else { + echo " + + "; + } + ?> + + + + + +
    + +
    +
    + +
    + + +
    += 2) { + $user = $database->getUserArray(preg_replace("/[^a-zA-Z0-9_-]/","",$_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) { + include("Templates/Profile/profile.tpl"); + } + if($_GET['s'] == 2) { + include("Templates/Profile/preference.tpl"); + } + if($_GET['s'] == 3) { + include("Templates/Profile/account.tpl"); + } + if($_GET['s'] == 4) { + include("Templates/Profile/graphic.tpl"); + } + if($_GET['s'] > 4 or $session->sit == 1) { + header("Location: ".$_SERVER['PHP_SELF']."?uid=".preg_replace("/[^a-zA-Z0-9_-]/","",$session->uid)); + } +} +?> +
    + +



    + +
    +
    +
    + +
    + + +
    +
    +
    +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..8fa8ab09 --- /dev/null +++ b/statistiken.php @@ -0,0 +1,171 @@ +pageLoadTimeStart(); +if(isset($_GET['rank'])){ $_POST['rank']==$_GET['rank']; } +$_GET['aid'] = $session->alliance; +$ranking->procRankReq($_GET); +$ranking->procRank($_POST); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']."?id=".$_GET['id']); +} +?> + + + + <?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/support.php b/support.php new file mode 100644 index 00000000..e631cf5a --- /dev/null +++ b/support.php @@ -0,0 +1,150 @@ + + + + + <?php echo SERVER_NAME; ?> + + + + + + + + + + + + + + + + + + +
    +
    +
    + +
    + +
    +

    Support

    +

    You can use the following form to submit your request to the Support.
    Please take a bit of time to answer the form questions in as much detail as possible, so that we can answer your request quickly and in length.
    Please note that without a valid email address, your request will not get processed. +

    Bug reports, login errors, general questions and feedback

    + +
    + +
    + + + + + +
    +
    +
    + + + + + +
    +
    +
    + + + + + +
    +
    +
    + + + + + +
    +
    +
    +
    + + + + + + + +
                                                                
    +
    +
    + +
    +
    + +
    + +
    +
    + + +
    + + +
    + + \ No newline at end of file diff --git a/sysmsg.php b/sysmsg.php new file mode 100644 index 00000000..d12f5399 --- /dev/null +++ b/sysmsg.php @@ -0,0 +1,188 @@ +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); + $text = utf8_encode($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..3e376938 --- /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..6cdd0b7b --- /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..23b72895 --- /dev/null +++ b/tutorial.php @@ -0,0 +1,94 @@ + + + + + <?php echo SERVER_NAME; echo " - "; echo TUTORIAL; ?> + + + + + + + + + +
    +
    +
    + + +
    + + +
    +
    +
    +

    + + +
    +
    +
    +
    + Close +

    +
    + +
    +
    + + \ No newline at end of file diff --git a/uncrypt.js b/uncrypt.js new file mode 100644 index 00000000..1b2cf641 --- /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..e9bdec0d --- /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..0092bc85 --- /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 destroyed

    "; + }elseif ($_POST['result'][4]==0){ + echo "

    The building isn't destroyed

    "; + }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_".preg_replace("/[^a-zA-Z0-9_-]/","",$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 diff --git a/winner.php b/winner.php new file mode 100644 index 00000000..15ad86a8 --- /dev/null +++ b/winner.php @@ -0,0 +1,1178 @@ +pageLoadTimeStart(); +if(isset($_GET['newdid'])) { + $_SESSION['wid'] = $_GET['newdid']; + header("Location: ".$_SERVER['PHP_SELF']); +} +else { + $building->procBuild($_GET); +} + +## Get Rankings for Ranking Section +## Top 3 Population +$q = " + SELECT ".TB_PREFIX."users.id userid, ".TB_PREFIX."users.username username,".TB_PREFIX."users.alliance alliance, ( + SELECT SUM( ".TB_PREFIX."vdata.pop ) + FROM ".TB_PREFIX."vdata + WHERE ".TB_PREFIX."vdata.owner = userid + )totalpop, ( + SELECT COUNT( " . TB_PREFIX . "vdata.wref ) + FROM " . TB_PREFIX . "vdata + WHERE " . TB_PREFIX . "vdata.owner = userid AND type != 99 + )totalvillages, ( + SELECT " . TB_PREFIX . "alidata.tag + FROM " . TB_PREFIX . "alidata, " . TB_PREFIX . "users + WHERE " . TB_PREFIX . "alidata.id = " . TB_PREFIX . "users.alliance + AND " . TB_PREFIX . "users.id = userid + )allitag + FROM " . TB_PREFIX . "users + WHERE " . TB_PREFIX . "users.access < " . (INCLUDE_ADMIN ? "10" : "8") . " + ORDER BY totalpop DESC, totalvillages DESC, username ASC"; + + $result = (mysql_query($q)); + while($row = mysql_fetch_assoc($result)) + { + $datas[] = $row; + } + foreach($datas as $result) + { + $value['userid'] = $result['userid']; + $value['username'] = $result['username']; + $value['alliance'] = $result['alliance']; + $value['aname'] = $result['allitag']; + $value['totalpop'] = $result['totalpop']; + $value['totalvillage'] = $result['totalvillages']; + } + ## Top Attacker + $q = " + SELECT " . TB_PREFIX . "users.id userid, " . TB_PREFIX . "users.username username, " . TB_PREFIX . "users.apall, ( + SELECT COUNT( " . TB_PREFIX . "vdata.wref ) + FROM " . TB_PREFIX . "vdata + WHERE " . TB_PREFIX . "vdata.owner = userid AND type != 99 + )totalvillages, ( + SELECT SUM( " . TB_PREFIX . "vdata.pop ) + FROM " . TB_PREFIX . "vdata + WHERE " . TB_PREFIX . "vdata.owner = userid + )pop + FROM " . TB_PREFIX . "users + WHERE " . TB_PREFIX . "users.apall >=0 AND " . TB_PREFIX . "users.access < " . (INCLUDE_ADMIN ? "10" : "8") . " AND " . TB_PREFIX . "users.tribe <= 3 + ORDER BY " . TB_PREFIX . "users.apall DESC, pop DESC, username ASC"; + + $result = mysql_query($q) or die(mysql_error()); + while($row = mysql_fetch_assoc($result)) + { + $attacker[] = $row; + } + foreach($attacker as $key => $row) + { + $value['username'] = $row['username']; + $value['totalvillages'] = $row['totalvillages']; + $value['id'] = $row['userid']; + $value['totalpop'] = $row['pop']; + $value['apall'] = $row['apall']; + } + ## Top Defender + $q = " + SELECT " . TB_PREFIX . "users.id userid, " . TB_PREFIX . "users.username username, " . TB_PREFIX . "users.dpall, ( + SELECT COUNT( " . TB_PREFIX . "vdata.wref ) + FROM " . TB_PREFIX . "vdata + WHERE " . TB_PREFIX . "vdata.owner = userid AND type != 99 + )totalvillages, ( + SELECT SUM( " . TB_PREFIX . "vdata.pop ) + FROM " . TB_PREFIX . "vdata + WHERE " . TB_PREFIX . "vdata.owner = userid + )pop + FROM " . TB_PREFIX . "users + WHERE " . TB_PREFIX . "users.dpall >=0 AND " . TB_PREFIX . "users.access < " . (INCLUDE_ADMIN ? "10" : "8") . " + ORDER BY " . TB_PREFIX . "users.dpall DESC, pop DESC, username ASC"; + $result = mysql_query($q) or die(mysql_error()); + while($row = mysql_fetch_assoc($result)) + { + $defender[] = $row; + } + foreach($defender as $key => $row) + { + $value['username'] = $row['username']; + $value['totalvillages'] = $row['totalvillages']; + $value['id'] = $row['userid']; + $value['totalpop'] = $row['pop']; + $value['dpall'] = $row['dpall']; + } + + ## Get WW Winner Details + $sql = mysql_query("SELECT vref FROM ".TB_PREFIX."fdata WHERE f99 = '100' and f99t = '40'"); + $vref = mysql_result($sql, 0); + + $sql = mysql_query("SELECT name FROM ".TB_PREFIX."vdata WHERE wref = '$vref'")or die(mysql_error()); + $winningvillagename = mysql_result($sql, 0); + + $sql = mysql_query("SELECT owner FROM ".TB_PREFIX."vdata WHERE wref = '$vref'")or die(mysql_error()); + $owner = mysql_result($sql, 0); + + $sql = mysql_query("SELECT username FROM ".TB_PREFIX."users WHERE id = '$owner'")or die(mysql_error()); + $username = mysql_result($sql, 0); + + $sql = mysql_query("SELECT alliance FROM ".TB_PREFIX."users WHERE id = '$owner'")or die(mysql_error()); + $allianceid = mysql_result($sql, 0); + + $sql = mysql_query("SELECT name, tag FROM ".TB_PREFIX."alidata WHERE id = '$allianceid'")or die(mysql_error()); + $winningalliance = mysql_result($sql, 0); + + $sql = mysql_query("SELECT tag FROM ".TB_PREFIX."alidata WHERE id = '$allianceid'")or die(mysql_error()); + $winningalliancetag = mysql_result($sql, 0); + + $sql = mysql_query("SELECT vref FROM ".TB_PREFIX."fdata WHERE f99 = '100' and f99t = '40'"); + $winner = mysql_num_rows($sql); + + if($winner!=0){ +?> + + + + <?php echo SERVER_NAME ?> + + + + + + + + + + + + gpack == null || GP_ENABLE == false) + { + echo " + + "; + } + else + { + echo " + + "; + } + ?> + + + + +
    + +
    + +
    + +
    + +

    + Dear Players, +

    + All good things must come to an end, and so too must this age. Once solomon was given a ring, upon which was inscribed a message that could take away all + the joys or sorrows of the world, that message was roughly translated "this too shall pass". It is both our joy and sorrow to announce to all Players that + this too has now passed! We hope you enjoyed your time with us as much as we enjoyed serving you and thank you for staying until the very end!

    + + The results: Day had long since passed into night, yet the workers in getMapCheck($vref)."\">$winningvillagename"; ?>, + laboured on throught the wintery eve, every wary of the countless armies marching to destroy their work, knowing that they raced against time and the greatest + threat that had ever faced the free people. Their tireless struggles were rewared at Time on Date after a + nameless worker laid the dinal stone in what will forever known as the greatest and most magnificent creation in all of history since the fall of the Natars

    + + Together with the alliance "$winningalliancetag"; ?>", "$username"; ?>" + was the first to finish the Wonder of the World, using millions of resources whilst also protecting it with hundereds of thousands of brave defenders. It is therefore $username"; ?> + who recieves the title "Winner of this era"!

    + + + "Total Population: ">" was the ruler over the largest personal empire, followed closely by "Total Population: ">" and "Total Population: ">".
    + "Attack Points: ">" slew more than any other, and was the mightiest, most fearsome commander.
    + "Defence Points: ">" was the most glorious defender, slaugtering enemies at the village gates, staining the lands around those villages with their blood. +

    +

    Congratulations to everyone.

    +

    + Best Regards,
    + Team



    + (By: aggenkeech & Eyas95)

    + +

    +
    » Continue
    +
    +



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