Jump to content

[Plugin] AttachEvent to Lua Event?


Recommended Posts

Hello, for example you can do the following for "COMBAT_LOG_EVENT_UNFILTERED":

    public void Initialize()
        wManager.Wow.Helpers.EventsLuaWithArgs.OnEventsLuaWithArgs += delegate(LuaEventsId id, List<string> args)
            if (id == LuaEventsId.COMBAT_LOG_EVENT_UNFILTERED)
                for (var i = 0; i < args.Count; i++)
                    robotManager.Helpful.Logging.Write($"args[{i}]: {args[i]}");

To get a list of all "LuaEventsId", i recommend to decompile "wManager.dll" in "WRobot\Bin\" and search for the desired value.

Edited by reapler
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...