When the desired inputs are selected, clicking the "Distribute" button will optimize the selected troops between the selected levels for maximum resources per hour. The troop inputs can be saved in "localStorage" by clicking the chest(inventory icon). The script allows the user to input troops, which levels to distribute between (1-4 or custom level selection "*") and whether or not +20% premium boost will be enabled for the given level. If it's run from another screen, it will prompt the user to switch to scavenger screen. The script is run from the scavenging screen, and will open an interface - "Outstanding Organizer" (image below). I've made the script myself, but the formulas to calculate looted resources and time are taken from scavenger.js provided by TW. The script also includes some comments to describe the different functions. According to the script approval process, it should technically be "approved by default" as it only interacts with TW by reading the page and filling input-field, but it'd be nice to know for sure and get it in the officially approved script listings. In brief: The script finds the optimal distribution of troops between the different levels on the scavenging screen for a given amount of troops. I'd like to get this script approved for use. The latest unminified versions can be found here The script loader for copy/paste in the quick bar loads a minified version of the script, and I will ensure that the version from the loader matches the latest version in the changelog presented here. I've pasted the original ticket below, describing how to use the script and briefly how it works. Since the approval I have only done bug fixes and minor improvements, meaning that the functionality remains the same. However, I'm uploading it here as well to make sure that it is approved under the new system, and since I also wish to make it available for everyone by getting it in the offically approved scripts listings. It was approved in ticket #t13006587 under the old approval system. This is a scavenger script that distributes troops between the available/selected levels to maximize resources per hour.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |