public static Obj_AI_Hero GetTarget(float range, PriorityMode mode = PriorityMode.AutoPriority)
 {
     if (mode == PriorityMode.AutoPriority)
     {
         return(AutoPrio(range));
     }
     return(AutoPrio(range));
 }
Example #2
0
        public static void WreckingBallLoad()
        {
            leeHero = ObjectManager.Player;

            if (leeHero.ChampionName != ChampName)
            {
                return;
            }

            ChampInfo.InitSpells();

            LoadMenu();

            SPrediction.Prediction.Initialize(wbMenu, "SPred Settings");

            bubbaPriorityMode = (PriorityMode)getBoxItem(mainMenu, "modePrio");

            spellQ  = new LeagueSharp.Common.Spell(SpellSlot.Q, ChampInfo.Q.Range);
            spellQ2 = new LeagueSharp.Common.Spell(SpellSlot.Q, ChampInfo.Q2.Range);
            spellW  = new LeagueSharp.Common.Spell(SpellSlot.W, ChampInfo.W.Range);
            spellW2 = new LeagueSharp.Common.Spell(SpellSlot.W, ChampInfo.W2.Range);
            spellE  = new LeagueSharp.Common.Spell(SpellSlot.E, ChampInfo.E.Range);
            spellE2 = new LeagueSharp.Common.Spell(SpellSlot.E, ChampInfo.E2.Range);
            spellR  = new LeagueSharp.Common.Spell(SpellSlot.R, ChampInfo.R.Range);

            spellQ.SetSkillshot(
                ChampInfo.Q.Delay,
                ChampInfo.Q.Width,
                ChampInfo.Q.Speed,
                true,
                SkillshotType.SkillshotLine);

            spellE.SetSkillshot(
                ChampInfo.E.Delay,
                ChampInfo.E.Width,
                ChampInfo.E.Speed,
                false,
                SkillshotType.SkillshotCircle);

            igniteSlot = leeHero.GetSpellSlot("summonerdot");
            flashSlot  = leeHero.GetSpellSlot("summonerflash");

            Game.OnUpdate       += WreckingBallOnUpdate;
            Drawing.OnDraw      += WreckingBallOnDraw;
            GameObject.OnCreate += WreckingBallOnCreate;
        }
Example #3
0
 public static Obj_AI_Hero GetTarget(float range, PriorityMode mode = PriorityMode.AutoPriority)
 {
     if (mode == PriorityMode.AutoPriority)
         return AutoPrio(range);
     return AutoPrio(range);
 }
Example #4
0
        private static void WreckingBallOnUpdate(EventArgs args)
        {
            //Select most HP target

            List <AIHeroClient> inRangeHeroes =
                HeroManager.Enemies.Where(
                    x =>
                    x.IsValid && !x.IsDead && x.IsVisible &&
                    x.LSDistance(leeHero.ServerPosition) < getSliderItem(mainMenu, "firstTargetRange")).ToList();

            rTarget = inRangeHeroes.Any() ? (mainMode == 0 ? ReturnMostHp(inRangeHeroes) : ReturnClosest(inRangeHeroes)) : null;

            //Select less HP target
            if (rTarget != null)
            {
                List <AIHeroClient> secondTargets =
                    HeroManager.Enemies.Where(
                        x =>
                        x.IsValid && !x.IsDead && x.IsVisible && x.NetworkId != rTarget.NetworkId &&
                        x.LSDistance(rTarget.ServerPosition)
                        < getSliderItem(mainMenu, "secondTargetRange")).ToList();

                rTargetSecond = secondTargets.Any() ? ReturnLessHp(secondTargets) : null;
            }
            else
            {
                rTargetSecond = null;
            }

            if (rTarget != null && rTargetSecond != null && getKeyBindItem(mainMenu, "bubbaKey"))
            {
                if (!bubbaKushing)
                {
                    bubbaKushing = true;
                }

                BubbaKush();
            }
            else
            {
                if (bubbaKushing)
                {
                    bubbaKushing = false;
                }
            }

            switch (getBoxItem(mainMenu, "modePrio"))
            {
            case 0:
                if (bubbaPriorityMode == PriorityMode.Flash)
                {
                    bubbaPriorityMode = PriorityMode.Wardjump;
                }
                break;

            case 1:
                if (bubbaPriorityMode == PriorityMode.Wardjump)
                {
                    bubbaPriorityMode = PriorityMode.Flash;
                }
                break;
            }

            distTargetKickPos = getSliderItem(extraMenu, "distanceToKick");

            distLeeKickPos = getSliderItem(extraMenu, "distanceLeeKick");

            distLeeToWardjump = getSliderItem(extraMenu, "distanceToWardjump");

            mainMode = getBoxItem(mainMenu, "mainMode");


            if (getKeyBindItem(mainMenu, "switchKey") && Environment.TickCount > lastSwitchT + 450)
            {
                switch (getBoxItem(mainMenu, "mainMode"))
                {
                case 0:
                    mainMenu["mainMode"].Cast <ComboBox>().CurrentValue = 1;
                    lastSwitchT = Environment.TickCount;
                    break;

                case 1:
                    mainMenu["mainMode"].Cast <ComboBox>().CurrentValue = 0;
                    lastSwitchT = Environment.TickCount;
                    break;
                }
            }

            if (extraMenu["valuesToDefault"].Cast <CheckBox>().CurrentValue)
            {
                extraMenu["distanceToKick"].Cast <Slider>().CurrentValue     = 150;
                extraMenu["distanceLeeKick"].Cast <Slider>().CurrentValue    = 115;
                extraMenu["distanceToWardjump"].Cast <Slider>().CurrentValue = 485;
                extraMenu["valuesToDefault"].Cast <CheckBox>().CurrentValue  = false;
            }

            /*if (wbMenu.Item("debug3").GetValue<KeyBind>().Active && CanWardJump())
             * {
             *  WardJumpTo(Game.CursorPos);
             * }*/
        }
Example #5
0
        public static void Game_OnGameLoad()
        {
            if (Player.ChampionName != "Fiora")
            {
                return;
            }
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 400);
            W = new LeagueSharp.Common.Spell(SpellSlot.W, 750);
            E = new LeagueSharp.Common.Spell(SpellSlot.E);
            R = new LeagueSharp.Common.Spell(SpellSlot.R);
            W.SetSkillshot(0.75f, 80, 2000, false, SkillshotType.SkillshotLine);
            W.MinHitChance = LeagueSharp.Common.HitChance.High;


            Menu = MainMenu.AddMenu("Project" + Player.ChampionName, Player.ChampionName);

            Harass = Menu.AddSubMenu("Harass", "Harass");
            Harass.Add("Use Q Harass", new CheckBox("Q Enable"));
            Harass.Add("Use Q Harass Gap", new CheckBox("Use Q to gapclose"));
            Harass.Add("Use Q Harass Pre Pass", new CheckBox("Use Q to hit pre-passive spot"));
            Harass.Add("Use Q Harass Pass", new CheckBox("Use Q to hit passive"));
            Harass.Add("Use E Harass", new CheckBox("E Enable"));
            Harass.Add("Mana Harass", new Slider("Mana Harass", 40, 0, 100));

            Combo = Menu.AddSubMenu("Combo", "Combo");
            Combo.Add("Orbwalker2Mouse", new KeyBind("Combo Orbwalk to Passive", false, KeyBind.BindTypes.HoldActive, 'Z'));
            Combo.Add("Use Q Combo", new CheckBox("Q Enable"));
            Combo.Add("Use Q Combo Gap", new CheckBox("Use Q to gapclose"));
            Combo.Add("Use Q Combo Pre Pass", new CheckBox("Use Q to hit pre-passive spot"));
            Combo.Add("Use Q Combo Pass", new CheckBox("Use Q to hit passive"));
            Combo.Add("Use Q Combo Gap Minion", new CheckBox("Use Q minion to gapclose", false));
            Combo.Add("Use Q Combo Gap Minion Value", new Slider("Q minion gapclose if % cdr >=", 25, 0, 40));
            Combo.Add("Use E Combo", new CheckBox("E Enable"));
            Combo.Add("Use R Combo", new CheckBox("R Enable"));
            Combo.Add("Use R Combo LowHP", new CheckBox("Use R LowHP"));
            Combo.Add("Use R Combo LowHP Value", new Slider("R LowHP if player hp <", 40, 0, 100));
            Combo.Add("Use R Combo Killable", new CheckBox("Use R Killable"));
            Combo.Add("Use R Combo On Tap", new CheckBox("Use R on Tap"));
            Combo.Add("Use R Combo On Tap Key", new KeyBind("R on Tap key", false, KeyBind.BindTypes.HoldActive, 'G'));
            Combo.Add("Use R Combo Always", new CheckBox("Use R Always", false));

            Target = Menu.AddSubMenu("Targeting Modes", "Targeting Modes");
            Target.Add("Targeting Mode", new ComboBox("Targeting Mode", 0, "Optional", "Selected", "Priority", "Normal"));
            Target.Add("Orbwalk To Passive Range", new Slider("Orbwalk To Passive Range", 300, 250, 500));
            Target.Add("Focus Ulted Target", new CheckBox("Focus Ulted Target", false));
            Target.AddLabel("Go in each Mode menu to customize what you want!");
            Target.AddLabel("Please remember Orbwalk to Passive spot only works");
            Target.AddLabel("in \" Combo Orbwalk to Passive\" mode can be found");
            Target.AddLabel("in misc menu!");

            PriorityMode = Menu.AddSubMenu("Priority", "Priority Mode");
            PriorityMode.Add("Priority Range", new Slider("Priority Range", 1000, 300, 1000));
            PriorityMode.Add("Priority Orbwalk to Passive", new CheckBox("Orbwalk to Passive"));
            PriorityMode.Add("Priority Under Tower", new CheckBox("Under Tower"));
            foreach (var hero in HeroManager.Enemies)
            {
                PriorityMode.Add("Priority" + hero.ChampionName, new Slider(hero.ChampionName, 2, 1, 5));
            }

            OptionalMode = Menu.AddSubMenu("Optional", "Optional Mode");
            OptionalMode.Add("Optional Range", new Slider("Optional Range", 1000, 300, 1000));
            OptionalMode.Add("Optional Orbwalk to Passive", new CheckBox("Orbwalk to Passive"));
            OptionalMode.Add("Optional Under Tower", new CheckBox("Under Tower", false));
            OptionalMode.Add("Optional Switch Target Key", new KeyBind("Switch Target Key", false, KeyBind.BindTypes.HoldActive, 'T'));
            OptionalMode.AddLabel("Also Can Left-click the target to switch!");

            SelectedMode = Menu.AddSubMenu("Selected", "Selected Mode");
            SelectedMode.Add("Selected Range", new Slider("Selected Range", 1000, 300, 1000));
            SelectedMode.Add("Selected Orbwalk to Passive", new CheckBox("Orbwalk to Passive"));
            SelectedMode.Add("Selected Under Tower", new CheckBox("Under Tower", false));
            SelectedMode.Add("Selected Switch If No Selected", new CheckBox("Switch to Optional if no target"));

            LaneClear = Menu.AddSubMenu("Lane Clear", "Lane Clear");
            LaneClear.Add("Use E LClear", new CheckBox("E Enable"));
            LaneClear.Add("Use Timat LClear", new CheckBox("Tiamat Enable"));
            LaneClear.Add("minimum Mana LC", new Slider("minimum Mana", 40, 0, 100));

            JungClear = Menu.AddSubMenu("Jungle Clear", "Jungle Clear");
            JungClear.Add("Use E JClear", new CheckBox("E Enable"));
            JungClear.Add("Use Timat JClear", new CheckBox("Tiamat Enable"));
            JungClear.Add("minimum Mana JC", new Slider("minimum Mana", 40, 0, 100));

            Misc = Menu.AddSubMenu("Misc", "Misc");
            Misc.Add("WallJump", new KeyBind("WallJump", false, KeyBind.BindTypes.HoldActive, 'H'));
            Misc.Add("Orbwalk Last Right Click", new KeyBind("Orbwalk Last Right Click", false, KeyBind.BindTypes.HoldActive, 'Y')).OnValueChange += OrbwalkLastClick.OrbwalkLRCLK_ValueChanged;

            Draw = Menu.AddSubMenu("Draw", "Draw");
            Draw.Add("Draw Q", new CheckBox("Draw Q", false));
            Draw.Add("Draw W", new CheckBox("Draw W", false));
            Draw.Add("Draw Optional Range", new CheckBox("Draw Optional Range"));
            Draw.Add("Draw Selected Range", new CheckBox("Draw Selected Range"));
            Draw.Add("Draw Priority Range", new CheckBox("Draw Priority Range"));
            Draw.Add("Draw Target", new CheckBox("Draw Target"));
            Draw.Add("Draw Vitals", new CheckBox("Draw Vitals", false));
            Draw.Add("Draw Fast Damage", new CheckBox("Draw Fast Damage", false)).OnValueChange += DrawHP_ValueChanged;

            if (HeroManager.Enemies.Any())
            {
                Evade.Evade.Init();
                EvadeTarget.Init();
                TargetedNoMissile.Init();
                OtherSkill.Init();
            }

            OrbwalkLastClick.Init();
            Drawing.OnDraw     += Drawing_OnDraw;
            Drawing.OnEndScene += Drawing_OnEndScene;

            //GameObject.OnCreate += GameObject_OnCreate;
            Game.OnUpdate                  += Game_OnGameUpdate;
            Orbwalker.OnPostAttack         += AfterAttack;
            Orbwalker.OnPostAttack         += Orbwalking_AfterAttackNoTarget;
            Orbwalker.OnAttack             += OnAttack;
            Obj_AI_Base.OnProcessSpellCast += oncast;
            Game.OnWndProc                 += Game_OnWndProc;
            CustomDamageIndicator.Initialize(GetFastDamage);
            CustomDamageIndicator.Enabled = DrawHP;

            //evade
            FioraProject.Evade.Evade.Evading += EvadeSkillShots.Evading;
            Chat.Print("Welcome to FioraWorld");
        }
Example #6
0
        private static void WreckingBallOnUpdate(EventArgs args)
        {
            //Select most HP target

            List<AIHeroClient> inRangeHeroes =
                HeroManager.Enemies.Where(
                    x =>
                    x.IsValid && !x.IsDead && x.IsVisible
                    && x.Distance(leeHero.ServerPosition) < getSliderItem(mainMenu, "firstTargetRange")).ToList();

            rTarget = inRangeHeroes.Any() ? (mainMode == 0 ? ReturnMostHp(inRangeHeroes) : ReturnClosest(inRangeHeroes)) : null;

            //Select less HP target
            if (rTarget != null)
            {
                List<AIHeroClient> secondTargets =
                    HeroManager.Enemies.Where(
                        x =>
                        x.IsValid && !x.IsDead && x.IsVisible && x.NetworkId != rTarget.NetworkId
                        && x.Distance(rTarget.ServerPosition)
                        < getSliderItem(mainMenu, "secondTargetRange")).ToList();

                rTargetSecond = secondTargets.Any() ? ReturnLessHp(secondTargets) : null;
            }
            else
            {
                rTargetSecond = null;
            }

            if (rTarget != null && rTargetSecond != null && getKeyBindItem(mainMenu, "bubbaKey"))
            {
                if (!bubbaKushing)
                {
                    bubbaKushing = true;
                }

                BubbaKush();
            }
            else
            {
                if (bubbaKushing)
                {
                    bubbaKushing = false;
                }
            }

            switch (getBoxItem(mainMenu, "modePrio"))
            {
                case 0:
                    if (bubbaPriorityMode == PriorityMode.Flash)
                    {
                        bubbaPriorityMode = PriorityMode.Wardjump;
                    }
                    break;
                case 1:
                    if (bubbaPriorityMode == PriorityMode.Wardjump)
                    {
                        bubbaPriorityMode = PriorityMode.Flash;
                    }
                    break;
            }

            distTargetKickPos = getSliderItem(extraMenu, "distanceToKick");

            distLeeKickPos = getSliderItem(extraMenu, "distanceLeeKick");

            distLeeToWardjump = getSliderItem(extraMenu, "distanceToWardjump");

            mainMode = getBoxItem(mainMenu, "mainMode");

            if (getKeyBindItem(mainMenu, "switchKey") && Environment.TickCount > lastSwitchT + 450)
            {
                switch (getBoxItem(mainMenu, "mainMode"))
                {
                    case 0:
                        mainMenu["mainMode"].Cast<ComboBox>().CurrentValue = 1;
                        lastSwitchT = Environment.TickCount;
                        break;
                    case 1:
                        mainMenu["mainMode"].Cast<ComboBox>().CurrentValue = 0;
                        lastSwitchT = Environment.TickCount;
                        break;
                }
            }

            if (extraMenu["valuesToDefault"].Cast<CheckBox>().CurrentValue)
            {
                extraMenu["distanceToKick"].Cast<Slider>().CurrentValue = 150;
                extraMenu["distanceLeeKick"].Cast<Slider>().CurrentValue = 115;
                extraMenu["distanceToWardjump"].Cast<Slider>().CurrentValue = 485;
                extraMenu["valuesToDefault"].Cast<CheckBox>().CurrentValue = false;
            }

            /*if (wbMenu.Item("debug3").GetValue<KeyBind>().Active && CanWardJump())
            {
                WardJumpTo(Game.CursorPos);
            }*/
        }
Example #7
0
        public static void WreckingBallLoad()
        {
            leeHero = ObjectManager.Player;

            if (leeHero.ChampionName != ChampName)
            {
                return;
            }

            ChampInfo.InitSpells();

            LoadMenu();

            SPrediction.Prediction.Initialize(wbMenu, "SPred Settings");

            bubbaPriorityMode = (PriorityMode)getBoxItem(mainMenu, "modePrio");

            spellQ = new LeagueSharp.Common.Spell(SpellSlot.Q, ChampInfo.Q.Range);
            spellQ2 = new LeagueSharp.Common.Spell(SpellSlot.Q, ChampInfo.Q2.Range);
            spellW = new LeagueSharp.Common.Spell(SpellSlot.W, ChampInfo.W.Range);
            spellW2 = new LeagueSharp.Common.Spell(SpellSlot.W, ChampInfo.W2.Range);
            spellE = new LeagueSharp.Common.Spell(SpellSlot.E, ChampInfo.E.Range);
            spellE2 = new LeagueSharp.Common.Spell(SpellSlot.E, ChampInfo.E2.Range);
            spellR = new LeagueSharp.Common.Spell(SpellSlot.R, ChampInfo.R.Range);

            spellQ.SetSkillshot(
                ChampInfo.Q.Delay,
                ChampInfo.Q.Width,
                ChampInfo.Q.Speed,
                true,
                SkillshotType.SkillshotLine);

            spellE.SetSkillshot(
                ChampInfo.E.Delay,
                ChampInfo.E.Width,
                ChampInfo.E.Speed,
                false,
                SkillshotType.SkillshotCircle);

            igniteSlot = leeHero.GetSpellSlot("summonerdot");
            flashSlot = leeHero.GetSpellSlot("summonerflash");

            Game.OnUpdate += WreckingBallOnUpdate;
            Drawing.OnDraw += WreckingBallOnDraw;
            GameObject.OnCreate += WreckingBallOnCreate;
        }
Example #8
0
        public static void Game_OnGameLoad()
        {
            if (Player.ChampionName != "Fiora")
            {
                return;
            }
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 400);
            W = new LeagueSharp.Common.Spell(SpellSlot.W, 750);
            E = new LeagueSharp.Common.Spell(SpellSlot.E);
            R = new LeagueSharp.Common.Spell(SpellSlot.R);
            W.SetSkillshot(0.75f, 80, 2000, false, SkillshotType.SkillshotLine);
            W.MinHitChance = LeagueSharp.Common.HitChance.High;


            Menu = MainMenu.AddMenu("Project" + Player.ChampionName, Player.ChampionName);

            Harass = Menu.AddSubMenu("骚扰", "Harass");
            Harass.Add("Use Q Harass", new CheckBox("Q 开启"));
            Harass.Add("Use Q Harass Gap", new CheckBox("使用 Q 接近"));
            Harass.Add("Use Q Harass Pre Pass", new CheckBox("使用Q攻击 准备出现的弱点"));
            Harass.Add("Use Q Harass Pass", new CheckBox("使用Q攻击弱点"));
            Harass.Add("Use E Harass", new CheckBox("E 开启"));
            Harass.Add("Mana Harass", new Slider("骚扰蓝量", 40, 0, 100));

            Combo = Menu.AddSubMenu("连招", "Combo");
            Combo.Add("Orbwalker2Mouse", new KeyBind("连招走砍至弱点", false, KeyBind.BindTypes.HoldActive, 'Z'));
            Combo.Add("Use Q Combo", new CheckBox("Q 开启"));
            Combo.Add("Use Q Combo Gap", new CheckBox("使用 Q 接近"));
            Combo.Add("Use Q Combo Pre Pass", new CheckBox("使用Q攻击 准备出现的弱点"));
            Combo.Add("Use Q Combo Pass", new CheckBox("使用Q攻击弱点"));
            Combo.Add("Use Q Combo Gap Minion", new CheckBox("使用Q 小兵进行接近", false));
            Combo.Add("Use Q Combo Gap Minion Value", new Slider("冷却% >= X,Q小兵进行接近", 25, 0, 40));
            Combo.Add("Use E Combo", new CheckBox("E 开启 "));
            Combo.Add("Use R Combo", new CheckBox("R 开启"));
            Combo.Add("Use R Combo LowHP", new CheckBox("低血量使用R"));
            Combo.Add("Use R Combo LowHP Value", new Slider("R 如果玩家生命% <", 40, 0, 100));
            Combo.Add("Use R Combo Killable", new CheckBox("使用 R 如果可击杀"));
            Combo.Add("Use R Combo On Tap", new CheckBox("使用 R 按键"));
            Combo.Add("Use R Combo On Tap Key", new KeyBind("R 按键", false, KeyBind.BindTypes.HoldActive, 'G'));
            Combo.Add("Use R Combo Always", new CheckBox("总是使用 R", false));

            Target = Menu.AddSubMenu("目标选择模式", "Targeting Modes");
            Target.Add("Targeting Mode", new ComboBox("选择模式", 0, "自定义", "点击", "优先", "正常"));
            Target.Add("Orbwalk To Passive Range", new Slider("走砍至弱点范围", 300, 250, 500));
            Target.Add("Focus Ulted Target", new CheckBox("集火R目标", false));
            Target.AddLabel("修改每一项获得最大化设置!");
            Target.AddLabel("记住走进弱点智能用于在");
            Target.AddLabel(" \" 连招走砍至弱点\"模式下");
            Target.AddLabel("在连招菜单下!");;

            PriorityMode = Menu.AddSubMenu("Priority", "优先");
            PriorityMode.Add("Priority Range", new Slider("优先模式范围", 1000, 300, 1000));
            PriorityMode.Add("Priority Orbwalk to Passive", new CheckBox("走砍至弱点"));
            PriorityMode.Add("Priority Under Tower", new CheckBox("塔下范围"));
            foreach (var hero in HeroManager.Enemies)
            {
                PriorityMode.Add("Priority" + hero.ChampionName, new Slider(hero.ChampionName, 2, 1, 5));
            }

            OptionalMode = Menu.AddSubMenu("Optional", "自定义模式");
            OptionalMode.Add("Optional Range", new Slider("自定义模式范围", 1000, 300, 1000));
            OptionalMode.Add("Optional Orbwalk to Passive", new CheckBox("走砍至弱点"));
            OptionalMode.Add("Optional Under Tower", new CheckBox("塔下", false));
            OptionalMode.Add("Optional Switch Target Key", new KeyBind("切换目标按键", false, KeyBind.BindTypes.HoldActive, 'T'));
            OptionalMode.AddLabel("也可以左键点击目标来切换!");

            SelectedMode = Menu.AddSubMenu("Selected", "点击模式");
            SelectedMode.Add("Selected Range", new Slider("点击模式范围", 1000, 300, 1000));
            SelectedMode.Add("Selected Orbwalk to Passive", new CheckBox("走砍至弱点"));
            SelectedMode.Add("Selected Under Tower", new CheckBox("塔下", false));
            SelectedMode.Add("Selected Switch If No Selected", new CheckBox("切换至自定义如果附近无目标"));

            LaneClear = Menu.AddSubMenu("清线", "Lane Clear");
            LaneClear.Add("Use E LClear", new CheckBox("E 开启"));
            LaneClear.Add("Use Timat LClear", new CheckBox("提亚马特 开启"));
            LaneClear.Add("minimum Mana LC", new Slider("最低蓝量", 40, 0, 100));

            JungClear = Menu.AddSubMenu("清野", "Jungle Clear");
            JungClear.Add("Use E JClear", new CheckBox("E 开启"));
            JungClear.Add("Use Timat JClear", new CheckBox("提亚马特 开启"));
            JungClear.Add("minimum Mana JC", new Slider("最低蓝量", 40, 0, 100));

            Misc = Menu.AddSubMenu("杂项", "Misc");
            Misc.Add("WallJump", new KeyBind("跳墙", false, KeyBind.BindTypes.HoldActive, 'H'));
            Misc.Add("Orbwalk Last Right Click", new KeyBind("走砍至最后一次右键位置", false, KeyBind.BindTypes.HoldActive, 'Y')).OnValueChange += OrbwalkLastClick.OrbwalkLRCLK_ValueChanged;

            Draw = Menu.AddSubMenu("线圈", "Draw");
            Draw.Add("Draw Q", new CheckBox("显示 Q", false));
            Draw.Add("Draw W", new CheckBox("显示 W", false));
            Draw.Add("Draw Optional Range", new CheckBox("显示 自定义模式范围"));
            Draw.Add("Draw Selected Range", new CheckBox("显示 点击模式范围"));
            Draw.Add("Draw Priority Range", new CheckBox("显示 优先模式范围"));
            Draw.Add("Draw Target", new CheckBox("显示 目标"));
            Draw.Add("Draw Vitals", new CheckBox("显示 弱点", false));
            Draw.Add("Draw Fast Damage", new CheckBox("显示 快速伤害", false)).OnValueChange += DrawHP_ValueChanged;

            if (HeroManager.Enemies.Any())
            {
                Evade.Evade.Init();
                EvadeTarget.Init();
                TargetedNoMissile.Init();
                OtherSkill.Init();
            }

            OrbwalkLastClick.Init();
            Drawing.OnDraw     += Drawing_OnDraw;
            Drawing.OnEndScene += Drawing_OnEndScene;

            //GameObject.OnCreate += GameObject_OnCreate;
            Game.OnUpdate                  += Game_OnGameUpdate;
            Orbwalker.OnPostAttack         += AfterAttack;
            Orbwalker.OnPostAttack         += Orbwalking_AfterAttackNoTarget;
            Orbwalker.OnAttack             += OnAttack;
            Obj_AI_Base.OnProcessSpellCast += oncast;
            Game.OnWndProc                 += Game_OnWndProc;
            CustomDamageIndicator.Initialize(GetFastDamage);
            CustomDamageIndicator.Enabled = DrawHP;

            //evade
            FioraProject.Evade.Evade.Evading += EvadeSkillShots.Evading;
            Chat.Print("Welcome to FioraWorld");
        }
Example #9
0
 public PriorityQueueBinaryTree()
 {
     _items = new BinaryTree <T>();
     Mode   = PriorityMode.Lowest;
 }