Wednesday, 23 March 2011

Fake Script Generator

Does what it says, generates a fake script for who ever needs mass attacking. numbers can be altered etc so u spend spies or axes instead of ram.

it generates a fake script for all the villages of the player then individual scripts depending what continents they are on.

copy of the script is here :

javascript:var D=document;if(window.frames.length>0)D=window.main.document;url=D.URL;if(url.indexOf('screen=info_player')==-1){alert('Goto Player Information 1st!');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=80 rows=10>javascript:sp=0;sw=0;ax=0;scout=0;lc=0;hv=0;cat=0;ra=1;coords=\'';var postfix='\';var doc=document;if(window.frames.length>0)doc=window.main.document;url=doc.URL;if(url.indexOf(\'screen=place\')==-1)alert(\'This script needs to be run from the rally point\');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];insertUnit(doc.forms[0].spear,sp);insertUnit(doc.forms[0].sword,sw);insertUnit(doc.forms[0].axe,ax);insertUnit(doc.forms[0].spy,scout);insertUnit(doc.forms[0].light,lc);insertUnit(doc.forms[0].heavy,hv);insertUnit(doc.forms[0].ram,ra);insertUnit(doc.forms[0].catapult,cat);void(0)</textarea><br><br>';var S='<b>TW Fake Script Generator v0.2</b><hr>Whole Villages:<br>'+prefix+C+postfix;for(var idx=0;idx<100;idx++)if(K[idx].length>0){var Ks=K[idx].join(' ');S+='<br><br>K'+idx+' Villages:<br>'+prefix+Ks+postfix;}var popup=window.open('about:blank','twfg','width=640,height=480,scrollbars=1');popup.document.open('text/html','replace');popup.document.write(S);popup.document.close();void(0)

Note - this script also only works on the player profile you wish to make the fake script for.
works on firefox,opera and google chrome.

No comments:

Post a Comment