The Auto Archer! (+MELEE)
This add-on helps archer classes get through the laborious early-game grind required to get past the first few zones of the campaign. Pressing a bindable key (default "x") causes the your character to take an automated combat action for 1 turn. Now, you can sit back and watch your archer gun down the minions and step in when the tough fights occur

The Auto Archer behaves as follows:
- auto explores when no enemies are around
- NEW! freezes in terror when it sees a strong enemy (configurable through the gameplay menu)
- walks towards visible, out-of-range enemies using built-in pathfinding algorithm
- targets the closest enemy if any are in range
- cycles through all available bow/sling talents, using the lowest cooldown talents first (except for shoot, which happens last)
- reloads your quiver if you run out of ammo during a fight
- NEW! Whacks enemies with your stick if you're a melee character
- old archer experience...: z-1-1-3-3-2-2-4-4-5-5-2-2-1-1-1-1-1-1-1-1-reload-1-1-reload-2-2-reload-1-reload-1-1-z-z-altF4
- the new Auto Archer experience!!: x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x
- add a configuration options in the game menu
- allow you to choose what talents to consider shooting the enemy with
- allow you to choose which talents fire before others
- allow you to prioritize enemies by different metrics
- Currently, pressing any button seems to interrupt player rest and autoexplore, so holding down The Auto Archer button will cause your character to do either of those somewhat slowly. Until I figure out how to prevent those interruptions, it is recommended to rapidly tap the button instead, unless you find yourself around multiple enemies.
- The Auto Archer is weak to low light radius as expected. If something is sniping you from out of LOS, move towards it first.
Download it here!! --> http://te4.org/games/addons/tome/hypr-auto_archer
This addon uses a hook and superload for the keybinding/functionality.
I used jacktrades' Auto-Advance Action code structure as a base, so respectful kudos to him.
I used StarWeaver's floating text addon as a reference for the game menu additions and persistent settings, so respectful kudos to him.
Thanks to everyone in the IRC for helping me make my first addon. It would have been inconvenient without you.
Obviously, feedback, suggestions, and ideas are always welcome.