Proximity Script

Discussion in 'Questions & Requests' started by Anonymous..., May 21, 2019.

Share This Page

  1. Anonymous...

    Anonymous... Member

    Joined:
    Feb 6, 2015
    Messages:
    19
    Likes Received:
    3
    Are there any working proximity scripts still running around? I haven't seen a working one in quite some time.

    Thank you in advance
     
  2. tcamps

    tcamps Non-stop Poster

    Joined:
    Jan 20, 2018
    Messages:
    111
    Likes Received:
    59
    What do you mean by "proximity script"?
     
  3. Anonymous...

    Anonymous... Member

    Joined:
    Feb 6, 2015
    Messages:
    19
    Likes Received:
    3
    Sorry for the late reply.

    What I mean by proximity script is a script that would sort your villages (from closest or furthest or vise versa) from a specific coordinate and included the distance in fields. Sadly I don't seem to have an example of said script, or a forum post detailing one.
     
  4. Shinko to Kuma

    Shinko to Kuma Non-stop Poster

    Joined:
    Sep 22, 2017
    Messages:
    164
    Likes Received:
    172
    im fairly sure @tcamps has a functionality like that in his Vault script, don’t know if he has a standalone version tho.
     
  5. tcamps

    tcamps Non-stop Poster

    Joined:
    Jan 20, 2018
    Messages:
    111
    Likes Received:
    59
    Vault does not have that, I don't have any script like this
     
  6. Sashaahn

    Sashaahn Well-Known Member

    Joined:
    Nov 17, 2014
    Messages:
    91
    Likes Received:
    61
  7. Anonymous...

    Anonymous... Member

    Joined:
    Feb 6, 2015
    Messages:
    19
    Likes Received:
    3
    I had tried using that, the only issue is when you're attempting to send 100+ attacks to 100+ villages is can become very tedious to rename time and again.

    Thanks for bringing that up though
     
  8. Sashaahn

    Sashaahn Well-Known Member

    Joined:
    Nov 17, 2014
    Messages:
    91
    Likes Received:
    61
    Obviously twstats and fxutility will both do proximity for you but I’m guessing you want it done ingame.

    You’re right about a snipe script then. There were a couple in the past that let you paste in the co-ordinates of the village you wanted to send to and would sort your villages accordingly. Maybe dig one of them out and ask kindly if one of the well known scripters here would mind looking at it if it doesn’t take them too much time.

    I’m certainly at a loss for you. And best of luck on your hunt!
     
  9. Anonymous...

    Anonymous... Member

    Joined:
    Feb 6, 2015
    Messages:
    19
    Likes Received:
    3
    Finally found an example, sadly its broken. But with any luck may find someone who has something similar.

    Code:
    javascript: var worldSpeed = 1;  var speed = {      spear: 18 / worldSpeed,      sword: 22 / worldSpeed,        axe: 18 / worldSpeed,    archer: 18 /
    
    worldSpeed,    spy: 9 / worldSpeed,    
    
    light: 10 / worldSpeed,      marcher: 11 / worldSpeed,      heavy: 11 / worldSpeed,      ram: 30 / worldSpeed,      catapult: 30 / worldSpeed,      knight: 10 / worldSpeed,      snob: 35
    
    / worldSpeed,      militia: 0 / worldSpeed  };
    
    var win = (window.main || self);  var destby = win.game_data.village.coord;  $.getScript("https://dl.dropboxusercontent.com/u/144647314/twscripts/MultiPurposeProximity.js");
    
    void(0);
     
  10. .Arrogant

    .Arrogant New Member

    Joined:
    Jun 12, 2019
    Messages:
    1
    Likes Received:
    1
    I`ve rewritten the script you posted as an example.

    Code:
    javascript:$.getScript("https://programmingtuts.nl/twscripts/proximity.js");void(0);
     
    Anonymous... likes this.
  11. Anonymous...

    Anonymous... Member

    Joined:
    Feb 6, 2015
    Messages:
    19
    Likes Received:
    3
    You are a god good sir.
     
  12. Math Debator

    Math Debator Non-stop Poster

    Joined:
    Aug 27, 2013
    Messages:
    119
    Likes Received:
    45
    Thank you so much. I have missed this script greatly.