예제 #1
0
파일: Talon.cs 프로젝트: sadnecc/CHportcn
        private static float GetComboDamage(Obj_AI_Base enemy)
        {
            try
            {
                float damage = 0;

                if (!Orbwalker.IsAutoAttacking)
                {
                    damage += Player.GetAutoAttackDamage(enemy, true);
                }

                if (IgniteSpell.IsReady() && IgniteSpell.Slot != SpellSlot.Unknown)
                {
                    damage += (float)Player.GetSummonerSpellDamage(enemy, Damage.SummonerSpell.Ignite);
                }

                if (Hydra.IsReady())
                {
                    damage += (float)Player.GetItemDamage(enemy, Damage.DamageItems.Hydra);
                }

                if (Tiamat.IsReady())
                {
                    damage += (float)Player.GetItemDamage(enemy, Damage.DamageItems.Tiamat);
                }

                if (Youmuu.IsReady())
                {
                    damage += Player.GetAutoAttackDamage(enemy, true) * 2;
                }

                if (Q.IsReady())
                {
                    damage += Q.GetDamage(enemy);
                }

                if (E.IsReady())
                {
                    damage += E.GetDamage(enemy);
                }

                if (W.IsReady())
                {
                    damage += W.GetDamage(enemy);
                }

                if (R.IsReady())
                {
                    damage += R.GetDamage(enemy);
                }

                return(damage);
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }

            return(0);
        }
예제 #2
0
        private void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe || Orbwalk.CurrentMode != Orbwalk.Mode.Combo)
            {
                return;
            }
            var Slot = Player.GetSpellSlot(args.SData.Name);

            if (Slot == SpellSlot.Q || Slot == SpellSlot.W)
            {
                AACount = 0;
                if (Slot == SpellSlot.Q)
                {
                    Orbwalk.ResetAutoAttack();
                }
                if (Tiamat.IsReady() && Player.CountEnemysInRange((int)Tiamat.Range) >= 1)
                {
                    Tiamat.Cast();
                }
                if (Hydra.IsReady() && (Player.CountEnemysInRange((int)Hydra.Range) >= 2 || (Player.GetAutoAttackDamage(targetObj, true) < targetObj.Health && Player.CountEnemysInRange((int)Hydra.Range) == 1)))
                {
                    Hydra.Cast();
                }
            }
        }
예제 #3
0
파일: Zed.cs 프로젝트: geramz/PortAIO
 private static void UseItem(AIHeroClient target)
 {
     if (target != null && (HaveR(target) || target.HealthPercent < 40 || Player.HealthPercent < 50))
     {
         if (Bilgewater.IsReady())
         {
             Bilgewater.Cast(target);
         }
         if (BotRuinedKing.IsReady())
         {
             BotRuinedKing.Cast(target);
         }
     }
     if (Youmuu.IsReady() && Player.CountEnemyHeroesInRange(R.Range + E.Range) > 0)
     {
         Youmuu.Cast();
     }
     if (Tiamat.IsReady() && Player.CountEnemyHeroesInRange(Tiamat.Range) > 0)
     {
         Tiamat.Cast();
     }
     if (Hydra.IsReady() && Player.CountEnemyHeroesInRange(Hydra.Range) > 0)
     {
         Hydra.Cast();
     }
     if (Titanic.IsReady() && !Player.Spellbook.IsAutoAttacking && Orbwalker.LastTarget != null)
     {
         Titanic.Cast();
     }
 }
예제 #4
0
파일: Zed.cs 프로젝트: geramz/PortAIO
        private static List <double> GetCombo(AIHeroClient target, bool useQ, bool useW, bool useE)
        {
            var dmgTotal  = 0d;
            var manaTotal = 0f;

            if (getCheckBoxItem(comboMenu, "Items"))
            {
                if (Bilgewater.IsReady())
                {
                    dmgTotal += Player.CalculateDamage(target, DamageType.Magical, 100);
                }
                if (BotRuinedKing.IsReady())
                {
                    dmgTotal += Player.CalculateDamage(
                        target,
                        DamageType.Physical,
                        Math.Max(target.MaxHealth * 0.1, 100));
                }
                if (Tiamat.IsReady() || Hydra.IsReady())
                {
                    dmgTotal += Player.CalculateDamage(target, DamageType.Physical, Player.TotalAttackDamage);
                }
                if (Titanic.IsReady())
                {
                    dmgTotal += Player.CalculateDamage(target, DamageType.Physical, 40 + 0.1f * Player.MaxHealth);
                }
            }
            if (useQ)
            {
                dmgTotal  += Q.GetDamage(target);
                manaTotal += Q.Instance.SData.Mana;
            }
            if (useW)
            {
                if (useQ)
                {
                    dmgTotal += Q.GetDamage(target) / 2;
                }
                if (WState == 0)
                {
                    manaTotal += W.Instance.SData.Mana;
                }
            }
            if (useE)
            {
                dmgTotal  += E.GetDamage(target);
                manaTotal += E.Instance.SData.Mana;
            }
            dmgTotal += Player.GetAutoAttackDamage(target) * 2;
            if (HaveR(target))
            {
                dmgTotal += Player.CalculateDamage(
                    target,
                    DamageType.Physical,
                    new[] { 0.25, 0.35, 0.45 }[R.Level - 1] *dmgTotal + Player.TotalAttackDamage);
            }
            return(new List <double> {
                dmgTotal, manaTotal
            });
        }
예제 #5
0
        static void Orbwalking_AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            if (orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo | orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                var useW  = GetValueMenuBool("Combo.W");
                var useWh = GetValueMenuBool("Harass.W");

                if ((useW || useWh) && W.IsReady() && target.IsEnemy && target.IsValidTarget(W.Range))
                {
                    W.Cast();
                    lastW = Environment.TickCount;
                    player.IssueOrder(GameObjectOrder.AttackTo, target);
                }

                if (Tiamat.IsInRange(target.Position) && Tiamat.IsReady() && Tiamat.IsOwned())
                {
                    Tiamat.Cast();
                }

                if (Hydra.IsInRange(target.Position) && Hydra.IsReady() && Hydra.IsOwned())
                {
                    Hydra.Cast();
                }
            }
        }
예제 #6
0
        static void Orbwalking_AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            if (!unit.IsMe)
            {
                return;
            }

            if (orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo || orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                if (Q.IsReady() && (GetValueMenuBool("Combo.Q") || GetValueMenuBool("Harass.Q")))
                {
                    Q.Cast(player);
                }

                if (Tiamat.IsOwned() && Tiamat.IsReady() && Utils.TickCount - lastQ >= 2000)
                {
                    Tiamat.Cast();
                }

                if (Hydra.IsOwned() && Hydra.IsReady() && Utils.TickCount - lastQ >= 2300)
                {
                    Hydra.Cast();
                }
            }
        }
예제 #7
0
 private void UseItem(Obj_AI_Base Target, bool IsFarm = false)
 {
     if (Bilgewater.IsReady() && !IsFarm)
     {
         Bilgewater.Cast(Target);
     }
     if (BladeRuined.IsReady() && !IsFarm)
     {
         BladeRuined.Cast(Target);
     }
     if (Tiamat.IsReady() && IsFarm ? Player.Distance3D(Target) <= Tiamat.Range : Player.CountEnemysInRange((int)Tiamat.Range) >= 1)
     {
         Tiamat.Cast();
     }
     if (Hydra.IsReady() && IsFarm ? Player.Distance3D(Target) <= Hydra.Range : (Player.CountEnemysInRange((int)Hydra.Range) >= 2 || (Player.GetAutoAttackDamage(Target, true) < Target.Health && Player.CountEnemysInRange((int)Hydra.Range) == 1)))
     {
         Hydra.Cast();
     }
     if (RanduinOmen.IsReady() && Player.CountEnemysInRange((int)RanduinOmen.Range) >= 1 && !IsFarm)
     {
         RanduinOmen.Cast();
     }
     if (Youmuu.IsReady() && Player.CountEnemysInRange((int)Orbwalk.GetAutoAttackRange()) >= 1 && !IsFarm)
     {
         Youmuu.Cast();
     }
 }
예제 #8
0
        private float CalculateDamage(AIBaseClient enemy)
        {
            double damage = 0;

            if (Q.Instance.IsReady())
            {
                damage += GetRealQDamage(enemy);
            }

            if (E.Instance.IsReady())
            {
                damage += E.GetDamage(enemy);
            }

            if (W.Instance.IsReady())
            {
                damage += W.GetDamage(enemy);
            }

            if (Tiamat.IsReady())
            {
                damage += Player.GetItemDamage(enemy, Damage.DamageItems.Tiamat);
            }

            else if (Hydra.IsReady())
            {
                damage += Player.GetItemDamage(enemy, Damage.DamageItems.RavenousHydra);
            }

            return((float)damage);
        }
예제 #9
0
        private static void UseItems(Obj_AI_Base target)
        {
            var PlayerServerPosition = Player.ServerPosition.To2D();
            var targetServerPosition = target.ServerPosition.To2D();

            if (Hydra.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Hydra.Range)
            {
                Hydra.Cast();
            }
            if (Tiamat.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Tiamat.Range)
            {
                Tiamat.Cast();
            }
            if (Blade.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Blade.Range)
            {
                Blade.Cast(target);
            }
            if (Youmu.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Youmu.Range)
            {
                Youmu.Cast(target);
            }
            if (Bilgewater.IsReady() && Vector2.Distance(PlayerServerPosition, targetServerPosition) <= Bilgewater.Range)
            {
                Bilgewater.Cast(target);
            }
        }
예제 #10
0
파일: Program.cs 프로젝트: lolscripts/wu
            //-------------------------------------------LaneClear()-----------------------------------------------

            public static void JungleClear()
            {
                if (E.IsReady() && Menu["UseEJungleClear"].Cast <CheckBox>().CurrentValue&& EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Player.GetAutoAttackRange()).Any())
                {
                    E.Cast();
                }

                if (Tiamat.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Tiamat.Cast();
                    }
                }

                if (Hydra.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Hydra.Cast();
                    }
                }

                return;
            }
예제 #11
0
파일: Helper.cs 프로젝트: volder1/PortAIO
        internal void UseItems(Obj_AI_Base target)
        {
            var KhazixServerPosition = Khazix.ServerPosition.LSTo2D();
            var targetServerPosition = target.ServerPosition.LSTo2D();

            if (Hydra.IsReady() && Khazix.LSDistance(target) <= Hydra.Range)
            {
                Hydra.Cast();
            }
            if (Tiamat.IsReady() && Khazix.LSDistance(target) <= Tiamat.Range)
            {
                Tiamat.Cast();
            }
            if (Titanic.IsReady() && Khazix.LSDistance(target) <= Tiamat.Range)
            {
                Tiamat.Cast();
            }
            if (Blade.IsReady() && Khazix.LSDistance(target) <= Blade.Range)
            {
                Blade.Cast(target);
            }
            if (Youmu.IsReady() && Khazix.LSDistance(target) <= Youmu.Range)
            {
                Youmu.Cast(target);
            }
            if (Bilgewater.IsReady() && Khazix.LSDistance(target) <= Bilgewater.Range)
            {
                Bilgewater.Cast(target);
            }
        }
예제 #12
0
        public static bool CanUseHydra()
        {
            if (!Tiamat.IsOwned() && !Hydra.IsOwned())
            {
                return(false);
            }

            return(Tiamat.IsReady() || Hydra.IsReady());
        }
예제 #13
0
파일: Talon.cs 프로젝트: lulabc/PortAIO-TW
        private static void DoJungleclear()
        {
            try
            {
                var minion =
                    MinionManager.GetMinions(
                        Player.ServerPosition,
                        Q.Range,
                        MinionTypes.All,
                        MinionTeam.Neutral,
                        MinionOrderTypes.MaxHealth).OrderByDescending(x => x.MaxHealth).FirstOrDefault();

                if (minion == null)
                {
                    return;
                }

                if (Player.ManaPercent < Menu.Item("GFUELTalon.jungleclear.Mana").GetValue <Slider>().Value)
                {
                    return;
                }

                if (IsActive("GFUELTalon.jungleclear.W") && W.IsReady() && minion.IsValidTarget(W.Range))
                {
                    W.Cast(minion);
                }

                if (IsActive("GFUELTalon.jungleclear.Q") && Q.IsReady() && minion.IsValidTarget(Q.Range))
                {
                    Q.Cast(minion);
                }

                var min =
                    MinionManager.GetMinions(
                        Orbwalking.GetRealAutoAttackRange(Player),
                        MinionTypes.All,
                        MinionTeam.NotAlly).Count();

                if (min >= 1)
                {
                    if (Tiamat.IsReady())
                    {
                        Tiamat.Cast();
                    }

                    if (Hydra.IsReady())
                    {
                        Hydra.Cast();
                    }
                }
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
예제 #14
0
        private static void JungleClear()
        {
            var pos = new List <Vector2>();
            List <Obj_AI_Base> mobs = MinionManager.GetMinions(
                Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Neutral);

            foreach (Obj_AI_Base minion in mobs)
            {
                if (minion != null)
                {
                    pos.Add(minion.Position.To2D());
                }

                // Normal Farms
                if (Q.IsReady() && minion.IsValidTarget() && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= Q.Range &&
                    Config.Item("UseQFarm").GetValue <bool>())
                {
                    Orbwalker.SetAttack(false);
                    Q.Cast(minion);
                    Orbwalker.SetAttack(true);
                }
                if (W.IsReady() && minion.IsValidTarget() && Wnorm && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= W.Range &&
                    Config.Item("UseWFarm").GetValue <bool>() && (pos.Any()))
                {
                    MinionManager.FarmLocation pred = MinionManager.GetBestLineFarmLocation(pos, 70, 1025);

                    W.Cast(pred.Position);
                }
                if (E.IsReady() && minion.IsValidTarget() && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= E.Range &&
                    Config.Item("UseEFarm").GetValue <bool>() && (pos.Any()))
                {
                    MinionManager.FarmLocation pred = MinionManager.GetBestCircularFarmLocation(pos, 300, 600);
                    E.Cast(pred.Position);
                }
                //Evolved

                if (W.IsReady() && minion.IsValidTarget() && Wevolved && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= WE.Range &&
                    Config.Item("UseWFarm").GetValue <bool>() && (pos.Any()))
                {
                    MinionManager.FarmLocation pred = MinionManager.GetBestLineFarmLocation(pos, 70, 1025);

                    W.Cast(pred.Position);
                }
                if (Config.Item("UseItems").GetValue <bool>())
                {
                    if (Hydra.IsReady() && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= Hydra.Range)
                    {
                        Hydra.Cast();
                    }
                    if (Tiamat.IsReady() && Vector3.Distance(Player.ServerPosition, minion.ServerPosition) <= Tiamat.Range)
                    {
                        Tiamat.Cast();
                    }
                }
            }
        }
예제 #15
0
파일: Talon.cs 프로젝트: sadnecc/CHportcn
        private static void DoLaneclear()
        {
            try
            {
                var minion = MinionManager.GetMinions(Player.Position, E.Range).MinOrDefault(x => x.Health);
                if (minion == null)
                {
                    return;
                }

                if (Player.ManaPercent < getSliderItem(laneclearMenu, "GFUELTalon.laneclear.Mana"))
                {
                    return;
                }

                if (getCheckBoxItem(laneclearMenu, "GFUELTalon.laneclear.W") && W.IsReady())
                {
                    if (GetCenterMinion().IsValidTarget())
                    {
                        W.Cast(GetCenterMinion());
                    }
                }

                var min =
                    MinionManager.GetMinions(
                        Orbwalking.GetRealAutoAttackRange(Player),
                        MinionTypes.All,
                        MinionTeam.NotAlly).Count();

                if (min >= 3)
                {
                    if (Tiamat.IsReady())
                    {
                        Tiamat.Cast();
                    }

                    if (Hydra.IsReady())
                    {
                        Hydra.Cast();
                    }
                }

                if (getCheckBoxItem(laneclearMenu, "GFUELTalon.laneclear.E") && E.IsReady())
                {
                    if (E.GetDamage(minion) > minion.Health)
                    {
                        E.CastOnUnit(minion);
                    }
                }
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
예제 #16
0
파일: ItemManager.cs 프로젝트: spall9/Fizz
 public static void useHydraNot()
 {
     if (Tiamat.IsOwned() || Hydra.IsOwned())
     {
         if (Tiamat.IsReady() || Hydra.IsReady())
         {
             Tiamat.Cast();
             Hydra.Cast();
         }
     }
 }
예제 #17
0
파일: ItemManager.cs 프로젝트: spall9/Fizz
 public static void useHydra(Obj_AI_Base target)
 {
     if (Tiamat.IsOwned() || Hydra.IsOwned())
     {
         if ((Tiamat.IsReady() || Hydra.IsReady()) && Player.Instance.Distance(target) <= Hydra.Range)
         {
             Tiamat.Cast();
             Hydra.Cast();
         }
     }
 }
예제 #18
0
 public static void UseHydra(AttackableUnit target)
 {
     if (Tiamat.IsOwned() || Hydra.IsOwned())
     {
         if ((Tiamat.IsReady() || Hydra.IsReady()) && Player.Instance.Distance(target) <= Hydra.Range)
         {
             Tiamat.Cast();
             Hydra.Cast();
         }
     }
 }
예제 #19
0
        private void LaneClear()
        {
            var useQ                 = Config.Item("LaneClearQ").GetValue <bool>();
            var useW                 = Config.Item("LaneClearW").GetValue <bool>();
            var useE                 = Config.Item("LaneClearE").GetValue <bool>();
            var useItems             = Config.Item("LaneClearItems").GetValue <bool>();
            var laneClearManaManager = Config.Item("LaneClearManaManager").GetValue <Slider>().Value;
            var minimumEMinions      = Config.Item("MinimumEMinions").GetValue <Slider>().Value;

            var minionsq =
                Cache.GetMinions(Player.Position, Q.Range, SebbyLib.MinionTeam.Enemy)
                .OrderByDescending(x => x.Distance(Player.Position))
                .FirstOrDefault();

            if (useItems)
            {
                if (Hydra.IsReady() && minionsq.IsValidTarget(Hydra.Range))
                {
                    Hydra.Cast();
                }

                if (Tiamat.IsReady() && minionsq.IsValidTarget(Tiamat.Range))
                {
                    Tiamat.Cast();
                }
            }

            if (Player.ManaPercent < laneClearManaManager)
            {
                return;
            }

            var minionselist = Cache.GetMinions(Player.Position, E.Range, SebbyLib.MinionTeam.Enemy);
            var minionsw     = minionselist.OrderByDescending(x => x.Distance(Player.Position)).FirstOrDefault();
            var minionse     = E.GetCircularFarmLocation(minionselist);

            if (useQ && Q.Instance.IsReady() && minionsq.IsValidTarget() && (minionsq != null) &&
                (minionsq.Health < GetRealQDamage(minionsq)))
            {
                Q.CastOnUnit(minionsq);
            }

            if (useW && W.Instance.IsReady() && minionsw.IsValidTarget() && (minionsw != null) &&
                (minionsw.Health < W.GetDamage(minionsw)))
            {
                W.Cast(minionsw.Position);
            }

            if ((minionse.MinionsHit >= minimumEMinions) && useE &&
                E.Instance.IsReady())
            {
                E.Cast(minionse.Position);
            }
        }
예제 #20
0
        private void AssassinateProgram(Obj_AI_Hero target)
        {
            if ((target == null) || !target.IsValidTarget())
            {
                return;
            }

            if (E.Instance.IsReady() && !Q.IsInRange(target))
            {
                E.Cast(target.Position);
            }
            if (Q.Instance.IsReady())
            {
                Q.CastOnUnit(target);
            }
            if ((_isMidAir && target.IsValidTarget(Hydra.Range)) ||
                target.IsValidTarget(Tiamat.Range) ||
                target.IsValidTarget(TitanicHydra.Range))
            {
                if (Hydra.IsReady())
                {
                    Hydra.Cast();
                }
                if (TitanicHydra.IsReady())
                {
                    TitanicHydra.Cast();
                }
                if (Tiamat.IsReady())
                {
                    Tiamat.Cast();
                }
            }
            if (W.Instance.IsReady())
            {
                SebbySpell(W, target);
            }

            if (Youmuu.IsReady() && target.IsValidTarget(Player.AttackRange + 400))
            {
                Youmuu.Cast();
            }
            if (Hydra.IsReady() && target.IsValidTarget(Hydra.Range))
            {
                Hydra.Cast();
            }
            if (TitanicHydra.IsReady() && target.IsValidTarget(TitanicHydra.Range))
            {
                TitanicHydra.Cast();
            }
            if (Tiamat.IsReady() && target.IsValidTarget(Tiamat.Range))
            {
                Tiamat.Cast();
            }
        }
예제 #21
0
 public static void useHydraNot(Obj_AI_Base target)
 {
     if (Tiamat.IsOwned() || RavenousHydra.IsOwned() || TitanicHydra.IsOwned())
     {
         if (Tiamat.IsReady() || RavenousHydra.IsReady() || TitanicHydra.IsReady())
         {
             Tiamat.Cast();
             TitanicHydra.IsReady();
             RavenousHydra.Cast();
         }
     }
 }
예제 #22
0
파일: Program.cs 프로젝트: lolscripts/wu
            //-------------------------------------------LaneClear()-----------------------------------------------

            public static void LaneClear()
            {
                IEnumerable <Obj_AI_Minion> ListMinions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition, E.Range);

                if (ListMinions.Any() && E.IsReady())
                {
                    if (Menu["UseELaneClear"].Cast <CheckBox>().CurrentValue&& ListMinions.Count() >= Menu["Min Minions E"].Cast <Slider>().CurrentValue)
                    {
                        E.Cast();
                    }
                }

                IEnumerable <Obj_AI_Minion> IEMinions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition, Q.Range).Where(minion => minion.Health <= SpellDamage(minion, SpellSlot.Q)).OrderByDescending(minion => minion.Distance(Player2D));

                if (IEMinions.Any() && Q.IsReady())
                {
                    if (Menu["UseQLaneClear"].Cast <CheckBox>().CurrentValue)
                    {
                        Q.Cast(IEMinions.First());
                    }
                }

                if (Tiamat.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                    if (UseItem)
                    {
                        Tiamat.Cast();
                    }
                    UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Tiamat.Cast();
                    }
                }

                if (Hydra.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                    if (UseItem)
                    {
                        Hydra.Cast();
                    }
                    UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Hydra.Cast();
                    }
                }

                return;
            }
예제 #23
0
 public static void UseHydraNot(AttackableUnit target)
 {
     if (!Tiamat.IsOwned() && !Hydra.IsOwned())
     {
         return;
     }
     if (!Tiamat.IsReady() && !Hydra.IsReady())
     {
         return;
     }
     Tiamat.Cast();
     Hydra.Cast();
 }
예제 #24
0
        private static double GetCircleThingDamage(Obj_AI_Base target)
        {
            if (Hydra.IsReady())
            {
                return(Riven.Player.GetItemDamage(target, Damage.DamageItems.Hydra));
            }
            if (Tiamat.IsReady())
            {
                return(Riven.Player.GetItemDamage(target, Damage.DamageItems.Tiamat));
            }

            return(0);
        }
예제 #25
0
        public static void useHydra(Obj_AI_Base target)
        {
            var useH = Misc.isChecked(ItemsMenu, "useHydra");

            if (Tiamat.IsOwned() || Hydra.IsOwned() && useH)
            {
                if ((Tiamat.IsReady() || Hydra.IsReady()) && _Player.Distance(target) <= Hydra.Range)
                {
                    Tiamat.Cast();
                    Hydra.Cast();
                }
            }
        }
예제 #26
0
        public static void useHydraNot()
        {
            var useH = Misc.isChecked(ItemsMenu, "useHydra");

            if (Tiamat.IsOwned() || Hydra.IsOwned() && useH)
            {
                if ((Tiamat.IsReady() || Hydra.IsReady()))
                {
                    Tiamat.Cast();
                    Hydra.Cast();
                }
            }
        }
예제 #27
0
파일: Program.cs 프로젝트: lolscripts/wu
            //-------------------------------------------LaneClear()-----------------------------------------------

            public static void LaneClear()
            {
                if (E.IsReady())
                {
                    if (EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, E.Range).Count() >= Menu["Min Minions E"].Cast <Slider>().CurrentValue&& Menu["UseELaneClear"].Cast <CheckBox>().CurrentValue&& !Player.HasBuff("GarenE"))
                    {
                        E.Cast();
                    }
                    else if (EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.ServerPosition, E.Range).Where(it => Player.GetSpellDamage(it, SpellSlot.Q) < it.Health).Any() && !Player.HasBuff("GarenE"))
                    {
                        E.Cast();
                    }
                }

                if (Tiamat != null)
                {
                    if (Tiamat.IsReady())
                    {
                        bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                        if (UseItem)
                        {
                            Tiamat.Cast();
                        }
                        UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                        if (UseItem)
                        {
                            Tiamat.Cast();
                        }
                    }
                }

                if (Hydra != null)
                {
                    if (Hydra.IsReady())
                    {
                        bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                        if (UseItem)
                        {
                            Hydra.Cast();
                        }
                        UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                        if (UseItem)
                        {
                            Hydra.Cast();
                        }
                    }
                }

                return;
            }
예제 #28
0
 public static void useHydra(Obj_AI_Base target)
 {
     if (Tiamat.IsOwned() || RavenousHydra.IsOwned() || TitanicHydra.IsOwned())
     {
         if ((Tiamat.IsReady() && Player.Instance.Distance(target) <= RavenousHydra.Range ||
              RavenousHydra.IsReady()) && Player.Instance.Distance(target) <= RavenousHydra.Range ||
             TitanicHydra.IsReady())
         {
             Tiamat.Cast();
             TitanicHydra.Cast();
             RavenousHydra.Cast();
         }
     }
 }
예제 #29
0
파일: Program.cs 프로젝트: lolscripts/wu
            //-------------------------------------------LaneClear()-----------------------------------------------

            public static void LaneClear()
            {
                if (Q.IsReady() && Menu["UseQLaneClear"].Cast <CheckBox>().CurrentValue)
                {
                    //var Turret = ObjectManager.Get<Obj_AI_Turret>().FirstOrDefault(it => !it.IsDead && it.IsEnemy && it.Distance(Player) <= 1300);
                    var Minion = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(it => it.IsValidTarget(Q.Range) && it.Distance(Player) >= Player.GetAutoAttackRange(it) && SpellDamage(it, SpellSlot.Q) >= it.Health);

                    if (Minion != null)
                    {
                        Q.Cast(Minion);
                    }
                }

                if (W.IsReady() && Menu["UseWLaneClear"].Cast <CheckBox>().CurrentValue&& EntityManager.MinionsAndMonsters.EnemyMinions.Where(it => it.IsValidTarget() && Player.IsInAutoAttackRange(it)).Count() >= 5)
                {
                    W.Cast();
                }

                if (Tiamat.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                    if (UseItem)
                    {
                        Tiamat.Cast();
                    }
                    UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Tiamat.Cast();
                    }
                }

                if (Hydra.IsReady())
                {
                    bool UseItem = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Hydra.Range).Count() >= 3;
                    if (UseItem)
                    {
                        Hydra.Cast();
                    }
                    UseItem = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Position, Hydra.Range).Count() >= 2;
                    if (UseItem)
                    {
                        Hydra.Cast();
                    }
                }

                return;
            }
예제 #30
0
파일: Talon.cs 프로젝트: lulabc/PortAIO-TW
        private static void DoLaneclear()
        {
            try
            {
                var minion = MinionManager.GetMinions(Player.Position, W.Range).MinOrDefault(x => x.Health);
                if (minion == null)
                {
                    return;
                }

                if (Player.ManaPercent < Menu.Item("GFUELTalon.laneclear.Mana").GetValue <Slider>().Value)
                {
                    return;
                }

                if (IsActive("GFUELTalon.laneclear.W") && W.IsReady())
                {
                    if (GetCenterMinion().IsValidTarget())
                    {
                        W.Cast(GetCenterMinion());
                    }
                }

                var min =
                    MinionManager.GetMinions(
                        Orbwalking.GetRealAutoAttackRange(Player),
                        MinionTypes.All,
                        MinionTeam.NotAlly).Count();

                if (min >= 3)
                {
                    if (Tiamat.IsReady())
                    {
                        Tiamat.Cast();
                    }

                    if (Hydra.IsReady())
                    {
                        Hydra.Cast();
                    }
                }
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }