コード例 #1
0
        public override void Run()
        {
            if (GrindbotContainer.firstBool == false)
            {
                Calls.StopRunning();
                GrindbotContainer.firstBool = true;
                GrindbotContainer.someBool  = true;
            }
            else
            {
                if (Calls.MovementIsOnly((uint)Offsets.movementFlags.None) && GrindbotContainer.someBool == true)
                {
                    GrindbotContainer.secondBool = true;
                    GrindbotContainer.someBool   = false;
                }

                if (GrindbotContainer.secondBool == true)
                {
                    Ingame.moveBackwards();
                    moveBackTimer.Reset();
                    GrindbotContainer.thirdBool  = true;
                    GrindbotContainer.secondBool = false;
                }

                if (moveBackTimer.IsReady() && GrindbotContainer.thirdBool == true)
                {
                    Ingame.moveBackwards();
                    GrindbotContainer.thirdBool  = false;
                    GrindbotContainer.fourthBool = true;
                    ChooseRandom(out strafeStart, out strafeStop);
                    Calls.DoString(strafeStart);
                    strafeTimer.Reset();
                }

                if (GrindbotContainer.fourthBool == true && strafeTimer.IsReady())
                {
                    Calls.DoString(strafeStop);
                    GrindbotContainer.fifthBool  = true;
                    GrindbotContainer.fourthBool = false;
                }
            }

            if (GrindbotContainer.fifthBool == true)
            {
                GrindbotContainer.IsStuck = false;
                ResetBools();
            }

            if (jumpTimer.IsReady())
            {
                Ingame.Jump();
            }
        }