Exemplo n.º 1
0
        public static void MainCombo()
        {
            SH.Orbwalk(Target);
            if (Queuer.Queue.Count > 0)
            {
                return;
            }

            if (!Target.IsValidTarget())
            {
                return;
            }

            var comboRDmg = DamageHandler.GetComboDmg(true, Target);
            var comboNoR  = DamageHandler.GetComboDmg(false, Target);

            if (SH.Spells[SpellSlot.R].IsReady() &&
                !CH.RState && MenuHandler.GetMenuBool("CR") &&
                (MenuHandler.Config.Item("forcedR").GetValue <KeyBind>().Active ||
                 comboNoR <Target.Health && comboRDmg> Target.Health))
            {
                if (MenuHandler.GetMenuBool("CREWHQ") && SH.Spells[SpellSlot.Q].IsReady() &&
                    SH.Spells[SpellSlot.W].IsReady() && SH.Spells[SpellSlot.E].IsReady() &&
                    Target.IsValidTarget(325 + SpellHandler.QRange))
                {
                    Queuer.Add("R");
                    Queuer.Add("E", Target.Position);
                    Queuer.Add("AA");
                    Queuer.Add("W");
                    Queuer.Add("Hydra");
                    Queuer.Add("AA");
                    AddQaa(true);
                    return;
                }

                if (MenuHandler.GetMenuBool("CREWH") && SH.Spells[SpellSlot.E].IsReady() &&
                    SH.Spells[SpellSlot.W].IsReady() && Target.IsValidTarget(325 + SpellHandler.WRange))
                {
                    Queuer.Add("R");
                    Queuer.Add("E", Target.Position);
                    Queuer.Add("AA");
                    Queuer.Add("W");
                    Queuer.Add("Hydra");
                    return;
                }

                if (MenuHandler.GetMenuBool("CREAAHQ") && SH.Spells[SpellSlot.Q].IsReady() &&
                    SH.Spells[SpellSlot.E].IsReady() && Target.IsValidTarget(325 + SpellHandler.QRange))
                {
                    Queuer.Add("R");
                    Queuer.Add("E", Target.Position);
                    Queuer.Add("AA");
                    Queuer.Add("Hydra");
                    AddQaa(true);
                    return;
                }

                if (MenuHandler.GetMenuBool("CRWAAHQ") && SH.Spells[SpellSlot.Q].IsReady() &&
                    SH.Spells[SpellSlot.W].IsReady() && Target.IsValidTarget(SpellHandler.QRange))
                {
                    Queuer.Add("R");
                    Queuer.Add("W");
                    Queuer.Add("AA");
                    Queuer.Add("Hydra");
                    AddQaa(true);
                    return;
                }

                if (MenuHandler.GetMenuBool("CR1CC") && SH.Spells[SpellSlot.R].IsReady())
                {
                    Queuer.Add("R");
                    return;
                }
            }

            if (MenuHandler.GetMenuBool("CR2") && SH.Spells[SpellSlot.R].IsReady() && CH.RState)
            {
                if (MenuHandler.GetMenuBool("CR2WQ") && SH.Spells[SpellSlot.Q].IsReady() &&
                    SH.Spells[SpellSlot.W].IsReady() &&
                    SpellHandler.Spells[SpellSlot.R].GetDamage(Target) +
                    SpellHandler.Spells[SpellSlot.W].GetDamage(Target) +
                    SpellHandler.Spells[SpellSlot.Q].GetDamage(Target) > Target.Health)
                {
                    Queuer.Add("R2", Target);
                    Queuer.Add("W");
                    AddQaa(true);
                    return;
                }

                if (MenuHandler.GetMenuBool("CR2W") && SH.Spells[SpellSlot.W].IsReady() &&
                    SpellHandler.Spells[SpellSlot.R].GetDamage(Target) +
                    SpellHandler.Spells[SpellSlot.W].GetDamage(Target) > Target.Health)
                {
                    Queuer.Add("R2", Target);
                    Queuer.Add("W");
                    return;
                }

                if (MenuHandler.GetMenuBool("CR2Q") && SH.Spells[SpellSlot.Q].IsReady() &&
                    SpellHandler.Spells[SpellSlot.R].GetDamage(Target) +
                    SpellHandler.Spells[SpellSlot.Q].GetDamage(Target) > Target.Health)
                {
                    Queuer.Add("R2", Target);
                    AddQaa(true);
                    return;
                }

                if (MenuHandler.GetMenuBool("CR2CC") &&
                    SpellHandler.Spells[SpellSlot.R].GetDamage(Target) > Target.Health)
                {
                    Queuer.Add("R2", Target);
                    return;
                }
            }

            // skills based on cds / engages
            if (MenuHandler.GetMenuBool("CEWHQ") && SH.Spells[SpellSlot.Q].IsReady() &&
                SH.Spells[SpellSlot.W].IsReady() && SH.Spells[SpellSlot.E].IsReady() &&
                Target.IsValidTarget(325 + SpellHandler.QRange))
            {
                Queuer.Add("E", Target.Position);
                Queuer.Add("W");
                Queuer.Add("Hydra");
                Queuer.Add("AA");
                AddQaa(true);
                return;
            }

            if (MenuHandler.GetMenuBool("CQWH") && SH.Spells[SpellSlot.Q].IsReady() &&
                SH.Spells[SpellSlot.W].IsReady() && CH.QCount == 2 && Target.IsValidTarget(SpellHandler.QRange))
            {
                Queuer.Add("Q");
                Queuer.Add("W");
                Queuer.Add("Hydra");
                Queuer.Add("AA");
                AddQaa(true);
                return;
            }

            if (MenuHandler.GetMenuBool("CEHQ") && SH.Spells[SpellSlot.Q].IsReady() &&
                SH.Spells[SpellSlot.E].IsReady() && Target.IsValidTarget(SH.QRange + 325))
            {
                Queuer.Add("E", Target.Position);
                Queuer.Add("Hydra");
                Queuer.Add("Q");
                Queuer.Add("AA");
                AddQaa(true);
                return;
            }

            if (MenuHandler.GetMenuBool("CEW") && SH.Spells[SpellSlot.E].IsReady() &&
                Target.IsValidTarget(325 + SH.WRange) && !Orbwalking.InAutoAttackRange(Target))
            {
                Queuer.Add("E", Target.Position);
                Queuer.Add("W");
                Queuer.Add("AA");
                return;
            }
            // End

            // When only one skill is up
            if (MenuHandler.GetMenuBool("CW") && SH.Spells[SpellSlot.W].IsReady() && Target.IsValidTarget(SH.WRange))
            {
                Queuer.Add("W");
                Queuer.Add("Hydra");
                return;
            }

            if (MenuHandler.GetMenuBool("CE") && SH.Spells[SpellSlot.E].IsReady() &&
                Target.IsValidTarget(325 + Orbwalking.GetRealAutoAttackRange(Player)) &&
                !Orbwalking.InAutoAttackRange(Target))
            {
                Queuer.Add("E", Target.Position);
                return;
            }

            if (MenuHandler.GetMenuBool("CQ") && SH.Spells[SpellSlot.Q].IsReady() && Target.IsValidTarget(SH.QRange))
            {
                AddQaa();
            }
            // End
        }
Exemplo n.º 2
0
        public static void mainCombo()
        {
            SH.Orbwalk(Target);

            if (Queuer.Queue.Count > 0)
            {
                return;
            }

            if (!Target.IsValidTarget())
            {
                return;
            }


            var comboRDmg = DamageHandler.getComboDmg(true, Target);
            var comboNoR  = DamageHandler.getComboDmg(false, Target);

            if (CH.LastECancelSpell < Environment.TickCount && MenuHandler.getMenuBool("autoCancelE"))
            {
                CH.LastECancelSpell = int.MaxValue;
                SH.CastE(Target.Position);
            }
            if (CH.LastTiamatCancel < Environment.TickCount && MenuHandler.getMenuBool("autoCancelT"))
            {
                CH.LastTiamatCancel = int.MaxValue;
                SH.castItems(Target);
            }

            if (MenuHandler.getMenuBool("CR") && Queuer.Queue.Contains("R"))
            {
                if (SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() &&
                    SH._spells[SpellSlot.Q].IsReady() && (comboNoR <Target.Health && comboRDmg> Target.Health || Player.Position.CountEnemiesInRange(600) >= MenuHandler.Config.Item("CRNO").GetValue <Slider>().Value || MenuHandler.Config.Item("forcedR").GetValue <KeyBind>().Active))
                {
                    Queuer.add("E", Target.Position);
                    Queuer.add("Hydra");
                    Queuer.add("R");
                    Queuer.add("Q");
                }
                if ((Player.Position.CountEnemiesInRange(600) >= MenuHandler.Config.Item("CRNO").GetValue <Slider>().Value || comboNoR < Target.Health && comboRDmg > Target.Health || MenuHandler.Config.Item("forcedR").GetValue <KeyBind>().Active) && SH._spells[SpellSlot.R].IsReady() && SH._spells[SpellSlot.E].IsReady())
                {
                    Queuer.add("R");
                    Queuer.add("E", Target.Position);
                }
                if (Player.Position.CountEnemiesInRange(600) >= MenuHandler.Config.Item("CRNO").GetValue <Slider>().Value || comboNoR < Target.Health && comboRDmg > Target.Health || MenuHandler.Config.Item("forcedR").GetValue <KeyBind>().Active)
                {
                    Queuer.add("R");
                }
            }

            if (CH.RState && !Queuer.Queue.Contains("R2"))
            {
                if (MenuHandler.getMenuBool("QWR2KS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.Q].IsReady() &&
                    SH._spells[SpellSlot.Q].GetDamage(Target) + SH._spells[SpellSlot.R].GetDamage(Target) > Target.Health)
                {
                    Queuer.add("Q");
                    Queuer.add("W");
                    Queuer.add("R2", Target);
                    return;
                }
                if (MenuHandler.getMenuBool("QR2KS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.Q].IsReady() &&
                    SH._spells[SpellSlot.Q].GetDamage(Target) + SH._spells[SpellSlot.R].GetDamage(Target) > Target.Health)
                {
                    Queuer.add("Q");
                    Queuer.add("R2", Target);
                    return;
                }
                if (MenuHandler.getMenuBool("WR2KS") && Target.IsValidTarget(SH.WRange) && CH.CanW && SH._spells[SpellSlot.W].IsReady() &&
                    SH._spells[SpellSlot.W].GetDamage(Target) + SH._spells[SpellSlot.R].GetDamage(Target) > Target.Health)
                {
                    Queuer.add("W");
                    Queuer.add("R2", Target);
                    return;
                }
                if (MenuHandler.getMenuBool("CR2") && SpellHandler._spells[SpellSlot.R].GetDamage(Target) > Target.Health)
                {
                    Queuer.add("R2", Target);
                    return;
                }
            }
            else
            {
                if (MenuHandler.getMenuBool("QWKS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.Q].IsReady() && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.Q].GetDamage(Target) + SH._spells[SpellSlot.W].GetDamage(Target) > Target.Health)
                {
                    Queuer.add("Q");
                    Queuer.add("W");
                }
                if (MenuHandler.getMenuBool("QKS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.Q].IsReady() && SH._spells[SpellSlot.Q].GetDamage(Target) > Target.Health)
                {
                    Queuer.add("Q");
                }
                if (MenuHandler.getMenuBool("WKS") && Target.IsValidTarget(SH.WRange) && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.W].GetDamage(Target) > Target.Health)
                {
                    Queuer.add("W");
                }
            }

            var BonusRange = Orbwalking.GetRealAutoAttackRange(Player) + (Target.BoundingRadius / 2) - 50;

            if (Target == null)
            {
                return;
            }

            if (MenuHandler.getMenuBool("CE") && SH._spells[SpellSlot.E].IsReady())
            {
                if (MenuHandler.getMenuBool("UseE-GC"))
                {
                    if (!Target.IsValidTarget(SH._spells[SpellSlot.E].Range - BonusRange + 50) &&
                        Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange))
                    {
                        Queuer.add("E", Target.Position);
                    }
                    if (SH._spells[SpellSlot.Q].IsReady() &&
                        !Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange) &&
                        Target.IsValidTarget(SH._spells[SpellSlot.E].Range + SH._spells[SpellSlot.Q].Range - 50))
                    {
                        Queuer.add("E", Target.Position);
                    }
                }
                else if (Vector3.Distance(Player.Position, Target.Position) > Orbwalking.GetRealAutoAttackRange(Player))
                {
                    Queuer.add("E", Target.Position);
                }
            }

            if (MenuHandler.getMenuBool("CW") && SH._spells[SpellSlot.W].IsReady() && Environment.TickCount - CH.LastE >= 100 && Target.IsValidTarget(SH._spells[SpellSlot.W].Range))
            {
                Queuer.add("W");
            }

            if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 100 && MenuHandler.getMenuBool("CQ") && !Queuer.Queue.Contains("Q"))
            {
                if (Target.IsValidTarget(SH.QRange) && CH.CanQ && MenuHandler.Config.Item("QAA").GetValue <StringList>().SelectedIndex == 0)
                {
                    Queuer.add("Q");
                }
                if (!Target.IsValidTarget(SH.QRange + Orbwalking.GetRealAutoAttackRange(Player)) && !Orbwalking.InAutoAttackRange(Target) && MenuHandler.getMenuBool("UseQ-GC2"))
                {
                    Queuer.add("Q");
                }
            }
        }