Beispiel #1
0
        static void Game_OnGameLoad(EventArgs args)
        {
            Notifications.AddNotification("Loading Unreal Feeder...", 300);

            A = new Menu("Unreal Feeder", "unrealfeeder", true);
            A.AddItem(new MenuItem("root.shouldfeed", "Feeding Enabled").SetValue(false));
            A.AddItem(new MenuItem("root.feedmode", "Feeding Mode:").SetValue(new StringList(new[]
                                                                                             { "Closest Enemy", "Bottom Lane", "Middle Lane", "Top Lane", "Wait at Dragon", "Wait at Baron", "Most Fed", "Highest Carrying Potential" }
                                                                                             )));
            A.AddItem(new MenuItem("root.defaultto", "Default To:").SetValue(new StringList(new[]
                                                                                            { "Bottom Lane", "Top Lane", "Middle Lane" }
                                                                                            )));
            A.AddItem(new MenuItem("hehehe1", " "));
            A.AddItem(new MenuItem("root.chat", "Chat at Baron/Dragon").SetValue(false));
            A.AddItem(new MenuItem("root.chat.delay", "Baron/Dragon Chat Delay").SetValue(new Slider(10, 0, 120)));
            A.AddItem(new MenuItem("root.chat2", "Chat on Death").SetValue(true));
            A.AddItem(new MenuItem("hehehe2", " "));
            A.AddItem(new MenuItem("root.laugh", "Laugh").SetValue(true));
            A.AddItem(new MenuItem("root.laugh.delay", "Laugh Delay").SetValue(new Slider(5, 0, 10)));
            A.AddItem(new MenuItem("hehehe3", " "));
            A.AddItem(new MenuItem("root.items", "Buy Items").SetValue(true));
            A.AddItem(new MenuItem("hehehe4", " "));
            A.AddItem(new MenuItem("root.ghost", "Use Ghost").SetValue(false));
            A.AddItem(new MenuItem("root.heal", "Use Heal").SetValue(false));
            A.AddItem(new MenuItem("hehehe7", " "));
            A.AddItem(new MenuItem("hehehe5", "Made by TehBlaxxor"));
            A.AddItem(new MenuItem("hehehe6", "Site: joduska.me"));
            A.AddToMainMenu();

            Ghost = Player.GetSpellSlot("summonerhaste");
            Heal  = Player.GetSpellSlot("summonerheal");

            Game.OnInput  += Game_OnInput;
            Game.OnUpdate += Game_OnUpdate;
            CustomEvents.Game.OnGameEnd += Game_OnGameEnd;

            if (Player.Team == GameObjectTeam.Chaos)
            {
                Notifications.AddNotification("Unreal Feeder: Team Chaos", 300);
            }
            else
            {
                Notifications.AddNotification("Unreal Feeder: Team Order", 300);
            }
        }
Beispiel #2
0
        public static void Check(string name, Version version, string path, int displayTime)
        {
            try
            {
                Task.Factory.StartNew(
                    () =>
                {
                    try
                    {
                        using (var client = new WebClient())
                        {
                            var data =
                                client.DownloadString(
                                    string.Format(
                                        "https://raw.githubusercontent.com/{0}/Properties/AssemblyInfo.cs", path));

                            var gVersion =
                                Version.Parse(
                                    new Regex("AssemblyFileVersion\\((\"(.+?)\")\\)").Match(data).Groups[1].Value
                                    .Replace("\"", ""));

                            if (gVersion > version)
                            {
                                CustomEvents.Game.OnGameLoad +=
                                    delegate
                                {
                                    Notifications.AddNotification(
                                        string.Format(
                                            "[{0}] Update available: {1} => {2}!", name, version, gVersion),
                                        displayTime);
                                };
                            }
                        }
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex);
                    }
                });
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
Beispiel #3
0
        static void OnGameLoad(EventArgs args)
        {
            try
            {
                var cs = ObjectManager.Player.ChampionName;
                Notifications.AddNotification("Feel free to donate to [email protected] <3 ").SetTextColor(Color.MediumVioletRed);
                const string say = ("Kappa Series Loaded : ");
                const string def = ("Kappa Series Doesn't Support : ");
                switch (cs)
                {
                case "Aatrox":
                    new Aatrox();
                    Notifications.AddNotification(say + cs, 5000).SetTextColor(Color.LawnGreen);
                    break;

                case "Ahri":
                    new Ahri();
                    Notifications.AddNotification(say + cs, 5000).SetTextColor(Color.LawnGreen);
                    break;

                case "Akali":
                    new Akali();
                    Notifications.AddNotification(say + cs, 5000).SetTextColor(Color.LawnGreen);
                    break;

                case "Volibear":
                    new Volibear();
                    Notifications.AddNotification(say + cs, 5000).SetTextColor(Color.LawnGreen);
                    break;

                case "DrMundo":
                    new DrMundo();
                    Notifications.AddNotification(say + cs, 5000).SetTextColor(Color.LawnGreen);
                    break;

                default:
                    Notifications.AddNotification(say + def, 5000).SetTextColor(Color.Crimson);
                    break;
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }
Beispiel #4
0
        static void Game_OnGameLoad(EventArgs args)
        {
            switch (ObjectManager.Player.ChampionName.ToLowerInvariant())
            {
            case "vayne":
                Champion = new Vayne();
                break;
            }

            Champion.CreateConfigMenu();
            Champion.SetSpells();

            if (Champion.Spells[0] != null && Champion.Spells[0].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWQ", "Draw Q").SetValue(new Circle(true, Color.Red, Champion.Spells[0].Range)));
            }

            if (Champion.Spells[1] != null && Champion.Spells[1].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWW", "Draw W").SetValue(new Circle(true, Color.Aqua, Champion.Spells[1].Range)));
            }

            if (Champion.Spells[2] != null && Champion.Spells[2].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWE", "Draw E").SetValue(new Circle(true, Color.Bisque, Champion.Spells[2].Range)));
            }

            if (Champion.Spells[3] != null && Champion.Spells[3].Range > 0 && Champion.Spells[3].Range < 3000) //global ult ?
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWR", "Draw R").SetValue(new Circle(true, Color.Chartreuse, Champion.Spells[3].Range)));
            }

            #region Events
            Game.OnUpdate                      += Champion.Game_OnUpdate;
            Orbwalking.BeforeAttack            += Champion.Orbwalking_BeforeAttack;
            AntiGapcloser.OnEnemyGapcloser     += Champion.AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Champion.Interrupter_OnPossibleToInterrupt;
            Obj_AI_Base.OnBuffAdd              += Champion.Obj_AI_Base_OnBuffAdd;
            Obj_AI_Base.OnProcessSpellCast     += Champion.Obj_AI_Base_OnProcessSpellCast;
            #endregion



            Notifications.AddNotification(String.Format("HikiCarry Vayne Masterrace - {0} Loaded !", ObjectManager.Player.ChampionName), 3000);
        }
Beispiel #5
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Nautilus")
            {
                return;
            }

            Q = new Spell(SpellSlot.Q, 1100);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E, 600);
            R = new Spell(SpellSlot.R, 825);

            Q.SetSkillshot(250, 90, 2000, true, SkillshotType.SkillshotLine);

            Menu = new Menu("Meta#", "Meta#", true);

            Menu orbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));

            Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);

            Menu ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector"));

            TargetSelector.AddToMenu(ts);

            Menu comboMenu = Menu.AddSubMenu(new Menu("Combo", "Combo"));

            comboMenu.AddItem(new MenuItem("comboQ", "Use Q").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboW", "Use W").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboE", "Use E").SetValue(true));
            comboMenu.AddItem(new MenuItem("comboR", "Use R").SetValue(true));
            comboMenu.AddItem(new MenuItem("Combo", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));

            Menu drawMenu = Menu.AddSubMenu(new Menu("Drawings", "Drawings"));

            drawMenu.AddItem(new MenuItem("drawQ", "Draw Q").SetValue(true));
            drawMenu.AddItem(new MenuItem("drawE", "Draw E").SetValue(true));
            drawMenu.AddItem(new MenuItem("drawR", "Draw R").SetValue(true));

            Menu.AddToMainMenu();

            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Notifications.AddNotification("Mini Nautilus!", 10000);
            Game.PrintChat("<font color=\"#00FFFF\">Mini Nautilus by Frosty</font> - <font color=\"#00FFFF\">Loaded!</font>");
        }
Beispiel #6
0
        private static void GameOnOnGameLoad(EventArgs args)
        {
            //TODO: Edit things !?!
            LeagueSharp.Game.PrintChat("<font color=\"#AF7AFF\"><b>UtilityAiO</b></font> LOADED!");
            Notifications.AddNotification("UtilityAiO loaded!", 10, true);

            MainMenuOp = new Menu("UtilityAIO", "mainMenu", true);

            DamageIndicator.LoadIndicator();
            CSCounter.LoadCsCounter();
            new AutoPot(MainMenuOp);

            MainMenuOp.AddItem(new MenuItem("422442<ef<ef4242fxx", ""));
            MainMenuOp.AddItem(new MenuItem("42f<afsfxx", "PRE-RELEASE"));
            MainMenuOp.AddItem(new MenuItem("fsfqwfaxx", "Made By Kyon"));

            MainMenuOp.AddToMainMenu();
        }
Beispiel #7
0
        public static void OnLoad(EventArgs args)
        {
            if (ObjectManager.Player.BaseSkinName != "Rumble")
            {
                return;
            }

            Notifications.AddNotification("ElRumble by jQuery", 5000);
            _ignite = Player.GetSpellSlot("summonerdot");

            spells[Spells.R].SetSkillshot(1700, 120, 1400, false, SkillshotType.SkillshotLine);
            spells[Spells.R1].SetSkillshot(0.25f, 110, 2600, false, SkillshotType.SkillshotLine);
            spells[Spells.E].SetSkillshot(0.5f, 90, 1200, true, SkillshotType.SkillshotLine);

            ElRumbleMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += Drawings.OnDraw;
        }
Beispiel #8
0
        public static void OnLoad(EventArgs args)
        {
            if (ObjectManager.Player.CharData.BaseSkinName != "Alistar")
            {
                return;
            }

            spells[Spells.W].SetTargetted(0.5f, float.MaxValue);

            Notifications.AddNotification("ElAlistarReborn by jQuery", 5000);
            _ignite = Player.GetSpellSlot("summonerdot");

            ElAlistarMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += Drawings.OnDraw;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
        }
Beispiel #9
0
        public static void OnLoad(EventArgs args)
        {
            if (ObjectManager.Player.CharData.BaseSkinName != "Vladimir")
            {
                return;
            }

            spells[Spells.R].SetSkillshot(0.25f, 175, 700, false, SkillshotType.SkillshotCircle);

            Notifications.AddNotification("ElVladimirReborn", 1000);
            _ignite = Player.GetSpellSlot("summonerdot");

            ElVladimirMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += Drawings.OnDraw;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            //Orbwalking.BeforeAttack += OrbwalkingBeforeAttack;
        }
Beispiel #10
0
        public static void Game_OnGameLoad()
        {
            if (Player.ChampionName != "Trundle")
            {
                return;
            }

            spells[Spells.E].SetSkillshot(0.5f, 188f, 1600f, false, SkillshotType.SkillshotCircle);
            ignite = Player.GetSpellSlot("summonerdot");

            Notifications.AddNotification(string.Format("FastTrundle v{0}", ScriptVersion), 8000);
            FastTrundleMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += OnDraw;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
            Obj_AI_Base.OnSpellCast            += ObjAIBase_OnSpellCast;
        }
Beispiel #11
0
 private static void PermaDissable(object sender, OnValueChangeEventArgs e)
 {
     if (sender == null)
         return;
     var Sender = sender as MenuItem;
     if (e.GetNewValue<bool>() && _bye==false)
     {
         _isPermaDissabled = true;
         _bye = true;
         Notifications.AddNotification(new Notification("Chat Perma Dissabled!", 3000).SetBorderColor(Color.Red).SetBoxColor(Color.Black).SetTextColor(Color.Red));
     }
     else if (_bye)
     {
         Notifications.AddNotification(new Notification("Chat Perma Dissabled!", 3000).SetBorderColor(Color.Red).SetBoxColor(Color.Black).SetTextColor(Color.Red));
         Notifications.AddNotification(new Notification("Pssssst remember? :) Try unloading the assembly", 4000).SetBorderColor(Color.Yellow).SetBoxColor(Color.Black).SetTextColor(Color.Orange));
     }
     
 }
Beispiel #12
0
        private static void OnLoad()
        {
            DongerMenu.Init();
            if (ObjectManager.Player.CharData.BaseSkinName != Champion)
            {
                return;
            }

            Notifications.AddNotification("The Donger by TheOBJop");

            // Set skillshots
            spells[Spells.Q].SetSkillshot(0.5f, 40f, 1100f, true, SkillshotType.SkillshotLine);
            spells[Spells.W].SetSkillshot(0.5f, 40f, 3000f, true, SkillshotType.SkillshotLine);
            spells[Spells.E].SetSkillshot(0.5f, 120f, 1200f, false, SkillshotType.SkillshotCircle);
            spells[Spells.E1].SetSkillshot(0.25f + spells[Spells.E].Delay, 120f, 1200f, false,
                                           SkillshotType.SkillshotLine);
            spells[Spells.E2].SetSkillshot(0.3f + spells[Spells.E1].Delay, 120f, 1200f, false,
                                           SkillshotType.SkillshotLine);

            _ignite = SpellSlot.Summoner2;
            Zhonyas = new Items.Item(3157, 1f);

            // Interruption
            Interrupter2.OnInterruptableTarget += (source, eventArgs) => {
                var eSlot = spells[Spells.E];
                if (DongerMenu.Config.Item("Interrupt").GetValue <bool>() &&
                    eSlot.IsReady() &&
                    eSlot.Range >= Player.Distance(source, false))
                {
                    eSlot.Cast(source.Position);
                }
            };

            AntiGapcloser.OnEnemyGapcloser += (activeGapcloser) => {
                if (DongerMenu.Config.Item("AntiGap").GetValue <bool>() &&
                    spells[Spells.E].IsReady() &&
                    activeGapcloser.Sender.IsValidTarget(spells[Spells.E].Range))
                {
                    spells[Spells.E].Cast(activeGapcloser.End);
                }
            };

            Game.OnUpdate += OnGameUpdate;
        }
Beispiel #13
0
        public static void AddToMenu(Menu menu)
        {
            try
            {
                menu.AddItem(
                    new MenuItem(
                        menu.Name + ".version",
                        string.Format("{0}: {1}", "Version", Assembly.GetEntryAssembly().GetName().Version)));
                menu.AddItem(new MenuItem(menu.Name + ".forum", "Forum: Lizzaran"));
                menu.AddItem(new MenuItem(menu.Name + ".github", "GitHub: Lizzaran"));
                menu.AddItem(new MenuItem(menu.Name + ".irc", "IRC: Appril"));
                menu.AddItem(new MenuItem(menu.Name + ".exception", string.Format("{0}: {1}", "Exception", 0)));

                var errorText = "Exception";
                Global.Logger.OnItemAdded += delegate
                {
                    try
                    {
                        var text = menu.Item(menu.Name + ".exception")
                                   .DisplayName.Replace(errorText + ": ", string.Empty);
                        int count;
                        if (int.TryParse(text, out count))
                        {
                            menu.Item(menu.Name + ".exception").DisplayName = string.Format(
                                "{0}: {1}", errorText, count + 1);
                        }
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine(ex);
                    }
                };

                Core.OnShutdown +=
                    delegate
                {
                    Notifications.AddNotification(new Notification(menu.Item(menu + ".exception").DisplayName));
                };
            }
            catch (Exception ex)
            {
                Global.Logger.AddItem(new LogItem(ex));
            }
        }
        public async Task DeleteTeacher(Guid id)
        {
            if (_teacherRepository.EntityExists(id))
            {
                var teacher = await _teacherRepository.GetById(id);

                teacher.Disable();
                await _teacherRepository.Update(id, teacher);
            }

            else
            {
                _notifications.AddNotification("Not Found", "O professor informado não existe!");
            }

            return;
        }
Beispiel #15
0
        public static void OnLoad()
        {
            PonyMenu.Init();
            if (Player.CharData.BaseSkinName != Champion)
            {
                return;
            }

            Notifications.AddNotification("PonyCopter by TheOBJop", 8000);

            Spells.Q.SetSkillshot(0.5f, 700f, 1200f, true, SkillshotType.SkillshotCircle);
            Spells.W.SetSkillshot(0.5f, 1050f, 2000f, true, SkillshotType.SkillshotCircle);
            Spells.E.SetTargetted(0.5f, 800f);
            Spells.R.SetSkillshot(0.25f, 300f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            _ignite = Player.GetSpellSlot("summonerdot");

            Interrupter2.OnInterruptableTarget += (source, eventArgs) =>
            {
                if (Spells.E.IsReady() && source.IsValidTarget(Spells.E.Range) && PonyMenu.Config.Item("InterruptE").GetValue <bool>())
                {
                    Spells.E.Cast();
                }
                if (Spells.R.IsReady() && source.IsValidTarget(Spells.R.Range) && PonyMenu.Config.Item("InterruptR").GetValue <bool>())
                {
                    var pred = Spells.R.GetPrediction(source).Hitchance;
                    if (pred >= HitChance.High)
                    {
                        Spells.R.Cast(source);
                    }
                }
            };

            AntiGapcloser.OnEnemyGapcloser += (activeGapcloser) =>
            {
                if (Spells.E.IsReady() && activeGapcloser.Sender.IsValidTarget(Player.AttackRange) && PonyMenu.Config.Item("Antigap").GetValue <bool>())
                {
                    Spells.E.Cast();
                }
            };

            Game.OnUpdate += OnUpdate;
        }
Beispiel #16
0
        public static void Game_OnGameLoad(EventArgs args)
        {
            if (ObjectManager.Player.BaseSkinName != "Evelynn")
            {
                return;
            }

            Notifications.AddNotification("Automated Evelynn by Automated v1.0.0.3", 4000);

            SpellDirectory[Spells.R].SetSkillshot(0.25f, 650f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            _ignite = Player.GetSpellSlot("summonerdot");

            Menu.Initialize();
            CustomDamageIndicator.Initialize(GetDamage);

            Game.OnUpdate          += OnUpdate;
            Drawing.OnDraw         += Drawings.Drawing_OnDraw;
            Orbwalking.AfterAttack += OrbwalkingAfterAttack;
        }
Beispiel #17
0
        public static void Game_OnGameLoad()
        {
            if (ObjectManager.Player.ChampionName != "Kalista")
            {
                return;
            }

            Console.WriteLine("Injected");

            Notifications.AddNotification(String.Format("ElKalista by jQuery v{0}", ScriptVersion), 10000);
            spells[Spells.Q].SetSkillshot(0.25f, 40f, 1700f, true, SkillshotType.SkillshotLine);

            ElKalistaMenu.Initialize();
            Game.OnUpdate                  += OnGameUpdate;
            Drawing.OnDraw                 += Drawings.Drawing_OnDraw;
            Spellbook.OnCastSpell          += OnCastSpell;
            Orbwalking.OnNonKillableMinion += Orbwalking_OnNonKillableMinion;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }
Beispiel #18
0
        public static void OnLoad(EventArgs args)
        {
            if (ObjectManager.Player.CharData.BaseSkinName != "Trundle")
            {
                return;
            }

            spells[Spells.E].SetSkillshot(0.5f, 188f, 1600f, false, SkillshotType.SkillshotCircle);
            ignite = Player.GetSpellSlot("summonerdot");

            Notifications.AddNotification(string.Format("ElTrundle by jQuery v{0}", ScriptVersion), 8000);
            Game.PrintChat(
                "[00:00] <font color='#f9eb0b'>HEEEEEEY!</font> Use ElUtilitySuite for optimal results! xo jQuery");
            ElTrundleMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += OnDraw;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
        }
Beispiel #19
0
        private static void Game_OnGameLoad()
        {
            KassMenu.Init();
            if (ObjectManager.Player.CharData.BaseSkinName != Champion)
            {
                return;
            }

            Notifications.AddNotification("KicKassadin by TheOBJop");

            // Set skillshots
            spells[Spells.Q].SetTargetted(0.5f, 1400);
            spells[Spells.E].SetSkillshot(0.5f, 10f, float.MaxValue, false, SkillshotType.SkillshotCone);
            spells[Spells.R].SetSkillshot(0.5f, 150f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            _ignite = SpellSlot.Summoner2;

            // Interruption
            Interrupter2.OnInterruptableTarget += (source, eventArgs) =>
            {
                if (source.IsEnemy && Vector3.Distance(source.Position, Player.Position) < spells[Spells.Q].Range)
                {
                    spells[Spells.Q].CastOnUnit(source);
                }
            };

            // Teleport away from the gap closer
            AntiGapcloser.OnEnemyGapcloser += (activeGapcloser) =>
            {
                if (KassMenu.Config.Item("Flee").GetValue <KeyBind>().Active&& KassMenu.Config.Item("Antigap").GetValue <bool>() && spells[Spells.R].IsReady())
                {
                    spells[Spells.R].Cast(Player.Position.Shorten(activeGapcloser.Sender.Position, spells[Spells.R].Range));
                }
                else if (KassMenu.Config.Item("Antigap").GetValue <bool>() && spells[Spells.R].IsReady())
                {
                    spells[Spells.R].Cast(Player.Position.Shorten(activeGapcloser.Sender.Position, Player.Position.Distance(activeGapcloser.End)));
                }
            };

            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawings.Drawing_OnDraw;
        }
Beispiel #20
0
        public static void OnLoad(EventArgs args)
        {
            if (ObjectManager.Player.CharData.BaseSkinName != "Ekko")
            {
                return;
            }

            Notifications.AddNotification("ElEkko by jQuery 1.0.0.1", 10000);
            ignite = Player.GetSpellSlot("summonerdot");

            spells[Spells.Q].SetSkillshot(0.25f, 60, 1650f, false, SkillshotType.SkillshotLine);
            spells[Spells.W].SetSkillshot(2.5f, 200f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            ElEkkoMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += Drawings.OnDraw;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
            GameObject.OnCreate            += Obj_AI_Base_OnCreate;
            GameObject.OnDelete            += Obj_AI_Base_OnDelete;
        }
Beispiel #21
0
        public static void Game_OnGameLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != "Varus")
            {
                return;
            }

            Notifications.AddNotification("ElVarus by jQuery v1.0.1.5", 10000);

            spells[Spells.Q].SetSkillshot(.25f, 70f, 1650f, false, SkillshotType.SkillshotLine);
            spells[Spells.E].SetSkillshot(.50f, 250f, 1400f, false, SkillshotType.SkillshotCircle);
            spells[Spells.R].SetSkillshot(.25f, 120f, 1950f, false, SkillshotType.SkillshotLine);

            spells[Spells.Q].SetCharged("VarusQ", "VarusQ", 250, 1600, 1.2f);

            ElVarusMenu.Initialize();
            Game.OnUpdate  += OnGameUpdate;
            Drawing.OnDraw += Drawings.Drawing_OnDraw;
            //Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
        }
Beispiel #22
0
        public static void OnLoad(EventArgs args)
        {
            _player = ObjectManager.Player;

            if (_player.ChampionName != "Lucian")
            {
                return;
            }

            LoadSpells();
            CreateMenu();
            Notifications.AddNotification(
                new Notification("iDZLucian v" + Assembly.GetExecutingAssembly().GetName().Version + " loaded!", 2500));
            Game.PrintChat("iDZLucian v" + Assembly.GetExecutingAssembly().GetName().Version + " loaded!");
            Game.OnUpdate += OnGameUpdate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Orbwalking.AfterAttack         += OrbwalkingAfterAttack;
            AntiGapcloser.OnEnemyGapcloser += OnGapcloser;
            Drawing.OnDraw += OnDraw;
        }
Beispiel #23
0
        static void Main(string[] args)
        {
            if (args != null)
            {
                CustomEvents.Game.OnGameLoad += eventArgs =>
                {
                    if (ObjectManager.Player.ChampionName != "Urgot")
                    {
                        return;
                    }

                    Spells.Init();
                    Config.Init();
                    Drawing.Init();
                    Mechanics.Init();
                    UpdateChecker.Initialize("Apollo16/LeagueSharp/tree/master/Urgot");
                    Notifications.AddNotification("Apollo's " + ObjectManager.Player.ChampionName + " Loaded", 5000);
                };
            }
        }
Beispiel #24
0
        private static void OnLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != "Katarina")
            {
                return;
            }

            _igniteSlot = _player.GetSpellSlot("summonerdot");

            spells[Spells.R].SetCharged("KatarinaR", "KatarinaR", 550, 550, 1.0f);

            Drawing.OnDraw += Drawings;
            MenuLoad();
            Game.OnUpdate                  += OnUpdate;
            Obj_AI_Hero.OnIssueOrder       += Obj_AI_Hero_OnIssueOrder;
            GameObject.OnCreate            += GameObject_OnCreate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Orbwalking.BeforeAttack        += BeforeAttack;
            Notifications.AddNotification("SmartKatarina by Jouza - jQuery", 5000);
        }
Beispiel #25
0
        public static void Game_OnGameLoad(EventArgs args)
        {
            if (!Player.ChampionName.Equals("Nami", StringComparison.CurrentCultureIgnoreCase))
            {
                return;
            }

            Notifications.AddNotification("ElNamiReborn by jQuery v1.0.0.2", 5000);

            spells[Spells.Q].SetSkillshot(1f, 150f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            spells[Spells.R].SetSkillshot(0.5f, 260f, 850f, false, SkillshotType.SkillshotLine);

            _ignite = Player.GetSpellSlot("summonerdot");

            ElNamiMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += Drawings.Drawing_OnDraw;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
        }
Beispiel #26
0
        public static void Game_OnGameLoad()
        {
            if (ObjectManager.Player.ChampionName != "Corki")
            {
                return;
            }

            Console.WriteLine("Injected");
            Notifications.AddNotification(string.Format("ElCorki by jQuery v{0}", ScriptVersion), 8000);

            spells[Spells.Q].SetSkillshot(0.35f, 250f, 1000f, false, SkillshotType.SkillshotCircle);
            spells[Spells.E].SetSkillshot(0f, (float)(45 * Math.PI / 180), 1500, false, SkillshotType.SkillshotCone);
            spells[Spells.R1].SetSkillshot(0.2f, 40f, 2000f, true, SkillshotType.SkillshotLine);
            spells[Spells.R2].SetSkillshot(0.2f, 40f, 2000f, true, SkillshotType.SkillshotLine);
            _ignite = Player.GetSpellSlot("summonerdot");

            ElCorkiMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += Drawings.Drawing_OnDraw;
        }
Beispiel #27
0
        private static void ReadFiles(string path)
        {
            string line;

            try
            {
                var file = new StreamReader(path + "blackListRC.txt");
                while ((line = file.ReadLine()) != null)
                {
                    if (line.StartsWith("#"))
                    {
                        continue;
                    }
                    _badWords.Add(line);
                }
                line = string.Empty;
                Notifications.AddNotification(new Notification("BlackList loaded", 1000).SetBoxColor(Color.WhiteSmoke).SetTextColor(Color.Green));
            }
            catch (Exception e)
            {
                Notifications.AddNotification(new Notification("Not using text files. You can add words to block (check thread for info)", 2000, true).SetBoxColor(Color.Black).SetTextColor(Color.Red));
            }
            try
            {
                var file = new StreamReader(path + "whiteListRC.txt");
                while ((line = file.ReadLine()) != null)
                {
                    if (line.StartsWith("#"))
                    {
                        continue;
                    }
                    _whiteList.Add(line);
                }
                line = string.Empty;
                Notifications.AddNotification(new Notification("WhiteList loaded", 1000).SetBoxColor(Color.WhiteSmoke).SetTextColor(Color.Green));
            }
            catch (Exception e)
            {
                Notifications.AddNotification(new Notification("You can add words to bypass blocking too! (check thread for info)", 1000).SetBoxColor(Color.Black).SetTextColor(Color.Red));
            }
        }
Beispiel #28
0
        private static void onGameUpdate(EventArgs args)
        {
            if (menu.Item("getCurrentPosition").GetValue <KeyBind>().Active)
            {
                var minions = MinionManager.GetMinions(1000, MinionTypes.All, MinionTeam.All);

                string s = "";
                if (minions.FirstOrDefault(m => m.IsEnemy) != null)
                {
                    s += "enemy " + minions.FirstOrDefault(m => m.IsEnemy).GetLane();
                }
                if (minions.FirstOrDefault(m => m.IsAlly) != null)
                {
                    s += " ally " + minions.FirstOrDefault(m => m.IsAlly).GetLane();
                }
                if (s != "")
                {
                    Notifications.AddNotification(s);
                }
            }
        }
Beispiel #29
0
 static void Program_ValueChanged(object sender, OnValueChangeEventArgs e)
 {
     if (!_main.Item("disable").GetValue<bool>())
     {
         Notifications.AddNotification(new Notification("Your chat dissabled", 2000).SetTextColor(Color.Red).SetBoxColor(Color.Black));
         _isDissabled = true;
     }
     else if (_main.Item("disable").GetValue<bool>())
     {
         var enableTimer = new System.Timers.Timer(30000);
         Notifications.AddNotification(new Notification("Your chat will be enabled in 20 sec", 2000).SetTextColor(Color.Green).SetBoxColor(Color.Black));
         enableTimer.Enabled = true;
         enableTimer.Start();
         enableTimer.Elapsed += enableTimer_Elapsed;
     }
     else
     {
         Notifications.AddNotification(new Notification("Ayee!!error detected! Tell Foxy ASAP! ERROR CODE: -2").SetTextColor(Color.White).SetBoxColor(Color.Blue));
         Console.WriteLine("Value: " + _main.Item("disable").GetValue<bool>());
     }
 }
Beispiel #30
0
        public static void Initialize(string path)
        {
            using (var client = new WebClient())
            {
                new Thread(async() =>
                {
                    try
                    {
                        var data = await client.DownloadStringTaskAsync(string.Format("https://raw.github.com/{0}/Properties/AssemblyInfo.cs", path));
                        foreach (var line in data.Split('\n'))
                        {
                            // Skip comments
                            if (line.StartsWith("//"))
                            {
                                continue;
                            }

                            // Search for AssemblyVersion
                            if (line.StartsWith("[assembly: AssemblyVersion"))
                            {
                                // TODO: Use Regex for this...
                                var serverVersion = new System.Version(line.Substring(28, (line.Length - 4) - 28 + 1));

                                // Compare both versions
                                var assemblyName = Assembly.GetExecutingAssembly().GetName();
                                if (serverVersion > assemblyName.Version)
                                {
                                    var msg = assemblyName.Name + " Update available: " + assemblyName.Version + " => " + serverVersion + "!";
                                    Notifications.AddNotification(msg, 6000, false);
                                }
                            }
                        }
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine("An error occured while trying to check for an update:\n{0}", e.Message);
                    }
                }).Start();
            }
        }