DaWolf85
Non-stop Poster
- Reaction score
- 583
- Author
- Dawolf85
- Contributors
- oreg/silicina
- Quickbar Entry
-
javascript:$.getScript('https://dl.dropboxusercontent.com/s/dukcaol8u27wxg2/watchtower_timer.js');void(0);
- Public?
- Public
This is a fully working, English-translated version of this watchtower timer script from oreg/silicina on the .hu forums.
I would like to thank lodi94 for giving me the idea with his version for both the Italian and International versions. Unfortunately, his version does not work for me, and his code is too obfuscated to try and fix - so I went back to the source, fixed it up a bit, translated it to English, and got it approved for .net (ticket number
For anyone looking to edit this script in the future - some of the comments I could not translate perfectly (as I do not speak Hungarian, I used Google Translate). For these, I have attached a
Description:
This script will calculate when an incoming attack will enter your watchtower's range, and display a countdown for each incoming you have. It will create a new column for this, labeled "Watchtower".
If the incoming is already detected by a watchtower, the script will print "Detected". If the incoming will not fall inside a watchtower's range, it will print "Undetectable". Otherwise, it will show a countdown to the time the attack will be detected by a watchtower.
Usage:
If an incoming's name includes two of these tags, the script will pick the first one from this list.
With all of that out of the way, here is the script itself:
I would like to thank lodi94 for giving me the idea with his version for both the Italian and International versions. Unfortunately, his version does not work for me, and his code is too obfuscated to try and fix - so I went back to the source, fixed it up a bit, translated it to English, and got it approved for .net (ticket number
t13893927
).For anyone looking to edit this script in the future - some of the comments I could not translate perfectly (as I do not speak Hungarian, I used Google Translate). For these, I have attached a
(?)
to the end of the comment, to denote questionable English.Description:
This script will calculate when an incoming attack will enter your watchtower's range, and display a countdown for each incoming you have. It will create a new column for this, labeled "Watchtower".
If the incoming is already detected by a watchtower, the script will print "Detected". If the incoming will not fall inside a watchtower's range, it will print "Undetectable". Otherwise, it will show a countdown to the time the attack will be detected by a watchtower.
Usage:
- Click the script to be taken to the appropriate incomings page. It requires that you be on the 'unignored' incomings page, so even if you think you are on the incomings page, it may still refresh the page to take you where it wants to be.
- Click the script again to actually run it.
- Sword-speed attacks should include "Sword" in their name.
- Axe/Spear-speed attacks should include "Axe" or "Spear" in their name.
- Scout-speed attacks should include "Scout" or "Spy" in their name.
- Light Cavalry-speed attacks should include "LCav" or "Light" in their name.
- Heavy Cavalry-speed attacks should include "HCav" or "Heavy" in their name.
- Ram/Cat-speed attacks should include "Ram", "Cat", or "Catapult" in their name.
- Noble-speed attacks should include "Noble" in their name.
If an incoming's name includes two of these tags, the script will pick the first one from this list.
With all of that out of the way, here is the script itself:
Code:
javascript:$.getScript('https://dl.dropboxusercontent.com/s/dukcaol8u27wxg2/watchtower_timer.js');void(0);
Last edited:
Upvote
8