Approved: ExtremeTw - Resource Balancer

Discussion in 'Scripts & independent tools' started by RonPaul2008, Nov 11, 2010.

Share This Page

  1. AuthorityIssues

    AuthorityIssues <img src="http://i1318.photobucket.com/albums/t655

    Joined:
    Sep 11, 2011
    Messages:
    115
    Likes Received:
    6
    hallelujah!!! I didn't realise how much I relied on it until it broke.
     
  2. ACKI xD

    ACKI xD Member

    Joined:
    Apr 15, 2014
    Messages:
    210
    Likes Received:
    6
    The res balancer has different benefits to the stockpiler so i still use it now and then but,,

    A problem occurred in a Python script.
    /home/extrem14/public_html/logs/ResBalancer/tmpQYSy7H.html contains the description of this error. < Da Fuq? :S
     
  3. sean

    sean Member

    Joined:
    Jun 4, 2009
    Messages:
    622
    Likes Received:
    8
    Does anyone know if this is fixed or not, it plays a big part in me deciding if I should play this game again or not haha.
     
  4. Patris Mortem

    Patris Mortem Well-Known Member

    Joined:
    Jul 3, 2014
    Messages:
    2,034
    Likes Received:
    113
    I used it recently..
     
  5. sean

    sean Member

    Joined:
    Jun 4, 2009
    Messages:
    622
    Likes Received:
    8
    Copy your script onto this please.
     
  6. Taste It

    Taste It New Member

    Joined:
    Nov 24, 2014
    Messages:
    19
    Likes Received:
    0
    Hi again Sean.

    Has anyone got a solution for this script yet it's been broken for as long as I can remember, it's really frustrating
     
  7. Patris Mortem

    Patris Mortem Well-Known Member

    Joined:
    Jul 3, 2014
    Messages:
    2,034
    Likes Received:
    113
    Are you using it correctly? Works for me.

    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()}
     
  8. tedd66

    tedd66 Well-Known Member

    Joined:
    Jul 5, 2009
    Messages:
    1,016
    Likes Received:
    49
    how do you use that one^ never seen that before :s

    the one posted in this forum still doesnt work :(
     
  9. Patris Mortem

    Patris Mortem Well-Known Member

    Joined:
    Jul 3, 2014
    Messages:
    2,034
    Likes Received:
    113
  10. chestycles

    chestycles Member

    Joined:
    Dec 1, 2009
    Messages:
    69
    Likes Received:
    0
    Me Thank you very much :)
     
  11. MoraleKi11er

    MoraleKi11er Active Member

    Joined:
    Aug 29, 2011
    Messages:
    276
    Likes Received:
    34
    Any update to the script being fixed?
     
  12. Volkan

    Volkan Member

    Joined:
    Apr 25, 2013
    Messages:
    636
    Likes Received:
    17
    they won't fix the script

    they won't fix the crap stockpile feature either.

    what they are good for i do not know
     
  13. Brax

    Brax Guest

    Still not working!
     
  14. tedd66

    tedd66 Well-Known Member

    Joined:
    Jul 5, 2009
    Messages:
    1,016
    Likes Received:
    49
    Any update on this?
     
  15. Bruninieks

    Bruninieks Guest

    The script launcher is probably using an outdated version of the script. Here is the latest updated version of the Resource Balancer script:
    PHP:
    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[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()}
    Hopefully the launcher gets updated
     
    Last edited by a moderator: Jul 3, 2015
  16. I am Shifty

    I am Shifty Guest

    Can we get it uploaded to the secure server (http://www.extremetw.com/rix/mb.js) so to fix the script on newer worlds?
     
  17. TondoF3

    TondoF3 New Member

    Joined:
    Jun 28, 2010
    Messages:
    4
    Likes Received:
    0
    When I select the script after it takes me to the market page, I just get a page saying session has expired, return to homepage. Can anyone help me with this?
     
  18. Can you please post a picture or something so I can know what ur talking about?
     
  19. I uploaded it on a secure server
    PHP:
    javascript:$.getScript("https://dl.dropbox.com/s/w3srg3nitre5jqv/Resourse-balancer.js?dl=0");void(0)
     
  20. TondoF3

    TondoF3 New Member

    Joined:
    Jun 28, 2010
    Messages:
    4
    Likes Received:
    0

    Session expired

    Your session has expired. Please log in again at Homepage.