예제 #1
0
        private void OnCombo()
        {
            bool useQ   = Menu["combo"]["useq"].Enabled;
            bool useE   = Menu["combo"]["usee"].Enabled;
            bool useR   = Menu["combo"]["user"].Enabled;
            var  target = GetBestEnemyHeroTargetInRange(1200);


            if (!target.IsValidTarget())
            {
                return;
            }
            if (Menu["smite"]["smitekey"].Enabled)
            {
                if (Smites != null)
                {
                    if (Menu["smite"]["SmiteUseHeroes"].Enabled)
                    {
                        if (target.IsValidTarget(Smites.Range) && target != null)
                        {
                            Smites.CastOnUnit(target);
                        }
                    }
                }
            }
            var items = new[] { ItemId.BladeoftheRuinedKing, ItemId.BilgewaterCutlass };

            if (Player.HasItem(ItemId.BladeoftheRuinedKing) || Player.HasItem(ItemId.BilgewaterCutlass))
            {
                var slot = Player.Inventory.Slots.First(s => items.Contains(s.ItemId));
                if (slot != null)
                {
                    var spellslot = slot.SpellSlot;
                    if (spellslot != SpellSlot.Unknown &&
                        Player.SpellBook.GetSpell(spellslot).State == SpellState.Ready)
                    {
                        Player.SpellBook.CastSpell(spellslot, target);
                    }
                }
            }
            switch (Menu["combo"]["qmode"].As <MenuList>().Value)
            {
            case 0:
                if (useQ && target.IsValidTarget(Q.Range) && target != null)
                {
                    Q.CastOnUnit(target);
                }
                if (useE && target != null)
                {
                    if (target.IsValidTarget(300))
                    {
                        E.Cast();
                    }
                }
                if (useR && target != null && target.IsValidTarget(1200) && target.Distance(Player) > Q.Range)
                {
                    R.Cast();
                }
                break;

            case 1:
                if (useQ && target.IsValidTarget(Q.Range) && target != null)
                {
                    if (target.IsDashing())
                    {
                        Q.CastOnUnit(target);
                    }
                    if (target.HealthPercent() <= 30)
                    {
                        Q.CastOnUnit(target);
                    }
                    if (Player.HealthPercent() <= 30)
                    {
                        Q.CastOnUnit(target);
                    }
                    if (Player.GetSpellDamage(target, SpellSlot.Q) >= target.Health)
                    {
                        Q.CastOnUnit(target);
                    }
                    if (target.Distance(Player) > 400 && target.Distance(Player) < Q.Range)
                    {
                        Q.CastOnUnit(target);
                    }
                }
                if (useE && target != null)
                {
                    if (target.IsValidTarget(300))
                    {
                        E.Cast();
                    }
                }
                if (useR && target != null && target.IsValidTarget(1200) && target.Distance(Player) > Q.Range)
                {
                    R.Cast();
                }
                break;
            }
        }
예제 #2
0
        private void OnCombo()
        {
            bool useQ    = Menu["combo"]["useq"].Enabled;
            bool useW    = Menu["combo"]["usew"].Enabled;
            bool useE    = Menu["combo"]["usee"].Enabled;
            bool ChangeE = Menu["combo"]["changee"].Enabled;
            var  target  = GetBestEnemyHeroTargetInRange(E.Range);

            if (!target.IsValidTarget() || Player.HasBuff("RengarR") || reeeeeeeeeSTOPusingE)
            {
                return;
            }

            if (Menu["smite"]["smitekey"].Enabled)
            {
                if (Smites != null)
                {
                    if (Menu["smite"]["SmiteUseHeroes"].Enabled)
                    {
                        if (target.IsValidTarget(Smites.Range) && target != null)
                        {
                            Smites.CastOnUnit(target);
                        }
                    }
                }
            }
            if (Player.Mana == 4)
            {
                if (ChangeE)
                {
                    if (target.Distance(Player) > Q.Range)
                    {
                        if (target.IsValidTarget(E.Range) && target != null)
                        {
                            if (!Menu["combo"]["bushe"].Enabled)
                            {
                                E.Cast(target);
                            }
                            if (Menu["combo"]["bushe"].Enabled && !Player.HasBuff("rengarpassivebuff"))
                            {
                                E.Cast(target);
                            }
                        }
                    }
                }
                if (Menu["combo"]["priorityq"].Enabled)
                {
                    if (target.IsValidTarget(Q.Range) && target != null)
                    {
                        if (Player.GetAutoAttackDamage(target) + Player.GetSpellDamage(target, SpellSlot.Q, DamageStage.Empowered) * 2 >=
                            target.Health)
                        {
                            Q.Cast(target);
                            if (target.Distance(Player) <= 420)
                            {
                                Q.Cast(Q.GetPrediction(target).CastPosition
                                       .Extend(Q.GetPrediction(target).UnitPosition, 100));
                            }
                        }
                    }
                }
                switch (Menu["combo"]["priority"].As <MenuList>().Value)
                {
                case 0:


                    if (target.IsValidTarget(Q.Range) && target != null)
                    {
                        Q.Cast(target);
                        if (target.Distance(Player) <= 420)
                        {
                            Q.Cast(Q.GetPrediction(target).CastPosition.Extend(Q.GetPrediction(target).UnitPosition, 100));
                        }
                    }

                    break;

                case 1:

                    if (target.IsValidTarget(W.Range - 100) && target != null)
                    {
                        W.Cast();
                    }

                    break;

                case 2:


                    if (target.IsValidTarget(E.Range - 100) && target != null)
                    {
                        if (!Menu["combo"]["bushe"].Enabled)
                        {
                            if (E.Cast(target))
                            {
                                if (Player.HasItem(ItemId.TitanicHydra) || Player.HasItem(ItemId.Tiamat) ||
                                    Player.HasItem(ItemId.RavenousHydra))
                                {
                                    var items = new[] { ItemId.TitanicHydra, ItemId.Tiamat, ItemId.RavenousHydra };
                                    var slot  = Player.Inventory.Slots.First(s => items.Contains(s.ItemId));
                                    if (slot != null && target.Distance(Player) < 400)
                                    {
                                        var spellslot = slot.SpellSlot;
                                        if (spellslot != SpellSlot.Unknown &&
                                            Player.SpellBook.GetSpell(spellslot).State == SpellState.Ready)
                                        {
                                            Player.SpellBook.CastSpell(spellslot);
                                        }
                                    }
                                }
                            }
                        }
                        if (Menu["combo"]["bushe"].Enabled && !Player.HasBuff("rengarpassivebuff"))
                        {
                            if (E.Cast(target))
                            {
                                if (Player.HasItem(ItemId.TitanicHydra) || Player.HasItem(ItemId.Tiamat) ||
                                    Player.HasItem(ItemId.RavenousHydra))
                                {
                                    var items = new[] { ItemId.TitanicHydra, ItemId.Tiamat, ItemId.RavenousHydra };
                                    var slot  = Player.Inventory.Slots.First(s => items.Contains(s.ItemId));
                                    if (slot != null && target.Distance(Player) < 400)
                                    {
                                        var spellslot = slot.SpellSlot;
                                        if (spellslot != SpellSlot.Unknown &&
                                            Player.SpellBook.GetSpell(spellslot).State == SpellState.Ready)
                                        {
                                            Player.SpellBook.CastSpell(spellslot);
                                        }
                                    }
                                }
                            }
                        }
                    }

                    break;
                }
            }
            if (Player.Mana < 4)
            {
                if (E.Ready && useE && target.IsValidTarget(E.Range))
                {
                    if (target != null)
                    {
                        if (!Menu["combo"]["bushe"].Enabled)
                        {
                            if (E.Cast(target))
                            {
                                if (Player.HasItem(ItemId.TitanicHydra) || Player.HasItem(ItemId.Tiamat) ||
                                    Player.HasItem(ItemId.RavenousHydra))
                                {
                                    var items = new[] { ItemId.TitanicHydra, ItemId.Tiamat, ItemId.RavenousHydra };
                                    var slot  = Player.Inventory.Slots.First(s => items.Contains(s.ItemId));
                                    if (slot != null && target.Distance(Player) < 400)
                                    {
                                        var spellslot = slot.SpellSlot;
                                        if (spellslot != SpellSlot.Unknown &&
                                            Player.SpellBook.GetSpell(spellslot).State == SpellState.Ready)
                                        {
                                            Player.SpellBook.CastSpell(spellslot);
                                        }
                                    }
                                }
                            }
                        }
                        if (Menu["combo"]["bushe"].Enabled && !Player.HasBuff("rengarpassivebuff"))
                        {
                            if (E.Cast(target))
                            {
                                if (Player.HasItem(ItemId.TitanicHydra) || Player.HasItem(ItemId.Tiamat) ||
                                    Player.HasItem(ItemId.RavenousHydra))
                                {
                                    var items = new[] { ItemId.TitanicHydra, ItemId.Tiamat, ItemId.RavenousHydra };
                                    var slot  = Player.Inventory.Slots.First(s => items.Contains(s.ItemId));
                                    if (slot != null && target.Distance(Player) < 400)
                                    {
                                        var spellslot = slot.SpellSlot;
                                        if (spellslot != SpellSlot.Unknown &&
                                            Player.SpellBook.GetSpell(spellslot).State == SpellState.Ready)
                                        {
                                            Player.SpellBook.CastSpell(spellslot);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                if (W.Ready && useW && target.IsValidTarget(W.Range - 100))

                {
                    if (target != null)
                    {
                        W.Cast();
                    }
                }
                if (Q.Ready && useQ && target.IsValidTarget(Q.Range))
                {
                    if (target != null)
                    {
                        Q.Cast(target);
                        if (target.Distance(Player) <= 420)
                        {
                            Q.Cast(Q.GetPrediction(target).CastPosition.Extend(Q.GetPrediction(target).UnitPosition, 100));
                        }
                    }
                }
            }
        }