Jump to content

Auto Attack Swing Time Remaining


Recommended Posts

  • 3 weeks later...
On 19.5.2017 at 1:35 AM, jrouten said:

Looking for a way to check how much time is left on Auto Attack swing timer. In other words, how many seconds until next auto attack will happen.

same here

Link to comment
Share on other sites

  • 2 weeks later...

@Droidz That doesn't help me, since we have no way of knowing when Auto Attack swing happens. If we know when Auto Attack swing happens, we could just set a timer. I know there are Interface Addons that track swing timer, so the event must be in the game client, and I was hoping you exposed it somewhere/somehow.

Link to comment
Share on other sites

Hello, you can use the event "UNIT_COMBAT" in conjunction with "wManager.Wow.Helpers.EventsLuaWithArgs.OnEventsLuaWithArgs":

            wManager.Wow.Helpers.EventsLuaWithArgs.OnEventsLuaWithArgs += delegate (LuaEventsId id, List<string> args)
            {
                if (id == LuaEventsId.UNIT_COMBAT && args[0] == "TARGET" && args[1] == "WOUND")
                {
                    //your code
                }
            };

I belive the arguments are right. You just need to setup timer & get actual attack speed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...