using System.Windows.Forms; using PluginTest; using robotManager.Helpful; using wManager.Wow.Enums; using wManager.Wow.Helpers; public class Main : wManager.Plugin.IPlugin { public void Initialize() { // For this plugin I use events, but you can create loop, sample: while (robotManager.Products.Products.IsStarted) { Your Code Here } // Attach function NewScreen() at lua event CHAT_MSG_WHISPER and CHAT_MSG_BN_WHISPER. EventsLua.AttachEventLua(LuaEventsId.CHAT_MSG_WHISPER, m => PluginTestMethods.NewScreen()); EventsLua.AttachEventLua(LuaEventsId.CHAT_MSG_BN_WHISPER, m => PluginTestMethods.NewScreen()); Logging.Write("[WhisperScreenshot] Loadded."); } public void Dispose() { Logging.Write("[WhisperScreenshot] Disposed."); } public void Settings() { MessageBox.Show("[WhisperScreenshot] No settings for this plugin."); } }