Example #1
1
        private static void Game_OnGameLoad(EventArgs args)
        {
            EQDrawList = new List<Vector3>();
            Player = ObjectManager.Player;
            if (Player.ChampionName != ChampionName) return;
            Q = new Spell(SpellSlot.Q, 700f);
            Q.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotLine);

            W = new Spell(SpellSlot.W, 300f);

            E = new Spell(SpellSlot.E, 830f);
            E.SetSkillshot(0.5f, 70f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            Config = new Menu("J4Helper", "J4Helper", true);
            //Orbwalker
            Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            //Misc
            Config.AddSubMenu(new Menu("Keys", "Keys"));
            Config.SubMenu("Keys")
                .AddItem(
                    new MenuItem("EQMouse", "EQ to Mouse").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
            Config.AddToMainMenu();
            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Game.PrintChat("J4Helper Loaded.");
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }
Example #2
1
 private static void CreateMenu()
 {
     Menu = new Menu("AIOAuto", "menu", true);
     Menu.AddItem(new MenuItem("timer", "timer")).SetValue(new Slider(500, 200, 5000));
     Menu.AddItem(new MenuItem("dbbuff", "Simple Buff Checker")).SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press, false));
     Menu.AddToMainMenu();
 }
        public static void AddToMenu(Menu menu, List<Spell> spells)
        {
            try
            {
                _menu = menu;

                spells =
                    spells.DistinctBy(s => s.Slot)
                        .Where(s => s.Slot != SpellSlot.Unknown && (s.IsSkillshot || s.Range > 0f))
                        .ToList();

                foreach (var spell in spells)
                {
                    _menu.AddItem(
                        new MenuItem(_menu.Name + "." + spell.Slot, "Use " + spell.Slot).SetValue(
                            spell.Slot != SpellSlot.R && spell.Instance.Cooldown < 20));
                }

                _menu.AddItem(
                    new MenuItem(_menu.Name + ".min-distance", "Min. Enemy Distance").SetValue(
                        new Slider(1000, 200, 3000)));
                _menu.AddItem(new MenuItem(_menu.Name + ".min-mana", "Min. Mana %").SetValue(new Slider(95, 1)));
                _menu.AddItem(new MenuItem(_menu.Name + ".fountain", "Only Inside Fountain").SetValue(false));
                _menu.AddItem(new MenuItem(_menu.Name + ".enabled", "Enabled").SetValue(false));

                _spells = spells.OrderBy(s => s.ManaCost).ThenBy(s => s.Instance.Cooldown).ToList();
                Core.OnPostUpdate += OnCorePostUpdate;
            }
            catch (Exception ex)
            {
                Global.Logger.AddItem(new LogItem(ex));
            }
        }
Example #4
1
 private static void Game_OnGameLoad(EventArgs args)
 {
     Config = new Menu("Tracker", "Tracker", true);
     HbTracker.AttachToMenu(Config);
     WardTracker.AttachToMenu(Config);
     Config.AddToMainMenu();
 }
Example #5
1
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config = new Menu("SharpChatLiner", "SharpChatLiner", true);

            Config.AddSubMenu(new Menu("Text 1", "Text 1"));
            Config.SubMenu("Text 1").AddItem(new MenuItem("1", "Say txt File 1").SetValue(new KeyBind("1".ToCharArray()[0], KeyBindType.Press)));
            Config.SubMenu("Text 1").AddItem(new MenuItem("ALL1", "Say txt File 1 To ALL")).SetValue(false);

            Config.AddSubMenu(new Menu("Text 2", "Text 2"));
            Config.SubMenu("Text 2").AddItem(new MenuItem("2", "Say txt File 2").SetValue(new KeyBind("2".ToCharArray()[0], KeyBindType.Press)));
            Config.SubMenu("Text 2").AddItem(new MenuItem("ALL2", "Say txt File 2 To ALL")).SetValue(false);

            Config.AddSubMenu(new Menu("Text 3", "Text 3"));
            Config.SubMenu("Text 3").AddItem(new MenuItem("3", "Say txt File 3").SetValue(new KeyBind("3".ToCharArray()[0], KeyBindType.Press)));
            Config.SubMenu("Text 3").AddItem(new MenuItem("ALL3", "Say txt File 3 To ALL")).SetValue(false);

            Config.AddSubMenu(new Menu("Text 4", "Text 4"));
            Config.SubMenu("Text 4").AddItem(new MenuItem("4", "Say txt File 4").SetValue(new KeyBind("4".ToCharArray()[0], KeyBindType.Press)));
            Config.SubMenu("Text 4").AddItem(new MenuItem("ALL4", "Say txt File 4 To ALL")).SetValue(false);

            Config.AddSubMenu(new Menu("Text 5", "Text 5"));
            Config.SubMenu("Text 5").AddItem(new MenuItem("5", "Say txt File 5").SetValue(new KeyBind("5".ToCharArray()[0], KeyBindType.Press)));
            Config.SubMenu("Text 5").AddItem(new MenuItem("ALL5", "Say txt File 5 To ALL")).SetValue(false);

            Config.AddSubMenu(new Menu("Text 6", "Text 6"));
            Config.SubMenu("Text 6").AddItem(new MenuItem("6", "Say txt File 6").SetValue(new KeyBind("6".ToCharArray()[0], KeyBindType.Press)));
            Config.SubMenu("Text 6").AddItem(new MenuItem("ALL6", "Say txt File 6 To ALL")).SetValue(false);

            Config.AddToMainMenu();

            Game.OnGameUpdate += OnGameUpdate;
            Game.PrintChat("<font color='#FF00BF'>Sharp Chat Liner Loaded By</font> <font color='#FF0000'>The</font><font color='#FFFF00'>Kush</font><font color='#40FF00'>Style</font>");
        }
Example #6
1
        public static void Game_OnGameLoad()
        {
            if (ObjectManager.Player.BaseSkinName != "Sion")
            {
                return;
            }

            //Spells
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 1050);
            Q.SetSkillshot(0.6f, 100f, float.MaxValue, false, SkillshotType.SkillshotLine);
            Q.SetCharged("SionQ", "SionQ", 500, 720, 0.5f);

            E = new LeagueSharp.Common.Spell(SpellSlot.E, 800);
            E.SetSkillshot(0.25f, 80f, 1800, false, SkillshotType.SkillshotLine);

            //Make the menu
            Config = MainMenu.AddMenu("Sion", "Sion");

            comboMenu = Config.AddSubMenu("Combo", "Combo");
            comboMenu.Add("UseQCombo", new CheckBox("Use Q"));
            comboMenu.Add("UseWCombo", new CheckBox("Use W"));
            comboMenu.Add("UseECombo", new CheckBox("Use E"));

            Game.OnUpdate += Game_OnGameUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast += ObjAiHeroOnOnProcessSpellCast;
        }
Example #7
1
        public SFXUtility()
        {
            try
            {
                Menu = new Menu(Name, Name, true);

                var miscMenu = new Menu("Misc", "Misc");

                var infoMenu = new Menu("Info", "Info");
                infoMenu.AddItem(new MenuItem("InfoVersion", string.Format("Version: {0}", Version)));
                infoMenu.AddItem(new MenuItem("InfoIRC", "IRC: Appril"));
                infoMenu.AddItem(new MenuItem("InfoGithub", "Github:").SetValue(new StringList(new[]
                {
                    "Smokyfox",
                    "Lizzaran",
                    "zUsername"
                })));

                miscMenu.AddSubMenu(infoMenu);

                miscMenu.AddItem(new MenuItem("MiscCircleThickness", "Circles Thickness").SetValue(new Slider(3, 10, 1)));

                Menu.AddSubMenu(miscMenu);
                AppDomain.CurrentDomain.DomainUnload += OnExit;
                AppDomain.CurrentDomain.ProcessExit += OnExit;
                CustomEvents.Game.OnGameEnd += OnGameEnd;
                Game.OnGameEnd += OnGameEnd;
                CustomEvents.Game.OnGameLoad += OnGameLoad;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Example #8
1
        public static void AddToMenu(Menu theMenu)
        {
            _myMenu = theMenu;

            //add item list to menu
            CreateList();

            var offensiveItem = new Menu("Offensive Items", "Offensive Items");
            {
                foreach (var item in ItemList)
                {
                    AddOffensiveItem(offensiveItem, item);
                }
                _myMenu.AddSubMenu(offensiveItem);
            }

            var summoners = new Menu("Summoners", "Summoners");
            {
                var ignite = new Menu("Ignite", "Ignite");
                {
                    ignite.AddItem(new MenuItem("ignite", "Use Ignite", true).SetValue(true));
                    ignite.AddItem(
                        new MenuItem("igniteMode", "Ignite Mode", true).SetValue(new StringList(new[] { "Combo", "KS" })));
                    summoners.AddSubMenu(ignite);
                }
                _myMenu.AddSubMenu(summoners);
            }

            Orbwalking.AfterAttack += AfterAttack;
            Orbwalking.OnAttack += OnAttack;
            Game.OnUpdate += Game_OnGameUpdate;
        }
Example #9
1
        public static void Init()
        {
            Map = Utility.Map.GetMap().Type;
            if (Map != Utility.Map.MapType.HowlingAbyss) return;
            Config = new Menu("AIM: " + ObjectManager.Player.ChampionName,
                "autosharp." + ObjectManager.Player.ChampionName, true);
            Config.AddItem(new MenuItem("autosharp.quit", "Quit after Game End").SetValue(true));
            var options = Config.AddSubMenu(new Menu("Options: ", "autosharp.options"));
            options.AddItem(new MenuItem("autosharp.options.healup", "Take Heals?").SetValue(true));
            var orbwalker = Config.AddSubMenu(new Menu("Orbwalker", "autosharp.orbwalker"));

            new PluginLoader();

            Cache.Load();
            Game.OnUpdate += Positioning.OnUpdate;
            Autoplay.Load();
            Game.OnEnd += OnEnd;
            Obj_AI_Base.OnIssueOrder += AntiShrooms;
            Game.OnUpdate += AntiShrooms2;
            Spellbook.OnCastSpell += OnCastSpell;
            Obj_AI_Base.OnDamage += OnDamage;


            Orbwalker = new MyOrbwalker.Orbwalker(orbwalker);

            Utility.DelayAction.Add(
                new Random().Next(1000, 10000), () =>
                {
                    new LeagueSharp.Common.AutoLevel(Utils.AutoLevel.GetSequence().Select(num => num - 1).ToArray());
                    LeagueSharp.Common.AutoLevel.Enable();
                    Console.WriteLine("AutoLevel Init Success!");
                });
        }
        public static void AddToMenu(Menu menu,
            string uniqueId,
            HealthCheckType checkType,
            HealthValueType valueType,
            string prefix = null,
            int value = 30,
            int minValue = 0,
            int maxValue = 100)
        {
            try
            {
                if (Menues.ContainsKey(uniqueId))
                {
                    throw new ArgumentException(
                        string.Format("HealthHealthger: UniqueID \"{0}\" already exist.", uniqueId));
                }

                menu.AddItem(
                    new MenuItem(
                        menu.Name + ".health-" + uniqueId,
                        (!string.IsNullOrEmpty(prefix) ? prefix + " " : string.Empty) +
                        (checkType == HealthCheckType.Minimum ? "Min. Health" : "Max. Health") +
                        (valueType == HealthValueType.Percent ? " %" : string.Empty)).SetValue(
                            new Slider(value, minValue, maxValue)));

                Menues[uniqueId] = new Tuple<Menu, HealthCheckType, HealthValueType>(menu, checkType, valueType);
            }
            catch (Exception ex)
            {
                Global.Logger.AddItem(new LogItem(ex));
            }
        }
Example #11
0
        public static void Load()
        {
            ks = Menu.AddSubMenu("KillSteal", "KillSteal");
            ks.Add("SpellsKS", new CheckBox("KS Spells"));
            ks.Add("ComboSmite", new CheckBox("Smite"));
            ks.Add("ComboIgnite", new CheckBox("Ignite"));

            jngl = Menu.AddSubMenu("Jungle", "Jungle");
            jngl.Add("jnglQ", new Slider("Use Javelin Mana %", 15, 0, 100));
            jngl.Add("jnglHeal", new Slider("Auto Heal", 15, 0, 95));

            heal = Menu.AddSubMenu("Heal", "Heal Manager");
            heal.Add("allyHeal", new Slider("Heal Allies Hp <= %", 45, 0, 80));
            heal.Add("SelfHeal", new Slider("Self Heal Hp <= %", 80, 0, 90));
            heal.Add("ManaHeal", new Slider("Mana <= %", 20, 0, 100));

            misc = Menu.AddSubMenu("Misc", "Misc");
            misc.Add("Gapcloser", new CheckBox("Gapcloser"));
            misc.Add("manaW", new Slider("Use W Mana %", 15, 0, 100));

            draw = Menu.AddSubMenu("Draw", "Draw");
            draw.Add("dind", new CheckBox("Draw damage indicator"));
            draw.Add("EngageDraw", new CheckBox("Engage Range"));
            draw.Add("fleeDraw", new CheckBox("Draw Flee Spots"));

            flee = Menu.AddSubMenu("Flee", "Flee");
            flee.Add("FleeMouse", new KeyBind("Flee (BETA)", false, KeyBind.BindTypes.HoldActive, 'A'));
        }
Example #12
0
        public Evader(out Menu _evade, EvadeMethods method = EvadeMethods.None, Spell spl = null)
        {
            SpecialMethod = method;
            EvadeSpell = spl;
            evade = new Menu("Evade", "Evade");

            foreach (var enemy in HeroManager.Enemies)
            {
                foreach (var spell in SpellDatabase.EvadeableSpells.Where(p => p.ChampionName == enemy.ChampionName && p.EvadeMethods.HasFlag(method)))
                    evade.AddItem(new MenuItem(spell.SpellName, String.Format("{0} ({1})", spell.ChampionName, spell.Slot)).SetValue(true));
            }

            evade.AddItem(new MenuItem("EVADEMETHOD", "Evade Method: ").SetValue(new StringList(new[] { "Near Turret", "Less Enemies", "Auto" }, 2)));
            evade.AddItem(new MenuItem("EVADEENABLE", "Enabled").SetValue(false));

            if (method.HasFlag(EvadeMethods.MorganaE) || method.HasFlag(EvadeMethods.KayleR))
            {
                shieldAlly = new Menu("Ally Shielding", "allyshield");
                foreach (var ally in HeroManager.Allies)
                    if(!ally.IsMe)
                        shieldAlly.AddItem(new MenuItem("shield" + ally.ChampionName, "Shield " + ally.ChampionName).SetValue(true));

                shieldAlly.AddItem(new MenuItem("SHIELDENABLED", "Enabled").SetValue(true));
                evade.AddSubMenu(shieldAlly);
            }

            _evade = evade;
            m_evade_thread = new Thread(new ThreadStart(EvadeThread));
            m_evade_thread.Start();
            Game.OnUpdate += Game_OnUpdate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;

            Game.PrintChat("<font color='#ff3232'>Shine#: </font><font color='#d4d4d4'>Evader loaded for champion {0} !</font>", ObjectManager.Player.ChampionName);
        }
Example #13
0
        public static void Initialize()
        {
            #region Initialize Menu
            Config = new Menu("SPredictioner", "spredictioner", true);
            TargetSelector.AddToMenu(Config.SubMenu("Target Selector"));
            Config.AddItem(new MenuItem("COMBOKEY", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));
            Config.AddItem(new MenuItem("HARASSKEY", "Harass").SetValue(new KeyBind('C', KeyBindType.Press)));
            Config.AddItem(new MenuItem("ENABLED", "Enabled").SetValue(true));
            SPrediction.Prediction.Initialize(Config);
            Config.SubMenu("SPRED").AddItem(new MenuItem("SPREDHITC", "Hit Chance").SetValue(new StringList(ShineCommon.Utility.HitchanceNameArray, 2)));
            Config.AddToMainMenu();
            #endregion

            #region Initialize Events
            Spellbook.OnCastSpell += EventHandlers.Spellbook_OnCastSpell;
            Obj_AI_Hero.OnProcessSpellCast += EventHandlers.Obj_AI_Hero_OnProcessSpellCast;
            #endregion

            #region Initialize Spells
            foreach (var spell in SpellDatabase.Spells)
            {
                if (spell.ChampionName == ObjectManager.Player.CharData.BaseSkinName)
                {
                    Spells[(int)spell.Slot] = new Spell(spell.Slot, spell.Range);
                    Spells[(int)spell.Slot].SetSkillshot(spell.Delay / 1000, spell.Radius, spell.MissileSpeed, spell.Collisionable, spell.Type);
                }
            }
            #endregion
        }
Example #14
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Twitch")
                return;

            _w = new Spell(SpellSlot.W, wRange);
            _w.SetSkillshot(0.25f, 120f, 1400f, false, SkillshotType.SkillshotCircle);
            _e = new Spell(SpellSlot.E, eRange);

            _config = new Menu("Twitch", "Twitch", true);

            _orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking"));

            var targetSelectorMenu = new Menu("Target Selector", "Target Selector");
            TargetSelector.AddToMenu(targetSelectorMenu);
            _config.AddSubMenu(targetSelectorMenu);

            _config.SubMenu("Combo").AddItem(new MenuItem("UseWCombo", "Use W").SetValue(true));
            _config.SubMenu("Combo").AddItem(new MenuItem("ghost", "Use Ghostblade").SetValue(true));
            _config.SubMenu("Combo").AddItem(new MenuItem("botrk", "Use Botrk").SetValue(true));

            _config.SubMenu("Drawings").AddItem(new MenuItem("ultDraw", "Draw ult range").SetValue(true));
            _config.SubMenu("Drawings").AddItem(new MenuItem("EDamage", "E Damage").SetValue(new Circle(true, Color.White)));
            _config.SubMenu("Drawings").AddItem(new MenuItem("stealthColor", "Stealth indicator").SetValue(new Circle(true, Color.Purple)));

            _config.AddToMainMenu();

            CustomDamageIndicator.Initialize(GetEDamage);
            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast += OnSpellProcess;
            Obj_AI_Base.OnDamage += OnDamage;
        }
Example #15
0
        private static void LuxMain(EventArgs args)
        {
            Player = ObjectManager.Player;

            if (Player.BaseSkinName != "Lux")
            {
                return;
            }


            Config = LuxMenu.CreateMenu();

            Config.AddToMainMenu();

            InitializeSpells();

            ObjectHandling();

            AntiGapcloser.OnEnemyGapcloser += OnGapClose;

            Interrupter2.OnInterruptableTarget += OnInterruptableTarget;

            Game.OnUpdate += OnUpdate;
            Game.OnUpdate += CheckKillable;
            Drawing.OnDraw += OnDraw;
        }
Example #16
0
 public override void ComboMenu(Menu config)
 {
     config.AddBool("Combo.Q", "Use Q", true);
     config.AddBool("Combo.W", "Use W", true);
     config.AddBool("Combo.R", "Use R", true);
     config.AddSlider("Combo.R.Health", "Health to Ult", 15, 1, 100);
 }
Example #17
0
        private static Menu DrawingMenu()
        {
            var drawMenu = new Menu("Drawing Settings", "Drawings");
            drawMenu
                .AddItem(
                    new MenuItem("drawoptions", "Drawing Mode Mode").SetValue(
                        new StringList(new[] { "Normal Mode", "Colorblind Mode" })));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("Draw", "Display Drawings").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("qDraw", "Draw Q").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("eDraw", "Draw E").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("wDraw", "Draw W").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("stackDraw", "Stack Count").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("notdraw", "Draw Floating Text").SetValue(true));
            drawMenu.SubMenu("Drawings").AddItem(new MenuItem("keyBindDisplay", "Display Keybinds").SetValue(true));  

            var drawDamageMenu = new MenuItem("RushDrawEDamage", "Combo Damage").SetValue(true);
            var drawFill =
                new MenuItem("RushDrawWDamageFill", "Draw Damage Fill").SetValue(new Circle(true, Color.SeaGreen));
            drawMenu.SubMenu("Drawings").AddItem(drawDamageMenu);
            drawMenu.SubMenu("Drawings").AddItem(drawFill);

            //GlobalManager.EnableDrawingDamage = drawDamageMenu.GetValue<bool>();
            //GlobalManager.EnableFillDamage = drawFill.GetValue<Circle>().Active;
            //GlobalManager.DamageFillColor = drawFill.GetValue<Circle>().Color;

            return drawMenu;
        }
Example #18
0
        private static void CassMain(EventArgs args)
        {
            Player = ObjectManager.Player;

            if (Player.CharData.BaseSkinName != "Cassiopeia")
            {
                return;
            }


            Config = CassiopeiaMenu.CreateMenu();

            Config.AddToMainMenu();

            InitializeSpells();


            new CommonAutoLevel(skillorder);


            AntiGapcloser.OnEnemyGapcloser += OnGapClose;

            Interrupter2.OnInterruptableTarget += OnInterruptableTarget;

            Game.OnUpdate += OnUpdate;
            Game.OnUpdate += CheckKillable;
            Game.OnUpdate += AutoSpells;
            Drawing.OnDraw += OnDraw;
            Orbwalking.BeforeAttack += BeforeAuto;
        }
Example #19
0
        public static void OnGameLoad(EventArgs args)
        {
            Menu = new Menu("Disrespect#", "masteryemotespammermenu", true);
            Menu.AddItem(new MenuItem("mode", "[ Respect ]").SetValue(new StringList(new[] { "MASTERY", "HARD FLAME" })));
            Menu.AddItem(new MenuItem("chatdisrespectmode", "[ Type ]").SetValue(new StringList(new[] { "DISABLED", "CHAMPION NAME", "SUMMONER NAME" })));
            Menu.AddItem(new MenuItem("onkill", "[ Mes Kills ]").SetValue(true));
            Menu.AddItem(new MenuItem("onassist", "[ Mes Assistances ]").SetValue(true));
            Menu.AddItem(new MenuItem("ondeath", "[ Mes Morts ]").SetValue(false));
            Menu.AddItem(new MenuItem("neardead", "[ Morts ]").SetValue(true));
            Menu.AddItem(new MenuItem("ondodgedskillshot", "[ Esquive ]").SetValue(true));
            Menu.AddItem(new MenuItem("afterignite", "[ Ignite ]").SetValue(true));
            Menu.AddItem(new MenuItem("afterflash", "[ Flash ]").SetValue(false));
            Menu.AddItem(new MenuItem("afterq", "[ A ]").SetValue(false));
            Menu.AddItem(new MenuItem("afterw", "[ Z ]").SetValue(false));
            Menu.AddItem(new MenuItem("aftere", "[ E ]").SetValue(false));
            Menu.AddItem(new MenuItem("afterr", "[ R ]").SetValue(false));
            Menu.AddToMainMenu();
            Random = new Random();
            FlashSlot = ObjectManager.Player.GetSpellSlot("SummonerFlash");
            IgniteSlot = ObjectManager.Player.GetSpellSlot("SummonerDot");
            Game.OnUpdate += OnUpdate;
            Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast;

            //init chat disrespekter
            foreach (var en in ObjectManager.Get<Obj_AI_Hero>().Where(h => h.IsEnemy))
            {
                DeathsHistory.Add(en.NetworkId, en.Deaths);
            }
        }
Example #20
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            Config = new Menu("SkinHack", "SkinHack", true);

            var settings = Config.AddSubMenu(new Menu("Settings", "Settings"));
            settings.AddItem(new MenuItem("Champions", "Reskin Champions").SetValue(true));
            //settings.AddItem(new MenuItem("Pets", "Reskin Pets").SetValue(true));
            settings.AddItem(new MenuItem("Minions", "Pool Party Minions").SetValue(false));

            foreach (var hero in ObjectManager.Get<Obj_AI_Hero>())
            {
                var champMenu = new Menu(hero.ChampionName, hero.ChampionName);
                var modelUnit = new ModelUnit(hero);

                PlayerList.Add(modelUnit);

                if (hero.IsMe)
                {
                    Player = modelUnit;
                }

                foreach (Dictionary<string, object> skin in ModelManager.GetSkins(hero.ChampionName))
                {
                    Console.WriteLine(skin["name"].ToString());
                    var skinName = skin["name"].ToString().Equals("default")
                        ? hero.ChampionName
                        : skin["name"].ToString();
                    var skinId = (int) skin["num"];

                    var changeSkin = champMenu.AddItem(new MenuItem(skinName, skinName).SetValue(false));

                    if (hero.BaseSkinId.Equals(skinId) || changeSkin.IsActive())
                    {
                        changeSkin.SetValue(true);
                        modelUnit.SetModel(hero.CharData.BaseSkinName, skinId);
                    }

                    var hero1 = hero;
                    changeSkin.ValueChanged += (s, e) =>
                    {
                        if (e.GetNewValue<bool>())
                        {
                            champMenu.Items.ForEach(
                                p =>
                                {
                                    if (p.GetValue<bool>() && p.Name != skinName)
                                    {
                                        p.SetValue(false);
                                    }
                                });
                            modelUnit.SetModel(hero1.ChampionName, skinId);
                        }
                    };
                }
                Config.AddSubMenu(champMenu);
            }
            Config.AddToMainMenu();

            Game.OnInput += Game_OnInput;
        }
Example #21
0
        /// <summary>
        ///     메인메뉴를 만들고 root메뉴에 추가합니다.
        /// </summary>
        internal static void Initialize()
        {
            if (PluginLoader.CanLoadPlugin(ObjectManager.Player.ChampionName))
            {
                MenuInstance = new Menu("#Shooter Reworked: OK", "SharpShooterCommon", true);

                AddSubMenu("Champion", ObjectManager.Player.ChampionName);

                Champion.AddOrbwalker();
                Champion.AddTargetSelector();
            }
            else
            {
                MenuInstance = new Menu("#Shooter Reworked: X", "SharpShooterCommon", true);

                AddItem("txt1", "Sorry. " + ObjectManager.Player.ChampionName + " is not supported yet.", null);
                Game.PrintChat(
                    "<font color = \"#00D8FF\"><b>SharpShooter Reworked:</b></font> <font color = \"#FF007F\">" +
                    ObjectManager.Player.ChampionName + "</font> is not supported yet.");
            }

            MenuInstance.AddToMainMenu();

            Console.WriteLine("SharpShooter: MenuProvider Initialized.");
        }
Example #22
0
        public override void InterruptMenu(Menu config)
        {
            config.AddBool("GapcloserQ", "Use Q to Interrupt Gapcloser", true);

            config.AddBool("InterruptQ", "Use Q to Interrupt Spells", true);
            config.AddBool("InterruptR", "Use R to Interrupt Spells", true);
        }
Example #23
0
        public Khazix()
        {
            if (ObjectManager.Player.ChampionName != "Khazix")
            {
                return;
            }

            Init();
            GenerateMenu();
            Game.OnUpdate += OnUpdate;
            Game.OnUpdate += DoubleJump;
            Drawing.OnDraw += OnDraw;
            Spellbook.OnCastSpell += SpellCast;
            Orbwalker.OnPreAttack += BeforeAttack;

            menu = KhazixMenu.menu;
            harass = KhazixMenu.harass;
            combo = KhazixMenu.combo;
            farm = KhazixMenu.farm;
            ks = KhazixMenu.ks;
            safety = KhazixMenu.safety;
            djump = KhazixMenu.djump;
            draw = KhazixMenu.draw;
            debug = KhazixMenu.debug;
        }
Example #24
0
File: Ziggs.cs Project: Ryzeros/L-
        private static void ZiggsMain(EventArgs args)
        {
            Player = ObjectManager.Player;

            if (Player.CharData.BaseSkinName != "Ziggs")
            {
                return;
            }

            Config = ZiggsMenu.CreateMenu();

            Config.AddToMainMenu();

            InitializeSpells();

            ObjectHandling(); 

            AntiGapcloser.OnEnemyGapcloser += OnGapClose;

            Interrupter2.OnInterruptableTarget += OnInterruptableTarget;

            Game.OnUpdate += OnUpdate;
            Game.OnUpdate += AutoSpells;
            
            Drawing.OnDraw += OnDraw;
        }
        public static void AddToMenu(Menu menu, string uniqueId, Dictionary<string, HitChance> hitChances)
        {
            try
            {
                if (Menues.ContainsKey(uniqueId))
                {
                    throw new ArgumentException(
                        string.Format("HitchanceManager: UniqueID \"{0}\" already exist.", uniqueId));
                }

                var flashMenu = menu.AddSubMenu(new Menu("Flash", menu.Name + ".flash"));
                flashMenu.AddItem(new MenuItem(menu.Name + ".enabled", "Reduce Hitchance").SetValue(true));
                flashMenu.AddItem(new MenuItem(menu.Name + ".amount", "Amount").SetValue(new Slider(1, 0, 3)));
                flashMenu.AddItem(new MenuItem(menu.Name + ".time", "Seconds").SetValue(new Slider(3, 1, 10)));

                foreach (var hit in hitChances)
                {
                    menu.AddItem(
                        new MenuItem(menu.Name + "." + hit.Key.ToLower(), hit.Key.ToUpper()).SetValue(
                            new StringList(
                                new[] { "Medium", "High", "Very High" },
                                hit.Value == HitChance.Medium ? 0 : (hit.Value == HitChance.High ? 1 : 2))));
                }

                Menues[uniqueId] = menu;

                Obj_AI_Base.OnProcessSpellCast += OnObjAiBaseProcessSpellCast;
            }
            catch (Exception ex)
            {
                Global.Logger.AddItem(new LogItem(ex));
            }
        }
        public SFXHumanize()
        {
            try
            {
                Menu = new Menu(Name, Name, true);

                var infoMenu = new Menu("Info", Name + "Info");

                infoMenu.AddItem(new MenuItem(infoMenu.Name + "Version", string.Format("{0}: {1}", "Version", Version)));
                infoMenu.AddItem(new MenuItem(infoMenu.Name + "Forum", "Forum" + ": Lizzaran"));
                infoMenu.AddItem(new MenuItem(infoMenu.Name + "Github", "GitHub" + ": Lizzaran"));
                infoMenu.AddItem(new MenuItem(infoMenu.Name + "IRC", "IRC" + ": Appril"));
                infoMenu.AddItem(new MenuItem(infoMenu.Name + "Exception", string.Format("{0}: {1}", "Exception", 0)));

                var globalMenu = new Menu("Settings", Name + "Settings");

                AddReport(globalMenu);

                Menu.AddSubMenu(infoMenu);
                Menu.AddSubMenu(globalMenu);

                AppDomain.CurrentDomain.DomainUnload += OnExit;
                AppDomain.CurrentDomain.ProcessExit += OnExit;
                CustomEvents.Game.OnGameEnd += OnGameEnd;
                CustomEvents.Game.OnGameLoad += OnGameLoad;
            }
            catch (Exception ex)
            {
                Global.Logger.AddItem(new LogItem(ex));
            }
        }
Example #27
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            var spell = ObjectManager.Player.GetSpellSlot("summonersnowball");

            if (spell == SpellSlot.Unknown)
            {
                return;
            }


            Menu = new Menu("ARAMShooter", "ARAMShooter", true);
            Menu.AddItem(new MenuItem("DecreaseRange", "Decrease Range by").SetValue(new Slider(10)));
            Menu.AddItem(
                new MenuItem("HitChance", "MinHitChance").SetValue(
                    new StringList(
                        new[] { HitChance.Low.ToString(), HitChance.Medium.ToString(), HitChance.High.ToString() }, 1)));
            Menu.AddItem(new MenuItem("Auto", "AutoDash").SetValue(true));
            Menu.AddItem(new MenuItem("AutoThrow", "AutoThrow").SetValue(false));
            Menu.AddItem(new MenuItem("Throw", "Throw").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press)));
            var dontThrow = new Menu("Don't throw at", "DontThrow");
            foreach (var hero in ObjectManager.Get<Obj_AI_Hero>().Where(hero => hero.IsEnemy))
            {
                dontThrow.AddItem(new MenuItem("DontThrow" + hero.SkinName, hero.SkinName)).SetValue(false);
            }
            Menu.AddSubMenu(dontThrow);
            Menu.Item("HitChance").ValueChanged += Program_ValueChanged;
            Menu.Item("DecreaseRange").ValueChanged += Program_ValueChanged1;
            Menu.AddToMainMenu();

            Throw = new Spell(spell, 2500f);
            Throw.SetSkillshot(.33f, 50f, 1600, true, SkillshotType.SkillshotLine);
            Throw.MinHitChance = GetHitChance();

            Game.OnUpdate += Game_OnUpdate;
        }
        private static Menu _Menu()
        {
            var menu = new Menu(_MenuNameBase, "rendMenu");

            var subMenu = new Menu(".Kill","autoRendMenu");
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendNonKillables", "Rend NonKillables").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendEpics", "Rend epic monsters").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBuffs", "Rend large buff monsters").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendSmallMonster", "Rend small monsters").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendEpicMinions", "Rend epic minions(Seige,Super)").SetValue(true));
            subMenu.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendEnemyChampions", "Rend enemies").SetValue(true));

            var subMenu2 = new Menu(".Cases", "caseRendMenu");

            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendMinions", "Rend minions").SetValue(true));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendMinions.Slider.Killed", "Required minions killed").SetValue(new Slider(1, 2, 10)));

            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendHarrassKill", "Rend harass (kills minion + stack on enemy)").SetValue(true));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendHarrassKill.Slider.Stacks", "Required stacks on enemy").SetValue(new Slider(1, 1, 5)));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendHarrassKill.Slider.Killed", "Required minions killed").SetValue(new Slider(2, 2, 10)));

            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBeforeDeath", "Rend before death").SetValue(false));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBeforeDeath.Slider.Enemies", "Required enimies with stacks").SetValue(new Slider(1, 1, 5)));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBeforeDeath.Slider.Stacks", "Required stacks on enimies").SetValue(new Slider(1, 1, 5)));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendBeforeDeath.Slider.PercentHP", "Required remaining HP%(Player)").SetValue(new Slider(15, 1, 40)));

            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendOnLeave", "Rend on leave").SetValue(false));
            subMenu2.AddItem(new MenuItem(_MenuItemBase + "Boolean.RendOnLeave.Slider.Stacks", "Required stacks").SetValue(new Slider(4, 1, 10)));

            menu.AddSubMenu(subMenu);
            menu.AddSubMenu(subMenu2);

            return menu;
        }
Example #29
0
 public override void ComboMenu(Menu config)
 {
     config.AddBool("ComboQ", "Use Q", true);
     config.AddBool("ComboW", "Use W", true);
     config.AddBool("ComboE", "Use E", true);
     config.AddBool("ComboR", "Use R1", true);
 }
        public static void AddToMenu(Menu menu, bool ally, bool enemy)
        {
            try
            {
                _menu = menu;

                foreach (var hero in GameObjects.Heroes.Where(h => (ally && h.IsAlly || enemy && h.IsEnemy) && !h.IsMe))
                {
                    var spells =
                        SpellSlots.Select(slot => hero.GetSpell(slot))
                            .Where(spell => spell != null && !spell.SData.IsAutoAttack())
                            .Where(
                                spell =>
                                    spell.SData.TargettingType == SpellDataTargetType.Unit ||
                                    spell.SData.TargettingType == SpellDataTargetType.SelfAoe)
                            .ToList();
                    if (spells.Any())
                    {
                        var heroMenu = menu.AddSubMenu(new Menu(hero.ChampionName, menu.Name + "." + hero.ChampionName));
                        foreach (var spell in spells)
                        {
                            heroMenu.AddItem(
                                new MenuItem(heroMenu.Name + "." + spell.SData.Name, spell.Slot.ToString().ToUpper()))
                                .SetValue(true);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                Global.Logger.AddItem(new LogItem(ex));
            }
        }