Script fakes modificado

  • Autor de hilo DeletedUser35521
  • Fecha de inicio

DeletedUser35521

Guest
Buenas, debido a la ultima actualización del juego este script de fakes ha dejado de funcionar:

https://forum.guerrastribales.es/showthread.php?t=21172

Lo he modificado para que vuelva a funcionar. Me gustaría saber si sigue siendo legal.

[SPOIL]
Código:
javascript:var coords='416|375 414|377 412|375 413|376 415|376 411|381 412|381 413|381 414|381 413|382 412|380 410|384';
var%20doc=document;
if(window.frames.length>0)
        doc=window.main.document;
url=document.URL;
if(url.indexOf('screen=place')==-1)
alert('Se ejecuta desde la plaza de reuniones');
var scouts=1;
var config={ram:1,catapult:1,spear:1,sword:1,axe:1,archer:1,spy:1,light:1,marcher:1,heavy:1};
function fnFillRallyPoint(){var win=(window.frames.length>0)?window.main:window;
coords=coords.split(' ');index=Math.round(Math.random()*(coords.length-1));coords=coords[index];coords=coords.split('|');doc.forms[0].x.value=coords[0];doc.forms[0].y.value=coords[1];
win.$("input[class=unitsInput]").attr("value","0");
var count;if(scouts>0){count=parseInt(doc.forms[0].spy.nextSibling.nextSibling.innerHTML.match(/\d+/));if(count>0){doc.forms[0].spy.value=Math.min(scouts,count);
}}for(var unit in config){if(config.hasOwnProperty(unit)){if((config[unit]>0)&&(typeof(doc.forms[0][unit])!="undefined")){count=parseInt(doc.forms[0][unit].nextSibling.nextSibling.innerHTML.match(/\d+/));
if(count>0){doc.forms[0][unit].value=Math.min(config[unit],count);
break;
}}}}}fnFillRallyPoint();
[/SPOIL]


Un saludo
 
Última edición por un moderador:

DeletedUser41615

Guest
hola!!
como hago para poner 1 espia en ves del ariete?
 
Arriba