Approved script Scavenging script - Early release

Discussion in 'Scripts & Independent Tools' started by Shinko to Kuma, Feb 26, 2019.

Share This Page

  1. Shinko to Kuma

    Shinko to Kuma Non-stop Poster

    Joined:
    Sep 22, 2017
    Messages:
    201
    Likes Received:
    205

    Last update: 11 JUNE 2019 - REWRITING CODE FROM SCRATCH
    https://puu.sh/DEi8Q.mp4

    13 June: added a counter that says how many times the script got used by all users :D

    How to use:

    Scavenge script:

    Code:
    javascript:
        //Creators: Sophie "Shinko to Kuma" - Mitchell "Superdog"
    $.getScript('https://dl.dropboxusercontent.com/s/fjvfvfa20xpaii2/scavengingfinal.js');
    
    Youtube tutorial by Marshyyy


    Preview:
    [​IMG]


    Feel free to give feedback in comments or report any problems, I will attempt to fix them asap.


    Current known bugs: None?




    Update 27/02: fixed for .US worlds
    Update 02/03: ADDED AUTOMATED GRABBING OF VARIABLES! Great progress
    Update 07/03: Added functionality on hopefully all servers! (Cant test myself on every server so please give feedback)
    Update 08/03: Rewrote and condensed script, fixed recalculation bug when going past certain limits
    Update 09/03: Adjusted script to work for mobile app!
    Update 16/03: Approved on .nl! Ticket nr. #T13037887
    Update 05/04: Added option to disable individual categories
     
    Last edited: Jun 13, 2019
    Nyamuragira, Arcward, Backen and 4 others like this.
  2. Zain

    Zain Member

    Joined:
    Aug 20, 2015
    Messages:
    12
    Likes Received:
    5
    Thanks
     
  3. Hektik

    Hektik Still Going Strong

    Joined:
    Nov 12, 2014
    Messages:
    803
    Likes Received:
    1,121
  4. rockandroll6

    rockandroll6 New Member

    Joined:
    Mar 1, 2019
    Messages:
    1
    Likes Received:
    0
    Doesn't work...I tried it in Opera, Chrome and Explorer. I'm in world 106. I changed the world variable to what I found in the Scavenge page: 0.6830201284...the time and factor were right.
    I had First 3 levels already scavenging when I tried the script for level 4.

    It was giving me wayyyy smaller troop count calculating for about an hour
     
  5. Shinko to Kuma

    Shinko to Kuma Non-stop Poster

    Joined:
    Sep 22, 2017
    Messages:
    201
    Likes Received:
    205
    Any screenshots? This is weird considering myself and many others have successfully tested/used it on 106...
     
  6. Stefan J B

    Stefan J B New Member

    Joined:
    Mar 17, 2014
    Messages:
    9
    Likes Received:
    2
    I'm having similar issues in 106, it seems to work for one village then when you move onto the next it will provide lower amounts of troop each time. Logging out and refreshing the page doesn't change it, what exactly would you like screenshots of?

    Thanks for all the effort put in as well though, if I can get it working correctly it will be amazing.
     
    Shinko to Kuma likes this.
  7. Shinko to Kuma

    Shinko to Kuma Non-stop Poster

    Joined:
    Sep 22, 2017
    Messages:
    201
    Likes Received:
    205
    I’ll try and get an account sit on 106 to test myself and see whats going wrong. I only tested with one village on that world, but I don’t see straight away what could cause it. Debugging purely on screenshots is going to be hard but if you could provide me an image where it fills in the wrong troopcounts I’d appreciate it
     
  8. Stefan J B

    Stefan J B New Member

    Joined:
    Mar 17, 2014
    Messages:
    9
    Likes Received:
    2
    Not sure if this will help, but here you go.

    [​IMG]
    [​IMG]
     
  9. Superdog

    Superdog Non-stop Poster

    Joined:
    Jan 18, 2017
    Messages:
    143
    Likes Received:
    261
    That is working as intended.

    You don't have the troops necessary to send out 4 hours on every scavenge option so it spreads it evenly over the options.
    As you have more troops in one vill than in the other this means that the times it takes for the runs to return will be different over different villages.
     
  10. Stefan J B

    Stefan J B New Member

    Joined:
    Mar 17, 2014
    Messages:
    9
    Likes Received:
    2
    Right, that makes sense. I'm guessing there's not a way for it to just take into account the highest level of scavenging or just ignoring the first level?
     
  11. Shinko to Kuma

    Shinko to Kuma Non-stop Poster

    Joined:
    Sep 22, 2017
    Messages:
    201
    Likes Received:
    205
    Right now, no, since it's not really beneficial to not use one of the categories :/ Sure you run longer on one but you lose resources you could have gotten from the other category, and the more units you put in one category, the more your returns diminish to the point where all 4 categories start giving minimal returns for time it's running.

    I updated the script today tho, now there is no longer any need to adjust any variables manually. So big progress. If you got more requests let me know and I'll see what I can do, when I Find time. In war on W104 right now so might be a bit busy the next days :p
     
  12. Ragestyles

    Ragestyles Non-stop Poster

    Joined:
    Nov 29, 2018
    Messages:
    254
    Likes Received:
    122
    diminishing returns start to kick in strongly at like 1:30 - 2:00 hours scavenge time
    If there was an option/way to implement for the script to scip lackadaiscal looters whenever scavenge time on that is like below 1:30hours then that would be awesome. because at that point it is actually more res per hour if you only do lvl 2 and 3 scavenge. <--- that is what one should do on newly conquered villages or when a new world starts

    but yeah that is just a min-maxing thing.....

    so far i fkn love your script Sophie [​IMG]
     
    Shinko to Kuma likes this.
  13. Shinko to Kuma

    Shinko to Kuma Non-stop Poster

    Joined:
    Sep 22, 2017
    Messages:
    201
    Likes Received:
    205
    When i find some time I’ll see if I can add disable the individual settings
     
  14. Stefan J B

    Stefan J B New Member

    Joined:
    Mar 17, 2014
    Messages:
    9
    Likes Received:
    2
    Sounds good, not a massive issue anyway as stated only really a problem for new villages so developed ones will work perfectly. Thanks
     
  15. Rigamortus

    Rigamortus New Member

    Joined:
    Jan 11, 2019
    Messages:
    1
    Likes Received:
    0
    Hey the script seems great! I've been trying to get it to work in my national server, it uses the same variables names such as units so most scripts from uk tend to work but yours when i set the unit types i want to scavenge with it doesn't fill the unit form. If you could give me a clue on why that is please fill me in. Ty!
     
  16. Shinko to Kuma

    Shinko to Kuma Non-stop Poster

    Joined:
    Sep 22, 2017
    Messages:
    201
    Likes Received:
    205
    Change the name of the arrays, like “lackadaisical looters” to the correct name on your server

    - Sophie
     
  17. Shinko to Kuma

    Shinko to Kuma Non-stop Poster

    Joined:
    Sep 22, 2017
    Messages:
    201
    Likes Received:
    205
    Should now work on any server! Updated the source code
     
  18. whatever

    whatever New Member

    Joined:
    Mar 8, 2019
    Messages:
    1
    Likes Received:
    0
    Hey, does it need premium to work or can I run it in my browser?
     
  19. jaro

    jaro New Member

    Joined:
    Mar 8, 2019
    Messages:
    5
    Likes Received:
    1
  20. Shinko to Kuma

    Shinko to Kuma Non-stop Poster

    Joined:
    Sep 22, 2017
    Messages:
    201
    Likes Received:
    205
    I’ll take a look in the morning, I unfortunately have no account there but ill figure out a way
     
    jaro likes this.