September 16, 20178 yr 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
September 16, 20178 yr 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, 20178 yr by reapler
Create an account or sign in to comment