!!! Colectie Scripturi aprobate/legale!

Stare
Nu este deschis pentru răspunsuri viitoare.

Rakanishu

admin
Membru personal
Scor reacție
145
ATENTIE !

UPDATE: Scripturile care interactioneaza cu butoanele din ecranul pietei centrale sunt interzise.
Echipa Triburile NU este responsabila de buna functionalitate a unor unelte independete ( a se citi create de jucatori si doar acceptate de noi ), daca unii membrii ai TT ofera ajutor pe aceasta problema, o fac din placere si nu din obligatie.
Daca erau create de InnoGames atunci eram noi raspunzatori directi de functionalitatea acestora.



In lista de mai jos veti gasi toate scripturile permise ( legale ) pe acest server, orice alt script in afara de cele de mai jos neaprobat de catre team, este considerat ilegal !

Scripturile pot fi folosite numai in taskul de prelucrare rapida oferit de contul premium ( regula 7 ), in oricare alta parte devin ilegale si riscati sanctiuni !
Cu alte cuvinte, orice script folosit fara cont premium activ este ILEGAL.

Scripturile Farm/Fake din 3 pasi pe acelasi buton (1 clik introduce trupele, 1 clik apasa Atac, alt clik apasa OK) sunt ilegale
Scripturile care executa clik pe pagina cu asistentul de farmare indiferent de natura acestora trebuie aprobate in prealabil de Echipa de Suport !
Scripturile care trimit cereri multiple serverului sunt ilegale, acestea trebuiesc sa fie aprobate de echipa TeamTriburile
Deasemenea orice modificare adusa unui script trebuie sa fie aprobata inainte ca acesta sa fie folosit


Toate scripturile de aici au fost aprobate si nu incalca nici o regula si ar fi bine sa nu le modificati,daca le modificati riscati sa luati ban. Orice modificare adusa unui script trebuie sa fie aprobata inainte ca acesta sa fie folosit

Toate scripturile merg,sunt testate pe .ro,aveti voi grija sa copiati bine codul si vedeti cand modificati,o virgula sau un apostrof e foarte important.


Lista scripturi :
UPDATE: 05.03.22 22:20 CET de @alex02dsa @maram


Descriere: Redenumeste toate atacurile care nu au fost redenumite in "Vazut!!!" (8.20)
Numele poate fi schimbat la inceputul scriptului
Cod:
javascript:text = 'Vazut'; $.getScript('https://dl.dropbox.com/s/rvqr5bl7aiwub9p/Vazut.js');void 0;

Descriere: se ruleaza din pagina aferenta profilului unui jucator, veti fi directionati catre profilul acestora de pe tribalwarsmap

Cod:
javascript:var doc=document;
if(window.frames.length>0)doc=window.main.document;
url=doc.URL;
link='http://'+getWorld(url)+'.tribalwarsmap.com/ro/history/player/';
link+=getID(url);
function getID(url){
var start=url.indexOf("id=")+3;
var end=url.indexOf('&screen=info',start);
var id;
if(end>0)id=url.substring(start,end);
else{id=url.substring(start)}return id;}
function getWorld(url){start=url.indexOf("ro");
return url.substring(start,url.indexOf('.',start))}
if(url.indexOf('screen=info_player')==-1)
{link="";alert('Mergi la profilul unui jucator.')
}
if(link!="")window.open(link); void(0);

Descriere: Redenumeste satele dupa anumite criterii (mythra)
Text simplu (8.27):

javascript:var text='text';
function redenumire(){$('.rename-icon').each(function(){$(this).click().click(); $(this).parent().next().children().val(text); $(this).parent().next().children().next().click();} )
}redenumire()

Numerotate(8.27):

javascript:
function redenumire(){$('.rename-icon').each(function(contor){index = contor < 9 ? '00'+(contor+1) : contor < 99 ? '0'+(contor+1) : (contor+1);
$(this).click().click();
$(this).parent().next().children().val(index);
$(this).parent().next().children().next().click()} )
}redenumire()

Numerotare (4 cifre) +text - merge rulat si din pagina de cladiri (8.20)

javascript:var text='zzzz';
function redenumire(){$('.rename-icon').each(function(contor){index = contor < 9 ? '000'+(contor+1) : contor < 99 ? '00'+(contor+1) : contor < 999 ? '0'+(contor+1) : (contor+1);$(this).click().click();
$(this).parent().next().children().val(index+' '+text); $(this).parent().next().children().next().click()} )
}redenumire()


Numerotare + text + verificare pagina in care este rulat scriptul:

javascript:var text='';
if (game_data.screen == 'overview_villages' || (game_data.mode=='combined' || game_data.mode=='prod' || game_data.mode=='units' || game_data.mode=='buildings' )) {function redenumire(){$('.rename-icon').each(function(contor){index = contor < 9 ? '000'+(contor+1) : contor < 99 ? '00'+(contor+1) : contor < 999 ? '0'+(contor+1) : (contor+1);$(this).click().click(); $(this).parent().next().children().val(index + ' ' +text); $(this).parent().next().children().next().click()} )
}redenumire()}else {UI.ErrorMessage("Scriptul trebuie rulat din privirea generala");}void(0);



Coordonate (8.20):

javascript:var XK=6;var YK=5;function randCoords(){return%20Math.round(Math.random()*999)+'|'+Math.round(Math.random()*999);}
function randCoords(x,y){return x+""+rand99()+'|'+y+""+rand99();}
function rand99(){ num=Math.round(Math.random()*99);if(num<10)num='0'+num;return num;}
function redenumire(){$('.rename-icon').each(function(){
$(this).click().click();
$(this).parent().next().children().val(randCoords(XK,YK));
$(this).parent().next().children().next().click()} )
}redenumire()

Descriere: Redenumire sate dupa mai multe variante (text/coordonate, coordonate random, numerotare, distanta fata de tinte, k:sec:sub.

Cod:
javascript: $.getScript('https://dl.dropbox.com/s/cgrhntonrkc4dku/MassRenameVillages.js');void(0);

rWGuUsX.png


Aveti de toate, de peste tot + ce s-a mai cerut in ultima vreme integrate in ala. Am adaugat si o optiune cu numarul paginii pentru cei ce au peste 1000 de sate. In prima pagina, pentru primele 1000 de sate lasati contorul respectiv pe 0, apoi pentru satele 1000-1999, 2000-2999 etc...incrementati corespunzator.
In stanga bifati ce doriti sa se afiseze, in dreapta aveti un obiect de tip scroll..puteti ordona mutand efectiv randurile respective.
Jos aveti optunea 'metoda' - puteti adauga text la inceputul sau sfarsitul denumirii curent (prefix/sufix sa zicem) sau sa le inlocuiti cu totul).
Salvare configuratie - retine ceea ce bifati din optiunile respectiv.
La distanta fata de tinta sau text 1/2/3 inlocuiti textul default pus acolo cu ce doriti voi.

Sus aveti si previzualizare in functie de ceea ce bifati.


Descriere: Redenumeste satele in functie de continent.
Exemplu: Daca in var k10 modificati valoarea k15 cu "Denumire k 15" numele satelor din K15 va fi Denumire k 15 (chinez unikat):

Cod:
javascript: (function (RenameVillagesByContinents) {
    var k00 = ['k00', 'k01', 'k02', 'k03', 'k04', 'k05', 'k06', 'k07', 'k08', 'k09'];
    var k10 = ['k10', 'k11', 'k12', 'k13', 'k14', 'k15', 'k16', 'k17', 'k18', 'k19'];
    var k20 = ['k20', 'k21', 'k22', 'k23', 'k24', 'k25', 'k26', 'k27', 'k28', 'k29'];
    var k30 = ['k30', 'k31', 'k32', 'k33', 'k34', 'k35', 'k36', 'k37', 'k38', 'k39'];
    var k40 = ['k40', 'k41', 'k42', 'k43', 'k44', 'k45', 'k46', 'k47', 'k48', 'k49'];
    var k50 = ['k50', 'k51', 'k52', 'k53', 'k54', 'k55', 'k56', 'k57', 'k58', 'k59'];
    var k60 = ['k60', 'k61', 'k62', 'k63', 'k64', 'k65', 'k66', 'k67', 'k68', 'k69'];
    var k70 = ['k70', 'k71', 'k72', 'k73', 'k74', 'k75', 'k76', 'k77', 'k78', 'k79'];
    var k80 = ['k80', 'k81', 'k82', 'k83', 'k84', 'k85', 'k86', 'k87', 'k88', 'k89'];
    var k90 = ['k90', 'k91', 'k92', 'k93', 'k94', 'k95', 'k96', 'k97', 'k98', 'k99'];

    var all = [].concat(k00, k10, k20, k30, k40, k50, k60, k70, k80, k90);
    $(".rename-icon").each(function (d, o, b) {
        b = $(o).prev("a").find(".quickedit-label"), d = all[+b.html().trim().match(/\d+$/g)];
        if (d && b.attr('data-text') != d) {
            $(o).click(), $(o).parent().next().find('input[type*="text"]').val(d);
            $(o).parent().next().find('input[type*="button"]').click()
        }
    })
})("chinez unikt")

Descriere: Va ajuta sa gasiti nobili prezenti in sate.Link
Cod:
javascript: var win = (window.frames.length > 0) ? window.main : window;
var col = (-1);
win.$('table[class*=overview_table] tr th').each(function (i, e)
{
    if(e.innerHTML.match(/snob\.png/i))
    {
        col = i;
        return false;
    }
});
if(col >= 0)
{
    win.$('table[class*=overview_table] tr td:nth-child(' + (col + 1) + ')').each(function (i, e)
    {
        if(parseInt(win.$(e).text() || '0', 10) < 1)
        {
            win.$(e).parent('tr').remove();
        }
    });
    alert('Pagina a fost filtrata.');
}
else
{
    alert("ERROARE:Lipseste o coloana.\nVa rugam sa contactati administratorul scriptului.");
}
void(0);

Descriere: Extrage coordonatele satelor...
De la profil:
Cod:
javascript:var villas=$("table[class=content-border]").html().match(/\d+\|\d+/g);alert((villas&&(villas.length>0)?villas.join(" "):"No co-ordinates were found"));void(0);

De pe harta (extrage tot):

Cod:
javascript: var coords = [];
for (x = 0; x < TWMap.size[1]; x++) for (y = 0; y < TWMap.size[0]; y++)
{
    coord = TWMap.map.coordByPixel(TWMap.map.pos[0] + TWMap.tileSize[0] * y, TWMap.map.pos[1] + TWMap.tileSize[1] * x);
    if (coord) if (village = TWMap.villages[coord.join("")]) if (village.owner === "0") coords.push(coord.join("|"))
}
alert(coords.join(' '));
void(0);

De pe harta (click pe sate)

Cod:
javascript:
var win=(window.main||self),$=win.$;
var coords=[];
var outputID='villageList';
var encodeID='cbBBEncode';
var isEncoded=true;
function fnRefresh(){
$('#'+outputID).val(coords.map(function(e){return isEncoded?'[coord]'+e+'[\/coord]':e;}).join(isEncoded?'\n':' '));}
$(win.document).ready(function(){if($('#'+outputID).length<=0)
{if(win.game_data.screen=='map')
{var srcHTML= '<div id="coord_picker">'+ '<span style="color:blue;text-decoration:underline;"></span><br/><br/>'+ '<input type="checkbox" id="cbBBEncode" onClick="isEncoded=this.checked;fnRefresh();"'+(isEncoded?'checked':'')+'/>BB-Codes<br/>'+'<textarea id="'+outputID+'" cols="40" rows="10" value="" onFocus="this.select();"/>'+'</div>';
ele=$('body').append($(srcHTML));
win.TWMap.map._handleClick=function(e){
var pos=this.coordByEvent(e);
var coord=pos.join('|');
var ii=coords.indexOf(coord);
if(ii>=0){coords.splice(ii,1);}
else{coords.push(coord);}
fnRefresh();return false;};}
else{alert('Acest script trebuie rulat pe harta.\nVa redirectionez acum...');
self.location=win.game_data.link_base_pure.replace(/screen\=\w*/i,'screen=map');}}});
void(0);

De pe harta (se precizeaza lista jucatorilor ale caror sate se doresc a fi preluate)

Cod:
javascript: $.getScript('https://dl.dropbox.com/s/pnktasopig7v988/ExtractorSateJucatori.js');void(0);

Descriere: Filtreaza atacurile care nu sunt redenumite
Cod:
javascript:function c(){var  as=$("a[href]").find(":contains('Atac')");if(as){as.each(function(i,e){if(i==(as.length-1)){window.location=e.parentNode.href;}});}}c();

Descriere: Creeaza oferte in functie de resursele prezente in sat cu scopul de a egaliza numarul lor

Cod:
javascript: var maxnegustori = 20;
var durata_maxima = 25;
var ofera = 1000;
var pentru = 990;
$.getScript("https://dl.dropbox.com/s/3y7x953r7xdvvam/CreeazaOferteTarg.js?");
void(0);

Versiunea lui rookmaster (Link)

Cod:
javascript: autor = 'rookmaster';
versiune = 'Targ.1.3';
pagina = game_data["screen"];
mod = game_data["mode"];
sat = game_data["village"]["id"];
resurse = {
    'lemne': 'wood',
    'argila': 'stone',
    'fier': 'iron'
};
var tip = {
    '0': ['', '', '', '', '', ''],
    '1': [1000, 'argila', 600, 'lemne', 10, 10],
    '2': [1000, 'argila', 700, 'lemne', 20, 10],
    '3': [1000, 'argila', 800, 'lemne', 30, 10],
    '4': [1000, 'argila', 900, 'lemne', 40, 0]
};
var oferta = '<select onchange = "completeaza(this.selectedIndex)">';
for (var j in tip) {
    oferta += '<option value = "' + j + '">' + tip[j][5] + ' x ' +  tip[j][0] + ' ' + tip[j][1] + ' pe ' + tip[j][2] + ' ' + tip[j][3] + '  la ' + tip[j][4] + ' ore' + '</option>'
}
oferta += '</select> <input type="button" onclick="javascript:document.forms[0].submit()" value="Realizare"/>';

function targ() {
    var tdiv = document.createElement('div');
    tdiv.id = "targdiv";
    $('form').before(tdiv);
    $('#targdiv').html(oferta)
}

function completeaza(nr) {
    roundoferte = negustori / Math.ceil(tip[nr][0] / 1000);
    if (tip[nr][5] == 0) {
        multiplu = Math.min(Math.floor($('#' + resurse[tip[nr][1]]).html() / tip[nr][0]), roundoferte)
    } else {
        multiplu = Math.min(Math.floor($('#' + resurse[tip[nr][1]]).html() / tip[nr][0]), roundoferte, tip[nr][5])
    };
    $('[name="sell"]').val(tip[nr][0]);
    $('[name="buy"]').val(tip[nr][2]);
    $('[name="max_time"]').val(tip[nr][4]);
    $('[name="multi"]').val(multiplu);
    $('#res_sell_' + resurse[tip[nr][1]]).selected();
    $('#res_buy_' + resurse[tip[nr][3]]).selected()
}
if (pagina == 'market' && mod == 'own_offer') {
    negustori = (Data['Trader']['amount']);
    if (negustori == 0) {
        window.location = 'game.php?village=n' + sat + '&screen=market&mode=own_offer'
    } else {
        targ()
    }
} else {
    window.location = 'game.php?village=' + sat + '&screen=market&mode=own_offer'
}

Descriere: Arata cate atacuri a lansat agresorul de pe acelasi sat

Descriere: Din raportul primit in urma unui atac calculeaza inamicii invinsi
Cod:
javascript: var win = window.frames.length ? window.main : window;
var doc = win.document;
var J = win.$;
var oda = 0;
var odd = 0;
var od = 0;
function fetch(x)
{
    x = J("table:has(th:contains('" + x + "')):last table td:contains('Pierderi:')").parent().html();
    return (x == null) ? [] : x.match(/\d+/g);
}
var al = fetch('Agresor:');
al = al.slice(1);
var dl = fetch('Apărător:');
dl = dl.slice(1);
switch (al.length)
{
case 9:
    oda = dl[0] * 4 + dl[1] * 5 + dl[2] * 1 + dl[3] * 1 + dl[4] * 5 + dl[5] * 23 + dl[6] * 4 + dl[7] * 200;
    odd = al[0] * 1 + al[1] * 2 + al[2] * 4 + al[3] * 2 + al[4] * 13 + al[5] * 15 + al[6] * 8 + al[7] * 200;
    break;
case 10:
    oda = dl[0] * 4 + dl[1] * 5 + dl[2] * 1 + dl[3] * 1 + dl[4] * 5 + dl[5] * 23 + dl[6] * 4 + dl[7] * 12 + dl[8] * 200;
    odd = al[0] * 1 + al[1] * 2 + al[2] * 4 + al[3] * 2 + al[4] * 13 + al[5] * 15 + al[6] * 8 + al[7] * 10 + al[8] * 200;
    break;
case 11:
    oda = dl[0] * 4 + dl[1] * 5 + dl[2] * 1 + dl[3] * 5 + dl[4] * 1 +  dl[5] * 5 + dl[6] * 6 + dl[7] * 23 + dl[8] * 4 + dl[9] * 12 + dl[10] *  200;
    odd = al[0] * 1 + al[1] * 2 + al[2] * 4 + al[3] * 2 + al[4] * 2 +  al[5] * 13 + al[6] * 12 + al[7] * 15 + al[8] * 8 + al[9] * 10 + al[10] *  200;
    break;
case 12:
    oda = dl[0] * 4 + dl[1] * 5 + dl[2] * 1 + dl[3] * 5 + dl[4] * 1 +  dl[5] * 5 + dl[6] * 6 + dl[7] * 23 + dl[8] * 4 + dl[9] * 12 + dl[10] *  40 + dl[11] * 200;
    odd = al[0] * 1 + al[1] * 2 + al[2] * 4 + al[3] * 2 + al[4] * 2 +  al[5] * 13 + al[6] * 12 + al[7] * 15 + al[8] * 8 + al[9] * 10 + al[10] *  20 + al[11] * 200;
    break;
}
od = oda + odd;
alert("Total OD câstigat din bătălie: " + od + "\n\nODA: " + oda + "\n\nODD: " + odd);
void(0);

Descriere: Calculeaza distanta in timp pentru fiecare unitate
Cod:
javascript: var url = 'http://www.tribalwarsmap.com/ro/traveltimes2';
if (location.hostname.split('.')[1] == 'triburile') {
    url += '?world=';
    var world = location.hostname.split('.')[0];
    if (world == 'classic') {
        url += 'c1';
    } else {
        url += world.substring(2);
    };
    var query = '';
    if (window.main) {
        query = window.main.location.search.substring(1).split('&');
    } else {
        query = window.location.search.substring(1).split('&');
    };
    var village = false;
    var dest = false;
    for (i = 0; i < query.length; i++) {
        query[i] = query[i].split('=');
        if (query[i][0] == 'screen' && query[i][1] == 'info_village') {
            village = true;
        } else if (query[i][0] == 'id') {
            dest = '&destination=' + query[i][1];
        }
    };
    if (village && dest) {
        url += dest;
    }
}
void window.open(url);

Descriere: Afiseaza un mesaj cu viteaza unitatilor pe lumea respectiva
Cod:
javascript: var win = (window.frames.length > 0) ? window.main : window;

function fnAjaxRequest(url, sendMethod, params, type) {
    var error = null,
        payload = null;
    win.$.ajax({
        "async": false,
        "url": url,
        "data": params,
        "dataType": type,
        "type": String(sendMethod || "GET").toUpperCase(),
        "error": function (req, status, err) {
            error = "ajax: " + status
        },
        "success": function (data, status, req) {
            payload = data
        }
    });
    if (error) {
        throw (error)
    }
    return payload
}

function fnCreateConfig(name) {
    return win.$(fnAjaxRequest("/interface.php", "GET", {
        "func": name
    }, "xml")).find("config")
}

function fnCreateUnitConfig() {
    return fnCreateConfig("get_unit_info")
}
var unitConfig = fnCreateUnitConfig();
var config = [];
win.$(unitConfig).children().each(function (i, e) {
    config.push("\"" + e.nodeName + "\":" + win.$(e).find("speed").text())
});
alert("var speed = {\n\t" + config.join(",\n\t") + "\n};");
void(0);

Nume script: SAdvanceProximity
Descriere: Acesta este o versiune modificata a scriptului AdvanceProximity.

Cod:
javascript: $.getScript("https://dl.dropbox.com/s/inn9qta45l477uv/DefFinderAdv.js");void(0);

Descriere: Extrage toti jucatorii dintr-un trib (cu BB-Codes)
Autor: mythra
Cod:
javascript:
var lista_jucatori=[];
function main()
{
     $('table tr').each(function(index)
            {
               var jucator=$(this).children('td.lit-item:first').children('a').text();
               if(jucator&&jucator.length>0){lista_jucatori.push(jucator);}
            });
      var formatare_bb="";
      for(var j=0;j<lista_jucatori.length;j++)
      {
         formatare_bb+="[player]"+lista_jucatori[j]+"[/player]";
         formatare_bb+="\n";
      }
       alert((lista_jucatori&&(lista_jucatori.length>0)?formatare_bb:"Mergi la trib->membri"));
}main();

Descriere: genereaza scripturi de farm, fake sau real pe satele unui jucator... (cu scriptul lui chinez unikt)( Link )
Atentie! daca jucatorul are mai mult de 100 sate acestea trebuiesc sa fie afisate
Cod:
javascript: var D = document;
if (window.frames.length > 0) D = window.main.document;
url = D.URL;
if (url.indexOf('screen=info_player') == -1) {
    alert('Acest script trebuie rulat pe profilul unui jucator');
    end()
}
var tds = D.getElementsByTagName("TD");
var K = new Array();
for (var idx = 0; idx < 100; idx++) K[idx] = new Array();
var C = new Array();
for (var idx = 0; idx < tds.length; idx++) {
    var xy = tds[idx].innerHTML;
    if (/^\d+\|\d+$/.test(xy)) {
        C.push(xy);
        var xys = xy.split('|');
        K[Math.floor(parseInt(xys[0]) / 100) + Math.floor(parseInt(xys[1]) / 100) * 10].push(xy);
    }
}
C = C.join(' ');
var prefix = "<textarea cols=90 rows=30>javascript:  units = {'spear': 0,'sword': 0,'axe': true,'archer': 0,'spy':  true,'light': true,'marcher': 0,'heavy': 0,'catapult': true,'ram':  true,'knight': true,'snob': 0};coords = '";
var postfix = "';name='farmchi';var d=document;function  N(a){return(d.getElementsByName(a)[0])}function maxVal(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(units[i]==true){insertUnit(N(i),maxVal(i))}else  if(units[i]<0){rezerva=maxVal(i)+units[i];if(rezerva<0)insertUnit(N(i),maxVal(i));else  insertUnit(N(i),rezerva)}else  if(maxVal(i)>=units[i]){insertUnit(N(i),units[i])}else{insertUnit(N(i),maxVal(i))}}}void  0</textarea><br><br>";
var S = '<body style="background-image:  url(http://cdn2.tribalwars.net/graphic/background/bg-tile.jpg?27a8b)"><b>Generator  scripturi ordonate de fake/real cu rezerve </b><hr>Toate  satele:<br>' + prefix + C + postfix;
for (var idx = 0; idx < 100; idx++) if (K[idx].length > 0) {
        var Ks = K[idx].join(' ');
        S += '<br><br>Toate satele de pe K' + idx + '<br>' + prefix + Ks + postfix;
    }
S += '</body>';
var popup = window.open('about:blank', 'twfg', 'width=800,height=600,scrollbars=1');
popup.document.open('text/html', 'replace');
popup.document.write(S);
popup.document.close();
void(0)

Descriere: true = introduce toate trupele
-10 = introduce toate trupele minus 10 unitati
10 = introduce 10 unitati
daca doriti sa folositi acelasi script pe aceasi lume se poate schimba numele de la cookie (name = 'ChiFarm';) asta ca sa nu incurce ordinea coordinatelor
il puteti copia si de aici:

Cod:
javascript: units = {
    'spear'    : 0,
    'sword'    : 0,
    'axe'    : -400,
    'archer'    : 0,
    'spy'    : -40,
    'light'    : -400,
    'marcher'    : 0,
    'heavy'    : 0,
    'catapult'    : true,
    'ram'    : true,
    'knight'    : 0,
    'snob'    : -4
};
coords = '431|490 430|490 427|494 406|524 405|523 406|522 402|522';
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

1. Script pentru inserare coordonate si trupe. - cel de deasupra

Descriere: Va deschide o pagina noua unde puteti creea o harta cu jucatorul respectiv
Cod:
javascript:var doc=document;var x=500;var y=500;
if(window.frames.length>0)doc=window.main.document;
url=doc.URL;link='http://ro.twstats.com/'+getWorld(url)+'/index.php?page=map&'+'centrex='+x+'&centrey='+y;link+='&zoom=100&grid=1&kn=1&dullbg=1';link+='&player_1_id='+window.game_data.player.id+'&player_1_colour=fff200';
link+='&ti0='+window.game_data.player.ally_id+'&tc0=1e00ff';color='ff0000';
function getID(url){var start=url.indexOf("id=")+3;
var end=url.indexOf('&screen=info',start);
var id;
if(end>0)id=url.substring(start,end);
else{id=url.substring(start)}return id}
function getWorld(url){start=url.indexOf("ro");
return url.substring(start,url.indexOf('.',start))}
if(url.indexOf('screen=info_player')!=-1)
{link+='&player_0_id='+getID(url)+'&player_0_colour='+color}
else if(url.indexOf('screen=info_ally')!=-1){link+='&tribe_0_id='+getID(url)+'&tribe_0_colour='+color}
else if(url.indexOf('screen=info_village')!=-1)
{link+='&village_0_id='+getID(url)+'&village_0_colour='+color}
else{link="";alert('Acest script trebuie sa fie rulat pe profilul unui jucator.')}
if(link!="")window.open(link); void(0);

Descriere: Afiseaza niste statistici pentru fiecare jucator, Trebuie rulat pe pagina cu membrii tribului
Cod:
javascript: var config = {
    showPoints: true,
    showVillages: true,
    showODA: true,
    showODD: true,
    width: '180px',
    height: '96px'
};
(window.main || self).$.getScript('https://dl.dropbox.com/s/2it9sgwiuceaimm/stats.js', function () {
    var script = new RankingStats();
    script.execute(config)
});
void(0);

Descriere: Retrageti cu usurinta sprijinul trimis
Cod:
javascript:(window.main||self).$.getScript('https://dl.dropbox.com/s/1bw0uaittenqfc8/dales_sprijin_retragere.js',function(){var  script=new WithdrawSupport();script.execute();});void 0;

Descriere: In asistentul de farmare doar satele cu prada mare si cele fara prada vor fi afisate
Cod:
javascript: function filter() {
    if (!document.URL.match(/screen=am_farm/)) {
        location.href = '{game}&screen=am_farm';
    }
    var div = document.getElementById('am_widget_Farm');
    var td = div.getElementsByTagName('td');
    td[0].innerHTML += '<br>Pagina a fost filtrata. Doar satele cu prada consistenta si cele fara prada sunt afisate.';
    for (var i = 1; i < td.length; i++) {
        if (td[i].innerHTML.indexOf('max_loot/0.png') != -1) {
            td[i].parentNode.style.display = 'none';
        }
    }
}
filter();

Descriere: Marcheaza temporan triburile/jucatorii/satele pe harta in plus afiseaza si numele jucatorului pe fiecare sat si punctajul satului pe fiecare sat de barbari
PS: Acum scriptul suporta si interfata "drag"
Cod:
javascript: var config = [{
    'tribes': ['Trib 1', 'Trib 2'],
    'color': 'RED'
}, {
    'tribes': ['Trib 3', 'WAL'],
    'color': 'BLUE'
}, {
    'players': ['chinez unikt'],
    'color': 'GREEN'
}, {
    'villages': '500|500 000|000'.split(" "),
    'color': 'BLACK'
}];
var barb = {
    'min_points': 80,
    'color': '#BFBFBF'
};
var text_color = '#FFFFFF';
var default_color = 'rgba(0, 0, 0, 0.6)';
var doc = document;
var win = (window.frames.length > 0) ? window.main : window;

function fnHilightMap() {
    var height = 12;
    var ii, col, row, coord, village, player, tribe;
    for (row = 0; row < TWMap.size[1]; row++) {
        for (col = 0; col < TWMap.size[0]; col++) {
            var coord = TWMap.map.coordByPixel(TWMap.map.pos[0] + (TWMap.tileSize[0] * col), TWMap.map.pos[1] + (TWMap.tileSize[1] * row));
            if (coord) {
                player = null;
                tribe = null;
                village = TWMap.villages[coord.join("")];

                if (village) {
                    village.points = village.points.replace(".", "");
                    if (village.owner) {
                        player = TWMap.players[village.owner];
                    }
                    if (doc.getElementById("map_village_" + village.id)) {
                        var tox = doc.getElementById("map_village_" + village.id);
                        var cssval = tox.style;
                    } else {
                        return
                    }
                    bk_color = default_color;
                    for (ii = 0; ii < config.length; ii++) {
                        if (config[ii].villages && (config[ii].villages.indexOf(coord.join("|")) >= 0)) {
                            bk_color = config[ii].color;
                            break;
                        }
                        if (player) {
                            if (config[ii].players && (config[ii].players.indexOf(player.name) >= 0)) {
                                bk_color = config[ii].color;
                                break;
                            }
                            tribe = TWMap.allies[player.ally];
                            if (tribe && config[ii].tribes && (config[ii].tribes.indexOf(tribe.tag) >= 0)) {
                                bk_color = config[ii].color;
                                break;
                            }
                        }
                    }
                    if (!player && (bk_color == default_color)) {
                        bk_color = barb.color;
                    }
                    if ((!player && (village.points >= barb.min_points)) || (player && (player.name != myself))) {
                        if ((!doc.getElementById("dalesmckay_map_hilight_" + coord.join("")))) {
                            var div = doc.createElement('div');
                            div.id = "dalesmckay_map_hilight_" + coord.join("");
                            div.style.position = cssval.position;
                            div.style.left = cssval.left;
                            div.style.top = (parseInt(cssval.top, 10) + 22) + 'px';
                            div.style.fontSize = '11px';
                            div.style.fontWeight = 'normal';
                            div.style.width = (TWMap.tileSize[0] - 1) + 'px';
                            div.style.height = height + 'px';
                            div.style.zIndex = 3;
                            div.style.display = 'block';
                            div.style.color = text_color;
                            div.style.textAlign = 'center';
                            div.style.opacity = '0.7';
                            div.style.border = '1px solid black';
                            div.style.borderRadius = '3px';
                            div.style.textShadow = "0 0 3px black,0 0 3px black";
                            div.innerHTML = (player ? player.name : (village.points + 'pct'));
                            if (div.innerHTML.split(" ").length > 1) {
                                var re = div.innerHTML.split(" ");
                                div.innerHTML = re[0] + "\n" + re[1];
                                div.style.height = height * 2 + 'px';
                                div.style.top = (parseInt(cssval.top, 10) + 10) + 'px';
                                div.style.fontSize = '10px';
                            } else if (div.innerHTML.length > 8) {
                                var re = div.innerHTML;
                                div.innerHTML = re.substring(8, 0) + "\n" + re.substring(8);
                                div.style.height = height * 2 + 'px';
                                div.style.top = (parseInt(cssval.top, 10) + 10) + 'px';
                                div.style.fontSize = '10px';
                            }
                            div.style.backgroundColor = (player ? bk_color : barb.color);
                            $(tox).after(div);
                        }
                    }
                }
            }
        }
    }
}

function fnCustomOnMove(x, y) {
    win.$("div [id*=dalesmckay_map_hilight_]").remove();
    if (chainedHandler) {
        chainedHandler(x, y);
    }
    fnHilightMap()
}
var myself = game_data['player']['name'];
if (game_data['screen'] == "map") {
    if ((typeof (chainedHandler) == "undefined") || !chainedHandler) {
        var curCentre = [parseInt(win.$("#inputx").attr("value") || "0", 10), parseInt(win.$("#inputy").attr("value") || "0", 10)];
        var chainedHandler = TWMap.mapHandler.onMove;
        TWMap.mapHandler.onMove = fnCustomOnMove;
    }
    win.$("div [id*=dalesmckay_map_hilight_]").remove();
    fnHilightMap();
} else {
    alert("Acest script trebuie rulat pe hartă.\nVă redirecţionez acum...");
    self.location = game_data['link_base_pure'].replace(/screen\=/i, "screen=map");
}
void(0);

Descriere: Extrage jucatorii (de pe harta) ce se incadreaza din punct de vedere al punctajului in intervalul posibil de atacat (ce intrunesc conditia de 20% bazata pe cele mai mici puncte).
Autor: mythra
Cod:
javascript:void($.getScript("https://dl.dropbox.com/s/k4x6bv1fq1j181r/LumeaCasualList.js"))

Descriere: script redenumire atacuri cu informatii suplimentare; se ruleaza in pagina 'sosiri', dupa selectarea comenzilor noi de atac si/sau sprijin ce se doresc a fi redenumite
Autor: chinezeu

Variabile ce pot fi folosite:

%unit%
%distance%
%coords%
%duration%
%return%
%sent%
%arrival%
%player%
%origin%
%destination%

se pot adauga aici:

Name: '%unit% (%coords%) %player% - %duration%'

Cod:
  javascript: (function(By, Chinezu) {
$('.quickedit-label').each(function(i, e) {
if (Chinezu.Rename.indexOf($(e).text().trim()) != -1) {
$(e).parent().parent().parent().parent().find('input[type="checkbox"]').prop('checked', !0);
By = !0;
}
});
if (By) {
$('input[name="label_format"]').val(Chinezu.Name);
$('input[name="label"]').click();
} else document.location.reload(!By);
})(!1, {
Rename: ['Atac', 'Sprijin', 'Ataque', 'Apoyo'],
Name: '%unit% (%coords%) %player% - %duration%'
})

Descriere: determina numarul total de trupe detinute la nivel de cont;se ruleaza in pagina 'privire generala' - 'trupe'

Cod:
javascript:
var unitsTable = document.getElementById('units_table');
troopCounterTbodies = unitsTable.querySelectorAll('tbody');
var totalsTbody = troopCounterTbodies[1].cloneNode(true);
unitsTable.insertBefore(totalsTbody, troopCounterTbodies[0]);
[].map.call(totalsTbody.querySelectorAll('td.unit-item'), function(v, i) {
troopCounterIndex = i;
v.style.color = 'black';
v.innerHTML = [].map.call(troopCounterTbodies, function(v) {
return +v.querySelectorAll('td.unit-item')[troopCounterIndex].textContent;
}).reduce(function(a, b) {
return a + b;
});
});
totalsTbody.style.fontWeight = 'bold';
totalsTbody.querySelectorAll('td')[0].innerHTML = 'Total';
[].map.call(totalsTbody.querySelectorAll('a'), function (v) {
v.parentNode.removeChild(v);
});
troopCounterTbodies = troopCounterIndex = null;
void(0);

descriere: ultimul buton de la farm verifica daca atacul ajunge sau nu pe bonus de noapte; daca ajunge va genera un pop up pentru notificare, daca nu, va apasa pe butonul 'ok' pentru finalizarea comenzii

Cod:
javascript: if(document.getElementById('command-confirm-form').innerHTML.indexOf('Bonus de noapte activ!')!=-1) alert("bonus activ");
else document.getElementsByName('submit')[0].click();void(0);

descriere: daca atacul ajunge pe bonus, se muta la satul urmator

Cod:
javascript: if(document.getElementById('command-confirm-form').innerHTML.indexOf('Bonus de noapte activ!')!=-1)
{
var doc=(window.frames.length>0)?window.main.document:document;url = doc.URL;as = doc.getElementsByTagName("a");urlSplit = url.split("screen");theScreen = urlSplit[1];villageId = as[0].href.match(/village=(\d+)/i);t=as[0].href.match(/t=(\d+)/);if(t)t="&"+t[0];else{t=''}nextVillageLink = "village=n" + villageId[1] + "&screen" + theScreen + t;location.search = nextVillageLink;
}
else document.getElementsByName('submit')[0].click();void(0);

descriere: scade valoarea indexului/contorului numarului de sate pentru a nu fi sarit din lista celor ce trebuie atacate

Cod:
javascript: if(document.getElementById('command-confirm-form').innerHTML.indexOf('Bonus de noapte activ!')!=-1)
{
var d = document;
var doc=(window.frames.length>0)?window.main.document:document;url = doc.URL;as = doc.getElementsByTagName("a");urlSplit = url.split("screen");theScreen = urlSplit[1];villageId = as[0].href.match(/village=(\d+)/i);t=as[0].href.match(/t=(\d+)/);if(t)t="&"+t[0];else{t=''}nextVillageLink = "village=n" + villageId[1] + "&screen" + theScreen + t;location.search = nextVillageLink;
name = 'aa1';
index = 0;
farmcookie = d.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
if (farmcookie != null) index = parseInt(farmcookie[2]);
index--;
if (index <0) index = 0;
    cookie_date = new Date(2051, 08, 11);
    d.cookie = name + '=' + index + ';expires=' + cookie_date.toGMTString();
}
else document.getElementsByName('submit')[0].click();void(0);

Cod:
javascript: (function(By, Chinezu) { $('.source').remove(); $('.wood').each(function(i, e) { By.wood += $(this).text().trim().replace('.', '') * 1 }); $('.stone').each(function(i, e) { By.stone += $(this).text().trim().replace('.', '') * 1 }); $('.iron').each(function(i, e) { By.iron += $(this).text().trim().replace('.', '') * 1 }); var msg = $.each(By, function(key, value) { Chinezu += '<span style="padding:0 10px 0 18px" class="res source ' + key + '">' + value + '</span>'; }); UI.ConfirmationBox(Chinezu, []);})({ 'wood': 0, 'stone': 0, 'iron': 0}, '')

Cod:
javascript:

function cleanCoords(){
    var matched=document.getElementById('pushRes_coords').value.match(/[0-9]{3}\|[0-9]{3}/g);
    var output='';
    if(matched.length>0){
        output=matched[0];
        for (i=1;i<matched.length;i++){
            output=output + ' ' + matched[i];
        }
    }
    document.getElementById('pushRes_coords').value=output;
}
function setLS(){
    localStorage.setItem('pushRes_wood', (document.getElementsByName('wood')[0].value!='')?document.getElementsByName('wood')[0].value:0);
    localStorage.setItem('pushRes_stone',(document.getElementsByName('stone')[0].value!='')?document.getElementsByName('stone')[0].value:0);
    localStorage.setItem('pushRes_iron', (document.getElementsByName('iron')[0].value!='')?document.getElementsByName('iron')[0].value:0);
    localStorage.setItem('pushRes_pushRessIndex', parseInt(document.getElementById('pushRessIndex').value)-1);
    cleanCoords();

    localStorage.setItem('pushRes_coords', document.getElementById('pushRes_coords').value);
    alert("Salvați noile date");
}
var win=window;

if (document.URL.indexOf('screen=market&mode=send') == -1) {
    alert("Acest script functioneaza in targ, trimitere resurse.");
    self.location = win.game_data.link_base_pure.replace(/screen\=\w*/i, "screen=market&mode=send");
} else {

    var wood=parseInt((localStorage.getItem('pushRes_wood'))?localStorage.getItem('pushRes_wood'):40000);
    var stone=parseInt((localStorage.getItem('pushRes_stone'))?localStorage.getItem('pushRes_stone'):40000);
    var iron=parseInt((localStorage.getItem('pushRes_iron'))?localStorage.getItem('pushRes_iron'):30000);
    var pushRessIndex=parseInt((localStorage.getItem('pushRes_pushRessIndex'))?localStorage.getItem('pushRes_pushRessIndex'):0);
    var coords=(localStorage.getItem('pushRes_coords'))?localStorage.getItem('pushRes_coords'):'555|555 444|444';

    if(document.getElementById("pushRessCoords")){
        var element = document.getElementById("pushRessCoords");
        element.parentNode.removeChild(element);
    }
    var divNode2 = document.createElement('div');
    divNode2.id='pushRessCoords';

    data='<textarea id="pushRes_coords" style="resize:vertical; width:100%" placeholder="Coordonatele țintă" rows="5" resize="none" onFocus="this.select();"/>'+coords+'</textarea><br/><div style = "width:100%">Coordonate tinte: <input id="pushRessIndex" type="text" style="width: 20px" value="'+(pushRessIndex+1)+'"> din '+coords.split(" ").length+' <input readonly onClick = "setLS()" class="btn" value="Salvați scriptul"></div>';
    divNode2.innerHTML = data;
    $('input.btn')[0].parentNode.appendChild(divNode2);


    if (Market.Data.Trader.amount >= Math.ceil((wood + stone + iron) / 1000) && Market.Data.Res.stone >= stone && Market.Data.Res.wood >= wood && Market.Data.Res.iron >= iron) {
        document.getElementsByName('iron')[0].value = iron;
        document.getElementsByName('wood')[0].value = wood;
        document.getElementsByName('stone')[0].value = stone;
        coords = coords.split(" ");
        if (pushRessIndex >= coords.length) {
            pushRessIndex = 0;
            document.getElementById('pushRessIndex').value=1;

        }
        coords = coords[pushRessIndex];
        coords = coords.split("|");
        pushRessIndex = pushRessIndex + 1;
        localStorage.setItem('pushRes_pushRessIndex', pushRessIndex);
        document.forms[0].x.value = coords[0];
        document.forms[0].y.value = coords[1];
        document.getElementsByName('iron')[0].focus();
    } else {
        if(document.getElementById("village_switch_right")){
            alert("Satul nu are suficiente resurse sau comercianți pentru a trimite cantități predeterminate. Alege un alt sat...");
        } else {
            alert("Satul nu are suficiente resurse pentru a trimite");
        }
    }
}

void(0);

Descriere: salvarea si resturarea denumirilor satelor
Cod:
[COLOR=#0000BB][FONT=monospace]javascript[/FONT][/COLOR][COLOR=#007700][FONT=monospace]: [/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]void[/FONT][/COLOR][COLOR=#007700][FONT=monospace]($.[/FONT][/COLOR][COLOR=#0000BB][FONT=monospace]getScript[/FONT][/COLOR][COLOR=#007700][FONT=monospace]([/FONT][/COLOR][COLOR=#DD0000][FONT=monospace]'https://dl.dropbox.com/s/eaidim8rkw5c32u/exportImport.js'[/FONT][/COLOR][COLOR=#007700][FONT=monospace]))  [/FONT][/COLOR]

Descriere: DS-Timer
Cod:
javascript:
(function () {

function getServerTime() {
var d = $('#serverDate').text(),
t = $('#serverTime').text(),
m = d.match(/(..)\/(..)\/(....)/);
return m[3] + '-' + m[2] + '-' + m[1] + ' ' + t;
}

function getServerMs(zeroMs) {
var currMs = new Date().getMilliseconds();
return (1000 + currMs - zeroMs) % 1000;
}

function getServerTimeWithMs(zeroMs) {
return getServerTime() + ':' + getServerMs(zeroMs);
}

function displayServerMs(z) {
var msTimer = setInterval(function () {
var ms = getServerMs(z);
$('#serverMs').text(':' + ('00' + ms).substr(-3));
}, 5)
return msTimer;
}


// init
if (!$('#serverMs').length) {
$('#serverTime').after('<span id="serverMs"></span>');
}


var serverTime = getServerTime(),
prev = serverTime;
var localMs;

var timer = setInterval(function () {
serverTime = getServerTime();
if (serverTime !== prev) {
localMs = new Date().getMilliseconds();
clearInterval(timer);
displayServerMs(localMs);
}

prev = serverTime;
}, 100);
$('#serverMs').css({
'font-size': '200pt',
'color': '#000',
'serif': 'sans_serif'
})
$('#serverTime').css({
'font-size': '100pt',
'color': '#000',
'serif': 'sans_serif'
})
})();

Cod:
javascript: units = {
    'spear'    : 0,
    'sword'    : 0,
    'axe'    : 0,
    'archer'    : 0,
    'spy'    : 0,
    'light'    : 0,
    'marcher'    : 0,
    'heavy'    : 0,
    'catapult'    : 5,
    'ram'    : 0,
    'knight'    : 0,
    'snob'    : 0
};
var unitsPopulation = {
  'spear': 1,
  'sword': 1,
  'axe': 1,
  'archer': 1,
  'spy': 2,
  'light': 4,
  'marcher': 5,
  'heavy': 6,
  'ram': 5,
  'catapult': 8,
};

  var availableTroops = document.getElementsByClassName('units-entry-all');
  availableTroops = {
    'spear': parseInt(availableTroops[0].innerHTML.substr(1).slice(0, -1)),
    'sword': parseInt(availableTroops[1].innerHTML.substr(1).slice(0, -1)),
    'axe': parseInt(availableTroops[2].innerHTML.substr(1).slice(0, -1)),
    'archer': parseInt(availableTroops[3].innerHTML.substr(1).slice(0, -1)),
   'spy': parseInt(availableTroops[4].innerHTML.substr(1).slice(0, -1)),
    'light': parseInt(availableTroops[5].innerHTML.substr(1).slice(0, -1)),
    'marcher': parseInt(availableTroops[6].innerHTML.substr(1).slice(0, -1)),
    'heavy': parseInt(availableTroops[7].innerHTML.substr(1).slice(0, -1)),
   'ram': parseInt(availableTroops[8].innerHTML.substr(1).slice(0, -1)),
   'catapult': parseInt(availableTroops[9].innerHTML.substr(1).slice(0, -1)),
  };

  var json = document.getElementsByTagName('script');
  var script = json[5].innerHTML.toString();
  json = script.split('"points":').pop();
  json = json.split(',"');
  var points = parseInt(json[0]);
  var maxPop = Math.round( points * 0.01);

  var fakePop = 0;

  if( units.catapult > 0 && availableTroops.catapult > units.catapult ){ fakePop = fakePop + ( units.catapult * unitsPopulation.catapult ); }
  else{ units.catapult = availableTroops.catapult; availableTroops.catapult = 0; fakePop = fakePop + ( units.catapult * unitsPopulation.catapult ); }

  var stop = 1;
  while(stop == 1){

  if( availableTroops.spear > 0 ){ units.spear++; availableTroops.spear--; fakePop = fakePop + unitsPopulation.spear; }
  if( fakePop > maxPop ){ stop--; continue; }

  if( availableTroops.sword > 0 ){ units.sword++; availableTroops.sword--; fakePop = fakePop + unitsPopulation.sword; }
  if( fakePop > maxPop ){ stop--; continue; }

  if( availableTroops.axe > 0 ){ units.axe++; availableTroops.axe--; fakePop = fakePop + unitsPopulation.axe; }
  if( fakePop > maxPop ){ stop--; continue; }

  if( availableTroops.archer > 0 ){ units.archer++; availableTroops.archer--; fakePop = fakePop + unitsPopulation.archer; }
  if( fakePop > maxPop ){ stop--; continue; }

  if( availableTroops.spy > 0 ){ units.spy++; availableTroops.spy--; fakePop = fakePop + unitsPopulation.spy; }
  if( fakePop > maxPop ){ stop--; continue; }

  if( availableTroops.light > 0 ){ units.light++; availableTroops.light--; fakePop = fakePop + unitsPopulation.light; }
  if( fakePop > maxPop ){ stop--; continue; }

  if( availableTroops.marcher > 0 ){ units.marcher++; availableTroops.marcher--; fakePop = fakePop + unitsPopulation.marcher; }
  if( fakePop > maxPop ){ stop--; continue; }

  if( availableTroops.heavy > 0 ){ units.heavy++; availableTroops.heavy--; fakePop = fakePop + unitsPopulation.heavy; }
  if( fakePop > maxPop ){ stop--; continue; }

  if( availableTroops.ram > 0 ){ units.ram++; availableTroops.ram--; fakePop = fakePop + unitsPopulation.ram; }
  if( fakePop > maxPop ) { stop--; continue; }

  if( availableTroops.spear == 0 && availableTroops.sword == 0 && availableTroops.axe == 0 && availableTroops.archer == 0 && availableTroops.spy == 0 && availableTroops.light == 0 && availableTroops.marcher == 0 && availableTroops.heavy == 0 ) stop--;

  }

coords = '555|555';
name = 'aa1a1';

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;

detalii: https://forum.tribalwars.net/index.php?threads/clear-barbarian-walls.280874/
Cod:
javascript:$.getScript('https://tylercamp.me/tw/clear-barb-walls.js');void(0);


Scriptul activeaza o notificare sonora atunci cand sunt resurse in depozit peste un anumit prag.
Cod:
https://www.dropbox.com/s/ovppmcw9nycts50/alert-resources.js?dl=1

Detalii cu privire la script: https://forum.tribalwars.net/index.php?threads/ez-snipe.280975/
Cod:
javascript:
$.getScript('https://dl.dropboxusercontent.com/s/3edjw9gv5b06uo9/mass_sniper.js');


Cod:
javascript:$.getScript('https://dl.dropbox.com/s/2y0sxgk8c29dr9e/incomingTroopsVillageInfo.js?dl=0');void(0);

Cod:
javascript: $.getScript("https://shinko-to-kuma.com/scripts/WHBalancerShinkoToKuma.js");

Cod:
javascript:
var premiumBtnEnabled=false;
$.getScript('https://shinko-to-kuma.com/scripts/massScavenge.js');

Cod:
javascript:$.getScript( https://shinko-to-kuma.com/scripts/res-senderV2.js');

Cod:
javascript:$.getScript('https://dl.dropboxusercontent.com/s/dukcaol8u27wxg2/watchtower_timer.js');void(0);

Cod:
javascript:$.getScript('https://twscripts.dev/scripts/tribePlayersUnderAttack.js');

Cod:
javascript:$.getScript('https://dl.dropboxusercontent.com/s/mpir3x1wh36z2jn/scriptCriarNotaRelatorio.js?dl=0');void(0);

Cod:
javascript:$.getScript('https://scripts.ibragonza.nl/enhancer/enhancer.js');void(0);
 
Ultima editare de un moderator:
Stare
Nu este deschis pentru răspunsuri viitoare.
Sus