Exemplo n.º 1
0
    public void Initialize()
    {
        try
        {
            Directory.CreateDirectory(Application.StartupPath + "\\Profiles\\Fisherbot\\");
            FisherbotSetting.Load();

            if (string.IsNullOrWhiteSpace(FisherbotSetting.CurrentSetting.FishingPoleName))
            {
                FisherbotSetting.CurrentSetting.FishingPoleName = Fishing.FishingPolesName();
            }
            if (string.IsNullOrWhiteSpace(FisherbotSetting.CurrentSetting.WeaponName))
            {
                FisherbotSetting.CurrentSetting.WeaponName = EquippedItems.GetEquippedItem(WoWInventorySlot.INVTYPE_WEAPONMAINHAND).Name;
                FisherbotSetting.CurrentSetting.ShieldName = EquippedItems.GetEquippedItem(WoWInventorySlot.INVTYPE_SHIELD).Name;
                if (FisherbotSetting.CurrentSetting.WeaponName == FisherbotSetting.CurrentSetting.ShieldName)
                {
                    FisherbotSetting.CurrentSetting.ShieldName = "";
                }
            }

            Others.ProductStatusLog(Products.ProductName, 1);
        }
        catch (Exception e)
        {
            Logging.WriteError("Fisherbot > Main > Initialize(): " + e);
        }
    }
Exemplo n.º 2
0
 public void Initialize()
 {
     try
     {
         Others.ProductStatusLog(Products.ProductName, 1);
     }
     catch (Exception e)
     {
         Logging.WriteError("Profiles Converters > Main > Initialize(): " + e);
     }
 }
Exemplo n.º 3
0
 public void Initialize()
 {
     try
     {
         // Directory.CreateDirectory(Application.StartupPath + "\\Profiles\\Test_Product\\");
         Others.ProductStatusLog(Products.ProductName, 1);
     }
     catch (Exception e)
     {
         Logging.WriteError("Test_Product > Main > Initialize(): " + e);
     }
 }
Exemplo n.º 4
0
 public void Settings()
 {
     try
     {
         MessageBox.Show(string.Format("{0}.", Translate.Get(Translate.Id.No_setting_for_this_product)));
         Others.ProductStatusLog(Products.ProductName, 7);
     }
     catch (Exception e)
     {
         Logging.WriteError("Grinder > Main > Settings(): " + e);
     }
 }
Exemplo n.º 5
0
 public void Dispose()
 {
     try
     {
         Stop();
         Others.ProductStatusLog(Products.ProductName, 2);
     }
     catch (Exception e)
     {
         Logging.WriteError("Flying To Ground Profiles Converter > Main > Dispose(): " + e);
     }
 }
Exemplo n.º 6
0
 public void Initialize()
 {
     try
     {
         HealBotSettings.Load();
         Others.ProductStatusLog(Products.ProductName, 1);
     }
     catch (Exception e)
     {
         Logging.WriteError("Heal Bot > Main > Initialize(): " + e);
     }
 }
Exemplo n.º 7
0
 public void Initialize()
 {
     try
     {
         GarrisonFarmingSetting.Load();
         Others.ProductStatusLog(Products.ProductName, 1);
     }
     catch (Exception e)
     {
         Logging.WriteError("GarrisonFarming > Main > Initialize(): " + e);
     }
 }
Exemplo n.º 8
0
 public void Dispose()
 {
     try
     {
         Stop();
         Others.ProductStatusLog(Products.ProductName, 2);
     }
     catch (Exception e)
     {
         Logging.WriteError("Heal Bot > Main > Dispose(): " + e);
     }
 }
Exemplo n.º 9
0
 public void Stop()
 {
     try
     {
         _isStarted = false;
         Others.ProductStatusLog(Products.ProductName, 6);
     }
     catch (Exception e)
     {
         Logging.WriteError("Prospecting > Main > Stop(): " + e);
     }
 }
Exemplo n.º 10
0
 public void Settings()
 {
     try
     {
         MessageBox.Show(Translate.Get(Translate.Id.No_setting_for_this_product) + ".");
         Others.ProductStatusLog(Products.ProductName, 7);
     }
     catch (Exception e)
     {
         Logging.WriteError("Profiles Converters > Main > Settings(): " + e);
     }
 }
Exemplo n.º 11
0
 public void Settings()
 {
     try
     {
         GarrisonFarmingSetting.CurrentSetting.ToForm();
         GarrisonFarmingSetting.CurrentSetting.Save();
         Others.ProductStatusLog(Products.ProductName, 7);
     }
     catch (Exception e)
     {
         Logging.WriteError("GarrisonFarming > Main > Settings(): " + e);
     }
 }
Exemplo n.º 12
0
 public void Settings()
 {
     try
     {
         var f = new DungeonFarmerSettingsFrame();
         f.ShowDialog();
         Others.ProductStatusLog(Products.ProductName, 7);
     }
     catch (Exception e)
     {
         Logging.WriteError("DungeonFarmer > Main > Settings(): " + e);
     }
 }
Exemplo n.º 13
0
 public void Start()
 {
     try
     {
         Prospecting.Prospecting.Pulse();
         _isStarted = true;
         Others.ProductStatusLog(Products.ProductName, 4);
     }
     catch (Exception e)
     {
         Logging.WriteError("Prospecting > Main > Start(): " + e);
     }
 }
Exemplo n.º 14
0
 public void Settings()
 {
     try
     {
         var f = new HealBotSettingsForm();
         f.ShowDialog();
         Others.ProductStatusLog(Products.ProductName, 7);
     }
     catch (Exception e)
     {
         Logging.WriteError("Heal Bot > Main > Settings(): " + e);
     }
 }
Exemplo n.º 15
0
 public void Settings()
 {
     try
     {
         ArchaeologistSettingsFrame f = new ArchaeologistSettingsFrame();
         f.ShowDialog();
         Others.ProductStatusLog(Products.ProductName, 7);
     }
     catch (Exception e)
     {
         Logging.WriteError("Archaeologist > Main > Settings(): " + e);
     }
 }
Exemplo n.º 16
0
 public void Stop()
 {
     try
     {
         Bot.Dispose();
         _isStarted = false;
         Others.ProductStatusLog(Products.ProductName, 6);
     }
     catch (Exception e)
     {
         Logging.WriteError("Heal Bot > Main > Stop(): " + e);
     }
 }
Exemplo n.º 17
0
 public void Settings()
 {
     try
     {
         QuesterSettings.CurrentSettings.ToForm();
         QuesterSettings.CurrentSettings.Save();
         Others.ProductStatusLog(Products.ProductName, 7);
     }
     catch (Exception e)
     {
         Logging.WriteError("Quester > Main > Settings(): " + e);
     }
 }
Exemplo n.º 18
0
 public void Settings()
 {
     try
     {
         SettingsBattlegrounderForm f = new SettingsBattlegrounderForm();
         f.ShowDialog();
         Others.ProductStatusLog(Products.ProductName, 7);
     }
     catch (Exception e)
     {
         Logging.WriteError("Battlegrounder > Main > Settings(): " + e);
     }
 }
Exemplo n.º 19
0
 public void Start()
 {
     try
     {
         _formTracker = new FormTracker();
         _formTracker.Show();
         _isStarted = true;
         Others.ProductStatusLog(Products.ProductName, 4);
     }
     catch (Exception e)
     {
         Logging.WriteError("Tracker > Main > Start(): " + e);
     }
 }
Exemplo n.º 20
0
 public void Start()
 {
     try
     {
         _welcomeForm = new WelcomeForm();
         _welcomeForm.Show();
         IsStarted = true;
         Others.ProductStatusLog(Products.ProductName, 4);
     }
     catch (Exception e)
     {
         Logging.WriteError("Flying To Ground Profiles Converter > Main > Start(): " + e);
     }
 }
Exemplo n.º 21
0
 public void Stop()
 {
     try
     {
         ConfigWowForThisBot.StartStopClickToMove();
         Bot.Dispose();
         _isStarted = false;
         Others.ProductStatusLog(Products.ProductName, 6);
     }
     catch (Exception e)
     {
         Logging.WriteError("Damage Dealer > Main > Stop(): " + e);
     }
 }
Exemplo n.º 22
0
 public void Initialize()
 {
     try
     {
         ArchaeologistSetting.Load();
         Others.ProductStatusLog(Products.ProductName, 1);
         if (nManagerSetting.ActivateProductTipOff)
         {
             GetProductTipOff();
         }
     }
     catch (Exception e)
     {
         Logging.WriteError("Archaeologist > Main > Initialize(): " + e);
     }
 }
Exemplo n.º 23
0
 public void Stop()
 {
     try
     {
         if (_welcomeForm != null)
         {
             _welcomeForm.Dispose();
         }
         IsStarted = false;
         Others.ProductStatusLog(Products.ProductName, 6);
     }
     catch (Exception e)
     {
         Logging.WriteError("Flying To Ground Profiles Converter > Main > Stop(): " + e);
     }
 }
Exemplo n.º 24
0
 public void Stop()
 {
     try
     {
         if (formMain != null)
         {
             formMain.Dispose();
         }
         _isStarted = false;
         Others.ProductStatusLog(Products.ProductName, 6);
     }
     catch (Exception e)
     {
         Logging.WriteError("Profiles Converters > Main > Stop(): " + e);
     }
 }
Exemplo n.º 25
0
 public void Initialize()
 {
     try
     {
         Directory.CreateDirectory(Application.StartupPath + "\\Profiles\\Grinder\\");
         GrinderSetting.Load();
         Others.ProductStatusLog(Products.ProductName, 1);
         if (nManagerSetting.ActivateProductTipOff)
         {
             GetProductTipOff();
         }
     }
     catch (Exception e)
     {
         Logging.WriteError("Grinder > Main > Initialize(): " + e);
     }
 }
Exemplo n.º 26
0
 public void Start()
 {
     try
     {
         Others.ProductStatusLog(Products.ProductName, 3);
         if (Bot.Pulse())
         {
             _isStarted = true;
             Others.ProductStatusLog(Products.ProductName, 4);
         }
         else
         {
             Others.ProductStatusLog(Products.ProductName, 5);
         }
     }
     catch (Exception e)
     {
         Logging.WriteError("Heal Bot > Main > Start(): " + e);
     }
 }
Exemplo n.º 27
0
 public void RemoteStart(string[] args)
 {
     Others.ProductStatusLog(Products.ProductName, 1);
     try
     {
         Others.ProductStatusLog(Products.ProductName, 3);
         if (Bot.Pulse())
         {
             _isStarted = true;
             Others.ProductStatusLog(Products.ProductName, 4);
         }
         else
         {
             Others.ProductStatusLog(Products.ProductName, 5);
         }
     }
     catch (Exception e)
     {
         Logging.WriteError("GarrisonFarming > Main > RemoteStart(): " + e);
     }
 }
Exemplo n.º 28
0
 public void Stop()
 {
     try
     {
         if (ObjectManager.Me.IsCasting)
         {
             MovementManager.MicroMove();
         }
         // Cancel cast if we were fishing else the weapon wont be replaced.
         ItemsManager.EquipItemByName(FisherbotSetting.CurrentSetting.WeaponName);
         if (!string.IsNullOrEmpty(FisherbotSetting.CurrentSetting.ShieldName))
         {
             ItemsManager.EquipItemByName(FisherbotSetting.CurrentSetting.ShieldName);
         }
         Bot.Dispose();
         _isStarted = false;
         Others.ProductStatusLog(Products.ProductName, 6);
     }
     catch (Exception e)
     {
         Logging.WriteError("Fisherbot > Main > Stop(): " + e);
     }
 }
Exemplo n.º 29
0
    public void RemoteStart(string[] args)
    {
        GathererSetting.CurrentSetting.ProfileName = args[0];
        Others.ProductStatusLog(Products.ProductName, 1);

        try
        {
            Others.ProductStatusLog(Products.ProductName, 3);
            if (Bot.Pulse(true))
            {
                _isStarted = true;
                Others.ProductStatusLog(Products.ProductName, 4);
            }
            else
            {
                Others.ProductStatusLog(Products.ProductName, 5);
            }
        }
        catch (Exception exception)
        {
            Logging.WriteError("Gatherer > Main > Start(): " + exception, true);
        }
    }
Exemplo n.º 30
0
 public void Start()
 {
     try
     {
         if (!DamageDealerSettings.CurrentSetting.ActivateMovements)
         {
             ConfigWowForThisBot.StartStopClickToMove(false);
         }
         Others.ProductStatusLog(Products.ProductName, 3);
         if (Bot.Pulse())
         {
             _isStarted = true;
             Others.ProductStatusLog(Products.ProductName, 4);
         }
         else
         {
             Others.ProductStatusLog(Products.ProductName, 5);
         }
     }
     catch (Exception e)
     {
         Logging.WriteError("Damage Dealer > Main > Start(): " + e);
     }
 }