June 28, 20187 yr Sometime have bug, where bot not closed after character change :"Character changed, closing bot." And i cant get access to MemoryRobot.Memory.Close(); Any way to avoid it? if (Logging.ReadLastString(Logging.LogType.Error) == "Character changed, closing bot.") { MemoryRobot.Memory. }
June 28, 20187 yr Hello, use: robotManager.Events.LoggingEvents.OnAddLog += delegate (robotManager.Helpful.Logging.Log log) { if (log != null && !string.IsNullOrWhiteSpace(log.Text) && log.LogType == robotManager.Helpful.Logging.LogType.Error && log.Text == "Character changed, closing bot.") { System.Diagnostics.Process.GetCurrentProcess().Kill(); } }; (run this code one time)
Create an account or sign in to comment