Beispiel #1
0
        public static void Flee()
        {
            Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);

            var random = new Random().Next(500);

            if (SpellHandler.LastMove + 200 + random < Environment.TickCount && MenuHandler.Config.Item("streamMouse").GetValue <bool>())
            {
                SpellHandler.LastMove = Environment.TickCount;
                SmoothMouse.doMouseClick();
            }

            if (SH.Spells[SpellSlot.E].IsReady() && CH.LastQ + 250 < Environment.TickCount &&
                MenuHandler.GetMenuBool("EFlee"))
            {
                SH.CastE(Game.CursorPos);
            }

            if ((!SH.Spells[SpellSlot.Q].IsReady() || CH.LastE + 250 >= Environment.TickCount ||
                 !MenuHandler.GetMenuBool("QFlee")))
            {
                return;
            }

            if ((MenuHandler.Config.Item("Ward Mechanic").GetValue <bool>() && CheckHandler.QCount == 2))
            {
                return;
            }

            SH.CastQ();
        }
Beispiel #2
0
        public static void laneclear()
        {
            var minion = MinionManager.GetMinions(Player.Position, SH.QRange).FirstOrDefault();

            if (HealthPrediction.GetHealthPrediction(minion, (int)(ObjectManager.Player.AttackCastDelay * 1000)) > 0 &&
                Player.GetAutoAttackDamage(minion) >
                HealthPrediction.GetHealthPrediction(minion, (int)(ObjectManager.Player.AttackCastDelay * 1000)))
            {
                SH.Orbwalk(minion);
            }


            if (SH._spells[SpellSlot.W].IsReady() && MenuHandler.getMenuBool("WWC") && CH.CanW && Environment.TickCount - CH.LastE >= 250 && minion.IsValidTarget(SH._spells[SpellSlot.W].Range) && SH._spells[SpellSlot.W].GetDamage(minion) > minion.Health)
            {
                SH.CastW();
                SH.castItems(minion);
            }

            if (SH._spells[SpellSlot.Q].IsReady() && MenuHandler.getMenuBool("QWC") && Environment.TickCount - CH.LastE >= 250 && (SH._spells[SpellSlot.Q].GetDamage(minion) + Player.GetAutoAttackDamage(minion) > minion.Health && MenuHandler.getMenuBool("QWC-AA")) || (SH._spells[SpellSlot.Q].GetDamage(minion) > minion.Health && MenuHandler.getMenuBool("QWC-LH")))
            {
                if (minion.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(minion);
                }
            }
        }
Beispiel #3
0
        public static void LastHit()
        {
            var minion = MinionManager.GetMinions(Player.Position, SH.QRange).FirstOrDefault();

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

            if (minion == null)
            {
                return;
            }

            if (SH.Spells[SpellSlot.W].IsReady() && MenuHandler.GetMenuBool("WLH") && CH.CanW &&
                Environment.TickCount - CH.LastE >= 250 && minion.IsValidTarget(SH.Spells[SpellSlot.W].Range) &&
                SH.Spells[SpellSlot.W].GetDamage(minion) > minion.Health)
            {
                SH.CastW();
            }

            if (SH.Spells[SpellSlot.Q].IsReady() && MenuHandler.GetMenuBool("QLH") &&
                Environment.TickCount - CH.LastE >= 250 && (SH.Spells[SpellSlot.Q].GetDamage(minion) > minion.Health))
            {
                if (minion.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(minion);
                }
            }
        }
Beispiel #4
0
        public static void JungleFarm()
        {
            var minion =
                MinionManager.GetMinions(
                    Player.Position, 600, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth)
                .FirstOrDefault();

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

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

            if (CH.LastTiamatCancel < Environment.TickCount)
            {
                CH.LastTiamatCancel = int.MaxValue;
                SH.CastItems(Target);
            }

            SH.Orbwalk(minion);
            if (SH.Spells[SpellSlot.E].IsReady() && CH.CanE && MenuHandler.GetMenuBool("EJ"))
            {
                if (minion.IsValidTarget(SH.Spells[SpellSlot.E].Range))
                {
                    if (minion != null)
                    {
                        SH.Spells[SpellSlot.E].Cast(minion.Position);
                    }
                }
            }

            if (SH.Spells[SpellSlot.W].IsReady() && CH.CanW && Environment.TickCount - CH.LastE >= 250 &&
                minion.IsValidTarget(SH.Spells[SpellSlot.W].Range) && MenuHandler.GetMenuBool("WJ"))
            {
                SH.CastW();
            }

            SH.CastItems(minion);
            if (SH.Spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 250 &&
                MenuHandler.GetMenuBool("QJ"))
            {
                if (minion.IsValidTarget(SH.QRange) && CH.CanMove)
                {
                    SH.CastQ(minion);
                }
            }
        }
Beispiel #5
0
        public static void flee()
        {
            Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);

            if (SH._spells[SpellSlot.E].IsReady() && Environment.TickCount - CH.LastQ >= 250 && MenuHandler.getMenuBool("EFlee"))
            {
                SH.CastE(Game.CursorPos);
            }

            if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 250 && MenuHandler.getMenuBool("QFlee"))
            {
                SH.CastQ();
            }
        }
Beispiel #6
0
        private static void Qr()
        {
            if (!S.Spells[SpellSlot.Q].IsReady() || C.RState)
            {
                Queue.Remove("R");
                return;
            }

            if (S.Spells[SpellSlot.R].IsReady())
            {
                S.CastR();
                SmoothMouse.addMouseEvent(Player.Position.Extend(Game.CursorPos, 300), false);
            }
        }
Beispiel #7
0
        public static void Laneclear()
        {
            var minion = MinionManager.GetMinions(Player.Position, SH.QRange).FirstOrDefault();

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

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

            if (CH.LastTiamatCancel < Environment.TickCount)
            {
                CH.LastTiamatCancel = int.MaxValue;
                SH.CastItems(Target);
            }

            if (HealthPrediction.GetHealthPrediction(minion, (int)(ObjectManager.Player.AttackCastDelay * 1000)) > 0 &&
                Player.GetAutoAttackDamage(minion) >
                HealthPrediction.GetHealthPrediction(minion, (int)(ObjectManager.Player.AttackCastDelay * 1000)))
            {
                SH.Orbwalk(minion);
            }

            if (minion != null && (SH.Spells[SpellSlot.W].IsReady() && MenuHandler.GetMenuBool("WWC") && CH.CanW &&
                                   Environment.TickCount - CH.LastE >= 250 &&
                                   minion.IsValidTarget(SH.Spells[SpellSlot.W].Range) &&
                                   SH.Spells[SpellSlot.W].GetDamage(minion) > minion.Health))
            {
                SH.CastW();
            }

            if (minion != null && (SH.Spells[SpellSlot.Q].IsReady() && MenuHandler.GetMenuBool("QWC") &&
                                   Environment.TickCount - CH.LastE >= 250 &&
                                   (SH.Spells[SpellSlot.Q].GetDamage(minion) + Player.GetAutoAttackDamage(minion) >
                                    minion.Health &&
                                    MenuHandler.GetMenuBool("QWC-AA")) ||
                                   (SH.Spells[SpellSlot.Q].GetDamage(minion) > minion.Health &&
                                    MenuHandler.GetMenuBool("QWC-LH"))))
            {
                if (minion.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(minion);
                }
            }
        }
Beispiel #8
0
        public static void Harass()
        {
            SH.Orbwalk(Target);
            if (Queuer.Queue.Count > 0 || !Target.IsValidTarget())
            {
                return;
            }

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

            if (MenuHandler.GetMenuBool("HQAA3WE") && SH.Spells[SpellSlot.Q].IsReady() && SH.Spells[SpellSlot.W].IsReady() && SH.Spells[SpellSlot.E].IsReady() &&
                Target.IsValidTarget(SH.QRange))
            {
                for (int i = 0; i < 3 - CH.QCount; i++)
                {
                    AddQaa();
                }
                Queuer.Add("W");
            }

            if (MenuHandler.GetMenuBool("HW") && SH.Spells[SpellSlot.W].IsReady() && Target.IsValidTarget(SH.WRange))
            {
                Queuer.Add("W");
                Queuer.Add("Hydra");
                return;
            }

            if (MenuHandler.GetMenuBool("HQ") && SH.Spells[SpellSlot.Q].IsReady() && Target.IsValidTarget(SH.QRange))
            {
                AddQaa();
                return;
            }


            if (false && MenuHandler.GetMenuBool("HE") && !SH.Spells[SpellSlot.Q].IsReady() && !SH.Spells[SpellSlot.W].IsReady())
            {
                Queuer.Add("E", Player.Position.Extend(Target.Position, -SH.Spells[SpellSlot.E].Range));
            }
        }
Beispiel #9
0
        public static void flee()
        {
            Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);

            if (SH._spells[SpellSlot.E].IsReady() && CH.LastQ + 250 < Environment.TickCount && MenuHandler.getMenuBool("EFlee"))
            {
                SH.CastE(Game.CursorPos);
            }

            if ((SH._spells[SpellSlot.Q].IsReady() && CH.LastE + 250 < Environment.TickCount && MenuHandler.getMenuBool("QFlee")))
            {
                if ((MenuHandler.Config.Item("Ward Mechanic").GetValue <bool>() && CheckHandler.QCount == 2))
                {
                    return;
                }
                SH.CastQ();
            }
        }
Beispiel #10
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();
        }
Beispiel #11
0
        private static void Qe()
        {
            if (!CheckHandler.MidAa)
            {
                return;
            }

            if (!S.Spells[SpellSlot.E].IsReady() || !EPos.IsValid())
            {
                Queue.Remove("E");
                return;
            }

            if (S.Spells[SpellSlot.E].IsReady())
            {
                S.CastE(StateHandler.Target.IsValidTarget() ? StateHandler.Target.Position : EPos);
                SmoothMouse.addMouseEvent(StateHandler.Target.IsValidTarget() ? StateHandler.Target.Position : EPos, false);
            }
        }
Beispiel #12
0
        private static void Qq()
        {
            if (!CheckHandler.MidAa)
            {
                return;
            }

            if (!S.Spells[SpellSlot.Q].IsReady())
            {
                Queue.Remove("Q");
                return;
            }

            if (S.Spells[SpellSlot.Q].IsReady())
            {
                S.CastQ(StateHandler.Target);
                SmoothMouse.addMouseEvent(Player.Position.Extend(Game.CursorPos, 300));
            }
        }
Beispiel #13
0
 public static void qE()
 {
     if (
         !(Environment.TickCount >=
           C.LastAa + ObjectManager.Player.AttackCastDelay * 1000 + Game.Ping / 3 +
           MenuHandler.Config.Item("bonusCancelDelay").GetValue <Slider>().Value))
     {
         return;
     }
     if (!S._spells[SpellSlot.E].IsReady() || !EPos.IsValid())
     {
         Queue.Remove("E");
         return;
     }
     if (S._spells[SpellSlot.E].IsReady())
     {
         S.CastE(StateHandler.Target.IsValidTarget() ? StateHandler.Target.Position : EPos);
     }
 }
Beispiel #14
0
 public static void qQ()
 {
     if (
         !(Environment.TickCount >=
           C.LastAa + ObjectManager.Player.AttackCastDelay * 1000 + Game.Ping / 3 +
           MenuHandler.Config.Item("bonusCancelDelay").GetValue <Slider>().Value))
     {
         return;
     }
     if (!S._spells[SpellSlot.Q].IsReady() && Environment.TickCount > C.LastQ + 300)
     {
         Queue.Remove("Q");
         return;
     }
     if (S._spells[SpellSlot.Q].IsReady())
     {
         S.CastQ(StateHandler.Target);
     }
 }
Beispiel #15
0
        private static void Qw()
        {
            if (!CheckHandler.MidAa)
            {
                return;
            }

            if (!S.Spells[SpellSlot.W].IsReady())
            {
                Queue.Remove("W");
                return;
            }

            if (S.Spells[SpellSlot.W].IsReady())
            {
                S.CastW(StateHandler.Target);
                SmoothMouse.addMouseEvent(Game.CursorPos);
            }
        }
        static void Game_OnGameUpdate(EventArgs args)
        {
            CheckHandler.Checks();
            var Config = MenuHandler.Config;

            if (MenuHandler.getMenuBool("keepQAlive") && SH._spells[SpellSlot.Q].IsReady() && CheckHandler.QCount >= 1 && Environment.TickCount - CheckHandler.LastQ > 3650 && !Player.IsRecalling())
            {
                SH.CastQ();
            }

            if (Config.Item("normalCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.mainCombo();
            }
            else
            {
                StateHandler.startedR2Combo.state = false;
                StateHandler.startedRCombo.state  = false;
            }
            if (Config.Item("burstCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.burstCombo();
            }
            if (Config.Item("jungleCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.JungleFarm();
            }
            if (Config.Item("waveClear").GetValue <KeyBind>().Active)
            {
                StateHandler.laneclear();
            }
            if (Config.Item("lastHit").GetValue <KeyBind>().Active)
            {
                StateHandler.lastHit();
            }
            if (Config.Item("flee").GetValue <KeyBind>().Active)
            {
                StateHandler.flee();
            }
        }
Beispiel #17
0
        public static void JungleFarm()
        {
            var minion =
                MinionManager.GetMinions(Player.Position, SH.QRange, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth).FirstOrDefault();

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

            SH.Orbwalk(minion);

            SH.animCancel(minion);

            if (SH._spells[SpellSlot.E].IsReady() && CH.CanE && MenuHandler.getMenuBool("EJ"))
            {
                if (minion.IsValidTarget(SH._spells[SpellSlot.E].Range))
                {
                    SH._spells[SpellSlot.E].Cast(minion.Position);
                }
            }

            if (SH._spells[SpellSlot.W].IsReady() && CH.CanW && Environment.TickCount - CH.LastE >= 250 && minion.IsValidTarget(SH._spells[SpellSlot.W].Range) && MenuHandler.getMenuBool("WJ"))
            {
                SH.CastW();
                SH.castItems(minion);
            }
            SH.castItems(minion);
            if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 250 && MenuHandler.getMenuBool("QJ"))
            {
                if (minion.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(minion);
                    return;
                }
            }
        }
Beispiel #18
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (MenuHandler.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.None && MenuHandler.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo && MenuHandler.Config.Item("streamMouse").GetValue <bool>())
            {
                var random = new Random().Next(500);
                if (SpellHandler.LastMove + 200 + random < Environment.TickCount && CheckHandler.CanMove)
                {
                    SpellHandler.LastMove = Environment.TickCount;
                    SmoothMouse.doMouseClick();
                }
            }
            if (Queuer.Queue.Count > 0)
            {
                Queuer.DoQueue();
            }

            if (MenuHandler.Config.Item("logPos").GetValue <bool>())
            {
                JumpHandler.AddPos();
                MenuHandler.Config.Item("logPos").SetValue(false);
            }

            if (MenuHandler.Config.Item("printPos").GetValue <bool>())
            {
                JumpHandler.PrintToConsole();
                MenuHandler.Config.Item("printPos").SetValue(false);
            }

            if (MenuHandler.Config.Item("clearCurrent").GetValue <bool>())
            {
                JumpHandler.ClearCurrent();
                MenuHandler.Config.Item("clearCurrent").SetValue(false);
            }

            if (MenuHandler.Config.Item("clearPrevious").GetValue <bool>())
            {
                JumpHandler.ClearPrevious();
                MenuHandler.Config.Item("clearPrevious").SetValue(false);
            }

            CheckHandler.Checks();
            var config = MenuHandler.Config;


            if (MenuHandler.GetMenuBool("keepQAlive") && SH.Spells[SpellSlot.Q].IsReady() && CheckHandler.QCount >= 1 &&
                Environment.TickCount - CheckHandler.LastQ > 3650 && !Player.IsRecalling())
            {
                SH.CastQ();
            }
            if (config.Item("jungleCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.JungleFarm();
            }
            if (config.Item("harass").GetValue <KeyBind>().Active)
            {
                StateHandler.Harass();
            }
            else if (config.Item("normalCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.MainCombo();
            }

            else if (config.Item("burstCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.BurstCombo();
            }
            else if (config.Item("waveClear").GetValue <KeyBind>().Active)
            {
                StateHandler.Laneclear();
            }
            else if (config.Item("lastHit").GetValue <KeyBind>().Active)
            {
                StateHandler.LastHit();
            }
            else if (config.Item("flee").GetValue <KeyBind>().Active)
            {
                StateHandler.Flee();
            }
            else
            {
                MenuHandler.Orbwalker.SetAttack(true);
                MenuHandler.Orbwalker.SetMovement(true);
                SmoothMouse.queuePos.Clear();
                Utility.DelayAction.Add(
                    2000, () =>
                {
                    if (
                        !(config.Item("flee").GetValue <KeyBind>().Active ||
                          config.Item("lastHit").GetValue <KeyBind>().Active ||
                          config.Item("waveClear").GetValue <KeyBind>().Active ||
                          config.Item("burstCombo").GetValue <KeyBind>().Active ||
                          config.Item("normalCombo").GetValue <KeyBind>().Active ||
                          config.Item("jungleCombo").GetValue <KeyBind>().Active))
                    {
                        Queuer.Queue = new List <string>();
                    }
                });
            }
        }
Beispiel #19
0
        public static void mainCombo()
        {
            SH.Orbwalk(Target);
            var useR = true;

            if (SH._spells[SpellSlot.R].IsReady() && CH.RState && MenuHandler.getMenuBool("CR2"))
            {
                if (SH._spells[SpellSlot.R].GetDamage(Target) > Target.Health)
                {
                    SH.CastR2(Target);
                }
            }

            if (useR && CH.RState)
            {
                if (MenuHandler.getMenuBool("QWR2KS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.Q].IsReady() &&
                    SH._spells[SpellSlot.Q].GetDamage(Target) + (CH.RState && SH._spells[SpellSlot.R].IsReady() ? SH._spells[SpellSlot.R].GetDamage(Target) : 0) >
                    Target.Health)
                {
                    SH.CastQ(Target);
                    Utility.DelayAction.Add(250, () => SH.CastW());
                    Utility.DelayAction.Add(515, () => SH.CastR2(Target));
                }
                else if (MenuHandler.getMenuBool("QR2KS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.Q].IsReady() &&
                         SH._spells[SpellSlot.Q].GetDamage(Target) + (CH.RState && SH._spells[SpellSlot.R].IsReady() ? SH._spells[SpellSlot.R].GetDamage(Target) : 0) > Target.Health)
                {
                    SH.CastQ(Target);
                    Utility.DelayAction.Add(515, () => SH.CastR2(Target));
                }
                else if (MenuHandler.getMenuBool("WR2KS") && Target.IsValidTarget(SH.WRange) && CH.CanW && SH._spells[SpellSlot.W].IsReady() &&
                         SH._spells[SpellSlot.W].GetDamage(Target) + (CH.RState && SH._spells[SpellSlot.R].IsReady() ? SH._spells[SpellSlot.R].GetDamage(Target) : 0) > Target.Health)
                {
                    SH.CastW();
                    Utility.DelayAction.Add(515, () => SH.CastR2(Target));
                }
            }
            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)
                {
                    SH.CastQ(Target);
                    Utility.DelayAction.Add(250, () => SH.CastW());
                }
                else if (MenuHandler.getMenuBool("QKS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.Q].IsReady() && SH._spells[SpellSlot.Q].GetDamage(Target) > Target.Health)
                {
                    SH.CastQ(Target);
                }
                else if (MenuHandler.getMenuBool("WKS") && Target.IsValidTarget(SH.WRange) && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.W].GetDamage(Target) > Target.Health)
                {
                    SH.CastW();
                }
            }

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

            SH.animCancel(Target);

            if (MenuHandler.getMenuBool("CE") && SH._spells[SpellSlot.E].IsReady() && CH.CanE)
            {
                if (MenuHandler.getMenuBool("UseE-GC") && !MenuHandler.getMenuBool("UseE-AA"))
                {
                    if (!Target.IsValidTarget(SH._spells[SpellSlot.E].Range - BonusRange + 50) &&
                        Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange))
                    {
                        SH.CastE(Target.Position);
                    }
                    else 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))
                    {
                        SH.CastE(Target.Position);
                    }
                }
                else if (Target.Distance(Player) > Orbwalking.GetRealAutoAttackRange(Player))
                {
                    SH.CastE(Target.Position);
                }
            }

            SH.castItems(Target);

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

            if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 250 && MenuHandler.getMenuBool("CQ"))
            {
                if (Target.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(Target);
                    return;
                }
                if (!Target.IsValidTarget(BonusRange + 50) && Target.IsValidTarget(SH.QRange) && CH.CanQ && MenuHandler.getMenuBool("UseQ-GC"))
                {
                    SH.CastQ(Target);
                }
            }
        }
Beispiel #20
0
        public static void burstCombo()
        {
            SH.Orbwalk(Target);

            if (!Target.IsValidTarget())
            {
                return;
            }
            var BonusRange = Orbwalking.GetRealAutoAttackRange(Player) + (Target.BoundingRadius / 2) - 50;

            burstFinished = !(SH._spells[SpellSlot.Q].IsReady() && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady());

            if (!burstFinished || CH.FullComboState != 0)
            {
                if (SH.SummonerDictionary[SH.summonerSpell.Flash].IsReady() && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && !CH.RState && !Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange) &&
                    Target.IsValidTarget(SH._spells[SpellSlot.E].Range + 400 + BonusRange) && MenuHandler.getMenuBool("BFL"))
                {
                    SH.CastE(Target.Position);
                    Utility.DelayAction.Add(200, SH.CastR);
                    Utility.DelayAction.Add(250, () => SH.castFlash(Target.Position));
                }
                if (Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange) && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && !CH.RState)
                {
                    SH.CastE(Target.Position);
                    Utility.DelayAction.Add(250, SH.CastR);
                }
                switch (CH.FullComboState)
                {
                case 1:
                {
                    if (!Target.IsValidTarget(SH._spells[SpellSlot.W].Range))
                    {
                        return;
                    }
                    SH.CastW();
                    SH.castItems(Target);
                }
                break;

                case 2:
                {
                    CH.FullComboState = 3;
                }
                break;

                case 3:
                {
                    SH.CastQ(Target);
                }
                break;
                }
                return;
            }

            if (SH._spells[SpellSlot.R].GetDamage(Target) > Target.Health && CH.RState && SH._spells[SpellSlot.R].IsReady())
            {
                SH.CastR2(Target);
            }

            SH.animCancel(Target);

            if (SH._spells[SpellSlot.E].IsReady() && CH.CanE)
            {
                if (!Target.IsValidTarget(SH._spells[SpellSlot.E].Range - BonusRange + 50) && Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange))
                {
                    SH.CastE(Target.Position);
                }
                else 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))
                {
                    SH.CastE(Target.Position);
                }
            }


            if (SH._spells[SpellSlot.W].IsReady() && CH.CanW && Environment.TickCount - CH.LastE >= 250 && Target.IsValidTarget(SH._spells[SpellSlot.W].Range))
            {
                SH.CastW();
            }

            SH.castItems(Target);

            if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 250)
            {
                if (Target.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(Target);
                    return;
                }
                if (!Target.IsValidTarget(BonusRange + 50) && Target.IsValidTarget(SH.QRange))
                {
                    SH.CastQ(Target);
                }
            }
        }
Beispiel #21
0
        public static void burstCombo()
        {
            SH.Orbwalk(Target);

            if (!Target.IsValidTarget())
            {
                return;
            }
            var BonusRange = Orbwalking.GetRealAutoAttackRange(Player) + (Target.BoundingRadius / 2) - 50;

            if (SH.SummonerDictionary[SH.summonerSpell.Flash].IsReady() && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && !CH.RState && !Target.IsValidTarget(SH._spells[SpellSlot.E].Range) &&
                Target.IsValidTarget(SH._spells[SpellSlot.E].Range + 400) && MenuHandler.getMenuBool("BFl") || startJump1)
            {
                startJump1 = true;
                if (SH._spells[SpellSlot.E].IsReady())
                {
                    SH.CastE(Target.Position);
                }
                if (Environment.TickCount - CH.LastE >= 200)
                {
                    SH.CastR();
                }
                if (Environment.TickCount - CH.LastFR >= 250 && Environment.TickCount - CH.LastFR < 1000)
                {
                    SH.castFlash(Target.Position);
                    startJump1 = false;
                }
                return;
            }
            if (Target.IsValidTarget(SH._spells[SpellSlot.E].Range) && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && !CH.RState || startJump2)
            {
                startJump2 = true;
                if (SH._spells[SpellSlot.E].IsReady())
                {
                    SH.CastE(Target.Position);
                }
                if (Environment.TickCount - CH.LastE >= 250)
                {
                    SH.CastR();
                    startJump2 = false;
                }
                return;
            }

            switch (CH.FullComboState)
            {
            case 1:
            {
                if (!Target.IsValidTarget(SH._spells[SpellSlot.W].Range))
                {
                    return;
                }
                SH.CastW();
                SH.castItems(Target);
            }
            break;

            case 2:
            {
                CH.FullComboState = 3;
            }
            break;

            case 3:
            {
                SH.CastQ(Target);
            }
            break;
            }


            if (SH._spells[SpellSlot.R].IsReady() && SH._spells[SpellSlot.R].GetDamage(Target) + (SH._spells[SpellSlot.Q].IsReady() && Target.IsValidTarget(SH.QRange) ? SH._spells[SpellSlot.Q].GetDamage(Target) : 0) > Target.Health || startedR2Combo)
            {
                startedR2Combo = true;
                if (CH.RState)
                {
                    SH.CastR2(Target);
                    if (!SH._spells[SpellSlot.Q].IsReady() || !Target.IsValidTarget(SH.QRange))
                    {
                        startedR2Combo = false;
                    }
                }
                if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.lastR2 >= 100)
                {
                    SH.CastQ(Target);
                    startedR2Combo = false;
                }
                return;
            }

            SH.animCancel(Target);

            if (SH._spells[SpellSlot.E].IsReady() && CH.CanE)
            {
                if (!Target.IsValidTarget(SH._spells[SpellSlot.E].Range - BonusRange + 50) && Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange))
                {
                    SH.CastE(Target.Position);
                }
                else 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))
                {
                    SH.CastE(Target.Position);
                }
            }


            if (SH._spells[SpellSlot.W].IsReady() && CH.CanW && Environment.TickCount - CH.LastE >= 250 && Target.IsValidTarget(SH._spells[SpellSlot.W].Range))
            {
                SH.CastW();
            }

            SH.castItems(Target);

            if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 250)
            {
                if (Target.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(Target);
                    return;
                }
                if (!Target.IsValidTarget(BonusRange + 50) && Target.IsValidTarget(SH.QRange))
                {
                    SH.CastQ(Target);
                }
            }
        }
Beispiel #22
0
        public static void mainCombo()
        {
            SH.Orbwalk(Target);

            if (MenuHandler.getMenuBool("CR"))
            {
                if (SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() &&
                    SH._spells[SpellSlot.Q].IsReady() &&
                    (ItemData.Tiamat_Melee_Only.GetItem().IsReady() ||
                     ItemData.Ravenous_Hydra_Melee_Only.GetItem().IsReady()) &&
                    Target.Distance(Player) < SH._spells[SpellSlot.E].Range + SH.QRange &&
                    (SH._spells[SpellSlot.Q].GetDamage(Target) * 3 + SH._spells[SpellSlot.W].GetDamage(Target) +
                     Player.GetAutoAttackDamage(Target) * 3 + SH._spells[SpellSlot.R].GetDamage(Target) > Target.Health) ||
                    startedRCombo)
                {
                    startedRCombo = true;
                    SH.CastE(Target.Position);
                    if (Environment.TickCount - CH.LastE >= 100)
                    {
                        if (ItemData.Tiamat_Melee_Only.GetItem().IsReady())
                        {
                            ItemData.Tiamat_Melee_Only.GetItem().Cast();
                            CH.lastTiamat = Environment.TickCount;
                        }
                        if (ItemData.Ravenous_Hydra_Melee_Only.GetItem().IsReady())
                        {
                            ItemData.Ravenous_Hydra_Melee_Only.GetItem().Cast();
                            CH.lastTiamat = Environment.TickCount;
                        }
                    }
                    if (Environment.TickCount - CH.lastTiamat >= 100)
                    {
                        SH.CastR();
                    }
                    if (Environment.TickCount - CH.LastFR >= 100)
                    {
                        SH.CastQ(Target);
                        startedRCombo = false;
                    }
                    return;
                }

                if (SH._spells[SpellSlot.Q].GetDamage(Target) * 3 + SH._spells[SpellSlot.W].GetDamage(Target) +
                    Player.GetAutoAttackDamage(Target) * 3 + SH._spells[SpellSlot.R].GetDamage(Target) > Target.Health)
                {
                    if (SH._spells[SpellSlot.E].IsReady())
                    {
                        SH.CastE(Target.Position);
                    }
                    if (SH._spells[SpellSlot.R].IsReady() && Environment.TickCount - CH.LastE >= 200)
                    {
                        SH.CastR();
                    }
                }
            }

            if (SH._spells[SpellSlot.R].IsReady() && CH.RState && MenuHandler.getMenuBool("CR2") && SH._spells[SpellSlot.R].GetDamage(Target) + (SH._spells[SpellSlot.Q].IsReady() && Target.IsValidTarget(SH.QRange) ? SH._spells[SpellSlot.Q].GetDamage(Target) : 0) > Target.Health || startedR2Combo)
            {
                startedR2Combo = true;
                if (CH.RState)
                {
                    SH.CastR2(Target);
                    if (!SH._spells[SpellSlot.Q].IsReady() || !Target.IsValidTarget(SH.QRange))
                    {
                        startedR2Combo = false;
                    }
                }
                if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.lastR2 >= 100)
                {
                    SH.CastQ(Target);
                    startedR2Combo = false;
                }
                return;
            }

            if (CH.RState)
            {
                if (MenuHandler.getMenuBool("QWR2KS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.Q].IsReady() &&
                    SH._spells[SpellSlot.Q].GetDamage(Target) + (CH.RState && SH._spells[SpellSlot.R].IsReady() ? SH._spells[SpellSlot.R].GetDamage(Target) : 0) >
                    Target.Health)
                {
                    SH.CastQ(Target);
                    Utility.DelayAction.Add(250, () => SH.CastW());
                    Utility.DelayAction.Add(515, () => SH.CastR2(Target));
                }
                else if (MenuHandler.getMenuBool("QR2KS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.Q].IsReady() &&
                         SH._spells[SpellSlot.Q].GetDamage(Target) + (CH.RState && SH._spells[SpellSlot.R].IsReady() ? SH._spells[SpellSlot.R].GetDamage(Target) : 0) > Target.Health)
                {
                    SH.CastQ(Target);
                    Utility.DelayAction.Add(515, () => SH.CastR2(Target));
                }
                else if (MenuHandler.getMenuBool("WR2KS") && Target.IsValidTarget(SH.WRange) && CH.CanW && SH._spells[SpellSlot.W].IsReady() &&
                         SH._spells[SpellSlot.W].GetDamage(Target) + (CH.RState && SH._spells[SpellSlot.R].IsReady() ? SH._spells[SpellSlot.R].GetDamage(Target) : 0) > Target.Health)
                {
                    SH.CastW();
                    Utility.DelayAction.Add(515, () => SH.CastR2(Target));
                }
            }
            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)
                {
                    SH.CastQ(Target);
                    Utility.DelayAction.Add(250, () => SH.CastW());
                }
                else if (MenuHandler.getMenuBool("QKS") && Target.IsValidTarget(SH.QRange) && SH._spells[SpellSlot.Q].IsReady() && SH._spells[SpellSlot.Q].GetDamage(Target) > Target.Health)
                {
                    SH.CastQ(Target);
                }
                else if (MenuHandler.getMenuBool("WKS") && Target.IsValidTarget(SH.WRange) && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.W].GetDamage(Target) > Target.Health)
                {
                    SH.CastW();
                }
            }

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

            SH.animCancel(Target);

            if (MenuHandler.getMenuBool("CE") && SH._spells[SpellSlot.E].IsReady() && CH.CanE)
            {
                if (MenuHandler.getMenuBool("UseE-GC") && !MenuHandler.getMenuBool("UseE-AA"))
                {
                    if (!Target.IsValidTarget(SH._spells[SpellSlot.E].Range - BonusRange + 50) &&
                        Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange))
                    {
                        SH.CastE(Target.Position);
                    }
                    else 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))
                    {
                        SH.CastE(Target.Position);
                    }
                }
                else if (Target.Distance(Player) > Orbwalking.GetRealAutoAttackRange(Player))
                {
                    SH.CastE(Target.Position);
                }
            }

            SH.castItems(Target);

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

            if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 100 && MenuHandler.getMenuBool("CQ"))
            {
                if (Target.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(Target);
                    return;
                }
                if (!Target.IsValidTarget(BonusRange + 50) && Target.IsValidTarget(SH.QRange) && CH.CanQ && MenuHandler.getMenuBool("UseQ-GC"))
                {
                    SH.CastQ(Target);
                }
            }
        }
Beispiel #23
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"))
            {
                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;
                SmoothMouse.addMouseEvent(args.Target.Position, true);
            }

            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"))
            {
                RState = true;
                Queuer.Remove("R");
                LastFr           = Environment.TickCount;
                LastPassive      = Environment.TickCount;
                LastECancelSpell = Environment.TickCount + 50;
                if (PassiveStacks <= 2)
                {
                    PassiveStacks = PassiveStacks + 1;
                }

                FullComboState = 1;
            }

            if (spell.Name.Contains("rivenizunablade"))
            {
                RState = false;
                Queuer.Remove("R2");
                Queuer.R2Target = null;
                LastPassive     = Environment.TickCount;
                if (PassiveStacks <= 2)
                {
                    PassiveStacks = PassiveStacks + 1;
                }

                LastR2         = Environment.TickCount;
                CanSr          = false;
                FullComboState = 3;
            }
        }
Beispiel #24
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");
                }
            }
        }
Beispiel #25
0
        public static void BurstCombo()
        {
            SH.Orbwalk(Target);
            if (!Target.IsValidTarget())
            {
                return;
            }

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

            if (MenuHandler.GetMenuBool("flashlessBurst") && Target.IsValidTarget(325 + SH.WRange) &&
                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("Q");
                Queuer.Add("W");
                Queuer.Add("Hydra");
                Queuer.Add("AA");
                Queuer.Add("Q");
                Queuer.Add("R2", Target);
                return;
            }

            // Kyzer 3rd Q Combo
            if (MenuHandler.GetMenuBool("kyzerCombo") && Target.IsValidTarget(400 + 325 + (SH.WRange / 2)) &&
                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");
                return;
            }

            // Shy Combo
            if (MenuHandler.GetMenuBool("shyCombo") && Target.IsValidTarget(400 + 325 + (SH.WRange / 2)) &&
                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");
                Queuer.Add("AA");
                return;
            }

            MainCombo();
        }
Beispiel #26
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
        }
Beispiel #27
0
        static void Game_OnGameUpdate(EventArgs args)
        {
            if (Queuer.Queue.Count > 0)
            {
                Queuer.doQueue();
            }
            if (MenuHandler.Config.Item("logPos").GetValue <bool>())
            {
                JumpHandler.addPos();
                MenuHandler.Config.Item("logPos").SetValue(false);
            }
            if (MenuHandler.Config.Item("printPos").GetValue <bool>())
            {
                JumpHandler.printToConsole();
                MenuHandler.Config.Item("printPos").SetValue(false);
            }
            if (MenuHandler.Config.Item("clearCurrent").GetValue <bool>())
            {
                JumpHandler.clearCurrent();
                MenuHandler.Config.Item("clearCurrent").SetValue(false);
            }
            if (MenuHandler.Config.Item("clearPrevious").GetValue <bool>())
            {
                JumpHandler.clearPrevious();
                MenuHandler.Config.Item("clearPrevious").SetValue(false);
            }

            CheckHandler.Checks();
            var Config = MenuHandler.Config;

            if (Config.Item("jungleCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.JungleFarm();
            }
            if (MenuHandler.getMenuBool("keepQAlive") && SH._spells[SpellSlot.Q].IsReady() && CheckHandler.QCount >= 1 && Environment.TickCount - CheckHandler.LastQ > 3650 && !Player.IsRecalling())
            {
                SH.CastQ();
            }

            if (Config.Item("normalCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.mainCombo();
            }
            if (Config.Item("burstCombo").GetValue <KeyBind>().Active)
            {
                StateHandler.burstCombo();
            }
            else if (Config.Item("waveClear").GetValue <KeyBind>().Active)
            {
                StateHandler.laneclear();
            }
            else if (Config.Item("lastHit").GetValue <KeyBind>().Active)
            {
                StateHandler.lastHit();
            }
            else if (Config.Item("flee").GetValue <KeyBind>().Active)
            {
                StateHandler.flee();
            }
            else
            {
                MenuHandler.Orbwalker.SetAttack(true);
                MenuHandler.Orbwalker.SetMovement(true);
            }
        }
Beispiel #28
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;
            }
        }