Farm script

bidam veer

Active Member
Reaction score
26
this script is from .ro,made by a player wich i am playing with him.it's a farm script,different of normal scripts because it uses the train script to send the farm attacks.i do not any details about how it was made,general information.i will just post the script and a video wich show you how it works.
video here:
the script in the spoiler


Code:
javascript:var%20d=document;var atacuri;
var debug=0;
axe=0;// topoare
ram=0; // berbeci
light=5; // usoara
spy=0;   // spioni
c='580|390 580|389 583|388 583|386 581|386 580|387 579|389 584|391 585|390 588|392 586|395 585|395 583|395 581|395 579|395 578|393 577|395 576|395 575|392';
function RSdebug(log){if(debug=='1'){console.log(log);}}
if(window.frames.length>0)
d=window.main.document;
var ca = document.cookie.split(';');
url=d.URL;a=c.split(" ");targets_l = a.length;RSdebug("Total targets to be farmed:" + a.length + JSON.stringify(a));
if(url.indexOf('screen=place')==-1){alert('Trebuie sa fii in piata centrala sa poti trimite R.S.-Farm!!');exit;}
var curdate = new Date();
var offset = curdate.getTimezoneOffset();
RSdebug("RS Farm -> "+offset);
function setCookie(cname, cvalue, exhours) {var curdate = new Date();curdate.setTime(curdate.getTime() + (exhours*60*60*1000));var expires = "expires="+ curdate.toUTCString();document.cookie = cname + "=" + cvalue + "; " + expires;}
function getCookie(cname) {var name = cname + "=";for(var i = 0; i < ca.length; i++) {var c = ca[i];while (c.charAt(0) == ' ') {c = c.substring(1);}if (c.indexOf(name) == 0) {return c.substring(name.length, c.length);}}return "";}
function checkTargets(){for(var i = 0; i < targets_l; i++) {if(typeof a[i] != 'undefined' ){if(getCookie(a[i]) == "RS-Illuminates") {RSdebug("Cookie "+i+" to remove "+a[i]+" -- from -> "+ JSON.stringify(a) );a.splice(i,1);RSdebug("Cookie "+i+" removed -- "+ JSON.stringify(a) );checkTargets();}else { RSdebug("Cookie "+i+" not found ok " + a[i] );}}}}checkTargets();
RSdebug("A length " + a.length + " -> " +atacuri + JSON.stringify(a));
if ( a.length < atacuri ){ atacuri = a.length; RSdebug("Atacuri " + atacuri );}else{atacuri = a.length;if ( atacuri > 5 ) atacuri=5;}
if ( atacuri == 0 || a.length < 2 ){ RSdebug("No targets to be found for a time -> " + JSON.stringify(a)); alert ( "Farmare catre toate targeturile deja trimisa!! " ); throw new Error('RS-controlled Farming done'); }
RSdebug("A length " + a.length + " -> " +atacuri + JSON.stringify(a));
function mif(id,url)
{
return "<iFRAME SRC=\""+url+"\" name=\""+id+"\" width=\"150\" height=\"150\"></iframe>";}
function mau(name) {
return "window.frames['"+name+"'].document.getElementById('troop_confirm_go').click ();"; }
function lau(name,target) {
var to_return='';
setCookie(target,"RS-Illuminates",3);
RSdebug(" setting cookie for target " + target );
b=target.split("|");
to_return += "window.frames['name"+i+"'].document.forms[0].x.value="+b[0]+";window.frames['name"+i+"'].document.forms[0].y.value="+b[1]+";";
to_return += "window.frames['name"+i+"'].document.forms[0].axe.value="+axe+";";
to_return += "window.frames['name"+i+"'].document.forms[0].ram.value="+ram+";";
to_return += "window.frames['name"+i+"'].document.forms[0].light.value="+light+";";
to_return += "window.frames['name"+i+"'].document.forms[0].spy.value="+spy+";";
to_return += "window.frames['"+name+"'].document.getElementById('target_attack').click ();";
return to_return;
}
var%20d=document;if(window.frames.length>0)d=window.main.document;
var url = window.location.href;
var ifr = "";
var alink = "";
var slink = "";
for(i=0;i<atacuri;i++)
{
if( typeof a[i] != 'undefined' ){
ifr += mif('name'+i,url);

alink += mau('name'+i);
slink += lau('name'+i, a[i]);
}
}
var rs = document.createElement('div');
rs.id ="RS-Illuminates";
document.getElementById("contentContainer").appendChild(rs);
var z = document.createElement('div');
var y = document.createElement('div');
z.innerHTML="<a style=\"display:block; width: 115px;height: 25px;background: #4E9CAF;padding: 10px;margin:10px; text-align: center;border-radius: 5px;border:1px solid #fff;color: white;font-weight: bold;\" href=\"javascript:"+alink+"\">RS Farm Baby!</a><p style=\"height: 25px;background: #333;padding: 10px;margin:10px; text-align: center; solid #fff;color: white;font-weight: bold;\">Trupe de farmat: Topoare:"+(axe*atacuri)+" Berbeci: "+(ram*atacuri)+" Usoara: "+(light*atacuri)+" Spioni: "+(spy*atacuri)+"</p> <a style=\"display: block;width: 115px;height: 25px;background: green;padding: 10px;margin:10px; text-align: center;border-radius: 5px;border:1px solid #fff;color: white;font-weight: bold;\" href=\"javascript:"+slink+"\">Inject data & confirm!</a><p style=\"height: 25px;background: #333;padding: 10px;margin:10px; text-align: center; solid #fff;color: white;font-weight: bold;\">Server Timer: <span id=\"serverTime\" title=\"\"></span> --- .. Reintoarcerea Samurailor-Farm Script by Illuminates ( v1.0)</span></p><br>";
document.getElementById("RS-Illuminates").appendChild(z);
y.innerHTML=ifr;
document.getElementById("RS-Illuminates").appendChild(y);
var winWidth = document.body.clientWidth;
var winHeight = document.body.clientHeight;
window.scrollTo(winWidth,winHeight);
 

Deleted User - 419875

Guest
I will take a look at this and then get back to you, but from what I see on the video it does not look legal for use on the US server. But I will take a look at it.
 

DeletedUser6712

Guest
so, what is the verdict for this script boss kawoni?
 

DeletedUser3662

Guest
I had trust the kyrtgr verdict and also tell kyr to be alive on skype :p

Red.
 

Deleted User - 419875

Guest
Sorry for the delayed response, busy during the holidays etc. I will get back to you shortly on this but so far I would say illegal.
 

DeletedUser8361

Guest
Sorry for the delayed response, busy during the holidays etc. I will get back to you shortly on this but so far I would say illegal.
Is this one legal or not? and if not can you point me in the direction of a legal farming script?

thanks
 
Top