示例#1
0
        private static void OnUpdate(EventArgs args)
        {
            if (ObjectManager.Player.IsDead)
            {
                return;
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                Combo.Execute();
            }

            if (Config.IsChecked("bW") && Spells.W.CanCast() &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("AutoW.minMana"))
            {
                AutoW.Execute();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed &&
                ObjectManager.Player.ManaPercent >= Config.GetSliderValue("Harass.minMana"))
            {
                Harass.Execute();
            }

            if (Config.IsKeyPressed("assistedR"))
            {
                AssistedR.Execute();
            }

            if (Config.IsKeyPressed("fleeBind"))
            {
                Orbwalking.MoveTo(Game.CursorPos);
                Flee.Execute();
            }
        }
示例#2
0
        private static void OnTick(EventArgs args)
        {
            if (Player.Instance.IsDead)
            {
                return;
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo.Execute();
            }

            if (Config.IsChecked(Config.AutoWMenu, "bW") && Spells.W.CanCast() &&
                Player.Instance.ManaPercent >= Config.GetSliderValue(Config.AutoWMenu, "minMana"))
            {
                AutoW.Execute();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) &&
                Player.Instance.ManaPercent >= Config.GetSliderValue(Config.HarassMenu, "minMana"))
            {
                Harass.Execute();
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                Flee.Execute();
            }
        }
示例#3
0
            static Auto()
            {
                Menu = Config.Menu.Add(new Menu("Auto", "Auto"));

                AutoW.Initialize();
                AutoE.Initialize();
                AutoR.Initialize();
            }
示例#4
0
文件: Main.cs 项目: chienhao10/Hesa
        private void Game_OnTick()
        {
            if (Player.IsRecalling() || Player.IsDead)
            {
                return;
            }

            var mana = Player.ManaPercent;

            if (killstealMenu.GetCheckbox("enable"))
            {
                Killsteal.DoKS();
            }


            if (Orbwalker.ActiveMode == (OrbwalkingMode.Combo) && mana >= comboMenu.GetSlider("mana"))
            {
                Combo.DoCombo();
                Items.DoItems();
                Items.Doorbs();
            }

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

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

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

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

            /*if (rMode.GetKeybind("rKey"))
             * {
             *  RTap.DoRTap();
             * }*/
            if (autowMenu.GetCheckbox("autoW"))
            {
                AutoW.DoAutoW();
            }
            Pots.DoPots();
            SS.DoSmite();
            SS.DoHeal();

            if (rRange == GetRRange())
            {
                return;
            }
            rRange  = GetRRange();
            R.Range = rRange;
        }