예제 #1
0
 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);
 }
예제 #2
0
파일: Bot.cs 프로젝트: zneel/TheNoobBot
 internal static void Dispose()
 {
     try
     {
         CombatClass.DisposeCombatClass();
         Fsm.StopEngine();
         Fight.StopFight();
     }
     catch (Exception e)
     {
         Logging.WriteError("Damage Dealer > Bot > Bot  > Dispose(): " + e);
     }
 }
예제 #3
0
파일: Bot.cs 프로젝트: zneel/TheNoobBot
 internal static void Dispose()
 {
     try
     {
         CombatClass.DisposeCombatClass();
         Fsm.StopEngine();
         Fight.StopFight();
         MimesisClientCom.Disconnect();
     }
     catch (Exception e)
     {
         Logging.WriteError("Mimesis > Bot > Bot  > Dispose(): " + e);
     }
 }
예제 #4
0
파일: Bot.cs 프로젝트: zneel/TheNoobBot
 internal static void Dispose()
 {
     try
     {
         CombatClass.DisposeCombatClass();
         Fsm.StopEngine();
         Fight.StopFight();
         MovementManager.StopMove();
     }
     catch (Exception e)
     {
         Logging.WriteError("Archaeologist > Bot > Bot  > Dispose(): " + e);
     }
 }
예제 #5
0
 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);
     }
 }
예제 #6
0
 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);
     }
 }
예제 #7
0
파일: Bot.cs 프로젝트: zneel/TheNoobBot
 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);
     }
 }