Esempio n. 1
0
        static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (MenuHandler.Config.Item(gapcloser.Sender.LastCastedSpellName().ToLower()) == null)
            {
                return;
            }
            if (!MenuHandler.Config.Item(gapcloser.Sender.LastCastedSpellName().ToLower()).GetValue <bool>() || !gapcloser.Sender.IsValidTarget())
            {
                return;
            }
            if (CheckHandler.QCount == 2 && MenuHandler.Config.Item("Ward Mechanic").GetValue <bool>() && MenuHandler.Config.Item("flee").GetValue <KeyBind>().Active&& gapcloser.Sender.Distance(ObjectManager.Player) < SpellHandler.QRange)
            {
                if (Queuer.Queue.Contains("Q") || Items.GetWardSlot() == null)
                {
                    return;
                }

                ObjectManager.Player.Spellbook.CastSpell(Items.GetWardSlot().SpellSlot,
                                                         ObjectManager.Player.Position.Extend(gapcloser.End, 50));
                Queuer.Queue.Insert(0, "Q");
                Utility.DelayAction.Add(200, () => ObjectManager.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos));
                return;
            }
            if (gapcloser.Sender.Distance(ObjectManager.Player) < SpellHandler.WRange && !MenuHandler.Config.Item("Ward Mechanic").GetValue <bool>())
            {
                Queuer.add("W");
                return;
            }
            if (gapcloser.Sender.Distance(ObjectManager.Player) < SpellHandler.QRange && CheckHandler.QCount == 2 && !MenuHandler.Config.Item("Ward Mechanic").GetValue <bool>())
            {
                Queuer.add("Q");
            }
        }
Esempio n. 2
0
        static void Interrupter2_OnInterruptableTarget(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
        {
            if (!MenuHandler.Config.Item("EnabledInterrupter").GetValue <bool>() || !sender.IsValidTarget())
            {
                return;
            }
            Interrupter2.DangerLevel a;
            switch (MenuHandler.Config.Item("minChannel").GetValue <StringList>().SelectedValue)
            {
            case "HIGH":
                a = Interrupter2.DangerLevel.High;
                break;

            case "MEDIUM":
                a = Interrupter2.DangerLevel.Medium;
                break;

            default:
                a = Interrupter2.DangerLevel.Low;
                break;
            }

            if (args.DangerLevel == Interrupter2.DangerLevel.High ||
                args.DangerLevel == Interrupter2.DangerLevel.Medium && a != Interrupter2.DangerLevel.High ||
                args.DangerLevel == Interrupter2.DangerLevel.Medium && a != Interrupter2.DangerLevel.Medium &&
                a != Interrupter2.DangerLevel.High)
            {
                if (sender.Distance(ObjectManager.Player) < SpellHandler.WRange)
                {
                    Queuer.add("W");
                    return;
                }
                if (sender.Distance(ObjectManager.Player) < 250 + 325)
                {
                    Queuer.add("E", sender.Position);
                    Queuer.add("W");
                    return;
                }
                if (sender.Distance(ObjectManager.Player) < SpellHandler.QRange && CheckHandler.QCount == 2)
                {
                    Queuer.add("Q");
                }
            }
        }
Esempio n. 3
0
        public static void burstCombo()
        {
            SH.Orbwalk(Target);

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

            //kyzer 3rd q combo
            if (MenuHandler.getMenuBool("shyCombo") && Target.IsValidTarget(600) && SH._spells[SpellSlot.Q].IsReady() && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && CH.QCount == 2 && Queuer.Queue.Count == 0)
            {
                Queuer.add("E", Target.Position);
                Queuer.add("R");
                Queuer.add("Flash", Target.Position, true);
                Queuer.add("Q");
                Queuer.add("AA");
                Queuer.add("Hydra");
                Queuer.add("W");
                Queuer.add("AA");
                Queuer.add("R2", Target);
                Queuer.add("Q");
            }

            // Shy combo
            if (MenuHandler.getMenuBool("kyzerCombo") && Target.IsValidTarget(600) && SH._spells[SpellSlot.Q].IsReady() && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && Queuer.Queue.Count == 0)
            {
                Queuer.add("E", Target.Position);
                Queuer.add("R");
                Queuer.add("Flash", Target.Position, true);
                Queuer.add("AA");
                Queuer.add("Hydra");
                Queuer.add("W");
                Queuer.add("R2", Target);
                Queuer.add("Q");
            }


            if (Queuer.Queue.Count > 0)
            {
                return;
            }
            mainCombo();
        }
Esempio n. 4
0
        public static void Obj_AI_Hero_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            var spell = args.SData;

            if (!sender.IsMe)
            {
                return;
            }

            if (spell.Name == "ItemTiamatCleave")
            {
                LastTiamat = Environment.TickCount;
            }

            if (!MidQ && spell.Name.Contains("RivenBasicAttack"))
            {
                Queuer.remove("AA");
                if (MenuHandler.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.None && MenuHandler.Config.Item("QAA").GetValue <StringList>().SelectedIndex == 1 && MenuHandler.Config.Item("normalCombo").GetValue <KeyBind>().Active&& SH._spells[SpellSlot.Q].IsReady() && MenuHandler.getMenuBool("CQ"))
                {
                    Queuer.add("Q");
                }
                LastAa           = Environment.TickCount;
                LastTiamatCancel = Environment.TickCount + (int)ObjectManager.Player.AttackCastDelay;
                LastPassive      = Environment.TickCount;
                if (PassiveStacks >= 1)
                {
                    PassiveStacks = PassiveStacks - 1;
                }
                MidAa   = true;
                CanMove = false;
                CanAa   = false;
            }

            if (spell.Name.Contains("RivenTriCleave"))
            {
                Queuer.remove("Q");
                LastQ            = Environment.TickCount;
                LastPassive      = Environment.TickCount;
                LastECancelSpell = Environment.TickCount + 50;
                if (PassiveStacks <= 2)
                {
                    PassiveStacks = PassiveStacks + 1;
                }

                if (QCount <= 1)
                {
                    LastQ2 = Environment.TickCount;
                    QCount = QCount + 1;
                }
                else if (QCount == 2)
                {
                    QCount = 0;
                }
                Utility.DelayAction.Add(350, Orbwalking.ResetAutoAttackTimer);
                Utility.DelayAction.Add(40, () => SH.animCancel(StateHandler.Target));

                MidQ           = true;
                CanMove        = false;
                CanQ           = false;
                FullComboState = 0;
                BurstFinished  = true;
            }

            if (spell.Name.Contains("RivenMartyr"))
            {
                Queuer.remove("W");
                Utility.DelayAction.Add(40, () => SH.animCancel(StateHandler.Target));
                LastW            = Environment.TickCount;
                LastPassive      = Environment.TickCount;
                LastECancelSpell = Environment.TickCount + 50;
                LastTiamatCancel = Environment.TickCount + (int)ObjectManager.Player.AttackCastDelay;
                if (LastPassive <= 2)
                {
                    PassiveStacks = PassiveStacks + 1;
                }
                MidW           = true;
                CanW           = false;
                FullComboState = 2;
            }

            if (spell.Name.Contains("RivenFeint"))
            {
                Queuer.remove("E");
                Queuer.EPos      = new Vector3();
                LastE            = Environment.TickCount;
                PassiveStacks    = Environment.TickCount;
                LastTiamatCancel = Environment.TickCount + 50;

                if (LastPassive <= 2)
                {
                    PassiveStacks = PassiveStacks + 1;
                }

                MidE = true;
                CanE = false;
            }

            if (spell.Name.Contains("RivenFengShuiEngine"))
            {
                Queuer.remove("R");
                if (MenuHandler.Config.Item("autoCancelR1").GetValue <bool>())
                {
                    Queuer.add("E", Game.CursorPos);
                }
                LastFr           = Environment.TickCount;
                LastPassive      = Environment.TickCount;
                LastECancelSpell = Environment.TickCount + 50;

                if (PassiveStacks <= 2)
                {
                    PassiveStacks = PassiveStacks + 1;
                }

                RState         = true;
                FullComboState = 1;
            }

            if (spell.Name.Contains("rivenizunablade"))
            {
                Queuer.remove("R2");
                if (MenuHandler.Config.Item("autoCancelR1").GetValue <bool>())
                {
                    Queuer.add("Q");
                }
                Queuer.R2Target = null;
                LastPassive     = Environment.TickCount;

                if (PassiveStacks <= 2)
                {
                    PassiveStacks = PassiveStacks + 1;
                }
                LastR2         = Environment.TickCount;
                RState         = false;
                CanSr          = false;
                FullComboState = 3;
            }
        }
Esempio n. 5
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");
                }
            }
        }