Beispiel #1
0
        private async Task RunEquip()
        {
            if (_isDone)
            {
                await Coroutine.Yield();

                return;
            }

            List <GearSet> groupedGearSets = GearsetManager
                                             .GearSets
                                             .Where(g => g.InUse)
                                             .OrderByDescending(GetGearSetiLvl)
                                             .GroupBy(g => g.Class)
                                             .Select(g => g.FirstOrDefault())
                                             .ToList();

            await Coroutine.Sleep(3500);

            foreach (var gearSet in groupedGearSets)
            {
                GearsetManager.ChangeGearset(gearSet.Index);
                await Coroutine.Sleep(800);
                await InventoryEquipBest(useRecommendEquip : UseRecommendEquip);

                await Coroutine.Sleep(400);
            }

            _isDone = true;
        }
        private async Task RunEquip()
        {
            if (_isDone)
            {
                await Coroutine.Yield();

                return;
            }

            IEnumerable <GearSet> groupedGearSets = GearsetManager
                                                    .GearSets
                                                    .Where(g => g.InUse)
                                                    .OrderByDescending(GetGearSetiLvl)
                                                    .GroupBy(g => g.Class)
                                                    .Select(g => g.FirstOrDefault());

            await Coroutine.Sleep(4000);

            foreach (var gearSet in groupedGearSets)
            {
                GearsetManager.ChangeGearset(gearSet.Index);
                if (await Coroutine.Wait(1200, () => SelectYesno.IsOpen))
                {
                    SelectYesno.ClickYes();
                    await Coroutine.Sleep(800);
                }
                await InventoryEquipBest(useRecommendEquip : UseRecommendEquip);

                await Coroutine.Sleep(400);
            }

            _isDone = true;
        }
Beispiel #3
0
        private async Task CheckJobQueue()
        {
            foreach (var classLevelTarget in Constants.ClassLevelTargets)
            {
                if (Core.Me.CurrentJob == classLevelTarget.Job)
                {
                    if (Core.Me.ClassLevel >= classLevelTarget.Level)
                    {
                        Logger.Info("Current job >= level");
                        continue;
                    }
                }

                if (Core.Me.CurrentJob == classLevelTarget.Job)
                {
                    if (Core.Me.Levels[Constants.ClassMap[classLevelTarget.classJobType]] < classLevelTarget.Level)
                    {
                        //GearsetManager.ChangeGearset(classLevelTarget.GearSlot);
                        Logger.Info("Still under level target");
                        break;
                    }
                }

                if (Core.Me.CurrentJob != classLevelTarget.Job)
                {
                    if (Core.Me.Levels[Constants.ClassMap[classLevelTarget.classJobType]] < classLevelTarget.Level)
                    {
                        Logger.Info($"Switching to {classLevelTarget.Job}");
                        GearsetManager.ChangeGearset(classLevelTarget.GearSlot);
                        break;
                    }
                }
            }
        }