Beispiel #1
0
        public override void Run()
        {
            _lastTimeRunning = Others.Times;
            MovementManager.StopMove();
            Thread.Sleep(500);
            Tasks.MountTask.DismountMount();
            Logging.Write("Prospecting in progress");
            Timer timer = new Timer(15 * 60 * 1000);

            // Prospecting
            while (Prospecting.NeedRun(nManagerSetting.CurrentSetting.MineralsToProspect) && Products.Products.IsStarted &&
                   Usefuls.InGame &&
                   !ObjectManager.ObjectManager.Me.InCombat && !ObjectManager.ObjectManager.Me.IsDeadMe &&
                   !timer.IsReady)
            {
                Thread.Sleep(200);
                Prospecting.Pulse(nManagerSetting.CurrentSetting.MineralsToProspect);
                Thread.Sleep(750);
                while (ObjectManager.ObjectManager.Me.IsCast && Products.Products.IsStarted && Usefuls.InGame &&
                       !ObjectManager.ObjectManager.Me.InCombat && !ObjectManager.ObjectManager.Me.IsDeadMe &&
                       !timer.IsReady)
                {
                    Thread.Sleep(100);
                }

                Thread.Sleep(Others.Random(600, 1600) + Usefuls.Latency);
            }
        }
Beispiel #2
0
 private void DoMillingInTown(Npc npc)
 {
     if ((!_magicMountMammoth && !_magicMountYak || npc.Type != Npc.NpcType.Repair && npc.Type != Npc.NpcType.Vendor) && nManagerSetting.CurrentSetting.OnlyUseMillingInTown &&
         nManagerSetting.CurrentSetting.ActivateAutoMilling &&
         nManagerSetting.CurrentSetting.HerbsToBeMilled.Count > 0)
     {
         if (Prospecting.NeedRun(nManagerSetting.CurrentSetting.HerbsToBeMilled))
         {
             MillingState millingState = new MillingState();
             millingState.Run();
         }
     }
 }
Beispiel #3
0
 private void DoProspectingInTown(Npc npc)
 {
     if ((!_magicMountMammoth && !_magicMountYak || npc.Type != Npc.NpcType.Repair && npc.Type != Npc.NpcType.Vendor) &&
         nManagerSetting.CurrentSetting.OnlyUseProspectingInTown && nManagerSetting.CurrentSetting.ActivateAutoProspecting &&
         nManagerSetting.CurrentSetting.MineralsToProspect.Count > 0)
     {
         if (Prospecting.NeedRun(nManagerSetting.CurrentSetting.MineralsToProspect))
         {
             ProspectingState prospectingState = new ProspectingState();
             prospectingState.Run();
         }
     }
 }