예제 #1
0
        public static void DoLaneClear()
        {
            var q    = LaneclearMenu.GetCheckbox("useQ") && Q.IsReady();
            var minQ = LaneclearMenu.GetSlider("minQ");
            var e    = LaneclearMenu.GetCheckbox("useE") && E.IsReady();

            var minionQ = ObjectManager.MinionsAndMonsters.Enemy.Where(x => x.IsValidTarget(Q.Range));
            var qpos    = MinionManager.GetBestLineFarmLocation(minionQ.Select(x => x.Position.To2D()).ToList(), Q.Width, Q.Range);

            foreach (var m in minionQ)
            {
                if (q && qpos.MinionsHit >= minQ)
                {
                    Q.Cast(qpos.Position);
                }
                if (e && E.GetDamage(m) + ObjectManager.Player.GetAutoAttackDamage(m) >= m.Health)
                {
                    if (m.Distance(ObjectManager.Player.Position) > ObjectManager.Player.GetAutoAttackRange(m) && m.IsValidTarget(E.Range + 375))
                    {
                        ObjectManager.Player.Spellbook.CastSpell(SpellSlot.E, m.Position);
                        Orbwalker.ResetAutoAttackTimer();
                        Core.DelayAction(() => ObjectManager.Player.IssueOrder(HesaEngine.SDK.Enums.GameObjectOrder.AttackUnit, m), 100);
                        return;
                    }
                }
            }
        }
예제 #2
0
        private static void Game_OnTick()
        {
            var mana = Me.ManaPercent;

            if (HarassMenu.GetCheckbox("autoE") && mana >= HarassMenu.GetSlider("mana"))
            {
                if (E.IsReady() && !Main._isUlting)
                {
                    var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);
                    if (target != null)
                    {
                        E.Cast(target);
                    }
                }
            }

            if (KillstealMenu.GetCheckbox("enable"))
            {
                Killsteal.DoKs();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Combo && mana >= ComboMenu.GetSlider("mana"))
            {
                Combo.DoCombo();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Harass && mana >= HarassMenu.GetSlider("mana"))
            {
                Harass.DoHarass();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LaneClear && mana >= LaneclearMenu.GetSlider("mana"))
            {
                LaneClear.DoLaneClear();
            }


            //This is a basic fix, due to OnLevelUp being disabled
            if (_currentLevel == Player.Level)
            {
                return;
            }
            Leveler();
            _currentLevel = Player.Level;
        }
예제 #3
0
파일: Main.cs 프로젝트: ShadyBS/Hesaengine
        private static void Game_OnTick()
        {
            var mana = Me.ManaPercent;

            if (EkkoRGhost == null && R.IsReady())
            {
                EkkoRGhost = ObjectManager.Get <Obj_AI_Base>().FirstOrDefault(x => !x.IsEnemy && x.Name.ToLower().Contains("ekko"));
            }

            if (KillstealMenu.GetCheckbox("enable"))
            {
                Killsteal.DoKs();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Combo && mana >= ComboMenu.GetSlider("mana"))
            {
                Combo.DoCombo();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Harass && mana >= HarassMenu.GetSlider("mana"))
            {
                Harass.DoHarass();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LaneClear && mana >= LaneclearMenu.GetSlider("mana"))
            {
                LaneClear.DoLaneClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.JungleClear && mana >= LaneclearMenu.GetSlider("mana"))
            {
                JungleClear.DoJungleClear();
            }


            //This is a basic fix, due to OnLevelUp being disabled
            if (_currentLevel == Player.Level)
            {
                return;
            }
            Leveler();
            _currentLevel = Player.Level;
        }
예제 #4
0
        private static void Game_OnTick()
        {
            var mana = Me.ManaPercent;

            if (KillstealMenu.GetCheckbox("enable"))
            {
                Killsteal.DoKs();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Combo && mana >= ComboMenu.GetSlider("mana"))
            {
                Combo.DoCombo();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Harass && mana >= HarassMenu.GetSlider("mana"))
            {
                Harass.DoHarass();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LaneClear && mana >= LaneclearMenu.GetSlider("mana"))
            {
                LaneClear.DoLaneClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LastHit && mana >= LasthitMenu.GetSlider("mana"))
            {
                LaneClear.DoLaneClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Flee && mana >= FleeMenu.GetSlider("mana"))
            {
                Flee.DoFlee();
            }

            //This is a basic fix, due to OnLevelUp being disabled
            if (_currentLevel == Player.Level)
            {
                return;
            }
            Leveler();
            _currentLevel = Player.Level;
        }
예제 #5
0
		private static void Game_OnTick()
        {
            var mana = Me.ManaPercent;

			if (HarassMenu.GetCheckbox("autoE") && ObjectManager.Me.HealthPercent > HarassMenu.GetSlider("minE") && mana >= HarassMenu.GetSlider("mana"))
			{
				if (E.IsReady())
				{
					var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);
					if (target != null)
					{
						E.CastOnUnit(target);
					}
				}
			}

			if (KillstealMenu.GetCheckbox("enable"))
               Killsteal.DoKs();

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Combo && mana >= ComboMenu.GetSlider("mana"))
                Combo.DoCombo();

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Harass && mana >= HarassMenu.GetSlider("mana"))
                Harass.DoHarass();

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LaneClear && mana >= LaneclearMenu.GetSlider("mana"))
                LaneClear.DoLaneClear();

			if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.JungleClear && mana >= JungleclearMenu.GetSlider("mana"))
				JungleClear.DoJungleClear();

			if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LastHit && mana >= LasthitMenu.GetSlider("mana"))
				LastHit.DoLastHit();


			//This is a basic fix, due to OnLevelUp being disabled
			if (_currentLevel == Player.Level) return;
            Leveler();
            _currentLevel = Player.Level;
        }
예제 #6
0
        private static void Game_OnTick()
        {
            var mana = Me.ManaPercent;

            if (MiscMenu.GetKeybind("manualQ"))
            {
                if (Q.IsReady())
                {
                    AIHeroClient target;
                    target = TargetSelector.GetTarget(QMenu.GetSlider("rangeQ"), TargetSelector.DamageType.Magical);
                    if (MiscMenu.GetCheckbox("useDP"))
                    {
                        var location = LinearPrediction(ObjectManager.Player.Position, Q, (AIHeroClient)target);
                        if (target != null && (target.Distance(ObjectManager.Me) > QMenu.GetSlider("minQ")) && !Functions.HasSpellShield(target) && location != DarkPrediction.empt && !DarkPrediction.CollisionChecker(location, ObjectManager.Me.Position, Q))
                        {
                            Q.Cast(location);
                        }
                    }
                    else
                    {
                        if (target != null && (target.Distance(ObjectManager.Me) > QMenu.GetSlider("minQ")) && !Functions.HasSpellShield(target))
                        {
                            Q.CastIfHitchanceEquals(target, HitChance.VeryHigh);
                        }
                    }
                }
            }
            if (KillstealMenu.GetCheckbox("enable"))
            {
                Killsteal.DoKs();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Combo && mana >= ComboMenu.GetSlider("mana"))
            {
                Combo.DoCombo();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Harass && mana >= HarassMenu.GetSlider("mana"))
            {
                Harass.DoHarass();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LaneClear && mana >= LaneclearMenu.GetSlider("mana"))
            {
                LaneClear.DoLaneClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LastHit && mana >= LasthitMenu.GetSlider("mana"))
            {
                LaneClear.DoLaneClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Flee && mana >= FleeMenu.GetSlider("mana"))
            {
                Flee.DoFlee();
            }

            //This is a basic fix, due to OnLevelUp being disabled
            if (_currentLevel == Player.Level)
            {
                return;
            }
            Leveler();
            _currentLevel = Player.Level;
        }
예제 #7
0
파일: Main.cs 프로젝트: ShadyBS/Hesaengine
        private static void Game_OnTick()
        {
            var mana = Me.ManaPercent;

            if (MiscMenu.GetKeybind("manualEQ") && E.IsReady() && Q.IsReady())
            {
                Q.Cast(ObjectManager.Player.Position.Extend(Game.CursorPosition, Q.Range));
                DoEQ = true;
            }

            if (MiscMenu.GetKeybind("semimanualEQ") && E.IsReady() && Q.IsReady())
            {
                var target = Heroes.Enemies.Where(enemy => enemy.IsValidTarget(EQ.Range)).OrderBy(enemy => enemy.Distance(Game.CursorPosition)).FirstOrDefault();
                var qpos   = DarkPrediction.CirclerPrediction(Q, (AIHeroClient)target, 1);
                if (qpos != DarkPrediction.empt && qpos.Distance(ObjectManager.Player) <= Q.Range)
                {
                    Q.Cast(qpos);
                }
                DoEQ = true;
            }

            if (DoEQ && !E.IsReady())
            {
                DoEQ = false;
            }

            if (KillstealMenu.GetCheckbox("enable"))
            {
                Killsteal.DoKs();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.JungleClear && mana >= JungleclearMenu.GetSlider("mana"))
            {
                JungleClear.DoJungleClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LastHit && mana >= LasthitMenu.GetSlider("mana"))
            {
                LastHit.DoLastHit();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Combo && mana >= ComboMenu.GetSlider("mana"))
            {
                Combo.DoCombo();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Harass && mana >= HarassMenu.GetSlider("mana"))
            {
                Harass.DoHarass();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LaneClear && mana >= LaneclearMenu.GetSlider("mana"))
            {
                LaneClear.DoLaneClear();
            }


            //This is a basic fix, due to OnLevelUp being disabled
            if (_currentLevel == Player.Level)
            {
                return;
            }
            Leveler();
            _currentLevel = Player.Level;
        }