public static bool ProductStop() { try { Fsm.StopEngine(); if (_instanceFromOtherAssembly != null) { EventsListener.UnHookEvent(WoWEventsType.LOOT_READY, callback => FarmingTask.TakeFarmingLoots()); EventsListener.UnHookEvent(WoWEventsType.LOOT_OPENED, callback => FarmingTask.TakeFarmingLoots()); EventsListener.UnHookEvent(WoWEventsType.CINEMATIC_START, callback => ToggleCinematic(true)); EventsListener.UnHookEvent(WoWEventsType.CINEMATIC_STOP, callback => ToggleCinematic(false)); _instanceFromOtherAssembly.Stop(); Thread.Sleep(500); MovementManager.StopMove(); Fight.StopFight(); CombatClass.DisposeCombatClass(); LongMove.StopLongMove(); Memory.WowMemory.GameFrameUnLock(); return(true); } } catch (Exception e) { Logging.WriteError("ProductStop(): " + e); } return(false); }
internal static void Dispose() { try { CombatClass.DisposeCombatClass(); Fsm.StopEngine(); Fight.StopFight(); } catch (Exception e) { Logging.WriteError("Damage Dealer > Bot > Bot > Dispose(): " + e); } }
internal static void Dispose() { try { CombatClass.DisposeCombatClass(); Fsm.StopEngine(); Fight.StopFight(); MimesisClientCom.Disconnect(); } catch (Exception e) { Logging.WriteError("Mimesis > Bot > Bot > Dispose(): " + e); } }
internal static void Dispose() { try { CombatClass.DisposeCombatClass(); Fsm.StopEngine(); Fight.StopFight(); MovementManager.StopMove(); } catch (Exception e) { Logging.WriteError("Archaeologist > Bot > Bot > Dispose(): " + e); } }
internal static void Dispose() { try { CombatClass.DisposeCombatClass(); CustomProfile.DisposeCustomProfile(); Fsm.StopEngine(); Fight.StopFight(); MovementManager.StopMove(); } catch (Exception e) { Logging.WriteError("Battlegrounder > Bot > Bot > Dispose(): " + e); } }
internal static void Dispose() { try { CombatClass.DisposeCombatClass(); Fsm.StopEngine(); Fight.StopFight(); MovementManager.StopMove(); GarrisonState.RestoreSettings(); } catch (Exception e) { Logging.WriteError("GarrisonFarming > Bot > Bot > Dispose(): " + e); } }
internal static void Dispose() { try { FishingTask.StopLoopFish(); CombatClass.DisposeCombatClass(); Fsm.StopEngine(); Fight.StopFight(); MovementManager.StopMove(); } catch (Exception e) { Logging.WriteError("Grinder > Bot > Bot > Dispose(): " + e); } }