Can I make a script

Discussion in 'Questions' started by Shortfuse, Nov 22, 2018.

Share This Page

  1. Shortfuse

    Shortfuse Non-stop Poster

    Joined:
    Aug 25, 2016
    Messages:
    182
    Likes Received:
    164
    That inputs troops into the scavenging page? So with one click it writes down all troops I want but I have to click Start myself.
     
  2. McCree

    McCree Active Member

    Joined:
    Dec 21, 2017
    Messages:
    39
    Likes Received:
    27
    I was thinking of trying to make something like that as well during my christmas break. :)
    Scavenging is so time consuming lol.
     
  3. OneMoreLight

    OneMoreLight Member

    Joined:
    Oct 2, 2014
    Messages:
    15
    Likes Received:
    10
    I got one already, it puts in troops according to a template. If you attach a shortcut to it can scavenge really fast.

    Don't have it approved yet though, cause I wanted to improve it first (add options for template by time/troops etc) but I can't find the time to work on it... if people are interested will share it
     
    McCree likes this.
  4. mcclane654

    mcclane654 New Member

    Joined:
    Oct 28, 2014
    Messages:
    2
    Likes Received:
    0
    What command did you use to insert the troops? worked on a script about a half year ago. but could not figure out how to add the troops. they where just removed. contacted support as it was the only thing that I was missing. but never heard back :(
     
  5. OneMoreLight

    OneMoreLight Member

    Joined:
    Oct 2, 2014
    Messages:
    15
    Likes Received:
    10
    I had the same problem, fixed it with this

    $(`input.unitsInput[name='${unitType}']`).val(count).trigger("change");
     
    mcclane654 likes this.