// ==UserScript== // @name Travian4 Plus Tool Hacked // @namespace not available. // @version 10.0.2.9 // @license Creative Commons // @require http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js // @require https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js // @description Varios Tools For Travian v4 // @include http://*t*.travian.*/* // ==/UserScript== /**************************************************** Original script not issued, this script is under update This script is full compatible with other scripts. *****************************************************/ function ID(id) { return document.getElementById(id) }; function exp(href) { return document.location.href.match(href) }; function xpath(path) { return document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); }; function CLASS(cn){return document.getElementsByClassName(cn)}; function C(value) {return parseInt(value)}; function ReLoadTime(Time) { var p = Time.split(":"); return (p[0] * 86400) + (p[1] * 3600) + (p[2] * 60) + (p[3] * 1); }; function MakeNum(value) { return value.toString().replace(/\d(?=(\d{3})+(\D|$))/g, "$&,"); } function Time(x, y) { return format(Math.abs(Math.round(x / y))); }; function Create(tagName) { return document.createElement(tagName) }; function TAG(tagName){return document.getElementsByTagName(tagName)}; var RTL = document.defaultView.getComputedStyle(document.body, null).getPropertyValue('direction'); var About = { Version: {Now: '10.0.2.9', New: '10.0.3.0'}, Script: {Page: 'http://userscripts.org/scripts/show/63218', Download: 'http://userscripts.org/scripts/source/63218.user.js'} }; var uSpeed = 'data:image/gif;base64,R0lGODlhGgAQAPcAAAAAAAICAgQEBAYGBgkJCQ0NDRAQEBISEhYWFhkZGR0dHR8fHyIiIiQkJCYmJigoKCsrKy4uLjMzMzU1NTc3Nzg4OD4+PkFBQUdHR0tLS01NTU9PT1JSUldXV1lZWV5eXmJiYmVlZWdnZ2hoaHFxcXNzc3R0dHd3d3l5eYGBgYKCgoSEhIaGhomJiYqKioyMjI2NjY+Pj5CQkJGRkZWVlZqampubm5ycnKGhoaampqioqKurq6+vr7Ozs7S0tLW1tbi4uLm5ub6+vr+/v8PDw8fHx8nJycrKyszMzM7Ozs/Pz9HR0dLS0tfX193d3d7e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JwxwEBJrjsNgNjQlmFTDgAqJBl9z/pDMOkBEDQJCAAOw=='; var imghero = "data:image/gif;base64,R0lGODlhEAAQANU/AM+qcPCrU/fDcOJXD/Xamt5UBPRtJtO5gq9ZAdywWa51F/mMKv/91ON6Gv/wtNyHJ7SEM/qXR//++v/99P73xqltKvjow/eENsZZB/11CPeVNuW3bOxsA/zXquLPpv/97NxhAf//3MacSv3x1MxMAf7z4v/np//23c+ZOvavY8deF9NTCePDg+nQif2+du2JOeHbs8uXY+/do+Tpwch5H+vr1NBuHdt4Ec2BMfzu1/v28dGBOdnAmuW8e/327P///yH5BAEAAD8ALAAAAAAQABAAAAamwJ9w+JtQGMQksSSjTJRJSSdB+ECXrkdgdBVOOhFOgyAhSiSMNMW1yIACjmNJUoOxBPhAG3QLbHoHHj8zGw8LGogNHCAgChAAFj8fDgENCxcXBgMFKxWQZZImKZmaKyQqADmgRQwmEQacGAg7XEkhBC8FJLIIOCdKDAI2GA8oCgg0kUQTDiIVMRY5BxAKPKuSLSI8OkI+BCIHVkMTMgQ+RCcEHk8/QQA7"; var imgatti = "data:image/gif;base64,R0lGODlhEAAQAOYAAJoxM5EqLocoK8BKTre6vsnKy6mqq/T58nu0X1qNQOTv3srivFN8OU1zNVuGPnGiUFqAQXqnXJG9c4yyc4Kla+rz5FqEPVF3N0xuNGqYSoKtZIWvaIClZoivbZnAfpq9gcfcuNnozsXatevv4vH06vj49KGhoJ2dnNjUwevj1uamSNKeUuKrW7+RT7SKTeizZLOMVKOCUamPaa2VcsashtnBnamXfMSxlsOJN7KEQ+fWv9HLw7Kro/Ls5qmop7KNeqRuX71vZrJVTqlSTbtMTOrq6unp6eXl5ePj4+Li4t3d3dra2tjY2NbW1tDQ0M7OzsrKysnJycjIyMbGxsXFxcPDw729vbu7u7m5ubi4uLa2trW1tbOzs66urqurq6mpqaWlpaOjo6KiopOTk////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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h0Q29tbWVudAD2zJa/AAAABnRFWHRUaXRsZQCo7tInAAABO0lEQVQokX2Qv0tCURTHP9efkFTLoyLQhtTASVpqFiJabGtrtf6AQKKtJaS9waHGBh3EhgYlAhch0DsVZBJmWEmkYA49sttg7+Uz6Tudc8/9cDgfoZTCyP7u9m/zk9brEy6hSCSzwnhzDAJrkXkLkE4VcAn+xDEMpFMFc+gP+LirPFi2ANiMQsoaR8eX+AM+mp0e9/UGuYsi5ZsO8VhUjYSKstqHy2W67Rc2N1ZZiSyzGJ5GV8ICikERAFe5QzU1G6DZqCBlDYDr27pFhm0UYCQcngMgFPRatpnQ+emBBTDqQfDPTZpm2v838VhU2QDOTvbU82PbMmw2Kpa+KKvoqm/evrTgVl+fOpl8iY9Om3FPj27nzfwsZc0063basYsheztb66r1rpv9xJiLUNDLjDZJJl9C8zhJJLPiG9UDhfU4C7tHAAAAAElFTkSuQmCC'; if (!ID('l1')) { XundefinedX(); }; function LanguagePack() { var lng = 'en'; if (GM_getValue('MyLang')) { lng = GM_getValue('MyLang'); }; return lng }; function SubLanguage(sLang, oType) { var subLang = []; /* [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29] [30] [31] [32] [33] [34] [35] [36] [37]*/ if (sLang == 'ar') subLang['ar'] = ['الإعدادات', 'دفتر الملاحظات', 'إظهار قائمة المباني', 'إخفاء قائمة المباني', 'حفظ', 'ارسال موارد الى: ', 'ارسال قوات الى: ', 'الروابط', 'إضافة', 'عنوان الرابط:', 'أسم الرابط:', 'حذف الرابط:', 'الروابط المساعده', 'حساب تطوير الموارد', 'محاكي المعركة المطور', 'حساب المسافة', 'بحث عن القرى القمحية', 'بحث عن الفيله', 'نصف القطر', 'بدأ', 'المسح', 'من', 'الى', 'أكتمل', 'تحديث', 'لديك أخر اصدار', 'قد يكون لديك نسخة تجريبية!', 'يوجد أصدار جديد!', 'هل تريد تثبيتة...؟', 'عرض رمز ارسال رسالة بجانب كل لاعب', 'اظهار جدول معلومات حول الهجوم في نقطة التجمع', 'عرض رموز ارسال قوات و موارد بجانب كل قرى اللاعبين', 'قوة الهجوم', 'قوة الدفاع', 'الخسائر', 'معلومات', 'الفائدة', 'الخسائر']; if (sLang == 'ge') subLang['ge'] = ['Einstellungen', 'Notebook', 'Zeigt eine Liste von Gebäuden', 'Hide in der Liste der Gebäude', 'sparen', 'Send Ressourcen: ', 'Send Armee: ', 'Links', 'Add', 'Link URL:', 'Link Name:', 'Delete Link:', 'Hilfe-Links', 'Rohstoffe - Ausbau-Rechner', 'Erweiterter Kampfsimulator', 'Wegerechner', 'Crop Finder', 'finden Elefanten', 'Radius', 'Start', 'Scan', 'von', 'zu', 'Prozent', "update", "Sie haben eine aktuelle Version!", "Sie können eine Beta-Version haben", "neue Version verfügbar", "willst du es .. installieren?", "View icon Nachricht senden", "Tabelle anzeigen zu Angriff info", "Symbole in Angriff zu senden / resource", "Angreifer", "Verteidiger", "Verluste", "Information", "Gewinn", "Verluste"]; if (sLang == 'en') subLang['en'] = ['Setting', 'NoteBook', 'Show Buildings List', 'Hide Buildings List', 'Save', 'send resource to: ', 'send army to: ', 'Links', 'Add', 'Link URL:', 'Link Name:', 'Delete Link:', 'help links', 'resource development calculator', 'Extended Combat Simulator', 'distance calculator', 'Crop Finder', 'Elephant Finder', 'Radius', 'Start', 'Scan', 'From', 'To', 'Percent', "update", "You have a latest version!", "You may have a beta version", "new version available", "do you want to install it..?", 'View send message icon', 'Show table info about attack', 'Show send Army/Resource', 'Attacker', 'Defender', 'Losses', "information", "profit", "Losses"]; if (sLang == 'fr') subLang['fr'] = ['Paramètres', 'portable', 'Afficher une liste de bâtiments', 'Cacher la liste des bâtiments', 'Enregistrer', 'Envoyer des ressources pour: ', "De l'envoi d'une armée pour: ", 'Liens', 'Ajouter', 'lien URL:', 'Nom du lien:', 'Supprimer le lien:', 'Aide liens', 'Calculateur développement de ressources', 'Simulateur de combat amélioré', 'distance calculator', 'Crop Finder', 'Elephant Finder', 'rayon', 'démarrage', 'scan', 'à partir de', 'à', 'pour cent', "update", "Vous avez une nouvelle version!", "Vous pouvez avoir une version bêta", "nouvelle version disponible", "voulez-vous de l'installer ..?", "Vue en icône envoyer un message", "show table sur Info attaque", "icônes envoyer attaque / ressource", "Attaquant", "défenseur", "Pertes", 'informations', 'les bénéfices', 'pertes']; if (sLang == 'sp') subLang['sp'] = ['ajustes', 'Cuaderno', 'Mostrar una lista de edificios', 'Ocultar la lista de los edificios', 'ahorrar', "Envoyer des ressources pour:", "Envoyer une armée: ", 'Links', 'Añadir', 'URL del enlace: ', ' Link Name:', 'Eliminar Link: ', 'Ayudar a los enlaces', 'resource development calculator', 'Simulador de combate avanzado', 'Calculadora del tiempo del recorrido', 'Crop Finder', 'Elephant Finder', 'radio', 'comienzo', 'escanear', 'de', 'a', 'por ciento', "actualizar", "Usted tiene una versión más reciente", "Usted puede tener una versión beta", "nueva versión disponible", "¿quieres instalarlo ..?", "Vista de icono enviar un mensaje", "mostrar la tabla de información de ataque", "iconos de vista de enviar ataque / recurso", "Atacante", "defensor", "pérdidas", "información", "beneficio", "pérdidas"]; return subLang[sLang][oType]; }; function NewMathPercent(x) { if (x.toString().match(/\d*.\d{4}/)) { return x.toString().match(/\d*.\d{4}/); } else if (x.toString().match(/\d*.\d{3}/)) { return x.toString().match(/\d*.\d{3}/); } else if (x.toString().match(/\d*.\d{2}/)) { return x.toString().match(/\d*.\d{2}/); } else if (x.toString().match(/\d*.\d{1}/)) { return x.toString().match(/\d*.\d{1}/); } else { return x; } }; var AddUpdate = function() { function update() { GM_xmlhttpRequest({ url: About.Script.Page, method: "GET", onload: function(data) { var GetVersion = C($(data.responseText).find('div[id="summary"] p').eq(1).html().split('<b>Version:</b>')[1].replace('.', '').replace('.', '').replace('.', '')); var VersionNow = C(About.Version.Now.replace('.', '').replace('.', '').replace('.', '')); if (GetVersion == VersionNow) { alert(SubLanguage(LanguagePack(), 25)); } else if (GetVersion < VersionNow) { alert(SubLanguage(LanguagePack(), 26)); } else if (GetVersion > VersionNow) { var ask = window.confirm('' + SubLanguage(LanguagePack(), 27) + '\n' + SubLanguage(LanguagePack(), 28) + ''); if (ask) { location.href = About.Script.Download; }; }; } }); } var updateIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH2wsIDQYVNRaPjAAAAAd0RVh0QXV0aG9yAKmuzEgAAAAMdEVYdERlc2NyaXB0aW9uABMJISMAAAAKdEVYdENvcHlyaWdodACsD8w6AAAADnRFWHRDcmVhdGlvbiB0aW1lADX3DwkAAAAJdEVYdFNvZnR3YXJlAF1w/zoAAAALdEVYdERpc2NsYWltZXIAt8C0jwAAAAh0RVh0V2FybmluZwDAG+aHAAAAB3RFWHRTb3VyY2UA9f+D6wAAAAh0RVh0Q29tbWVudAD2zJa/AAAABnRFWHRUaXRsZQCo7tInAAAGSklEQVRYhcWXe4hcVx3HP+e+5rEzmZ3ZTTabbLMktk1iSEvS0NYqGtEoxUawtP4dUEGiUEVRqPUBaloo/cM/BPEfpYIoobamtVqRtsYsknSTNI8mTdhkd7Obx24yOzs7O497zz3n5x8z0SSd2U6lkB8c7oN77vdzf49zf0eJCLfTnNuqDnjv94BSyi08tW9PiPs9Y4X/x18KcByF7ygSnqO9cPHxSz9/7GURsYhIxwF4uR+89NIT+07Kh2GVUMujzx+S/I//KrlHdi8XEZYSV4Xdv9z+xd8e/FDERUTWP/u6zNe1vHL6ivQ9+eI+wFsqBH6cWfGdr96/BoDYWuwH9L9qDc91OHKxzIpMwGytwZpCCoLk54HUUgDJ0E1+dufGlcQiaHOLuuoSQjUT7Y1z15gqN/jK3mN4jsJznQBILAUQ7Lh7eRLguZEFxorxex64s+Dx2KYkxkLSV2QDhe/eTOYowIV/jF3l0u/3fG3i+OsTgAAlIG4LoJRSuV3PbLvu8vV9DmdmDPdtW04YNm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E2P0ib+7wFQSqn8l749HAkM5ZK8dWkeEBCF5/pksjl8P+DGxuybX36gdSWINNdZQZFLJ8jlcvzt7Al6Yn2tKwBAWUhe/6E6Cny/WUoJP0mmJwnkb5nRZDQiRLEltoIVYTCTJJ3twXMcSnufGaVTCJRSweDPXgtr2pB+6i+EVtCxQX33z2Clu8ZDKYLA5V/f+DiRaTYvuaTP+FwVT0kIRB0BgHRDm2j+Jw8HXUh1tEd/9xanZxYZzqcwVuhL++w9fhmnWhoB4nYleB3AY7E48vzhqU/v3LSSemyxH6D5UwoC12HXtjX84sB5fvS5u+hLB3iOw94Tl7DvjvyGpgfamgeEi3/46Q+fLKw4kEy4bB7IYgW63QEoFI6CTSszPH7vIOVazODyFE+8fJLjZ8b2L7z6qwNAYymAur54dqJ6+O/f363tntiKa4GudyCq1f0qcG5MmMtn/jj/6289TbP30x2niwhKqRQwCKwEUl1KL2URMAdcAcoi0rYEbwRwgERL/H23a12YpbkmNUSkbfbfBHA77bbvjv8D4g7BB/8NFSYAAAAASUVORK5CYII%3D'; var img = Create('img'); img.src = updateIcon; img.title = '' + SubLanguage(LanguagePack(), 24) + '\nTravian4 Plus Tool hacked'; img.alt = '' + SubLanguage(LanguagePack(), 24) + '\nTravian4 Plus Tool hacked'; img.addEventListener('click', update, true); img.setAttribute('style', 'cursor: pointer;'); ID('t4tools').appendChild(img); }; var trans = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH2wMEBBIvqMNOnQAAAAd0RVh0QXV0aG9yAKmuzEgAAAAMdEVYdERlc2NyaXB0aW9uABMJISMAAAAKdEVYdENvcHlyaWdodACsD8w6AAAADnRFWHRDcmVhdGlvbiB0aW1lADX3DwkAAAAJdEVYdFNvZnR3YXJlAF1w/zoAAAALdEVYdERpc2NsYWltZXIAt8C0jwAAAAh0RVh0V2FybmluZwDAG+aHAAAAB3RFWHRTb3VyY2UA9f+D6wAAAAh0RVh0Q29tbWVudAD2zJa/AAAABnRFWHRUaXRsZQCo7tInAAAAGklEQVQYlWN89unTfgYCgImQglFFDAwMDAwAndcDm9V2mYsAAAAASUVORK5CYII%3D'; var pos; if (RTL == 'rtl') { pos = 'right'; } else { pos = 'left'; }; var div = Create('div'); div.setAttribute('id', "t4tools"); GM_addStyle('#t4tools {background-image: url(' + trans + '); border-radius: 0px 0px 10px 10px; background-repeat: repeat; position: absolute; top:66px; ' + pos + ': 20px;} #t4tools img {padding: 5px;}'); ID('logo').parentNode.insertBefore(div, ID('logo')); var bCost = [[0],//dummy [//lumberCost gid = 1 [0,0,0,0,0,0], [40,100,50,60,1,2], [65,165,85,100,1,3], [110,280,140,165,2,4], [185,465,235,280,2,5], [310,780,390,465,2,6], [520,1300,650,780,3,8], [870,2170,1085,1300,4,10], [1450,3625,1810,2175,4,12], [2420,6050,3025,3630,5,14], [4040,10105,5050,6060,6,16],//10 [6750,16870,8435,10125,7,18], [11270,28175,14090,16905,9,20], [18820,47055,23525,28230,11,22], [31430,78580,39290,47150,13,24], [52490,131230,65615,78740,15,26], [87660,219155,109575,131490,18,29], [146395,365985,182995,219590,22,32], [244480,611195,305600,366715,27,35], [408280,1020695,510350,612420,32,38], [681825,1704565,852280,1022740,38,41],//20 [1138650,2846620,1423310,1707970,38,44], [1901540,4753855,2376925,2852315,38,47], [3175575,7938935,3969470,4763360,38,50], [5303210,13258025,6629015,7954815,38,53], [8856360,22140900,11070450,13284540,38,56]//25 ], [//clayCost gid = 2 [0,0,0,0,0,0], [80,40,80,50,1,2], [135,65,135,85,1,3], [225,110,225,140,2,4], [375,185,375,235,2,5], [620,310,620,390,2,6], [1040,520,1040,650,3,8], [1735,870,1735,1085,4,10], [2900,1450,2900,1810,4,12], [4840,2420,4840,3025,5,14], [8080,4040,8080,5050,6,16],//10 [13500,6750,13500,8435,7,18], [22540,11270,22540,14090,9,20], [37645,18820,37645,23525,11,22], [62865,31430,62865,39290,13,24], [104985,52490,104985,65615,15,26], [175320,87660,175320,109575,18,29], [292790,146395,292790,182995,22,32], [488955,244480,488955,305600,27,35], [816555,408280,816555,510350,32,38], [1363650,681825,1363650,852280,38,41],//20 [2277295,1138650,2277295,1423310,38,44], [3803085,1901540,3803085,2376925,38,47], [6351150,3175575,6351150,3969470,38,50], [10606420,5303210,10606420,6629015,38,53], [17712720,8856360,17712720,11070450,38,56]//25 ], [//ironCost gid = 3 [0,0,0,0,0,0], [100,80,30,60,1,3], [165,135,50,100,1,5], [280,225,85,165,2,7], [465,375,140,280,2,9], [780,620,235,465,2,11], [1300,1040,390,780,3,13], [2170,1735,650,1300,4,15], [3625,2900,1085,2175,4,17], [6050,4840,1815,3630,5,19], [10105,8080,3030,6060,6,21],//10 [16870,13500,5060,10125,7,24], [28175,22540,8455,16905,9,27], [47055,37645,14115,28230,11,30], [78580,62865,23575,47150,13,33], [131230,104985,39370,78740,15,36], [219155,175320,65745,131490,18,39], [365985,292790,109795,219590,22,42], [611195,488955,183360,366715,27,45], [1020695,816555,306210,612420,32,48], [1704565,1363650,511370,1022740,38,51],//20 [2846620,2277295,853985,1707970,38,54], [4753855,3803085,1426155,2852315,38,57], [7938935,6351150,2381680,4763360,38,60], [13258025,10606420,3977410,7954815,38,63], [22140900,17712720,6642270,13284540,38,66]//25 ], [//cropCost gid = 4 [0,0,0,0,0,0], [70,90,70,20,1,0], [115,150,115,35,1,0], [195,250,195,55,2,0], [325,420,325,95,2,0], [545,700,545,155,2,0], [910,1170,910,260,3,1], [1520,1950,1520,435,4,2], [2535,3260,2535,725,4,3], [4235,5445,4235,1210,5,4], [7070,9095,7070,2020,6,5],//10 [11810,15185,11810,3375,7,6], [19725,25360,19725,5635,9,7], [32940,42350,32940,9410,11,8], [55005,70720,55005,15715,13,9], [91860,118105,91860,26245,15,10], [153405,197240,153405,43830,18,12], [256190,329385,256190,73195,22,14], [427835,550075,427835,122240,27,16], [714485,918625,714485,204140,32,18], [1193195,1534105,1193195,340915,38,20],//20 [1992635,2561960,1992635,569325,38,22], [3327700,4278470,3327700,950770,38,24], [5557255,7145045,5557255,1587785,38,26], [9280620,11932225,9280620,2651605,38,28], [15498630,19926810,15498630,4428180,38,30]//25 ], [//sawmillCost gid = 5 [0,0,0,0,0,0], [520,380,290,90,1,4], [935,685,520,160,1,6], [1685,1230,940,290,2,8], [3035,2215,1690,525,2,10], [5460,3990,3045,945,2,12] ], [//brickyardCost gid = 6 [0,0,0,0,0,0], [440,480,320,50,1,3], [790,865,575,90,1,5], [1425,1555,1035,160,2,7], [2565,2800,1865,290,2,9], [4620,5040,3360,525,2,11] ], [//ironFoundryCost gid = 7 [0,0,0,0,0,0], [200,450,510,120,1,6], [360,810,920,215,1,9], [650,1460,1650,390,2,12], [1165,2625,2975,700,2,15], [2100,4725,5355,1260,2,18] ], [//grainMillCost gid = 8 [0,0,0,0,0,0], [500,440,380,1240,1,3], [900,790,685,2230,1,5], [1620,1425,1230,4020,2,7], [2915,2565,2215,7230,2,9], [5250,4620,3990,13015,2,11] ], [//bakeryCost gid = 9 [0,0,0,0,0,0], [1200,1480,870,1600,1,4], [2160,2665,1565,2880,1,6], [3890,4795,2820,5185,2,8], [7000,8630,5075,9330,2,10], [12595,15535,9135,16795,2,12] ], [//warehouseCost gid = 10 [0,0,0,0,0,0], [130,160,90,40,1,1], [165,205,115,50,1,2], [215,260,145,65,2,3], [275,335,190,85,2,4], [350,430,240,105,2,5], [445,550,310,135,3,6], [570,705,395,175,4,7], [730,900,505,225,4,8], [935,1155,650,290,5,9], [1200,1475,830,370,6,10],//10 [1535,1890,1065,470,7,12], [1965,2420,1360,605,9,14], [2515,3095,1740,775,11,16], [3220,3960,2230,990,13,18], [4120,5070,2850,1270,15,20], [5275,6490,3650,1625,18,22], [6750,8310,4675,2075,22,24], [8640,10635,5980,2660,27,26], [11060,13610,7655,3405,32,28], [14155,17420,9800,4355,38,30]//20 ], [//granaryCost gid = 11 [0,0,0,0,0,0], [80,100,70,20,1,1], [100,130,90,25,1,2], [130,165,115,35,2,3], [170,210,145,40,2,4], [215,270,190,55,2,5], [275,345,240,70,3,6], [350,440,310,90,4,7], [450,565,395,115,4,8], [575,720,505,145,5,9], [740,920,645,185,6,10],//10 [945,1180,825,235,7,12], [1210,1510,1060,300,9,14], [1545,1935,1355,385,11,16], [1980,2475,1735,495,13,18], [2535,3170,2220,635,15,20], [3245,4055,2840,810,18,22], [4155,5190,3635,1040,22,24], [5315,6645,4650,1330,27,26], [6805,8505,5955,1700,32,28], [8710,10890,7620,2180,38,30]//20 ], [//blacksmithCost gid = 12 [0,0,0,0,0,0], [170,200,380,130,2,4], [220,255,485,165,3,6], [280,330,625,215,3,8], [355,420,795,275,4,10], [455,535,1020,350,5,12], [585,685,1305,445,6,15], [750,880,1670,570,7,18], [955,1125,2140,730,9,21], [1225,1440,2740,935,10,24], [1570,1845,3505,1200,12,27],//10 [2005,2360,4485,1535,15,30], [2570,3020,5740,1965,18,33], [3290,3870,7350,2515,21,36], [4210,4950,9410,3220,26,39], [5390,6340,12045,4120,31,42], [6895,8115,15415,5275,37,46], [8825,10385,19730,6750,44,50], [11300,13290,25255,8640,53,54], [14460,17015,32325,11060,64,58], [18510,21780,41380,14155,77,62]//20 ], [//armouryCost gid = 13 [0,0,0,0,0,0], [180,250,500,160,2,4], //to lvl 1: 180 250 500 160 4 OK [230,320,640,205,3,6], //to lvl 2: 230 320 640 205 2 OK [295,410,820,260,3,8], //to lvl 3: 295 410 820 260 2 OK [375,525,1050,335,4,10],//to lvl 4: 375 525 1050 335 2 OK [485,670,1340,430,5,12],//to lvl 5: 485 670 1340 430 2 OK [620,860,1720,550,6,15],//to lvl 6: 620 860 1720 550 3 OK [790,1100,2200,705,7,18], //to lvl 07: // 790 1100 2200 705 3 [1015,1405,2815,900,9,21], //to lvl 08: // 1015 1405 2815 900 3 [1295,1800,3605,1155,10,24],//to lvl 09: 1295 1800 3605 1155 3 OK [1660,2305,4610,1475,12,27],//to lvl 10: // 1660 2305 4610 1475 3 OK [2125,2950,5905,1890,15,30],//to lvl 11: // 2125 2950 5905 1890 3 OK [2720,3780,7555,2420,18,33],//to lvl 12: // 2720 3780 7555 2420 3 [3480,4835,9670,3095,21,36],//to lvl 13: // 3480 4835 9670 3095 3 OK [4455,6190,12380,3960,26,39], //to lvl 14: // 4455 6190 12380 3960 3 OK [5705,7925,15845,5070,31,42], //to lvl 15: // 5705 7925 15845 5070 3 OK [7300,10140,20280,6490,37,46],//to lvl 16: // 7300 10140 20280 6490 4 OK [9345,12980,25960,8310,44,50],//to lvl 17: // 9345 12980 25960 8310 4 OK [11965,16615,33230,10635,53,54],//to lvl 18: // 11965 16615 33230 10635 4 OK [15315,21270,42535,13610,64,58], //to lvl 19: // 15315 21270 42535 13610 OK [19600,27225,54445,17420,77,62] //to lvl 20: // 19600 27225 54445 17420 4 ], [//tournamentSquareCost gid = 14 [0,0,0,0,0,0], [1750,2250,1530,240,1,1], [2240,2880,1960,305,1,2], [2865,3685,2505,395,2,3], [3670,4720,3210,505,2,4], [4700,6040,4105,645,2,5], [6015,7730,5255,825,3,6], [7695,9895,6730,1055,4,7], [9850,12665,8615,1350,4,8], [12610,16215,11025,1730,5,9], [16140,20755,14110,2215,6,10],//10 [20660,26565,18065,2835,7,12], [26445,34000,23120,3625,9,14], [33850,43520,29595,4640,11,16], [43330,55705,37880,5940,13,18], [55460,71305,48490,7605,15,20], [70990,91270,62065,9735,18,22], [90865,116825,79440,12460,22,24], [116305,149540,101685,15950,27,26], [148875,191410,130160,20415,32,28], [190560,245005,166600,26135,38,30]//20 ], [//mainBuildingCost gid = 15 [0,0,0,0,0,0], [70,40,60,20,2,2], [90,50,75,25,3,3], [115,65,100,35,3,4], [145,85,125,40,4,5], [190,105,160,55,5,6], [240,135,205,70,6,8], [310,175,265,90,7,10], [395,225,340,115,9,12], [505,290,430,145,10,14], [645,370,555,185,12,16],//10 [825,470,710,235,15,18], [1060,605,905,300,18,20], [1355,775,1160,385,21,22], [1735,990,1485,495,26,24], [2220,1270,1900,635,31,26], [2840,1625,2435,810,37,29], [3635,2075,3115,1040,44,32], [4650,2660,3990,1330,53,35], [5955,3405,5105,1700,64,38], [7620,4355,6535,2180,77,41]//20 ], [//rallyPointCost gid = 16 [0,0,0,0,0,0], [110,160,90,70,1,1], [140,205,115,90,1,2], [180,260,145,115,2,3], [230,335,190,145,2,4], [295,430,240,190,2,5], [380,550,310,240,3,6], [485,705,395,310,4,7], [620,900,505,395,4,8], [795,1155,650,505,5,9], [1015,1475,830,645,6,10],//10 [1300,1890,1065,825,7,12], [1660,2420,1360,1060,9,14], [2130,3095,1740,1355,11,16], [2725,3960,2230,1735,13,18], [3485,5070,2850,2220,15,20], [4460,6490,3650,2840,18,22], [5710,8310,4675,3635,22,24], [7310,10635,5980,4650,27,26], [9360,13610,7655,5955,32,28], [11980,17420,9800,7620,38,30]//20 ], [//marketplaceCost gid = 17 [0,0,0,0,0,0], [80,70,120,70,4,4], [100,90,155,90,4,6], [130,115,195,115,5,8], [170,145,250,145,6,10], [215,190,320,190,7,12], [275,240,410,240,9,15], [350,310,530,310,11,18], [450,395,675,395,13,21], [575,505,865,505,15,24], [740,645,1105,645,19,27],//10 [945,825,1415,825,22,30], [1210,1060,1815,1060,27,33], [1545,1355,2320,1355,32,38], [1980,1735,2970,1735,39,41], [2535,2220,3805,2220,46,44], [3245,2840,4870,2840,55,48], [4155,3635,6230,3635,67,52], [5315,4650,7975,4650,80,56], [6805,5955,10210,5955,96,60], [8710,7620,13065,7620,115,64]//20 ], [//embassyCost gid = 18 [0,0,0,0,0,0], [180,130,150,80,5,3], [230,165,190,100,6,5], [295,215,245,130,7,7], [375,275,315,170,8,9], [485,350,405,215,10,11], [620,445,515,275,12,13], [790,570,660,350,14,15], [1015,730,845,450,17,17], [1295,935,1080,575,21,19], [1660,1200,1385,740,25,21],//10 [2125,1535,1770,945,30,24], [2720,1965,2265,1210,36,27], [3480,2515,2900,1545,43,30], [4455,3220,3715,1980,51,33], [5705,4120,4755,2535,62,36], [7300,5275,6085,3245,74,39], [9345,6750,7790,4155,89,42], [11965,8640,9970,5315,106,45], [15315,11060,12760,6805,128,48], [19600,14155,16335,8710,153,51]//20 ], [//barracksCost gid = 19 [0,0,0,0,0,0], [210,140,260,120,1,4], [270,180,335,155,1,6], [345,230,425,195,2,8], [440,295,545,250,2,10], [565,375,700,320,2,12], [720,480,895,410,3,15], [925,615,1145,530,4,18], [1180,790,1465,675,4,21], [1515,1010,1875,865,5,24], [1935,1290,2400,1105,6,27],//10 [2480,1655,3070,1415,7,30], [3175,2115,3930,1815,9,33], [4060,2710,5030,2320,11,36], [5200,3465,6435,2970,13,39], [6655,4435,8240,3805,15,42], [8520,5680,10545,4870,18,46], [10905,7270,13500,6230,22,50], [13955,9305,17280,7975,27,54], [17865,11910,22120,10210,32,58], [22865,15245,28310,13065,38,62]//20 ], [//stableCost gid = 20 [0,0,0,0,0,0], [260,140,220,100,2,5], [335,180,280,130,3,8], [425,230,360,165,3,11], [545,295,460,210,4,14], [700,375,590,270,5,17], [895,480,755,345,6,20], [1145,615,970,440,7,23], [1465,790,1240,565,9,26], [1875,1010,1585,720,10,29], [2400,1290,2030,920,12,32],//10 [3070,1655,2595,1180,15,36], [3930,2115,3325,1510,18,40], [5030,2710,4255,1935,21,44], [6435,3465,5445,2475,26,48], [8240,4435,6970,3170,31,52], [10545,5680,8925,4055,37,56], [13500,7270,11425,5190,44,60], [17280,9305,14620,6645,53,64], [22120,11910,18715,8505,64,68], [28310,15245,23955,10890,77,72]//20 ], [//workshopCost gid = 21 [0,0,0,0,0,0], [460,510,600,320,4,3], [590,655,770,410,4,5], [755,835,985,525,5,7], [965,1070,1260,670,6,9], [1235,1370,1610,860,7,11], [1580,1750,2060,1100,9,13], [2025,2245,2640,1405,11,15], [2590,2870,3380,1800,13,17], [3315,3675,4325,2305,15,19], [4245,4705,5535,2950,19,21],//10 [5430,6020,7085,3780,22,24], [6950,7705,9065,4835,27,27], [8900,9865,11605,6190,32,30], [11390,12625,14855,7925,39,33], [14580,16165,19015,10140,46,36], [18660,20690,24340,12980,55,39], [23885,26480,31155,16615,67,42], [30570,33895,39875,21270,80,45], [39130,43385,51040,27225,96,48], [50090,55535,65335,34845,115,51]//20 ], [//academyCost gid = 22 [0,0,0,0,0,0], [220,160,90,40,5,4], [280,205,115,50,6,6], [360,260,145,65,7,8], [460,335,190,85,8,10], [590,430,240,105,10,12], [755,550,310,135,12,15], [970,705,395,175,14,18], [1240,900,505,225,17,21], [1585,1155,650,290,21,24], [2030,1475,830,370,25,27],//10 [2595,1890,1065,470,30,30], [3325,2420,1360,605,36,33], [4255,3095,1740,775,43,36], [5445,3960,2230,990,51,39], [6970,5070,2850,1270,62,42], [8925,6490,3650,1625,74,46], [11425,8310,4675,2075,89,50], [14620,10635,5980,2660,106,54], [18715,13610,7655,3405,128,58], [23955,17420,9800,4355,153,62]//20 ], [//crannyCost gid = 23 [0,0,0,0,0,0], [40,50,30,10,1,0], [50,65,40,15,1,0], [65,80,50,15,2,0], [85,105,65,20,2,0], [105,135,80,25,2,0], [135,170,105,35,3,1], [175,220,130,45,4,2], [225,280,170,55,4,3], [290,360,215,70,5,4], [370,460,275,90,6,5]//10 ], [//townhallCost gid = 24 [0,0,0,0,0,0], [1250,1110,1260,600,6,4], [1600,1420,1615,770,7,6], [2050,1820,2065,985,9,8], [2620,2330,2640,1260,10,10], [3355,2980,3380,1610,12,12], [4295,3815,4330,2060,15,15], [5500,4880,5540,2640,18,18], [7035,6250,7095,3380,21,21], [9005,8000,9080,4325,26,24], [11530,10240,11620,5535,31,27],//10 [14755,13105,14875,7085,37,30], [18890,16775,19040,9065,45,33], [24180,21470,24370,11605,53,36], [30950,27480,31195,14855,64,39], [39615,35175,39930,19015,77,42], [50705,45025,51110,24340,92,46], [64905,57635,65425,31155,111,50], [83075,73770,83740,39875,133,54], [106340,94430,107190,51040,160,58], [136115,120870,137200,65335,192,62]//20 ], [//residenceCost gid = 25 [0,0,0,0,0,0], [580,460,350,180,2,1], [740,590,450,230,3,2], [950,755,575,295,3,3], [1215,965,735,375,4,4], [1555,1235,940,485,5,5], [1995,1580,1205,620,6,6], [2550,2025,1540,790,7,7], [3265,2590,1970,1015,9,8], [4180,3315,2520,1295,11,9], [5350,4245,3230,1660,12,10],//10 [6845,5430,4130,2125,15,12], [8765,6950,5290,2720,18,14], [11220,8900,6770,3480,21,16], [14360,11390,8665,4455,26,18], [18380,14580,11090,5705,31,20], [23530,18660,14200,7300,37,22], [30115,23885,18175,9345,44,24], [38550,30570,23260,11965,53,26], [49340,39130,29775,15315,64,28], [63155,50090,38110,19600,77,30]//20 ], [//palaceCost gid = 26 [0,0,0,0,0,0], [550,800,750,250,6,1], [705,1025,960,320,7,2], [900,1310,1230,410,9,3], [1155,1680,1575,525,10,4], [1475,2145,2015,670,12,5], [1890,2750,2575,860,15,6], [2420,3520,3300,1100,18,7], [3095,4505,4220,1405,21,8], [3965,5765,5405,1800,26,9], [5075,7380,6920,2305,31,10],//10 [6495,9445,8855,2950,37,12], [8310,12090,11335,3780,45,14], [10640,15475,14505,4835,53,16], [13615,19805,18570,6190,64,18], [17430,25355,23770,7925,77,20], [22310,32450,30425,10140,92,22], [28560,41540,38940,12980,111,24], [36555,53170,49845,16615,133,26], [46790,68055,63805,21270,160,28], [59890,87110,81670,27225,192,30]//20 ], [//treasuryCost gid = 27 [0,0,0,0,0,0], [2880,2740,2580,990,7,4], [3630,3450,3250,1245,9,6], [4570,4350,4095,1570,10,8], [5760,5480,5160,1980,12,10], [7260,6905,6505,2495,15,12], [9145,8700,8195,3145,18,15], [11525,10965,10325,3960,21,18], [14520,13815,13010,4990,26,21], [18295,17405,16390,6290,31,24], [23055,21930,20650,7925,37,27],//10 [29045,27635,26020,9985,45,30], [36600,34820,32785,12580,53,33], [46115,43875,41310,15850,64,36], [58105,55280,52050,19975,77,39], [73210,69655,65585,25165,92,42], [92245,87760,82640,31710,111,46], [116230,110580,104125,39955,133,50], [146450,139330,131195,50340,160,54], [184530,175560,165305,63430,192,58], [232505,221205,208285,79925,230,62]//20 ], [//tradeOfficeCost gid = 28 [0,0,0,0,0,0], [1400,1330,1200,400,4,3], [1790,1700,1535,510,4,5], [2295,2180,1965,655,5,7], [2935,2790,2515,840,6,9], [3760,3570,3220,1075,7,11], [4810,4570,4125,1375,9,13], [6155,5850,5280,1760,11,15], [7880,7485,6755,2250,13,17], [10090,9585,8645,2880,15,19], [12915,12265,11070,3690,19,21],//10 [16530,15700,14165,4720,22,24], [21155,20100,18135,6045,27,27], [27080,25725,23210,7735,32,30], [34660,32930,29710,9905,39,33], [44370,42150,38030,12675,46,36], [56790,53950,48680,16225,55,39], [72690,69060,62310,20770,67,42], [93045,88395,79755,26585,80,45], [119100,113145,102085,34030,96,48], [152445,144825,130670,43555,115,51]//20 ], [//greatBarrackCost gid = 29 [0,0,0,0,0,0], [630,420,780,360,1,4], [805,540,1000,460,1,6], [1030,690,1280,590,2,8], [1320,880,1635,755,2,10], [1690,1125,2095,965,2,12], [2165,1445,2680,1235,3,15], [2770,1845,3430,1585,4,18], [3545,2365,4390,2025,4,21], [4540,3025,5620,2595,5,24], [5810,3875,7195,3320,6,27],//10 [7440,4960,9210,4250,7,30], [9520,6345,11785,5440,9,33], [12185,8125,15085,6965,11,36], [15600,10400,19310,8915,13,39], [19965,13310,24720,11410,15,42], [25555,17035,31640,14605,18,46], [32710,21810,40500,18690,22,50], [41870,27915,51840,23925,27,54], [53595,35730,66355,30625,32,58], [68600,45735,84935,39200,38,62]//20 ], [//greatStableCost gid = 30 [0,0,0,0,0,0], [780,420,660,300,2,5], [1000,540,845,385,3,8], [1280,690,1080,490,3,11], [1635,880,1385,630,4,14], [2095,1125,1770,805,5,17], [2680,1445,2270,1030,6,20], [3430,1845,2905,1320,7,23], [4390,2365,3715,1690,9,26], [5620,3025,4755,2160,10,29], [7195,3875,6085,2765,12,32],//10 [9210,4960,7790,3540,15,36], [11785,6345,9975,4535,18,40], [15085,8125,12765,5805,21,44], [19310,10400,16340,7430,26,48], [24720,13310,20915,9505,31,52], [31640,17035,26775,12170,37,56], [40500,21810,34270,15575,44,60], [51840,27915,43865,19940,53,64], [66355,35730,56145,25520,64,68], [84935,45735,71870,32665,77,72]//20 ], [//citywallCost gid = 31 [0,0,0,0,0,0], [70,90,170,70,1,0], [90,115,220,90,1,0], [115,145,280,115,2,0], [145,190,355,145,2,0], [190,240,455,190,2,0], [240,310,585,240,3,1], [310,395,750,310,4,2], [395,505,955,395,4,3], [505,650,1225,505,5,4], [645,830,1570,645,6,5],//10 [825,1065,2005,825,7,6], [1060,1360,2570,1060,9,7], [1355,1740,3290,1355,11,8], [1735,2230,4210,1735,13,9], [2220,2850,5390,2220,15,10], [2840,3650,6895,2840,18,12], [3635,4675,8825,3635,22,14], [4650,5980,11300,4650,27,16], [5955,7655,14460,5955,32,18], [7620,9800,18510,7620,38,20]//20 ], [//earthwallCost gid = 32 [0,0,0,0,0,0], [120,200,0,80,1,0], [155,255,0,100,1,0], [195,330,0,130,2,0], [250,420,0,170,2,0], [320,535,0,215,2,0], [410,685,0,275,3,1], [530,880,0,350,4,2], [675,1125,0,450,4,3], [865,1440,0,575,5,4], [1105,1845,0,740,6,5],//10 [1415,2360,0,945,7,6], [1815,3020,0,1210,9,7], [2320,3870,0,1545,11,8], [2970,4950,0,1980,13,9], [3805,6340,0,2535,15,10], [4870,8115,0,3245,18,12], [6230,10385,0,4155,22,14], [7975,13290,0,5315,27,16], [10210,17015,0,6805,32,18], [13065,21780,0,8710,38,20]//20 ], [//palisadeCost gid = 33 [0,0,0,0,0,0], [160,100,80,60,1,0], [205,130,100,75,1,0], [260,165,130,100,2,0], [335,210,170,125,2,0], [430,270,215,160,2,0], [550,345,275,205,3,1], [705,440,350,265,4,2], [900,565,450,340,4,3], [1155,720,575,430,5,4], [1475,920,740,555,6,5],//10 [1890,1180,945,710,7,6], [2420,1510,1210,905,9,7], [3095,1935,1545,1160,11,8], [3960,2475,1980,1485,13,9], [5070,3170,2535,1900,15,10], [6490,4055,3245,2435,18,12], [8310,5190,4155,3115,22,14], [10635,6645,5315,3990,27,16], [13610,8505,6805,5105,32,18], [17420,10890,8710,6535,38,20]//20 ], [//stonemasonCost gid = 34 [0,0,0,0,0,0], [155,130,125,70,1,2], [200,165,160,90,1,3], [255,215,205,115,2,4], [325,275,260,145,2,5], [415,350,335,190,2,6], [535,445,430,240,3,8], [680,570,550,310,4,10], [875,730,705,395,4,12], [1115,935,900,505,5,14], [1430,1200,1155,645,6,16],//10 [1830,1535,1475,825,7,18], [2340,1965,1890,1060,9,20], [3000,2515,2420,1355,11,22], [3840,3220,3095,1735,13,24], [4910,4120,3960,2220,15,26], [6290,5275,5070,2840,18,29], [8050,6750,6490,3635,22,32], [10300,8640,8310,4650,27,35], [13185,11060,10635,5955,32,38], [16880,14155,13610,7620,38,41]//20 ], [//breweryCost gid = 35 [0,0,0,0,0,0], [1460,930,1250,1740,5,6], [2045,1300,1750,2435,6,9], [2860,1825,2450,3410,7,12], [4005,2550,3430,4775,8,15], [5610,3575,4800,6685,10,18], [7850,5000,6725,9360,12,22], [10995,7000,9410,13100,14,26], [15390,9805,13175,18340,17,30], [21545,13725,18445,25680,21,34], [30165,19215,25825,35950,25,38]//10 ], [//trapperCost gid = 36 [0,0,0,0,0,0], [80,120,70,90,1,4], // To lvl 1: OK [100,155,90,115,1,6], // To lvl 2: OK [130,195,115,145,2,8], // To lvl 3: OK [170,250,145,190,2,10],// To lvl 4: OK [215,320,190,240,2,12],// To lvl 5: OK [275,410,240,310,3,15],// To lvl 6: OK [350,530,310,395,4,18],// To lvl 7: OK [450,675,395,505,4,21],// To lvl 8: OK [575,865,505,650,5,24],// To lvl 9: OK [740,1105,645,830,6,27], // To lvl 10: OK [945,1415,825,1065,7,30], // To lvl 11: OK [1210,1815,1060,1360,9,33], // To lvl 12: OK [1545,2320,1355,1740,11,36],// To lvl 13: OK [1980,2970,1735,2230,13,39],// To lvl 14: OK [2535,3805,2220,2850,15,42],// To lvl 15: OK [3245,4870,2840,3650,18,46],// To lvl 16: OK [4155,6230,3635,4675,22,50],// To lvl 17: OK [5315,7975,4650,5980,27,54],// To lvl 18: OK [6805,10210,5955,7655,32,58],// To lvl 19: OK [8710,13065,7620,9800,38,62] // To lvl 20: OK ], [//herosMansionCost gid = 37 [0,0,0,0,0,0], [700,670,700,240,1,2], [930,890,930,320,1,3], [1240,1185,1240,425,2,4], [1645,1575,1645,565,2,5], [2190,2095,2190,750,2,6], [2915,2790,2915,1000,3,8], [3875,3710,3875,1330,4,10], [5155,4930,5155,1765,4,12], [6855,6560,6855,2350,5,14], [9115,8725,9115,3125,6,16],//10 [12125,11605,12125,4155,7,18], [16125,15435,16125,5530,9,20], [21445,20525,21445,7350,11,22], [28520,27300,28520,9780,13,24], [37935,36310,37935,13005,15,24], [50450,48290,50450,17300,18,27], [67100,64225,67100,23005,22,30], [89245,85420,89245,30600,27,33], [118695,113605,118695,40695,32,36], [157865,151095,157865,54125,37,39]//20 ], [//greatWarehouseCost gid = 38 [0,0,0,0,0,0,0], [650,800,450,200,1,1], [830,1025,575,255,1,2], [1065,1310,735,330,2,3], [1365,1680,945,420,2,4], [1745,2145,1210,535,2,5], [2235,2750,1545,685,3,6], [2860,3520,1980,880,4,7], [3660,4505,2535,1125,4,8], [4685,5765,3245,1440,5,9], [5995,7380,4150,1845,6,10],//10 [7675,9445,5315,2360,7,12], [9825,12090,6800,3020,9,14], [12575,15475,8705,3870,11,16], [16095,19805,11140,4950,13,18], [20600,25355,14260,6340,15,20], [26365,32450,18255,8115,18,22], [33750,41540,23365,10385,22,24], [43200,53170,29910,13290,27,26], [55295,68055,38280,17015,32,28], [70780,87110,49000,21780,38,30]//20 ], [//greatGranaryCost gid = 39 [0,0,0,0,0,0], [400,500,350,100,1], [510,640,450,130,1,2], [655,820,575,165,2,3], [840,1050,735,210,2,4], [1075,1340,940,270,2,5], [1375,1720,1205,345,3,6], [1760,2200,1540,440,4,7], [2250,2815,1970,565,4,8], [2880,3605,2520,720,5,9], [3690,4610,3230,920,6,10],//10 [4720,5905,4130,1180,7,12], [6045,7555,5290,1510,9,14], [7735,9670,6770,1935,11,16], [9905,12380,8665,2475,13,18], [12675,15845,11090,3170,15,20], [16225,20280,14200,4055,18,22], [20770,25960,18175,5190,22,24], [26585,33230,23260,6645,27,26], [34030,42535,29775,8505,32,28], [43555,54445,38110,10890,38,30]//20 ], [//WWCost gid = 40 [0,0,0,0,0,0], [66700,69050,72200,13200,0,1], [68535,70950,74185,13565,0,2], [70420,72900,76225,13935,0,3], [72355,74905,78320,14320,0,4], [74345,76965,80475,14715,0,5], [76390,79080,82690,15120,0,6], [78490,81255,84965,15535,0,7], [80650,83490,87300,15960,0,8], [82865,85785,89700,16400,0,9], [85145,88145,92165,16850,0,10],//10 [87485,90570,94700,17315,0,12], [89895,93060,97305,17790,0,14], [92365,95620,99980,18280,0,16], [94905,98250,102730,18780,0,18], [97515,100950,105555,19300,0,20], [100195,103725,108460,19830,0,22], [102950,106580,111440,20375,0,24], [105785,109510,114505,20935,0,26], [108690,112520,117655,21510,0,28], [111680,115615,120890,22100,0,30],//20 [114755,118795,124215,22710,0,33], [117910,122060,127630,23335,0,36], [121150,125420,131140,23975,0,39], [124480,128870,134745,24635,0,42], [127905,132410,138455,25315,0,45], [131425,136055,142260,26010,0,48], [135035,139795,146170,26725,0,51], [138750,143640,150190,27460,0,54], [142565,147590,154320,28215,0,57], [146485,151650,158565,28990,0,60],//30 [150515,155820,162925,29785,0,64], [154655,160105,167405,30605,0,68], [158910,164505,172010,31450,0,72], [163275,169030,176740,32315,0,76], [167770,173680,181600,33200,0,80], [172380,178455,186595,34115,0,84], [177120,183360,191725,35055,0,88], [181995,188405,197000,36015,0,92], [186995,193585,202415,37005,0,96], [192140,198910,207985,38025,0,100],//40 [197425,204380,213705,39070,0,105], [202855,210000,219580,40145,0,110], [208430,215775,225620,41250,0,115], [214165,221710,231825,42385,0,120], [220055,227805,238200,43550,0,125], [226105,234070,244750,44745,0,130], [232320,240505,251480,45975,0,135], [238710,247120,258395,47240,0,140], [245275,253915,265500,48540,0,145], [252020,260900,272800,49875,0,150],//50 [258950,268075,280305,51245,0,156], [266070,275445,288010,52655,0,162], [273390,283020,295930,54105,0,168], [280905,290805,304070,55590,0,174], [288630,298800,312430,57120,0,180], [296570,307020,321025,58690,0,186], [304725,315460,329850,60305,0,192], [313105,324135,338925,61965,0,198], [321715,333050,348245,63670,0,204], [330565,342210,357820,65420,0,210],//60 [339655,351620,367660,67220,0,217], [348995,361290,377770,69065,0,224], [358590,371225,388160,70965,0,231], [368450,381435,398835,72915,0,238], [378585,391925,409800,74920,0,245], [388995,402700,421070,76985,0,252], [399695,413775,432650,79100,0,259], [410685,425155,444550,81275,0,266], [421980,436845,456775,83510,0,273], [433585,448860,469335,85805,0,280],//70 [445505,461205,482240,88165,0,288], [457760,473885,495505,90590,0,296], [470345,486920,509130,93080,0,304], [483280,500310,523130,95640,0,312], [496570,514065,537520,98270,0,320], [510225,528205,552300,100975,0,328], [524260,542730,567490,103750,0,336], [538675,557655,583095,106605,0,344], [553490,572990,599130,109535,0,352], [568710,588745,615605,112550,0,360],//80 [584350,604935,632535,115645,0,369], [600420,621575,649930,118825,0,378], [616930,638665,667800,122090,0,387], [633895,656230,686165,125450,0,396], [651330,674275,705035,128900,0,405], [669240,692820,724425,132445,0,414], [687645,711870,744345,136085,0,423], [706555,731445,764815,139830,0,432], [725985,751560,785850,143675,0,441], [745950,772230,807460,147625,0,450],//90 [766460,793465,829665,151685,0,460], [787540,815285,852480,155855,0,470], [809195,837705,875920,160140,0,480], [831450,860745,900010,164545,0,490], [854315,884415,924760,169070,0,500], [877810,908735,950190,173720,0,510], [901950,933725,976320,178495,0,520], [926750,959405,1000000,183405,0,530], [952235,985785,1000000,188450,0,540], [1000000,1000000,1000000,193630,0,550]//100 ], [//horsedtCost gid = 41 [0,0,0,0,0,0], [780,420,660,540,4,5], [1000,540,845,690,4,8], [1280,690,1080,885,5,11], [1635,880,1385,1130,6,14], [2095,1125,1770,1450,7,17], [2680,1445,2270,1855,9,20], [3430,1845,2905,2375,11,23], [4390,2365,3715,3040,13,26], [5620,3025,4755,3890,15,29], [7195,3875,6085,4980,19,31],//10 [9210,4960,7790,6375,22,35], [11785,6345,9975,8160,27,39], [15085,8125,12765,10445,32,43], [19310,10400,16340,13370,39,47], [24720,13310,20915,17115,46,51], [31640,17035,26775,21905,55,55], [40500,21810,34270,28040,67,59], [51840,27915,43865,35890,80,63], [66355,35730,56145,45940,96,67], [84935,45735,71870,58800,115,71]//20 ] ]; function xtr(type, value) { //0-att 1-def1 2-def2 3-lumber 4-clay 5-iron 6-crop 7-food 8-speed 9-load unit = []; unit[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; // hero unit[1] = [40, 35, 50, 120, 100, 180, 40, 1, 6, 40]; // Legionnaire unit[2] = [30, 65, 35, 100, 130, 160, 70, 1, 5, 20]; // Praetorian unit[3] = [70, 40, 25, 150, 160, 210, 80, 1, 7, 50]; // Imperian unit[4] = [0, 20, 10, 140, 160, 20, 40, 2, 16, 0]; // Equites Legati unit[5] = [120, 65, 50, 550, 440, 320, 100, 3, 14, 100]; // Equites Imperatoris unit[6] = [180, 80, 105, 550, 640, 800, 180, 4, 10, 70]; // Equites Caesaris unit[7] = [60, 30, 75, 900, 360, 500, 70, 3, 4, 0]; // Battering Ram unit[8] = [75, 60, 10, 950, 1350, 600, 90, 6, 3, 0]; // Fire catapult unit[9] = [50, 40, 30, 30750, 27200, 45000, 37500, 4, 4, 0]; // Senator unit[10] = [0, 80, 80, 5800, 5300, 7200, 5500, 1, 5, 1600]; // Settler unit[11] = [40, 20, 5, 95, 75, 40, 40, 1, 7, 60]; // Clubswinger unit[12] = [10, 35, 60, 145, 70, 85, 40, 1, 7, 40]; // Spearfighter unit[13] = [60, 30, 30, 130, 120, 170, 70, 1, 6, 50]; // Axefighter unit[14] = [0, 10, 5, 160, 100, 50, 50, 1, 9, 0]; // Scout unit[15] = [55, 100, 40, 370, 270, 290, 75, 2, 10, 110]; // Paladin unit[16] = [150, 50, 75, 450, 515, 480, 80, 3, 9, 80]; // Teuton Knight unit[17] = [65, 30, 80, 1000, 300, 350, 70, 3, 4, 0]; // Ram unit[18] = [50, 60, 10, 900, 1200, 600, 60, 6, 3, 0]; // Catapult unit[19] = [40, 60, 40, 35500, 26600, 25000, 27200, 4, 4, 0]; // Chief unit[20] = [10, 80, 80, 7200, 5500, 5800, 6500, 1, 5, 1600]; // Settler unit[21] = [15, 40, 50, 100, 130, 55, 30, 1, 7, 30]; // Phalanx unit[22] = [65, 35, 20, 140, 150, 185, 60, 1, 6, 45]; // Swordfighter unit[23] = [0, 20, 10, 170, 150, 20, 40, 2, 17, 0]; // Pathfinder unit[24] = [90, 25, 40, 350, 450, 230, 60, 2, 19, 75]; // Theutates Thunder unit[25] = [45, 115, 55, 360, 330, 280, 120, 2, 16, 35]; // Druidrider unit[26] = [140, 50, 165, 500, 620, 675, 170, 3, 13, 65]; // Haeduan unit[27] = [50, 30, 105, 950, 555, 330, 75, 3, 4, 0]; // Ram unit[28] = [70, 45, 10, 960, 1450, 630, 90, 6, 3, 0]; // Trebuchet unit[29] = [40, 50, 50, 30750, 45400, 31000, 37500, 4, 5, 0]; // Chieftain unit[30] = [0, 80, 80, 5500, 7000, 5300, 4900, 1, 5, 1600]; // Settler unit[31] = [10, 25, 10, 0, 0, 0, 0, 1, 20, 0]; // Rat unit[32] = [20, 35, 40, 0, 0, 0, 0, 1, 20, 0]; // Spider unit[33] = [60, 40, 60, 0, 0, 0, 0, 1, 20, 0]; // Serpent unit[34] = [80, 66, 50, 0, 0, 0, 0, 1, 20, 0]; // Bat unit[35] = [50, 70, 33, 0, 0, 0, 0, 2, 20, 0]; // Wild boar unit[36] = [100, 80, 70, 0, 0, 0, 0, 2, 20, 0]; // Wolf unit[37] = [250, 140, 200, 0, 0, 0, 0, 3, 20, 0]; // Bear unit[38] = [450, 380, 240, 0, 0, 0, 0, 3, 20, 0]; // Crocodile unit[39] = [200, 170, 250, 0, 0, 0, 0, 3, 20, 0]; // Tiger unit[40] = [600, 440, 520, 0, 0, 0, 0, 5, 20, 0]; // Elephant if (unit[type]) { return unit[type][value] } else { return unit[0][value]; }; }; function TroopType(Num) { var unitType = []; unitType[1] = 'i'; unitType[2] = 'i'; unitType[3] = 'i'; unitType[4] = 'c'; unitType[5] = 'c'; unitType[6] = 'c'; unitType[7] = 'i'; unitType[8] = 'i'; unitType[9] = 'i'; unitType[10] = 'i'; unitType[11] = 'i'; unitType[12] = 'i'; unitType[13] = 'i'; unitType[14] = 'i'; unitType[15] = 'c'; unitType[16] = 'c'; unitType[17] = 'i'; unitType[18] = 'i'; unitType[19] = 'i'; unitType[20] = 'i'; unitType[21] = 'i'; unitType[22] = 'i'; unitType[23] = 'c'; unitType[24] = 'c'; unitType[25] = 'c'; unitType[26] = 'c'; unitType[27] = 'i'; unitType[28] = 'i'; unitType[29] = 'i'; unitType[30] = 'i'; unitType[31] = 'c'; unitType[32] = 'c'; unitType[33] = 'c'; unitType[34] = 'c'; unitType[35] = 'c'; unitType[36] = 'c'; unitType[37] = 'c'; unitType[38] = 'c'; unitType[39] = 'c'; unitType[40] = 'c'; if (unitType[Num]) { return unitType[Num]; } else { return unitType[0]; }; }; function hMove(access) { var uSpeed = "data:image/gif;base64,R0lGODlhGgAQAPcAAAAAAAICAgQEBAYGBgkJCQ0NDRAQEBISEhYWFhkZGR0dHR8fHyIiIiQkJCYmJigoKCsrKy4uLjMzMzU1NTc3Nzg4OD4+PkFBQUdHR0tLS01NTU9PT1JSUldXV1lZWV5eXmJiYmVlZWdnZ2hoaHFxcXNzc3R0dHd3d3l5eYGBgYKCgoSEhIaGhomJiYqKioyMjI2NjY+Pj5CQkJGRkZWVlZqampubm5ycnKGhoaampqioqKurq6+vr7Ozs7S0tLW1tbi4uLm5ub6+vr+/v8PDw8fHx8nJycrKyszMzM7Ozs/Pz9HR0dLS0tfX193d3d7e3uDg4OHh4eLi4uPj4+Tk5Ofn5+jo6Onp6erq6uzs7O/v7/Dw8PLy8vPz8/T09PX19fb29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'><thead><tr><td colspan='3'><img src='img/x.gif' class='unit u" + access + "'><span> " + CLASS('unit u' + access)[0].alt + "</span>:</td></thead>" str = str + "<tbody><tr><td><img src='img/x.gif' class='att_all'><span> " + xtr(access, 0) + "</span></td>" str = str + "<td><img src='img/x.gif' class='def_i'><span> " + xtr(access, 1) + "</span></td>" str = str + "<td><img src='img/x.gif' class='def_c'><span> " + xtr(access, 2) + "</span></td></tr>" str = str + "<tr><td><img src='img/x.gif' class='r5'><span> " + xtr(access, 7) + "</span></td>" str = str + "<td><img src='" + uSpeed + "' ><span> " + xtr(access, 8) + "</span></td>" str = str + "<td><img src='img/x.gif' class='carry'><span> " + xtr(access, 9) + "</span></td><tr>" str = str + "<tr><td><img src='img/x.gif' class='r1' /><span> " + xtr(access, 3) + "</span></td>" str = str + "<td style='text-align: center;'>|</td><td><img src='img/x.gif' class='r2'><span> " + xtr(access, 4) + "</span></td></tr>" str = str + "<tr><td><img src='img/x.gif' class='r3'><span> " + xtr(access, 5) + "</span></td>" str = str + "<td style='text-align: center;'>|</td><td><img src='img/x.gif' class='r4'><span> " + xtr(access, 6) + "</span></td></tr>" ID("T4_mHelp").innerHTML = str; ID("T4_mHelp").style.display = "block"; }; function pTime(sec, oType) { if (oType == 'sec') { sec = sec.split(':'); var hh = sec[0]; var mm = sec[1]; var ss = sec[2]; if (hh < 10) hh = '0' + hh; if (mm < 10) mm = '0' + mm; if (ss < 10) ss = '0' + ss; return C(C(C(hh) * C(3600)) + C(C(mm) * C(60)) + C(C(ss) % 60)); } else if (oType == 'time') { var s = []; s['1'] = parseInt(sec / 3600); s['2'] = Math.floor(sec / 60) % 60; s['3'] = Math.floor(sec % 60); if (s['1'] < 10) s['1'] = '0' + s['1']; if (s['2'] < 10) s['2'] = '0' + s['2']; if (s['3'] < 10) s['3'] = '0' + s['3']; return s['1'] + ':' + s['2'] + ':' + s['3']; }; }; function fTime(sec) { sec = sec.split(':'); var hh = sec[0]; var mm = sec[1]; var ss = sec[2]; var dx = parseInt((hh * 3600) + (mm * 60) + (ss % 60)); d = Math.floor(dx / 86400); hh = Math.floor((dx % 86400) / 3600); mm = Math.floor(((dx % 86400) % 3600) / 60); ss = ((dx % 86400) % 3600) % 60; if (hh < 10) hh = '0' + hh; if (mm < 10) mm = '0' + mm; if (ss < 10) ss = '0' + ss; return (d + "d, " + hh + ":" + mm + ":" + ss); }; function jsPatch(Element) { var ClickEvent = document.createEvent("MouseEvents"); ClickEvent.initMouseEvent("click", true, true); Element.dispatchEvent(ClickEvent); }; function htmltocontext(source) { if (TAG("req")[0]) TAG("req")[0].parentNode.removeChild(TAG("req")[0]); html = document.createElement('req'); html.setAttribute('style', 'display: none;'); html.innerHTML = source; if (document.getElementsByTagName('req')[0]) { xli = document.getElementsByTagName('req')[0]; xli.parentNode.removeChild(xli); }; return document.body.parentNode.appendChild(html); }; function httpRequest(url, onSuccess) { var aR = new XMLHttpRequest(); aR.onreadystatechange = function() { if (aR.readyState == 4 && (aR.status == 200 || aR.status == 304)) { onSuccess(aR); } else if (aR.readyState == 4 && aR.status != 200) { }; }; aR.open("GET", url, true); aR.send(null); }; function XMLGetR(num) { document.body.style.cursor = 'wait'; var xmf = []; httpRequest(xpath('//table[@id = "overview"]/tbody/tr[' + num + ']/td[2]/div/a[contains(@href, "berichte.php?id=")]').snapshotItem(0).getAttribute('href'), function(ajax) { if (CLASS('XML1')[0]) { xli = CLASS('XML1')[0]; xli.parentNode.removeChild(xli); }; xmf[1] = htmltocontext(ajax.responseText); var table = Create('table'); table.setAttribute('cellspacing', '1'); table.setAttribute('class', 'XML1'); table.setAttribute('style', 'margin: 10px 0px;'); table.setAttribute('id', 'report_surround'); table.innerHTML = xmf[1].getElementById('report_surround').innerHTML; ID('content').appendChild(table); xpath('//table[@id = "overview"]/tbody/tr[' + num + ']/td/input').snapshotItem(0).setAttribute('checked', 'checked'); document.body.style.cursor = 'default'; }); }; function tChange(num) { var v = CLASS('details')[num].getElementsByTagName('input')[0].value; var Me = CLASS('details')[num].getElementsByTagName('input')[0]; if (Me.value.match(/[a-zA-Z]/)) { return false; }; var r = []; var c = []; var d = []; var cx = []; for (i = 0; i < 5; i++) { d[i] = ID('l' + (i + 1)).innerHTML.split('/')[0]; r[i] = CLASS('details')[num].getElementsByClassName('resources r' + (i + 1))[0].innerHTML.split('>')[1]; }; r[6] = CLASS('details')[num].getElementsByClassName('clocks')[0]; r[9] = CLASS('details')[num].getElementsByClassName('furtherInfo')[0].innerHTML.match(/\d+/); if (r[6].getElementsByTagName('span')[0]) { r[6] = r[6].getElementsByTagName('span')[0].innerHTML } else { r[6] = r[6].innerHTML.split(/<img\b[^>]*>/)[1]; }; if (v == '') { v = '0' }; c[0] = C(r[0] * v); c[1] = C(r[1] * v); c[2] = C(r[2] * v); c[3] = C(r[3] * v); c[4] = C(C(pTime(r[6], 'sec')) * C(v)); c[5] = pTime(c[4], 'time'); c[6] = C(r[4] * v); c[9] = C(C(r[9]) + C(v)); if (isNaN(c[9])) { c[9] = '0'; }; for (i = 0; i < 4; i++) { d[i] = C(C(ID('l' + (i + 1)).innerHTML.split('/')[0]) - C(c[i])); if (d[i] > 0) { d[i] = '+' + d[i]; cx[i] = 'style="color: green;"'; } else { cx[i] = 'style="color: red;"'; }; }; if (ID('xPS[' + num + ']')) { ID('xPS[' + num + ']').parentNode.removeChild(ID('xPS[' + num + ']')); }; CLASS('details')[num].getElementsByClassName('tit')[0].innerHTML += '<span id="xPS[' + num + ']"> + ' + v + ' = ' + c[9] + '</span>'; ID('XP1_' + num).innerHTML = c[0] + '<br><span ' + cx[0] + '>' + d[0] + ''; ID('XP2_' + num).innerHTML = c[1] + '<br><span ' + cx[1] + '>' + d[1] + ''; ID('XP3_' + num).innerHTML = c[2] + '<br><span ' + cx[2] + '>' + d[2] + ''; ID('XP4_' + num).innerHTML = c[3] + '<br><span ' + cx[3] + '>' + d[3] + ''; ID('XP6_' + num).innerHTML = c[6]; ID('XP5_' + num).innerHTML = c[5]; setTimeout('tChange(' + num + ');', 1000); }; function XMLGetM(num) { document.body.style.cursor = 'wait'; var xmf = []; httpRequest(xpath('//table[@id = "overview"]/tbody/tr[' + num + ']/td[2]/div/a[contains(@href, "nachrichten.php?id=")]').snapshotItem(0).getAttribute('href'), function (ajax) { xmf[2] = htmltocontext(ajax.responseText); if (ID('XML1')) { xli = ID('XML1'); xli.parentNode.removeChild(xli); }; ID('content').innerHTML += '<div class="paper" id="XML1" style="margin: 10px 0px;">' + xmf[2].getElementsByClassName('paper')[0].innerHTML + '</div>'; xpath('//table[@id = "overview"]/tbody/tr[' + num + ']/td/input').snapshotItem(0).setAttribute('checked', 'checked'); document.body.style.cursor = 'default'; }); }; function sh(){ if(ID('xblock')) return ID('xblock').parentNode.removeChild(ID('xblock')); if(!ID('xblock')) return NotePadPlus(); }; function GM_getValue(c_name) { var i, x, y, ARRcookies = document.cookie.split(";"); for (i = 0; i < ARRcookies.length; i++) { x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); x = x.replace(/^\s+|\s+$/g, ""); if (x == c_name) { var getValue = unescape(y); if (getValue == null) { getValue = ''; }; return getValue; } } }; /*function cMapChecker() { var vType = { 'k.f1': '3-3-3-9', 'k.f2': '3-4-5-6', 'k.f3': '4-4-4-6', 'k.f4': '4-5-3-6', 'k.f5': '5-3-4-6', 'k.f6': '1-1-1-15', 'k.f7': '4-4-3-7', 'k.f8': '3-4-4-7', 'k.f9': '4-3-4-7', 'k.f10': '3-5-4-6', 'k.f11': '4-3-5-6', 'k.f12': '5-4-3-6' }; var span = Create('span'); span.setAttribute('style', '' + 'background-color: white; ' + 'border: 1px solid; ' + 'position: absolute; ' + 'top: 10px; ' + 'margin: 15px; ' + 'border-radius: 50px 50px 50px 50px; ' + 'padding: 3px;'); ID('mapContainer'); };*/ function secExp(sec) { var now = new Date(); var time = now.getTime(); time += sec * 1000; now.setTime(time); }; function showHelp_move(ev) { var x = ev.pageX; var y = ev.pageY; ID("T4_mHelp").style.top = y + 21 + 'px'; ID("T4_mHelp").style.left = x + 12 + 'px'; }; function X_CE_Change(id) { if (id == 'Xcon') { ID('Xeon').style.display = 'none'; return ID('Xcon').style.display = 'block'; } else { ID('Xcon').style.display = 'none'; return ID('Xeon').style.display = 'block'; }; }; function GM_setValue(c_name, value, exdays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()); document.cookie = c_name + "=" + c_value; }; function GM_addStyle(css){ var Style = Create('style'); Style.setAttribute('type', 'text/css'); Style.innerHTML = css; TAG('head')[0].appendChild(Style); }; function showInWindow(html) { $.window({ title: "", content: html, checkBoundary: true, x: 80, y: 80 }); }; function help_fun() { $('<div style="border: 1px solid; border-top: 0px solid;" id="Searcher">' + '<form>' + '<input type="radio" name="Search" onclick="X_CE_Change(\'Xcon\');" />' + SubLanguage(LanguagePack(), 16) + '<br>' + '<input type="radio" name="Search" onclick="X_CE_Change(\'Xeon\');" />' + SubLanguage(LanguagePack(), 17) + '' + '</form>' + '</div>').appendTo('#content'); }; function CCDC() { var s = '<div id="Xcon">'; s += document.getElementById("mapCoordEnter").getElementsByClassName("xCoord")[0].getElementsByTagName("label")[0].innerHTML + ' <input type="text" id="crop_x" maxsize="4" size="4" value="0"/> ' + '' + document.getElementById("mapCoordEnter").getElementsByClassName("yCoord")[0].getElementsByTagName("label")[0].innerHTML + ' <input type="text" id="crop_y" maxsize="4" size="4" value="0"/>' + ' ' + SubLanguage(LanguagePack(), 18) + ': <input type="text" id="rad" maxsize="4" size="4" value="10"/> <input type="button" id="cFinderX" Value="' + SubLanguage(LanguagePack(), 19) + '" /><br/>' + '<span id="scx" style="display: none;">' + SubLanguage(LanguagePack(), 20) + ' ' + SubLanguage(LanguagePack(), 21) + ' <span id="crop_done">0</span> ' + SubLanguage(LanguagePack(), 22) + ' <span id="crop_tot">0</span><span> | ' + SubLanguage(LanguagePack(), 23) + ': <span id="percx">0%</span></span></span>' + '<table id="crop_fields" style="border: 0px solid; background-color: white; width: auto;"></table></div>'; return s; }; function cLang() { var LNG = ID('cLang').selectedIndex; var MyLNG = ID('cLang').options[LNG].value; GM_setValue('cLength', LNG); GM_setValue('MyLang', MyLNG); ID('t4_setting').parentNode.removeChild(ID('t4_setting')); return setting(); }; function OnChange() { ID('xtr[1]').innerHTML = 0; ID('xtrs[1]').innerHTML = 0; ID('xtr[2]').innerHTML = 0; ID('xtr[3]').innerHTML = 0; ID('xtr[4]').innerHTML = 0; ID('xtr[5]').innerHTML = 0; ID('xtr[6]').innerHTML = 0; ID('xtr[7]').innerHTML = 0; ID('xtr[8]').innerHTML = 0; ID('xtr[9]').innerHTML = 0; var getx = []; var gety = []; for (x = 0; x < 10; x++) { getx[x] = document.getElementsByName('t' + (x + 1))[0].parentNode.childNodes[0].className.split(' u')[1]; if (document.getElementsByName('t' + (x + 1))[0].value == '') { document.getElementsByName('t' + (x + 1))[0].value = 0; }; gety['attack'] = C(C(xtr(getx[x], 0)) * C(document.getElementsByName('t' + (x + 1))[0].value)); gety['attacks'] = C(C(xtr(getx[x], 0)) * C(document.getElementsByName('t' + (x + 1))[0].value)); gety['def_A'] = C(C(xtr(getx[x], 1)) * C(document.getElementsByName('t' + (x + 1))[0].value)); gety['def_B'] = C(C(xtr(getx[x], 2)) * C(document.getElementsByName('t' + (x + 1))[0].value)); gety['res1'] = C(C(xtr(getx[x], 3)) * C(document.getElementsByName('t' + (x + 1))[0].value)); gety['res2'] = C(C(xtr(getx[x], 4)) * C(document.getElementsByName('t' + (x + 1))[0].value)); gety['res3'] = C(C(xtr(getx[x], 5)) * C(document.getElementsByName('t' + (x + 1))[0].value)); gety['res4'] = C(C(xtr(getx[x], 6)) * C(document.getElementsByName('t' + (x + 1))[0].value)); gety['xcrop'] = C(C(xtr(getx[x], 7)) * C(document.getElementsByName('t' + (x + 1))[0].value)); gety['carry'] = C(C(xtr(getx[x], 9)) * C(document.getElementsByName('t' + (x + 1))[0].value)); if (TroopType(getx[x]).toString().match(/i/)) { ID('xtr[1]').innerHTML = C(C(ID('xtr[1]').innerHTML) + C(gety['attack'])); }; if (TroopType(getx[x]).toString().match(/c/)) { ID('xtrs[1]').innerHTML = C(C(ID('xtrs[1]').innerHTML) + C(gety['attacks'])); }; ID('xtr[2]').innerHTML = C(C(ID('xtr[2]').innerHTML) + C(gety['def_A'])); ID('xtr[3]').innerHTML = C(C(ID('xtr[3]').innerHTML) + C(gety['def_B'])); ID('xtr[4]').innerHTML = C(C(ID('xtr[4]').innerHTML) + C(gety['carry'])); ID('xtr[5]').innerHTML = C(C(ID('xtr[5]').innerHTML) + C(gety['xcrop'])); ID('xtr[6]').innerHTML = C(C(ID('xtr[6]').innerHTML) + C(gety['res1'])); ID('xtr[7]').innerHTML = C(C(ID('xtr[7]').innerHTML) + C(gety['res2'])); ID('xtr[8]').innerHTML = C(C(ID('xtr[8]').innerHTML) + C(gety['res3'])); ID('xtr[9]').innerHTML = C(C(ID('xtr[9]').innerHTML) + C(gety['res4'])); }; }; function format(maxtime) { var dys = Math.floor(maxtime / 86400) var hrs = Math.floor(maxtime / 3600) % 24; var min = Math.floor(maxtime / 60) % 60; var sec = maxtime % 60; var t = dys + ":"; if (hrs < 10) { hrs = '0' + hrs; } t += hrs + ":"; if (min < 10) { t += "0"; } t += min + ":"; if (sec < 10) { t += "0"; } t += sec; return t; }; function setting() { var Language_ = []; /* [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] */ Language_['ar'] = ['عرض الموارد المطلوبة للبناء', 'اظهار جدول المباني أسفل القرية', 'أظهار رموز ارسال قوات و موارد في قائمة القرى', 'اظهار رمز فتح التقارير', 'اظهار رمز فتح الرسائل', 'حساب عدد الموارد والوقت في الثكنة,الأسطبل,المصانع الحربية', 'إغلاق', 'إظهار قائمة الروابط', 'إظهار وقت إمتلاء المخازن', 'إظهار معدل نسبة المخازن', 'إظهار أنتاج القرية لكل ساعة'] Language_['ge'] = ['view erforderlichen Ressourcen zu bauen ', ' zeigen eine Tabelle von Gebäuden unterhalb des Dorfes ', ' Symbole einblenden, um Truppen und Ressourcen in die Liste der Dörfer zu senden ', ' zeigen den Code, um die Berichte zu öffnen ', 'Show-Symbol und öffnen Nachrichten', ' Berechnung der Anzahl der Ressourcen und Zeit in der Kaserne, Stall, Ordnance Factories ', ' Close ', 'show Menü-Links', 'zeigen Ressource Timer', 'zeigen Ressource Prozent', 'zeigen Dorf Produktion'] Language_['en'] = ['view resources needed to build', 'show a table of buildings below the village', 'Show icons to send troops and resources in the list of villages', ' show open reports icon', 'Show open messages icon', 'calculate the number of resources and time in the barracks, Stable, Ordnance Factories', 'Close', 'Show menu links', 'Show resource timer', 'Show resource percent', 'show village production'] Language_['fr'] = ["ressources vue nécessaire à la construction", "montrer un tableau de bâtiments bas du village", "Afficher les icônes d'envoyer des troupes et des ressources dans la liste des villages", " Afficher le code pour ouvrir les rapports", "Afficher l'icône et les messages ouverts", "calculer le nombre de ressources et de temps dans les casernes, stable, Ordnance Factories", "Fermer", 'liens du menu Show', 'timer ressources montrent', 'pour cent des ressources montrent', 'la production du village montrent']; Language_['sp'] = ['recursos de vista necesario para construir', 'mostrar una tabla de los edificios más abajo del pueblo', 'Mostrar iconos de enviar tropas y recursos en la lista de los pueblos', "Mostrar el icono de abrir mensajes", " mostrar el código para abrir los informes ", " calcular el número de recursos y tiempo en los cuarteles, estable, Ordnance Factories ", ' Close', "mostrar el menú de enlaces", "temporizador de recursos muestran", "mostrar por ciento de los recursos", "mostrar la producción del pueblo"]; if (ID('t4_setting')) { return ID('t4_setting').parentNode.removeChild(ID('t4_setting')); } else { var pName = xpath('/html/body/div/div[2]/div[2]/div[3]/div[2]/a/span').snapshotItem(0).innerHTML; var xpi_A = GM_getValue('t4_setup_setting').split('|')[0]; var xpi_B = xpath('/html/body/div/div[2]/div[2]/div[3]/div[2]/img').snapshotItem(0).getAttribute('alt'); var ally; if (CLASS('sideInfoAlly')[0]) { ally_A = GM_getValue('t4_setup_setting').split('|')[1]; ally_B = CLASS('sideInfoAlly')[0].getElementsByTagName('span')[0].innerHTML; } else { ally_B = ''; ally_A = ''; }; var getLang = GM_getValue('MyLang'); if (getLang == null) { getLang = 'en' }; var SaveMySetting = "for(i = 0; i < 15; i++){ GM_setValue('setting['+(i+1)+']', ID('t4_set['+(i+1)+']').checked); }; location.reload();"; var Div = Create('div'); Div.setAttribute('id', 't4_setting'); Div.setAttribute('style', 'width: auto;'); Div.innerHTML = '' + '<table class="t4_set" cellspacing="1">' + '<thead>' + '<tr><td colspan="2" style="background-color: #FFFFE0;">' + pName + '</td></tr>' + '<tr><td>' + xpi_A + '</td><td>' + xpi_B + '</td></tr>' + '<tr><td>' + ally_A + '</td><td>' + ally_B + '</td></tr>' + '<tr><td>Language:</td><td><select id="cLang" onchange="cLang();">' + '<option value="ar">العربية</option>' + '<option value="de">German</option>' + '<option value="en">English</option>' + '<option value="fr">French</option>' + '<option value="sp">Spanish</option>' + '</select> <a target="_blank" href="http://userscripts.org/scripts/show/63218" style="border: 1px solid;"> Add or Update Language </a></td></tr>' + '</thead>' + '<tbody>' + // 29 30 31 '<tr><td colspan="2" style="background-color: #FFFFE0;"><center>Travian4 Plus Tool Hacked - Setting</center></td></tr>' + '<tr><td><input type="checkbox" id="t4_set[1]" checked="true" /></td><td>' + Language_[getLang][0] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[2]" checked="true" /></td><td>' + Language_[getLang][1] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[3]" checked="true" /></td><td>' + Language_[getLang][2] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[4]" checked="true" /></td><td>' + Language_[getLang][3] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[5]" checked="true" /></td><td>' + Language_[getLang][4] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[6]" checked="true" /></td><td>' + Language_[getLang][5] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[7]" checked="true" /></td><td>' + Language_[getLang][7] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[8]" checked="true" /></td><td>' + Language_[getLang][8] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[9]" checked="true" /></td><td>' + Language_[getLang][9] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[10]" checked="true" /></td><td>' + Language_[getLang][10] + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[11]" checked="true" /></td><td>' + SubLanguage(LanguagePack(), 2) + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[12]" checked="true" /></td><td>' + SubLanguage(LanguagePack(), 12) + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[13]" checked="true" /></td><td>' + SubLanguage(LanguagePack(), 29) + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[14]" checked="true" /></td><td>' + SubLanguage(LanguagePack(), 30) + '</td></tr>' + '<tr><td><input type="checkbox" id="t4_set[15]" checked="true" /></td><td>' + SubLanguage(LanguagePack(), 31) + '</td></tr>' + '<tr><td colspan="2"><center>' + '<input type="button" onclick="ID('t4_setting').parentNode.removeChild(ID('t4_setting'));" value="' + Language_[getLang][6] + '" />' + '<input type="button" onclick="' + SaveMySetting + '" value="' + SubLanguage(LanguagePack(), 4) + '" />' + '</center></td></tr>' + '</tbody>' + '</table>'; document.body.appendChild(Div); if (GM_getValue('MyLang')) { ID('cLang').getElementsByTagName('option')[GM_getValue('cLength')].selected = 'selected'; } else { ID('cLang').getElementsByTagName('option')[2].setAttribute('selected', 'selected'); }; GM_addStyle('.t4_set {width: auto; border: 1px solid gray; position: absolute; top: 20px; left: 400px; z-index: 10000; box-shadow: 0px 0px 10px 3px;}'); function CheckIt(n) { if (GM_getValue('setting[' + n + ']')) { if (GM_getValue('setting[' + n + ']') == 'true') { return ID('t4_set[' + n + ']').checked = GM_getValue('setting[' + n + ']'); } else { ID('t4_set[' + n + ']').removeAttribute('checked'); return GM_setValue('setting[' + n + ']', 'false'); } } else { ID('t4_set[' + n + ']').setAttribute('checked', 'checked'); return GM_setValue('setting[' + n + ']', 'true'); }; }; CheckIt('1'); CheckIt('2'); CheckIt('3'); CheckIt('4'); CheckIt('5'); CheckIt('6'); CheckIt('7'); CheckIt('8'); CheckIt('9'); CheckIt('10'); CheckIt('11'); CheckIt('12'); CheckIt('13'); CheckIt('14'); CheckIt('15'); } }; function deleteLinks(cid) { var ask = window.confirm(SubLanguage(LanguagePack(), 11) + ' ' + ID(cid).getElementsByTagName('a')[0].innerHTML); if (ask) { document.getElementById(cid).parentNode.removeChild(ID(cid)); var links = ID('tbody_links').innerHTML; for (i = 0; i < ID('tbody_links').getElementsByTagName('tr').length; i++) { ID('tbody_links').getElementsByTagName('tr')[i].setAttribute('id', 'Link[' + i + ']'); ID('tbody_links').getElementsByTagName('tr')[i].getElementsByTagName('img')[0].setAttribute('onclick', "deleteLinks('Link[" + i + "]');"); }; return GM_setValue('My_T4Links', links); }; }; function AddNewLink() { var links = '0'; if (ID('tbody_links').getElementsByTagName('tr')[0]) { links = ID('tbody_links').getElementsByTagName('tr').length; }; loc = window.location.href.split('/')[3]; new_link = window.prompt('' + SubLanguage(LanguagePack(), 9) + '', loc); if (!new_link) { return } new_link_name = window.prompt('' + SubLanguage(LanguagePack(), 10) + '', ""); if (!new_link_name) { return; }; newLinks = '<tr id="Link[' + links + ']"><td width="10%"> <img src="img/x.gif" class="del" onclick="deleteLinks('Link[' + links + ']');" style="cursor: pointer;" /></td><td style="font-size: 11.5px;"><a href="' + new_link + '" onmouseover="this.style.color = \'#99C01A\';" onmouseout="this.removeAttribute(\'style\');">' + new_link_name + '</a></td></tr>'; if (ID('tbody_links').getElementsByTagName('tr')[0]) { ID('tbody_links').innerHTML += newLinks } else { ID('tbody_links').innerHTML = newLinks }; GM_setValue('My_T4Links', ID('tbody_links').innerHTML); }; function NotePadPlus() { var Div = Create('div'); Div.id = 'xblock'; var txtArea = Create('textarea'); txtArea.id = 'notic'; var P = Create('p'); P.className = 'btn'; var input = Create('input'); input.type = 'button'; input.value = SubLanguage(LanguagePack(), 4); input.setAttribute('onclick', "GM_setValue('note.txt', ID('notic').value); alert('Saved');"); P.appendChild(input); txtArea.innerHTML = GM_getValue("note.txt"); Div.appendChild(txtArea); Div.appendChild(P); document.body.appendChild(Div); }; function CEDC() { var s = '<div id="Xeon" style="display: none;">'; s += document.getElementById("mapCoordEnter").getElementsByClassName("xCoord")[0].getElementsByTagName("label")[0].innerHTML + ' <input type="text" id="elep_x" maxsize="4" size="4" value="0"/> ' + document.getElementById("mapCoordEnter").getElementsByClassName("yCoord")[0].getElementsByTagName("label")[0].innerHTML + ' <input type="text" id="elep_y" maxsize="4" size="4" value="0"/> ' + '' + SubLanguage(LanguagePack(), 18) + ': <input type="text" id="rad_elep" maxsize="4" size="4" value="10"/> <input type="button" id="cElphantX" value="' + SubLanguage(LanguagePack(), 19) + '" /><br/>' + '<span id="sElphant" style="display: none;">' + SubLanguage(LanguagePack(), 20) + ' ' + SubLanguage(LanguagePack(), 21) + ' <span id="ele_done">0</span> ' + SubLanguage(LanguagePack(), 22) + ' <span id="ele_tot">0</span><span> | ' + SubLanguage(LanguagePack(), 23) + ': <span id="percex">0%</span></span><br/>' + '<table id="elep_fields" style="border: 0px solid; background-color: white; width: auto;"></table><br></div>'; return s; }; var Script = Create('script'); Script.setAttribute('type', 'text/javascript'); Script.innerHTML = GM_setValue + GM_getValue + LanguagePack + SubLanguage + xpath + Time + format + ReLoadTime + Create + ID + AddNewLink + deleteLinks + CLASS + TAG + C + MakeNum + jsPatch + httpRequest + htmltocontext + XMLGetM + XMLGetR + NotePadPlus + sh + GM_addStyle + pTime + tChange + cLang + setting + X_CE_Change + xtr + OnChange + TroopType + hMove; var target = TAG('head')[0].getElementsByTagName('script')[0]; target.parentNode.insertBefore(Script, target); var ResSplit = ["'l1': ", "'l2': ", "'l3': ", "'l4': "]; var MyRes = []; var pro = []; var per = []; var GM_Time = []; var MyPer = []; pro[0] = xpath("//div[@class='bodyWrapper']/script").snapshotItem(0).innerHTML.split(ResSplit[0])[1].split(',')[0] / 3600; pro[1] = xpath("//div[@class='bodyWrapper']/script").snapshotItem(0).innerHTML.split(ResSplit[1])[1].split(',')[0] / 3600; pro[2] = xpath("//div[@class='bodyWrapper']/script").snapshotItem(0).innerHTML.split(ResSplit[2])[1].split(',')[0] / 3600; pro[3] = xpath("//div[@class='bodyWrapper']/script").snapshotItem(0).innerHTML.split(ResSplit[3])[1].split('}')[0] / 3600; for(i=0;i<4;i++){ ID('res').getElementsByTagName('li')[i].innerHTML +=''+ '<div style="background-image: url('+trans+'); background-repeat: repeat; text-align: center;" id="resource_state['+i+']"></div>'; }; function ResourcePlusTimer(){for(i=0;i<4;i++){MyRes[i] = C(ID('l'+(i+1)).innerHTML.split('/')[0] - ID('l'+(i+1)).innerHTML.split('/')[1]); GM_Time[i] = Time(MyRes[i], pro[i]); ID('resource_state['+i+']').innerHTML+='<b id="xTimer['+(i+1)+']">'+GM_Time[i]+'</b><br>';};}; function ResourcePercent(){for(i=0;i<4;i++){MyPer[i] = NewMathPercent(ID('l'+(i+1)).innerHTML.split('/')[0] / ID('l'+(i+1)).innerHTML.split('/')[1] * 100); ID('resource_state['+i+']').innerHTML+='<span id="xPer['+(i+1)+']">'+MyPer[i]+'%</span><br>';};}; function ResourcePrud(){for(i=0;i<4;i++){ID('resource_state['+i+']').innerHTML+=''+C(pro[i] * 3600)+'';};}; function ReTime(){ for(i=0;i<4;i++){ if (ID('xTimer['+(i+1)+']')){ if (ID('xTimer['+(i+1)+']').innerHTML.match(/0:00:00/)) { } else { ID('xTimer['+(i+1)+']').innerHTML = format(ReLoadTime(ID('xTimer['+(i+1)+']').innerHTML) - 1); } }; if (ID('xPer['+(i+1)+']')){ ID('xPer['+(i+1)+']').innerHTML = NewMathPercent(ID('l'+(i+1)).innerHTML.split('/')[0] / ID('l'+(i+1)).innerHTML.split('/')[1] * 100) + '%'; }; }; return setTimeout(ReTime, 1000); }; function dorfA() { var cA = C(C(pro[0] * 3600) + C(pro[1] * 3600) + C(pro[2] * 3600) + C(pro[3] * 3600)); ID('production').getElementsByTagName('th')[0].innerHTML += '(' + cA + '):'; if (ID('troops').getElementsByTagName('tbody')[0]) { if (ID('troops').getElementsByTagName('tbody')[0].getElementsByTagName('tr')[0]) { var cL; var nm = 0; cL = ID('troops').getElementsByTagName('tbody')[0].getElementsByTagName('tr').length; for (i = 0; i < cL; i++) { nm = C(C(nm) + C(ID('troops').getElementsByTagName('tbody')[0].getElementsByTagName('tr')[i].getElementsByTagName('td')[1].innerHTML)); }; var th = ID('troops').getElementsByTagName('thead')[0].getElementsByTagName('th')[0]; th.innerHTML = th.innerHTML.replace(':', ' ('+nm+'):'); }; }; }; function getMap(x, y) { var tserver = 'http://' tserver += window.location.hostname; tserver += '/ajax.php'; $.getJSON(tserver, "cmd=mapPositionData&data[x]=" + x + "&data[y]=" + y + "&data[zoomLevel]=1&", function(data) { if (typeof data.data.tiles[49].c != 'undefined') { if (data.data.tiles[49].c.match("{k.f1}")) { $('<tr><td><img class="r4" src="img/x.gif" />9: </td><td>' + data.data.tiles[49].t + '</td></tr>').appendTo('#crop_fields'); } else if (data.data.tiles[49].c.match("{k.f6}")) { $('<tr><td><img class="r4" src="img/x.gif" />15: </td><td>' + data.data.tiles[49].t + '</td></tr>').appendTo('#crop_fields'); } } $('#crop_done').html(parseInt($('#crop_done').html()) + 1); $('#percx').html(Math.round($('#crop_done').html() / $('#crop_tot').html() * 100) + '%') }); }; function getElephant(x, y) { var tserver = 'http://' tserver += window.location.hostname; var server_link = tserver; tserver += '/ajax.php'; $.ajax({ url: tserver, data: "cmd=viewTileDetails&x=" + x + "&y=" + y, dataType: "html", success: function(data) { var obj = jQuery.parseJSON(data); data = obj.data.html; if (data.split('u40')[1]) { tr = $(data).find('img[class="unit u40"]').parent().parent(); num = parseInt($('.val', tr).html()); $('<tr><td><img src="img/x.gif" class="unit u40"></td><td><a href="' + server_link + '/position_details.php?x=' + x + '&y=' + y + '" target="_blank">(' + x + '|' + y + ')</a>(' + num + ')</td></tr>').appendTo('#elep_fields'); } $('#ele_done').html(parseInt($('#ele_done').html()) + 1); $('#percex').html(Math.round($('#ele_done').html() / $('#ele_tot').html() * 100) + '%') } }); }; function QuickSend() { var img = { attack: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH2wcGETotXvSOywAAAAd0RVh0QXV0aG9yAKmuzEgAAAAMdEVYdERlc2NyaXB0aW9uABMJISMAAAAKdEVYdENvcHlyaWdodACsD8w6AAAADnRFWHRDcmVhdGlvbiB0aW1lADX3DwkAAAAJdEVYdFNvZnR3YXJlAF1w/zoAAAALdEVYdERpc2NsYWltZXIAt8C0jwAAAAh0RVh0V2FybmluZwDAG+aHAAAAB3RFWHRTb3VyY2UA9f+D6wAAAAh0RVh0Q29tbWVudAD2zJa/AAAABnRFWHRUaXRsZQCo7tInAAACI0lEQVQokW3Lz0uTcQDH8c/3eR5jublfkZZrTNuWUTktDULE6FJ2KfKUB1uSByMaj0H3/oJ67BJEoOJBuoV16hBkOJY/xqPo09A9OpvP1G26Z9uzZ25j+3YMoje8jm+Eo4d0XkrRpKoHKKX4n6RaDMxLKRqOHlJGL9WwtqtD3M6PZ/IlP/4po5UfibG8sLarQy9VwTSZWZ6rFRBJ6IgktDcZ7e+U0cr+iKIJEaVAuGoBjWaWJ5RSrG4m/CtbKUGtWqwXm+tpZ6t5DAAVY3khohSIlc2pHedPjfm8jkkOAHze5qmceoQlWZnYrnMSQojQYGCgHJVQzSlodZt5n9cxBQAMAKTlRf9Vt03s9lh5LbWD1VgWxQqFoZxEt8fGX3PbxVR0wQ8A3La82THzfvqVz8m5rj8I8PJ+AXvpGMJyC9pd5+A9rePbzOvwarzy++GIbYUVxt8e2BrPinPB5VvHueRg2tiJuLwOk4GFWjEgu/alf11O79wbHB5uu3Q5xAHAGVPF1Ww3WCRpExfaZtF3tw8cy0JamIW0IcNhr7c0GSsuAOAS0o9A8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div[2]/div[3]/div[4]/div[2]/ul/li').snapshotLength; i++) { xpath('/html/body/div/div[2]/div[2]/div[3]/div[4]/div[2]/ul/li[' + (i + 1) + ']').snapshotItem(0).setAttribute("onmouseover", "this.getElementsByTagName('a')[0].style.backgroundColor = 'white';"); xpath('/html/body/div/div[2]/div[2]/div[3]/div[4]/div[2]/ul/li[' + (i + 1) + ']').snapshotItem(0).setAttribute("onmouseout", "this.getElementsByTagName('a')[0].style.backgroundColor = '';"); var get_xy = xpath('/html/body/div/div[2]/div[2]/div[3]/div[4]/div[2]/ul/li[' + (i + 1) + ']/a').snapshotItem(0).title; var g_name = xpath('/html/body/div/div[2]/div[2]/div[3]/div[4]/div[2]/ul/li[' + (i + 1) + ']/a').snapshotItem(0).innerHTML; document.body.innerHTML += '<div id="xy">' + get_xy + '</div>'; var Y = ID('xy').getElementsByClassName('coordinateY')[0].innerHTML.replace(')', '').replace('(', ''); var X = ID('xy').getElementsByClassName('coordinateX')[0].innerHTML.replace(')', '').replace('(', ''); var xy_id = (1 + (C(X) + 400) + (801 * Math.abs(C(Y) - 400))); var topA = '1'; var topB = '1'; if (i > 0) { topA = C(C(1) + C(C(18) * C(i))); topA = C(C(1) + C(C(18) * C(i))); }; if (RTL == 'rtl') { dir = 'left'; } else if (RTL == 'ltr') { dir = 'right'; }; var xStyleA = 'position: absolute; ' + dir + ': 137px; top: ' + topA + 'px; width: auto; cursor: pointer;'; var xStyleB = 'position: absolute; ' + dir + ': 152px; top: ' + topB + 'px; width: auto; cursor: pointer;'; var onclick_a = "location.href = 'a2b.php?z=" + xy_id + "';"; var onclick_b = "location.href = 'build.php?gid=17&z=" + xy_id + "';"; var send_res = '<img id="QS(r' + i + ')" onclick="' + onclick_b + '" style="' + xStyleB + '" src="' + img.sendRes + '" alt="' + SubLanguage(LanguagePack(), '5') + g_name + '" title="' + SubLanguage(LanguagePack(), 5) + g_name + '" />'; var send_arm = '<img id="QS(a' + i + ')" onclick="' + onclick_a + '" style="' + xStyleA + '" src="' + img.attack + '" alt="' + SubLanguage(LanguagePack(), '6') + g_name + '" title="' + SubLanguage(LanguagePack(), 6) + g_name + '" />'; xpath('/html/body/div/div[2]/div[2]/div[3]/div[4]/div[2]/ul/li[' + (i + 1) + ']').snapshotItem(0).innerHTML += send_res + send_arm; ID('QS(r' + i + ')').style.top = ID('QS(a' + i + ')').style.top; ID('xy').parentNode.removeChild(ID('xy')) }; }; function setup() { var pos; if (RTL == 'rtl') { pos = 'right'; } else { pos = 'left'; }; var Setting = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACK1JREFUeNqsVwtQVOcVPnvv7rIg4b0IiCCIyvKoCtSmUbFqrXHU6sZHaMdBbWo6mWkTjaEq+EzAIRaTMSapnThl8rBRUTCdxrRNwmNRpKCTovJeQYF9L7vs7t33q+e/uZusiMi0vTNndvfe//7fd17f+ZcHU7y2bd8RmZiQeEIkEhUnJCSIkmckwbRp04CmaZDfuwc9Pb2yk394cyUu9R19vWIvRVG7vV5vklgsBo1GAzwePvB6a+0OxwFc14/r/GRf3hSw6QNlh/4oEAh2STdugPm5OcCjKFAoldDa+i/8VEFfX1/je6dP7cC1hvLjb/YlJSQmLFu+FMRxceD3+xGcB06nE/r778HX9Q2gUAxnnnn/vT5Cgv8k8H0Hymry8/IQez0LbGWsUN/YBLLmZujq7KxkGMtws6ypBde636io7Js3d25CYeES6Lh9F65fbwWMBGvx0+MhNzsLkpOT4IOzf+7B9SI052QE6P2lB2vyC/Kkm6QbYXTUAAajERoQvLe3V/9W1YktuEaHZkZj9pbsf35GYhKCL0aCMvB6PIBRA7PZTDyGru4uaKivZ4NO0xTZP2wyAiTs6Hk+gm+AB0MjYLVZoalJBnK5XIHgW3HNEAk5mgtNGBERcZSEveN2JwtOUTRbHyaTCV4/emQNiVDQ/sbAF2pi8MM1PywokG56bgPcfzCEm4wBhXmMjY0B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ThFcJhgwKUkvvbRaaE4+RmXbqRFVVX8O27PsQABMutj0WZwk5DiRqaRK7ixyfR8iiQCU9bM1RHrULASCrhzmpBTSB/XZvb/wvNH1JU7xgs4x+z/g0P/3+s/AgwAdGqB/H5XELMAAAAASUVORK5CYII='; var sIMG = Create('img'); sIMG.src = Setting; sIMG.id = 'setup'; sIMG.title = SubLanguage(LanguagePack(), '0'); sIMG.alt = SubLanguage(LanguagePack(), '0'); sIMG.setAttribute('style', 'cursor: pointer;'); sIMG.setAttribute('onclick', 'setting();'); ID('t4tools').appendChild(sIMG); }; NoteIMG = { nIMG: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH2wUBFxoz0uWAYQAAAAd0RVh0QXV0aG9yAKmuzEgAAAAMdEVYdERlc2NyaXB0aW9uABMJISMAAAAKdEVYdENvcHlyaWdodACsD8w6AAAADnRFWHRDcmVhdGlvbiB0aW1lADX3DwkAAAAJdEVYdFNvZnR3YXJlAF1w/zoAAAALdEVYdERpc2NsYWltZXIAt8C0jwAAAAh0RVh0V2FybmluZwDAG+aHAAAAB3RFWHRTb3VyY2UA9f+D6wAAAAh0RVh0Q29tbWVudAD2zJa/AAAABnRFWHRUaXRsZQCo7tInAAAGYElEQVRIibWUe2yVZx3HP8976bn2tKctpRSoNNC1W2EbY4Ghc8FlXNQMNCFixLhMjSbqEq8Ys5glXhIjLhonZgpmxgtTI0SyOcDCwAYhCHIro1wLLS2Hcs7pub/nnPd9n+fxj5U6SrvsD/kmb97kTd7f5/f9Pr/nJ97cs0srpWicMXPowcVLVxumeZ57KOPc6f9w/doVsmOptjMnju6W0r/vngJb587jrdPHsSybsuPMO3Pi33t8z5t/z4BPfvhjW03Lkttf2YJhCEqFfHvfqWNveJ634F4Ahdaa5OiNLZu/t+lLN4eHiNbG+NDqtSzo7L6y6JFlayzLuvz/BBoATc2ztn7zuz/euWjxUoauXmb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+zHdNj9/6zodxmoj88Rb9n+8Iy4/y0+fzjdh81hf0+sDs0oZ9Ok/9Sn/72gdy15992td9M5eIDKb73z/yCamA4w5n4o/9ghB+zlf+wl/v2X1+SD+T2+bu6bf96L9+7N/zUuZ+YNf+1f9+9Dbp8Wf18Dd/Xff+9Pd07U9v9ofx9Yf/REf/+U/06gd9+7f9sj5+09f/eweIUQIrEDQiUJTAhAoXMmzo8CHEiBInUqxo8SLGjBo3ctSIUCFCghWeJPzY8STKlCpXsmzp8qTJgwlFGhwV8yXOnDp38uyZ8eZNkSRt+ixq9CjSpBeBLgxZsKTSqFKnUl3JFORMgkNvVu3G6vVr16tQFdKUCfYs2rQ8xZpdKHSs2rhy5y5tatdhWaJ09/LtqxduW7xaA/stbJgq278Q8yo+7Pjx2ruAI75tDPky5pSJuVJ+ajkz6NAUN2es/Fk06tSNE1vMy1k1bMykOVZ+Hft24dkdGdvG7Tuu7pO1fxPfGxylSCqEizP3ejylyCaTm1NX+lxllCJFKmTJoqU7+PDgyZAvb/48+vTqz4tZT6b9evjq5aenj94+e/f4ze+PX18/gO4JOCCBBRpo4BAAABAQADs=" }; GM_addStyle( "div#xblock { background-color: transparent; z-index: 99000; background-image: url(" + NoteIMG.Note + "); height: 355px; margin: 0 auto; position: relative; width: 290px; position: absolute; top: 120px; right: 0px;}" + "div#xblock textarea { background-image: url(" + NoteIMG.Line + "); background-repeat: repeat; font-size: 13px; border: medium none; height: 256px; line-height: 16px; padding: 0; position: absolute; right: 12px; top: 40px; width: 265px;}" + "div#xblock p.btn { position: relative; top: 305px; text-align: center; margin: 14px 0; padding: 0;}" ); var pos; if(RTL == 'rtl'){pos = 'right'}else{pos = 'left'} var cIMG = Create('img'); cIMG.setAttribute('src', NoteIMG.nIMG); cIMG.setAttribute('alt', SubLanguage(LanguagePack(), '1')); cIMG.setAttribute('title', SubLanguage(LanguagePack(), '1')); cIMG.setAttribute('onclick', 'sh();'); cIMG.setAttribute('style', 'cursor: pointer;'); ID('t4tools').appendChild(cIMG); function SearchCropFields() { $("#crop_fields").empty(); $("#scx").attr('style', ''); var originalX = parseInt($("#crop_x").val()); var originalY = parseInt($("#crop_y").val()); var radius = parseInt($("#rad").val()); var minX = (originalX - radius); var maxX = originalX + radius; var minY = (originalY - radius); var maxY = originalY + radius; $("#crop_tot").html((2 * radius + 1) * (2 * radius + 1)); $("#crop_done").html(0); y = minY; while (y <= maxY) { x = minX; while (x <= maxX) { getMap(x, y); x++; } y++; } }; function SearchElephants() { $("#elep_fields").empty(); $("#sElphant").attr('style', ''); var originalX = parseInt($("#elep_x").val()); var originalY = parseInt($("#elep_y").val()); var radius = parseInt($("#rad_elep").val()); var minX = (originalX - radius); var maxX = originalX + radius; var minY = (originalY - radius); var maxY = originalY + radius; $("#ele_tot").html((2 * radius + 1) * (2 * radius + 1)); $("#ele_done").html(0); y = minY; while (y <= maxY) { x = minX; while (x <= maxX) { getElephant(x, y, maxX * maxY); x++; } y++; } }; function Resource_Needed() { if (ID('contract')) { if (ID('contract').innerHTML.match(/resources r/) && CLASS('showCosts')[0]) { for (i = 0; i < xpath("//div[@id='contract']").snapshotLength; i++) { var res = []; var Total = []; var Timer = []; var Color = []; var sTime = []; var xxs = []; var NPC; var NPC_Timer; var NPC_Time; var table = Create('table'); table.setAttribute('cellspacing', '0'); table.setAttribute('style', 'width: auto;'); var tb = Create('tbody'); var tf = Create('tfoot') for (c = 0; c < 4; c++) { if (xpath("//div[@id='contract']").snapshotLength >= 2) { res[c] = xpath("//div[@id='contract']/div[2]/div[1]/span[" + (c + 1) + "]").snapshotItem(i).innerHTML.split(">")[1]; } else { res[c] = xpath("//div[@id='contract']/div[2]/div[1]/span[" + (c + 1) + "]").snapshotItem(0).innerHTML.split(">")[1]; }; var SaveRes = []; Total[c] = C(ID('l' + (c + 1)).innerHTML.split('/')[0] - res[c]); if (Total[c] < 0) { Timer[c] = Time(Total[c], pro[c]); Color[c] = 'style="color: red; font-size: 12px;"'; SaveRes[c] = Total[c]; } else { Total[c] = '+' + Total[c]; Timer[c] = ''; Color[c] = 'style="color: green; font-size: 11px;"'; SaveRes[c] = '0'; }; if (Timer[c] == '') { xxs[c] = ''; } else { xxs[c] = ''; }; tb.innerHTML += '<tr><td><img src="img/x.gif" class="r' + (c + 1) + '" /></td><td ' + Color[c] + '>' + Total[c] + '</td><td class="xT4_Time" style="font-size: 11px;">' + Timer[c] + '</td><td style="font-size: 11px;">' + xxs[c] + '</td></tr><tr>'; }; table.appendChild(tb); var npc = C(C(Total[0]) + C(Total[1]) + C(Total[2]) + C(Total[3])); if (npc > 0) { npc = '+' + npc; Color[5] = 'color: green;'; } else { Color[5] = 'color: red;'; }; tf.innerHTML = '<tr><td colspan="4"><hr style="margin: 1px 0;"></td></tr><tr><td style="text-align:center;"><img class="npc" src="img/x.gif" /></td><td colspan="4" style="font-size: 11px;">(( <span style="' + Color[5] + '">' + npc + '</span> ))</td></tr>'; table.appendChild(tf); xpath("//div[@id='contract']").snapshotItem(i).appendChild(table); }; }; function RTM() { for (i = 0; i < CLASS('xT4_Time').length; i++) { if (CLASS('xT4_Time')[i].innerHTML == '' || CLASS('xT4_Time')[i].innerHTML.match(/0:00:00/)) { } else { CLASS('xT4_Time')[i].innerHTML = format(ReLoadTime(CLASS('xT4_Time')[i].innerHTML) - 1); }; }; return setTimeout(RTM, 1000); }; RTM(); }; }; /*function VillageOverView(){ var src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAuJJREFUeNqkU8lPE1EY/6ad6dAOSwttLcUolIrAASPVWEncIulBjVESl+jZg4l/ggdvnkz06EU8FA9iNMaIYvRgmhASUw2NQJQuLBZZOixtp515s/k9iojRxIOT/ObNm2/9fQtjmib8z8PS14n+pft4hP4ijyNuIzhEEYOJhq4TTdNAU9VfDnRdj4Fphi5F/CFFqWTEsgw8eTcP54837hbXiSebk8nsQlkydJhA8fefESz0hd6i6HV4YGg2ziAlqaCCIutAI6nEYATO6gv6HLvPHPZ02lgzgsECvzlQFcUPhtZzOuwN5ZYkqKoCIIqKxgQG32YKo+OL1VJZCa6KcmvkgHs/A/pF0zCcSGczA0L6mr18ML9SwtRNePRyKm5D1pqiACrF57Lrb17FZsqySgLikhTc5ea70OaIjnXYqAFRlJ6GaraeRk1kxBTeRx8+m6jkiE4sFuYjMvMlpnLdHf7ane4aVkGdYyh9UaEgy21WC+PQTANSmeU1XdNuYPS7iHi5WITC6hrNciidWeZRpwl1A2hzELGVgVTWjLyqmRvfRgmpcFwU+xFFCrTFMSmfj1pZVpA0s5YDg+oJW20ksvxhuSDX6gzLe9yCkp3LncLIQxzPw+Z8UIR9vjqnKBtgBbWENl+3d+H97DdxUgQu7WppwlqRozg03TJmgjI42dcTwjPs7mxtRR2Yy4oreB+hsooDQmLTX2YSVU4hmbUK6UBv2F6zwxXBWoQwVUiVGNh3oTeULFvAEOyQHJ9Oos1TOo0bDpDnmlwsPY4PDn9y1NlT83xd0jwULjZePleDxYN1Kw9jBSu46h0wFn0eJ5JEo88XX9+q1KAwcAUs3va0svds+fODUqezLSBAS7NN8ftMOkwGDoXdYsKCAdBx/Wooca+fmk1qixNRhm4jwzD0B62qh7G7GsDTLkC1n2NI3gBv1zVo2NP2x5qJU5PGyJ2b2x3YEA6EHcH8Y4vpxmm0fD8EGADFhK0+biwMlwAAAABJRU5ErkJggg%3D%3D'; var img = Create('img'); img.src = src; img.style.cursor = 'pointer'; img.style.float = 'right'; $(img).bind('click', function(){ var getTR = ID('overview').getElementsByTagName('tbody')[0].getElementsByTagName('tr').length; var getLinks; for(c=0;c<getTR;c++){ getLinks = ID('overview').getElementsByTagName('tbody')[0].getElementsByTagName('tr')[c].getElementsByTagName('a')[0].getAttribute('href'); GM_xmlhttpRequest({ url: getLinks, method: 'GET', onload: function(data){ var A = $(data); if(A.find('#movements tbody')){ ;//att ID('overview').getElementsByTagName('tbody')[0].getElementsByTagName('tr')[c].getElementsByClassName('att')[0].innerHTML = A.toString().getElementById('movements').getElementsByTagName('tbody')[0].getElementsByTagName('td')[0].innerHTML; } }}); }; }); ID('overview').getElementsByTagName('td')[0].appendChild(img); };*/ function ViewMessege() { if (exp(/nachrichten\b[^>]*php/)) { IMG_open = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAG3SURBVHjapFPBSgJRFD3WLALbjDomiBYWVESLmIqMkSyiTVCbFn1BLfydXNQPFLRuE5IIUhBMrSQhkjAEzanZ5EIdtXffzDgOZBuF49z7zjuHM/fN8/R6PYzyE04vVHqmZFk+Zk/FWs8zXDGkrT7F4OJVVeW8wP6ykiQlD+aB0KTJVn+gvH1DKdRxRv2SBMz63Hy5LCn1ev1ojPXJaDSKoBe4zqjIqCVUPnXEI8BuzBRQTWvE0R7aSxrSCp1OBwSjO47Dbbn/bkYXrnp5WgQIVm/rBMMw0G63ucFNToUoihyLEdFl8PKhQ9dN7G/JpoZpBSo4uhPYSzgJ2gMJqJ4LM8Ow2O9tHTdotVowOsDdvZNgJjSQgHHvVSfBzqbMNdyAilazyV0TG8MThIMih92ThrQ8QZMSsMWHRyfBVMA9g5rmJIivy1zjJLAM1laHn4LfJ3LYva3rD7H7zxf9F+caIuEy94rKV4OTYb8XC+wYV2IB3j+XNBTZMQ7yfQM6y1qthmJRR6Nhbih6vXhic7gNmAaapvF3H+RpTqT1yCfnWbZWsC5P3kqoWJcnZfXpIfySZ9Tr/CvAAFL4JRqBf1s8AAAAAElFTkSuQmCC'; if (xpath('//table[@id="overview"]/tbody//td[@class="noData"]').snapshotItem(0)) { } else { if (xpath('//table[@id="overview"]/thead/tr/th').snapshotItem(0)) { xpath('//table[@id="overview"]/thead/tr/th').snapshotItem(0).setAttribute('colspan', '3'); for (c = 0; c < xpath('//table[@id="overview"]/tbody/tr').snapshotLength; c++) { var Target = xpath('//table[@id="overview"]/tbody/tr[' + (c + 1) + ']/td[3]').snapshotItem(0); var td = Create('td'); td.setAttribute('class', 'sel'); var a = Create('a'); a.setAttribute('href', 'javascript:void(0)'); var image = Create('img'); image.setAttribute('src', IMG_open); image.setAttribute('onclick', 'XMLGetM(' + (c + 1) + '); return false;'); a.appendChild(image); td.appendChild(a); Target.parentNode.insertBefore(td, Target); }; }; }; }; }; function ViewRep() { if (exp(/berichte\b[^>]*php/)) { IMG_open = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAG3SURBVHjapFPBSgJRFD3WLALbjDomiBYWVESLmIqMkSyiTVCbFn1BLfydXNQPFLRuE5IIUhBMrSQhkjAEzanZ5EIdtXffzDgOZBuF49z7zjuHM/fN8/R6PYzyE04vVHqmZFk+Zk/FWs8zXDGkrT7F4OJVVeW8wP6ykiQlD+aB0KTJVn+gvH1DKdRxRv2SBMz63Hy5LCn1ev1ojPXJaDSKoBe4zqjIqCVUPnXEI8BuzBRQTWvE0R7aSxrSCp1OBwSjO47Dbbn/bkYXrnp5WgQIVm/rBMMw0G63ucFNToUoihyLEdFl8PKhQ9dN7G/JpoZpBSo4uhPYSzgJ2gMJqJ4LM8Ow2O9tHTdotVowOsDdvZNgJjSQgHHvVSfBzqbMNdyAilazyV0TG8MThIMih92ThrQ8QZMSsMWHRyfBVMA9g5rmJIivy1zjJLAM1laHn4LfJ3LYva3rD7H7zxf9F+caIuEy94rKV4OTYb8XC+wYV2IB3j+XNBTZMQ7yfQM6y1qthmJRR6Nhbih6vXhic7gNmAaapvF3H+RpTqT1yCfnWbZWsC5P3kqoWJcnZfXpIfySZ9Tr/CvAAFL4JRqBf1s8AAAAAElFTkSuQmCC'; if (xpath('//table[@id="overview"]/tbody//td[@class="noData"]').snapshotItem(0)) { } else { if (xpath('//table[@id="overview"]/thead/tr/th').snapshotItem(0)) { xpath('//table[@id="overview"]/thead/tr/th').snapshotItem(0).setAttribute('colspan', '3'); for (c = 0; c < xpath('//table[@id="overview"]/tbody/tr').snapshotLength; c++) { var Target = xpath('//table[@id="overview"]/tbody/tr[' + (c + 1) + ']/td[3]').snapshotItem(0); var td = Create('td'); td.setAttribute('class', 'sel'); var a = Create('a'); a.setAttribute('href', 'javascript:void(0)'); var image = Create('img'); image.setAttribute('src', IMG_open); image.setAttribute('onclick', 'XMLGetR(' + (c + 1) + '); return false;'); a.appendChild(image); td.appendChild(a); Target.parentNode.insertBefore(td, Target); }; }; }; }; }; function Show_Help_Links() { // الروابط المساعدة GM_addStyle('tbody#hlink tr td {font-size: 10.5px;}.Xurl {text-align: left;}'); $('' + '<br><div style="border: 1px solid silver; background-color: rgb(255, 255, 224);">' + '<table cellspacing="0" cellpadding="1" style="width: 98.5%; margin: 1px; border: 1px solid silver;" id="llist">' + '<thead><tr><td colspan="2"><b style="color: gray;">' + SubLanguage(LanguagePack(), 12) + '</b>:</td></tr></thead>' + '<tbody id="hlink">' + '<tr><td><a href="http://travian.kirilloid.ru/villages_res.php" onmouseover="this.style.color = \'blue\';" onmouseout="this.removeAttribute(\'style\');" target="_blank">' + SubLanguage(LanguagePack(), 13) + '</a></td></tr>' + '<tr><td><a href="http://travian.kirilloid.ru/warsim2.php" onmouseover="this.style.color = \'blue\';" onmouseout="this.removeAttribute(\'style\');" target="_blank">' + SubLanguage(LanguagePack(), 14) + '</a></td></tr>' + '<tr><td><a href="http://travian.kirilloid.ru/distance.php" onmouseover="this.style.color = \'blue\';" onmouseout="this.removeAttribute(\'style\');" target="_blank">' + SubLanguage(LanguagePack(), 15) + '</a></td></tr>' + '<tr><td><a href="http://www.traviantoolbox.com/" onmouseover="this.style.color = \'blue\';" onmouseout="this.removeAttribute(\'style\');" target="_blank">Travian Toolbox</a></td></tr>' + '<tr><td><a href="http://travmap.shishnet.org" onmouseover="this.style.color = \'blue\';" onmouseout="this.removeAttribute(\'style\');" target="_blank">TravMap</a></td></tr>' + '<tr><td><a href="http://travian-live.com/" onmouseover="this.style.color = \'blue\';" onmouseout="this.removeAttribute(\'style\');" target="_blank">Travian-Live</a></td></tr>' + '</tbody>' + '</table></div>').appendTo($('#side_info')); }; function AttackInfo() { for (i = 0; i < 10; i++) { document.getElementsByName('t' + (i + 1))[0].setAttribute('onclick', 'return OnChange();'); document.getElementsByName('t' + (i + 1))[0].setAttribute('onkeypress', 'return OnChange();'); document.getElementsByName('t' + (i + 1))[0].setAttribute('onblur', 'return OnChange();'); document.getElementsByName('t' + (i + 1))[0].setAttribute('onmouseover', 'return OnChange();'); document.getElementsByName('t' + (i + 1))[0].setAttribute('onkeyup', 'return OnChange();'); }; var HTML = '<table cellspacing="1" bgcolor="silver" style="width: auto;">' + '<tbody>' + '<tr>' + '<td colspan="2"><img src="' + imgatti + '">×<span id="xtr[1]">0</span></td>' + '<td colspan="2"><img src="' + imgattc + '">×<span id="xtrs[1]">0</span></td></tr>' + '<tr><td colspan="2"><img src="img/x.gif" class="def_i">×<span id="xtr[2]">0</span></td>' + '<td colspan="2"><img src="img/x.gif" class="def_c">×<span id="xtr[3]">0</span></td></tr>' + '<tr><td colspan="2"><img class="carry full" src="img/x.gif">×<span id="xtr[4]">0</span></td>' + '<td colspan="2"><img class="r5" src="img/x.gif">×<span id="xtr[5]">0</span></td></tr><tr>' + '<td><img class="r1" src="img/x.gif">×<span id="xtr[6]">0</span></td>' + '<td><img class="r2" src="img/x.gif">×<span id="xtr[7]">0</span></td>' + '<td><img class="r3" src="img/x.gif">×<span id="xtr[8]">0</span></td>' + '<td><img class="r4" src="img/x.gif">×<span id="xtr[9]">0</span></td>' + '</tr>' + '</tbody>' + '</table>'; $(HTML).insertBefore($('.destination')); }; function BuildingView() { if (exp(/dorf2\b[^>]*php/) && ID('village_map')) { var IMG = function(cName) { return '<img src="img/x.gif" alt="' + CLASS('r' + cName)[0].getAttribute("alt") + '" title="' + CLASS('r' + cName)[0].getAttribute("title") + '" class="r' + cName + '" />'; }; var PN = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH2wgdChYDrijjdAAAAAd0RVh0QXV0aG9yAKmuzEgAAAAMdEVYdERlc2NyaXB0aW9uABMJISMAAAAKdEVYdENvcHlyaWdodACsD8w6AAAADnRFWHRDcmVhdGlvbiB0aW1lADX3DwkAAAAJdEVYdFNvZnR3YXJlAF1w/zoAAAALdEVYdERpc2NsYWltZXIAt8C0jwAAAAh0RVh0V2FybmluZwDAG+aHAAAAB3RFWHRTb3VyY2UA9f+D6wAAAAh0RVh0Q29tbWVudAD2zJa/AAAABnRFWHRUaXRsZQCo7tInAAACU0lEQVQ4jZ2SsU8TARTGf3ft9XrXEgoBi6IWBasxRCcTFWKCMQwmGkcTHfwD/BccTBiYSGR2McbowoKbkYWBGAOBhGpIBKGlyF1p6bX0ene9a88BKGIZjN/08vLe73358gRfG/f5Ty3MTRE8LApmEoCwEABAz5WZ+bpDXWzw6G4/bWERgIAiAzA01A+wDwA4c64LJRSiZjnUXRE9V2Y4qTDxZol0psirl6OEFBmrViNQPzItHhbp1QJW2SXc3olu1PG0Mk9G+nl2q5eZ+Szvp1PsGjax7ihypLl25ODj53VU+ScBSUXTitxLSGyvFejpbqPhVJidzdAIhnn84BJWvsTFvp7jgKWVIooqYVUNMls5rrafB2B500CUo+imxeKiRn6rhFmxeTt85TgAwKq6JOIKiXiC17ObZNIGyxkTOejx96GWDBRVIhFXANguugDcud3H5PMbPBzsoVBy6FQFng6dYiB2BGg68C2Ts70x1rImWnaXd2Oj3Lw/CHsWI990ym4A3TARk1GuX4i2Ai53RGkTRAzbpSsWAqBmRankHbIl6yCPCrm8w6Nr3a2A0zEFPFgr2EQkgReTX+j78J0Ns0YqaxBXJNqDAoWqy/yPUiugKgqs5vfwBDBdn5Vdm1TRxvEgEgAJAftg1hVPyOBTaps9T0SVZIqWA4AcBFkQ8RqQrXgExf0P/GXWWgG65TLYESaiSHTGO9jcsUmly9j1AILoHh/+Q82eKskYdgNwGRsZIJmIMDW3zsT0BhDCxUev1HH8BlSrTYDga+P+wtzUCex/02+Ma/vfRtDi1QAAAABJRU5ErkJggg=='; var Div = Create('div'); Div.align = 'center'; var Table = Create('table'); Table.setAttribute('style', 'border-collapse: collapse; width: auto; background-color: transparent; z-index: 10000;box-shadow: 0px 0px 10px 3px;'); Table.cellSpacing = '4'; var Tbody = Create('tbody'); Tbody.innerHTML = '<tr id="bList[1]"></tr><tr id="bList[2]"></tr><tr id="bList[3]"></tr><tr id="bList[4]"></tr><tr id="bList[5]"></tr><tr id="bList[6]"></tr><tr id="bList[7]"></tr>'; GM_addStyle('.bList {border: 1px solid black; width: auto; box-shadow: 0px 0px 5px 0px;}'); Table.appendChild(Tbody); Div.appendChild(Table); ID('mid').appendChild(Div); for (i = 0; i < xpath('//div[@id="village_map"]/img[contains(@class, "building g")]').snapshotLength; i++) { var TypeName = xpath('//div[@id="village_map"]/img[contains(@class, "building g")]').snapshotItem(i).className.match(/\d+/g); var ImageClass = xpath('//div[@id="village_map"]/img[contains(@class, "building g")]').snapshotItem(i).className; var Level = xpath('//div[@id="village_map"]/img[contains(@class, "building g")]').snapshotItem(i).alt.match(/\d+/g); var Name = xpath('//div[@id="village_map"]/img[contains(@class, "building g")]').snapshotItem(i).getAttribute('alt'); var Color = []; var TypeU; var CountTime = []; var img = []; var available = ''; if (bCost[TypeName][C(Level) + 1]) { var wood = C(C(ID('l1').innerHTML) - C(bCost[TypeName][C(Level) + 1][0])); var clay = C(C(ID('l2').innerHTML) - C(bCost[TypeName][C(Level) + 1][1])); var iron = C(C(ID('l3').innerHTML) - C(bCost[TypeName][C(Level) + 1][2])); var crop = C(C(ID('l4').innerHTML) - C(bCost[TypeName][C(Level) + 1][3])); var NPC = C(C(crop) + C(iron) + C(clay) + C(wood)); var NPC_href = '<a href="build.php?gid=17&t=3&r1=' + C(bCost[TypeName][C(Level) + 1][0]) + '&r2=' + C(bCost[TypeName][C(Level) + 1][1]) + '&r3=' + C(bCost[TypeName][C(Level) + 1][2]) + '&r4=' + C(bCost[TypeName][C(Level) + 1][3]) + '"><img src="img/x.gif" class="npc" /></a>'; if (NPC > 0) { Color[5] = 'travian_NPC'; } else { Color[5] = 'red'; }; for (b = 0; b < 4; b++) { img[(b + 1)] = IMG('' + (b + 1) + ''); Color[(b + 1)] = 'darkgreen'; }; if (wood < 0) { Color[1] = 'gray'; CountTime[1] = '<font style="font-size: 11px" class="xbTime">' + Time(wood, pro[0]) + '</font><br>'; } else { wood = '+' + wood + '<br>'; CountTime[1] = ''; }; if (clay < 0) { Color[2] = 'gray'; CountTime[2] = '<font style="font-size: 11px" class="xbTime">' + Time(clay, pro[1]) + '</font><br>'; } else { clay = '+' + clay + '<br>'; CountTime[2] = ''; }; if (iron < 0) { Color[3] = 'gray'; CountTime[3] = '<font style="font-size: 11px" class="xbTime">' + Time(iron, pro[2]) + '</font><br>'; } else { iron = '+' + iron + '<br>'; CountTime[3] = ''; }; if (crop < 0) { Color[4] = 'gray'; CountTime[4] = '<font style="font-size: 11px" class="xbTime">' + Time(crop, pro[3]) + '</font><br>'; } else { crop = '+' + crop + '<br>'; CountTime[4] = ''; }; var xCrop = C(C(bCost[TypeName][Level][5])) + ' -->' + C(C(bCost[TypeName][C(Level) + 1][5])) + ' =[+' + C(C(bCost[TypeName][C(Level) + 1][5]) - C(bCost[TypeName][Level][5])) + ']'; var pnx = C(C(bCost[TypeName][Level][4])) + ' -->' + C(C(bCost[TypeName][C(Level) + 1][4])) var X = '' + '<td class="bList"><center><a href="build.php?gid=' + TypeName + '">' + Name + '</a></center><br>' + '<a href="build.php?gid=' + TypeName + '"><img src="img/x.gif" class="' + ImageClass + '" title="' + Name + '" style="float: left;" /></a>' + '<span style="float: left;">' + '' + img[1] + ' <font color="' + Color[1] + '" style="font-size: 11.5px">' + wood + '</font> ' + CountTime[1] + ' ' + '' + img[2] + ' <font color="' + Color[2] + '" style="font-size: 11.5px">' + clay + '</font> ' + CountTime[2] + ' ' + '' + img[3] + ' <font color="' + Color[3] + '" style="font-size: 11.5px">' + iron + '</font> ' + CountTime[3] + ' ' + '' + img[4] + ' <font color="' + Color[4] + '" style="font-size: 11.5px">' + crop + '</font> ' + CountTime[4] + ' ' + '' + available + '<hr style="margin: 5px;">' + '' + NPC_href + '--><font color="' + Color[5] + '" style="font-size: 11.5px">' + NPC + '</font><br>' + '' + IMG('5') + ' <font style="font-size: 11px" color="red">' + xCrop + '</font><br>' + '<img src="' + PN + '" /> <font style="font-size: 11px" color="blue">' + pnx + '</font>' + '</span>' + '</td>'; } else { var X = ''; }; if (!ID('bList[1]').childNodes[2]) { ID('bList[1]').innerHTML += X; } else if (!ID('bList[2]').childNodes[2]) { ID('bList[2]').innerHTML += X; } else if (!ID('bList[3]').childNodes[2]) { ID('bList[3]').innerHTML += X; } else if (!ID('bList[4]').childNodes[2]) { ID('bList[4]').innerHTML += X; } else if (!ID('bList[5]').childNodes[2]) { ID('bList[5]').innerHTML += X; } }; }; }; function ViewCropFind() { $('#Searcher').append(CCDC()); document.getElementById('cFinderX').addEventListener('click', SearchCropFields, true); }; function ViewElphFind() { $('#Searcher').append(CEDC()); document.getElementById('cElphantX').addEventListener('click', SearchElephants, true); }; function xbt() { if(CLASS('xbTime')[0]){ for (i=0; i<CLASS('xbTime').length; i++){ if (CLASS('xbTime')[i].innerHTML == '' || CLASS('xbTime')[i].innerHTML.match(/0:00:00/)) { } else { CLASS('xbTime')[i].innerHTML = format(ReLoadTime(CLASS('xbTime')[i].innerHTML) - 1); }; }; return setTimeout(xbt, 1000); } } function ReportX() { if (CLASS('report_content')[0] && ID('attacker') && ID('report_surround')) { var attacker = xpath('//table[@id="attacker"]/tbody[1]/tr[1]/td').snapshotLength; var pos; if (RTL == 'ltr') { pos = 'style="text-align: left;"'; } else { pos = 'style="text-align: right; font-size: 11px;"'; }; var Munit = []; var Nunit = []; var Dunit = []; var Xunit = []; var Def_A = []; var Def_B = []; var Def_C = []; var Def_D = []; $('<tr>' + '<th>' + '' + SubLanguage(LanguagePack(), 32) + ':<br>' + '<hr style="margin: 0px 0px;" /><br>' + '' + SubLanguage(LanguagePack(), 34) + ':' +/* '<hr style="margin: 0px 0px;" /><br>' + '' + SubLanguage(LanguagePack(), 35) + ':' +*/ '</th>' + '<td colspan="11" ' + pos + '>' + '<img src="' + Send_attack + '" />(<span id="AttX">0</span>) | ' + '<img src="' + imgatti + '" /><span id="iAttX">0</span> | ' + '<img src="' + imgattc + '" /><span id="cAttX">0</span><br><hr style="margin: 0px 0px;" /><br>' + '<img src="' + Send_resource + '" />(<span id="aRes">0</span>) | ' + '<img src="img/x.gif" class="r1" /><span id="aRes[0]">0</span> | ' + '<img src="img/x.gif" class="r2" /><span id="aRes[1]">0</span> | ' + '<img src="img/x.gif" class="r3" /><span id="aRes[2]">0</span> | ' + '<img src="img/x.gif" class="r4" /><span id="aRes[3]">0</span> | ' + '<img src="img/x.gif" class="r5" /><span id="aRes[4]">0</span>' + /* '<br><hr style="margin: 0px 0px;" /><br>' + '<span>' + SubLanguage(LanguagePack(), 36) + '(<span id="aInfosA">0</span>%</span>) | ' + '<span>' + SubLanguage(LanguagePack(), 37) + '(<span id="aInfosB">0</span>%</span>)' +*/ '</td></tr>').appendTo(xpath('//td[@class="report_content"]/table[@id="attacker"]/tbody[@class="units last"]').snapshotItem(0)); $('<tr>' + '<th>' + '' + SubLanguage(LanguagePack(), 33) + ':<br>' + '<hr style="margin: 0px 0px;" /><br>' + '' + SubLanguage(LanguagePack(), 34) + ':' +/* '<hr style="margin: 0px 0px;" /><br>' + '' + SubLanguage(LanguagePack(), 35) + ':' +*/ '</th>' + '<td colspan="11" ' + pos + '>' + '<img src="img/x.gif" class="def_all" />(<span id="DefX">0</span>) | ' + '<img src="img/x.gif" class="def_i" /><span id="iDefX">0</span> | ' + '<img src="img/x.gif" class="def_c" /><span id="cDefX">0</span><br><hr style="margin: 0px 0px;" /><br>' + '<img src="' + Send_resource + '" />(<span id="bRes">0</span>) | ' + '<img src="img/x.gif" class="r1" /><span id="bRes[0]">0</span> | ' + '<img src="img/x.gif" class="r2" /><span id="bRes[1]">0</span> | ' + '<img src="img/x.gif" class="r3" /><span id="bRes[2]">0</span> | ' + '<img src="img/x.gif" class="r4" /><span id="bRes[3]">0</span> | ' + '<img src="img/x.gif" class="r5" /><span id="bRes[4]">0</span>' +/* '<br><hr style="margin: 0px 0px;" /><br>' + '<span>' + SubLanguage(LanguagePack(), 36) + '(<span id="bInfosA">0</span>%</span>) | ' + '<span>' + SubLanguage(LanguagePack(), 37) + '(<span id="bInfosB">0</span>%</span>)' +*/ '</td></tr>').appendTo(xpath('//td[@class="report_content"]/table[2]/tbody[@class="units last"]').snapshotItem(0)); if (ID('attacker').getElementsByClassName('goods')[0] && ID('attacker').getElementsByClassName('goods')[0].getElementsByClassName('carry')[0]) { var cr = []; cr[0] = ID('attacker').getElementsByClassName('goods')[0].getElementsByClassName('carry')[0].innerHTML.split(/<img\b[^>]*>/)[1].split('/')[0]; cr[1] = ID('attacker').getElementsByClassName('goods')[0].getElementsByClassName('carry')[0].innerHTML.split(/<img\b[^>]*>/)[1].split('/')[1]; ID('attacker').getElementsByClassName('goods')[0].getElementsByClassName('carry')[0].innerHTML += ' (%' + Math.round(cr[0] / cr[1] * 100) + ')'; }; for (i = 0; i < attacker; i++) { // attacker Munit[i] = xpath('//table[@id="attacker"]/tbody[1]/tr[1]/td[' + (i + 1) + ']/img').snapshotItem(0).className.split(' u')[1]; Nunit[i] = xpath('//table[@id="attacker"]/tbody[2]/tr[1]/td[' + (i + 1) + ']').snapshotItem(0).innerHTML; if (xpath('//table[@id="attacker"]/tbody[3][@class="units last"]').snapshotItem(0)) { Dunit[i] = xpath('//table[@id="attacker"]/tbody[3]/tr[1]/td[' + (i + 1) + ']').snapshotItem(0).innerHTML; } else { Dunit[i] = 0; }; Xunit['att'] = C(C(xtr(Munit[i], 0)) * C(Nunit[i])); Xunit['aRes[0]'] = C(C(xtr(Munit[i], 3)) * C(Dunit[i])); Xunit['aRes[1]'] = C(C(xtr(Munit[i], 4)) * C(Dunit[i])); Xunit['aRes[2]'] = C(C(xtr(Munit[i], 5)) * C(Dunit[i])); Xunit['aRes[3]'] = C(C(xtr(Munit[i], 6)) * C(Dunit[i])); Xunit['aRes[4]'] = C(C(xtr(Munit[i], 7)) * C(Dunit[i])); ID('AttX').innerHTML = C(C(ID('AttX').innerHTML) + C(Xunit['att'])) ID('aRes').innerHTML = C(C(Xunit['aRes[0]']) + C(Xunit['aRes[1]']) + C(Xunit['aRes[2]']) + C(Xunit['aRes[3]']) + C(ID('aRes').innerHTML)); if (TroopType(Munit[i])) { if (TroopType(Munit[i]).toString().match(/i/)) { ID('iAttX').innerHTML = C(C(ID('iAttX').innerHTML) + C(Xunit['att'])); }; if (TroopType(Munit[i]).toString().match(/c/)) { ID('cAttX').innerHTML = C(C(ID('cAttX').innerHTML) + C(Xunit['att'])); }; }; for (x = 0; x < 5; x++) { ID('aRes[' + (x + 0) + ']').innerHTML = C(C(ID('aRes[' + (x + 0) + ']').innerHTML) + C(Xunit['aRes[' + (x + 0) + ']'])); }; // defender if (xpath('//td[@class="report_content"]/table[2]/tbody[1]/tr/td/img').snapshotItem(0)) { Def_A[i] = xpath('//td[@class="report_content"]/table[2]/tbody[1]/tr/td/img').snapshotItem(0).className.split(' u')[1]; Def_B[i] = xpath('//td[@class="report_content"]/table[2]/tbody[2]/tr/td').snapshotItem(i).innerHTML; if (xpath('//td[@class="report_content"]/table[2]/tbody[2]/tr/td').snapshotItem(i).innerHTML.match(/\d/)) { Def_B[i] = xpath('//td[@class="report_content"]/table[2]/tbody[2]/tr/td').snapshotItem(i).innerHTML; } else { Def_B[i] = 0; }; if (xpath('//td[@class="report_content"]/table[2]/tbody[3][@class="units last"]/tr/td').snapshotItem(i)) { Def_C[i] = xpath('//td[@class="report_content"]/table[2]/tbody[3][@class="units last"]/tr/td').snapshotItem(i).innerHTML; } else { Def_C[i] = 0; }; Def_D['def'] = C(C(xtr(Def_A[i], 0)) * C(Def_B[i])); Def_D['bRes[0]'] = C(C(xtr(Def_A[i], 3)) * C(Def_C[i])); Def_D['bRes[1]'] = C(C(xtr(Def_A[i], 4)) * C(Def_C[i])); Def_D['bRes[2]'] = C(C(xtr(Def_A[i], 5)) * C(Def_C[i])); Def_D['bRes[3]'] = C(C(xtr(Def_A[i], 6)) * C(Def_C[i])); Def_D['bRes[4]'] = C(C(xtr(Def_A[i], 7)) * C(Def_C[i])); ID('DefX').innerHTML = C(C(ID('DefX').innerHTML) + C(Def_D['def'])); ID('bRes').innerHTML = C(C(Def_D['bRes[0]']) + C(Def_D['bRes[1]']) + C(Def_D['bRes[2]']) + C(Def_D['bRes[3]']) + C(ID('bRes').innerHTML)); if (TroopType(Munit[i])) { if (TroopType(Munit[i]).toString().match(/i/)) { ID('iDefX').innerHTML = C(C(ID('iDefX').innerHTML) + C(Def_D['def'])); }; if (TroopType(Munit[i]).toString().match(/c/)) { ID('cDefX').innerHTML = C(C(ID('cDefX').innerHTML) + C(Def_D['def'])); }; }; for (x = 0; x < 5; x++) { ID('bRes[' + (x + 0) + ']').innerHTML = C(C(ID('bRes[' + (x + 0) + ']').innerHTML) + C(Def_D['bRes[' + (x + 0) + ']'])); }; }; }; }; }; function qSendIcons() { var links = xpath('//div[@id="content"]//a[contains(@href, "karte.php?d=")]').snapshotLength; var rlink = []; var alink = []; var xLink = []; for (j = 0; j < links; j++) { xLink[j] = xpath('//div[@id="content"]//a[contains(@href, "karte.php?d=")]').snapshotItem(j); alink[j] = Create('a'); alink[j].href = 'a2b.php?z=' + xLink[j].href.split('=')[1]; alink[j].innerHTML = '<img src="' + Send_attack + '" title="' + SubLanguage(LanguagePack(), 6) + ' ' + xLink[j].innerHTML + '" alt="' + SubLanguage(LanguagePack(), 6) + ' ' + xLink[j].innerHTML + '" />'; rlink[j] = Create('a'); rlink[j].href = 'build.php?z=' + xLink[j].href.split('=')[1] + '&gid=17'; rlink[j].innerHTML = '<img src="' + Send_resource + '" title="' + SubLanguage(LanguagePack(), 5) + ' ' + xLink[j].innerHTML + '" alt="' + SubLanguage(LanguagePack(), 5) + ' ' + xLink[j].innerHTML + '" />'; $(xLink[j]).parent().append(' '); xLink[j].parentNode.appendChild(rlink[j]); $(xLink[j]).parent().append(' '); xLink[j].parentNode.appendChild(alink[j]); }; }; function qSendMsg() { var send_image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAYAAAB24g05AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH2wsIFjoO3PNzDgAAAAd0RVh0QXV0aG9yAKmuzEgAAAAMdEVYdERlc2NyaXB0aW9uABMJISMAAAAKdEVYdENvcHlyaWdodACsD8w6AAAADnRFWHRDcmVhdGlvbiB0aW1lADX3DwkAAAAJdEVYdFNvZnR3YXJlAF1w/zoAAAALdEVYdERpc2NsYWltZXIAt8C0jwAAAAh0RVh0V2FybmluZwDAG+aHAAAAB3RFWHRTb3VyY2UA9f+D6wAAAAh0RVh0Q29tbWVudAD2zJa/AAAABnRFWHRUaXRsZQCo7tInAAABRklEQVQokY2RO0sDURBGz727N2vvnxBS2Nj56AVfiIra2FspKVIaEYvFWkFQECslhW8NsRDF0iaF4J/Q2mzunbFxY1R8fNUwcM4MM0bUa6U6gaoC4MUhIviW5+U1EEJARGiFmBACqkq1VMcQGQC7Ux+hMn2MtRYAS5PIZACoKqqKF9euq6U627Vh8tiuRNi9HmVl6qjdzLfJN+qENy/GcM59CFwcSAqBvZsJVmdOAFifv2Bj4RQRaQsPl2tsXY6TOKEQ+w+BNU3iyOOiFvu3k6zNnpGlRbK0yN5iDVXlYOmK7dowkc34GnNw368+ODBdzA+ek6VFbG830nimUH78BrTB9yPGQQoYA3MdcJ4sLf4oABQgNsYwO1D/BnfWv8WIej17GGK07+6TRBrP/xN0vgygmfZofoOk/GT+EtivjaT8ZP47HeANRVCkIU1WB7kAAAAASUVORK5CYII%3D'; var links = xpath('//div[@id="content"]//a[contains(@href, "spieler.php?uid=")]').snapshotLength; for (j = 0; j < links; j++) { xLink = xpath('//div[@id="content"]//a[contains(@href, "spieler.php?uid=")]').snapshotItem(j); rlink = Create('a'); rlink.href = 'nachrichten.php?t=1&id=' + xLink.href.split('=')[1]; rlink.innerHTML = '<img src="' + send_image + '" alt="+MSG" /> '; xLink.parentNode.insertBefore(rlink, xLink); }; }; function mPlace() { if (CLASS('building big white g17')[0] && ID('send_select') && ID('contract') && ID('enterVillageName')) { var stone = []; var aXA = ID('send_select').getElementsByTagName('tr')[0]; $('<tr>' + '<td style="text-align: center;"><a href="javascript:void(0)" id="x[1]x" style="border: 1px; solid gray;">[%]</a></td>' + '<td style="text-align: center;"><a href="javascript:void(0)" id="x[2]x" style="border: 1px; solid gray;">[h]</a></td>' + '<td style="text-align: center;"><a href="javascript:void(0)" id="x[3]x" style="border: 1px; solid gray;">[X]</a></td>' + '<td style="text-align: center;"><a href="javascript:void(0)" id="x[4]x" style="border: 1px; solid gray;">[=]</a></td>' + '</tr>').insertBefore($(aXA)); var getMax = xpath('//table[@id="send_select"]/tbody/tr[2]/td[4]/a').snapshotItem(0).innerHTML; var getMer = xpath('//div[@id="build"]/div[5]/div[10]').snapshotItem(0).innerHTML.split("/")[0].split(' ')[1]; ID('x[1]x').addEventListener('click', function() { stone[0] = C(C(pro[0] * 3600 / 2) + C(pro[1] * 3600 / 2) + C(pro[2] * 3600 / 2) + C(pro[3] * 3600 / 2) / getMer); for (i = 0; i < 4; i++) { ID('r' + (i + 1)).value = stone[0]; }; }, false); ID('x[2]x').addEventListener('click', function() { for (i = 0; i < 4; i++) { ID('r' + (i + 1)).value = Math.round(C(pro[i] * 3600) / C(getMer) * (getMer / 2)); } }, false); ID('x[3]x').addEventListener('click', function() { for (i = 0; i < 4; i++) { ID('r' + (i + 1)).value = '0'; } }, false); ID('x[4]x').addEventListener('click', function() { for (i = 0; i < 4; i++) { ID('r' + (i + 1)).value = C(C(getMax) * C(getMer) / 4); } }, false); }; }; function SBT() { function re(r) { return C(ID('l' + r).innerHTML.split('/')[0]); }; var cl = 'building big white g'; if (CLASS(cl + '19')[0] || CLASS(cl + '20')[0] || CLASS(cl + '21')[0]) { if (CLASS('details')[0] && CLASS('tit')[0] && CLASS('details')[0]) { for (i = 0; i < CLASS('tit').length; i++) { var r = []; r[0] = CLASS('buildActionOverview trainUnits')[0].getElementsByClassName('resources r1')[i].innerHTML.split('>')[1]; r[1] = CLASS('buildActionOverview trainUnits')[0].getElementsByClassName('resources r2')[i].innerHTML.split('>')[1]; r[2] = CLASS('buildActionOverview trainUnits')[0].getElementsByClassName('resources r3')[i].innerHTML.split('>')[1]; r[3] = CLASS('buildActionOverview trainUnits')[0].getElementsByClassName('resources r4')[i].innerHTML.split('>')[1]; rv = C(C(re('1')) + C(re('2')) + C(re('3')) + C(re('4'))); rb = C(C(r[0]) + C(r[1]) + C(r[2]) + C(r[3])); r[5] = C(rv / rb); var DV = Create('div'); DV.innerHTML = '<span><img src="img/x.gif" class="npc" /> --> ' + CLASS('tit')[i].getElementsByTagName('a')[0].innerHTML + ': ' + r[5] + '</span>'; CLASS('buildActionOverview trainUnits')[0].getElementsByClassName('details')[i].appendChild(DV); var dvx = Create('table'); dvx.cellSpacing = '0'; dvx.style.width = 'auto'; dvx.innerHTML = '' + '<tr><td><img src="img/x.gif" class="r1" /> <span id="XP1_' + i + '">0</span></td>' + '<td><img src="img/x.gif" class="r2" /> <span id="XP2_' + i + '">0</span></td>' + '<td><img src="img/x.gif" class="r3" /> <span id="XP3_' + i + '">0</span></td>' + '<td><img src="img/x.gif" class="r4" /> <span id="XP4_' + i + '">0</span></td></tr><tr>' + '<td colspan="2" style="text-align: center;"><img src="img/x.gif" class="r5" /> <span id="XP6_' + i + '">0</span></td>' + '<td colspan="2" style="text-align: center;"><img src="img/x.gif" class="clock" /> <span id="XP5_' + i + '">00:00:00</span></td>' + '</tr>'; CLASS('buildActionOverview trainUnits')[0].getElementsByClassName('details')[i].appendChild(dvx); var me = CLASS('buildActionOverview trainUnits')[0].getElementsByTagName('input')[i]; me.setAttribute('onkeyup', "tChange('" + i + "')"); me.setAttribute('onclick', "tChange('" + i + "')"); me.setAttribute('onblur', "tChange('" + i + "')"); }; }; }; }; function Village_Count() { var Target = ID('villageList').getElementsByTagName('div')[0].getElementsByTagName('a')[0]; var Count = ID('villageList').getElementsByTagName('div')[1].getElementsByTagName('li').length; Target.appendChild(document.createTextNode('(' + Count + '):')); }; function BuildList() { function gd(gid) { return 'window.location.href='build.php?gid=' + gid + '''; }; var img = [ 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAACXZwQWcAAAABAAAAAQDHlV/tAAAADUlEQVQI12P4//9/PQAJewN9F4hVxQAAAC56VFh0Y3JlYXRlLWRhdGUAAHjaMzIwNNQ1sNQ1MA0xsLAyMbAyNdU1MLcyMAAAQeMFGW65r+EAAAAuelRYdG1vZGlmeS1kYXRlAAB42jMyMDTUNbDUNTANMbCwMjGwMjXVNTC3MjAAAEHjBRkMgVgeAAAAAElFTkSuQmCC', 'http://ts6.travian.com.eg/gpack/travian_Travian_4.0_41/lang/eg/../../lowRes/img/g/g16-rtl.png', 'http://ts6.travian.com.eg/gpack/travian_Travian_4.0_41/lang/eg/../../lowRes/img/g/g17-rtl.png', 'http://ts6.travian.com.eg/gpack/travian_Travian_4.0_41/lang/eg/../../lowRes/img/g/g18-rtl.png', 'http://ts6.travian.com.eg/gpack/travian_Travian_4.0_41/lang/eg/../../lowRes/img/g/g19-rtl.png', 'http://ts6.travian.com.eg/gpack/travian_Travian_4.0_41/lang/eg/../../lowRes/img/g/g20-rtl.png', 'http://ts6.travian.com.eg/gpack/travian_Travian_4.0_41/lang/eg/../../lowRes/img/g/g21-rtl.png', ]; var Div = Create('div'); Div.id = "gList"; Div.className = 'mbList'; Div.innerHTML = '' + '<img src="' + img[1] + '" onclick="' + gd(16) + '" /><br><img src="' + img[2] + '" onclick="' + gd(17) + '" /><br><img src="' + img[3] + '" onclick="' + gd(18) + '" />' + '<br><img src="' + img[4] + '" onclick="' + gd(19) + '" /><br><img src="' + img[5] + '" onclick="' + gd(20) + '" /><br><img src="' + img[6] + '" onclick="' + gd(21) + '" />'; if (RTL == 'rtl') { Div.style.right = '0px'; } else { Div.style.left = '0px'; }; GM_addStyle('.mbList {position: absolute; top: 67px; width: auto; background-image: url(' + img[0] + '); background-repeat: repeat; border-radius: 5px 5px 5px 5px;}\n.mbList img {width: 80px; height: 80px; cursor: pointer; border-radius: 5px 5px 5px 5px;}'); document.body.appendChild(Div); for (i = 0; i < 6; i++) { aIMG = CLASS('mbList')[0].getElementsByTagName('img')[i]; aIMG.setAttribute('onmouseover', "this.style.backgroundColor = 'white'"); aIMG.setAttribute('onmouseout', "this.style.backgroundColor = ''"); }; }; var cssString = "#T4_mHelp{" + "position:absolute;" + "padding: 4px;" + "z-index: 10000;" + "border: solid 1px #00C000;" + "background-color: #FEFFE3;" + "}"; GM_addStyle(cssString); var div = document.createElement("div"); div.id = "T4_mHelp"; div.setAttribute("style", "position:absolute; padding: 4px; z-index: 10000; border: solid 1px #00C000; background-color: #FEFFE3; display: none;"); document.body.appendChild(div); function gMouseOver() { var imgList = xpath("//img[contains(@class, 'unit u')][ not(@class='unit uhero')]"); document.addEventListener('mousemove', showHelp_move, false); for (var i = 0; i < imgList.snapshotLength; i++) { imgList.snapshotItem(i).setAttribute('onmouseover', "hMove(this.className.split(' u')[1]);"); imgList.snapshotItem(i).setAttribute('onmouseout', 'ID("T4_mHelp").style.display = "none";'); }; setTimeout(gMouseOver, 2000); }; function MyLinks() { var urlBase = location.href.split('/')[1]; var target = ID("side_info"); target.appendChild(Create('br')); var div = Create('div'); div.style.border = '1px solid silver'; var tbl = Create("table"); div.style.backgroundColor = '#FFFFE0'; tbl.style.width = '98.5%'; tbl.style.margin = '1px'; tbl.style.border = '1px solid silver'; var tblHead = Create("thead"); var tblBody = Create("tbody"); tblBody.id = 'tbody_links'; if (GM_getValue('My_T4Links')) { links = GM_getValue('My_T4Links'); } else { GM_setValue('My_T4Links', ''); links = GM_getValue('My_T4Links'); }; tblBody.innerHTML = links; var row = Create("tr"); var cell = Create("td"); cell.setAttribute('colspan', '2'); cell.innerHTML = '<span><b>' + SubLanguage(LanguagePack(), 7) + '</b>(<a href="javascript:void(0)" onclick="AddNewLink();" style="color: red;"><i>' + SubLanguage(LanguagePack(), 8) + '</i></a>):</span>'; row.appendChild(cell); tblHead.appendChild(row); tbl.appendChild(tblHead); tbl.appendChild(tblBody); div.appendChild(tbl); target.appendChild(div); GM_addStyle('#llist tr td {padding: 0px 1px;}') tbl.setAttribute("cellspacing", "0"); tbl.setAttribute("cellpadding", "1"); tbl.setAttribute("id", "llist"); }; if(!GM_getValue('t4_setup_setting') && (!exp(/spieler.php/))){ window.location.href = location.protocol + '//' + location.hostname + '/spieler.php'; }; if(exp(/spieler.php/) && (!GM_getValue('t4_setup_setting'))){ var race = xpath('//table[@id="details"]/tbody/tr[2]/th').snapshotItem(0).innerHTML; var Aly = xpath('//table[@id="details"]/tbody/tr[3]/th').snapshotItem(0).innerHTML; GM_setValue('t4_setup_setting', race + '|' + Aly); setting(); }; ReTime(); setup(); gMouseOver(); if (exp(/dorf1/) && ID('production') && ID('troops')) { dorfA(); } if (GM_getValue('setting[1]') == 'true') { Resource_Needed(); }; if (GM_getValue('setting[2]') == 'true') { BuildingView(); xbt(); }; if (GM_getValue('setting[3]') == 'true' && !exp(/hero_auction.php\b[^>]*action=sell/)/*<-- not work on this page*/) { QuickSend(); }; if (GM_getValue('setting[4]') == 'true') { ViewRep(); }; if (GM_getValue('setting[5]') == 'true') { ViewMessege(); }; if (GM_getValue('setting[6]') == 'true') { SBT(); }; if (GM_getValue('setting[7]') == 'true') { MyLinks(); }; if (GM_getValue('setting[8]') == 'true') { ResourcePlusTimer(); }; if (GM_getValue('setting[9]') == 'true') { ResourcePercent(); }; if (GM_getValue('setting[10]') == 'true') { ResourcePrud(); }; if (GM_getValue('setting[11]') == 'true') { BuildList(); }; if (GM_getValue('setting[12]') == 'true') { Show_Help_Links(); }; if (GM_getValue('setting[13]') == 'true') { qSendMsg(); }; if (GM_getValue('setting[14]') == 'true' && ID('btn_ok') && ID('troops') && exp(/a2b.php/)) { AttackInfo(); }; if (GM_getValue('setting[15]') == 'true') { qSendIcons(); }; if (ID('send_select')) { mPlace(); }; if (ID('mapContainer') && exp(/karte.php/)) { help_fun(); ViewCropFind(); ViewElphFind(); }; if (ID('side_info')) { Village_Count(); }; if (ID('mtop')) { AddUpdate(); }; if (exp(/berichte.php\b[^>]id=\d/)) { ReportX(); };
Mozilla add on,User script,Grease Monkey Script, greasemonkey userscripts, updater userscripts mafia wars userscripts mafia wars autoplayer userscripts mafia wars wall userscripts scripts userscripts travian greasemonkey greasemonkey download greasemonkey facebook greasemonkey tutorial greasemonkey youtube greasemonkey travian greasemonkey chrome greasemonkey mafia wars greasemonkey mafia wars autoplayer
Sunday, November 13, 2011
Travian4 Plus Tool hacked
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment