Пример #1
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            var champion = Type.GetType("OKTRAIO.Champions." + Player.Instance.ChampionName);

            if (champion != null)
            {
                Console.Write("[MarksmanAIO] " + Player.Instance.ChampionName + " Loaded");
                Champion = (AIOChampion)Activator.CreateInstance(champion);
                Events.Init();
                MainMenu.Init();
                UtilityMenu.Init();
                Champion.Init();
                JsonSettings.Init();
                Utility.Activator.LoadSpells();
                Utility.Activator.Init();
                Humanizer.Init();
                SkinManagement.Init();
                if (MainMenu._menu["playsound"].Cast <CheckBox>().CurrentValue)
                {
                    PlayWelcome();
                }
                Chat.Print("MarksmanAIO: " + Player.Instance.ChampionName + " Loaded", Color.CornflowerBlue);
            }
            else
            {
                Chat.Print("MarksmanAIO doesn't support: " + Player.Instance.ChampionName);
            }

            if (RandomUlt.IsCompatibleChamp() && champion == null)
            {
                UtilityMenu.Init();
            }
            if (BaseUlt.IsCompatibleChamp())
            {
                UtilityMenu.BaseUltMenu();
                BaseUlt.Initialize();
            }
            if (RandomUlt.IsCompatibleChamp())
            {
                UtilityMenu.RandomUltMenu();
                RandomUlt.Initialize();
            }
            Value.Init();
        }
Пример #2
0
        public override void Init()
        {
            try
            {
                //Creating Spells

                _q = new Spell.Active(SpellSlot.Q);
                _w = new Spell.Active(SpellSlot.W);
                _e = new Spell.Skillshot(SpellSlot.E, 1100, SkillShotType.Linear, 250, 1400, 130)
                {
                    AllowedCollisionCount = int.MaxValue
                };
                _r = new Spell.Skillshot(SpellSlot.R, 20000, SkillShotType.Linear, 250, 2000, 160)
                {
                    AllowedCollisionCount = int.MaxValue
                };

                //LunarBlue method
                _axeLocation = new Circle();
                Axes         = new List <Axe>();
                try
                {
                    //Combo Menu Settings
                    MainMenu.ComboKeys(true, true, true, true);
                    MainMenu._combo.AddSeparator();
                    MainMenu._combo.AddGroupLabel("Prediction Settings", "combo.grouplabel.2", true);
                    MainMenu._combo.AddSlider("combo.e.prediction", "Use E if Hitchance > {0}%", 80, 0, 100, true);
                    MainMenu._combo.AddSeparator();
                    MainMenu._combo.AddGroupLabel("Mana Manager:", "combo.grouplabel.3", true);
                    MainMenu.ComboManaManager(true, true, true, true, 10, 5, 10, 10);

                    //Lane Clear Menu Settings
                    MainMenu.LaneKeys(true, true, true, false);
                    MainMenu._lane.AddSeparator();
                    MainMenu._lane.AddGroupLabel("Mana Manager:", "lane.grouplabel.2", true);
                    MainMenu.LaneManaManager(true, true, true, false, 60, 50, 40, 50);

                    //Jungle Clear Menu Settings
                    MainMenu.JungleKeys(true, true, true, false);
                    MainMenu._jungle.AddSeparator();
                    MainMenu._jungle.AddGroupLabel("Jungleclear Preferences", "jungle.grouplabel.1", true);
                    MainMenu._jungle.AddCheckBox("jungle.monsters.spell", "Use Abilities on Big Monster", true, true);
                    MainMenu._jungle.AddCheckBox("jungle.minimonsters.spell", "Use Abilities on Mini Monsters", false,
                                                 true);
                    MainMenu._jungle.AddSeparator();
                    MainMenu._jungle.AddGroupLabel("Mana Manager:", "jungle.grouplabel.2", true);
                    MainMenu.JungleManaManager(true, true, true, false, 60, 50, 40, 50);

                    //Last hit Menu Settings
                    MainMenu.LastHitKeys(false, false, true, false);
                    MainMenu._lasthit.AddSeparator();
                    MainMenu._lasthit.AddGroupLabel("Mana Manager:", "lasthit.grouplabel.1", true);
                    MainMenu.LasthitManaManager(false, false, true, false, 60, 50, 40, 50);

                    //Harras
                    MainMenu.HarassKeys(true, true, true, false);
                    MainMenu._harass.AddSeparator();
                    MainMenu._harass.AddGroupLabel("Mana Manager:", "harass.grouplabel.1", true);
                    MainMenu.HarassManaManager(true, true, true, false, 60, 50, 40, 50);

                    //Flee Menu
                    MainMenu.FleeKeys(false, true, true, false);
                    MainMenu._flee.AddSeparator();
                    MainMenu._flee.AddGroupLabel("Mana Manager:", "flee.grouplabel.1", true);
                    MainMenu.FleeManaManager(false, true, true, false, 0, 20, 30, 0);

                    //Ks
                    MainMenu.KsKeys(false, false, true, true);
                    MainMenu._ks.AddSeparator();
                    MainMenu._ks.AddGroupLabel("Mana Manager:", "killsteal.grouplabel.5", true);
                    MainMenu.KsManaManager(false, false, true, true, 60, 50, 10, 25);

                    //Misc Menu
                    MainMenu.MiscMenu();
                    MainMenu._misc.AddCheckBox("misc.e.interrupter", "Use E for Interrupt");
                    MainMenu._misc.AddCheckBox("misc.e.gapcloser", "Use E for Anti-GapCloser");
                    MainMenu._misc.AddCheckBox("misc.e", "Use Auto E");
                    MainMenu._misc.AddSeparator();
                    MainMenu._misc.AddGroupLabel("Interrupter - AntiGapCloser settings", "misc.grouplabel.6", true);
                    MainMenu._misc.AddSlider("misc.e.interrupter.mana", "Min. Mana to interrupt", 30, 0, 100, true);
                    MainMenu._misc.AddSlider("misc.e.gapcloser.mana", "Min. Mana% to use R for Anti-GapCloser", 30, 0,
                                             100, true);
                    MainMenu._misc.AddSeparator();
                    MainMenu._misc.AddGroupLabel("Auto E Settings", "misc.grouplabel.3", true);
                    MainMenu._misc.AddCheckBox("misc.e.tower", "Use E on enemies taking tower hits", true, true);
                    MainMenu._misc.AddCheckBox("misc.e.stun", "Use E on Stunned Enemy", true, true);
                    MainMenu._misc.AddCheckBox("misc.e.charm", "Use E on Charmed Enemy", true, true);
                    MainMenu._misc.AddCheckBox("misc.e.taunt", "Use E on Taunted Enemy", true, true);
                    MainMenu._misc.AddCheckBox("misc.e.fear", "Use E on Feared Enemy", true, true);
                    MainMenu._misc.AddCheckBox("misc.e.snare", "Use E on Snared Enemy", true, true);
                    MainMenu._misc.AddSlider("misc.e.mana", "Use E on CC Enemy if Mana is above than {0}%", 10, 0, 100,
                                             true);
                    MainMenu._misc.AddSeparator();
                    MainMenu._misc.AddGroupLabel("Axe Settings", "misc.grouplabel.4", true);
                    MainMenu._misc.AddCheckBox("misc.w.axe", "Use W if necessary", true, true);
                    MainMenu._misc.AddCheckBox("misc.axe.tower", "Do not Catch under Tower", true, true);
                    MainMenu._misc.AddCheckBox("misc.axe.arf", "I WANT THAT AXE!!", false, true);
                    MainMenu._misc.AddCheckBox("misc.axe.check", "Be safe while Catching", true, true);
                    MainMenu._misc.AddSlider("misc.axe.check.enemies", "Maximum Enemies for Catch", 2, 1, 5, true);
                    MainMenu._misc.AddSlider("misc.axe.count", "Maximum Axes", 2, 1, 3, true);
                    MainMenu._misc.AddSlider("misc.axe.range", "Catch Range", 800, 120, 1500, true);
                    MainMenu._misc.AddGroupLabel("Catch Axes if:", "misc.grouplabel.5", true);
                    MainMenu._misc.Add("misc.axe.mode", new Slider("Axe Catch Mode", 1, 1, 2)).OnValueChange +=

                        delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args)
                    {
                        if (sender.Cast <Slider>().CurrentValue == 1)
                        {
                            sender.DisplayName = "Catch Method: Combo";
                        }
                        else if (sender.Cast <Slider>().CurrentValue == 2)
                        {
                            sender.DisplayName = "Catch Method: Any";
                        }
                        else if (sender.Cast <Slider>().CurrentValue == 3)
                        {
                            sender.DisplayName = "Catch Method: Orbwalking";
                        }
                    };

                    Value.AdvancedMenuItemUiDs.Add("misc.axe.mode");
                    MainMenu._misc["misc.axe.mode"].IsVisible =
                        MainMenu._misc["misc.advanced"].Cast <CheckBox>().CurrentValue;

                    //Need to start the Axe Manager code

                    //Draw Menu
                    MainMenu.DrawKeys(true, true, true, true);
                    MainMenu._draw.AddCheckBox("draw.axe.catch", "Draw Catche Range");
                    MainMenu._draw.AddSeparator();
                    MainMenu._draw.AddCheckBox("draw.hp.bar", "Draw Combo Damage", true, true);

                    //BaseUlt
                    UtilityMenu.BaseUltMenu();

                    Value.Init();
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                    Chat.Print(
                        "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>");
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code 503)</font>");
            }
            try
            {
                GameObject.OnCreate += GameObjectOnCreate;
                GameObject.OnDelete += GameObjectOnDelete;
                Interrupter.OnInterruptableSpell += InterrupterOnInterruptableSpell;
                Orbwalker.OnPreAttack            += OrbwalkerOnPreAttack;
                Gapcloser.OnGapcloser            += AntiGapCloser;
                if (MainMenu._menu["useonupdate"].Cast <CheckBox>().CurrentValue)
                {
                    Game.OnUpdate += GameOnUpdate;
                }
                else
                {
                    Game.OnTick += GameOnUpdate;
                }
                Drawing.OnDraw     += GameOnDraw;
                Drawing.OnEndScene += Drawing_OnEndScene;
                BaseUlt.Initialize();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code INIT)</font>");
            }
        }
Пример #3
0
        public override void Init()
        {
            //Spells

            _q = new Spell.Skillshot(SpellSlot.Q, 1150, SkillShotType.Linear, 250, 2000, (int)60f);
            _w = new Spell.Skillshot(SpellSlot.W, 1000, SkillShotType.Linear, 250, 1600, (int)80f)
            {
                AllowedCollisionCount = int.MaxValue
            };
            _e = new Spell.Targeted(SpellSlot.E, 475);
            _r = new Spell.Skillshot(SpellSlot.R, 3000, SkillShotType.Linear, 1000, 2000, (int)160f);


            try
            {
                //Menu Init
                //Combo
                MainMenu.ComboKeys(true, true, true, false);
                MainMenu._combo.AddSeparator();
                MainMenu._combo.AddGroupLabel("Combo Preferences", "combo.grouplabel.mode", true);
                MainMenu._combo.Add("combo.mode", new Slider("Combo Mode", 0, 0, 1)).OnValueChange += ModeSlider;
                Value.AdvancedMenuItemUiDs.Add("combo.mode");
                MainMenu._combo["combo.mode"].IsVisible = MainMenu._combo["combo.advanced"].Cast <CheckBox>().CurrentValue;
                MainMenu._combo.Add("combo.emode", new Slider("E Mode: ", 0, 0, 2)).OnValueChange += ComboEModeSlider;
                Value.AdvancedMenuItemUiDs.Add("combo.emode");
                MainMenu._combo["combo.emode"].Cast <Slider>().IsVisible = MainMenu._combo["combo.advanced"].Cast <CheckBox>().CurrentValue;
                MainMenu._combo.Add("combo.rbind",
                                    new KeyBind("Semi-Auto R (No Lock)", false, KeyBind.BindTypes.HoldActive, 'T'))
                .OnValueChange += OnUltButton;
                Value.AdvancedMenuItemUiDs.Add("combo.rbind");
                MainMenu._combo["combo.rbind"].IsVisible = MainMenu._combo["combo.advanced"].Cast <CheckBox>().CurrentValue;
                MainMenu._combo.AddSeparator();
                MainMenu._combo.AddGroupLabel("Prediction Settings", "combo.advanced.predctionlabel", true);
                MainMenu._combo.AddSlider("combo.q.pred", "Use Q if HitChance is above than {0}%", 45, 0, 100, true);
                MainMenu._combo.AddSlider("combo.w.pred", "Use W if HitChance is above than {0}%", 30, 0, 100, true);
                MainMenu._combo.AddSlider("combo.r.pred", "Use R if HitChance is above than {0}%", 70, 0, 100, true);
                MainMenu._combo.AddSeparator();
                MainMenu._combo.AddGroupLabel("Mana Manager:", "combo.advanced.manamanagerlabel", true);
                MainMenu.ComboManaManager(true, true, true, true, 10, 10, 10, 10);

                //Harass
                MainMenu.HarassKeys(true, true, true, false);
                MainMenu._harass.AddSeparator();
                MainMenu._harass.AddGroupLabel("Harass Preferences", "harass.grouplabel.mode", true);
                MainMenu._harass.AddCheckBox("harass.auto", "Use AUTO HARASS", false, true);
                MainMenu._harass.Add("harass.emode", new Slider("E Mode: ", 0, 0, 2)).OnValueChange += HarassEModeSlider;
                Value.AdvancedMenuItemUiDs.Add("harass.emode");
                MainMenu._harass["harass.emode"].IsVisible = MainMenu._harass["harass.advanced"].Cast <CheckBox>().CurrentValue;
                MainMenu._harass.AddSeparator();
                MainMenu._harass.AddGroupLabel("Prediction Settings", "harass.advanced.predctionlabel", true);
                MainMenu._harass.AddSlider("harass.q.pred", "Use Q if HitChance is above than {0}%", 45, 0, 100, true);
                MainMenu._harass.AddSlider("harass.w.pred", "Use W if HitChance is above than {0}%", 30, 0, 100, true);
                MainMenu._harass.AddSeparator();
                MainMenu._harass.AddGroupLabel("Mana Manager:", "harass.advanced.manamanagerlabel", true);
                MainMenu.HarassManaManager(true, true, true, false, 60, 60, 0, 0);

                //Farm
                MainMenu.LaneKeys(true, true, false, false);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddGroupLabel("Q Settings", "lane.advanced.qsettingslabel", true);
                MainMenu._lane.AddCheckBox("lane.q.aa", "Use Q only when can't AA", true, true);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddGroupLabel("Mana Manager:", "harass.advanced.manamanagerlabel", true);
                MainMenu.LaneManaManager(true, true, false, false, 65, 0, 0, 0);

                //Jungle Clear Menu Settings
                MainMenu.JungleKeys(true, true, true, false);
                MainMenu._jungle.AddSeparator();
                MainMenu._jungle.AddGroupLabel("Jungleclear Preferences", "jungle.grouplabel.1", true);
                MainMenu._jungle.AddCheckBox("jungle.monsters.spell", "Use Abilities on Big Monster", true, true);
                MainMenu._jungle.AddCheckBox("jungle.minimonsters.spell", "Use Abilities on Mini Monsters", false, true);
                MainMenu._jungle.AddSeparator();
                MainMenu._jungle.AddGroupLabel("Mana Manager:", "jungle.grouplabel.2", true);
                MainMenu.JungleManaManager(true, true, true, false, 60, 50, 40, 50);

                //Last hit Menu Settings
                MainMenu.LastHitKeys(true, false, false, false);
                MainMenu._lasthit.AddSeparator();
                MainMenu._lasthit.AddGroupLabel("Mana Manager:", "lasthit.grouplabel.1", true);
                MainMenu.LasthitManaManager(true, false, false, false, 60, 50, 40, 50);

                //Ks
                MainMenu.KsKeys(true, true, true, true);
                MainMenu._ks.AddSeparator();
                MainMenu._ks.AddGroupLabel("Mana Manager:", "killsteal.grouplabel.5", true);
                MainMenu.KsManaManager(true, true, true, true, 60, 50, 40, 50);

                //Flee Menu
                MainMenu.FleeKeys(false, false, true, false);

                //Misc
                MainMenu.MiscMenu();
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddCheckBox("misc.q", "Use Auto Q");
                MainMenu._misc.AddCheckBox("misc.w", "Use Auto W");
                MainMenu._misc.AddCheckBox("misc.e.gapcloser", "Use Auto E on GapCloser", false);
                MainMenu._misc.AddCheckBox("misc.e.gapcloser.wall", "Safe GapCloser E (Wall)");
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddGroupLabel("Auto Q-W Settings", "misc.grouplabel.addonmenu", true);
                MainMenu._misc.AddCheckBox("misc.w.ally", "Use W on Allies/Yourself", false, true);
                MainMenu._misc.AddCheckBox("misc.q.stun", "Use Q on Stunned Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.stun", "Use W on Stunned Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.charm", "Use Q on Charmed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.charm", "Use W on Charmed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.taunt", "Use Q on Taunted Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.taunt", "Use W on Taunted Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.fear", "Use Q on Feared Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.fear", "Use W on Feared Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.q.snare", "Use Q on Snared Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.snare", "Use W on Snared Enemy", true, true);
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddGroupLabel("Mana Manager:", "misc.grouplabel.addonmenu.1", true);
                MainMenu._misc.AddSlider("misc.q.mana", "Use Q on CC Enemy if Mana is above than {0}%", 30, 0, 100,
                                         true);
                MainMenu._misc.AddSlider("misc.w.mana", "Use W on CC Enemy if Mana is above than {0}%", 30, 0, 100,
                                         true);
                MainMenu.DrawKeys(true, true, true, true);
                MainMenu._draw.AddCheckBox("draw.hp.bar", "Draw Combo Damage", true, true);
                MainMenu.DamageIndicator(true);
                UtilityMenu.BaseUltMenu();



                //Value
                Value.Init();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>");
            }
            try
            {
                Drawing.OnDraw         += GameOnDraw;
                Gapcloser.OnGapcloser  += Gapcloser_OnGapcloser;
                Orbwalker.OnPreAttack  += OrbwalkerOnOnPreAttack;
                Orbwalker.OnPostAttack += OrbwalkerOnOnPostAttack;
                if (MainMenu._menu["useonupdate"].Cast <CheckBox>().CurrentValue)
                {
                    Game.OnUpdate += GameOnUpdate;
                }
                else
                {
                    Game.OnTick += GameOnUpdate;
                }
                Drawing.OnEndScene += Drawing_OnEndScene;
                BaseUlt.Initialize();
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code 503)</font>");
            }
        }
Пример #4
0
        public override void Init()
        {
            try
            {
                //spells
                _q = new Spell.Active(SpellSlot.Q, 600);
                _w = new Spell.Skillshot(SpellSlot.W, 1280, SkillShotType.Linear, 250, 2000, 20);
                _e = new Spell.Skillshot(SpellSlot.E, 25000, SkillShotType.Linear, 250, 1400, 300);
                _r = new Spell.Skillshot(SpellSlot.R, 3000, SkillShotType.Linear, 250, 1600, 130);
                _w.AllowedCollisionCount = 0;
                _e.AllowedCollisionCount = int.MaxValue;
                _r.AllowedCollisionCount = int.MaxValue;


                //menu

                //combo test
                MainMenu.ComboKeys(true, true, false, true);
                MainMenu._combo.AddSeparator();
                MainMenu._combo.AddGroupLabel("Combo Preferences", "combo.grouplabel.addonmenu", true);
                MainMenu._combo.Add("combo.rbind",
                                    new KeyBind("Semi-Auto R (No Lock)", false, KeyBind.BindTypes.HoldActive, 'T'))
                .OnValueChange += OnUltButton;
                MainMenu._combo.AddCheckBox("combo.r.aoe", "Use R for AOE", true, true);
                MainMenu._combo.AddSlider("combo.r.slider", "{0} Enemies hit with R explosion", 3, 0, 5, true);
                MainMenu._combo.AddSeparator();
                MainMenu._combo.AddGroupLabel("Prediction", "combo.grouplabel1.addonmenu", true);
                MainMenu._combo.AddSlider("combo.wr.prediction", "Hitchance Percentage for W/R", 80, 0, 100, true);

                //flee
                MainMenu.FleeKeys(false, true, false, false);
                MainMenu._flee.AddSeparator();
                MainMenu._flee.AddGroupLabel("Mana Manager:", "flee.grouplabel.addonmenu", true);
                MainMenu.FleeManaManager(false, true, false, false, 0, 20, 0, 0);

                //lasthit
                MainMenu.LastHitKeys(false, true, false, false);
                MainMenu._lasthit.AddSeparator();
                MainMenu._lasthit.AddGroupLabel("Mana Manager:", "lasthit.grouplabel.addonmenu", true);
                MainMenu.LasthitManaManager(false, true, false, false, 0, 80, 0, 0);


                //laneclear
                MainMenu.LaneKeys(true, true, false, false);
                MainMenu._lane.AddSeparator();
                MainMenu._lane.AddSlider("lane.w.min", "Min. {0} minions for W", 3, 1, 7, true);
                MainMenu._lane.AddGroupLabel("Mana Manager:", "lane.grouplabel.addonmenu", true);
                MainMenu.LaneManaManager(true, true, false, false, 60, 70, 0, 0);

                //jungleclear
                MainMenu.JungleKeys(true, true, false, false);
                MainMenu._jungle.AddSeparator();
                MainMenu._jungle.AddGroupLabel("Mana Manager:", "jungle.grouplabel.addonmenu", true);
                MainMenu.JungleManaManager(true, true, false, false, 60, 30, 0, 0);

                //harass
                MainMenu.HarassKeys(true, true, false, false);
                MainMenu._harass.AddSeparator();
                MainMenu._harass.AddGroupLabel("Mana Manager:", "harass.grouplabel.addonmenu", true);
                MainMenu.HarassManaManager(true, true, false, false, 20, 20, 0, 0);

                //ks
                MainMenu.KsKeys(false, true, false, true);
                MainMenu._ks.AddSeparator();
                MainMenu._ks.AddGroupLabel("Mana Manager:", "killsteal.grouplabel.addonmenu", true);
                MainMenu.KsManaManager(false, true, false, true, 20, 30, 10, 5);

                //misc
                MainMenu.MiscMenu();
                MainMenu._misc.AddCheckBox("misc.e", "Use Auto E");
                MainMenu._misc.AddCheckBox("misc.r.interrupter", "Use R for Interrupt");
                MainMenu._misc.AddCheckBox("misc.w.gapcloser", "Use W for Anti-Gapcloser");
                MainMenu._misc.AddCheckBox("misc.r.auto", "Anti Rengar + Khazix");
                MainMenu._misc.AddSeparator();
                MainMenu._misc.AddGroupLabel("Auto W Settings", "misc.grouplabel1.addonmenu", true);
                MainMenu._misc.AddCheckBox("misc.w.charm", "Use W on Charmed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.stun", "Use W on Stunned Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.knockup", "Use W on Knocked Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.snare", "Use W on Snared Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.suppression", "Use W on Suppressed Enemy", true, true);
                MainMenu._misc.AddCheckBox("misc.w.taunt", "Use W on Taunted Enemy", true, true);

                //draw
                MainMenu.DrawKeys(false, true, false, false);
                MainMenu._draw.AddSeparator();
                MainMenu._draw.AddCheckBox("draw.hp.bar", "Draw Combo Damage", true, true);

                //BaseUlt
                UtilityMenu.BaseUltMenu();
            }

            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>");
            }

            try
            {
                Value.Init();
                if (MainMenu._menu["useonupdate"].Cast <CheckBox>().CurrentValue)
                {
                    Game.OnUpdate += GameOnUpdate;
                }
                else
                {
                    Game.OnTick += GameOnUpdate;
                }
                Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
                Gapcloser.OnGapcloser            += Gapcloser_OnGapcloser;
                GameObject.OnCreate            += GameObject_OnCreate;
                Orbwalker.OnPreAttack          += Orbwalker_OnPreAttack;
                Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
                Drawing.OnDraw     += GameOnDraw;
                Drawing.OnEndScene += Drawing_OnEndScene;
                BaseUlt.Initialize();
            }

            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print(
                    "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code INIT)</font>");
            }
        }
Пример #5
0
        public override void Init()
        {
            try
            {
                //Create spells
                _q = new Spell.Active(SpellSlot.Q);
                _w = new Spell.Skillshot(SpellSlot.W, 1500, SkillShotType.Linear, 600, 3300, 60)
                {
                    MinimumHitChance      = HitChance.Medium,
                    AllowedCollisionCount = 0
                };
                _e = new Spell.Skillshot(SpellSlot.E, 900, SkillShotType.Circular, 1200, 1750, 100);
                _r = new Spell.Skillshot(SpellSlot.R, 3000, SkillShotType.Linear, 600, 1700, 140)
                {
                    MinimumHitChance = HitChance.Medium
                };

                try
                {
                    #region Create menu

                    //Combo Menu Settings
                    MainMenu.ComboKeys(true, true, true, true);
                    MainMenu.ComboManaManager(false, true, false, false, 0, 40, 0, 0);

                    //Lane Clear Menu Settings
                    MainMenu.LaneKeys(true, false, false, false);
                    MainMenu._lane.Add("lane.mana", new Slider("Minimum {0}% mana to laneclear with Q", 80));

                    //Jungle Clear Menu Settings
                    MainMenu.JungleKeys(true, true, false, false);
                    MainMenu.JungleManaManager(false, true, false, false, 0, 40, 0, 0);

                    //Harras Menu Settings
                    MainMenu.HarassKeys(true, true, true, false);
                    MainMenu.HarassManaManager(false, true, false, false, 0, 40, 0, 0);

                    //Killsteal Menu
                    MainMenu.KsKeys(false, false, false, true);

                    //BaseUlt
                    UtilityMenu.BaseUltMenu();

                    //Misc Menu
                    MainMenu.MiscMenu();
                    MainMenu._misc.Add("misc.farmQAARange", new CheckBox("Use Q when minion out of AA range"));
                    MainMenu._misc.Add("misc.teleportE", new CheckBox("Use E on teleport position"));
                    MainMenu._misc.Add("misc.spellcastE", new CheckBox("Use E OnProcessSpellCast"));
                    MainMenu._misc.Add("misc.enemyTurretR", new CheckBox("Don't use R under enemy turret"));

                    //Draw Menu
                    MainMenu.DrawKeys(false, true, true, false);
                    MainMenu.DamageIndicator(false, "Ultimate (R) damage");

                    Value.Init();

                    #endregion
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                    Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>");
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code 503)</font>");
            }

            try
            {
                DamageIndicator.DamageToUnit = DamageInidicatorDmg;
                Game.OnTick                    += OnTick;
                Drawing.OnDraw                 += OnDraw;
                Orbwalker.OnPreAttack          += OnPreAttack;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;
                BaseUlt.Initialize();
                Chat.Print("Jinx Loaded!", System.Drawing.Color.Chartreuse);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code INIT)</font>");
            }

            foreach (var hero in ObjectManager.Get <AIHeroClient>())
            {
                Recalls.Add(new Recall(hero, RecallStatus.Inactive));
            }
        }