Monday 28 March 2011

Fake With any unit (random)

this is just a fake script but with a twist, it sends any unit at random. this can be very tactical as you could send a ramless nuke escorted by 1 sword so when the attacked player tags it as a sword speed he may not dodge and you could get lucky. :)

javascript:var coords='111|111 222|222 333|333';var scouts=1;var config={ram:1,catapult:1,spear:1,sword:1,axe:1,archer:1,light:1,marcher:1,heavy:1};function fnFillRallyPoint(){var win=(window.frames.length>0)?window.main:window;var eleForm=win.document.getElementById('units_form');var coord=coords.split(' ');var coordSplit=coord[Math.floor(Math.random()*coord.length)].match(/(\d+)\|(\d+)/);eleForm.x.value=coordSplit[1];eleForm.y.value=coordSplit[2];win.$("input[class=unitsInput]").attr("value","0");var count;if(scouts>0){count=parseInt(eleForm.spy.nextSibling.nextSibling.innerHTML.match(/\d+/));if(count>0){eleForm.spy.value=Math.min(scouts,count);}}for(var unit in config){if(config.hasOwnProperty(unit)){if((config[unit]>0)&&(typeof(eleForm[unit])!="undefined")){count=parseInt(eleForm[unit].nextSibling.nextSibling.innerHTML.match(/\d+/));if(count>0){eleForm[unit].value=Math.min(config[unit],count);break;}}}}}fnFillRallyPoint();


where highlighted in red that is where you input your co-ordinates that you wish to attack

No comments:

Post a Comment