Beispiel #1
0
 private void Clean()
 {
     if (Quicksilver.IsReady())
     {
         Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Quicksilver.Cast());
     }
     else if (Mercurial.IsReady())
     {
         Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Mercurial.Cast());
     }
     else if (Dervish.IsReady())
     {
         Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Dervish.Cast());
     }
 }
Beispiel #2
0
 private void Clean()
 {
     if (Quicksilver.IsReady())
     {
         Quicksilver.Cast();
     }
     else if (Mercurial.IsReady())
     {
         Mercurial.Cast();
     }
     else if (Dervish.IsReady())
     {
         Dervish.Cast();
     }
 }
Beispiel #3
0
 private static void Clean()
 {
     if (Quicksilver.IsReady() && CleansersMenu["qss"].Cast <CheckBox>().CurrentValue)
     {
         Quicksilver.Cast();
     }
     else if (Mercurial.IsReady() && CleansersMenu["qss3"].Cast <CheckBox>().CurrentValue)
     {
         Mercurial.Cast();
     }
     else if (Dervish.IsReady() && CleansersMenu["qss4"].Cast <CheckBox>().CurrentValue)
     {
         Dervish.Cast();
     }
 }
Beispiel #4
0
 private void Clean()
 {
     if (Quicksilver.IsReady())
     {
         Utility.DelayAction.Add(getSliderItem("CSSdelay"), () => Quicksilver.Cast());
     }
     else if (Mercurial.IsReady())
     {
         Utility.DelayAction.Add(getSliderItem("CSSdelay"), () => Mercurial.Cast());
     }
     else if (Dervish.IsReady())
     {
         Utility.DelayAction.Add(getSliderItem("CSSdelay"), () => Dervish.Cast());
     }
     else if (cleanse != SpellSlot.Unknown && cleanse.IsReady() && getCheckBoxItem("Cleanse"))
     {
         Utility.DelayAction.Add(getSliderItem("CSSdelay"), () => Player.Spellbook.CastSpell(cleanse, Player));
     }
 }
Beispiel #5
0
 private void Clean()
 {
     if (Quicksilver.IsReady())
     {
         LeagueSharp.Common.Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Quicksilver.Cast());
     }
     else if (Mercurial.IsReady())
     {
         LeagueSharp.Common.Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Mercurial.Cast());
     }
     else if (Dervish.IsReady())
     {
         LeagueSharp.Common.Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Dervish.Cast());
     }
     else if (cleanse != SpellSlot.Unknown && cleanse.IsReady() && Config.Item("Cleanse").GetValue <bool>())
     {
         LeagueSharp.Common.Utility.DelayAction.Add(Config.Item("CSSdelay").GetValue <Slider>().Value, () => Player.Spellbook.CastSpell(cleanse, Player));
     }
 }
Beispiel #6
0
        private void Cleansers()
        {
            if (!Quicksilver.IsReady() && !Mikaels.IsReady() && !Mercurial.IsReady() && !Dervish.IsReady() &&
                !cleanse.IsReady())
            {
                return;
            }

            if (Player.HealthPercent >= getSliderItem("cleanHP") || !getCheckBoxItem("Clean"))
            {
                return;
            }

            if (Player.HasBuff("zedrdeathmark") || Player.HasBuff("FizzMarinerDoom") ||
                Player.HasBuff("MordekaiserChildrenOfTheGrave") || Player.HasBuff("PoppyDiplomaticImmunity") ||
                Player.HasBuff("VladimirHemoplague"))
            {
                Clean();
            }

            if (Mikaels.IsReady())
            {
                foreach (var ally in Program.Allies.Where(
                             ally =>
                             ally.IsValid && !ally.IsDead && getCheckBoxItem("MikaelsAlly" + ally.ChampionName) &&
                             Player.Distance(ally.Position) < Mikaels.Range &&
                             ally.HealthPercent < (float)getSliderItem("cleanHP")))
                {
                    if (ally.HasBuff("zedrdeathmark") || ally.HasBuff("FizzMarinerDoom") ||
                        ally.HasBuff("MordekaiserChildrenOfTheGrave") || ally.HasBuff("PoppyDiplomaticImmunity") ||
                        ally.HasBuff("VladimirHemoplague"))
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Stun) && getCheckBoxItem("Stun")) // getCheckBoxItem("Stun")
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Snare) && getCheckBoxItem("Snare")) // getCheckBoxItem("Snare")
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Charm) && getCheckBoxItem("Charm")) // getCheckBoxItem("Charm")
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Fear) && getCheckBoxItem("Fear")) // getCheckBoxItem("Fear")
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Stun) && getCheckBoxItem("Stun")) // getCheckBoxItem("Stun")
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Taunt) && getCheckBoxItem("Taunt")) // getCheckBoxItem("Taunt")
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Suppression) && getCheckBoxItem("Suppression"))
                    {
                        // getCheckBoxItem("Suppression")
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Blind) && getCheckBoxItem("Blind")) // getCheckBoxItem("Blind")
                    {
                        Mikaels.Cast(ally);
                    }
                }
            }

            if (Player.HasBuffOfType(BuffType.Stun) && getCheckBoxItem("Stun"))
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Snare) && getCheckBoxItem("Snare"))
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Charm) && getCheckBoxItem("Charm"))
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Fear) && getCheckBoxItem("Fear"))
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Stun) && getCheckBoxItem("Stun"))
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Taunt) && getCheckBoxItem("Taunt"))
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Suppression) && getCheckBoxItem("Suppression"))
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Blind) && getCheckBoxItem("Blind"))
            {
                Clean();
            }
        }
Beispiel #7
0
        private void Cleansers()
        {
            if (!Quicksilver.IsReady() && !Mikaels.IsReady() && !Mercurial.IsReady() && !Dervish.IsReady())
            {
                return;
            }

            if ((Player.HasBuff("zedrdeathmark") || Player.HasBuff("FizzMarinerDoom") ||
                 Player.HasBuff("MordekaiserChildrenOfTheGrave") || Player.HasBuff("PoppyDiplomaticImmunity") ||
                 Player.HasBuff("VladimirHemoplague")) && CleansersMenu["special"].Cast <CheckBox>().CurrentValue)
            {
                Clean();
            }

            if (Mikaels.IsReady() && CleansersMenu["qss2"].Cast <CheckBox>().CurrentValue)
            {
                foreach (var ally in EntityManager.Heroes.Allies.Where(
                             ally =>
                             ally.IsValid && !ally.IsDead &&
                             CleansersMenu["m" + ally.ChampionName].Cast <CheckBox>().CurrentValue&&
                             Player.Distance(ally.Position) < Mikaels.Range))
                {
                    if (ally.HasBuff("zedrdeathmark") || ally.HasBuff("FizzMarinerDoom") ||
                        ally.HasBuff("MordekaiserChildrenOfTheGrave") || ally.HasBuff("PoppyDiplomaticImmunity") ||
                        ally.HasBuff("VladimirHemoplague"))
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Stun) && CleansersMenu["stun"].Cast <CheckBox>().CurrentValue)
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Snare) && CleansersMenu["snare"].Cast <CheckBox>().CurrentValue)
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Charm) && CleansersMenu["charm"].Cast <CheckBox>().CurrentValue)
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Fear) && CleansersMenu["fear"].Cast <CheckBox>().CurrentValue)
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Taunt) && CleansersMenu["taunt"].Cast <CheckBox>().CurrentValue)
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Suppression) && CleansersMenu["suppr"].Cast <CheckBox>().CurrentValue)
                    {
                        Mikaels.Cast(ally);
                    }
                    if (ally.HasBuffOfType(BuffType.Blind) && CleansersMenu["blind"].Cast <CheckBox>().CurrentValue)
                    {
                        Mikaels.Cast(ally);
                    }
                }
            }

            if (Player.HasBuffOfType(BuffType.Stun) && CleansersMenu["stun"].Cast <CheckBox>().CurrentValue)
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Snare) && CleansersMenu["snare"].Cast <CheckBox>().CurrentValue)
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Charm) && CleansersMenu["charm"].Cast <CheckBox>().CurrentValue)
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Fear) && CleansersMenu["fear"].Cast <CheckBox>().CurrentValue)
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Taunt) && CleansersMenu["taunt"].Cast <CheckBox>().CurrentValue)
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Suppression) && CleansersMenu["suppr"].Cast <CheckBox>().CurrentValue)
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Blind) && CleansersMenu["blind"].Cast <CheckBox>().CurrentValue)
            {
                Clean();
            }
        }
Beispiel #8
0
        private void Cleansers()
        {
            if (!Quicksilver.IsReady() && !Mikaels.IsReady() && !Mercurial.IsReady() && !Dervish.IsReady())
            {
                return;
            }

            if (Player.HealthPercent >= (float)Config.Item("cleanHP").GetValue <Slider>().Value || !Config.Item("Clean").GetValue <bool>())
            {
                return;
            }

            if (Player.HasBuff("zedulttargetmark") || Player.HasBuff("FizzMarinerDoom") || Player.HasBuff("MordekaiserChildrenOfTheGrave") || Player.HasBuff("PoppyDiplomaticImmunity") || Player.HasBuff("VladimirHemoplague"))
            {
                Clean();
            }

            if (Player.HasBuffOfType(BuffType.Stun) && Config.Item("Stun").GetValue <bool>())
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Snare) && Config.Item("Snare").GetValue <bool>())
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Knockup) && Config.Item("Knockup").GetValue <bool>())
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Charm) && Config.Item("Charm").GetValue <bool>())
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Fear) && Config.Item("Fear").GetValue <bool>())
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Stun) && Config.Item("Stun").GetValue <bool>())
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Knockback) && Config.Item("Knockback").GetValue <bool>())
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Taunt) && Config.Item("Taunt").GetValue <bool>())
            {
                Clean();
            }
            if (Player.HasBuffOfType(BuffType.Suppression) && Config.Item("Suppression").GetValue <bool>())
            {
                Clean();
            }
        }