Ejemplo n.º 1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            //Draw the ranges of the spells.
            var MenuBool = Config["Drawings"].GetValue <MenuBool>("QERange");

            if (MenuBool)
            {
                Render.Circle.DrawCircle(Player.Position, Eq.Range, Color.FromArgb(100, 255, 0, 255));
            }

            foreach (var spell in SpellList)
            {
                MenuBool = Config["Drawings"].GetValue <MenuBool>(spell.Slot + "Range");
                if (MenuBool)
                {
                    Render.Circle.DrawCircle(Player.Position, spell.Range, Color.FromArgb(100, 255, 0, 255));
                }
            }

            if (OrbManager.WObject(false) != null)
            {
                Render.Circle.DrawCircle(OrbManager.WObject(false).Position, 100, System.Drawing.Color.White);
            }
        }
Ejemplo n.º 2
0
 private static Vector3 GetGrabableObjectPos(bool onlyOrbs)
 {
     if (!onlyOrbs)
     {
         foreach (var minion in ObjectManager.Get <AIMinionClient>().Where(minion => minion.IsValidTarget(W.Range)))
         {
             return(minion.Position);
         }
     }
     return(OrbManager.GetOrbToGrab((int)W.Range));
 }
Ejemplo n.º 3
0
 private static void UseE(AIBaseClient enemy)
 {
     foreach (var orb in OrbManager.GetOrbs(true))
     {
         if (Player.Distance(orb) < E.Range + 100)
         {
             var startPoint = orb.ToVector2().Extend(Player.Position.ToVector2(), 100);
             var endPoint   = Player.Position.ToVector2()
                              .Extend(orb.ToVector2(), Player.Distance(orb) > 200 ? 1300 : 1000);
             Eq.Delay = E.Delay + Player.Distance(orb) / E.Speed;
             Eq.From  = orb;
             var enemyPred = Eq.GetPrediction(enemy);
             if (enemyPred.Hitchance >= HitChance.High &&
                 enemyPred.UnitPosition.ToVector2().Distance(startPoint, endPoint, false)
                 < Eq.Width + enemy.BoundingRadius)
             {
                 E.Cast(orb, true);
                 W.LastCastAttemptT = Variables.TickCount;
                 return;
             }
         }
     }
 }