예제 #1
0
        public void Execute()
        {
            IWowUnit randomPartymember = NearPartymembersFacingMe.ElementAt(Rnd.Next(0, NearPartymembersFacingMe.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);
            }
        }
예제 #2
0
 public bool Enter()
 {
     NearPartymembersFacingMe = Bot.Objects.Partymembers.Where(e => e.Guid != Bot.Wow.PlayerGuid && e.Position.GetDistance(Bot.Player.Position) < 12.0f && BotMath.IsFacing(e.Position, e.Rotation, Bot.Player.Position));
     return(NearPartymembersFacingMe.Any());
 }