Exemplo n.º 1
0
 private static void Utilitymenu()
 {
     UtilityMenu = HMenu.AddSubMenu("Utility", "kappa");
     UtilityMenu.AddGroupLabel("Utility");
     UtilityMenu.Add("Skinhack", new CheckBox("Skin Secici aktif", false));
     UtilityMenu.Add("SkinID", new Slider("SkinID", 0, 0, 15));
     UtilityMenu.Add("Autolvl", new CheckBox("Otomatik seviye aktif"));
     UtilityMenu.Add("AutolvlS", new ComboBox("Seviye Modu", 0, "Max Q", "Max W", "Max E"));
     UtilityMenu.Add("Autobuy", new CheckBox("Otomatik baslangic itemi al"));
     UtilityMenu.Add("AutobuyS", new ComboBox("Baslangic Itemi", 0, "Dorans Blade", "Dorans Ring", "Dorans Shield", "Corrupting Potion", "Hunters Machete", "Hunters Talisman", "Ancient Coin", "SpellThiefs", "Relic Shield"));
     UtilityMenu.Add("Autobuyt", new CheckBox("Totem yukselt"));
     UtilityMenu.Add("AutobuytS", new ComboBox("Yukseltilsin", 0, "Uzak Gorus", "Tarayici"));
     UtilityMenu.Add("Autolantern", new CheckBox("Otomatik Fener"));
     UtilityMenu.Add("AutolanternHP", new Slider("Otomatik Fener icin Hp =>", 40));
 }
Exemplo n.º 2
0
 private static void Utilitymenu()
 {
     UtilityMenu = HMenu.AddSubMenu("Utility", "kappa");
     UtilityMenu.AddGroupLabel("Utility");
     UtilityMenu.Add("Skinhack", new CheckBox("Skin secici aktif", false));
     UtilityMenu.Add("SkinID", new Slider("SkinID", 0, 0, 15));
     UtilityMenu.Add("Autolvl", new CheckBox("Oto level aktif"));
     UtilityMenu.Add("AutolvlS", new ComboBox("Level Mode", 0, "Max Q", "Max W", "Max E"));
     UtilityMenu.Add("Autobuy", new CheckBox("Baslangic itemi"));
     UtilityMenu.Add("AutobuyS", new ComboBox("Starter Item", 0, "Dorans Blade", "Dorans Ring", "Dorans Shield", "Corrupting Potion", "Hunters Machete", "Hunters Talisman", "Ancient Coin", "SpellThiefs", "Relic Shield"));
     UtilityMenu.Add("Autobuyt", new CheckBox("Totem yukselt"));
     UtilityMenu.Add("AutobuytS", new ComboBox("Upgrade to", 0, "Farsight Alteration", "Oracle Alteration"));
     UtilityMenu.Add("Autolantern", new CheckBox("Oto fener"));
     UtilityMenu.Add("AutolanternHP", new Slider("Oto fener icin Hp =>", 40));
 }
Exemplo n.º 3
0
 private static void Utilitymenu()
 {
     UtilityMenu = HMenu.AddSubMenu("功能", "kappa");
     UtilityMenu.AddGroupLabel("功能");
     UtilityMenu.Add("Skinhack", new CheckBox("开启换肤", false));
     UtilityMenu.Add("SkinID", new Slider("SkinID", 0, 0, 15));
     UtilityMenu.Add("Autolvl", new CheckBox("开启自动加点"));
     UtilityMenu.Add("AutolvlS", new ComboBox("加点模式", 0, "主 Q", "主 W", "主 E"));
     UtilityMenu.Add("Autobuy", new CheckBox("开局自动购买"));
     UtilityMenu.Add("AutobuyS", new ComboBox("开局物品", 0, "多兰剑", "多兰戒", "多兰盾", "腐蚀药水", "猎人药水", "猎人刀", "古钱币", "法术盗贼的匕首", "遗迹圣盾"));
     UtilityMenu.Add("Autobuyt", new CheckBox("升级饰品"));
     UtilityMenu.Add("AutobuytS", new ComboBox("升级到", 0, "远见", "真视"));
     UtilityMenu.Add("Autolantern", new CheckBox("自动灯笼"));
     UtilityMenu.Add("AutolanternHP", new Slider("自动灯笼如果血量 =>", 40));
 }
Exemplo n.º 4
0
 private static void Utilitymenu()
 {
     UtilityMenu = HMenu.AddSubMenu("Utility", "kappa");
     UtilityMenu.AddGroupLabel("Utility");
     UtilityMenu.Add("Skinhack", new CheckBox("Skin secici aktif", false));
     UtilityMenu.Add("SkinID", new Slider("SkinID", 0, 0, 15));
     UtilityMenu.Add("Autolvl", new CheckBox("Oto level aktif"));
     UtilityMenu.Add("AutolvlS", new ComboBox("Level Mode", 0, "Max Q", "Max W", "Max E"));
     UtilityMenu.Add("Autobuy", new CheckBox("Oto Baslangic"));
     UtilityMenu.Add("AutobuyS", new ComboBox("Starter Item", 0, "Dorans Kilici", "Dorans yuzugu", "Dorans kalkani", "Corrupting Potion", "Avci Palasi", "Avci tilsimi", "Ancient Coin", "SpellThiefs", "Relic Shield"));
     UtilityMenu.Add("Autobuyt", new CheckBox("Totem yukseltme"));
     UtilityMenu.Add("AutobuytS", new ComboBox("Upgrade to", 0, "UzakGorus Alteration", "Tarayici Alteration"));
     UtilityMenu.Add("Autolantern", new CheckBox("Otomatik Fener"));
     UtilityMenu.Add("AutolanternHP", new Slider("Otomatik Fener if Hp =>", 40));
 }
Exemplo n.º 5
0
 private static void Utilitymenu()
 {
     UtilityMenu = HMenu.AddSubMenu("Utility", "kappa");
     UtilityMenu.AddGroupLabel("Utility");
     UtilityMenu.Add("Skinhack", new CheckBox("Activate Skin hack", false));
     UtilityMenu.Add("SkinID", new Slider("SkinID", 0, 0, 15));
     UtilityMenu.Add("Autolvl", new CheckBox("Activate Auto level"));
     UtilityMenu.Add("AutolvlS", new ComboBox("Level Mode", 0, "Max Q", "Max W", "Max E"));
     UtilityMenu.Add("Autobuy", new CheckBox("Autobuy Starters"));
     UtilityMenu.Add("AutobuyS", new ComboBox("Starter Item", 0, "Dorans Blade", "Dorans Ring", "Dorans Shield", "Corrupting Potion", "Hunters Machete", "Hunters Talisman", "Ancient Coin", "SpellThiefs", "Relic Shield"));
     UtilityMenu.Add("Autobuyt", new CheckBox("Upgrade Trinkets"));
     UtilityMenu.Add("AutobuytS", new ComboBox("Upgrade to", 0, "Farsight Alteration", "Oracle Alteration"));
     UtilityMenu.Add("Autolantern", new CheckBox("Auto Lantern"));
     UtilityMenu.Add("AutolanternHP", new Slider("Auto Lantern if Hp =>", 40));
 }
Exemplo n.º 6
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();
        }
Exemplo n.º 7
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>");
            }
        }
Exemplo n.º 8
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>");
            }
        }
Exemplo n.º 9
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>");
            }
        }
Exemplo n.º 10
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));
            }
        }
        public override void ProcessWeiXin(WeiXinContext context)
        {
            string userInfo  = string.Empty;
            string nick_name = UtilityAccessToken.GetUserInfo(context.Request.FromUserName);

            UtilityMenu.DeleteMenu();
            string menu = "{" +
                          "\"button\": [" +
                          "{" +
                          "\"name\": \"关于我们\"," +
                          "\"sub_button\": [" +
                          "{" +
                          "\"type\": \"view\"," +
                          "\"name\": \"关于我们\"," +
                          "\"url\": \"http://www.soyisoft.cn/WebUI/pages/a5001.aspx\"" +
                          "}," +
                          "{" +
                          "\"type\": \"view\"," +
                          "\"name\": \"信息中心\"," +
                          "\"url\": \"http://www.soyisoft.cn/WebUI/pages/a1001.aspx\"" +
                          "}" +
                          "]" +
                          "}," +
                          "{" +
                          "\"name\": \"产品方案\"," +
                          "\"sub_button\": [" +
                          "{" +
                          "\"type\": \"view\"," +
                          "\"name\": \"产品列表\"," +
                          "\"url\": \"http://www.soyisoft.cn/WeiXin/Ui/Products/ShowProduct.aspx?shop_id=1\"" +
                          "}," +
                          "{" +
                          "\"type\": \"view\"," +
                          "\"name\": \"店铺列表\"," +
                          "\"url\": \"http://www.soyisoft.cn/WeiXin/Ui/Shop/ShopPreview.htm?shop_id=1\"" +
                          "}," +
                          "{" +
                          "\"type\": \"view\"," +
                          "\"name\": \"活动列表\"," +
                          "\"url\": \"http://www.soyisoft.cn/WeiXin/Ui/Activity/ActViewList.aspx?shop_id=1\"" +
                          "}" +
                          "]" +
                          "}," +
                          "{" +
                          "\"name\": \"沃尔沃\"," +
                          "\"sub_button\": [" +
                          "{" +
                          "\"type\": \"view\"," +
                          "\"name\": \"报修登记\"," +
                          "\"url\": \"http://t.vdis.cn/BI/Ui/Wx/RepairEdit.aspx\"" +
                          "}," +
                          "{" +
                          "\"type\": \"view\"," +
                          "\"name\": \"报修查询\"," +
                          "\"url\": \"http://t.vdis.cn/BI/Ui/Wx/RepairList.aspx\"" +
                          "}," +
                          "{" +
                          "\"type\": \"view\"," +
                          "\"name\": \"经验分享\"," +
                          "\"url\": \"http://t.vdis.cn/BI/Ui/Wx/ShareList.aspx\"" +
                          "}" +
                          "]" +
                          "}" +
                          "]" +
                          "}";

            menu = menu.Replace(" ", "");
            UtilityMenu.CreateMenu(menu);
            //context.Response.Write(menu);
            //s_Log.Info(this.GetType().ToString() + ":" + menu);

            XElement result = new XElement("xml", new XElement("ToUserName", context.Request.FromUserName),
                                           new XElement("FromUserName", context.Request.ToUserName),
                                           new XElement("CreateTime", DateTime.Now.GetInt()),
                                           new XElement("MsgType", WeiXinMsgType.Text.ToString().ToLower()),
                                           new XElement("Content", nick_name + " 您好:欢迎关注索一软件微信订阅号。"));

            context.Response.Write(result);
        }
Exemplo n.º 12
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            switch (Player.Instance.ChampionName)
            {
            case "Ashe":
                Champion = new Ashe();
                break;

            case "Caitlyn":
                Champion = new Caitlyn();
                break;

            case "Corki":
                Champion = new Corki();
                break;

            case "Draven":
                Champion = new Draven();
                break;

            case "Ezreal":
                Champion = new Ezreal();
                break;

            case "Graves":
                Champion = new Graves();
                break;

            case "Jinx":
                Champion = new Jinx();
                break;

            case "Kalista":
                Champion = new Kalista();
                break;

            case "Kindred":
                Champion = new Kindred();
                break;

            case "Kog'Maw":
                Champion = new KogMaw();
                break;

            case "Lucian":
                Champion = new Lucian();
                break;

            case "MissFortune":
                Champion = new MissFortune();
                break;

            case "Quinn":
                Champion = new Quinn();
                break;

            case "Sivir":
                Champion = new Sivir();
                break;

            case "Teemo":
                Champion = new Teemo();
                break;

            case "Tristana":
                Champion = new Tristana();
                break;

            case "Twitch":
                Champion = new Twitch();
                break;

            case "Urgot":
                Champion = new Urgot();
                break;

            case "Varus":
                Champion = new Varus();
                break;

            case "Vayne":
                Champion = new Vayne();
                break;

            case "Katarina":
                Champion = new Katarina();
                break;
                //case "Vayne": champion = new Vayne(); break; //etc
            }
            if (Champion != null)
            {
                Events.Init();
                MainMenu.Init();
                UtilityMenu.Init();
                Champion.Init();
                Activator.LoadSpells();
                Activator.Init();
                Humanizer.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);
            }
        }