Example #1
0
 private void TrackQuantities()
 {
     while (fire.Level > fireLevel)
     {
         ++fireLevel;
         Magic magic = new Magic(null, 0, 0, 0, "Fire" + fireLevel.ToString());
         newChecks.Add(magic);
         collectedChecks.Add(magic);
     }
     while (blizzard.Level > blizzardLevel)
     {
         ++blizzardLevel;
         Magic magic = new Magic(null, 0, 0, 0, "Blizzard" + blizzardLevel.ToString());
         newChecks.Add(magic);
         collectedChecks.Add(magic);
     }
     while (thunder.Level > thunderLevel)
     {
         ++thunderLevel;
         Magic magic = new Magic(null, 0, 0, 0, "Thunder" + thunderLevel.ToString());
         newChecks.Add(magic);
         collectedChecks.Add(magic);
     }
     while (cure.Level > cureLevel)
     {
         ++cureLevel;
         Magic magic = new Magic(null, 0, 0, 0, "Cure" + cureLevel.ToString());
         newChecks.Add(magic);
         collectedChecks.Add(magic);
     }
     while (reflect.Level > reflectLevel)
     {
         ++reflectLevel;
         Magic magic = new Magic(null, 0, 0, 0, "Reflect" + reflectLevel.ToString());
         newChecks.Add(magic);
         collectedChecks.Add(magic);
     }
     while (magnet.Level > magnetLevel)
     {
         ++magnetLevel;
         Magic magic = new Magic(null, 0, 0, 0, "Magnet" + magnetLevel.ToString());
         newChecks.Add(magic);
         collectedChecks.Add(magic);
     }
     while (pages.Quantity > tornPageCount)
     {
         ++tornPageCount;
         TornPage page = new TornPage(null, 0, 0, "TornPage" + tornPageCount.ToString());
         newChecks.Add(page);
         collectedChecks.Add(page);
     }
 }
Example #2
0
        public void InitAutoTracker(object sender, RoutedEventArgs e)
        {
            int tries = 0;

            do
            {
                memory = new MemoryReader();
                if (tries < 20)
                {
                    tries++;
                }
                else
                {
                    memory = null;
                    MessageBox.Show("Please launch PCSX2 before loading the Auto Tracker.");
                    return;
                }
            } while (!memory.Hooked);
            this.FontFamily = new FontFamily(new Uri("pack://application:,,,/"), "./resources/#KH2 ALL MENU");
            findAddressOffset();

            importantChecks = new List <ImportantCheck>();
            importantChecks.Add(highJump    = new Ability(memory, 0x0032E0FE, ADDRESS_OFFSET, 93, "HighJump"));
            importantChecks.Add(quickRun    = new Ability(memory, 0x0032E100, ADDRESS_OFFSET, 97, "QuickRun"));
            importantChecks.Add(dodgeRoll   = new Ability(memory, 0x0032E102, ADDRESS_OFFSET, 563, "DodgeRoll"));
            importantChecks.Add(aerialDodge = new Ability(memory, 0x0032E104, ADDRESS_OFFSET, 101, "AerialDodge"));
            importantChecks.Add(glide       = new Ability(memory, 0x0032E106, ADDRESS_OFFSET, 105, "Glide"));

            importantChecks.Add(secondChance = new Ability(memory, 0x0032E074, ADDRESS_OFFSET, "SecondChance"));
            importantChecks.Add(onceMore     = new Ability(memory, 0x0032E074, ADDRESS_OFFSET, "OnceMore"));

            importantChecks.Add(valor  = new DriveForm(memory, 0x0032F1F0, ADDRESS_OFFSET, 1, 0x0032EE26, "Valor"));
            importantChecks.Add(wisdom = new DriveForm(memory, 0x0032F1F0, ADDRESS_OFFSET, 2, 0x0032EE5E, "Wisdom"));
            importantChecks.Add(limit  = new DriveForm(memory, 0x0032F1FA, ADDRESS_OFFSET, 3, 0x0032EE96, "Limit"));
            importantChecks.Add(master = new DriveForm(memory, 0x0032F1F0, ADDRESS_OFFSET, 6, 0x0032EECE, "Master"));
            importantChecks.Add(final  = new DriveForm(memory, 0x0032F1F0, ADDRESS_OFFSET, 4, 0x0032EF06, "Final"));

            importantChecks.Add(fire     = new Magic(memory, 0x0032F0C4, 0x0032D822, ADDRESS_OFFSET, "Fire"));
            importantChecks.Add(blizzard = new Magic(memory, 0x0032F0C5, 0x0032D823, ADDRESS_OFFSET, "Blizzard"));
            importantChecks.Add(thunder  = new Magic(memory, 0x0032F0C6, 0x0032D824, ADDRESS_OFFSET, "Thunder"));
            importantChecks.Add(cure     = new Magic(memory, 0x0032F0C7, 0x0032D825, ADDRESS_OFFSET, "Cure"));
            importantChecks.Add(magnet   = new Magic(memory, 0x0032F0FF, 0x0032D826, ADDRESS_OFFSET, "Magnet"));
            importantChecks.Add(reflect  = new Magic(memory, 0x0032F100, 0x0032D827, ADDRESS_OFFSET, "Reflect"));

            importantChecks.Add(rep1  = new Report(memory, 0x0032F1F4, ADDRESS_OFFSET, 6, "Report1"));
            importantChecks.Add(rep2  = new Report(memory, 0x0032F1F4, ADDRESS_OFFSET, 7, "Report2"));
            importantChecks.Add(rep3  = new Report(memory, 0x0032F1F5, ADDRESS_OFFSET, 0, "Report3"));
            importantChecks.Add(rep4  = new Report(memory, 0x0032F1F5, ADDRESS_OFFSET, 1, "Report4"));
            importantChecks.Add(rep5  = new Report(memory, 0x0032F1F5, ADDRESS_OFFSET, 2, "Report5"));
            importantChecks.Add(rep6  = new Report(memory, 0x0032F1F5, ADDRESS_OFFSET, 3, "Report6"));
            importantChecks.Add(rep7  = new Report(memory, 0x0032F1F5, ADDRESS_OFFSET, 4, "Report7"));
            importantChecks.Add(rep8  = new Report(memory, 0x0032F1F5, ADDRESS_OFFSET, 5, "Report8"));
            importantChecks.Add(rep9  = new Report(memory, 0x0032F1F5, ADDRESS_OFFSET, 6, "Report9"));
            importantChecks.Add(rep10 = new Report(memory, 0x0032F1F5, ADDRESS_OFFSET, 7, "Report10"));
            importantChecks.Add(rep11 = new Report(memory, 0x0032F1F6, ADDRESS_OFFSET, 0, "Report11"));
            importantChecks.Add(rep12 = new Report(memory, 0x0032F1F6, ADDRESS_OFFSET, 1, "Report12"));
            importantChecks.Add(rep13 = new Report(memory, 0x0032F1F6, ADDRESS_OFFSET, 2, "Report13"));

            importantChecks.Add(chickenLittle = new Summon(memory, 0x0032F1F0, ADDRESS_OFFSET, 3, "Baseball"));
            importantChecks.Add(stitch        = new Summon(memory, 0x0032F1F0, ADDRESS_OFFSET, 0, "Ukulele"));
            importantChecks.Add(genie         = new Summon(memory, 0x0032F1F4, ADDRESS_OFFSET, 4, "Lamp"));
            importantChecks.Add(peterPan      = new Summon(memory, 0x0032F1F4, ADDRESS_OFFSET, 5, "Feather"));

            importantChecks.Add(promiseCharm = new Proof(memory, 0x0032F1C4, ADDRESS_OFFSET, "PromiseCharm"));
            importantChecks.Add(peace        = new Proof(memory, 0x0032F1E4, ADDRESS_OFFSET, "Peace"));
            importantChecks.Add(nonexist     = new Proof(memory, 0x0032F1E3, ADDRESS_OFFSET, "Nonexistence"));
            importantChecks.Add(connection   = new Proof(memory, 0x0032F1E2, ADDRESS_OFFSET, "Connection"));

            importantChecks.Add(pages = new TornPage(memory, 0x0032F0C8, ADDRESS_OFFSET, "TornPage"));

            world   = new World(memory, ADDRESS_OFFSET, 0x0032BAE0);
            stats   = new Stats(memory, ADDRESS_OFFSET, 0x0032E02E, 0x01C6C8D8, 0x0032F054);
            rewards = new Rewards(memory, ADDRESS_OFFSET);

            LevelIcon.Visibility    = Visibility.Visible;
            Level.Visibility        = Visibility.Visible;
            StrengthIcon.Visibility = Visibility.Visible;
            Strength.Visibility     = Visibility.Visible;
            MagicIcon.Visibility    = Visibility.Visible;
            Magic.Visibility        = Visibility.Visible;
            DefenseIcon.Visibility  = Visibility.Visible;
            Defense.Visibility      = Visibility.Visible;
            Weapon.Visibility       = Visibility.Visible;

            SetBindings();
            SetTimer();
            OnTimedEvent(null, null);
        }