using robotManager.Helpful;
using System;
using System.Collections.Generic;
using wManager.Plugin;
using wManager.Wow.Helpers;
public class Main : IPlugin
{
public void Initialize()
{
EventsLuaWithArgs.OnEventsLuaStringWithArgs += ChatEvent;
}
public void Dispose()
{
EventsLuaWithArgs.OnEventsLuaStringWithArgs -= ChatEvent;
}
public void Settings()
{
throw new NotImplementedException();
}
private static void ChatEvent(String EventName, List<String> Args)
{
if(EventName.ToString() == "CHAT_MSG_SYSTEM")
{
for (int i = 0; i < Args.Count -1; i++)
{
Logging.WriteDebug($"Args{i} = {Args[i].ToString()}");
}
}
}
}
try this.
Main.cs