DeletedUser
pentru ce iti trebuie scriptul asta ? e inclus in joc , optiunea de rename din joc face ce face si scriptul
Ultima editare de un moderator:
scriptul de fake nu mai funcționează de la ultimul update, se poate repara?
Extragerea satelor cu bb-codes de pe tw stats idem, introduce paranteze în plus.
Toate de la ultimul update.
Mulțumesc.
javascript: units = { 'spear' : 0, 'sword' : 0, 'axe' : 0, 'archer' : 0, 'spy' : 1, 'light' : 27, 'marcher' : 0, 'heavy' : 0, 'catapult' : 0, 'ram' : 1, 'knight' : 0, 'snob' : 0};coords = '440|523 435|518 436|518 432|516 434|517 431|517 431|521 433|516 429|522 433|526 431|518 435|517 428|519 424|520 426|518 431|522 431|519 434|519 435|527 434|521 435|521 430|520 433|520 433|515 436|520 418|513 446|497 445|496 429|511 431|524 431|523 445|524 430|523 435|512 429|524 428|517 427|520 430|516 426|520 432|523 435|540 433|522 428|518 429|520 427|518 435|523 446|496 447|524 427|521 436|522 425|523 446|524 435|539 417|510 437|524 428|510 429|510 445|498 416|511 410|490 426|524 444|525 404|473 432|522 427|524 419|509 403|478 423|517 439|525 423|515 424|512 424|524 418|520 434|525 412|490 414|477 428|514 414|486 433|524 434|526 422|511 428|525 427|525 431|529 425|512 418|507 411|483 436|530 438|519 427|510 416|515 436|514 412|487 425|514 412|511 432|524 435|528 429|527 426|533 430|527 423|523 421|518 414|521 420|521 431|526 416|500 415|514 423|518 406|472 433|527 422|521 421|522 418|514 413|515 406|494 409|478 425|521 439|529 423|511 439|522 408|481 409|480 438|528 404|476 427|515 418|518 406|480 412|486 404|477 433|530 409|479 424|513 416|521 407|478 413|511 421|523 421|520 405|493 415|521 418|512 399|480 410|476 419|512 411|510 411|476 409|477 421|521 431|512 423|514 407|480 412|489 410|477 424|511 403|475 426|535 421|512 414|512 415|519 440|529 438|529 412|480 405|475 438|520';name = 'ChiFarm';var d = document;function N(a) { return (d.getElementsByName(a)[0]);}function max(a) { return parseInt(d.units[a].nextSibling.nextSibling.innerHTML.match(/\d+/), 10);}if (N('x') && N('x').value == '') { if (!N(name)) $('h3').append('<span name="' + name + '" style="color:green;font-size:11px;"></span>'); coords = coords.split(' '); index = 0; farmcookie = d.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)'); if (farmcookie != null) index = parseInt(farmcookie[2]); N(name).innerHTML = ' Tinta nr.' + (index + 1) + ' (' + coords[index] + '). Total: ' + coords.length; if (index >= coords.length) { N(name).style.color = '#F00'; N(name).innerHTML = ' Ai ajuns la capatul listei!'; } else N(name).style.color = 'green'; if (index >= coords.length) index = 0; coords = coords[index]; coords = coords.split('|'); index++; cookie_date = new Date(2051, 08, 11); d.cookie = name + '=' + index + ';expires=' + cookie_date.toGMTString(); N('x').value = coords[0]; N('y').value = coords[1]; for (i in units) { if (N(i)) { u = parseInt(units[i], 10); n = max(i) + u; if (isNaN(u)) insertUnit(N(i), max(i)); else if (u < 0) n < 0 ? '' : insertUnit(N(i), n); else if (max(i) >= units[i]) insertUnit(N(i), u); } }}void 0
Ba nu! Eu l-am folosit in trecut si rula toate coordonatele.
Poate totusi il poate face cineva si pentru mozilla. Am mare nevoie ..si cat mai curand.
Multumesc!
script fake
extragerea satelor cu bbcodes de pe tw stats nu funcționează, introduce o paranteză rotundă înainte și după coord.
exemplu: [village](472|683)[/village]
javascript: var sep = [";", "#"];
if (document.URL.indexOf("screen=overview_villages") > 0) {
var wtd = prompt("Would you like to [export] or [import]", 'export');
if (wtd == "import") {
inputlist();
} else {
outputlist();
}
} else {
alert("This script must be used on the Villages Overview");
}
function outputlist() {
var vlist = new String();
var inputs = document.getElementsByTagName('span');
for (i = 0; i < inputs.length; i++) {
if (inputs.id.indexOf('label_text') != -1) {
var arr = inputs.innerHTML.split(" ");
vlist = vlist + inputs.id.slice(11) + sep[1];
for (x = 0; x < arr.length - 2; x++) {
vlist = vlist + arr[x] + ' ';
}
vlist = vlist + sep[0];
}
}
if (vlist) {
output = window.open('', '', 'height=300,width=300');
output.document.open();
output.document.write('<textarea rows="10" cols="30" onclick="javascript:select();">' + vlist + '</textarea>');
output.document.close();
}
}
function inputlist() {
var vils = new Array();
var reply = prompt('Please enter the village output list', '');
p = reply.split(sep[0]);
for (i = 0; i < p.length; i++) {
m = p.split(sep[1]);
vils[m[0]] = m[1];
}
var inputs = document.getElementsByTagName('input');
for (i = 0; i < inputs.length; i++) {
if (inputs.id.indexOf('edit_input') != -1) {
if (vils[inputs.id.slice(11)]) {
text = vils[inputs.id.slice(11)];
inputs.value = text.substr(0,text.length-10);
inputs[i + 1].click();
}
}
}
}
Functiile de export/import au fost inglobate in urmatorul script:
javascript: void($.getScript('https://dl.dropbox.com/u/100563986/rename/villages.js'))
optiunea salveaza are rolul de export
optiunea restaureaza are rolul de import
javascript: autor = 'rookmaster';
versiune = 'Raza Biserica.1.4';
$('#map').click(function () {
info = $('#info_content').html();
coord = info.split(/[(|)]/);
$('#mapx').val(coord[1]);
$('#mapy').val(coord[2]);
showChurch(!0);
});
function showChurch(a) {
MapCanvas.churchData = [
[$('#mapx').val(), $('#mapy').val(), $('#raza').val()]
];
MapCanvas.init();
TWMap.church.toggle();
a && TWMap.focusSubmit()
}
(function () {
if (!$('#raza').length) {
var input = $('<input/>',{value:'Arată',type:'button',onclick:'showChurch(!0)'});
var select = $('<select/>', {id: 'raza',onchange: 'showChurch()'});
$.each([4, 6, 8], function(i,v){select.append($('<option/>',{value:v,text:v}))});
$('#mapy').after(input).after(select).after(' Raza : ');
}
showChurch(!0)
})()