コード例 #1
0
        public static void DoKs()
        {
            var q      = Q.IsReady() && KillstealMenu.GetCheckbox("useQ");
            var e      = E.IsReady() && KillstealMenu.GetCheckbox("useE");
            var r      = R.IsReady() && KillstealMenu.GetCheckbox("useR");
            var ignite = KillstealMenu.GetCheckbox("useIgnite");

            if (ignite)
            {
                Functions.UseIgnite();
            }

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(E.Range) && !x.IsDead && !x.IsZombie))
            {
                if (e && E.GetDamage(enemy) >= enemy.Health)
                {
                    E.Cast(enemy);
                }
            }
            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(Q.Range) && !x.IsDead && !x.IsZombie))
            {
                if (q && Q.GetDamage(enemy) >= enemy.Health)
                {
                    Q.CastIfHitchanceEquals(enemy, HitChance.VeryHigh);
                }
            }
            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(R.Range) && !x.IsDead && !x.IsZombie))
            {
                if (r && !Functions.HasSpellShield(enemy) && !Functions.IsNotKillable(enemy) && R.GetDamage(enemy) >= enemy.Health)
                {
                    R.Cast(enemy);
                }
            }
        }
コード例 #2
0
        public static void DoKs()
        {
            var q      = Q.IsReady() && KillstealMenu.GetCheckbox("useQ");
            var e      = E.IsReady() && KillstealMenu.GetCheckbox("useE");
            var ignite = KillstealMenu.GetCheckbox("useIgnite");

            if (ignite)
            {
                Functions.UseIgnite();
            }

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(E.Range) && !x.IsDead && !x.IsZombie))
            {
                if (e && !Functions.IsNotKillable(enemy) && E.GetDamage(enemy) >= enemy.Health)
                {
                    E.CastOnUnit(enemy);
                }
            }
            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(Q.Range) && !x.IsDead && !x.IsZombie))
            {
                if (q && !Functions.IsNotKillable(enemy) && Q.GetDamage(enemy) >= enemy.Health)
                {
                    var location = LinearPrediction(ObjectManager.Player.Position, Q, (AIHeroClient)enemy);
                    if (enemy != null && (enemy.Distance(ObjectManager.Me) < HarassMenu.GetSlider("maxQ")) && location != DarkPrediction.empt)
                    {
                        Q.Cast(location);
                    }
                }
            }
        }
コード例 #3
0
        public static void DoKs()
        {
            var q = Q.IsReady() && KillstealMenu.GetCheckbox("useQ");

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(Q.Range) && !x.IsDead && !x.IsZombie))
            {
                if (q && Q.GetDamage(enemy) >= enemy.Health)
                {
                    Q.CastOnUnit(enemy);
                }
            }
        }
コード例 #4
0
        public static void DoKs()
        {
            var e = E.IsReady() && KillstealMenu.GetCheckbox("useE");

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(E.Range) && !x.IsDead && !x.IsZombie))
            {
                if (e && E.GetDamage(enemy) >= enemy.Health)
                {
                    E.CastIfHitchanceEquals(enemy, HitChance.VeryHigh);
                }
            }
        }
コード例 #5
0
        public static void DoKs()
        {
            var q = Q.IsReady() && KillstealMenu.GetCheckbox("useQ");
            var w = W.IsReady() && KillstealMenu.GetCheckbox("useW");
            var e = E.IsReady() && KillstealMenu.GetCheckbox("useE");
            var r = R.IsReady() && KillstealMenu.GetCheckbox("useR");

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(W.Range) && !x.IsDead && !x.IsZombie))
            {
                if (w && W.GetDamage(enemy) >= enemy.Health)
                {
                    W.CastIfHitchanceEquals(enemy, HitChance.Medium);
                }
            }
        }
コード例 #6
0
ファイル: Main.cs プロジェクト: ShadyBS/Hesaengine
        private static void Game_OnTick()
        {
            var mana = Me.ManaPercent;

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

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Combo)
            {
                Combo.DoCombo();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Harass)
            {
                Harass.DoHarass();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LaneClear)
            {
                LaneClear.DoLaneClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.JungleClear)
            {
                JungleClear.DoJungleClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LastHit)
            {
                LastHit.DoLastHit();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Flee)
            {
                Flee.DoFlee();
            }

            //This is a basic fix, due to OnLevelUp being disabled
            if (_currentLevel == Player.Level)
            {
                return;
            }
            Leveler();
            _currentLevel = Player.Level;
        }
コード例 #7
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;
        }
コード例 #8
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;
        }
コード例 #9
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;
        }
コード例 #10
0
        public static void DoKs()
        {
            var e = E.IsReady() && KillstealMenu.GetCheckbox("useE");
            var r = R.IsReady() && KillstealMenu.GetCheckbox("useR");

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(E.Range) && !x.IsDead && !x.IsZombie))
            {
                if (e && E.GetDamage(enemy) >= enemy.Health)
                {
                    E.CastOnUnit(enemy);
                }
            }
            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(R.Range) && !x.IsDead && !x.IsZombie))
            {
                if (r && R.GetDamage(enemy) >= enemy.Health)
                {
                    R.Cast();
                }
            }
        }
コード例 #11
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;
        }
コード例 #12
0
        public static void DoKs()
        {
            var q      = Q.IsReady() && KillstealMenu.GetCheckbox("useQ");
            var e      = E.IsReady() && KillstealMenu.GetCheckbox("useE");
            var r      = R.IsReady() && KillstealMenu.GetCheckbox("useR");
            var ignite = KillstealMenu.GetCheckbox("useIgnite");

            if (ignite)
            {
                Functions.UseIgnite();
            }

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(E.Range + 325) && !x.IsDead && !x.IsZombie))
            {
                if (e && E.GetDamage(enemy) >= enemy.Health)
                {
                    E.Cast(enemy.Position);
                    Orbwalker.ResetAutoAttackTimer();
                    Core.DelayAction(() => ObjectManager.Player.IssueOrder(HesaEngine.SDK.Enums.GameObjectOrder.AttackUnit, enemy), 100);
                    return;
                }
            }
            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(Q.Range) && !x.IsDead && !x.IsZombie))
            {
                if (q && Q.GetDamage(enemy) >= enemy.Health)
                {
                    Q.CastIfHitchanceEquals(enemy, HitChance.VeryHigh);
                }
            }
            if (Main.EkkoRGhost != null)
            {
                foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.Distance(Main.EkkoRGhost) <= R.Range && !x.IsDead && !x.IsZombie))
                {
                    if (r && enemy.Distance(Main.EkkoRGhost.Position) <= R.Range && !Functions.HasSpellShield(enemy) && !Functions.IsNotKillable(enemy) && R.GetDamage(enemy) >= enemy.Health)
                    {
                        R.Cast();
                    }
                }
            }
        }
コード例 #13
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;
        }
コード例 #14
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;
        }
コード例 #15
0
        public static void DoKs()
        {
            var q      = Q.IsReady() && KillstealMenu.GetCheckbox("useQ");
            var w      = Q.IsReady() && KillstealMenu.GetCheckbox("useW");
            var r      = R.IsReady() && KillstealMenu.GetCheckbox("useR");
            var ignite = KillstealMenu.GetCheckbox("useIgnite");

            if (ignite)
            {
                Functions.UseIgnite();
            }

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(Q.Range) && !x.IsDead && !x.IsZombie && !Functions.IsNotKillable(x)))
            {
                if (q && Q.GetDamage(enemy) >= enemy.Health)
                {
                    var qpos = DarkPrediction.CirclerPrediction(Q, (AIHeroClient)enemy, 1);
                    if (qpos != DarkPrediction.empt && qpos.Distance(ObjectManager.Player) <= Q.Range)
                    {
                        Q.Cast(qpos);
                    }
                }
            }

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => x.IsValidTarget(W.Range) && !x.IsDead && !x.IsZombie && !Functions.IsNotKillable(x)))
            {
                if (w && !Main.waitW && W.GetDamage(enemy) >= enemy.Health)
                {
                    if (enemy.IsValidTarget(W.Range))
                    {
                        var wpos = DarkPrediction.LinearPrediction(ObjectManager.Player.ServerPosition, W, (AIHeroClient)enemy);
                        if (wpos != DarkPrediction.empt && wpos.Distance(ObjectManager.Player) <= W.Range)
                        {
                            if (W.Instance.ToggleState == 1)                                                                                                                                                 // Not holding
                            {
                                var wball   = Main.MyBalls.Find(ball => ball.Distance(ObjectManager.Player) < W.Range - 25);                                                                                 // Look for ball
                                var wminion = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, W.Range - 25, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.MaxHealth).FirstOrDefault(); //Look for minion
                                if (wball != null && !wball.IsMoving)
                                {
                                    W.Cast(wball);

                                    W.Cast(wminion);
                                }
                                else if (wminion != null)
                                {
                                    //W.CastIfHitchanceEquals(target, HitChance.VeryHigh);
                                }
                            }
                            else                             //holding
                            {
                                //W.CastIfHitchanceEquals(target, HitChance.VeryHigh);
                                W.Cast(DarkPrediction.LinearPrediction(ObjectManager.Player.ServerPosition, W, (AIHeroClient)enemy));
                            }
                        }
                    }
                }
            }

            foreach (var enemy in ObjectManager.Heroes.Enemies.Where(x => KillstealMenu.GetCheckbox("rlist" + x.ChampionName) && x.IsValidTarget(R.Range) && !x.IsDead && !x.IsZombie && !Functions.IsNotKillable(x)))
            {
                if (r && (Main.MyBalls.Count() + 3) * R.GetDamage(enemy) / 3 >= enemy.Health)
                {
                    R.Cast(enemy);
                }
            }
        }
コード例 #16
0
        private static void Game_OnTick()
        {
            //if (_isE)// Gotta check this
            //{
            //	_isEabort = ObjectManager.Player.CountEnemiesInRange(200f);
            //	if (_isEabort < _isEcount)
            //	{
            //		E.Cast();
            //	}
            //	else
            //	{
            //		_isEcount = Player.CountEnemiesInRange(600f);
            //	}
            //}

            if (MiscMenu.Get <MenuKeybind>("SemiR").Active)
            {
                if (R.IsReady() && TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical) != null)
                {
                    R.Cast(TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical), true);
                }
            }

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

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Combo)
            {
                Combo.DoCombo();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Harass)
            {
                Harass.DoHarass();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LaneClear)
            {
                LaneClear.DoLaneClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.JungleClear)
            {
                JungleClear.DoJungleClear();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.LastHit)
            {
                LastHit.DoLastHit();
            }

            if (Orb.ActiveMode == Orbwalker.OrbwalkingMode.Flee)
            {
                Flee.DoFlee();
            }

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