Esempio n. 1
0
        /// <summary>
        ///     Combo logic
        /// </summary>
        private static void DoCombo()
        {
            try
            {
                var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);
                if (target == null)
                {
                    return;
                }

                if (IsHuman)
                {
                    if (target.HasBuff("buffelisecocoon") && SpiderQ.IsReady() && target.IsValidTarget(SpiderQ.Range))
                    {
                        R.Cast();
                    }

                    if (getCheckBoxItem(comboMenu, "GFUELElise.Combo.E") && target.Distance(Player.Position) <= E.Range &&
                        E.IsReady())
                    {
                        var prediction = E.GetPrediction(target);
                        if (prediction.Hitchance >= HitChance.High)
                        {
                            E.Cast(prediction.CastPosition);
                        }
                    }

                    if (getCheckBoxItem(comboMenu, "GFUELElise.Combo.Q") && Q.IsReady() && target.IsValidTarget(Q.Range))
                    {
                        Q.CastOnUnit(target);
                    }

                    if (getCheckBoxItem(comboMenu, "GFUELElise.Combo.W") && W.IsReady() && target.IsValidTarget(W.Range))
                    {
                        var prediction = W.GetPrediction(target);
                        if (prediction.CollisionObjects.Count == 0)
                        {
                            W.Cast(target.ServerPosition);
                        }
                    }

                    if (getCheckBoxItem(comboMenu, "GFUELElise.Combo.R"))
                    {
                        if (Player.ManaPercent < getSliderItem(comboMenu, "GFUELElise.R.nein"))
                        {
                            R.Cast();
                        }

                        if (Player.Distance(target) <= 750 && R.IsReady() &&
                            (!Q.IsReady() && !W.IsReady() && !E.IsReady() ||
                             !Q.IsReady() && !W.IsReady() && !E.IsReady()))
                        {
                            R.Cast();
                        }

                        if (SpiderQ.IsReady() && target.IsValidTarget(SpiderQ.Range) &&
                            target.IsValidTarget(SpiderQ.Range))
                        {
                            R.Cast();
                        }
                    }
                }

                if (IsSpider)
                {
                    if (getCheckBoxItem(comboMenu, "GFUELElise.ComboSpider.Q") && SpiderQ.IsReady())
                    {
                        if (target.IsValidTarget(SpiderQ.Range))
                        {
                            SpiderQ.Cast(target);
                        }
                    }

                    if (getCheckBoxItem(comboMenu, "GFUELElise.ComboSpider.W") && Player.Distance(target) <= 140 &&
                        SpiderW.IsReady())
                    {
                        if (target.IsValidTarget(SpiderW.Range))
                        {
                            SpiderW.Cast();
                        }
                    }

                    if (getCheckBoxItem(comboMenu, "GFUELElise.ComboSpider.E") &&
                        Player.Distance(target) <= SpiderE.Range && Player.Distance(target) > SpiderQ.Range &&
                        SpiderE.IsReady())
                    {
                        if (target.IsValidTarget(SpiderQ.Range))
                        {
                            return;
                        }
                        SpiderE.Cast(target);
                    }

                    if (getCheckBoxItem(comboMenu, "GFUELElise.Combo.R"))
                    {
                        if (Player.ManaPercent < getSliderItem(comboMenu, "GFUELElise.R.nein"))
                        {
                            return;
                        }

                        if (R.IsReady() && !target.IsValidTarget(SpiderQ.Range) && !SpiderE.IsReady())
                        {
                            R.Cast();
                        }

                        if (!SpiderQ.IsReady() && !SpiderW.IsReady() && R.IsReady())
                        {
                            R.Cast();
                        }

                        if (!SpiderQ.IsReady() && !SpiderE.IsReady() && !SpiderW.IsReady() ||
                            !SpiderQ.IsReady() && Q.IsReady() && Q.GetDamage(target) > target.Health)
                        {
                            R.Cast();
                        }
                    }

                    if (getCheckBoxItem(comboMenu, "GFUELElise.ComboSpider.E") &&
                        Player.Distance(target) > SpiderQ.Range && SpiderE.IsReady())
                    {
                        SpiderE.Cast(target);
                    }
                }

                if (getCheckBoxItem(comboMenu, "GFUELElise.Combo.R"))
                {
                    if (!Q.IsReady() && !W.IsReady() && !R.IsReady() ||
                        (Q.IsReady() && Q.GetDamage(target) >= target.Health) ||
                        W.IsReady() && W.GetDamage(target) >= target.Health)
                    {
                        if (SpiderQ.IsReady() && target.IsValidTarget(SpiderQ.Range))
                        {
                            return;
                        }

                        R.Cast();
                    }
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Esempio n. 2
0
        private static void Combo()
        {
            var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (HumanForm)
            {
                if (target.HasBuff("buffelisecocoon") && SpiderQ.IsReady() && target.IsValidTarget(SpiderQ.Range))
                {
                    R.Cast();
                }

                if (ComboMenu.Get <CheckBox>("useE").CurrentValue&& target.Distance(Player.Position) <= E.Range && E.IsReady())
                {
                    var prediction = E.GetPrediction(target);
                    if (prediction.HitChance >= HitChance.High)
                    {
                        E.Cast(prediction.CastPosition);
                    }
                }

                if (ComboMenu.Get <CheckBox>("useQ").CurrentValue&& Q.IsReady() && target.IsValidTarget(Q.Range))
                {
                    Q.Cast(target);
                }

                if (ComboMenu.Get <CheckBox>("useW").CurrentValue&& W.IsReady() && target.IsValidTarget(W.Range))
                {
                    var prediction = W.GetPrediction(target);
                    if (prediction.CollisionObjects.Count() == 0)
                    {
                        W.Cast(target.ServerPosition);
                    }
                }

                if (ComboMenu.Get <CheckBox>("useR").CurrentValue)
                {
                    if (Player.ManaPercent < ComboMenu.Get <Slider>("Cmana").CurrentValue)
                    {
                        R.Cast();
                    }

                    if (Player.Distance(target) <= 750 && R.IsReady() &&
                        (!Q.IsReady() && !W.IsReady() && !E.IsReady() ||
                         !Q.IsReady() && !W.IsReady() && !E.IsReady()))
                    {
                        R.Cast();
                    }

                    if (SpiderQ.IsReady() && target.IsValidTarget(SpiderQ.Range) &&
                        target.IsValidTarget(SpiderQ.Range))
                    {
                        R.Cast();
                    }
                }
            }

            if (SpiderForm)
            {
                if (ComboMenu.Get <CheckBox>("useQSpider").CurrentValue&& SpiderQ.IsReady())
                {
                    if (target.IsValidTarget(SpiderQ.Range))
                    {
                        SpiderQ.Cast(target);
                    }
                }

                if (ComboMenu.Get <CheckBox>("useWSpider").CurrentValue&& Player.Distance(target) <= 140 && SpiderW.IsReady())
                {
                    if (target.IsValidTarget(SpiderW.Range))
                    {
                        SpiderW.Cast();
                    }
                }

                if (ComboMenu.Get <CheckBox>("useESpider").CurrentValue&& Player.Distance(target) <= SpiderE.Range && Player.Distance(target) > SpiderQ.Range && SpiderE.IsReady())
                {
                    if (target.IsValidTarget(SpiderQ.Range))
                    {
                        return;
                    }
                    SpiderE.Cast(target);
                }

                if (ComboMenu.Get <CheckBox>("useR").CurrentValue)
                {
                    if (Player.ManaPercent < ComboMenu.Get <Slider>("Cmana").CurrentValue)
                    {
                        return;
                    }

                    if (R.IsReady() && !target.IsValidTarget(SpiderQ.Range) && !SpiderE.IsReady())
                    {
                        R.Cast();
                    }

                    if (!SpiderQ.IsReady() && !SpiderW.IsReady() && R.IsReady())
                    {
                        R.Cast();
                    }

                    if (!SpiderQ.IsReady() && !SpiderE.IsReady() && !SpiderW.IsReady() ||
                        !SpiderQ.IsReady() && Q.IsReady() && GetComboDamage(target) > target.Health)
                    {
                        R.Cast();
                    }
                }

                if (ComboMenu.Get <CheckBox>("useESpider").CurrentValue&& Player.Distance(target) > SpiderQ.Range && SpiderE.IsReady())
                {
                    SpiderE.Cast(target);
                }
            }

            if (ComboMenu.Get <CheckBox>("useR").CurrentValue)
            {
                if (!Q.IsReady() && !W.IsReady() && !R.IsReady() ||
                    (Q.IsReady() && GetComboDamage(target) >= target.Health) ||
                    W.IsReady() && GetComboDamage(target) >= target.Health)
                {
                    if (SpiderQ.IsReady() && target.IsValidTarget(SpiderQ.Range))
                    {
                        return;
                    }

                    R.Cast();
                }
            }
        }