Ejemplo n.º 1
0
        protected override void DoExecute(WowPlayer Entity)
        {
            //if it has been more then/equal to 5 seconds since the last jump attempt, then test
            if (DateTime.Now.Subtract(_LastJumpCheck).TotalSeconds >= 5)
            {
                _LastJumpCheck = DateTime.Now;

                //if two random numbers between 1 and 5 equal each other then jump
                if (MathFuncs.RandomNumber(1, 5) == MathFuncs.RandomNumber(1, 5))
                {
                    Entity.PlayerCM.SendKeys(" ");
                }
            }
        }
Ejemplo n.º 2
0
        protected override void DoExecute(BabBot.Wow.WowPlayer Entity)
        {
            //for this basic test script... lets have a 1 in 5 chance of jumping every 5 seconds.

            //if it has been more then/equal to 5 seconds since the last jump attempt, then test
            if (DateTime.Now.Subtract(_LastJumpCheck).TotalSeconds >= 5)
            {
                _LastJumpCheck = DateTime.Now;

                //if two random numbers between 1 and 5 equal each other then jump
                if (MathFuncs.RandomNumber(1, 5) == MathFuncs.RandomNumber(1, 5))
                {
                    Entity.PlayerCM.SendKeys(" ");
                }
            }
        }