コード例 #1
0
 private void NormalCombo(string Mode)
 {
     if (targetObj == null)
     {
         return;
     }
     if (ItemBool(Mode, "W") && SkillW.IsReady() && SkillW.InRange(targetObj.Position) && (Mode == "Combo" || Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange() + 100))
     {
         SkillW.CastOnUnit(targetObj, PacketCast());
     }
     if (ItemBool(Mode, "E") && SkillE.IsReady() && SkillE.InRange(targetObj.Position) && (Mode == "Combo" || Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange() + 100))
     {
         SkillE.Cast(targetObj.Position, PacketCast());
     }
     if (ItemBool(Mode, "Q") && SkillQ.IsReady() && Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange() + 50)
     {
         var DmgAA = Player.GetAutoAttackDamage(targetObj) * Math.Floor(SkillQ.Instance.Cooldown / (1 / (Player.PercentMultiplicativeAttackSpeedMod * 0.638)));
         if (SkillQ.GetHealthPrediction(targetObj) + 5 <= GetBonusDmg(targetObj) || SkillQ.GetHealthPrediction(targetObj) + 5 > DmgAA + GetBonusDmg(targetObj))
         {
             Orbwalk.SetAttack(false);
             Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj);
             Orbwalk.SetAttack(true);
         }
     }
     if (ItemBool(Mode, "Item") && Mode == "Combo" && Items.CanUseItem(Randuin) && Player.CountEnemysInRange(450) >= 1)
     {
         Items.UseItem(Randuin);
     }
     if (ItemBool(Mode, "Ignite") && Mode == "Combo")
     {
         CastIgnite(targetObj);
     }
 }
コード例 #2
0
        private void LaneJungClear()
        {
            var minionObj = ObjectManager.Get <Obj_AI_Base>().Where(i => IsValid(i, SkillE.Range) && (i is Obj_AI_Turret || i is Obj_AI_Minion)).OrderBy(i => i.MaxHealth);

            foreach (var Obj in minionObj)
            {
                if (SmiteReady() && Obj.Team == GameObjectTeam.Neutral)
                {
                    if ((ItemBool("SmiteMob", "Baron") && Obj.Name.StartsWith("SRU_Baron")) || (ItemBool("SmiteMob", "Dragon") && Obj.Name.StartsWith("SRU_Dragon")) || (!Obj.Name.Contains("Mini") && (
                                                                                                                                                                             (ItemBool("SmiteMob", "Red") && Obj.Name.StartsWith("SRU_Red")) || (ItemBool("SmiteMob", "Blue") && Obj.Name.StartsWith("SRU_Blue")) ||
                                                                                                                                                                             (ItemBool("SmiteMob", "Krug") && Obj.Name.StartsWith("SRU_Krug")) || (ItemBool("SmiteMob", "Gromp") && Obj.Name.StartsWith("SRU_Gromp")) ||
                                                                                                                                                                             (ItemBool("SmiteMob", "Raptor") && Obj.Name.StartsWith("SRU_Razorbeak")) || (ItemBool("SmiteMob", "Wolf") && Obj.Name.StartsWith("SRU_Murkwolf")))))
                    {
                        CastSmite(Obj);
                    }
                }
                if (ItemBool("Clear", "E") && SkillE.IsReady() && minionObj.Count(i => i is Obj_AI_Minion) > 0)
                {
                    var posEFarm = SkillE.GetCircularFarmLocation(minionObj.Where(i => i is Obj_AI_Minion).ToList());
                    SkillE.Cast(posEFarm.MinionsHit >= 2 ? posEFarm.Position : minionObj.First(i => i is Obj_AI_Minion).Position.To2D(), PacketCast());
                }
                if (ItemBool("Clear", "Q") && SkillQ.IsReady() && Player.Distance3D(Obj) <= Orbwalk.GetAutoAttackRange() + 50)
                {
                    var DmgAA = Player.GetAutoAttackDamage(Obj) * Math.Floor(SkillQ.Instance.Cooldown / (1 / (Player.PercentMultiplicativeAttackSpeedMod * 0.638)));
                    if (SkillQ.GetHealthPrediction(Obj) + 5 <= GetBonusDmg(targetObj) || SkillQ.GetHealthPrediction(Obj) + 5 > DmgAA + GetBonusDmg(Obj))
                    {
                        Orbwalk.SetAttack(false);
                        Player.IssueOrder(GameObjectOrder.AttackUnit, Obj);
                        Orbwalk.SetAttack(true);
                        break;
                    }
                }
            }
        }
コード例 #3
0
        private void LaneJungClear()
        {
            var minionObj = ObjectManager.Get <Obj_AI_Base>().Where(i => IsValid(i, SkillE.Range) && i is Obj_AI_Minion).OrderBy(i => i.Health);

            foreach (var Obj in minionObj)
            {
                if (ItemBool("Clear", "Q") && SkillQ.IsReady() && !Player.IsDashing() && (AACount >= 2 || (SkillE.IsReady() && SkillE.Instance.Name != "RenektonSliceAndDice")) && (minionObj.Count(i => IsValid(i, SkillQ.Range)) >= 2 || (Obj.MaxHealth >= 1200 && SkillQ.InRange(Obj.Position))))
                {
                    SkillQ.Cast(PacketCast());
                }
                if (ItemBool("Clear", "W") && (SkillW.IsReady() || Player.HasBuff("RenektonExecuteReady")) && !Player.IsDashing() && AACount >= 1 && Orbwalk.InAutoAttackRange(Obj) && (CanKill(Obj, SkillW, Player.Mana >= 50 ? 1 : 0) || Obj.MaxHealth >= 1200))
                {
                    Orbwalk.SetAttack(false);
                    Player.IssueOrder(GameObjectOrder.AttackUnit, Obj);
                    Orbwalk.SetAttack(true);
                    break;
                }
                if (ItemBool("Clear", "E") && SkillE.IsReady() && !Player.IsDashing())
                {
                    var posEFarm = SkillE.GetLineFarmLocation(minionObj.ToList());
                    if (SkillE.Instance.Name == "RenektonSliceAndDice")
                    {
                        SkillE.Cast(posEFarm.MinionsHit >= 2 ? posEFarm.Position : Player.Position.To2D().Extend(Obj.Position.To2D(), Obj.Distance3D(Player) + 200), PacketCast());
                    }
                    else if (!ECasted || AACount >= 2)
                    {
                        SkillE.Cast(posEFarm.MinionsHit >= 2 ? posEFarm.Position : Player.Position.To2D().Extend(Obj.Position.To2D(), Obj.Distance3D(Player) + 200), PacketCast());
                    }
                }
                if (ItemBool("Clear", "Item") && AACount >= 1)
                {
                    UseItem(Obj, true);
                }
            }
        }
コード例 #4
0
ファイル: Garen.cs プロジェクト: xlerify/MasterSeries
 private void LaneJungClear()
 {
     foreach (var minionObj in MinionManager.GetMinions(Player.Position, 800, MinionTypes.All, MinionTeam.NotAlly))
     {
         if (Config.Item("useClearQ").GetValue <bool>())
         {
             if (CanKill(minionObj, SkillQ) && Orbwalk.InAutoAttackRange(minionObj))
             {
                 if (SkillQ.IsReady() || Player.HasBuff("GarenQ", true))
                 {
                     Orbwalk.SetAttack(false);
                     if (!Player.HasBuff("GarenQ", true))
                     {
                         SkillQ.Cast(PacketCast());
                     }
                     if (Player.HasBuff("GarenQ", true))
                     {
                         Player.IssueOrder(GameObjectOrder.AttackUnit, minionObj);
                     }
                     Orbwalk.SetAttack(true);
                 }
             }
             else if (Player.Distance(minionObj) > 450 && SkillQ.IsReady())
             {
                 SkillQ.Cast();
             }
         }
         if (Config.Item("useClearE").GetValue <bool>() && SkillE.IsReady() && !Player.HasBuff("GarenE") && !Player.HasBuff("GarenQ", true) && SkillE.InRange(minionObj.Position))
         {
             SkillE.Cast(PacketCast());
         }
     }
 }
コード例 #5
0
        private void LastHit()
        {
            var minionObj = (Obj_AI_Base)ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(i => i.IsValidTarget(Orbwalk.GetAutoAttackRange(Player, i) + 50) && i.Health <= GetBonusDmg(i));

            if (minionObj == null)
            {
                minionObj = MinionManager.GetMinions(Player.Position, Orbwalk.GetAutoAttackRange() + 50, MinionTypes.All, MinionTeam.NotAlly).Where(i => i.Health <= GetBonusDmg(i)).OrderBy(i => i.Distance(Player)).FirstOrDefault();
            }
            if (minionObj == null)
            {
                return;
            }
            if (SkillW.IsReady() || Player.HasBuff("JaxEmpowerTwo", true))
            {
                Orbwalk.SetAttack(false);
                if (!Player.HasBuff("JaxEmpowerTwo", true))
                {
                    SkillW.Cast(PacketCast());
                }
                if (Player.HasBuff("JaxEmpowerTwo", true))
                {
                    Player.IssueOrder(GameObjectOrder.AttackUnit, minionObj);
                }
                Orbwalk.SetAttack(true);
            }
            else if (RCount >= 2)
            {
                Orbwalk.SetAttack(false);
                Player.IssueOrder(GameObjectOrder.AttackUnit, minionObj);
                Orbwalk.SetAttack(true);
            }
        }
コード例 #6
0
        private void LaneJungClear()
        {
            foreach (var Obj in ObjectManager.Get <Obj_AI_Minion>().Where(i => IsValid(i, 800)).OrderBy(i => i.Health))
            {
                if (ItemBool("Clear", "Q") && SkillQ.IsReady())
                {
                    switch (ItemList("Clear", "QMode"))
                    {
                    case 0:
                        SkillQ.Cast(PacketCast());
                        break;

                    case 1:
                        if (CanKill(Obj, SkillQ) && Player.Distance3D(Obj) <= Orbwalk.GetAutoAttackRange() + 50)
                        {
                            Orbwalk.SetAttack(false);
                            Player.IssueOrder(GameObjectOrder.AttackUnit, Obj);
                            Orbwalk.SetAttack(true);
                            break;
                        }
                        else if (Player.Distance(Obj) > 500)
                        {
                            SkillQ.Cast(PacketCast());
                        }
                        break;
                    }
                }
                if (ItemBool("Clear", "E") && SkillE.IsReady() && !Player.HasBuff("GarenE") && !Player.HasBuff("GarenQBuff") && SkillE.InRange(Obj.Position))
                {
                    SkillE.Cast(PacketCast());
                }
            }
        }
コード例 #7
0
ファイル: Nasus.cs プロジェクト: xlerify/MasterSeries
        private void LaneJungClear()
        {
            var towerObj  = (Obj_AI_Base)ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(i => i.IsValidTarget() && Orbwalk.InAutoAttackRange(i) && i.Health <= GetBonusDmg(i));
            var minionObj = MinionManager.GetMinions(Player.Position, SkillE.Range - 50, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.MaxHealth);
            var Obj       = (towerObj != null) ? towerObj : minionObj.FirstOrDefault(i => i.IsValidTarget() && Orbwalk.InAutoAttackRange(i));

            if (Config.Item("useClearQ").GetValue <bool>() && Obj != null)
            {
                var DmgAA = Player.GetAutoAttackDamage(Obj) * Math.Floor(SkillQ.Instance.Cooldown / (1 / (Player.PercentMultiplicativeAttackSpeedMod * 0.638)));
                if ((Obj.Health <= GetBonusDmg(Obj) || Obj.Health > DmgAA + GetBonusDmg(Obj)) && (SkillQ.IsReady() || Player.HasBuff("NasusQ", true)))
                {
                    Orbwalk.SetAttack(false);
                    if (!Player.HasBuff("NasusQ", true))
                    {
                        SkillQ.Cast(PacketCast());
                    }
                    if (Player.HasBuff("NasusQ", true))
                    {
                        Player.IssueOrder(GameObjectOrder.AttackUnit, Obj);
                    }
                    Orbwalk.SetAttack(true);
                }
            }
            if (Config.Item("useClearE").GetValue <bool>() && SkillE.IsReady() && minionObj.Count > 0)
            {
                var posEFarm = SkillE.GetCircularFarmLocation(minionObj);
                SkillE.Cast(posEFarm.MinionsHit >= 2 ? posEFarm.Position : minionObj.First().Position.To2D(), PacketCast());
            }
        }
コード例 #8
0
 private void LastHit()
 {
     if (!ItemBool("Misc", "QLastHit") || !SkillQ.IsReady())
     {
         return;
     }
     foreach (var Obj in ObjectManager.Get <Obj_AI_Base>().Where(i => IsValid(i, Orbwalk.GetAutoAttackRange() + 50) && SkillQ.GetHealthPrediction(i) + 5 <= GetBonusDmg(i) && (i is Obj_AI_Minion || i is Obj_AI_Turret)).OrderBy(i => i.MaxHealth).OrderBy(i => i.Distance3D(Player)))
     {
         Orbwalk.SetAttack(false);
         Player.IssueOrder(GameObjectOrder.AttackUnit, Obj);
         Orbwalk.SetAttack(true);
         break;
     }
 }
コード例 #9
0
ファイル: Jax.cs プロジェクト: xujiao1987/LeagueSharp
 private void LastHit()
 {
     if (!ItemBool("Misc", "WLastHit") || !SkillW.IsReady() || !Player.HasBuff("JaxEmpowerTwo", true))
     {
         return;
     }
     foreach (var Obj in ObjectManager.Get <Obj_AI_Minion>().Where(i => IsValid(i, Orbwalk.GetAutoAttackRange() + 50) && i.Health + 5 <= GetBonusDmg(i)).OrderBy(i => i.Health).OrderBy(i => i.Distance3D(Player)))
     {
         Orbwalk.SetAttack(false);
         Player.IssueOrder(GameObjectOrder.AttackUnit, Obj);
         Orbwalk.SetAttack(true);
         break;
     }
 }
コード例 #10
0
 private void LastHit()
 {
     if (!ItemBool("Misc", "QLastHit") || !SkillQ.IsReady())
     {
         return;
     }
     foreach (var Obj in ObjectManager.Get <Obj_AI_Minion>().Where(i => IsValid(i, Orbwalk.GetAutoAttackRange() + 50) && CanKill(i, SkillQ)).OrderBy(i => i.Health).OrderBy(i => i.Distance3D(Player)))
     {
         Orbwalk.SetAttack(false);
         Player.IssueOrder(GameObjectOrder.AttackUnit, Obj);
         Orbwalk.SetAttack(true);
         break;
     }
 }
コード例 #11
0
 private void NormalCombo(string Mode)
 {
     if (targetObj == null)
     {
         return;
     }
     if (ItemBool(Mode, "Q") && SkillQ.IsReady() && Player.Distance3D(targetObj) <= ((Mode == "Harass") ? Orbwalk.GetAutoAttackRange() + 50 : 800) && !Orbwalk.InAutoAttackRange(targetObj))
     {
         if (Mode == "Harass")
         {
             Orbwalk.SetAttack(false);
             Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj);
             Orbwalk.SetAttack(true);
         }
         else
         {
             SkillQ.Cast(PacketCast());
         }
     }
     if (ItemBool(Mode, "E") && SkillE.IsReady() && !Player.HasBuff("GarenE") && !Player.HasBuff("GarenQBuff") && SkillE.InRange(targetObj.Position))
     {
         SkillE.Cast(PacketCast());
     }
     if (ItemBool(Mode, "W") && SkillW.IsReady() && Orbwalk.InAutoAttackRange(targetObj) && Player.HealthPercentage() <= ItemSlider(Mode, "WUnder"))
     {
         SkillW.Cast(PacketCast());
     }
     if (ItemBool(Mode, "R") && ItemBool("Ultimate", targetObj.ChampionName) && Mode == "Combo" && SkillR.IsReady() && SkillR.InRange(targetObj.Position) && CanKill(targetObj, SkillR))
     {
         SkillR.CastOnUnit(targetObj, PacketCast());
     }
     if (ItemBool(Mode, "Item") && Mode == "Combo" && Items.CanUseItem(Randuin) && Player.CountEnemysInRange(450) >= 1)
     {
         Items.UseItem(Randuin);
     }
     if (ItemBool(Mode, "Ignite") && Mode == "Combo")
     {
         CastIgnite(targetObj);
     }
 }
コード例 #12
0
ファイル: Nasus.cs プロジェクト: xlerify/MasterSeries
 private void NormalCombo()
 {
     if (targetObj == null)
     {
         return;
     }
     if (Config.Item("wusage").GetValue <bool>() && SkillW.IsReady() && SkillW.InRange(targetObj.Position))
     {
         SkillW.CastOnUnit(targetObj, PacketCast());
     }
     if (Config.Item("eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.InRange(targetObj.Position))
     {
         SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 100, PacketCast());
     }
     if (Config.Item("qusage").GetValue <bool>() && Orbwalk.InAutoAttackRange(targetObj))
     {
         var DmgAA = Player.GetAutoAttackDamage(targetObj) * Math.Floor(SkillQ.Instance.Cooldown / (1 / (Player.PercentMultiplicativeAttackSpeedMod * 0.638)));
         if ((targetObj.Health <= GetBonusDmg(targetObj) || targetObj.Health > DmgAA + GetBonusDmg(targetObj)) && (SkillQ.IsReady() || Player.HasBuff("NasusQ", true)))
         {
             Orbwalk.SetAttack(false);
             if (!Player.HasBuff("NasusQ", true))
             {
                 SkillQ.Cast(PacketCast());
             }
             if (Player.HasBuff("NasusQ", true))
             {
                 Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj);
             }
             Orbwalk.SetAttack(true);
         }
     }
     if (Config.Item("iusage").GetValue <bool>() && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1)
     {
         Items.UseItem(Rand);
     }
     if (Config.Item("ignite").GetValue <bool>())
     {
         CastIgnite(targetObj);
     }
 }
コード例 #13
0
 private void NormalCombo(bool IsHarass = false)
 {
     if (targetObj == null)
     {
         return;
     }
     if (ItemBool("Combo", "Q") && SkillQ.IsReady() && IsHarass ? Player.Distance3D(targetObj) <= Orbwalk.GetAutoAttackRange() + 50 : targetObj.IsValidTarget(800) && !Orbwalk.InAutoAttackRange(targetObj))
     {
         if (IsHarass)
         {
             Orbwalk.SetAttack(false);
             Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj);
             Orbwalk.SetAttack(true);
         }
         else
         {
             SkillQ.Cast(PacketCast());
         }
     }
     if (ItemBool("Combo", "E") && SkillE.IsReady() && !Player.HasBuff("GarenE", true) && !Player.HasBuff("GarenQ", true) && SkillE.InRange(targetObj.Position))
     {
         SkillE.Cast(PacketCast());
     }
     if (ItemBool("Combo", "W") && SkillW.IsReady() && Orbwalk.InAutoAttackRange(targetObj) && Player.Health * 100 / Player.MaxHealth <= ItemSlider("Combo", "WUnder"))
     {
         SkillW.Cast(PacketCast());
     }
     if (ItemBool("Combo", "R") && ItemBool("Ultimate", targetObj.ChampionName) && SkillR.IsReady() && SkillR.InRange(targetObj.Position) && CanKill(targetObj, SkillR))
     {
         SkillR.CastOnUnit(targetObj, PacketCast());
     }
     if (ItemBool("Combo", "Item") && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1)
     {
         Items.UseItem(Rand);
     }
     if (ItemBool("Combo", "Ignite"))
     {
         CastIgnite(targetObj);
     }
 }
コード例 #14
0
 private void Harass()
 {
     if (targetObj == null)
     {
         return;
     }
     if (ItemBool("Harass", "W") && (SkillW.IsReady() || Player.HasBuff("RenektonExecuteReady")) && !Player.IsDashing() && (AACount >= 1 || (SkillE.IsReady() && SkillE.Instance.Name != "RenektonSliceAndDice")) && Orbwalk.InAutoAttackRange(targetObj))
     {
         Orbwalk.SetAttack(false);
         Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj);
         Orbwalk.SetAttack(true);
     }
     if (ItemBool("Harass", "Q") && SkillQ.IsReady() && !Player.IsDashing() && AACount >= 2 && SkillQ.InRange(targetObj.Position))
     {
         SkillQ.Cast(PacketCast());
     }
     if (ItemBool("Harass", "E") && !Player.IsDashing())
     {
         if (SkillE.IsReady())
         {
             if (SkillE.Instance.Name == "RenektonSliceAndDice")
             {
                 if (SkillE.InRange(targetObj.Position) && Player.HealthPercentage() >= ItemSlider("Harass", "EAbove"))
                 {
                     HarassBackPos = Player.ServerPosition;
                     SkillE.Cast(Player.Position.To2D().Extend(targetObj.Position.To2D(), targetObj.Distance3D(Player) + 200), PacketCast());
                 }
             }
             else if (!ECasted || AACount >= 2)
             {
                 SkillE.Cast(HarassBackPos, PacketCast());
             }
         }
         else if (HarassBackPos != default(Vector3))
         {
             HarassBackPos = default(Vector3);
         }
     }
 }
コード例 #15
0
 private void NormalCombo()
 {
     if (targetObj == null)
     {
         return;
     }
     if (ItemBool("Combo", "W") && (SkillW.IsReady() || Player.HasBuff("RenektonExecuteReady")) && !Player.IsDashing() && Orbwalk.InAutoAttackRange(targetObj))
     {
         Orbwalk.SetAttack(false);
         Player.IssueOrder(GameObjectOrder.AttackUnit, targetObj);
         Orbwalk.SetAttack(true);
     }
     if (ItemBool("Combo", "Q") && SkillQ.IsReady() && !Player.IsDashing() && SkillQ.InRange(targetObj.Position))
     {
         SkillQ.Cast(PacketCast());
     }
     if (ItemBool("Combo", "E") && SkillE.IsReady() && SkillE.InRange(targetObj.Position))
     {
         if (SkillE.Instance.Name == "RenektonSliceAndDice")
         {
             SkillE.Cast(Player.Position.To2D().Extend(targetObj.Position.To2D(), targetObj.Distance3D(Player) + 200), PacketCast());
         }
         else if (!ECasted || !IsValid(targetObj, SkillE.Range - 30) || CanKill(targetObj, SkillE, Player.Mana >= 50 ? 1 : 0))
         {
             SkillE.Cast(Player.Position.To2D().Extend(targetObj.Position.To2D(), targetObj.Distance3D(Player) + 200), PacketCast());
         }
     }
     if (ItemBool("Combo", "Item"))
     {
         UseItem(targetObj);
     }
     if (ItemBool("Combo", "Ignite"))
     {
         CastIgnite(targetObj);
     }
 }
コード例 #16
0
ファイル: Nasus.cs プロジェクト: xlerify/MasterSeries
 private void LastHit()
 {
     if (SkillQ.IsReady() || Player.HasBuff("NasusQ", true))
     {
         Orbwalk.SetAttack(false);
         var minionObj = (Obj_AI_Base)ObjectManager.Get <Obj_AI_Turret>().FirstOrDefault(i => i.IsValidTarget() && Orbwalk.InAutoAttackRange(i) && i.Health <= GetBonusDmg(i));
         if (minionObj == null)
         {
             minionObj = MinionManager.GetMinions(Player.Position, 500, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.MaxHealth).FirstOrDefault(i => Orbwalk.InAutoAttackRange(i) && i.Health <= GetBonusDmg(i));
         }
         if (minionObj != null)
         {
             if (!Player.HasBuff("NasusQ", true))
             {
                 SkillQ.Cast(PacketCast());
             }
             if (Player.HasBuff("NasusQ", true))
             {
                 Player.IssueOrder(GameObjectOrder.AttackUnit, minionObj);
             }
         }
         Orbwalk.SetAttack(true);
     }
 }