Basically the hunter rotation is split into 2. A full and a clipped rotation. I added a check on equiped hunter weapon to check if it falls into a full or a clipped rotation and then made it act accordingly. I also added a perfect multishot part because it has a 0.5 cast time (wanted to make sure it doesnt kick back the autotimer) Feel free to improve on it as it was a learning oportunity to improve in coding. (used some bits of your code)
Also any ideas on how to track energy ticks like you did with the autoshots? I want to make a perfect feral powershifting rotation but it seems that this stage is troubling me! (a basic idea is to incorporate part of an energytick watcher into the file as a function and call upon it as a check) ((ps i might have posted this in the wrong part of the forum, sorry! :D))
https://pastebin.com/7QrPu53S
Basically what i did was to run a check for a full rotation ranged weapon provided by this https://imgur.com/I1Mk8Xw (credit to the Elitistjerks forums i think or the Arrow and You hunter guide found here http://forums.crestfall-gaming.com/index.php?/topic/1794-vanilla-hunter-guide-the-arrow-and-you/) and if it finds one of these it will do a full rotation just as you taught it. else it will use aimedshot whenever its possible (thus making a clipped rotation) If you feel like altering the code will increase the output feel free to do so! btw any ideas on the energy tracker? I want to provide a somewhat perfect feral powershifting rotation too! :D Also give the rotation a try and let me know. (Also a control modifier will allow usage of rank 1 multi-shot, which is a dps increase even in single target situations! I added a control cause in certain fights you dont want to aoe (breaking poly and stuff))
Finally someone pastes in an optimized rotation for me! I spend very little time making them perfect. I always thought players would give me feedback to do so, but it never really happened. By the way, I can give you a quick function that returns whether you have a ranged weapon and even its speed. (I can get anything you want from the tooltip)