Exemplo n.º 1
0
 private void NormalCombo()
 {
     if (targetObj == null)
     {
         return;
     }
     if (Config.Item("rusage").GetValue <bool>() && Config.Item("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("eusage").GetValue <bool>() && SkillE.IsReady() && Config.Item("qusage").GetValue <bool>() && SkillQ.IsReady())
         {
             SkillR.Cast(PacketCast());
         }
     }
     if (Config.Item("eusage").GetValue <bool>() && SkillE.IsReady() && SkillE.InRange(targetObj.Position) && (Player.Distance(targetObj) > 450 || CanKill(targetObj, SkillE)))
     {
         SkillE.CastOnUnit(targetObj, PacketCast());
     }
     if (Config.Item("wusage").GetValue <bool>() && SkillW.IsReady() && Orbwalk.InAutoAttackRange(targetObj))
     {
         SkillW.Cast(PacketCast());
     }
     if (Config.Item("iusage").GetValue <bool>())
     {
         UseItem(targetObj);
     }
     if (Config.Item("ignite").GetValue <bool>())
     {
         CastIgnite(targetObj);
     }
 }
Exemplo n.º 2
0
 private void AfterAttack(Obj_AI_Base unit, Obj_AI_Base target)
 {
     if (!unit.IsMe)
     {
         return;
     }
     if (Config.Item("qusage").GetValue <bool>() && target.IsValidTarget(SkillQ.Range) && SkillQ.IsReady() && (Orbwalk.CurrentMode == Orbwalk.Mode.Combo || Orbwalk.CurrentMode == Orbwalk.Mode.Harass))
     {
         SkillQ.Cast(PacketCast());
     }
 }
Exemplo n.º 3
0
 private void Harass()
 {
     if (targetObj == null)
     {
         return;
     }
     if (Config.Item(Name + "useHarE").GetValue <bool>() && SkillE.IsReady() && SkillQ.InRange(targetObj.Position))
     {
         SkillE.Cast(targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 100, PacketCast);
     }
     if (Config.Item(Name + "useHarE").GetValue <bool>() && flagPos != default(Vector3) && targetObj.IsValidTarget(180, true, flagPos) && SkillQ.InRange(targetObj.Position) && SkillQ.IsReady())
     {
         if (Player.Health * 100 / Player.MaxHealth >= Config.Item(Name + "harMode").GetValue <Slider>().Value)
         {
             SkillQ.Cast(flagPos, PacketCast);
         }
     }
     else if (SkillQ.InRange(targetObj.Position) && SkillQ.IsReady())
     {
         SkillQ.Cast(targetObj.Position, PacketCast);
     }
 }
Exemplo n.º 4
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());
                }
            }
        }
Exemplo n.º 5
0
        private void NormalCombo()
        {
            if (targetObj == null)
            {
                return;
            }
            if (Config.Item(Name + "eusage").GetValue <bool>() && SkillE.IsReady() && SkillQ.InRange(targetObj.Position))
            {
                SkillE.Cast(LXOrbwalker.InAutoAttackRange(targetObj) ? targetObj.Position : targetObj.Position + Vector3.Normalize(targetObj.Position - Player.Position) * 100, PacketCast);
            }
            if (Config.Item(Name + "eusage").GetValue <bool>() && flagPos != default(Vector3) && targetObj.IsValidTarget(180, true, flagPos))
            {
                if (Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.InRange(targetObj.Position) && SkillQ.IsReady())
                {
                    SkillQ.Cast(flagPos, PacketCast);
                }
            }
            else if (Config.Item(Name + "qusage").GetValue <bool>() && SkillQ.InRange(targetObj.Position) && SkillQ.IsReady())
            {
                SkillQ.Cast(targetObj.Position, PacketCast);
            }
            if (Config.Item(Name + "rusage").GetValue <bool>() && SkillR.IsReady() && wallObj == null)
            {
                switch (Config.Item(Name + "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(Name + "rmulti").GetValue <Slider>().Value);
                    if (UltiObj != null)
                    {
                        SkillR.CastOnUnit(UltiObj, PacketCast);
                    }
                    break;
                }
            }
            if (Config.Item(Name + "wusage").GetValue <bool>() && SkillW.IsReady() && SkillW.InRange(targetObj.Position) && Player.Health * 100 / Player.MaxHealth <= Config.Item(Name + "autowusage").GetValue <Slider>().Value)
            {
                SkillW.Cast(PacketCast);
            }
            if (Config.Item(Name + "iusage").GetValue <bool>())
            {
                UseItem(targetObj);
            }
            if (Config.Item(Name + "ignite").GetValue <bool>())
            {
                CastIgnite(targetObj);
            }
        }