Esempio n. 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;
        }
Esempio n. 2
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;
        }
Esempio n. 3
0
 public Taric()
 {
     Q = new Spell(SpellSlot.Q, 750);
     W = new Spell(SpellSlot.W, 200);
     E = new Spell(SpellSlot.E, 625);
     R = new Spell(SpellSlot.R, 200);
 }
Esempio n. 4
0
 public Irelia()
 {
     Q = new Spell(SpellSlot.Q, 650);
     W = new Spell(SpellSlot.W, Orbwalking.GetRealAutoAttackRange(ObjectManager.Player));
     E = new Spell(SpellSlot.E, 425);
     R = new Spell(SpellSlot.R, 1000);
 }
Esempio n. 5
0
File: Janna.cs Progetto: SmokyBot/LS
        public static void Load()
        {
            Q = new Spell(SpellSlot.Q, 1100f, TargetSelector.DamageType.Magical);
            W = new Spell(SpellSlot.W, 600f, TargetSelector.DamageType.Magical);
            E = new Spell(SpellSlot.E, 800f);
            R = new Spell(SpellSlot.R, 550f);

            Q.SetSkillshot(0.25f, 120f, 900f, false, SkillshotType.SkillshotLine);

            AIO_Menu.Champion.Combo.addUseQ();
            AIO_Menu.Champion.Combo.addUseW();
            //AIO_Menu.Champion.Combo.addUseR();

            AIO_Menu.Champion.Harass.addUseQ(false);
            AIO_Menu.Champion.Harass.addUseW();
            AIO_Menu.Champion.Harass.addIfMana();

            AIO_Menu.Champion.Misc.addHitchanceSelector();
            AIO_Menu.Champion.Misc.addUseAntiGapcloser();
            AIO_Menu.Champion.Misc.addUseInterrupter();
            AIO_Menu.Champion.Misc.addItem("Auto E", true);

            AIO_Menu.Champion.Drawings.addQrange();
            AIO_Menu.Champion.Drawings.addWrange();
            AIO_Menu.Champion.Drawings.addErange();
            AIO_Menu.Champion.Drawings.addRrange();

            AIO_Menu.Champion.Drawings.addDamageIndicator(getComboDamage);

            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Obj_AI_Hero.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
        }
Esempio n. 6
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);
        }
Esempio n. 7
0
 public Template()
 {
     Q = new Spell(SpellSlot.Q, 0);
     W = new Spell(SpellSlot.W, 0);
     E = new Spell(SpellSlot.E, 0);
     R = new Spell(SpellSlot.R, 0);
 }
Esempio n. 8
0
        public void LoadOKTW()
        {
            Q = new Spell(SpellSlot.Q, 0);
            W = new Spell(SpellSlot.W, 950);
            E = new Spell(SpellSlot.E, 1200);
            R = new Spell(SpellSlot.R, 975);

            W.SetSkillshot(0.25f, 100f, 1410f, false, SkillshotType.SkillshotCircle);
            Config.SubMenu("Draw").AddItem(new MenuItem("notif", "Notification (timers)").SetValue(true));
            Config.SubMenu("Draw").AddItem(new MenuItem("qRange", "Q range").SetValue(false));
            Config.SubMenu("Draw").AddItem(new MenuItem("eRange", "E range").SetValue(false));
            Config.SubMenu("Draw").AddItem(new MenuItem("rRange", "R range").SetValue(false));
            Config.SubMenu("Draw").AddItem(new MenuItem("onlyRdy", "Draw only ready spells").SetValue(true));

            Config.SubMenu(Player.ChampionName).SubMenu("Q Config").AddItem(new MenuItem("countQ", "Auto Q if x enemies are going in your direction 0-disable").SetValue(new Slider(3, 5, 0)));

            Config.SubMenu(Player.ChampionName).SubMenu("W Config").AddItem(new MenuItem("autoW", "AutoW").SetValue(true));

            Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("Eks", "E ks").SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("countE", "Auto E if x stacks & out range AA").SetValue(new Slider(6, 6, 0)));
            Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("5e", "Always E if 6 stacks").SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("jungleE", "Jungle ks E").SetValue(true));

            Config.SubMenu(Player.ChampionName).SubMenu("R Config").AddItem(new MenuItem("Rks", "R KS out range AA").SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("R Config").AddItem(new MenuItem("countR", "Auto R if x enemies (combo)").SetValue(new Slider(3, 5, 0)));

            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            //AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            // Interrupter.OnPossibleToInterrupt += Interrupter_OnPossibleToInterrupt;
            //Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }
Esempio n. 9
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;
        }
Esempio n. 10
0
 public Riven()
 {
 E = new Spell(SpellSlot.E, 390f);
 Q = new Spell(SpellSlot.Q, 250f);
 W = new Spell(SpellSlot.W, 150f);
 R = new Spell(SpellSlot.R, 900f);
 }
Esempio n. 11
0
 public Zilean()
 {
     Q = new Spell(SpellSlot.Q, 700);
     W = new Spell(SpellSlot.W, 0);
     E = new Spell(SpellSlot.E, 700);
     R = new Spell(SpellSlot.R, 900);
 }
Esempio n. 12
0
        public static void OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Riven")
            {
                return; // This guy is missing out..
            }

            CreateMenu();

            Q = new Spell(SpellSlot.Q, 260) { Delay = 0.5f };
            W = new Spell(SpellSlot.W, 260);
            E = new Spell(SpellSlot.E, 250) { Delay = 0.3f, Speed = 1450 };
            R = new Spell(SpellSlot.R, 1100);
            Ignite = new Spell(Player.GetSpellSlot("summonerdot"), 600);

            Q.SetSkillshot(0.5f, 100, 1400, false, SkillshotType.SkillshotCone);
            R.SetSkillshot(0.25f, 150, 2200, false, SkillshotType.SkillshotCone);

            Obj_AI_Base.OnPlayAnimation += Obj_AI_Base_OnPlayAnimation;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;

            Game.OnUpdate += RivenCombo.OnGameUpdate;
            Drawing.OnDraw += DrawingOnOnDraw;

            AntiGapcloser.OnEnemyGapcloser += AntiGapcloserOnOnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Interrupter2OnOnInterruptableTarget;

            Utility.HpBarDamageIndicator.Enabled = true;
            Utility.HpBarDamageIndicator.DamageToUnit = RivenCombo.GetDamage;

            NotificationHandler.ShowWelcome();

            Game.PrintChat("<font color=\"#7CFC00\"><b>EasyPeasyRivenSqueezy:</b></font> Loaded");
        }
Esempio n. 13
0
        private static void OnLoad()
        {
            AssemblyMenu = new Menu("ExoCondemn - Flash E","dz191.exocondemn", true);

            AssemblyMenu.AddItem(
                new MenuItem("dz191.exocondemn.pushdistance", "Push Distance").SetValue(
                    new Slider(400, 370, 465)));

            AssemblyMenu.AddItem(
                new MenuItem("dz191.exocondemn.execute", "Do Flash Condemn!").SetValue(
                    new KeyBind("Z".ToCharArray()[0], KeyBindType.Press)));

            AssemblyMenu.AddItem(
                new MenuItem("dz191.exocondemn.onlyone", "Only for 1v1").SetValue(true));

            AssemblyMenu.AddToMainMenu();
            

            Condemn = new Spell(SpellSlot.E, 590f);
            LoadFlash();
            Condemn.SetTargetted(0.25f, 2000f);

            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += OnDraw;
        }
Esempio n. 14
0
        protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
        {
            base.OnLoad(sender, eventArgs);

            Spell = new Spell(SpellSlot.W, 1000);
            Spell.SetSkillshot(.25f, 80f, 1550f, false, SkillshotType.SkillshotLine);
        }
Esempio n. 15
0
 public Darius()
 {
     Q = new Spell(SpellSlot.Q, 425);
     W = new Spell(SpellSlot.W, 145);
     E = new Spell(SpellSlot.E, 550);
     R = new Spell(SpellSlot.R, 460);
 }
Esempio n. 16
0
		public Shaco()
		{
			Q = new Spell(SpellSlot.Q, 400);
			W = new Spell(SpellSlot.W, 425);
			E = new Spell(SpellSlot.E, 625);
			R = new Spell(SpellSlot.R, 0);
		}
Esempio n. 17
0
 public Soraka()
 {
     Q = new Spell(SpellSlot.Q, 950);
     W = new Spell(SpellSlot.W, 450);
     E = new Spell(SpellSlot.E, 925);
     R = new Spell(SpellSlot.R);
 }
Esempio n. 18
0
        public static void Game_OnLoad(EventArgs args)
        {
            // Verify champion
            if (Player.ChampionName != ChampionName)
                return;

            Notifications.AddNotification("Twitch by TheOBJop", 2);

            // Spells
            _q = new Spell(SpellSlot.Q, 1500);
            _w = new Spell(SpellSlot.W, 950);
            _w.SetSkillshot(0.25f, 120f, 1400f, false, SkillshotType.SkillshotCircle);
            _e = new Spell(SpellSlot.E, 1200);
            _r = new Spell(SpellSlot.R, 850);

            lastKills = Player.ChampionsKilled;

            // Menu
            TwitchMenu.Init();

            CustomDamageIndicator.Initialize(GetDamage);

            // Listen to Events
            Game.OnUpdate += Game_OnUpdate;
            CustomEvents.Unit.OnDash += Unit_OnDash;
            Game.OnNotify += Game_OnNotify;
            Drawing.OnDraw += Drawing_OnDraw;
        }
Esempio n. 19
0
		public Garen()
		{
			Q = new Spell(SpellSlot.Q);
			W = new Spell(SpellSlot.W);
			E = new Spell(SpellSlot.E, 165);
			R = new Spell(SpellSlot.R, 400);
		}
Esempio n. 20
0
		public Warwick()
		{
			Q = new Spell(SpellSlot.Q, 400);
			W = new Spell(SpellSlot.W, 1000);
			E = new Spell(SpellSlot.E, 1500);
			R = new Spell(SpellSlot.R, 700);
		}
Esempio n. 21
0
        protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs)
        {
            base.OnLoad(sender, eventArgs);

            Spell = new Spell(SpellSlot.R, 1200);
            Spell.SetSkillshot(.2f, 110f, 2500f, true, SkillshotType.SkillshotLine);
        }
        public Ezreal()
        {
            Q = new Spell(SpellSlot.Q, 1150f);
            Q.SetSkillshot(0.25f, 60f, 2000f, true, SkillshotType.SkillshotLine);

            W = new Spell(SpellSlot.W, 900f);
            W.SetSkillshot(0.25f, 80f, 1600f, false, SkillshotType.SkillshotLine);

            E = new Spell(SpellSlot.E);

            R = new Spell(SpellSlot.R, 2500f);
            R.SetSkillshot(1f, 160f, 2000f, false, SkillshotType.SkillshotLine);

            Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
            Utility.HpBarDamageIndicator.Enabled = true;

            VText = new Font(
                Drawing.Direct3DDevice,
                new FontDescription
                {
                    FaceName = "Courier new",
                    Height = 15,
                    OutputPrecision = FontPrecision.Default,
                    Quality = FontQuality.Default,
                });

            Utils.PrintMessage("Ezreal loaded.");
        }
Esempio n. 23
0
        public static void CastBasicFarm(Spell spell)
        {
            if (!spell.IsReady())
                return;
            var minion = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, spell.Range, MinionTypes.All, MinionTeam.NotAlly);

            if (minion.Count == 0)
                return;

            if (spell.Type == SkillshotType.SkillshotCircle)
            {
                spell.UpdateSourcePosition();

                var predPosition = spell.GetCircularFarmLocation(minion);

                if (predPosition.MinionsHit >= 2)
                {
                    spell.Cast(predPosition.Position);
                }
            }
            else if (spell.Type == SkillshotType.SkillshotLine || spell.Type == SkillshotType.SkillshotCone)
            {
                spell.UpdateSourcePosition();

                var predPosition = spell.GetLineFarmLocation(minion);

                if (predPosition.MinionsHit >= 2)
                    spell.Cast(predPosition.Position);
            }
        }
Esempio n. 24
0
        static SpellManager()
        {
            Q = new Spell(SpellSlot.Q, 700);
            Q.SetTargetted(.401f, 2000);

            W = new Spell(SpellSlot.W, 600);
            W.SetSkillshot(.5f, 100, 2000, false, SkillshotType.SkillshotCircle);

            E = new Spell(SpellSlot.E, 950);
            E.SetSkillshot(.25f, 70, 1750, true, SkillshotType.SkillshotLine);

            ER = new Spell(SpellSlot.R, 950);
            ER.SetSkillshot(.25f, 70, 1750, true, SkillshotType.SkillshotLine);

            EPrediction = new Spell(SpellSlot.E, 950);
            EPrediction.SetSkillshot(.25f, 70, 1750, true, SkillshotType.SkillshotLine);

            R = new Spell(SpellSlot.R, 720);
            {
                SpellList.Add(Q);
                SpellList.Add(W);
                SpellList.Add(E);
                SpellList.Add(R);
            }
        }
Esempio n. 25
0
        public void LoadOKTW()
        {
            Q = new Spell(SpellSlot.Q);
            E = new Spell(SpellSlot.E);
            W = new Spell(SpellSlot.W);
            R = new Spell(SpellSlot.R);

            Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWard", "Auto Ward").SetValue(true));
            Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("autoBuy", "Auto buy blue trinket after lvl 9").SetValue(false));
            Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWardBlue", "Auto Blue Trinket").SetValue(true));
            Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWardCombo", "Only combo mode").SetValue(true));
            Config.SubMenu("AutoWard OKTW©").AddItem(new MenuItem("AutoWardPink", "Auto VisionWard, OracleLens").SetValue(true));

            foreach (var hero in ObjectManager.Get<Obj_AI_Hero>())
            {
                if (hero.IsEnemy)
                {
                    if (hero.ChampionName == "Rengar")
                        rengar = true;
                    if (hero.ChampionName == "Vayne")
                        Vayne = hero;
                }
            }

            Game.OnUpdate += Game_OnUpdate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            GameObject.OnCreate +=GameObject_OnCreate;
            GameObject.OnDelete += GameObject_OnDelete;
        }
Esempio n. 26
0
 public FiddleSticks()
 {
     Q = new Spell(SpellSlot.Q, 575);
     W = new Spell(SpellSlot.W, 575);
     E = new Spell(SpellSlot.E, 750);
     R = new Spell(SpellSlot.R, 800);
 }
Esempio n. 27
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Heimerdinger")
                return;

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

            Menu = new Menu(Player.ChampionName, Player.ChampionName, 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 drawMenu = Menu.AddSubMenu(new Menu("Drawings", "Drawings"));

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

            Menu.AddToMainMenu();

            Drawing.OnDraw += Drawing_OnDraw;

            Notifications.AddNotification("Heimerwalker Loaded!", 10000);
        }
Esempio n. 28
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;
        }
Esempio n. 29
0
        // Default Setting

        private void SkillSet()
        {
            try
            {
                _Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 900);
                _Q.SetSkillshot(0.25f, 70f, 2000f, false, SkillshotType.SkillshotLine);
                _W = new LeagueSharp.Common.Spell(SpellSlot.W, 900);
                _W.SetSkillshot(0.5f, 200f, float.MaxValue, false, SkillshotType.SkillshotCircle);
                _E = new LeagueSharp.Common.Spell(SpellSlot.E, 1150); // true range 750, circle 400
                _E.SetSkillshot(1.2f, 80f, float.MaxValue, false, SkillshotType.SkillshotCircle);
                _R = new LeagueSharp.Common.Spell(SpellSlot.R, 615);
            }
            catch (Exception)
            {
                if (NowTime() > ErrorTime)
                {
                    Chat.Print(ChampName + " in FreshBooster isn't Load. Error Code 01");
                    ErrorTime = TickCount(10000);
                }
            }
        }
Esempio n. 30
0
        public Ashe()
        {
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q);
            W = new LeagueSharp.Common.Spell(SpellSlot.W, 1200);
            E = new LeagueSharp.Common.Spell(SpellSlot.E);
            R = new LeagueSharp.Common.Spell(SpellSlot.R, 4000);

            W.SetSkillshot(250f, (float)(45f * Math.PI / 180), 900f, true, SkillshotType.SkillshotCone);
            E.SetSkillshot(377f, 299f, 1400f, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(250f, 130f, 1600f, false, SkillshotType.SkillshotLine);

            Obj_AI_Base.OnProcessSpellCast     += Game_OnProcessSpell;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;

            Obj_AI_Base.OnBuffGain += (sender, args) =>
            {
                if (!Program.misc["RInterruptable"].Cast <CheckBox>().CurrentValue)
                {
                    return;
                }

                BuffInstance aBuff =
                    (from fBuffs in
                     sender.Buffs.Where(
                         s =>
                         sender.Team != ObjectManager.Player.Team &&
                         sender.LSDistance(ObjectManager.Player.Position) < 2500)
                     from b in new[] { "katarinar", "MissFortuneBulletTime", "crowstorm" }

                     where b.Contains(args.Buff.Name.ToLower())
                     select fBuffs).FirstOrDefault();

                if (aBuff != null && R.IsReady())
                {
                    R.Cast(sender.Position);
                }
            };

            Utils.Utils.PrintMessage("Ashe loaded.");
        }
Esempio n. 31
0
        /// <summary>
        ///     Fired when the game loads.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void OnGameLoad()
        {
            try
            {
                if (Player.ChampionName != "Quinn")
                {
                    return;
                }

                GenerateMenu();

                var igniteSlot = Player.GetSpell(SpellSlot.Summoner1).Name.ToLower().Contains("summonerdot")
                    ? SpellSlot.Summoner1
                    : Player.GetSpell(SpellSlot.Summoner2).Name.ToLower().Contains("summonerdot")
                        ? SpellSlot.Summoner2
                        : SpellSlot.Unknown;

                if (igniteSlot != SpellSlot.Unknown)
                {
                    IgniteSpell = new Spell(igniteSlot, 600f);
                }

                Q = new Spell(SpellSlot.Q, 1025f);
                W = new Spell(SpellSlot.W, 2100f);
                E = new Spell(SpellSlot.E, 675f);
                R = new Spell(SpellSlot.R, 0);

                Q.SetSkillshot(313f, 60f, 1550, true, SkillshotType.SkillshotLine);

                Game.OnUpdate  += OnUpdate;
                Drawing.OnDraw += OnDraw;
                AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
                Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
                Orbwalker.OnPreAttack += OrbwalkingBeforeAttack;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Esempio n. 32
0
        public static void OnLoad()
        {
            if (Player.ChampionName != "Kassadin")
            {
                return;
            }
            Q            = new Spell(SpellSlot.Q, 650);
            W            = new Spell(SpellSlot.W, 200);
            E            = new Spell(SpellSlot.E, 400);
            R            = new Spell(SpellSlot.R, 700);
            DamageToUnit = GetComboDamage;
            E.SetSkillshot(0.25f, 20, int.MaxValue, false, SkillshotType.SkillshotCone);
            R.SetSkillshot(0.25f, 270, int.MaxValue, false, SkillshotType.SkillshotCircle);

            MenuConfig.OnLoad();
            Game.OnUpdate                  += OnUpdate;
            Obj_AI_Base.OnSpellCast        += OnDoCast;
            Obj_AI_Base.OnSpellCast        += OnDoCasts;
            Spellbook.OnCastSpell          += OnCastSpell;
            Obj_AI_Base.OnProcessSpellCast += OnProcess;
            Drawing.OnDraw                 += OnDraw;
        }
Esempio n. 33
0
        /// <summary>
        ///     Spell extension for cast aoe arc spell with SPrediction
        /// </summary>
        /// <param name="minHit">Minimum aoe hits to cast</param>
        /// <returns></returns>
        public static bool SPredictionCastAoeArc(this Spell s, int minHit)
        {
            if (minHit < 2)
            {
                throw new InvalidOperationException("Minimum aoe hit count cannot be less than 2");
            }

            if (s.Collision)
            {
                throw new InvalidOperationException("Collisionable spell");
            }

            var result = ArcPrediction.GetAoePrediction(s.Width, s.Delay, s.Speed, s.Range, s.From.LSTo2D(),
                                                        s.RangeCheckFrom.LSTo2D());

            if (result.HitCount >= minHit)
            {
                return(s.Cast(result.CastPosition));
            }

            return(false);
        }
Esempio n. 34
0
        public static void OnLoad(EventArgs args)
        {
            MenuConfig.MenuLoaded();
            Ignite = Player.GetSpellSlot("SummonerDot");
            // thanks to Shine for spell values!

            _q = new Spell(SpellSlot.Q, 900f);
            _q.SetSkillshot(0.5f, 60f, _q.Instance.SData.MissileSpeed, true, SkillshotType.SkillshotLine);

            _w = new Spell(SpellSlot.W, 800f);
            _w.SetSkillshot(0.8f, 50f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            _e = new Spell(SpellSlot.E, 700f);
            _e.SetSkillshot(0.25f, 150f, 2000f, false, SkillshotType.SkillshotLine);

            Game.OnUpdate                      += OnGameUpdate;
            CustomEvents.Unit.OnDash           += OnDash;
            AntiGapcloser.OnEnemyGapcloser     += OnGapClose;
            Interrupter2.OnInterruptableTarget += OnInterrupt;
            Drawing.OnDraw                     += OnDraw;
            Spellbook.OnCastSpell              += OnCastSpell;
        }
Esempio n. 35
0
        public static void Game_OnGameLoad()
        {
            Player = ObjectManager.Player;
            if (Player.ChampionName != ChampName)
            {
                return;
            }
            _Q = new Spell(SpellSlot.Q, 950);
            _Q.SetSkillshot(0.25f, 60, 1450, false, SkillshotType.SkillshotLine);
            _Q2 = new Spell(SpellSlot.Q, 950);
            _Q2.SetSkillshot(0.25f, 60, 1450, false, SkillshotType.SkillshotLine);
            _W = new Spell(SpellSlot.W, 650);
            _E = new Spell(SpellSlot.E, 650);
            _R = new Spell(SpellSlot.R, 900);

            InitMenu();
            Game.OnUpdate += OnGameUpdate;
            Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;

            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
        }
Esempio n. 36
0
        public static void LoadOKTW()
        {
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 500f);
            W = new LeagueSharp.Common.Spell(SpellSlot.W, 700f);
            E = new LeagueSharp.Common.Spell(SpellSlot.E, 250f);
            R = new LeagueSharp.Common.Spell(SpellSlot.R, 650f);

            R.SetSkillshot(0.25f, 300f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            drawMenu = Config.AddSubMenu("Drawings");
            drawMenu.Add("qRange", new CheckBox("Q range", false));
            drawMenu.Add("wRange", new CheckBox("W range", false));
            drawMenu.Add("eRange", new CheckBox("E range", false));
            drawMenu.Add("rRange", new CheckBox("R range", false));
            drawMenu.Add("onlyRdy", new CheckBox("Draw only ready spells", true));

            qMenu = Config.AddSubMenu("Q Config");
            qMenu.Add("autoQ", new CheckBox("Auto Q", true));

            wMenu = Config.AddSubMenu("W Config");
            wMenu.Add("autoW", new CheckBox("Auto W", true));
            wMenu.Add("slowW", new CheckBox("Auto W slow", true));

            eMenu = Config.AddSubMenu("E Config");
            eMenu.Add("autoE", new CheckBox("Auto E", true));

            rMenu = Config.AddSubMenu("R Config");
            rMenu.Add("rCount", new Slider("Auto R x enemies", 3, 0, 5));
            rMenu.Add("useR", new KeyBind("Semi-manual cast R key", false, KeyBind.BindTypes.HoldActive, 'T'));

            farmMenu = Config.AddSubMenu("Farm");
            farmMenu.Add("Mana", new Slider("Clear Mana", 30, 0, 100));
            farmMenu.Add("jungleQ", new CheckBox("Jungle Q", true));
            farmMenu.Add("jungleE", new CheckBox("Jungle E", true));
            farmMenu.Add("laneQ", new CheckBox("Lane clear Q", true));

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate  += GameOnOnUpdate;
        }
Esempio n. 37
0
        public static void Game_OnGameLoad()
        {
            //Verify Champion
            if (Player.ChampionName != "RekSai")
            {
                return;
            }

            //Spells
            _q  = new Spell(SpellSlot.Q);
            _q2 = new Spell(SpellSlot.Q, 1450);
            _q2.MinHitChance = HitChance.Medium;
            _w  = new Spell(SpellSlot.W);
            _e  = new Spell(SpellSlot.E, 250);
            _e2 = new Spell(SpellSlot.E, 500);
            _r  = new Spell(SpellSlot.R);
            _q2.SetSkillshot(0.5f, 60, 1950, true, SkillshotType.SkillshotLine);

            _menu = MainMenu.AddMenu("RekSai", "RekSai");

            spellMenu = _menu.AddSubMenu("Spells", "Spells");
            spellMenu.Add(comboW1, new CheckBox(comboW1));
            spellMenu.Add(comboE2, new CheckBox(comboE2, false));
            spellMenu.Add(comboE1, new Slider(comboE1, 0, 0, 100));

            autoMenu = _menu.AddSubMenu("Auto", "Auto");
            autoMenu.Add(autoq2, new CheckBox(autoq2, false));

            drawMenu = _menu.AddSubMenu("Drawing", "Drawing");
            drawMenu.Add(drawe1, new CheckBox(drawe1, true));
            drawMenu.Add(drawe2, new CheckBox(drawe2, true));
            drawMenu.Add(drawq2, new CheckBox(drawq2, true));

            //Listen to events
            Drawing.OnDraw                 += Drawing_OnDraw;
            Game.OnUpdate                  += Game_OnGameUpdate;
            Orbwalker.OnPostAttack         += Orbwalking_AfterAttack;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }
Esempio n. 38
0
        /// <summary>
        ///     Fired when the game loads.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void OnGameLoad()
        {
            try
            {
                if (Player.ChampionName != "Talon")
                {
                    return;
                }

                var igniteSlot = Player.GetSpell(SpellSlot.Summoner1).Name.ToLower().Contains("summonerdot")
                    ? SpellSlot.Summoner1
                    : Player.GetSpell(SpellSlot.Summoner2).Name.ToLower().Contains("summonerdot")
                        ? SpellSlot.Summoner2
                        : SpellSlot.Unknown;

                if (igniteSlot != SpellSlot.Unknown)
                {
                    IgniteSpell = new Spell(igniteSlot, 600f);
                }

                Q = new Spell(SpellSlot.Q, Orbwalking.GetRealAutoAttackRange(Player) + 100);
                W = new Spell(SpellSlot.W, 600f);
                E = new Spell(SpellSlot.E, 700f);
                R = new Spell(SpellSlot.R, 650f);

                W.SetSkillshot(0.25f, 75, 2300, false, SkillshotType.SkillshotLine);

                GenerateMenu();

                Game.OnUpdate  += OnUpdate;
                Drawing.OnDraw += OnDraw;
                AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
                Orbwalker.OnPostAttack         += OrbwalkingAfterAttack;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Esempio n. 39
0
        public static void LoadOKTW()
        {
            Q  = new Spell(SpellSlot.Q, 1250f);
            Qc = new Spell(SpellSlot.Q, 1250f);
            W  = new Spell(SpellSlot.W, 800f);
            E  = new Spell(SpellSlot.E, 750f);
            R  = new Spell(SpellSlot.R, 3000f);


            Q.SetSkillshot(0.65f, 60f, 2200f, false, SkillshotType.SkillshotLine);
            Qc.SetSkillshot(0.65f, 60f, 2200f, true, SkillshotType.SkillshotLine);
            W.SetSkillshot(1.5f, 20f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            E.SetSkillshot(0.25f, 70f, 1600f, true, SkillshotType.SkillshotLine);
            R.SetSkillshot(0.7f, 200f, 1500f, false, SkillshotType.SkillshotCircle);

            LoadMenuOKTW();

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate  += Game_OnGameUpdate;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }
Esempio n. 40
0
        /// <summary>
        /// Spell extension for cast aoe vector spell with SPrediction
        /// </summary>
        /// <param name="vectorLenght">Vector lenght</param>
        /// <param name="minHit">Minimum aoe hits to cast</param>
        /// <returns></returns>
        public static bool SPredictionCastAoeVector(this LeagueSharp.Common.Spell s, float vectorLenght, int minHit)
        {
            if (minHit < 2)
            {
                throw new InvalidOperationException("Minimum aoe hit count cannot be less than 2");
            }

            if (s.Collision)
            {
                throw new InvalidOperationException("Collisionable spell");
            }

            VectorPrediction.AoeResult result = VectorPrediction.GetAoePrediction(s.Width, s.Delay, s.Speed, s.Range, vectorLenght, s.RangeCheckFrom.To2D());


            if (result.HitCount >= minHit)
            {
                return(s.Cast(result.CastSourcePosition, result.CastTargetPosition));
            }

            return(false);
        }
Esempio n. 41
0
        public static void LoadOKTW()
        {
            Q = new Spell(SpellSlot.Q, 1000);
            W = new Spell(SpellSlot.W, 950);
            E = new Spell(SpellSlot.E, 650);
            R = new Spell(SpellSlot.R, 685);

            Q.SetSkillshot(0.25f, 110f, 870f, false, SkillshotType.SkillshotLine);
            W.SetSkillshot(0.6f, 1f, float.MaxValue, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(2f, 400f, float.MaxValue, false, SkillshotType.SkillshotCircle);

            Chat.Print("Berb : Using Common Pred w/ Medium Hitchance is the best for Anivia!");

            LoadMenuOKTW();

            Game.OnUpdate       += Game_OnGameUpdate;
            GameObject.OnDelete += Obj_AI_Base_OnDelete;
            GameObject.OnCreate += Obj_AI_Base_OnCreate;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
            Drawing.OnDraw += Drawing_OnDraw;
        }
Esempio n. 42
0
        public void LoadOKTW()
        {
            Q  = new Spell(SpellSlot.Q, 900f);
            W  = new Spell(SpellSlot.W, 950f);
            E  = new Spell(SpellSlot.E, 450f);
            R  = new Spell(SpellSlot.R, 1000f);
            R1 = new Spell(SpellSlot.R, 1700f);

            Q.SetSkillshot(0.25f, 100f, 2100f, false, SkillshotType.SkillshotLine);
            W.SetSkillshot(0.25f, 120f, 1500f, false, SkillshotType.SkillshotCircle);
            R.SetSkillshot(0.25f, 100f, 2100f, false, SkillshotType.SkillshotLine);
            R1.SetSkillshot(0.25f, 100f, 2100f, false, SkillshotType.SkillshotLine);

            LoadMenuOKTW();

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnTick    += Game_OnGameUpdate;
            AntiGapcloser.OnEnemyGapcloser            += AntiGapcloser_OnEnemyGapcloser;
            LeagueSharp.Common.Orbwalking.AfterAttack += Orbwalker_AfterAttack;

            //          EloBuddy.SDK.Orbwalker.OnPostAttack += Orbwalker_OnPostAttack;
        }
Esempio n. 43
0
        static SpellManager()
        {
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, QSkillshotRange + QCircleRadius);
            Q.SetSkillshot(.25f, 0, 500, false, SkillshotType.SkillshotLine);

            W = new LeagueSharp.Common.Spell(SpellSlot.W, 750);
            W.SetSkillshot(0.5f, 70, 3200, false, SkillshotType.SkillshotLine);

            E = new LeagueSharp.Common.Spell(SpellSlot.E);
            E.SetTargetted(0f, 0f);

            R = new LeagueSharp.Common.Spell(SpellSlot.R, 500);
            R.SetTargetted(.066f, 500);

            var igniteSlot = ObjectManager.Player.GetSpellSlot("summonerdot");

            if (!igniteSlot.Equals(SpellSlot.Unknown))
            {
                Ignite = new LeagueSharp.Common.Spell(igniteSlot, 600);
                Ignite.SetTargetted(.172f, 20);
            }
        }
Esempio n. 44
0
        /// <summary>
        ///     Fired when the game loads.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void OnGameLoad()
        {
            try
            {
                if (Player.ChampionName != "AurelionSol")
                {
                    return;
                }

                var igniteSlot = Player.GetSpellSlot("summonerdot");

                if (igniteSlot != SpellSlot.Unknown)
                {
                    IgniteSpell = new Spell(igniteSlot, 600f);
                }


                Q  = new Spell(SpellSlot.Q, 650f);
                W1 = new Spell(SpellSlot.W, 350f);
                W  = new Spell(SpellSlot.W, 600f);
                new Spell(SpellSlot.E, 400f);
                R = new Spell(SpellSlot.R, 1420f);

                Q.SetSkillshot(0.25f, 180, 850, false, SkillshotType.SkillshotLine);
                R.SetSkillshot(0.25f, 300, 4500, false, SkillshotType.SkillshotLine);

                GenerateMenu();

                Game.OnUpdate                      += OnUpdate;
                Drawing.OnDraw                     += OnDraw;
                Orbwalker.OnPreAttack              += OrbwalkingBeforeAttack;
                AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
                Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Esempio n. 45
0
        public static void SetManaCondition(this LeagueSharp.Common.Spell spell, ManaMode mode, int value)
        {
            if (!ManaDictionary.ContainsKey(mode))
            {
                ManaDictionary.Add(mode, new Dictionary <SpellSlot, int>());
            }

            ManaDictionary[mode].Add(spell.Slot, value);

            var m = mode.ToString();

            if (_menu[m + "Enabled" + spell.Slot] == null)
            {
                _menu.Add(m + "Enabled" + spell.Slot, new CheckBox("Enabled in " + m));
            }

            var item = _menu.Add(ObjectManager.Player.ChampionName + spell.Slot + "Mana" + m, new Slider(spell.Slot + " Mana Percent", value));

            _menu.AddSeparator();

            _menu[ObjectManager.Player.ChampionName + spell.Slot + "Mana" + m].Cast <Slider>().OnValueChange += delegate(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args) { ManaDictionary[mode][spell.Slot] = args.NewValue; };
        }
Esempio n. 46
0
        public static bool IsEnabledAndReady(this LeagueSharp.Common.Spell spell, string mode, bool checkMana = true)
        {
            var m = Variables.Menu;

            if (mode.Contains("combo"))
            {
                m    = MenuGenerator.comboMenu;
                mode = "combo";
            }

            if (mode.Contains("harass"))
            {
                m = MenuGenerator.harassMenu;
            }

            if (mode.Contains("lasthit"))
            {
                m    = MenuGenerator.farmMenu;
                mode = "lasthit";
            }

            if (mode.Contains("clear"))
            {
                m    = MenuGenerator.farmMenu;
                mode = "laneclear";
            }

            var name = string.Format("dz191.vhr.{0}.use{1}", mode.ToLower(), spell.Slot.ToString().ToLower());
            var mana = string.Format("dz191.vhr.{0}.mm.{1}.mana", mode.ToLower(), spell.Slot.ToString().ToLower());

            if (m[name] != null && m[mana] != null)
            {
                return(spell.IsReady() && m[name].Cast <CheckBox>().CurrentValue&& (!checkMana || (ObjectManager.Player.Mana >= m[mana].Cast <Slider>().CurrentValue)));
            }
            else
            {
                return(false);
            }
        }
Esempio n. 47
0
        /// <summary>
        ///     Fired when the game loads.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void OnGameLoad(EventArgs args)
        {
            try
            {
                if (Player.ChampionName != "Alistar")
                {
                    return;
                }

                var igniteSlot = Player.GetSpell(SpellSlot.Summoner1).Name.ToLower().Contains("summonerdot")
                                    ? SpellSlot.Summoner1
                                    : Player.GetSpell(SpellSlot.Summoner2).Name.ToLower().Contains("summonerdot")
                                          ? SpellSlot.Summoner2
                                          : SpellSlot.Unknown;

                if (igniteSlot != SpellSlot.Unknown)
                {
                    IgniteSpell = new Spell(igniteSlot, 600f);
                }

                FlashSlot = Player.GetSpellSlot("summonerflash");

                Q = new Spell(SpellSlot.Q, 365f);
                W = new Spell(SpellSlot.W, 650f);
                E = new Spell(SpellSlot.E, 575f);
                R = new Spell(SpellSlot.R);

                GenerateMenu();
                Game.OnUpdate                      += OnUpdate;
                Drawing.OnDraw                     += OnDraw;
                AttackableUnit.OnDamage            += AttackableUnit_OnDamage;
                Interrupter2.OnInterruptableTarget += OnInterruptableTarget;
                AntiGapcloser.OnEnemyGapcloser     += OnEnemyGapcloser;
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Esempio n. 48
0
        /// <summary>
        ///     Spell extension for cast arc spell with SPrediction
        /// </summary>
        /// <param name="s">Spell to cast</param>
        /// <param name="t">Target for spell</param>
        /// <param name="hc">Minimum HitChance to cast</param>
        /// <param name="reactionIgnoreDelay">Delay to ignore target's reaction time</param>
        /// <param name="minHit">Minimum Hit Count to cast</param>
        /// <param name="rangeCheckFrom">Position where spell will be casted from</param>
        /// <param name="filterHPPercent">Minimum HP Percent to cast (for target)</param>
        /// <returns>true if spell has casted</returns>
        public static bool SPredictionCastArc(this Spell s, AIHeroClient t, HitChance hc, bool arconly = true,
                                              int reactionIgnoreDelay = 0, byte minHit = 1, Vector3?rangeCheckFrom = null, float filterHPPercent = 100)
        {
            if (ConfigMenu.SelectedPrediction == 1)
            {
                throw new NotSupportedException("Arc Prediction not supported in Common prediction");
            }

            if (minHit > 1)
            {
                return(SPredictionCastAoeArc(s, minHit));
            }

            if (t.HealthPercent > filterHPPercent)
            {
                return(false);
            }

            if (rangeCheckFrom == null)
            {
                rangeCheckFrom = ObjectManager.Player.ServerPosition;
            }


            var   avgt   = t.AvgMovChangeTime() + reactionIgnoreDelay;
            float movt   = t.LastMovChangeTime();
            var   avgp   = t.AvgPathLenght();
            var   result = ArcPrediction.GetPrediction(t, s.Width, s.Delay, s.Speed, s.Range, s.Collision,
                                                       t.GetWaypoints(), avgt, movt, avgp, t.LastAngleDiff(), s.From.LSTo2D(), s.RangeCheckFrom.LSTo2D(), arconly);

            if (result.HitChance >= hc)
            {
                s.Cast(result.CastPosition);
                return(true);
            }

            return(false);
        }
Esempio n. 49
0
        /// <summary>
        ///     Spell extension for cast vector spell with SPrediction
        /// </summary>
        /// <param name="s">Spell to cast</param>
        /// <param name="t">Target for spell</param>
        /// <param name="vectorLenght">Vector lenght</param>
        /// <param name="hc">Minimum HitChance to cast</param>
        /// <param name="reactionIgnoreDelay">Delay to ignore target's reaction time</param>
        /// <param name="minHit">Minimum Hit Count to cast</param>
        /// <param name="rangeCheckFrom">Position where spell will be casted from</param>
        /// <param name="filterHPPercent">Minimum HP Percent to cast (for target)</param>
        /// <returns>true if spell has casted</returns>
        public static bool SPredictionCastVector(this Spell s, AIHeroClient t, float vectorLenght, EloBuddy.SDK.Enumerations.HitChance hc,
                                                 int reactionIgnoreDelay = 0, byte minHit = 1, Vector3?rangeCheckFrom = null, float filterHPPercent = 100)
        {
            if (ConfigMenu.SelectedPrediction == 1)
            {
                throw new NotSupportedException("Vector Prediction not supported in Common prediction");
            }

            if (minHit > 1)
            {
                return(SPredictionCastAoeVector(s, vectorLenght, minHit));
            }

            if (t.HealthPercent > filterHPPercent)
            {
                return(false);
            }

            if (rangeCheckFrom == null)
            {
                rangeCheckFrom = ObjectManager.Player.ServerPosition;
            }


            var   avgt   = t.AvgMovChangeTime() + reactionIgnoreDelay;
            float movt   = t.LastMovChangeTime();
            var   avgp   = t.AvgPathLenght();
            var   result = VectorPrediction.GetPrediction(t, s.Width, s.Delay, s.Speed, s.Range, vectorLenght,
                                                          t.GetWaypoints(), avgt, movt, avgp, s.RangeCheckFrom.LSTo2D());

            if (result.HitChance >= hc)
            {
                s.Cast(result.CastSourcePosition, result.CastTargetPosition);
                return(true);
            }

            return(false);
        }
Esempio n. 50
0
        /// <summary>
        ///     When Game Loads
        /// </summary>
        /// <param name="args"></param>
        #region called when loaded
        public static void Load()
        {
            if (Player.ChampionName != ChampName)
            {
                return;
            }

            Q = new Spell(SpellSlot.Q, 625);
            W = new Spell(SpellSlot.W, 550);
            E = new Spell(SpellSlot.E);
            R = new Spell(SpellSlot.R, 600);
            GlobalManager.DamageToUnit = GlobalManager.GetComboDamage;
            W.SetSkillshot(0.5f, 250f, float.MaxValue, false, SkillshotType.SkillshotCone);
            R.SetSkillshot(0.2f, 250f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            CreateMenu();
            FlashSlot       = Player.GetSpellSlot("SummonerFlash");
            Ignite          = Player.GetSpellSlot("SummonerDot");
            Game.OnUpdate  += OnGameUpdate;
            Drawing.OnDraw += DrawManager.OnDraw;
            Obj_AI_Base.OnProcessSpellCast += Game_ProcessSpell;
            // CustomEvents.Unit.OnDash += Unit_OnDash;
            //  AntiGapcloser.OnEnemyGapcloser += OnGapCloser;
        }
Esempio n. 51
0
        public static bool HasManaCondition(this LeagueSharp.Common.Spell spell)
        {
            if (!_menu["Enabled"].Cast <CheckBox>().CurrentValue)
            {
                return(false);
            }

            var mode = CurrentMode;

            if (mode == ManaMode.None || !ManaDictionary.ContainsKey(mode) || !_menu[mode + "Enabled" + spell.Slot].Cast <CheckBox>().CurrentValue)
            {
                return(false);
            }

            var currentMode = ManaDictionary[mode];

            if (!currentMode.ContainsKey(spell.Slot))
            {
                return(false);
            }

            return(ObjectManager.Player.ManaPercent < currentMode[spell.Slot]);
        }
Esempio n. 52
0
 public MyControl(Obj_AI_Hero champ) : base(champ)
 {
     try
     {
         hero = champ;
         foreach (var spell in champSpells)
         {
             var spl = new Spell(spell.Slot, spell.Range);
             if (spell.CastType.IsSkillShot())
             {
                 bool coll = spell.CollisionObjects.Length > 1;
                 spl.SetSkillshot(spell.Delay, spell.Radius, spell.MissileSpeed, coll, spell.SpellType.GetSkillshotType());
             }
             spells.Add(spell, spl);
         }
         getReach();
         ARAMSimulator.farmRange = reach;
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
     }
 }
Esempio n. 53
0
        public Teemo()
        {
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 680);
            R = new LeagueSharp.Common.Spell(SpellSlot.R, 230);
            Q.SetTargetted(0f, 2000f);
            R.SetSkillshot(0.1f, 75f, float.MaxValue, false, SkillshotType.SkillshotCircle);
            Obj_AI_Base.OnBuffGain += (sender, args) =>
            {
                if (R.IsReady())
                {
                    BuffInstance aBuff =
                        (from fBuffs in
                         sender.Buffs.Where(
                             s =>
                             sender.Team != ObjectManager.Player.Team &&
                             sender.LSDistance(ObjectManager.Player.Position) < R.Range)
                         from b in new[]
                    {
                        "teleport", /* Teleport */ "pantheon_grandskyfall_jump", /* Pantheon */
                        "crowstorm",                                             /* FiddleScitck */
                        "zhonya", "katarinar",                                   /* Katarita */
                        "MissFortuneBulletTime",                                 /* MissFortune */
                        "gate",                                                  /* Twisted Fate */
                        "chronorevive"                                           /* Zilean */
                    }
                         where args.Buff.Name.ToLower().Contains(b)
                         select fBuffs).FirstOrDefault();

                    if (aBuff != null)
                    {
                        R.Cast(sender.Position);
                    }
                }
            };

            Utils.Utils.PrintMessage("Teemo loaded.");
        }
Esempio n. 54
0
        public Sivir()
        {
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 1220);
            Q.SetSkillshot(0.25f, 90f, 1350f, false, SkillshotType.SkillshotLine);

            W = new LeagueSharp.Common.Spell(SpellSlot.W, 593);

            E = new LeagueSharp.Common.Spell(SpellSlot.E);

            Obj_AI_Base.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast;

            DangerousList.Add(new DangerousSpells("darius", SpellSlot.R));
            DangerousList.Add(new DangerousSpells("fiddlesticks", SpellSlot.Q));
            DangerousList.Add(new DangerousSpells("garen", SpellSlot.R));
            DangerousList.Add(new DangerousSpells("leesin", SpellSlot.R));
            DangerousList.Add(new DangerousSpells("nautilius", SpellSlot.R));
            DangerousList.Add(new DangerousSpells("skarner", SpellSlot.R));
            DangerousList.Add(new DangerousSpells("syndra", SpellSlot.R));
            DangerousList.Add(new DangerousSpells("warwick", SpellSlot.R));
            DangerousList.Add(new DangerousSpells("zed", SpellSlot.R));
            DangerousList.Add(new DangerousSpells("tristana", SpellSlot.R));

            Utils.PrintMessage("Sivir loaded.");
        }
Esempio n. 55
0
        public void LoadOKTW()
        {
            Q = new Spell(SpellSlot.Q, 0);
            W = new Spell(SpellSlot.W, 950);
            E = new Spell(SpellSlot.E, 1200);
            R = new Spell(SpellSlot.R, 975);

            W.SetSkillshot(0.25f, 100f, 1410f, false, SkillshotType.SkillshotCircle);
            Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("notif", "Notification (timers)", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("eRange", "E range", true).SetValue(false));
            Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("rRange", "R range", true).SetValue(false));
            Config.SubMenu(Player.ChampionName).SubMenu("Draw").AddItem(new MenuItem("onlyRdy", "Draw only ready spells", true).SetValue(true));

            Config.SubMenu(Player.ChampionName).SubMenu("Q Config").AddItem(new MenuItem("countQ", "Auto Q if x enemies are going in your direction 0-disable", true).SetValue(new Slider(3, 5, 0)));
            Config.SubMenu(Player.ChampionName).SubMenu("Q Config").AddItem(new MenuItem("autoQ", "Auto Q in combo", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("Q Config").AddItem(new MenuItem("recallSafe", "Safe Q recall", true).SetValue(true));

            Config.SubMenu(Player.ChampionName).SubMenu("W Config").AddItem(new MenuItem("autoW", "AutoW", true).SetValue(true));

            Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("Eks", "E ks", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("countE", "Auto E if x stacks & out range AA", true).SetValue(new Slider(6, 6, 0)));
            Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("5e", "Always E if 6 stacks", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("jungleE", "Jungle ks E", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("E Config").AddItem(new MenuItem("Edead", "Cast E before Twitch die", true).SetValue(true));

            Config.SubMenu(Player.ChampionName).SubMenu("R Config").AddItem(new MenuItem("Rks", "R KS out range AA", true).SetValue(true));
            Config.SubMenu(Player.ChampionName).SubMenu("R Config").AddItem(new MenuItem("countR", "Auto R if x enemies (combo)", true).SetValue(new Slider(3, 5, 0)));


            Game.OnTick    += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            //AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            // Interrupter.OnPossibleToInterrupt += Interrupter_OnPossibleToInterrupt;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Spellbook.OnCastSpell          += Spellbook_OnCastSpell;
        }
Esempio n. 56
0
        public static void OnGameLoad()
        {
            Chat.Print("Hoola Master Yi - Loaded Successfully, Good Luck! :)");
            Q = new Spell(SpellSlot.Q, 600);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E);
            R = new Spell(SpellSlot.R);

            OnMenuLoad();

            Q.SetTargetted(0.25f, float.MaxValue);

            Game.OnUpdate                  += Game_OnUpdate;
            Game.OnUpdate                  += DetectSpell;
            Drawing.OnEndScene             += Drawing_OnEndScene;
            Obj_AI_Base.OnSpellCast        += OnDoCast;
            Obj_AI_Base.OnPlayAnimation    += OnPlay;
            Spellbook.OnCastSpell          += OnCast;
            Obj_AI_Base.OnSpellCast        += OnDoCastJC;
            Obj_AI_Base.OnProcessSpellCast += BeforeAttack;
            Obj_AI_Base.OnProcessSpellCast += BeforeAttackJC;
            Obj_AI_Base.OnProcessSpellCast += DetectBlink;
            Drawing.OnDraw                 += OnDraw;
        }
Esempio n. 57
0
        /// <summary>
        ///     Gets aoe prediction result
        /// </summary>
        /// <returns>Prediction result as <see cref="Prediction.Result" /></returns>
        public static Prediction.AoeResult GetAoeSPrediction(this Spell s)
        {
            if (s.Collision)
            {
                throw new InvalidOperationException("Collisionable spell");
            }

            switch (s.Type)
            {
            case SkillshotType.SkillshotLine:
                return(LinePrediction.GetAoePrediction(s.Width, s.Delay, s.Speed, s.Range, s.From.LSTo2D(),
                                                       s.RangeCheckFrom.LSTo2D()));

            case SkillshotType.SkillshotCircle:
                return(CirclePrediction.GetAoePrediction(s.Width, s.Delay, s.Speed, s.Range, s.From.LSTo2D(),
                                                         s.RangeCheckFrom.LSTo2D()));

            case SkillshotType.SkillshotCone:
                return(ConePrediction.GetAoePrediction(s.Width, s.Delay, s.Speed, s.Range, s.From.LSTo2D(),
                                                       s.RangeCheckFrom.LSTo2D()));
            }

            throw new NotSupportedException("Unknown skill shot type");
        }
Esempio n. 58
0
        public Jhin()
        {
            Q = new LeagueSharp.Common.Spell(SpellSlot.Q, 600);
            W = new LeagueSharp.Common.Spell(SpellSlot.W, 2400);
            E = new LeagueSharp.Common.Spell(SpellSlot.E, 750);
            R = new LeagueSharp.Common.Spell(SpellSlot.R, 3500);

            W.SetSkillshot(250f, (float)(45f * Math.PI / 180), 900f, true, SkillshotType.SkillshotCone);
            E.SetSkillshot(377f, 299f, 1400f, false, SkillshotType.SkillshotLine);
            R.SetSkillshot(250f, 130f, 1600f, false, SkillshotType.SkillshotLine);

            Obj_AI_Base.OnProcessSpellCast     += Game_OnProcessSpell;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Drawing.OnEndScene += DrawingOnOnEndScene;

            Obj_AI_Base.OnBuffGain += (sender, args) =>
            {
                BuffInstance aBuff =
                    (from fBuffs in
                     sender.Buffs.Where(
                         s =>
                         sender.Team != ObjectManager.Player.Team &&
                         sender.LSDistance(ObjectManager.Player.Position) < 2500)
                     from b in new[] { "katarinar", "MissFortuneBulletTime", "crowstorm" }

                     where b.Contains(args.Buff.Name.ToLower())
                     select fBuffs).FirstOrDefault();

                if (aBuff != null && E.IsReady())
                {
                    R.Cast(sender.Position);
                }
            };

            Utils.Utils.PrintMessage("Jhin loaded.");
        }
Esempio n. 59
-1
        public static void Game_OnGameLoad()
        {
            if (Player.ChampionName != ChampionName) return;

            LoadMenu();
            Q = new Spell(SpellSlot.Q, Player.AttackRange);
            W = new Spell(SpellSlot.W, 1490f);
            E = new Spell(SpellSlot.E, 900f);
            R = new Spell(SpellSlot.R, 2500f);

            W.SetSkillshot(0.6f, 75f, 3300f, true, SkillshotType.SkillshotLine);
            E.SetSkillshot(1.2f, 1f, 1750f, false, SkillshotType.SkillshotCircle);
            R.SetSkillshot(0.7f, 140f, 1500f, false, SkillshotType.SkillshotLine);

            foreach (var hero in ObjectManager.Get<AIHeroClient>())
            {
                if (hero.IsEnemy)
                {
                    Enemies.Add(hero);
                }
                else if(hero.ChampionName.Equals("Blitzcrank"))
                {
                    blitz = hero;
                }
            }

            Game.OnUpdate += Game_OnGameUpdate;
            Orbwalker.OnPreAttack += BeforeAttack;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Chat.Print("<font color=\"#00BFFF\">GENESIS </font>Jinx<font color=\"#000000\"> by Sebby </font> - <font color=\"#FFFFFF\">Loaded</font>");
        }
Esempio n. 60
-1
        public Kalista()
        {
            _q = new Spell(SpellSlot.Q, 1150f, TargetSelector.DamageType.Physical) {MinHitChance = HitChance.High};
            _w = new Spell(SpellSlot.W, 5000f);
            _e = new Spell(SpellSlot.E, 950f);
            _r = new Spell(SpellSlot.R, 1500f);

            _q.SetSkillshot(0.35f, 40f, 2400f, true, SkillshotType.SkillshotLine);

            MenuProvider.Champion.Combo.AddUseQ();
            MenuProvider.Champion.Combo.AddUseE();
            MenuProvider.Champion.Combo.AddItem("Attack Minion For Chasing", false);

            MenuProvider.Champion.Harass.AddUseQ();
            MenuProvider.Champion.Harass.AddIfMana();

            MenuProvider.Champion.Laneclear.AddUseQ(false);
            MenuProvider.Champion.Laneclear.AddItem("Cast Q if Killable Minion Number >=", new Slider(3, 1, 7));
            MenuProvider.Champion.Laneclear.AddUseE();
            MenuProvider.Champion.Laneclear.AddItem("Cast E if Killable Minion Number >=", new Slider(2, 1, 5));
            MenuProvider.Champion.Laneclear.AddIfMana(20);

            MenuProvider.Champion.Jungleclear.AddUseQ();
            MenuProvider.Champion.Jungleclear.AddUseE();
            MenuProvider.Champion.Jungleclear.AddIfMana(20);

            MenuProvider.Champion.Misc.AddItem("Use Killsteal (With E)", true);
            MenuProvider.Champion.Misc.AddItem("Use Mobsteal (With E)", true);
            MenuProvider.Champion.Misc.AddItem("Use Lasthit Assist (With E)", true);
            MenuProvider.Champion.Misc.AddItem("Use Soulbound Saver (With R)", true);
            MenuProvider.Champion.Misc.AddItem("Auto Balista Combo (With R)", true);
            MenuProvider.Champion.Misc.AddItem("Auto Steal Siege minion & Super minion (With E)", true);
            MenuProvider.Champion.Misc.AddItem("Auto E Harass (With E)", true);
            MenuProvider.Champion.Misc.AddItem("^ Don't do this in ComboMode", false);
            MenuProvider.Champion.Misc.AddItem("Auto E Before Die", true);
            MenuProvider.Champion.Misc.AddItem("Auto W on Dragon or Baron (With W)", true);
            MenuProvider.Champion.Misc.AddItem("Cast W on Dragon", new KeyBind('J', KeyBindType.Press));
            MenuProvider.Champion.Misc.AddItem("Cast W on Baron", new KeyBind('K', KeyBindType.Press));

            MenuProvider.Champion.Drawings.AddDrawQrange(Color.FromArgb(100, Color.DeepSkyBlue), true);
            MenuProvider.Champion.Drawings.AddDrawWrange(Color.FromArgb(100, Color.DeepSkyBlue), false);
            MenuProvider.Champion.Drawings.AddDrawErange(Color.FromArgb(100, Color.DeepSkyBlue), true);
            MenuProvider.Champion.Drawings.AddDrawRrange(Color.FromArgb(100, Color.DeepSkyBlue), true);
            MenuProvider.Champion.Drawings.AddItem("Draw E Damage Percent", true);
            MenuProvider.Champion.Drawings.AddDamageIndicator(GetComboDamage);
            MenuProvider.Champion.Drawings.AddDamageIndicatorForJungle(GetJungleDamage);

            Game.OnUpdate += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Orbwalking.OnNonKillableMinion += Orbwalking_OnNonKillableMinion;
            Spellbook.OnCastSpell += Spellbook_OnCastSpell;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;

            _baronLocation = new Vector3(5064f, 10568f, -71f);
            _dragonLocation = new Vector3(9796f, 4432f, -71f);

            Console.WriteLine("Sharpshooter: Kalista Loaded.");
            Game.PrintChat(
                "<font color = \"#00D8FF\"><b>SharpShooter Reworked:</b></font> <font color = \"#FF007F\">Kalista</font> Loaded.");
        }