Vo1k 0 Posted April 23, 2020 Share Posted April 23, 2020 how to stop bot when game master change my character - into the lich king or somthing else ?? it's serious danger to get banned ! Link to comment https://wrobot.eu/forums/topic/12077-how-to-stop-bot-when-game-master-change-my-character-into-the-lich-king-or-somthing-else/ Share on other sites More sharing options...
Droidz 2738 Posted April 23, 2020 Share Posted April 23, 2020 Hello, I am not sure but: using System; using System.Threading; using robotManager.Helpful; using robotManager.Products; using wManager.Plugin; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; using Timer = robotManager.Helpful.Timer; public class Main : IPlugin { private bool _isLaunched; public void Initialize() { _isLaunched = true; bool first = true; uint displayId = 0; var t = new Timer(1000 * 1); // 1 sec while (_isLaunched && Products.IsStarted) { try { if (Conditions.InGameAndConnectedAndProductStartedNotInPause) { if (first) { displayId = ObjectManager.Me.DisplayId; first = false; } if (t.IsReady) { t.Reset(); if (ObjectManager.Me.DisplayId != displayId) { Products.ProductStop(); // or close: Environment.Exit(0); Logging.Write("Display change."); } } } } catch (Exception e) { Logging.WriteError("[Display change]: " + e); } Thread.Sleep(150); } } public void Dispose() { _isLaunched = false; } public void Settings() { } } Link to comment https://wrobot.eu/forums/topic/12077-how-to-stop-bot-when-game-master-change-my-character-into-the-lich-king-or-somthing-else/#findComment-57803 Share on other sites More sharing options...
Vo1k 0 Posted April 26, 2020 Author Share Posted April 26, 2020 this working perfectly Link to comment https://wrobot.eu/forums/topic/12077-how-to-stop-bot-when-game-master-change-my-character-into-the-lich-king-or-somthing-else/#findComment-57859 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