Example #1
0
        public static void AttemptToPickFox20XX()
        {
            var currentFrame = GameState.LastFrame + 5;

            for (var i = 0; i < 6; i++)
            {
                currentFrame++;
                MQueue.AddToFrame(currentFrame + i, new StickPress(Direction.N));
            }
            Thread.Sleep(100);

            var prev = 0;
            var p1   = Memory.ReadByte(0x8042208F);

            while (p1 != 2)
            {
                prev = p1;
                MQueue.AddToFrame(GameState.LastFrame + 1, new DigitalPress(DigitalButton.B));
                MQueue.AddToFrame(GameState.LastFrame + 2, new DigitalPress(DigitalButton.A));
                Thread.Sleep(75);
                p1 = Memory.ReadByte(0x8042208F);
                if (p1 != 2)
                {
                    continue;
                }
                //Log(null, new Logging.LogEventArgs("Fox selected!"));
                MQueue.Clear();
                return;
            }
        }
Example #2
0
        private static void AttemptToName20XX()
        {
            var currentFrame = GameState.LastFrame + 1;

            for (var i = 0; i < 20; i++)
            {
                currentFrame++;
                MQueue.AddToFrame(currentFrame, new StickPress(Direction.S));
            }
            Thread.Sleep(100);
            MQueue.Clear();
            MQueue.AddToFrame(GameState.LastFrame + 5, new DigitalPress(DigitalButton.A));
        }