Esempio n. 1
0
        private static void KillSteal()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent)
                          .Where(
                a =>
                !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= Q.Range && !a.IsDead && !a.IsZombie &&
                a.HealthPercent <= 25);

            foreach (
                var target2 in
                enemies)
            {
                if (!target2.IsValidTarget() && Channeling == true)
                {
                    return;
                }

                if (MissInopportuneMenu.KillstealQ() && Q.IsReady() &&
                    target2.Health + target2.AttackShield <
                    Player.GetSpellDamage(target2, SpellSlot.Q))

                {
                    Q.Cast(target2);
                }

                if (MissInopportuneMenu.KillstealE() && E.IsReady() &&
                    target2.Health + target2.AttackShield <
                    Player.GetSpellDamage(target2, SpellSlot.E) && Player.Mana >= 80)
                {
                    E.Cast(target2.ServerPosition);
                }
            }
        }
Esempio n. 2
0
 private void CreateTables()
 {
     if (MissInopportuneMenu.checkWard())
     {
         Normal.Add(new Vector3(9918f, 6538f, 33.13258f));
         Normal.Add(new Vector3(12504f, 1490f, 53.74172f));
         Normal.Add(new Vector3(13312f, 2448f, 51.3669f));
         Normal.Add(new Vector3(11852f, 3940f, -68.11531f));
         Normal.Add(new Vector3(8180f, 5194f, 52.64763f));
         Normal.Add(new Vector3(6496f, 4676f, 48.5272f));
         Normal.Add(new Vector3(3416f, 7706f, 52.13334f));
         Normal.Add(new Vector3(2340f, 9692f, 54.17554f));
         Normal.Add(new Vector3(4710f, 10000f, -71.23711f));
         Normal.Add(new Vector3(6850f, 9662f, 54.40515f));
         Normal.Add(new Vector3(6868f, 11398f, 53.82961f));
         Normal.Add(new Vector3(8286f, 10182f, 50.06982f));
         Normal.Add(new Vector3(3074f, 10784f, -70.27567f));
         Normal.Add(new Vector3(4484f, 11804f, 56.8484f));
         Normal.Add(new Vector3(2364f, 13474f, 52.8381f));
         Normal.Add(new Vector3(1136f, 12322f, 52.8381f));
         Normal.Add(new Vector3(4460f, 11794f, 56.8484f));
         Normal.Add(new Vector3(9982f, 7730f, 51.75227f));
         Normal.Add(new Vector3(11450f, 7212f, 51.7251f));
         Normal.Add(new Vector3(12546f, 5192f, 51.7294f));
         Normal.Add(new Vector3(7800f, 3566f, 52.53794f));
     }
 }
Esempio n. 3
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "MissFortune")
            {
                return;
            }
            AbilitySequence = new[] { 1, 2, 1, 3, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3 };
            Chat.Print("MissInopportune Loaded!", Color.CornflowerBlue);
            Chat.Print("Enjoy the game and DONT FLAME!", Color.Red);
            MissInopportuneMenu.LoadMenu();
            _wardLocation = new WardLocation();
            Game.OnTick  += GameOnTick;
            MyActivator.LoadSpells();
            Game.OnUpdate += OnGameUpdate;


            #region Skill

            Q  = new Spell.Targeted(SpellSlot.Q, 650);
            Q1 = new Spell.Skillshot(SpellSlot.Q, 1100, SkillShotType.Circular, 250, 2000, 50);
            W  = new Spell.Active(SpellSlot.W);
            E  = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Circular, 500, int.MaxValue, 200);
            R  = new Spell.Skillshot(SpellSlot.R, 1400, SkillShotType.Cone, 0, int.MaxValue);
            R.ConeAngleDegrees = 30;

            #endregion

            Gapcloser.OnGapcloser          += AntiGapCloser;
            Obj_AI_Base.OnProcessSpellCast += OnSpellCast;
            Obj_AI_Base.OnBuffGain         += OnBuffGain;
            Obj_AI_Base.OnBuffLose         += OnBuffLose;
            Drawing.OnDraw += GameOnDraw;
            DamageIndicator.Initialize(SpellDamage.GetTotalDamage);
        }
Esempio n. 4
0
 private static void GameOnTick(EventArgs args)
 {
     if (MissInopportuneMenu.Lvlup())
     {
         LevelUpSpells();
     }
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
     {
         OnCombo();
     }
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
     {
         OnHarrass();
     }
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
     {
         OnLaneClear();
     }
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
     {
         OnJungle();
     }
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee))
     {
         OnFlee();
     }
     KillSteal();
     AutoE();
     AutoPotions();
     AutoWard();
 }
Esempio n. 5
0
 private static void Heal()
 {
     if (Player.IsFacing(Target) && MyActivator.Heal.IsReady() &&
         Player.HealthPercent <= MissInopportuneMenu.SpellsHealHp())
     {
         MyActivator.Heal.Cast();
     }
 }
Esempio n. 6
0
 private static void Barrier()
 {
     if (Player.IsFacing(Target) && MyActivator.Barrier.IsReady() &&
         Player.HealthPercent <= MissInopportuneMenu.spellsBarrierHP())
     {
         MyActivator.Barrier.Cast();
     }
 }
Esempio n. 7
0
        private static void Ignite()
        {
            var autoIgnite = TargetSelector.GetTarget(MyActivator.Ignite.Range, DamageType.True);

            if (autoIgnite != null && autoIgnite.Health <= Player.GetSpellDamage(autoIgnite, MyActivator.Ignite.Slot) ||
                autoIgnite != null && autoIgnite.HealthPercent <= MissInopportuneMenu.SpellsIgniteFocus())
            {
                MyActivator.Ignite.Cast(autoIgnite);
            }
        }
Esempio n. 8
0
        private static void AntiGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
        {
            if (!e.Sender.IsValidTarget() || !MissInopportuneMenu.GapcloserE() || e.Sender.Type != Player.Type ||
                !e.Sender.IsEnemy || e.Sender.IsAlly && Channeling == true)
            {
                return;
            }

            E.Cast(e.Sender.ServerPosition);
        }
Esempio n. 9
0
 private static void OnFlee()
 {
     if (W.IsReady() && Player.ManaPercent >= MissInopportuneMenu.FleeM())
     {
         W.Cast();
     }
     if (E.IsReady() && Player.HealthPercent <= MissInopportuneMenu.FleeHP())
     {
         E.Cast(Target.ServerPosition);
     }
 }
Esempio n. 10
0
 private static void AutoPotions()
 {
     if (MissInopportuneMenu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.HealthPercent <= MissInopportuneMenu.SpellsPotionsHP() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (MyActivator.HuntersPot.IsReady() && MyActivator.HuntersPot.IsOwned())
         {
             MyActivator.HuntersPot.Cast();
         }
         if (MyActivator.CorruptPot.IsReady() && MyActivator.CorruptPot.IsOwned())
         {
             MyActivator.CorruptPot.Cast();
         }
         if (MyActivator.Biscuit.IsReady() && MyActivator.Biscuit.IsOwned())
         {
             MyActivator.Biscuit.Cast();
         }
         if (MyActivator.HPPot.IsReady() && MyActivator.HPPot.IsOwned())
         {
             MyActivator.HPPot.Cast();
         }
         if (MyActivator.RefillPot.IsReady() && MyActivator.RefillPot.IsOwned())
         {
             MyActivator.RefillPot.Cast();
         }
     }
     if (MissInopportuneMenu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.ManaPercent <= MissInopportuneMenu.SpellsPotionsM() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (MyActivator.CorruptPot.IsReady() && MyActivator.CorruptPot.IsOwned())
         {
             MyActivator.CorruptPot.Cast();
         }
     }
 }
Esempio n. 11
0
        private static void OnLaneClear()
        {
            var count =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition,
                                                                Player.AttackRange, false).Count();

            var source =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition,
                                                                Player.AttackRange).OrderBy(a => a.MaxHealth).FirstOrDefault();

            if (count == 0)
            {
                return;
            }
            if (E.IsReady() && MissInopportuneMenu.LcE() && source.IsValidTarget(E.Range) &&
                Player.ManaPercent >= MissInopportuneMenu.LcM() && MissInopportuneMenu.LcE1() <= count)
            {
                E.Cast(source.Position);
            }

            if (Q.IsReady() && Player.ManaPercent >= MissInopportuneMenu.LcM())
            {
                if (MissInopportuneMenu.LcQ() && MissInopportuneMenu.LcQ1() && source.IsValidTarget(Q.Range) &&
                    Player.GetSpellDamage(source, SpellSlot.Q) >= source.Health && !source.IsDead)
                {
                    Q.Cast(source);
                }

                if (Q.IsReady() && MissInopportuneMenu.LcQ() && !MissInopportuneMenu.LcQ1() && source.IsValidTarget(Q.Range))
                {
                    Q.Cast(source);
                }
            }

            if (W.IsReady() && MissInopportuneMenu.LcW() &&
                Player.ManaPercent >= MissInopportuneMenu.LcM())
            {
                W.Cast();
            }
        }
Esempio n. 12
0
 private static void AutoWard()
 {
     if (MissInopportuneMenu.checkWard())
     {
         foreach (
             var place in _wardLocation.Normal.Where(pos => pos.Distance(ObjectManager.Player.Position) <= 1000))
         {
             if (MyActivator.WardingTotem.IsOwned() && MyActivator.WardingTotem.IsReady() &&
                 MissInopportuneMenu.wardingTotem() && !IsWarded(place))
             {
                 MyActivator.WardingTotem.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.GreaterStealthTotem.IsOwned() && MyActivator.GreaterStealthTotem.IsReady() &&
                 MissInopportuneMenu.greaterStealthTotem() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.GreaterStealthTotem.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.GreaterVisionTotem.IsOwned() && MyActivator.GreaterVisionTotem.IsReady() &&
                 MissInopportuneMenu.greaterVisionTotem() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.GreaterVisionTotem.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.FarsightAlteration.IsOwned() && MyActivator.FarsightAlteration.IsReady() &&
                 MissInopportuneMenu.farsightAlteration() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.FarsightAlteration.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.PinkVision.IsOwned() && MyActivator.PinkVision.IsReady() &&
                 MissInopportuneMenu.pinkWard() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.PinkVision.Cast(place);
                 time = Environment.TickCount + 5000;
             }
         }
     }
 }
Esempio n. 13
0
 private static void OnGameUpdate(EventArgs args)
 {
     if (MyActivator.Barrier != null)
     {
         Barrier();
     }
     if (MyActivator.Heal != null)
     {
         Heal();
     }
     if (MyActivator.Ignite != null)
     {
         Ignite();
     }
     if (MissInopportuneMenu.checkSkin())
     {
         if (MissInopportuneMenu.SkinId() != CurrentSkin)
         {
             Player.SetSkinId(MissInopportuneMenu.SkinId());
             CurrentSkin = MissInopportuneMenu.SkinId();
         }
     }
 }
Esempio n. 14
0
        private static void OnHarrass()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (!target.IsValidTarget() && Channeling == true)
            {
                return;
            }

            if (E.IsReady() && target.IsValidTarget(E.Range))
            {
                foreach (var eenemies in enemies)
                {
                    var useE = MissInopportuneMenu.MyHarass["harass.E"
                                                            + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useE)
                    {
                        E.Cast(eenemies.ServerPosition);
                    }
                }
            }

            if (MissInopportuneMenu.HarassQ() &&
                Player.ManaPercent >= MissInopportuneMenu.HarassQe())
            {
                if (MissInopportuneMenu.HarassQ() && target.IsValidTarget(Q.Range))
                {
                    Q.Cast(target);
                }
                if (MissInopportuneMenu.HarassQ1() && target.IsValidTarget(Q1.Range))
                {
                    CastExtendedQ();
                }
            }
        }
Esempio n. 15
0
        private static void OnJungle()
        {
            var source =
                EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.ServerPosition, Q.Range)
                .OrderByDescending(a => a.MaxHealth)
                .FirstOrDefault();

            if (source == null)
            {
                return;
            }
            if (Q.IsReady() && MissInopportuneMenu.JungleQ() && source.Distance(Player) <= Q.Range)
            {
                Q.Cast(source);
            }
            if (W.IsReady() && MissInopportuneMenu.JungleW() && source.Distance(Player) <= W.Range)
            {
                W.Cast();
            }
            if (E.IsReady() && MissInopportuneMenu.JungleE() && source.Distance(Player) <= E.Range)
            {
                E.Cast(source.Position);
            }
        }
Esempio n. 16
0
        private static void OnCombo()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var target = TargetSelector.GetTarget(1400, DamageType.Physical);

            if (!target.IsValidTarget(Q.Range) || target == null && Channeling == true)
            {
                return;
            }
            if (MissInopportuneMenu.ComboW() && W.IsReady() && target.IsValidTarget(W.Range) && !target.IsInvulnerable &&
                target.Position.CountEnemiesInRange(800) >= MissInopportuneMenu.ComboW1())
            {
                W.Cast();
            }
            if (E.IsReady() && target.IsValidTarget(E.Range))
            {
                foreach (var eenemies in enemies)
                {
                    var useE = MissInopportuneMenu.MyCombo["combo.e"
                                                           + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useE)
                    {
                        E.Cast(eenemies.ServerPosition);
                    }
                }
            }

            if (Q.IsReady() && target.IsValidTarget(Q.Range) && MissInopportuneMenu.ComboQ())
            {
                Q.Cast(target);
            }

            if (Q.IsReady() && target.IsValidTarget(Q1.Range) && MissInopportuneMenu.ComboQ1())
            {
                CastExtendedQ();
            }


            if (MissInopportuneMenu.ComboR() && R.IsReady() && !target.IsInvulnerable)
            {
                if (target != null)
                {
                    int collCount = 1;
                    foreach (var e in enemies)
                    {
                        if (
                            Math.Abs(e.Position.AngleBetween(Player.ServerPosition) -
                                     target.ServerPosition.AngleBetween(Player.Position)) < 0.3)
                        {
                            collCount++;
                        }
                    }
                    if (MissInopportuneMenu.ComboR1() &&
                        (target.HasBuffOfType(BuffType.Suppression) || target.HasBuffOfType(BuffType.Charm) ||
                         target.HasBuffOfType(BuffType.Flee) ||
                         target.HasBuffOfType(BuffType.Blind) || target.HasBuffOfType(BuffType.Polymorph) ||
                         target.HasBuffOfType(BuffType.Snare) ||
                         target.HasBuffOfType(BuffType.Stun) || target.HasBuffOfType(BuffType.Taunt)))
                    {
                        if (collCount < MissInopportuneMenu.ComboREnemies())
                        {
                            R.Cast(target.Position);
                        }
                    }
                    else if (!MissInopportuneMenu.ComboR1() && collCount <= MissInopportuneMenu.ComboREnemies())
                    {
                        R.Cast(R.GetPrediction(target).CastPosition);
                    }
                }
            }
            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >=
                 MissInopportuneMenu.YoumusEnemies() || Player.HealthPercent >= MissInopportuneMenu.ItemsYoumuShp()) &&
                MyActivator.Youmus.IsReady() && MissInopportuneMenu.Youmus() && MyActivator.Youmus.IsOwned())
            {
                MyActivator.Youmus.Cast();
                return;
            }
            if (Player.HealthPercent <= MissInopportuneMenu.BilgewaterHp() && MissInopportuneMenu.Bilgewater() &&
                MyActivator.Bilgewater.IsReady() && MyActivator.Bilgewater.IsOwned())
            {
                MyActivator.Bilgewater.Cast(target);
                return;
            }

            if (Player.HealthPercent <= MissInopportuneMenu.BotrkHp() && MissInopportuneMenu.Botrk() &&
                MyActivator.Botrk.IsReady() &&
                MyActivator.Botrk.IsOwned())
            {
                MyActivator.Botrk.Cast(target);
            }
        }
Esempio n. 17
0
        private static void GameOnDraw(EventArgs args)
        {
            if (MissInopportuneMenu.Nodraw())
            {
                return;
            }

            if (!MissInopportuneMenu.OnlyReady())
            {
                if (MissInopportuneMenu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.AliceBlue, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsW())
                {
                    new Circle {
                        Color = Color.OrangeRed, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Cyan, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsR())
                {
                    new Circle {
                        Color = Color.SkyBlue, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsT() && _wardLocation.Normal.Any())
                {
                    foreach (
                        var place in
                        _wardLocation.Normal.Where(pos => pos.Distance(ObjectManager.Player.Position) <= 1500))
                    {
                        Drawing.DrawCircle(place, 100, IsWarded(place) ? Color.Red : Color.Green);
                    }
                }
            }
            else
            {
                if (!Q.IsOnCooldown && MissInopportuneMenu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.AliceBlue, Radius = 650, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!W.IsOnCooldown && MissInopportuneMenu.DrawingsW())
                {
                    new Circle {
                        Color = Color.OrangeRed, Radius = 500, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!E.IsOnCooldown && MissInopportuneMenu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Cyan, Radius = 1000, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!R.IsOnCooldown && MissInopportuneMenu.DrawingsR())
                {
                    new Circle {
                        Color = Color.SkyBlue, Radius = 1400, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MissInopportuneMenu.DrawingsT() && _wardLocation.Normal.Any())
                {
                    foreach (
                        var place in
                        _wardLocation.Normal.Where(pos => pos.Distance(ObjectManager.Player.Position) <= 1500))
                    {
                        Drawing.DrawCircle(place, 100, IsWarded(place) ? Color.Red : Color.Green);
                    }
                }
            }
        }
Esempio n. 18
0
        private static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }

            if (args.Buff.Type == BuffType.Taunt && MissInopportuneMenu.Taunt())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Stun && MissInopportuneMenu.Stun())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Snare && MissInopportuneMenu.Snare())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Polymorph && MissInopportuneMenu.Polymorph())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Blind && MissInopportuneMenu.Blind())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Flee && MissInopportuneMenu.Fear())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Charm && MissInopportuneMenu.Charm())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Suppression && MissInopportuneMenu.Suppression())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Silence && MissInopportuneMenu.Silence())
            {
                DoQss();
            }
            if (args.Buff.Name == "zedulttargetmark" && MissInopportuneMenu.ZedUlt())
            {
                UltQss();
            }
            if (args.Buff.Name == "VladimirHemoplague" && MissInopportuneMenu.VladUlt())
            {
                UltQss();
            }
            if (args.Buff.Name == "FizzMarinerDoom" && MissInopportuneMenu.FizzUlt())
            {
                UltQss();
            }
            if (args.Buff.Name == "MordekaiserChildrenOfTheGrave" && MissInopportuneMenu.MordUlt())
            {
                UltQss();
            }
            if (args.Buff.Name == "PoppyDiplomaticImmunity" && MissInopportuneMenu.PoppyUlt())
            {
                UltQss();
            }
        }