Dagora 1 Posted December 17, 2019 Share Posted December 17, 2019 Hey! Does anyone know how set bot close game and pause Wrobot or Relogger when any player attack bot in game? Bot often get ban when other player kite bot in game and shooting this to video and send GM. Link to comment https://wrobot.eu/forums/topic/11759-force-bot-to-close-game-and-pause-wrobot/ Share on other sites More sharing options...
Unknownxx 3 Posted December 17, 2019 Share Posted December 17, 2019 Try turning on the "Ignore combat with players" feature. Link to comment https://wrobot.eu/forums/topic/11759-force-bot-to-close-game-and-pause-wrobot/#findComment-56429 Share on other sites More sharing options...
Dagora 1 Posted December 17, 2019 Author Share Posted December 17, 2019 28 minutes ago, Unknownxx said: Try turning on the "Ignore combat with players" feature. It's not help. Bot will be running for route and jump. It's not human behavior. Link to comment https://wrobot.eu/forums/topic/11759-force-bot-to-close-game-and-pause-wrobot/#findComment-56430 Share on other sites More sharing options...
Droidz 2742 Posted December 17, 2019 Share Posted December 17, 2019 Hello, in relogger option you have option "Wait time to relaunch and relogge after crash", use it to not relaunch bot and wow quickly. To close game you can use this code: wManager.Events.FightEvents.OnFightStart += delegate (WoWUnit unit, CancelEventArgs cancelable) { try { if (unit != null && unit.Type == WoWObjectType.Player) wManager.Wow.Memory.WowMemory.Memory.GetProcess().Kill(); } catch {} }; Dagora 1 Link to comment https://wrobot.eu/forums/topic/11759-force-bot-to-close-game-and-pause-wrobot/#findComment-56432 Share on other sites More sharing options...
Dagora 1 Posted December 17, 2019 Author Share Posted December 17, 2019 1 hour ago, Droidz said: Hello, in relogger option you have option "Wait time to relaunch and relogge after crash", use it to not relaunch bot and wow quickly. To close game you can use this code: wManager.Events.FightEvents.OnFightStart += delegate (WoWUnit unit, CancelEventArgs cancelable) { try { if (unit != null && unit.Type == WoWObjectType.Player) wManager.Wow.Memory.WowMemory.Memory.GetProcess().Kill(); } catch {} }; Thank you! Please, tell where i should put this code? It's need to create plugin? Link to comment https://wrobot.eu/forums/topic/11759-force-bot-to-close-game-and-pause-wrobot/#findComment-56434 Share on other sites More sharing options...
Droidz 2742 Posted December 17, 2019 Share Posted December 17, 2019 Yes create plugin (save it in file type .cs ) using System.ComponentModel; using wManager.Wow.Enums; using wManager.Wow.ObjectManager; public class Main : wManager.Plugin.IPlugin { public void Initialize() { wManager.Events.FightEvents.OnFightStart += delegate (WoWUnit unit, CancelEventArgs cancelable) { try { if (unit != null && unit.Type == WoWObjectType.Player) wManager.Wow.Memory.WowMemory.Memory.GetProcess().Kill(); } catch { } }; } public void Dispose() { } public void Settings() { } } Dagora 1 Link to comment https://wrobot.eu/forums/topic/11759-force-bot-to-close-game-and-pause-wrobot/#findComment-56437 Share on other sites More sharing options...
Dagora 1 Posted December 17, 2019 Author Share Posted December 17, 2019 1 hour ago, Droidz said: Yes create plugin (save it in file type .cs ) using System.ComponentModel; using wManager.Wow.Enums; using wManager.Wow.ObjectManager; public class Main : wManager.Plugin.IPlugin { public void Initialize() { wManager.Events.FightEvents.OnFightStart += delegate (WoWUnit unit, CancelEventArgs cancelable) { try { if (unit != null && unit.Type == WoWObjectType.Player) wManager.Wow.Memory.WowMemory.Memory.GetProcess().Kill(); } catch { } }; } public void Dispose() { } public void Settings() { } } Thx! It's working. Link to comment https://wrobot.eu/forums/topic/11759-force-bot-to-close-game-and-pause-wrobot/#findComment-56439 Share on other sites More sharing options...
Dagora 1 Posted December 17, 2019 Author Share Posted December 17, 2019 Plugin works in Wrotation mode, but no work in gather Link to comment https://wrobot.eu/forums/topic/11759-force-bot-to-close-game-and-pause-wrobot/#findComment-56440 Share on other sites More sharing options...
Droidz 2742 Posted December 18, 2019 Share Posted December 18, 2019 check if "Ignore combat with players" is enabled Link to comment https://wrobot.eu/forums/topic/11759-force-bot-to-close-game-and-pause-wrobot/#findComment-56446 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