private void BtnAttackTargetDummyClick(object sender, EventArgs e) { if (ObjectManager.InGame) { Langs.Load(); if (ObjectManager.MyPlayer.IsValid && Langs.TrainingDummy(ObjectManager.MyPlayer.Target.Name)) { if (_killDummy == null || !_killDummy.IsAlive) { KeyHelper.LoadKeys(); BarMapper.MapBars(); if (CombatEngine.StartOk) { CombatEngine.BotStarted(); } else { Logging.Write(LogType.Warning, "CustomClass returned false on StartOk not starting"); return; } _killDummy = new Thread(KillTheDummy); _killDummy.Name = "KillDummy"; _killDummy.IsBackground = true; _killDummy.Start(); } BtnAttackTargetDummy.Enabled = false; } else { Logging.Write("Please target a Training dummy ingame"); } } }
public void StartBotting() { if (!ValidateKeys.AutoLoot) { Logging.Write(LogType.Error, "Please enable auto loot"); return; } if (ValidateKeys.ClickToMove) { Logging.Write(LogType.Error, "Please disable click to move"); return; } BarMapper.MapBars(); KeyHelper.LoadKeys(); if (!ValidateKeys.Validate()) { Thread.Sleep(2000); } Langs.Load(); if (EngineHandler.EngineStart()) { LazySettings.SaveSettings(); if (CombatEngine.StartOk) { CombatEngine.BotStarted(); } else { Logging.Write(LogType.Warning, "CustomClass returned false on StartOk not starting"); return; } Logging.Debug("Relogger: " + ReloggerSettings.ReloggingEnabled); Logging.Debug("Engine: " + EngineHandler.Name); Logging.Write("Bot started"); Logging.Debug("CurrentFlyingProfile: " + FlyingSettings.Profile); Logging.Debug("CurrentGrindingProfile: " + GrindingSettings.Profile); UpdateText(StartStopEngine, "Stop botting"); ShouldRelog = ReloggerSettings.ReloggingEnabled; LazyForm.Engine = EngineHandler.Name; DisableItems(); Engine.StartEngine(EngineHandler); StopAfter.BotStarted(); PeriodicRelogger.BotStarted(); PluginManager.BotStart(); PluginManager.StartPulseThread(true); } else { Logging.Write(LogType.Warning, "Engine returned false on load"); } }
private static void LoadNow() { if (Program.AttachTo != -1) { ObjectManager.Initialize(Program.AttachTo); try { if (LazySettings.HookMouse) { Hook.DoHook(); } } catch { } Chat.NewChatMessage += LazyForms.MainForm.ChatNewChatMessage; } Langs.Load(); ThreadManager.Start(); ItemDatabase.Open(); LazyForms.MainForm.LicenseOk(); }
private static void LoadFirstTime() { Langs.Load(); KeyHelper.LoadKeys(); BarMapper.MapBars(); }