Suspect 0 Posted September 16, 2017 Share Posted September 16, 2017 Hello, is it possible to attach to lua events in a plugin and if yes how can i do it? Can you please give me a code snippet for that? That would be awesome. Kind regards Link to comment Share on other sites More sharing options...
reapler 154 Posted September 16, 2017 Share Posted September 16, 2017 (edited) 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 September 16, 2017 by reapler Suspect 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now