Thursday, August 11, 2011

SCRIPT FARMING

SCRIPT FARMING

javascript: var cookieName="AT"; var sp=0; var sw=0; var ax=1000; var scout=5; var lc=1000; var hv=0; var cat=0; var ra=0; var mode=0; var coords= '389|640 394|640 397|640 398|640 388|641 389|641 390|641 393|641 396|641 391|642 398|642 399|643 391|644 398|644 389|645 391|645 392|645 395|645 395|646 396|646 396|647 400|648 388|649 393|649 388|650 398|650 394|651 399|651 388|652 393|652 397|652 399|652 400|652 '; var doc=document; var url=document.URL; if(url.search(/screen=place/)!= -1 && url.search(/try=confirm/)===-1 && document.forms[0].x.value==="" && document.forms[0].y.value==="") { if(window.frames.length>0) { doc=window.main.document; } url=document.URL; if(url.indexOf('screen=place')==-1) { alert('This script needs to be run from the rally point'); } coords=coords.split(" "); var index=0; farmcookie=document.cookie.match('(^|;) ?'+ cookieName +'=([^;]*)(;|$)'); if(farmcookie!=null) { index=parseInt(farmcookie[2]); } if(index>=coords.length) { index=0; } coords=coords[index]; coords=coords.split("|"); doc.forms[0].x.value=coords[0]; doc.forms[0].y.value=coords[1]; if(sp>$(doc.forms[0].spear).attr('maxUnits')||sw>$(doc.forms[0].sword).attr('maxUnits')||ax>$(doc.forms[0].axe).attr('maxUnits')||scout>$(doc.forms[0].spy).attr('maxUnits')||lc>$(doc.forms[0].light).attr('maxUnits')||hv>$(doc.forms[0].heavy).attr('maxUnits')||cat>$(doc.forms[0].catapult).attr('maxUnits')||ra>$(doc.forms[0].ram).attr('maxUnits')) { mode=0; } else { mode=1; } if(mode==0) { doc.forms[0].x.value=""; doc.forms[0].y.value=""; alert("R.K.O."); end(); } else { index=index+1; } cookie_date=new Date(2019,11,11); document.cookie =cookieName+"="+index + "; expires="+cookie_date.toGMTString (); 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); document.forms[0].attack.click(); } else if(url.search(/screen=place/)!= -1 && url.search(/try=confirm/)!=-1) { document.forms[0].submit.click(); } end()

2 comments:

dhanief said...

kok ga brfungsi ya

Dicky Rahadian said...

fungsinya buat apa nih script?

Popular Posts