Beispiel #1
0
        public void Execute()
        {
            IWowUnit randomPartymember = NpcsNearMe.ElementAt(Rnd.Next(0, NpcsNearMe.Count()));

            if (randomPartymember != null)
            {
                Bot.Wow.FacePosition(Bot.Player.BaseAddress, Bot.Player.Position, BotMath.CalculatePositionAround(randomPartymember.Position, 0.0f, (float)Rnd.NextDouble() * (MathF.PI * 2), (float)Rnd.NextDouble()), true);
            }
        }
Beispiel #2
0
 public bool Enter()
 {
     NpcsNearMe = Bot.Objects.All.OfType <IWowUnit>().Where(e => e.Position.GetDistance(Bot.Player.Position) < 12.0f);
     return(NpcsNearMe.Any());
 }