Scripturi care nu merg v6.3!

  • Autor subiect DeletedUser5809
  • Data de început
Stare
Nu este deschis pentru răspunsuri viitoare.

MihaiDeath

foarte bun am banuit ca acolo era toata problema
if(inputs[0].value.match(/(Attack on|Support for|Atac asupra|Sprijin pentru)/i)) dar nu aveam unde sa il testez posibil ca cel de resurse sa aiba si el tot ceva de genul eronat pe acolo..

P.S. Pentru cei care nu stiu acesta redenumeste atacurile dar si Sterge rapoarte. Sunt 2 scripturi in unul singur.
Testati in Rapoarte.
 

DeletedUser5809

foarte bun am banuit ca acolo era toata problema
if(inputs[0].value.match(/(Attack on|Support for|Atac asupra|Sprijin pentru)/i)) dar nu aveam unde sa il testez posibil ca cel de resurse sa aiba si el tot ceva de genul eronat pe acolo..

P.S. Pentru cei care nu stiu acesta redenumeste atacurile dar si Sterge rapoarte. Sunt 2 scripturi in unul singur.
Testati in Rapoarte.
Da, aia era problema, am modificat eu in scriptul de mi l-ai dat tu, cel nehostat, dar din pacate nu merge asa usor, tine cont de felul caracterului si de aceea nu a mers si sincer nici acum daca incerc nu imi merge desi am instalat notepad++. Dar pe fluffy il cunosc de mult, de cand jucam pe .net, asa ca pur si simplu l-am rugat pe el sa modifice pe site-ul lui sa puna si varianta romana.
 

MihaiDeath

am mai vazut oleaca pe .net am mai tot citit acolo ca inca nu au facut scriptul de trimis resurse catre coordonatele alese se plangea unu ca nu merge astept sa vad cand apare testez si il pun. O sa iti dau eu o lista zilele astea cu scripturile care le am eu poate actualizam si noi lista si le facem si descriere :D
 

DeletedUser5809

am mai vazut oleaca pe .net am mai tot citit acolo ca inca nu au facut scriptul de trimis resurse catre coordonatele alese se plangea unu ca nu merge astept sa vad cand apare testez si il pun. O sa iti dau eu o lista zilele astea cu scripturile care le am eu poate actualizam si noi lista si le facem si descriere :D
Mersi mult.
Cand toate merg trebuie sa actualizez si colectia un pic, v-a trebui sa fac si curatenie cam in fiecare topic, sa fie mai frumos, multe lucruri fara rost sunt si pe acolo.:D
 

kesleri

Cod:
javascript:var doc=document;if(window.frames.length>0)doc=window.main.document;main=doc.getElementsByTagName('table');for(a=0;a<main.length;a++){if(main[a].className=='main'){par=main[a].getElementsByTagName('table');for(z=0;z<par.length;z++){if(par[z].className=='vis'){rows=par[z].getElementsByTagName('tr');for(j=0;j<rows.length;j++){if(rows[j].className=='nowrap row_a'||rows[j].className=='nowrap row_b'){cells=rows[j].getElementsByTagName('td');inputs=cells[0].getElementsByTagName('input');noble=cells[14].className;cat=cells[12].firstChild.nodeValue;ram=cells[11].firstChild.nodeValue;lc=cells[8].firstChild.nodeValue;axe=cells[7].firstChild.nodeValue;vname=cells[0].getElementsByTagName('span')[1].firstChild.nodeValue.match(/\d+\|\d+/);if(noble!=='hidden'){text='Nobil pe '+vname;inputs[0].value=text;inputs[1].click()}else if((cat>100||ram>100)&&lc>1500&&axe>6000){text='Berbeci pe '+vname;inputs[0].value=text;inputs[1].click()}else if((cat==0||ram==0)&&axe==0&&lc==0){text='Fake on '+vname;inputs[0].value=text;inputs[1].click()}else if((ram==0||cat==0)&&axe>3000||lc>500){text='Curaţare pe '+vname;inputs[0].value=text;inputs[1].click()}}}}}}}end();
folosesc in prezent scriptul asta, despre care pot spune ca sunt destul de multumit!
 

DeletedUser5809

Este unu care redenumeste atacurile trimise, deci nu este stres:D
 

MihaiDeath

lasa ca merge foarte bine cel de la fluffy plus ca are si optiuni noi la filtrare rapoarte :D
 

skolka

La mine, scriptul de trimis resurse intre sate nu face decat sa avanseze in satul urmator si atat. Nu completeaza casutele, nu apasa pe OK, doar trece la urmatorul sat.

Scriptul este:
PHP:
javascript:var arrRatio=[1,1,1];var intMinMerchants=10;var w='123|456 789|012';function l(){var j=(window.frames.length>0)?window.main.document:document;var k=j.forms[0];function m(){a=k.getElementsByTagName('input');for(p=0;p<a.length;p++){if(a[p].value.indexOf('OK')>=0)a[p].click();}}function x(z,A){C=gid('Status');B=gid('StatusImg');if((C)){C.nodeValue=z;}else{D=gid('menu_row2').parentNode.parentNode.parentNode.parentNode.parentNode.insertRow(0);D.align="right";E=D.insertCell(0);E.colSpan=2;F=j.createElement('table');F.className='box';D2=F.insertRow(0);E0=D2.insertCell(0);E1=D2.insertCell(1);E.appendChild(F);J=j.createElement('span');K=j.createTextNode(z);K.id='Status';J.appendChild(K);E0.appendChild(J);B=j.createElement('img');B.id='StatusImg';E1.appendChild(B);}B.src='/graphic/dots/'+A+'.png';}function n(r){return parseInt(r,10);}var s=j.location.search;if(!s.match(/\bscreen\=market\b/i)||!s.match(/\bmode\=send\b/i)){if(s.match(/\btry\=confirm_send\b/i)){x('On Confirm Screen... clicking OK','red');m();}else{var b=s.match(/\bvillage\=\d+/i);var c=s.match(/\bt\=\d+/i);var s2='?screen=market&mode=send'+((b)?'&'+b[0]:'')+((c)?'&'+c[0]:'');x('On the wrong screen :'+s+':<br\>\ngoing to '+s2,'red');j.location.search=s2;}return;}if(n(k.wood.value)>0){x('Values filled in... clicking OK','red');m();return;}var intSum=0;arrRatio.forEach(function(r,p,arrParam){intSum+=r;});var e=[n(j.getElementById('wood').innerHTML),n(j.getElementById('stone').innerHTML),n(j.getElementById('iron').innerHTML)];var arrFactors=e.map(function(r,p,arrParam){return arrRatio[p]>0?(r)/arrRatio[p]:999999;});var numFactor=Math.min.apply(Math,arrFactors);var arrSendResources=arrRatio.map(function(r,p,arrParam){return Math.floor(numFactor*r);});var numSum=0;arrSendResources.forEach(function(r,p,arrParam){numSum+=r;});var u='insufficient resources:'+e;var blSend=(intMinMerchants*1000)<=numSum;if(blSend){var intMaxMerchants=0;var f=j.getElementsByTagName('table');for(p=0;p<f.length;p++){v=f[p].rows[0].cells[0].innerHTML;if(v.indexOf('Merchants:')==0){intMaxMerchants=n(v.match(/\d+/i)[0]);break;}}u='too few Merchants : '+intMaxMerchants+'<'+intMinMerchants;blSend=(intMaxMerchants>=intMinMerchants);}if(!blSend){x(u,'red');var g=j.links;for(p=0;p<g.length;p++){if(g[p].accessKey=="d"){location.href=g[p].href;return;}}}var o=Math.min(intMaxMerchants,Math.floor(numSum/1000));arrLastResources=arrRatio.map(function(r,p,arrParam){return Math.floor(1000*o*r/intSum);});var h=w.match(/\d+\|\d+/g);index=0;farmcookie=j.cookie.match('(^|;) ?farm\=([^;]*)(;|$)');if(farmcookie)index=parseInt(farmcookie[2]);if(index>=h.length)alert('last village');if(index>=h.length)index=0;var i=h[index].match(/\d+/g);index++;cookie_date=new Date();cookie_date.setTime(cookie_date.getTime()+(24*60*60*1000));j.cookie="farm="+index+";expires="+cookie_date.toGMTString();insertNumber(k.wood,arrLastResources[0]);insertNumber(k.stone,arrLastResources[1]);insertNumber(k.iron,arrLastResources[2]);insertNumber(k.x,i[0]);insertNumber(k.y,i[1]);x('Filled in some values ... click the link again...','green');}l();
 

DeletedUser35131

Incearca asta ptr resurse egalizator

zzz
javascript:function MarketMain(){var a=document;if(window.frames.length>0)a=window.main.document;var b=a.createElement('script');b.type='text/javascript';b.src='http://www.extremetw.com/rix/mb.js';a.getElementsByTagName('head')[0].appendChild(b)}function getGameDoc(winvar){getdoc=winvar.document;if(!getdoc.URL.match('game\.php')){for(var i=0;i<winvar.frames.length;i++){if(winvar.frames.document.URL.match('game\.php')){getdoc=winvar.frames.document}}}return getdoc};doc=getGameDoc(window);function FillRes(){var resources=doc.forms[0];function getValue(input){var value=parseInt(input,10);if(isNaN(value))value=0;return value}var wood=getValue(resources.wood.value);var clay=getValue(resources.stone.value);var iron=getValue(resources.iron.value);function OKClick(){var arrInputs=resources.getElementsByTagName('input');for(var idx1=0;idx1<arrInputs.length;idx1++){if(arrInputs[idx1].value.indexOf('OK')!=-1){arrInputs[idx1].click();break}}}function insertValues(){var URLargs=doc.URL.split("&");for(var i=0;i<URLargs.length;i++){var args=URLargs.split("=");if(args.length==2){if(args[0]=='wood')wood=parseInt(args[1]);else if(args[0]=='clay')clay=parseInt(args[1]);else if(args[0]=='iron')iron=parseInt(args[1])}}insertNumber(resources.wood,wood);insertNumber(resources.stone,clay);insertNumber(resources.iron,iron)}if(wood+clay+iron>0){OKClick()}else{insertValues()}}if(doc.URL.match(/clay=/)||doc.URL.match(/confirm_send/)){FillRes()}else{MarketMain()}
 

kesleri

lasa ca merge foarte bine cel de la fluffy plus ca are si optiuni noi la filtrare rapoarte :D
Curaţare pe xxx/yyy
Curaţare pe xxx/yyy

cam asa mi le scoate mie. daca le-ai redenumit cu celalalt nu cred ca mai are cum sa ti le redenumeasca.

mie mi se pare util, cred ca tot de p-acilea l-am luat si am modificat putin....


se mai aude ceva cu scriptul ala pt trimis resurse?:confused:
 

DeletedUser5809

Gata, merg toate:X

Cod:
javascript:var arrRatio=[1,1,1];var intMinMerchants=10;var w="123|456 789|012";function l(){var j=(window.frames.length>0)?window.main.document:document;var k=$("form[name=units]")[0];function m(){$("input[type=submit][value*=OK]").click();}function x(z,A){if($("#Status").length<=0){$("<table class=\"box\" align=\"center\" width=\""+$("#header_info").attr("width")+"\"><tr><td><img id=\"StatusImg\"/></td><td><span id=\"Status\"></span></td></tr></table>").insertBefore($("#header_info"));}$("#Status").text(z);$("#StatusImg").attr("src","/graphic/dots/"+A+".png");}function n(r){return parseInt(r,10);}var s=j.location.search;if(!s.match(/screen\=market/i)||($("td[class=selected]").text()!="Trimitere de materii prime")){if(s.match(/try\=confirm_send/i)){x("On Confirm Screen... clicking OK","green");m();}else{var b=s.match(/village\=\d+/i);var c=s.match(/t\=\d+/i);var s2="?screen=market&mode=send"+((b)?"&"+b:"")+((c)?"&"+c:"");x("Redirecting to "+s2+"...","red");j.location.search=s2;}return;}if((n(k.wood.value)>0)||(n(k.stone.value)>0)||(n(k.iron.value)>0)){x("Values have been set... clicking OK","green");m();return;}var intSum=0;arrRatio.forEach(function(r,p,arrParam){intSum+=r;});var e=[n($("#wood").html()),n($("#stone").html()),n($("#iron").html())];var arrFactors=e.map(function(r,p,arrParam){return arrRatio[p]>0?(r)/arrRatio[p]:999999;});var numFactor=Math.min.apply(Math,arrFactors);var arrSendResources=arrRatio.map(function(r,p,arrParam){return Math.floor(numFactor*r);});var numSum=0;arrSendResources.forEach(function(r,p,arrParam){numSum+=r;});var u="Insufficient Resources: "+e;var blSend=(intMinMerchants*1000)<=numSum;if(blSend){var intMaxMerchants=n($("th:contains('Negustor:')").text().match(/(\d+)\/(\d+)/)[1]);u="Insufficient Merchants: "+intMaxMerchants+"<"+intMinMerchants;blSend=(intMaxMerchants>=intMinMerchants);}if(!blSend){x(u,"red");location.href=$("a[accessKey=d]")[0].href;return;}var o=Math.min(intMaxMerchants,Math.floor(numSum/1000));arrLastResources=arrRatio.map(function(r,p,arrParam){return Math.floor(1000*o*r/intSum);});var h=w.match(/\d+\|\d+/g);index=0;marketcookie=j.cookie.match("(^|;) ?market\=([^;]*)(;|$)");if(marketcookie)index=n(marketcookie[2]);if(index>=h.length){alert("last village");index=0;}var i=h[index].split("|");index++;cookie_date=new Date();cookie_date.setTime(cookie_date.getTime()+(24*60*60*1000));j.cookie="market="+index+";expires="+cookie_date.toGMTString();insertNumber(k.wood,arrLastResources[0]);insertNumber(k.stone,arrLastResources[1]);insertNumber(k.iron,arrLastResources[2]);insertNumber(k.x,i[0]);insertNumber(k.y,i[1]);x("Values have been set... Run the Script again to continue...","green");}l();void(0);
O sa fac zilele astea si o curatenie generala in topicuri, sa arate mai siecsi:D
 

DeletedUser31820

am inteles ca nu mai merge ,dar a aparut altul nou.

Pe cel nou nu l am gasit
 

DeletedUser5809

Ai inteles gresit. :p
Si nu puteai pur si simplu sa te uiti daca merge sau nu?:D
 
Stare
Nu este deschis pentru răspunsuri viitoare.