public void HarvestAllMax()
        {
            window.Log($"HarvestAllMax");

            window.Click(YggdrasilConstants.pointPageYggdrasil, false, true);
            window.Click(YggdrasilConstants.pointHarvestAllMax, false, true);
        }
        public void Farm(int stage)
        {
            window.Log($"Farming Stage: {stage}");

            window.Click(AdventureConstants.pointPageAdventure, false, true);

            if (stage == 0)
            {
                ITOPOD();
            }
            else if (stage < 0)
            {
                window.Click(AdventureConstants.pointRightArrow, true, true);
                for (int i = -1; i > stage; i--)
                {
                    window.Click(AdventureConstants.pointLeftArrow, false, true);
                }
            }
            else
            {
                window.Click(AdventureConstants.pointLeftArrow, true, true);
                for (int i = 0; i < stage; i++)
                {
                    window.Click(AdventureConstants.pointRightArrow, false, true);
                }
            }
        }
Exemple #3
0
        public bool Nuke()
        {
            int oldBoss = GetCurrentBoss();

            if (oldBoss < lastBoss)
            {
                lastBoss = -1;
            }

            window.Log($"Nuke Boss");
            window.Click(FightBossConstants.pointPageFightBoss, false, true);
            window.Click(FightBossConstants.pointNuke, false, false);
            window.Click(FightBossConstants.pointFight, false, false);
            window.Wait(5);
            int newBoss = GetCurrentBoss();

            if (newBoss != lastBoss)
            {
                window.Log($"New Boss: {newBoss, 3}");
            }
            int lastBossForStage = lastBoss;

            lastBoss = newBoss;

            return(newStage(lastBossForStage, newBoss));
        }
 public void Throw()
 {
     window.Log($"Bottomless Pit Throw");
     window.Click(MoneyPitConstants.pointPageMoneyPit, false, true);
     window.Click(MoneyPitConstants.pointThrow, false, true);
     window.Click(MoneyPitConstants.pointConfirm, false, true);
 }
        public void IronPill()
        {
            window.Log($"Iron Pill");

            window.Click(BloodMagicConstants.pointPageBloodMagic, false, true);
            window.Click(BloodMagicConstants.pointPageSpells, false, true);
            window.Click(BloodMagicConstants.pointIronPill, false, true);
        }
Exemple #6
0
        public void Merge(bool equip, List <InventarSlot> inventarSlots)
        {
            window.Log($"Merge");

            window.Click(InventoryConstants.pointPageInventory, false, true);

            int page = 0;

            if (equip)
            {
                foreach (Point point in equipPoints)
                {
                    window.Click(point, false, true);
                    window.SendString("d", true);
                }
            }

            foreach (InventarSlot inventarSlot in inventarSlots)
            {
                if (inventarSlot.page < 1 || inventarSlot.page > 3 || inventarSlot.row < 1 || inventarSlot.row > 5 || inventarSlot.column < 1 || inventarSlot.column > 12)
                {
                    continue;
                }

                if (inventarSlot.page != page)
                {
                    switch (inventarSlot.page)
                    {
                    case 1:
                        window.Click(InventoryConstants.pointPage1, false, true);
                        break;

                    case 2:
                        window.Click(InventoryConstants.pointPage2, false, true);
                        break;

                    case 3:
                        window.Click(InventoryConstants.pointPage3, false, true);
                        break;
                    }

                    page = inventarSlot.page;
                }

                Point point = new Point(InventoryConstants.pointInventory1x1.X + (inventarSlot.column - 1) * 50, InventoryConstants.pointInventory1x1.Y + (inventarSlot.row - 1) * 50);

                window.Click(point, false, true);
                window.SendString("d", true);
            }
        }
Exemple #7
0
        public void SetHacks()
        {
            window.Log($"SetHacks");

            window.Click(HacksConstants.pointPageHacks, false, true);

            window.Click(HacksConstants.pointPageHacks1, false, true);
            window.Click(HacksConstants.pointHack1, false, false);
            window.Click(HacksConstants.pointHack2, false, false);
            window.Click(HacksConstants.pointHack3, false, false);
            window.Click(HacksConstants.pointHack4, false, false);
            window.Click(HacksConstants.pointHack5, false, false);
            window.Click(HacksConstants.pointHack6, false, false);
            window.Click(HacksConstants.pointHack7, false, false);
            window.Click(HacksConstants.pointHack8, false, false);

            window.Click(HacksConstants.pointPageHacks2, false, true);
            window.Click(HacksConstants.pointHack1, false, false);
            window.Click(HacksConstants.pointHack2, false, false);
            window.Click(HacksConstants.pointHack3, false, false);
            window.Click(HacksConstants.pointHack4, false, false);
            window.Click(HacksConstants.pointHack5, false, false);
            window.Click(HacksConstants.pointHack6, false, false);
            window.Click(HacksConstants.pointHack7, false, false);
            window.Click(HacksConstants.pointHack8, false, false);
        }
Exemple #8
0
        public BigInteger GetEXP()
        {
            if (window.Locked)
            {
                return(-1);
            }

            window.Click(SpendEXPConstants.pointPageSpendEXP, false, true);
            string input = window.OCRTextSearch(SpendEXPConstants.rectExp, false);

            int start  = input.IndexOf("have ") + 5;
            int end    = input.IndexOf(" EXP");
            int length = end - start;

            if (start < 1 || length < 1 || start + length > input.Length)
            {
                return(new BigInteger(0));
            }

            input = input.Substring(start, length);

            BigInteger exp = window.Parse(input);

            string diffSinceLast = string.Empty;

            if (currentExp == -1)
            {
                window.Log($"Current Exp: {exp,5}");
            }
            else if (currentExp > -1 && currentExp != exp)
            {
                if (exp > currentExp)
                {
                    gainedExp += exp - currentExp;
                }
                else if (exp < currentExp)
                {
                    allocatedExp += currentExp - exp;
                }

                window.Log($"Current Exp: {exp,5} - GainedExp: {gainedExp,5} - SpendExp {allocatedExp,5} - DiffSinceLast: {exp - currentExp, 6}");
            }

            currentExp = exp;

            return(exp);
        }
        public void SetDiggersForFight()
        {
            window.Log($"SetDiggersForFight");

            List <KeyValuePair <int, int> > diggerList = new List <KeyValuePair <int, int> >();

            KeyValuePair <int, int> digger3 = new KeyValuePair <int, int>(3, 0);

            diggerList.Add(digger3);
            KeyValuePair <int, int> digger4 = new KeyValuePair <int, int>(4, 0);

            diggerList.Add(digger4);
            KeyValuePair <int, int> digger12 = new KeyValuePair <int, int>(12, 0);

            diggerList.Add(digger12);
            KeyValuePair <int, int> digger1 = new KeyValuePair <int, int>(1, 0);

            diggerList.Add(digger1);
            KeyValuePair <int, int> digger9 = new KeyValuePair <int, int>(9, 0);

            diggerList.Add(digger9);
            KeyValuePair <int, int> digger5 = new KeyValuePair <int, int>(5, 0);

            diggerList.Add(digger5);
            KeyValuePair <int, int> digger6 = new KeyValuePair <int, int>(6, 0);

            diggerList.Add(digger6);
            KeyValuePair <int, int> digger7 = new KeyValuePair <int, int>(7, 0);

            diggerList.Add(digger7);
            KeyValuePair <int, int> digger8 = new KeyValuePair <int, int>(8, 0);

            diggerList.Add(digger8);
            KeyValuePair <int, int> digger11 = new KeyValuePair <int, int>(11, 0);

            diggerList.Add(digger11);
            KeyValuePair <int, int> digger10 = new KeyValuePair <int, int>(10, 0);

            diggerList.Add(digger10);
            KeyValuePair <int, int> digger2 = new KeyValuePair <int, int>(2, 0);

            diggerList.Add(digger2);

            SetDiggers(diggerList);
        }
Exemple #10
0
        public void DoRebirth()
        {
            window.Log($"Rebirth");

            window.Click(RebirthConstants.pointPageRebirth, false, true);
            window.Click(RebirthConstants.pointRebirth, false, true);
            window.Click(RebirthConstants.pointConfirm, false, true);
            runStartTime = DateTime.Now;
        }
Exemple #11
0
        public void SetNGUs()
        {
            window.Log($"SetNGUs");

            window.Click(NGUConstants.pointPageNGU, false, true);
            window.Click(NGUConstants.pointCap, false, true);

            window.Click(NGUConstants.pointPageMagic, false, true);
            window.Click(NGUConstants.pointCap, false, true);
        }
Exemple #12
0
        public void SetAugmentations()
        {
            window.Log($"SetAugmentations");

            window.Click(AugmentationConstants.pointPageAugmentation, false, true);
            window.SetInput(-2, false, true);
            window.Click(AugmentationConstants.pointAugmentation1, false, true);
            window.Click(AugmentationConstants.pointUpgrade1, false, true);
            window.SetInput(-1);
        }
Exemple #13
0
        public void CapWandoos()
        {
            window.Log($"CapWandoos");

            window.Click(WandoosConstants.pointPageWandoos, false, true);

            window.SetInput(-1);

            window.Click(WandoosConstants.pointCapEnergy, false, true);
            window.Click(WandoosConstants.pointCapMagic, false, true);
        }
Exemple #14
0
        public void SetSpeedAndMultiplier()
        {
            window.Log($"SetTimeMachine");

            window.Click(TimeMachineConstants.pointPageTimeMachine, false, true);

            window.SetInput(-1);

            window.Click(TimeMachineConstants.pointMachineSpeed, false, true);
            window.Click(TimeMachineConstants.pointGoldMultiplier, false, true);
        }
Exemple #15
0
        public void CompleteQuest()
        {
            window.Log($"CompleteQuest");

            window.Click(QuestingConstants.pointPageQuesting, false, true);

            window.Click(QuestingConstants.pointCompleteQuest, false, true);
            window.Click(QuestingConstants.pointCompleteQuest, false, true);

            if (window.OCRTextSearch(QuestingConstants.rectIdleMode, true).Contains("OFF") || window.Locked)
            {
                window.Click(QuestingConstants.pointIdleMode, false, true);
            }
        }