コード例 #1
0
        public static float GetTotalDamage(AIHeroClient target)
        {
            // Auto attack
            var damage = Program.Player.GetAutoAttackDamage(target);

            // Q
            if (Program.Q.IsReady())
            {
                damage += Program.Q.GetRealDamage(target) + MariagiospaldaMenu.ComboQ1();
            }

            // W
            if (Program.W.IsReady())
            {
                damage += Program.W.GetRealDamage(target);
            }

            // E
            if (Program.E.IsReady())
            {
                damage += Program.E.GetRealDamage(target);
            }

            // R
            if (Program.R.IsReady())
            {
                damage += Program.R.GetRealDamage(target) + MariagiospaldaMenu.ComboR1();
            }

            return(damage);
        }
コード例 #2
0
 private void CreateTables()
 {
     if (MariagiospaldaMenu.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));
     }
 }
コード例 #3
0
 private static void AutoWard()
 {
     if (MariagiospaldaMenu.checkWard())
     {
         foreach (var place in wardLocation.Normal.Where(pos => pos.Distance(ObjectManager.Player.Position) <= 1000))
         {
             if (MyActivator.WardingTotem.IsOwned() && MyActivator.WardingTotem.IsReady() && MariagiospaldaMenu.wardingTotem() && !IsWarded(place))
             {
                 MyActivator.WardingTotem.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.GreaterStealthTotem.IsOwned() && MyActivator.GreaterStealthTotem.IsReady() && MariagiospaldaMenu.greaterStealthTotem() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.GreaterStealthTotem.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.GreaterVisionTotem.IsOwned() && MyActivator.GreaterVisionTotem.IsReady() && MariagiospaldaMenu.greaterVisionTotem() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.GreaterVisionTotem.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.FarsightAlteration.IsOwned() && MyActivator.FarsightAlteration.IsReady() && MariagiospaldaMenu.farsightAlteration() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.FarsightAlteration.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.PinkVision.IsOwned() && MyActivator.PinkVision.IsReady() && MariagiospaldaMenu.pinkWard() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.PinkVision.Cast(place);
                 time = Environment.TickCount + 5000;
             }
         }
     }
 }
コード例 #4
0
 private static void Barrier()
 {
     if (MyActivator.Barrier.IsReady() && Player.HealthPercent <= MariagiospaldaMenu.spellsBarrierHP())
     {
         MyActivator.Barrier.Cast();
     }
 }
コード例 #5
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "Lissandra")
            {
                return;
            }
            AbilitySequence = new[] { 1, 2, 3, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3 };
            Chat.Print("Mariagiospalda Loaded!", Color.CornflowerBlue);
            Chat.Print("Enjoy the game and DONT AFK!", Color.Red);
            MariagiospaldaMenu.LoadMenu();
            wardLocation = new WardLocation();
            Game.OnTick += GameOnTick;
            MyActivator.LoadSpells();
            Game.OnUpdate          += OnGameUpdate;
            Obj_AI_Base.OnBuffGain += OnBuffGain;
            Drawing.OnDraw         += GameOnDraw;
            DamageIndicator.Initialize(SpellDamage.GetTotalDamage);
            GameObject.OnCreate += GameObject_OnCreate;
            GameObject.OnDelete += GameObject_OnDelete;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += AntiGapCloser;

            #region Skill

            Q  = new Spell.Skillshot(SpellSlot.Q, 725, SkillShotType.Linear);
            Q1 = new Spell.Skillshot(SpellSlot.Q, 825, SkillShotType.Linear);
            W  = new Spell.Active(SpellSlot.W, 450);
            E  = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear);
            E1 = new Spell.Active(SpellSlot.E);
            R  = new Spell.Targeted(SpellSlot.R, 550);

            #endregion
        }
コード例 #6
0
 private static void GameOnTick(EventArgs args)
 {
     if (MariagiospaldaMenu.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();
     AutoCC();
     AutoPotions();
     AutoWard();
     MonitorMissilePosition();
 }
コード例 #7
0
 private static void Heal()
 {
     if (MyActivator.Heal.IsReady() && Player.HealthPercent <= MariagiospaldaMenu.SpellsHealHp())
     {
         MyActivator.Heal.Cast();
     }
 }
コード例 #8
0
        private static void OnJungle()
        {
            var source =
                EntityManager.MinionsAndMonsters.GetJungleMonsters()
                .OrderBy(a => a.MaxHealth)
                .FirstOrDefault(a => a.IsValidTarget(Q.Range));

            if (source == null)
            {
                return;
            }
            if (Q.IsReady() && MariagiospaldaMenu.JungleQ() && source.Distance(Player) <= Q.Range)
            {
                Q.Cast(source);
            }

            if (W.IsReady() && MariagiospaldaMenu.JungleW() && source.Distance(Player) <= W.Range)
            {
                W.Cast();
            }

            if (E.IsReady() && MariagiospaldaMenu.JungleE() && source.Distance(Player) <= E.Range)
            {
                E.Cast(source);
            }
        }
コード例 #9
0
 private static void OnFlee()
 {
     if (E.IsReady() && Player.ManaPercent >= MariagiospaldaMenu.FleeM() && PiuwPiuwMissile == null && !MariagiospaldaMenu.ComboE2())
     {
         E.Cast(Player.ServerPosition.Extend(Game.CursorPos, W.Range).To3D());
         fleeing = true;
     }
 }
コード例 #10
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 <= MariagiospaldaMenu.SpellsIgniteFocus())
            {
                MyActivator.Ignite.Cast(autoIgnite);
            }
        }
コード例 #11
0
        private static void OnHarrass()
        {
            var enemiese = EntityManager.Heroes.Enemies.OrderByDescending
                               (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= R.Range);
            var enemiesq = EntityManager.Heroes.Enemies.OrderByDescending
                               (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= Q.Range);
            var target = TargetSelector.GetTarget(1900, DamageType.Magical);

            if (!target.IsValidTarget())
            {
                return;
            }

            if (E.IsReady() && target.IsValidTarget(E.Range) && PiuwPiuwMissile == null)
            {
                foreach (var eenemies in enemiese)
                {
                    var useE = MariagiospaldaMenu.MyHarass["harass.E"
                                                           + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    var prede = E.GetPrediction(eenemies);
                    if (useE)
                    {
                        if (prede.HitChance >= HitChance.High)
                        {
                            E.Cast(eenemies);
                        }
                    }
                }
            }

            if (Q.IsReady() && target.IsValidTarget(Q1.Range))
            {
                ExtendedQ();
            }

            if (target.IsValidTarget(Q.Range) && Player.ManaPercent >= MariagiospaldaMenu.HarassQE())
            {
                foreach (var qenemies in enemiesq)
                {
                    var useQ = MariagiospaldaMenu.MyHarass["harass.Q"
                                                           + qenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useQ)
                    {
                        {
                            var predq = Q.GetPrediction(target);
                            if (predq.HitChance >= HitChance.High)
                            {
                                Q.Cast(predq.CastPosition);
                            }
                        }
                    }
                }
            }
        }
コード例 #12
0
 private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender,
                                                      Interrupter.InterruptableSpellEventArgs e)
 {
     if (!sender.IsValidTarget(Q.Range) || e.DangerLevel != DangerLevel.High || e.Sender.Type != Player.Type ||
         !e.Sender.IsEnemy)
     {
         return;
     }
     if (R.IsReady() && R.IsInRange(sender) && MariagiospaldaMenu.interruptR())
     {
         R.Cast(sender);
     }
 }
コード例 #13
0
        private static void KillSteal()
        {
            foreach (
                var target in
                EntityManager.Heroes.Enemies.Where(
                    hero =>
                    hero.IsValidTarget(R.Range) && !hero.IsDead && !hero.IsZombie && hero.HealthPercent <= 25))
            {
                var predQ = Q.GetPrediction(target);
                var predE = E.GetPrediction(target);
                if (MariagiospaldaMenu.KillstealR() && R.IsReady() &&
                    target.Health + target.AttackShield + MariagiospaldaMenu.ComboR1() <= Player.GetSpellDamage(target, SpellSlot.R))
                {
                    R.Cast(target);
                }

                if (MariagiospaldaMenu.KillstealW() &&
                    target.Health + target.AttackShield <
                    Player.GetSpellDamage(target, SpellSlot.W) && Player.Mana >= 100)
                {
                    if (W.IsReady() && target.IsValidTarget(W.Range))
                    {
                        W.Cast();
                    }
                }

                if (MariagiospaldaMenu.KillstealQ() && Q.IsReady() &&
                    target.Health + target.AttackShield + MariagiospaldaMenu.ComboQ1() <
                    Player.GetSpellDamage(target, SpellSlot.Q))
                {
                    if (predQ.HitChance >= HitChance.High)
                    {
                        Q.Cast(target.Position);
                    }
                }

                if (MariagiospaldaMenu.KillstealE() && E.IsReady() &&
                    target.Health + target.AttackShield <
                    Player.GetSpellDamage(target, SpellSlot.E) && PiuwPiuwMissile == null &&
                    !MariagiospaldaMenu.ComboE2())
                {
                    if (predE.HitChance >= HitChance.High)
                    {
                        E.Cast(predE.CastPosition);
                    }
                }
            }
        }
コード例 #14
0
        private static void AntiGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
        {
            if (!e.Sender.IsValidTarget() || e.Sender.Type != Player.Type || !e.Sender.IsEnemy)
            {
                return;
            }

            if (R.IsReady() && R.IsInRange(sender) && MariagiospaldaMenu.gapcloserR())
            {
                R.Cast(sender);
            }
            if (W.IsReady() && W.IsInRange(sender) && MariagiospaldaMenu.gapcloserW())
            {
                W.Cast();
            }
        }
コード例 #15
0
        private static void CastE()
        {
            if (PiuwPiuwMissile == null && !MariagiospaldaMenu.ComboE2())
            {
                var Pred =
                    EntityManager.Heroes.Enemies.Where(
                        h =>
                        h.IsValidTarget() && !h.IsZombie &&
                        Vector3.Distance(h.ServerPosition, Player.ServerPosition) <= E.Range)
                    .Select(hero => E.GetPrediction(hero));

                var BestLocation = Pred.FirstOrDefault();
                if (BestLocation.HitChance >= HitChance.Medium && E.IsReady())
                {
                    E.Cast(BestLocation.CastPosition);
                }
            }
            E2();
        }
コード例 #16
0
 private static void OnGameUpdate(EventArgs args)
 {
     if (MyActivator.Barrier != null)
     {
         Barrier();
     }
     if (MyActivator.Heal != null)
     {
         Heal();
     }
     if (MyActivator.Ignite != null)
     {
         Ignite();
     }
     if (MariagiospaldaMenu.checkSkin())
     {
         Player.SetSkinId(MariagiospaldaMenu.SkinId());
     }
 }
コード例 #17
0
        private static void E2()
        {
            var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (MariagiospaldaMenu.ComboE2() && Player.HealthPercent > 25 && PiuwPiuwMissile != null && E.IsReady())
            {
                if (Vector2.Distance(MissilePosition, target.ServerPosition.To2D()) < Vector3.Distance(Player.ServerPosition, target.ServerPosition) && Vector3.Distance(target.ServerPosition, PiuwPiuwMissile.EndPosition) > Vector3.Distance(Player.ServerPosition, target.ServerPosition))
                {
                    E1.Cast();
                    return;
                }
                var EndingCount = PiuwPiuwMissile.Position.CountEnemiesInRange(R.Range);

                if (EndingCount >= MariagiospaldaMenu.ComboE1() && R.IsReady() && Vector3.Distance(PiuwPiuwMissile.Position, target.ServerPosition) < Vector3.Distance(Player.ServerPosition, target.ServerPosition))
                {
                    E1.Cast();
                    return;
                }
            }
        }
コード例 #18
0
 private static void AutoPotions()
 {
     if (MariagiospaldaMenu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.HealthPercent <= MariagiospaldaMenu.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 (MariagiospaldaMenu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.ManaPercent <= MariagiospaldaMenu.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();
         }
     }
 }
コード例 #19
0
        private static void AutoCC()
        {
            var autoCCTarget =
                EntityManager.Heroes.Enemies.FirstOrDefault(
                    x => x.IsValidTarget(Q.Range) &&
                    x.HasBuffOfType(BuffType.Charm) || x.HasBuffOfType(BuffType.Knockup) ||
                    x.HasBuffOfType(BuffType.Stun) || x.HasBuffOfType(BuffType.Suppression) ||
                    x.HasBuffOfType(BuffType.Snare));;

            if (autoCCTarget != null && autoCCTarget.IsValidTarget(Q.Range))
            {
                if (MariagiospaldaMenu.ComboCC() && Q.IsReady())
                {
                    Q.Cast(autoCCTarget.Position);
                }
                if (MariagiospaldaMenu.ComboCC1() && E.IsReady() && PiuwPiuwMissile == null)
                {
                    E.Cast(autoCCTarget.Position);
                }
            }
        }
コード例 #20
0
        private static void OnLaneClear()
        {
            var count =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition,
                                                                Player.AttackRange, false).Count();
            var source =
                EntityManager.MinionsAndMonsters.GetLaneMinions().OrderBy(a => a.MaxHealth).FirstOrDefault(a => a.IsValidTarget(Q.Range));

            if (count == 0)
            {
                return;
            }
            if (E.IsReady() && MariagiospaldaMenu.LcE() && MariagiospaldaMenu.LcE1() <= count &&
                Player.ManaPercent >= MariagiospaldaMenu.LcM() && PiuwPiuwMissile == null)
            {
                E.Cast(source.Position);
            }
            if (Q.IsReady() && Player.ManaPercent >= MariagiospaldaMenu.LcM() && MariagiospaldaMenu.LcQ1() <= count)
            {
                if (MariagiospaldaMenu.LcQ() && MariagiospaldaMenu.LcQ2() && source.IsValidTarget(Q.Range) &&
                    Player.GetSpellDamage(source, SpellSlot.Q) >= source.Health && !source.IsDead)
                {
                    Q.Cast(source.Position);
                }

                if (Q.IsReady() && MariagiospaldaMenu.LcQ() && !MariagiospaldaMenu.LcQ2() && source.IsValidTarget(Q.Range))
                {
                    Q.Cast(source.Position);
                }
            }

            if (W.IsReady() && MariagiospaldaMenu.LcW() && MariagiospaldaMenu.LcW1() <= count &&
                Player.ManaPercent >= MariagiospaldaMenu.LcM())
            {
                W.Cast();
            }
        }
コード例 #21
0
        private static void OnCombo()
        {
            var enemiesq = EntityManager.Heroes.Enemies.OrderByDescending
                               (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= Q.Range);
            var enemiesr = EntityManager.Heroes.Enemies.OrderByDescending
                               (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= R.Range);
            var enemiesw = EntityManager.Heroes.Enemies.OrderByDescending
                               (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= W.Range);
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var target = TargetSelector.GetTarget(1900, DamageType.Magical);


            if (R.IsReady() && target.IsValidTarget(R.Range) && !target.IsInvulnerable && target.CountEnemiesInRange(R.Range) <= MariagiospaldaMenu.ComboR2())
            {
                foreach (var ultenemies in enemiesr)
                {
                    var useR = MariagiospaldaMenu.MyCombo["combo.r"
                                                          + ultenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useR)
                    {
                        R.Cast(ultenemies);
                    }
                }
            }

            if (R.IsReady() && target.IsValidTarget(R.Range) && target.CountEnemiesInRange(R.Range) <= MariagiospaldaMenu.ComboR2())
            {
                R.Cast(Player);
            }

            if (E.IsReady() && target.IsValidTarget(E.Range))
            {
                foreach (var eenemies in enemies)
                {
                    var useE = MariagiospaldaMenu.MyCombo["combo.e"
                                                          + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useE)
                    {
                        CastE();
                    }
                }
            }

            if (Q.IsReady() && target.IsValidTarget(Q1.Range))
            {
                ExtendedQ();
            }

            if (Q.IsReady() && target.IsValidTarget(Q.Range))
            {
                foreach (var qenemies in enemiesq)
                {
                    var useQ = MariagiospaldaMenu.MyCombo["combo.Q"
                                                          + qenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    var predQ = Q.GetPrediction(qenemies);
                    if (useQ)
                    {
                        if (predQ.HitChancePercent >= MariagiospaldaMenu.ComboQH())
                        {
                            {
                                Q.Cast(predQ.CastPosition);
                            }
                        }
                    }
                }
            }

            if (W.IsReady() && target.IsValidTarget(W.Range))
            {
                foreach (var jumpenemies in enemiesw)
                {
                    var useW = MariagiospaldaMenu.MyCombo["combo.w"
                                                          + jumpenemies.ChampionName].Cast <CheckBox>().CurrentValue;

                    if (useW)
                    {
                        W.Cast();
                    }
                }
            }



            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >=
                 MariagiospaldaMenu.YoumusEnemies() || Player.HealthPercent >= MariagiospaldaMenu.ItemsYoumuShp()) &&
                MyActivator.Youmus.IsReady() && MariagiospaldaMenu.Youmus() && MyActivator.Youmus.IsOwned())
            {
                MyActivator.Youmus.Cast();
                return;
            }
            if (Player.HealthPercent <= MariagiospaldaMenu.BilgewaterHp() && MariagiospaldaMenu.Bilgewater() &&
                MyActivator.Bilgewater.IsReady() && MyActivator.Bilgewater.IsOwned())
            {
                MyActivator.Bilgewater.Cast(target);
                return;
            }

            if (Player.HealthPercent <= MariagiospaldaMenu.BotrkHp() && MariagiospaldaMenu.Botrk() && MyActivator.Botrk.IsReady() &&
                MyActivator.Botrk.IsOwned())
            {
                MyActivator.Botrk.Cast(target);
            }

            if (Player.HealthPercent <= MariagiospaldaMenu.ZhonyaHP() && MariagiospaldaMenu.Zhonya() &&
                Player.CountEnemiesInRange(800) >= MariagiospaldaMenu.ZhonyaEnemies() && MyActivator.Zhonya.IsReady() && MyActivator.Zhonya.IsOwned())
            {
                MyActivator.Zhonya.Cast();
            }
        }
コード例 #22
0
        private static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }

            if (args.Buff.Type == BuffType.Taunt && MariagiospaldaMenu.Taunt())
            {
                DoQSS();
            }
            if (args.Buff.Type == BuffType.Stun && MariagiospaldaMenu.Stun())
            {
                DoQSS();
            }
            if (args.Buff.Type == BuffType.Snare && MariagiospaldaMenu.Snare())
            {
                DoQSS();
            }
            if (args.Buff.Type == BuffType.Polymorph && MariagiospaldaMenu.Polymorph())
            {
                DoQSS();
            }
            if (args.Buff.Type == BuffType.Blind && MariagiospaldaMenu.Blind())
            {
                DoQSS();
            }
            if (args.Buff.Type == BuffType.Flee && MariagiospaldaMenu.Fear())
            {
                DoQSS();
            }
            if (args.Buff.Type == BuffType.Charm && MariagiospaldaMenu.Charm())
            {
                DoQSS();
            }
            if (args.Buff.Type == BuffType.Suppression && MariagiospaldaMenu.Suppression())
            {
                DoQSS();
            }
            if (args.Buff.Type == BuffType.Silence && MariagiospaldaMenu.Silence())
            {
                DoQSS();
            }
            if (args.Buff.Name == "zedulttargetmark" && MariagiospaldaMenu.ZedUlt())
            {
                UltQSS();
            }
            if (args.Buff.Name == "VladimirHemoplague" && MariagiospaldaMenu.VladUlt())
            {
                UltQSS();
            }
            if (args.Buff.Name == "FizzMarinerDoom" && MariagiospaldaMenu.FizzUlt())
            {
                UltQSS();
            }
            if (args.Buff.Name == "MordekaiserChildrenOfTheGrave" && MariagiospaldaMenu.MordUlt())
            {
                UltQSS();
            }
            if (args.Buff.Name == "PoppyDiplomaticImmunity" && MariagiospaldaMenu.PoppyUlt())
            {
                UltQSS();
            }
        }
コード例 #23
0
        private static void GameOnDraw(EventArgs args)
        {
            if (MariagiospaldaMenu.Nodraw())
            {
                return;
            }

            if (!MariagiospaldaMenu.OnlyReady())
            {
                if (MariagiospaldaMenu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.AliceBlue, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MariagiospaldaMenu.DrawingsW())
                {
                    new Circle {
                        Color = Color.OrangeRed, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MariagiospaldaMenu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Cyan, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MariagiospaldaMenu.DrawingsR())
                {
                    new Circle {
                        Color = Color.SkyBlue, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MariagiospaldaMenu.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 && MariagiospaldaMenu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.AliceBlue, Radius = 725, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!W.IsOnCooldown && MariagiospaldaMenu.DrawingsW())
                {
                    new Circle {
                        Color = Color.OrangeRed, Radius = 450, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!E.IsOnCooldown && MariagiospaldaMenu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Cyan, Radius = 1050, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (!R.IsOnCooldown && MariagiospaldaMenu.DrawingsR())
                {
                    new Circle {
                        Color = Color.SkyBlue, Radius = 550, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (MariagiospaldaMenu.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);
                    }
                }
            }
        }