Esempio n. 1
0
        public void DoMovement(T2S t2s)
        {
            switch ((Path)Properties.Settings.Default.AntiAfkMoves)
            {
            case Path.FRONT_BACK:
                MovePath(new Keys[] { Keys.Up, Keys.Down });
                break;

            case Path.LEFT_RIGHT:
                MovePath(new Keys[] { Keys.Left, Keys.Right });
                break;

            case Path.JUMP:
                MovePath(new Keys[] { Keys.Space });
                break;

            default:
                MovePath(new Keys[] { Keys.Left, Keys.Right });
                break;
            }
            if (t2s.uset2s)
            {
                t2s.Say("Anti A F K");
            }
        }
Esempio n. 2
0
        public async Task DoMovement(T2S t2s, CancellationToken cancellationToken)
        {
            switch ((Path)Properties.Settings.Default.AntiAfkMoves)
            {
            case Path.FRONT_BACK:
                await MovePath(new Keys[] { Keys.Up, Keys.Down }, cancellationToken);

                break;

            case Path.LEFT_RIGHT:
                await MovePath(new Keys[] { Keys.Left, Keys.Right }, cancellationToken);

                break;

            case Path.JUMP:
                await MovePath(new Keys[] { Keys.Space }, cancellationToken);

                await Task.Delay(500, cancellationToken);

                break;

            default:
                await MovePath(new Keys[] { Keys.Left, Keys.Right }, cancellationToken);

                break;
            }
            if (t2s != null)
            {
                t2s.Say("Anti A F K");
            }
        }