Example #1
0
        public void combo()
        {
            var target = TargetSelector.GetTarget(ObjectManager.Player.AttackRange + KindredSpells.privQ.Range + 70, DamageType.Physical);

            if (target == null)
            {
                return;
            }
            gTarget = target;
            if (KindredSpells.privR.IsReady() && ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.minRcombo() && KindredMenu.useR())
            {
                KindredSpells.privR.Cast(Player.Instance);
            }
            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.itemsYOUMUSSenemys() || Player.Instance.HealthPercent >= KindredMenu.itemsYOUMUSShp()) && KindredSpells.youmus.IsReady())
            {
                KindredSpells.youmus.Cast();
            }
            if (Player.Instance.HealthPercent <= KindredMenu.itemsBOTRKhp() && KindredSpells.botrk.IsReady())
            {
                KindredSpells.botrk.Cast(target);
            }
            if (KindredSpells.privE.IsReady() && KindredMenu.useE())
            {
                KindredSpells.privE.Cast(target);
            }
            if (KindredSpells.privW.IsReady() && KindredMenu.useW())
            {
                KindredSpells.privW.Cast(target);
            }
            if (KindredSpells.privQ.IsReady() && KindredMenu.useQ())
            {
                if (KindredMenu.smartQCombo())
                {
                    if (ObjectManager.Player.Distance(target.Position) <= ObjectManager.Player.GetAutoAttackRange() && Player.Instance.HealthPercent <= KindredMenu.minQcombo() || ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.minQaggresive())
                    {
                        Player.CastSpell(SpellSlot.Q, -1 * (target.Position));
                    }
                    else if (ObjectManager.Player.Distance(target.Position) >= (ObjectManager.Player.GetAutoAttackRange() + KindredSpells.privQ.Range))
                    {
                        Player.CastSpell(SpellSlot.Q, target.Position);
                    }
                    else
                    {
                        Player.CastSpell(SpellSlot.Q, Game.CursorPos);
                    }
                }
                else
                {
                    Player.CastSpell(SpellSlot.Q, Game.CursorPos);
                }
            }
            if (KindredSpells.smite.IsReady() && KindredMenu.useSmiteCombo())
            {
                KindredSpells.smite.Cast(target);
            }
        }
Example #2
0
        private static void OnCombo()
        {
            Target = TargetSelector.GetTarget(700, DamageType.Magical);

            if (Target == null)
            {
                return;
            }
            if (!Target.IsValidTarget())
            {
                return;
            }
            var alvo = TargetSelector.GetTarget(1000, DamageType.Physical);

            if (alvo == null || !alvo.IsValid || alvo.IsDead || alvo.IsZombie || _Player.IsDead)
            {
                return;
            }


            if (E.IsReady() && KindredMenu.kincombo["combo.E"].Cast <CheckBox>().CurrentValue&& alvo.Distance(_Player) <= 500)
            {
                E.Cast(alvo);
            }

            if (W.State == SpellState.Ready && KindredMenu.kincombo["combo.W"].Cast <CheckBox>().CurrentValue&& alvo.Distance(_Player) <= 700)
            {
                W.Cast();
            }

            if (Q.IsReady() && KindredMenu.kincombo["combo.Q"].Cast <CheckBox>().CurrentValue&& alvo.Distance(_Player) <= Q.Range + 500)
            {
                Player.CastSpell(SpellSlot.Q, Game.CursorPos);
            }


            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= KindredMenu.itemsYOUMUSenemys() || Player.Instance.HealthPercent >= KindredMenu.itemsYOUMUShp()) && KindredActivator.youmus.IsReady() && KindredMenu.kincombo["combo.Youmuss"].Cast <CheckBox>().CurrentValue&& KindredActivator.youmus.IsOwned())
            {
                KindredActivator.youmus.Cast();
                return;
            }
            if (Player.Instance.HealthPercent <= KindredMenu.itemsbilgewaterHp() && KindredMenu.kincombo["combo.Bilgewater"].Cast <CheckBox>().CurrentValue&& KindredActivator.bilgewater.IsReady() && KindredActivator.bilgewater.IsOwned())
            {
                KindredActivator.bilgewater.Cast(Target);
                return;
            }

            if (Player.Instance.HealthPercent <= KindredMenu.itemsBOTRKhp() && KindredMenu.kincombo["combo.Botrk"].Cast <CheckBox>().CurrentValue&& KindredActivator.botrk.IsReady() && KindredActivator.botrk.IsOwned())
            {
                KindredActivator.botrk.Cast(Target);
            }
        }