Esempio n. 1
0
 public static void Flee()
 {
     if (ModesMenu3["FleeE"].Cast <CheckBox>().CurrentValue)
     {
         var ETarget = TargetSelector.GetTarget(E.Range, DamageType.Mixed);
         if (ETarget == null)
         {
             return;
         }
         {
             var Ep = E.GetPrediction(ETarget);
             if (E.IsInRange(ETarget) && E.IsReady() && ObjectManager.Player.ManaPercent >= Program.ModesMenu3["ManaFlR"].Cast <Slider>().CurrentValue)
             {
                 E.Cast(Ep.CastPosition);
             }
         }
     }
     if (ModesMenu3["FleeR"].Cast <CheckBox>().CurrentValue&& ObjectManager.Player.ManaPercent <= Program.ModesMenu3["ManaFlR"].Cast <Slider>().CurrentValue)
     {
         if (ObjectManager.Player.CountEnemiesInRange(400) == 0)
         {
             var Target = TargetSelector.GetTarget(R.Range, DamageType.Physical);
             if (Target == null)
             {
                 return;
             }
             var Rp = R.GetPrediction(Target);
             if (PlayerInstance.GetBuffCount("kogmawlivingartillerycost") < ModesMenu3["FlRStack"].Cast <Slider>().CurrentValue)
             {
                 R.Cast(Rp.CastPosition);
             }
         }
     }
 }
Esempio n. 2
0
 public static void JungleClear()
 {
     if (Q.IsReady() && ModesMenu2["JungleQ"].Cast <CheckBox>().CurrentValue&& ObjectManager.Player.ManaPercent >= Program.ModesMenu2["ManaJ"].Cast <Slider>().CurrentValue)
     {
         var minions = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, Q.Range).Where(t => !t.IsDead && t.IsValid && !t.IsInvulnerable);
         foreach (var m in minions)
         {
             if (Q.GetPrediction(m).CollisionObjects.Where(t => t.IsEnemy && !t.IsDead && t.IsValid && !t.IsInvulnerable).Count() >= minions.Count() - 1)
             {
                 Q.Cast(m);
                 break;
             }
         }
     }
     if (R.IsReady() && ModesMenu2["JungleR"].Cast <CheckBox>().CurrentValue&& ObjectManager.Player.ManaPercent >= Program.ModesMenu2["ManaJR"].Cast <Slider>().CurrentValue)
     {
         var minions = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, Q.Range).Where(t => !t.IsDead && t.IsValid && !t.IsInvulnerable);
         if (minions.Count() > 0)
         {
             if (PlayerInstance.GetBuffCount("kogmawlivingartillerycost") < ModesMenu2["JRStack"].Cast <Slider>().CurrentValue)
             {
                 R.Cast(minions.First());
             }
         }
     }
 }
Esempio n. 3
0
        public static void Harass()
        {
            //Harass
            var RTarget = TargetSelector.GetTarget(R.Range, DamageType.Mixed);

            if (RTarget == null)
            {
                return;
            }
            {
                var useR = ModesMenu1["HarassR"].Cast <CheckBox>().CurrentValue;
                var Rp   = R.GetPrediction(RTarget);
                if (!RTarget.IsValid())
                {
                    return;
                }
                if (R.IsInRange(RTarget) && R.IsReady() && useR && !RTarget.IsInvulnerable && Rp.HitChance >= HitChance.High && ObjectManager.Player.ManaPercent >= Program.ModesMenu1["ManaHR"].Cast <Slider>().CurrentValue)
                {
                    if (PlayerInstance.GetBuffCount("kogmawlivingartillerycost") < ModesMenu1["HRStack"].Cast <Slider>().CurrentValue)
                    {
                        R.Cast(Rp.CastPosition);
                    }
                }
            }

            var Target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (Target == null)
            {
                return;
            }
            {
                var useQ = ModesMenu1["HarassQ"].Cast <CheckBox>().CurrentValue;
                var Qp   = Q.GetPrediction(Target);
                if (!Target.IsValid() && Target == null)
                {
                    return;
                }
                if (Q.IsInRange(Target) && Q.IsReady() && useQ && Qp.HitChance >= HitChance.High && ObjectManager.Player.ManaPercent >= Program.ModesMenu1["ManaHQ"].Cast <Slider>().CurrentValue)
                {
                    Q.Cast(Qp.CastPosition);
                }
            }
        }
Esempio n. 4
0
 public static void AutoR()
 {
     {
         if (Program.ModesMenu1["AutoHarass"].Cast <CheckBox>().CurrentValue)
         {
             var Target = TargetSelector.GetTarget(R.Range, DamageType.Mixed);
             if (Target == null)
             {
                 return;
             }
             var Rpr = R.GetPrediction(Target);
             if (R.IsInRange(Target) && R.IsReady() && !Target.IsInvulnerable)
             {
                 if (PlayerInstance.GetBuffCount("kogmawlivingartillerycost") < ModesMenu1["ARStack"].Cast <Slider>().CurrentValue)
                 {
                     R.Cast(Rpr.CastPosition);
                 }
             }
         }
     }
 }
Esempio n. 5
0
        public static void Combo()
        {
            var RTarget = TargetSelector.GetTarget(R.Range, DamageType.Mixed);

            if (RTarget == null)
            {
                return;
            }
            {
                var useR = ModesMenu1["ComboR"].Cast <CheckBox>().CurrentValue;
                var Rp   = R.GetPrediction(RTarget);
                if (!RTarget.IsValid())
                {
                    return;
                }
                if (R.IsInRange(RTarget) && R.IsReady() && useR && Rp.HitChance >= HitChance.High && !RTarget.IsInvulnerable)
                {
                    if (PlayerInstance.GetBuffCount("kogmawlivingartillerycost") < ModesMenu1["CRStack"].Cast <Slider>().CurrentValue&& ObjectManager.Player.ManaPercent >= Program.ModesMenu1["ManaCR"].Cast <Slider>().CurrentValue)
                    {
                        if (ModesMenu1["LogicRn"].Cast <ComboBox>().CurrentValue == 0)
                        {
                            R.Cast(Rp.CastPosition);
                        }
                        if (RTarget.HealthPercent <= 55 && ModesMenu1["LogicRn"].Cast <ComboBox>().CurrentValue == 1)
                        {
                            R.Cast(Rp.CastPosition);
                        }
                        if (RTarget.HealthPercent <= 30 && ModesMenu1["LogicRn"].Cast <ComboBox>().CurrentValue == 2)
                        {
                            R.Cast(Rp.CastPosition);
                        }
                    }
                }

                var useW = ModesMenu1["ComboW"].Cast <CheckBox>().CurrentValue;
                if (useW && W.IsReady())
                {
                    if (EntityManager.Heroes.Enemies.Any(x => x.IsValidTarget(W.Range)))
                    {
                        W.Cast();
                    }
                }

                var QTarget = TargetSelector.GetTarget(Q.Range, DamageType.Mixed);
                if (QTarget == null)
                {
                    return;
                }
                {
                    var useQ = ModesMenu1["ComboQ"].Cast <CheckBox>().CurrentValue;
                    var Qp   = Q.GetPrediction(QTarget);
                    if (!QTarget.IsValid())
                    {
                        return;
                    }
                    if (Q.IsInRange(QTarget) && Q.IsReady() && useQ && Qp.HitChance >= HitChance.High && !QTarget.IsInvulnerable)
                    {
                        if (ObjectManager.Player.Mana >= 80)
                        {
                            Q.Cast(Qp.CastPosition);
                        }
                    }
                }
                var ETarget = TargetSelector.GetTarget(E.Range, DamageType.Mixed);
                if (ETarget == null)
                {
                    return;
                }
                {
                    var useE = ModesMenu1["ComboE"].Cast <CheckBox>().CurrentValue;
                    var Ep   = E.GetPrediction(ETarget);
                    if (E.IsInRange(ETarget) && E.IsReady() && useE && ObjectManager.Player.ManaPercent >= Program.ModesMenu1["ManaCE"].Cast <Slider>().CurrentValue&& ObjectManager.Player.IsInAutoAttackRange(ETarget))
                    {
                        E.Cast(Ep.CastPosition);
                    }
                }
            }
        }
Esempio n. 6
0
        internal static void zigzag(EventArgs args)
        {
            var zigzagTarget = TargetSelector.GetTarget(R.Range, DamageType.Mixed);

            if (zigzagTarget == null)
            {
                czx  = 0;
                czx2 = 0;
                czy  = 0;
                czy2 = 0;
                return;
            }

            if (czx < czx2)
            {
                if (czx2 >= zigzagTarget.Position.X)
                {
                    cz = true;
                }
                else
                {
                    cz = false;
                }
            }
            else if (czx == czx2)
            {
                cz   = false;
                czx  = czx2;
                czx2 = zigzagTarget.Position.X;
                return;
            }
            else
            {
                if (czx2 <= zigzagTarget.Position.X)
                {
                    cz = true;
                }
                else
                {
                    cz = false;
                }
            }
            czx  = czx2;
            czx2 = zigzagTarget.Position.X;

            if (czy < czy2)
            {
                if (czy2 >= zigzagTarget.Position.Y)
                {
                    cz = true;
                }
                else
                {
                    cz = false;
                }
            }
            else if (czy == czy2)
            {
                cz = false;
            }
            else
            {
                if (czy2 <= zigzagTarget.Position.Y)
                {
                    cz = true;
                }
                else
                {
                    cz = false;
                }
            }
            czy  = czy2;
            czy2 = zigzagTarget.Position.Y;

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && ModesMenu1["ComboR"].Cast <CheckBox>().CurrentValue)
            {
                var zigzag = R.GetPrediction(zigzagTarget);
                if (zigzag.HitChance >= HitChance.High && !zigzagTarget.IsInvulnerable && PlayerInstance.GetBuffCount("kogmawlivingartillerycost") < ModesMenu1["CRStack"].Cast <Slider>().CurrentValue &&
                    ObjectManager.Player.ManaPercent >= Program.ModesMenu1["ManaCR"].Cast <Slider>().CurrentValue)
                {
                    if (ModesMenu1["LogicRn"].Cast <ComboBox>().CurrentValue == 0)
                    {
                        R.Cast(zigzag.CastPosition);
                    }
                    if (zigzagTarget.HealthPercent <= 50 && ModesMenu1["LogicRn"].Cast <ComboBox>().CurrentValue == 1)
                    {
                        R.Cast(zigzag.CastPosition);
                    }
                    if (zigzagTarget.HealthPercent <= 25 && ModesMenu1["LogicRn"].Cast <ComboBox>().CurrentValue == 2)
                    {
                        R.Cast(zigzag.CastPosition);
                    }
                }
            }
        }