Пример #1
0
            static Modes()
            {
                // Initialize modes menu
                Menu = Config.Menu.AddSubMenu("模式", "modes");

                // Combo
                Combo.Initialize();

                // Harass
                Menu.AddSeparator();
                Harass.Initialize();

                // WaveClear
                Menu.AddSeparator();
                Farm.Initialize();

                // JungleClear
                Menu.AddSeparator();
                JungleClear.Initialize();
            }
Пример #2
0
        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;
        }