Esempio n. 1
0
 private void NormalCombo()
 {
     if (targetObj == null)
     {
         return;
     }
     if (Config.Item("qusage").GetValue <bool>() && SkillQ.IsReady() && targetObj.IsValidTarget(1000) && !Orbwalk.InAutoAttackRange(targetObj))
     {
         SkillQ.Cast(PacketCast());
     }
     if (Config.Item("eusage").GetValue <bool>() && SkillE.IsReady() && !Player.HasBuff("GarenE") && !Player.HasBuff("GarenQ", true) && SkillE.InRange(targetObj.Position))
     {
         SkillE.Cast(PacketCast());
     }
     if (Config.Item("wusage").GetValue <bool>() && SkillW.IsReady() && Orbwalk.InAutoAttackRange(targetObj) && Player.Health * 100 / Player.MaxHealth <= Config.Item("autowusage").GetValue <Slider>().Value)
     {
         SkillW.Cast(PacketCast());
     }
     if (Config.Item("rusage").GetValue <bool>() && Config.Item("ult" + targetObj.ChampionName).GetValue <bool>() && SkillR.IsReady() && SkillR.InRange(targetObj.Position) && CanKill(targetObj, SkillR))
     {
         SkillR.CastOnUnit(targetObj, PacketCast());
     }
     if (Config.Item("iusage").GetValue <bool>() && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1)
     {
         Items.UseItem(Rand);
     }
     if (Config.Item("ignite").GetValue <bool>())
     {
         CastIgnite(targetObj);
     }
 }
Esempio n. 2
0
 private void Harass()
 {
     if (targetObj == null || Player.Health * 100 / Player.MaxHealth < Config.Item(Name + "harMode").GetValue <Slider>().Value)
     {
         return;
     }
     if (SkillE.IsReady() && SkillE.Instance.Name == "RenektonSliceAndDice" && SkillE.InRange(targetObj.Position))
     {
         SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 200, PacketCast);
     }
     if (Config.Item(Name + "useHarW").GetValue <bool>() && SkillW.InRange(targetObj.Position) && !ECasted && SkillW.IsReady())
     {
         SkillW.Cast(PacketCast);
     }
     if (Config.Item(Name + "useHarQ").GetValue <bool>() && SkillQ.IsReady() && SkillQ.InRange(targetObj.Position) && !ECasted)
     {
         SkillQ.Cast(PacketCast);
     }
     if (SkillE.IsReady() && SkillE.Instance.Name != "RenektonSliceAndDice" && !ECasted)
     {
         SkillE.Cast(DashBackPos, PacketCast);
     }
     if (!SkillE.IsReady())
     {
         DashBackPos = default(Vector3);
     }
 }
Esempio n. 3
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);
            }
        }
Esempio n. 4
0
 private void OnCreate(GameObject sender, EventArgs args)
 {
     if (sender is Obj_SpellMissile && sender.IsValid && Config.Item("surviveW").GetValue <bool>() && SkillW.IsReady())
     {
         var missle = (Obj_SpellMissile)sender;
         var caster = missle.SpellCaster;
         if (caster.IsEnemy)
         {
             var ShieldBuff = new Int32[] { 60, 100, 140, 180, 200 }[SkillW.Level - 1] +0.6 * Player.FlatMagicDamageMod;
             if (missle.SData.Name.Contains("BasicAttack"))
             {
                 if (missle.Target.IsMe && Player.Health <= caster.GetAutoAttackDamage(Player, true) && Player.Health + ShieldBuff > caster.GetAutoAttackDamage(Player, true))
                 {
                     SkillW.Cast();
                 }
             }
             else if (missle.Target.IsMe || missle.EndPosition.Distance(Player.Position) <= 130)
             {
                 if (missle.SData.Name == "summonerdot")
                 {
                     if (Player.Health <= (caster as Obj_AI_Hero).GetSummonerSpellDamage(Player, Damage.SummonerSpell.Ignite) && Player.Health + ShieldBuff > (caster as Obj_AI_Hero).GetSummonerSpellDamage(Player, Damage.SummonerSpell.Ignite))
                     {
                         SkillW.Cast();
                     }
                 }
                 else if (Player.Health <= (caster as Obj_AI_Hero).GetSpellDamage(Player, (caster as Obj_AI_Hero).GetSpellSlot(missle.SData.Name, false), 1) && Player.Health + ShieldBuff > (caster as Obj_AI_Hero).GetSpellDamage(Player, (caster as Obj_AI_Hero).GetSpellSlot(missle.SData.Name, false), 1))
                 {
                     SkillW.Cast();
                 }
             }
         }
     }
 }
Esempio n. 5
0
 private void NormalCombo(string Mode)
 {
     if (targetObj == null)
     {
         return;
     }
     if (ItemBool(Mode, "R") && ItemBool("Ultimate", targetObj.ChampionName) && Mode == "Combo" && SkillR.IsReady() && SkillR.InRange(targetObj.Position))
     {
         if (CanKill(targetObj, SkillR))
         {
             SkillR.Cast(PacketCast());
         }
         else if (SkillR.GetHealthPrediction(targetObj) - SkillR.GetDamage(targetObj) + 5 <= SkillE.GetDamage(targetObj) + Player.GetAutoAttackDamage(targetObj, true) + ((ItemBool(Mode, "Q") && SkillQ.IsReady()) ? SkillQ.GetDamage(targetObj) * 3 : 0) && ItemBool(Mode, "E") && SkillE.IsReady() && Player.Mana >= SkillR.Instance.ManaCost + SkillE.Instance.ManaCost + ((ItemBool(Mode, "Q") && SkillQ.IsReady()) ? SkillQ.Instance.ManaCost : 0))
         {
             SkillR.Cast(PacketCast());
         }
     }
     if (ItemBool(Mode, "E") && SkillE.IsReady() && SkillE.InRange(targetObj.Position) && (CanKill(targetObj, SkillE) || Player.Distance3D(targetObj) > Orbwalk.GetAutoAttackRange() + 50 || (Mode == "Combo" && Player.HealthPercentage() < targetObj.HealthPercentage())))
     {
         SkillE.CastOnUnit(targetObj, PacketCast());
     }
     if (ItemBool(Mode, "W") && SkillW.IsReady() && Orbwalk.InAutoAttackRange(targetObj))
     {
         SkillW.Cast(PacketCast());
     }
     if (ItemBool(Mode, "Item") && Mode == "Combo")
     {
         UseItem(targetObj);
     }
     if (ItemBool(Mode, "Ignite") && Mode == "Combo")
     {
         CastIgnite(targetObj);
     }
 }
Esempio n. 6
0
 private void Harass()
 {
     if (targetObj == null)
     {
         return;
     }
     if (Config.Item(Name + "useHarW").GetValue <bool>() && SkillW.IsReady())
     {
         if (Config.Item(Name + "useHarQ").GetValue <bool>() && SkillQ.InRange(targetObj.Position) && SkillQ.IsReady())
         {
             SkillW.Cast(PacketCast);
         }
     }
     if (Config.Item(Name + "useHarE").GetValue <bool>() && SkillE.IsReady())
     {
         if (!Player.HasBuff("JaxCounterStrike", true))
         {
             if ((Config.Item(Name + "useHarQ").GetValue <bool>() && SkillQ.InRange(targetObj.Position) && SkillQ.IsReady()) || SkillE.InRange(targetObj.Position))
             {
                 SkillE.Cast(PacketCast);
             }
         }
         else if (SkillE.InRange(targetObj.Position) && !targetObj.IsValidTarget(SkillE.Range - 3.5f))
         {
             SkillE.Cast(PacketCast);
         }
     }
     if (Config.Item(Name + "useHarQ").GetValue <bool>() && SkillQ.IsReady() && SkillQ.InRange(targetObj.Position) && Player.Health * 100 / Player.MaxHealth >= Config.Item(Name + "harMode").GetValue <Slider>().Value)
     {
         if ((Config.Item(Name + "useHarE").GetValue <bool>() && SkillE.IsReady() && Player.HasBuff("JaxCounterStrike", true) && !SkillE.InRange(targetObj.Position)) || (!LXOrbwalker.InAutoAttackRange(targetObj) && Player.Distance(targetObj) > 425))
         {
             SkillQ.CastOnUnit(targetObj, PacketCast);
         }
     }
 }
Esempio n. 7
0
 private void Harass()
 {
     if (targetObj == null)
     {
         return;
     }
     if (ItemBool("Harass", "W") && SkillW.IsReady() && ItemBool("Harass", "Q") && SkillQ.IsReady() && SkillQ.InRange(targetObj.Position))
     {
         SkillW.Cast(PacketCast());
     }
     if (ItemBool("Harass", "E") && SkillE.IsReady())
     {
         if (!Player.HasBuff("JaxCounterStrike", true))
         {
             if ((ItemBool("Harass", "Q") && SkillQ.IsReady() && SkillQ.InRange(targetObj.Position)) || SkillE.InRange(targetObj.Position))
             {
                 SkillE.Cast(PacketCast());
             }
         }
         else if (SkillE.InRange(targetObj.Position) && !IsValid(targetObj, SkillE.Range - 3.5f))
         {
             SkillE.Cast(PacketCast());
         }
     }
     if (ItemBool("Harass", "Q") && SkillQ.IsReady() && SkillQ.InRange(targetObj.Position) && Player.Health * 100 / Player.MaxHealth >= ItemList("Harass", "QAbove"))
     {
         if ((ItemBool("Harass", "E") && SkillE.IsReady() && Player.HasBuff("JaxCounterStrike", true) && !SkillE.InRange(targetObj.Position)) || (!Orbwalk.InAutoAttackRange(targetObj) && Player.Distance3D(targetObj) > 450))
         {
             SkillQ.CastOnUnit(targetObj, PacketCast());
         }
     }
 }
Esempio n. 8
0
        private void LaneJungClear()
        {
            var minionObj = MinionManager.GetMinions(Player.Position, SkillE.Range, MinionTypes.All, MinionTeam.NotAlly).FirstOrDefault();

            if (minionObj == null)
            {
                return;
            }
            if (Config.Item(Name + "useClearE").GetValue <bool>() && SkillE.IsReady() && (!LXOrbwalker.InAutoAttackRange(minionObj) || CanKill(minionObj, SkillE)))
            {
                SkillE.CastOnUnit(minionObj, PacketCast);
            }
            if (Config.Item(Name + "useClearW").GetValue <bool>() && SkillW.IsReady() && LXOrbwalker.InAutoAttackRange(minionObj))
            {
                SkillW.Cast(PacketCast);
            }
            if (Config.Item(Name + "useClearQ").GetValue <bool>() && SkillQ.IsReady() && SkillQ.InRange(minionObj.Position))
            {
                SkillQ.Cast(PacketCast);
            }
            if (Config.Item(Name + "useClearI").GetValue <bool>() && Player.Distance(minionObj) <= 350)
            {
                if (Items.CanUseItem(Tiamat))
                {
                    Items.UseItem(Tiamat);
                }
                if (Items.CanUseItem(Hydra))
                {
                    Items.UseItem(Hydra);
                }
            }
        }
Esempio n. 9
0
 private void LaneJungClear()
 {
     foreach (var Obj in ObjectManager.Get <Obj_AI_Minion>().Where(i => IsValid(i, SkillE.Range)).OrderBy(i => i.Health))
     {
         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() && (Player.Distance3D(Obj) > Orbwalk.GetAutoAttackRange() + 50 || CanKill(Obj, SkillE) || Obj.MaxHealth >= 1200))
         {
             SkillE.CastOnUnit(Obj, PacketCast());
         }
         if (ItemBool("Clear", "W") && SkillW.IsReady() && Orbwalk.InAutoAttackRange(Obj))
         {
             SkillW.Cast(PacketCast());
         }
         if (ItemBool("Clear", "Q") && SkillQ.IsReady() && Player.Distance3D(Obj) <= Orbwalk.GetAutoAttackRange() + 50)
         {
             SkillQ.Cast(PacketCast());
         }
         if (ItemBool("Clear", "Item"))
         {
             UseItem(Obj, true);
         }
     }
 }
Esempio n. 10
0
 private void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (Player.IsDead)
     {
         return;
     }
     if (sender.IsEnemy && ItemBool("Misc", "WSurvive") && SkillW.IsReady())
     {
         if (args.Target.IsMe && ((Orbwalk.IsAutoAttack(args.SData.Name) && Player.Health <= sender.GetAutoAttackDamage(Player, true)) || (args.SData.Name == "summonerdot" && Player.Health <= (sender as Obj_AI_Hero).GetSummonerSpellDamage(Player, Damage.SummonerSpell.Ignite))))
         {
             SkillW.Cast(PacketCast());
         }
         else if ((args.Target.IsMe || (Player.Position.Distance(args.Start) <= args.SData.CastRange[0] && Player.Position.Distance(args.End) <= Orbwalk.GetAutoAttackRange())) && Damage.Spells.ContainsKey((sender as Obj_AI_Hero).ChampionName))
         {
             for (var i = 3; i > -1; i--)
             {
                 if (Damage.Spells[(sender as Obj_AI_Hero).ChampionName].FirstOrDefault(a => a.Slot == (sender as Obj_AI_Hero).GetSpellSlot(args.SData.Name, false) && a.Stage == i) != null)
                 {
                     if (Player.Health <= (sender as Obj_AI_Hero).GetSpellDamage(Player, (sender as Obj_AI_Hero).GetSpellSlot(args.SData.Name, false), i))
                     {
                         SkillW.Cast(PacketCast());
                     }
                 }
             }
         }
     }
 }
Esempio n. 11
0
 private void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (Player.IsDead)
     {
         return;
     }
     if (sender.IsMe)
     {
         if (Orbwalk.IsAutoAttack(args.SData.Name) && IsValid((Obj_AI_Base)args.Target) && SkillW.IsReady())
         {
             var Obj = (Obj_AI_Base)args.Target;
             if ((Orbwalk.CurrentMode == Orbwalk.Mode.LaneClear || Orbwalk.CurrentMode == Orbwalk.Mode.LaneFreeze) && ItemBool("Clear", "W") && args.Target is Obj_AI_Minion && (CanKill(Obj, SkillW, Player.Mana >= 50 ? 1 : 0) || Obj.MaxHealth >= 1200))
             {
                 SkillW.Cast(PacketCast());
             }
             else if ((Orbwalk.CurrentMode == Orbwalk.Mode.Combo || Orbwalk.CurrentMode == Orbwalk.Mode.Harass) && ItemBool(Orbwalk.CurrentMode.ToString(), "W") && args.Target is Obj_AI_Hero)
             {
                 SkillW.Cast(PacketCast());
             }
         }
         if (args.SData.Name == "RenektonCleave")
         {
             AACount = 0;
         }
         if (args.SData.Name == "RenektonPreExecute")
         {
             AACount = 0;
         }
         if (args.SData.Name == "RenektonSliceAndDice")
         {
             ECasted = true;
             Utility.DelayAction.Add((Orbwalk.CurrentMode == Orbwalk.Mode.LaneClear || Orbwalk.CurrentMode == Orbwalk.Mode.LaneFreeze) ? 3000 : 1800, () => ECasted = false);
             AACount = 0;
         }
         if (args.SData.Name == "renektondice")
         {
             AACount = 0;
         }
     }
     else if (sender.IsEnemy && ItemBool("Ultimate", "RSurvive") && SkillR.IsReady())
     {
         if (args.Target.IsMe && ((Orbwalk.IsAutoAttack(args.SData.Name) && (Player.Health - sender.GetAutoAttackDamage(Player, true)) * 100 / Player.MaxHealth <= ItemSlider("Ultimate", "RUnder")) || (args.SData.Name == "summonerdot" && (Player.Health - (sender as Obj_AI_Hero).GetSummonerSpellDamage(Player, Damage.SummonerSpell.Ignite)) * 100 / Player.MaxHealth <= ItemSlider("Ultimate", "RUnder"))))
         {
             SkillR.Cast(PacketCast());
         }
         else if ((args.Target.IsMe || (Player.Position.Distance(args.Start) <= args.SData.CastRange[0] && Player.Position.Distance(args.End) <= Orbwalk.GetAutoAttackRange())) && Damage.Spells.ContainsKey((sender as Obj_AI_Hero).ChampionName))
         {
             for (var i = 3; i > -1; i--)
             {
                 if (Damage.Spells[(sender as Obj_AI_Hero).ChampionName].FirstOrDefault(a => a.Slot == (sender as Obj_AI_Hero).GetSpellSlot(args.SData.Name, false) && a.Stage == i) != null)
                 {
                     if ((Player.Health - (sender as Obj_AI_Hero).GetSpellDamage(Player, (sender as Obj_AI_Hero).GetSpellSlot(args.SData.Name, false), i)) * 100 / Player.MaxHealth <= ItemSlider("Ultimate", "RUnder"))
                     {
                         SkillR.Cast(PacketCast());
                     }
                 }
             }
         }
     }
 }
Esempio n. 12
0
 private void NormalCombo()
 {
     if (targetObj == null)
     {
         return;
     }
     if (Config.Item(Name + "rusage").GetValue <bool>() && Config.Item(Name + "ult" + targetObj.ChampionName).GetValue <bool>() && SkillR.IsReady() && SkillR.InRange(targetObj.Position))
     {
         if (CanKill(targetObj, SkillR))
         {
             SkillR.Cast(PacketCast);
         }
         else if (targetObj.Health - SkillR.GetDamage(targetObj) <= SkillE.GetDamage(targetObj) + Player.GetAutoAttackDamage(targetObj) + SkillQ.GetDamage(targetObj) * 3 && Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.IsReady())
         {
             SkillR.Cast(PacketCast);
         }
     }
     if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.InRange(targetObj.Position) && (!LXOrbwalker.InAutoAttackRange(targetObj) || CanKill(targetObj, SkillE)))
     {
         SkillE.CastOnUnit(targetObj, PacketCast);
     }
     if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady() && LXOrbwalker.InAutoAttackRange(targetObj))
     {
         SkillW.Cast(PacketCast);
     }
     if (Config.Item(Name + "iusage").GetValue <bool>())
     {
         UseItem(targetObj);
     }
     if (Config.Item(Name + "ignite").GetValue <bool>())
     {
         CastIgnite(targetObj);
     }
 }
Esempio n. 13
0
        private void Flee()
        {
            var manaQ = SkillQ.Instance.ManaCost;
            var manaW = SkillW.Instance.ManaCost;
            var manaR = SkillR.Instance.ManaCost;
            var PData = Player.Buffs.FirstOrDefault(i => i.Name == "udyrmonkeyagilitybuff");

            if (SkillE.IsReady())
            {
                SkillE.Cast(PacketCast);
            }
            if (PData != null && PData.Count < 3)
            {
                if ((manaQ < manaW || manaQ < manaR || (manaQ == manaW && manaQ < manaR) || (manaQ == manaR && manaQ < manaW)) && SkillQ.IsReady())
                {
                    SkillQ.Cast(PacketCast);
                }
                else if ((manaW < manaQ || manaW < manaR || (manaW == manaQ && manaW < manaR) || (manaW == manaR && manaW < manaQ)) && SkillW.IsReady())
                {
                    SkillW.Cast(PacketCast);
                }
                else if ((manaR < manaQ || manaR < manaW || (manaR == manaQ && manaR < manaW) || (manaR == manaW && manaR < manaQ)) && SkillR.IsReady())
                {
                    SkillR.Cast(PacketCast);
                }
            }
        }
Esempio n. 14
0
 private void NormalCombo()
 {
     if (targetObj == null)
     {
         return;
     }
     if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.Instance.Name == "RenektonSliceAndDice" && SkillE.InRange(targetObj.Position))
     {
         SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 200, PacketCast);
     }
     if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.InRange(targetObj.Position) && !ECasted && SkillW.IsReady())
     {
         SkillW.Cast(PacketCast);
     }
     if (Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.IsReady() && SkillQ.InRange(targetObj.Position) && !ECasted)
     {
         SkillQ.Cast(PacketCast);
     }
     if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.Instance.Name != "RenektonSliceAndDice" && !ECasted && SkillE.InRange(targetObj.Position))
     {
         SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 200, PacketCast);
     }
     if (Config.Item(Name + "iusage").GetValue <bool>() && !ECasted)
     {
         UseItem(targetObj);
     }
     if (Config.Item(Name + "ignite").GetValue <bool>())
     {
         CastIgnite(targetObj);
     }
 }
Esempio n. 15
0
        private void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }
            if (args.SData.Name == "jaxrelentlessattack" && SkillW.IsReady() && (args.Target as Obj_AI_Base).IsValidTarget(LXOrbwalker.GetAutoAttackRange(Player, (Obj_AI_Base)args.Target)))
            {
                switch (LXOrbwalker.CurrentMode)
                {
                case LXOrbwalker.Mode.Combo:
                    if (Config.Item(Name + "wusage").GetValue <bool>() && Config.Item(Name + "wuseMode").GetValue <StringList>().SelectedIndex == 1)
                    {
                        SkillW.Cast(PacketCast);
                    }
                    break;

                case LXOrbwalker.Mode.LaneClear:
                    if (Config.Item(Name + "useClearW").GetValue <bool>() && Config.Item(Name + "useClearWMode").GetValue <StringList>().SelectedIndex == 1)
                    {
                        SkillW.Cast(PacketCast);
                    }
                    break;

                case LXOrbwalker.Mode.LaneFreeze:
                    if (Config.Item(Name + "useClearW").GetValue <bool>() && Config.Item(Name + "useClearWMode").GetValue <StringList>().SelectedIndex == 1)
                    {
                        SkillW.Cast(PacketCast);
                    }
                    break;
                }
            }
        }
Esempio n. 16
0
 private void LaneJungClear()
 {
     foreach (var minionObj in MinionManager.GetMinions(Player.Position, 1300, MinionTypes.All, MinionTeam.NotAlly))
     {
         var Passive = Player.HasBuff("blindmonkpassive_cosmetic", true);
         if (Config.Item(Name + "useClearQ").GetValue <bool>() && SkillQ.IsReady())
         {
             if (SkillQ.Instance.Name == "BlindMonkQOne")
             {
                 if (!Passive)
                 {
                     SkillQ.CastIfHitchanceEquals(minionObj, HitChance.VeryHigh, PacketCast);
                 }
             }
             else if ((minionObj.HasBuff("BlindMonkQOne", true) || minionObj.HasBuff("blindmonkqonechaos", true)) && (CanKill(minionObj, SkillQ, 1) || !QCasted || Player.Distance(minionObj) > 450 || !Passive))
             {
                 SkillQ.Cast(PacketCast);
             }
         }
         if (Config.Item(Name + "useClearE").GetValue <bool>() && SkillE.IsReady())
         {
             if (SkillE.Instance.Name == "BlindMonkEOne" && SkillE.InRange(minionObj.Position))
             {
                 if (!Passive)
                 {
                     SkillE.Cast(PacketCast);
                 }
             }
             else if (minionObj.HasBuff("BlindMonkEOne", true) && minionObj.IsValidTarget(575) && (!ECasted || !Passive))
             {
                 SkillE.Cast(PacketCast);
             }
         }
         if (Config.Item(Name + "useClearW").GetValue <bool>() && SkillW.IsReady() && LXOrbwalker.InAutoAttackRange(minionObj) && !WCasted && !Passive)
         {
             if (SkillW.Instance.Name == "BlindMonkWOne")
             {
                 SkillW.Cast(PacketCast);
                 WCasted = true;
                 Utility.DelayAction.Add(300, () => WCasted = false);
             }
             else
             {
                 SkillW.Cast(PacketCast);
             }
         }
         if (Config.Item(Name + "useClearI").GetValue <bool>() && Player.Distance(minionObj) <= 350)
         {
             if (Items.CanUseItem(Tiamat))
             {
                 Items.UseItem(Tiamat);
             }
             if (Items.CanUseItem(Hydra))
             {
                 Items.UseItem(Hydra);
             }
         }
     }
 }
Esempio n. 17
0
 private void NormalCombo()
 {
     if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady() && Player.HasBuff("BurningAgony") && Player.CountEnemysInRange(500) == 0)
     {
         SkillW.Cast();
     }
     if (targetObj == null)
     {
         return;
     }
     if (Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.IsReady())
     {
         if (Config.Item(Name + "smite").GetValue <bool>() && SkillQ.GetPrediction(targetObj).Hitchance == HitChance.Collision)
         {
             if (!SmiteCollision(targetObj, SkillQ))
             {
                 SkillQ.CastIfHitchanceEquals(targetObj, HitChance.VeryHigh, PacketCast);
             }
         }
         else
         {
             SkillQ.CastIfHitchanceEquals(targetObj, HitChance.VeryHigh, PacketCast);
         }
     }
     if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady())
     {
         if (Player.Health * 100 / Player.MaxHealth >= Config.Item(Name + "autowusage").GetValue <Slider>().Value)
         {
             if (SkillW.InRange(targetObj.Position))
             {
                 if (!Player.HasBuff("BurningAgony"))
                 {
                     SkillW.Cast(PacketCast);
                 }
             }
             else if (Player.HasBuff("BurningAgony"))
             {
                 SkillW.Cast(PacketCast);
             }
         }
         else if (Player.HasBuff("BurningAgony"))
         {
             SkillW.Cast(PacketCast);
         }
     }
     if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && LXOrbwalker.InAutoAttackRange(targetObj))
     {
         SkillE.Cast(PacketCast);
     }
     if (Config.Item(Name + "iusage").GetValue <bool>() && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1)
     {
         Items.UseItem(Rand);
     }
     if (Config.Item(Name + "ignite").GetValue <bool>())
     {
         CastIgnite(targetObj);
     }
 }
Esempio n. 18
0
 private void NormalCombo()
 {
     if (ItemBool("Combo", "W") && SkillW.IsReady() && Player.HasBuff("BurningAgony", true) && Player.CountEnemysInRange(500) == 0)
     {
         SkillW.Cast(PacketCast());
     }
     if (targetObj == null)
     {
         return;
     }
     if (ItemBool("Combo", "W") && SkillW.IsReady())
     {
         if (Player.Health * 100 / Player.MaxHealth >= ItemSlider("Combo", "WAbove"))
         {
             if (Player.Distance3D(targetObj) <= SkillW.Range + 35)
             {
                 if (!Player.HasBuff("BurningAgony", true))
                 {
                     SkillW.Cast(PacketCast());
                 }
             }
             else if (Player.HasBuff("BurningAgony", true))
             {
                 SkillW.Cast(PacketCast());
             }
         }
         else if (Player.HasBuff("BurningAgony", true))
         {
             SkillW.Cast(PacketCast());
         }
     }
     if (ItemBool("Combo", "Q") && SkillQ.IsReady() && SkillQ.InRange(targetObj.Position))
     {
         if (ItemBool("Misc", "SmiteCol"))
         {
             if (!SmiteCollision(targetObj, SkillQ))
             {
                 SkillQ.CastIfHitchanceEquals(targetObj, HitChance.VeryHigh, PacketCast());
             }
         }
         else
         {
             SkillQ.CastIfHitchanceEquals(targetObj, HitChance.VeryHigh, PacketCast());
         }
     }
     if (ItemBool("Combo", "E") && SkillE.IsReady() && Orbwalk.InAutoAttackRange(targetObj))
     {
         SkillE.Cast(PacketCast());
     }
     if (ItemBool("Combo", "Item") && Items.CanUseItem(Rand) && Player.CountEnemysInRange(450) >= 1)
     {
         Items.UseItem(Rand);
     }
     if (ItemBool("Combo", "Ignite"))
     {
         CastIgnite(targetObj);
     }
 }
Esempio n. 19
0
        private void NormalCombo()
        {
            if (targetObj == null)
            {
                return;
            }
            if (Config.Item("eusage").GetValue <bool>() && SkillE.IsReady() && SkillQ.InRange(targetObj.Position))
            {
                SkillE.Cast(Player.Distance(targetObj) < 450 ? targetObj.Position : targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 100, PacketCast());
            }
            if (Config.Item("eusage").GetValue <bool>() && flagPos != default(Vector3) && targetObj.IsValidTarget(180, true, flagPos))
            {
                if (Config.Item("qusage").GetValue <bool>() && SkillQ.InRange(targetObj.Position) && SkillQ.IsReady())
                {
                    SkillQ.Cast(flagPos, PacketCast());
                }
            }
            else if (Config.Item("qusage").GetValue <bool>() && SkillQ.InRange(targetObj.Position) && SkillQ.IsReady())
            {
                SkillQ.Cast(targetObj.Position, PacketCast());
            }
            if (Config.Item("rusage").GetValue <bool>() && SkillR.IsReady() && wallObj == null)
            {
                switch (Config.Item("ruseMode").GetValue <StringList>().SelectedIndex)
                {
                case 0:
                    if (SkillR.InRange(targetObj.Position) && CanKill(targetObj, SkillR))
                    {
                        SkillR.CastOnUnit(targetObj, PacketCast());
                    }
                    break;

                case 1:
                    var UltiObj = ObjectManager.Get <Obj_AI_Hero>().FirstOrDefault(i => i.IsValidTarget(SkillR.Range) && i.CountEnemysInRange(325) >= Config.Item("rmulti").GetValue <Slider>().Value);
                    if (UltiObj != null)
                    {
                        SkillR.CastOnUnit(UltiObj, PacketCast());
                    }
                    break;
                }
            }
            if (Config.Item("wusage").GetValue <bool>() && SkillW.IsReady() && SkillW.InRange(targetObj.Position) && Player.Health * 100 / Player.MaxHealth <= Config.Item("autowusage").GetValue <Slider>().Value)
            {
                SkillW.Cast(PacketCast());
            }
            if (Config.Item("iusage").GetValue <bool>())
            {
                UseItem(targetObj);
            }
            if (Config.Item("ignite").GetValue <bool>())
            {
                CastIgnite(targetObj);
            }
        }
Esempio n. 20
0
 private void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (!Config.Item(Name + "useAntiW").GetValue <bool>())
     {
         return;
     }
     if (gapcloser.Sender.IsValidTarget(SkillW.Range) && SkillW.IsReady())
     {
         SkillW.Cast();
     }
 }
Esempio n. 21
0
        private void LaneJungClear()
        {
            var minionObj = ObjectManager.Get <Obj_AI_Minion>().Where(i => IsValid(i, SkillQ.Range)).OrderBy(i => i.Health);

            if (minionObj.Count() == 0 && ItemBool("Clear", "W") && SkillW.IsReady() && Player.HasBuff("AuraofDespair", true))
            {
                SkillW.Cast(PacketCast());
            }
            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() && SkillE.InRange(Obj.Position))
                {
                    SkillE.Cast(PacketCast());
                }
                if (ItemBool("Clear", "W") && SkillW.IsReady())
                {
                    if (Player.Mana * 100 / Player.MaxMana >= ItemSlider("Clear", "WAbove"))
                    {
                        if (minionObj.Count(i => Player.Distance3D(i) <= SkillW.Range + 35) >= 2 || (Obj.MaxHealth >= 1200 && Player.Distance3D(Obj) <= SkillW.Range + 35))
                        {
                            if (!Player.HasBuff("AuraofDespair", true))
                            {
                                SkillW.Cast(PacketCast());
                            }
                        }
                        else if (Player.HasBuff("AuraofDespair", true))
                        {
                            SkillW.Cast(PacketCast());
                        }
                    }
                    else if (Player.HasBuff("AuraofDespair", true))
                    {
                        SkillW.Cast(PacketCast());
                    }
                }
                if (ItemBool("Clear", "Q") && SkillQ.IsReady() && (!Orbwalk.InAutoAttackRange(Obj) || CanKill(Obj, SkillQ)))
                {
                    SkillQ.CastIfHitchanceEquals(Obj, HitChance.Medium, PacketCast());
                }
            }
        }
Esempio n. 22
0
 private void LaneJungClear()
 {
     foreach (var Obj in ObjectManager.Get <Obj_AI_Minion>().Where(i => IsValid(i, SkillQ.Range)).OrderBy(i => i.Health))
     {
         if (ItemBool("Clear", "Q") && SkillQ.IsReady())
         {
             SkillQ.CastOnUnit(Obj, PacketCast());
         }
         if (ItemBool("Clear", "W") && SkillW.IsReady() && Orbwalk.InAutoAttackRange(Obj))
         {
             SkillW.Cast(PacketCast());
         }
     }
 }
Esempio n. 23
0
 private void NormalCombo()
 {
     if (targetObj == null)
     {
         return;
     }
     if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && !targetObj.HasBuff("udyrbearstuncheck", true))
     {
         SkillE.Cast(PacketCast);
     }
     if (targetObj.IsValidTarget(400) && (!Config.Item(Name + "eusage").GetValue <bool>() || (Config.Item(Name + "eusage").GetValue <bool>() && (SkillE.Level == 0 || (SkillE.Level >= 1 && targetObj.HasBuff("udyrbearstuncheck", true))))))
     {
         if (Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.IsReady())
         {
             SkillQ.Cast(PacketCast);
         }
         if (Config.Item(Name + "rusage").GetValue <bool>() && SkillR.IsReady() && SkillQ.Level >= 1 && CurStance == Stance.Tiger && (AACount >= 2 || TigerActive))
         {
             SkillR.Cast(PacketCast);
         }
         else if (SkillQ.Level == 0 && SkillR.IsReady())
         {
             SkillR.Cast(PacketCast);
         }
         if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady())
         {
             if (CurStance == Stance.Phoenix && (AACount >= 3 || PhoenixActive))
             {
                 SkillW.Cast(PacketCast);
             }
             else if (CurStance == Stance.Tiger && (AACount >= 2 || TigerActive))
             {
                 SkillW.Cast(PacketCast);
             }
             else if (SkillQ.Level == 0 && SkillR.Level == 0)
             {
                 SkillW.Cast(PacketCast);
             }
         }
     }
     if (Config.Item(Name + "iusage").GetValue <bool>())
     {
         UseItem(targetObj);
     }
     if (Config.Item(Name + "ignite").GetValue <bool>())
     {
         CastIgnite(targetObj);
     }
 }
Esempio n. 24
0
 private void OnPossibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
 {
     if (!Config.Item(Name + "useInterW").GetValue <bool>())
     {
         return;
     }
     if (SkillW.IsReady() && SkillE.IsReady() && !unit.IsValidTarget(SkillW.Range) && unit.IsValidTarget(SkillE.Range))
     {
         SkillE.Cast(unit.Position, PacketCast);
     }
     if (unit.IsValidTarget(SkillW.Range) && SkillW.IsReady())
     {
         SkillW.Cast();
     }
 }
Esempio n. 25
0
        private void KillSteal()
        {
            var target = ObjectManager.Get <Obj_AI_Hero>().FirstOrDefault(i => i.IsValidTarget(SkillQ.Range) && i.Health <= SkillQ.GetDamage(i) + GetBonusDmg(i) && i != targetObj);

            if (target != null && Player.Mana >= SkillQ.Instance.ManaCost)
            {
                if (SkillW.IsReady())
                {
                    SkillW.Cast(PacketCast);
                }
                if (SkillQ.IsReady() && Player.HasBuff("JaxEmpowerTwo", true))
                {
                    SkillQ.CastOnUnit(target, PacketCast);
                }
            }
        }
Esempio n. 26
0
 private void LaneJungClear()
 {
     foreach (var Obj in ObjectManager.Get <Obj_AI_Minion>().Where(i => IsValid(i, 800)).OrderBy(i => i.Health))
     {
         var SpecialMob = new[] { "SRU_Baron", "SRU_Dragon" }.Any(i => Obj.Name.StartsWith(i));
         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() && !Obj.HasBuff("UdyrBearStunCheck") && (!SpecialMob || Player.Distance3D(Obj) > Orbwalk.GetAutoAttackRange() + 150))
         {
             SkillE.Cast(PacketCast());
         }
         if (Player.Distance3D(Obj) <= Orbwalk.GetAutoAttackRange() + 50 && (!ItemBool("Clear", "E") || (ItemBool("Clear", "E") && (SkillE.Level == 0 || Obj.HasBuff("UdyrBearStunCheck") || SpecialMob))))
         {
             if (ItemBool("Clear", "Q") && SkillQ.IsReady())
             {
                 SkillQ.Cast(PacketCast());
             }
             if (ItemBool("Clear", "R") && SkillR.IsReady() && (!ItemBool("Clear", "Q") || (ItemBool("Clear", "Q") && (SkillQ.Level == 0 || (CurStance == Stance.Tiger && (AACount >= 2 || TigerActive))))))
             {
                 SkillR.Cast(PacketCast());
             }
             if (ItemBool("Clear", "W") && SkillW.IsReady())
             {
                 if ((CurStance == Stance.Tiger && (AACount >= 2 || TigerActive)) || (CurStance == Stance.Phoenix && (AACount >= 3 || PhoenixActive)))
                 {
                     SkillW.Cast(PacketCast());
                 }
                 else if (SkillQ.Level == 0 && SkillR.Level == 0)
                 {
                     SkillW.Cast(PacketCast());
                 }
             }
         }
         if (ItemBool("Clear", "Item"))
         {
             UseItem(Obj, true);
         }
     }
 }
Esempio n. 27
0
        private void LaneJungClear()
        {
            var minionObj = MinionManager.GetMinions(Player.Position, SkillQ.Range, MinionTypes.All, MinionTeam.NotAlly).FirstOrDefault();

            if (minionObj == null)
            {
                return;
            }
            if (Config.Item("useClearW").GetValue <bool>() && SkillW.IsReady() && Orbwalk.InAutoAttackRange(minionObj))
            {
                SkillW.Cast();
            }
            if (Config.Item("useClearQ").GetValue <bool>() && SkillQ.IsReady())
            {
                SkillQ.CastOnUnit(minionObj, PacketCast());
            }
        }
Esempio n. 28
0
 private void KillSteal()
 {
     if (Player.Mana < SkillQ.Instance.ManaCost + SkillW.Instance.ManaCost)
     {
         return;
     }
     foreach (var Obj in ObjectManager.Get <Obj_AI_Hero>().Where(i => IsValid(i, SkillQ.Range) && i.Health + 5 <= SkillQ.GetDamage(i) + GetBonusDmg(i) && i != targetObj).OrderBy(i => i.Health).OrderByDescending(i => i.Distance3D(Player)))
     {
         if (SkillW.IsReady())
         {
             SkillW.Cast(PacketCast());
         }
         if (SkillQ.IsReady() && Player.HasBuff("JaxEmpowerTwo", true))
         {
             SkillQ.CastOnUnit(Obj, PacketCast());
         }
     }
 }
Esempio n. 29
0
 private void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (!Config.Item(Name + "useAntiW").GetValue <bool>())
     {
         return;
     }
     if (gapcloser.Sender.IsValidTarget(SkillE.Range) && (SkillW.IsReady() || Player.HasBuff("RenektonPreExecute")))
     {
         if (!Player.HasBuff("RenektonPreExecute"))
         {
             SkillW.Cast(PacketCast);
         }
         if (Player.HasBuff("RenektonPreExecute"))
         {
             Player.IssueOrder(GameObjectOrder.AttackUnit, gapcloser.Sender);
         }
     }
 }
Esempio n. 30
0
 private void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (!ItemBool("Misc", "WAntiGap") || Player.IsDead)
     {
         return;
     }
     if (IsValid(gapcloser.Sender, Orbwalk.GetAutoAttackRange() + 50) && (SkillW.IsReady() || Player.HasBuff("RenektonExecuteReady")))
     {
         if (SkillW.IsReady())
         {
             SkillW.Cast(PacketCast());
         }
         if (Player.HasBuff("RenektonExecuteReady"))
         {
             Player.IssueOrder(GameObjectOrder.AttackUnit, gapcloser.Sender);
         }
     }
 }