Balanta resurse intre sate!

  • Autor subiect DeletedUser5809
  • Data de început

ChineZeu

member
incearca cu asta
Cod:
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 = 'https://dl.dropbox.com/u/100563986/targ/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[i].document.URL.match('game\.php')) {
                getdoc = winvar.frames[i].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[i].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()
}
 

geticul

incearca cu asta
Cod:
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 = 'https://dl.dropbox.com/u/100563986/targ/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[i].document.URL.match('game\.php')) {
                getdoc = winvar.frames[i].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[i].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()
}

Am incercat astfel cu scriptul dat de tine.

Pe chrome 36 nu vrea sa faca nimica.
Pe mozilla 30 a realizat scriptul o data. Dupa cateva ore am incercat din nou si nu mai vrea.
Pe opera 22 nu vrea deloc sa execute scriptul.

Precizez ca la toate browserele am activat sa arate pop-ups la toate site-urile. Altceva nu mai stiu ce sa fac.
 

ChineZeu

member
Nu stiu ce poate fi
Adauga-ma pe skype ca sa controlez
ID: dr.dreams.jr

PS: scriptul trebuie rulat pe privire generala modul productie
acolo dai o data click pe script si va clona pagina (in fereastra noua pentru opera si chrome) dupa dai inca o data click pe script, click pe submit si iti va aparea o lista cu link-uri
 

geticul

L-am mai folosit inainte si pe alte lumi. stiu cum merge, chit ca s-au facut niste modificari la el.

ca noutate aseara am vazut ca merge pe mozilla, dar nu din prima. ma gandesc ca poate sa il influenteze si viteza netului, avand apps sharuit pe dropbox.

LE Nu sunt in tara momentan si cu skype merge mai greu, ca e interzis in zona. Am vazut ca pe netul de la provider nu merge activarea scriptului, nu stiu de ce. Daca imi pornesc VPN-ul, scriptul se executa pe mozilla. Acum ramane sa verific si pe chrome si opera.
 
Ultima editare de un moderator:

geticul

nici mie nu imi mai merge de luni. am crezut ca e din cauza netului prima data. daca s-a mai intamplat si la altii m-am linistit.
 

DeletedUser44058

Tot incerc sa dau de tipul care se ocupa de script pe skype, am incercat sa-i explic problema, dar tot imi spune ca mai tarziu...

uitati conversatia:
[9/29/2014 12:43:42 PM] Bogdan (Body) Iovan: Hello, i have added you, regarding the Resource Balancer script from ExtremeTW.com
[9/29/2014 1:47:39 PM] *** RonPaul2008 has shared contact details with Bogdan (Body) Iovan. ***
[9/29/2014 1:47:52 PM] Bogdan (Body) Iovan: hello
[9/29/2014 1:47:58 PM] RonPaul2008: hi
[9/29/2014 1:48:51 PM] RonPaul2008: hmm
[9/29/2014 1:48:57 PM] RonPaul2008: crashing again?
[9/29/2014 1:49:17 PM] RonPaul2008: i can look in 14 hours
[9/29/2014 1:49:47 PM] Bogdan (Body) Iovan: well
[9/29/2014 1:49:53 PM] Bogdan (Body) Iovan: i get an error page
[9/29/2014 1:50:17 PM] Bogdan (Body) Iovan: Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@extremetw.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
[9/29/2014 1:50:23 PM] Bogdan (Body) Iovan: after i press submit
[9/29/2014 1:50:27 PM] Bogdan (Body) Iovan: i've read the faq
[9/29/2014 1:50:38 PM] Bogdan (Body) Iovan: and waited enough to make sure page is loaded
[9/29/2014 1:50:52 PM] Bogdan (Body) Iovan: i am playing on an .ro server
[9/29/2014 1:51:07 PM] Bogdan (Body) Iovan: any insight you can provide, i am grateful.
[9/29/2014 2:01:39 PM] Bogdan (Body) Iovan: about the dynamic menu bar, how do i check if it's enabled?
[9/29/2014 2:01:49 PM] Bogdan (Body) Iovan: and is it from the browser or the game?
[9/29/2014 2:07:35 PM] RonPaul2008: I have no more time to look now. I will within next 24 hours
[9/29/2014 3:47:05 PM] Bogdan (Body) Iovan: sure and thank you.
[3:51:04 PM] Bogdan (Body) Iovan: hello
[3:54:04 PM] Bogdan (Body) Iovan: please let me know if you have time to talk about why i keep getting an error after i press submit
[4:19:25 PM] RonPaul2008: In 12 hours
[4:21:46 PM] Bogdan (Body) Iovan: problem is that means 4 am in my country, but i've basicly written you what is the problem, if you can take a look even in 12 hours :), i will read it in 18 hours, at 10 o clock my time.
 

DeletedUser44058

De azinoapte de la ora 4, merge scriptul de balanta.

hello
[9/30/2014 3:54:04 PM] Bogdan (Body) Iovan: please let me know if you have time to talk about why i keep getting an error after i press submit
[9/30/2014 4:19:25 PM] RonPaul2008: In 12 hours
[9/30/2014 4:21:46 PM] Bogdan (Body) Iovan: problem is that means 4 am in my country, but i've basicly written you what is the problem, if you can take a look even in 12 hours :), i will read it in 18 hours, at 10 o clock my time.
[12:12:52 AM] Bogdan (Body) Iovan: hello
[3:50:10 AM] RonPaul2008: ok fixed

Spor.

edit:
si motivul pt care nu mergea...
[3:50:10 AM] RonPaul2008: ok fixed
[2:55:06 PM] RonPaul2008: Working for you?
[2:59:41 PM] Bogdan (Body) Iovan: yes, thank you very much
[3:00:06 PM] Bogdan (Body) Iovan: i wasn't working on any of the .ro servers and we use it daily
[3:00:20 PM] Bogdan (Body) Iovan: i'm curios what happened, why it wasn't working
[3:59:59 PM] RonPaul2008: For some reason the script lost execution privileges on my server
[4:00:38 PM] Bogdan (Body) Iovan: strange, in any case, a lot of people are grateful.:)
 
Ultima editare de un moderator: