Exemplo n.º 1
0
        private static void UseItems(Obj_AI_Base unit, bool isMinion = false)
        {
            if (!unit.IsValidTarget())
            {
                return;
            }


            if (SKOMenu.Item("Hydra").GetValue <bool>() && player.Distance(unit) < HYD.Range)
            {
                HYD.Cast();
            }
            if (SKOMenu.Item("Hydra").GetValue <bool>() && player.Distance(unit) < TMT.Range)
            {
                TMT.Cast();
            }
            if (SKOMenu.Item("BOTRK").GetValue <bool>() && player.Distance(unit) <= BRK.Range)
            {
                if (isMinion)
                {
                    return;
                }
                BRK.Cast(unit);
            }
            if (SKOMenu.Item("BOTRK").GetValue <bool>() && player.Distance(unit) <= BWC.Range)
            {
                BWC.Cast(unit);
            }
            if (SKOMenu.Item("RO").GetValue <bool>() && player.Distance(unit) <= RO.Range)
            {
                if (isMinion)
                {
                    return;
                }
                RO.Cast();
            }
            if (SKOMenu.Item("DFG").GetValue <bool>() && player.Distance(unit) <= DFG.Range)
            {
                if (isMinion)
                {
                    return;
                }
                DFG.Cast(unit);
            }
            if (SKOMenu.Item("YMU").GetValue <bool>() && player.Distance(unit) <= YMG.Range)
            {
                YMG.Cast();
            }
            if (SKOMenu.Item("SOD").GetValue <bool>() && player.Distance(unit) <= STD.Range)
            {
                STD.Cast();
            }
        }
Exemplo n.º 2
0
 private static void Combo(Obj_AI_Hero target)
 {
     if (SKOMenu.Item("UseItems").GetValue <bool>())
     {
         BKR.Cast(target);
         YOU.Cast();
         BWC.Cast(target);
         DFG.Cast(target);
         FQC.Cast(target);
     }
     if (SKOMenu.Item("UseQCombo").GetValue <bool>() && Q.IsReady())
     {
         if (SKOMenu.Item("UseRCombo").GetValue <bool>() && R.IsReady())
         {
             if (Player.Distance(target) <= Q.Range && Q.IsReady())
             {
                 R.Cast();
             }
         }
         if (Player.Distance(target) <= Q.Range && Player.HasBuff("KarmaMantra"))
         {
             Q.Cast(target);
         }
         else
         {
             Q.Cast(target);
         }
     }
     if (SKOMenu.Item("UseWCombo").GetValue <bool>() && W.IsReady())
     {
         if (Player.Distance(target) <= W.Range && !Player.HasBuff("KarmaMantra"))
         {
             W.Cast(target);
         }
     }
     if (!Player.HasBuff("KarmaMantra") && SKOMenu.Item("UseECombo").GetValue <bool>() && !SKOMenu.Item("Support").GetValue <bool>())
     {
         if (E.IsReady() && !E.Collision)
         {
             E.Cast(Player);
         }
     }
 }
Exemplo n.º 3
0
        private static void Combo(Obj_AI_Hero target)
        {
            if (target != null)
            {
                if (Config.Item("UseECombo").GetValue <bool>() && E.IsReady() && Player.Distance(target) <= Q.Range)
                {
                    E.Cast(target, true);
                }
                if (Config.Item("UseQCombo").GetValue <bool>() && Q.IsReady())
                {
                    Q.Cast(target, true);
                }
                if (Config.Item("UseWCombo").GetValue <bool>() && W.IsReady())
                {
                    W.Cast(target);
                }

                if (Config.Item("UseRCombo").GetValue <bool>() && R.IsReady() && !ult)
                {
                    if (GetEnemys(target) >= Config.Item("MinEnemys").GetValue <Slider>().Value)
                    {
                        R.Cast(target);
                    }
                }
                if (Config.Item("UseItems").GetValue <bool>())
                {
                    BKR.Cast(target);
                    YOU.Cast(target);
                    BWC.Cast(target);
                    DFG.Cast(target);
                    SOD.Cast(target);
                    RO.Cast(target);
                    HDR.Cast(target);
                    TMT.Cast(target);
                }
            }
        }
Exemplo n.º 4
0
 private static void Harass(Obj_AI_Hero target)
 {
     if (SKOMenu.Item("UseItems").GetValue <bool>())
     {
         BKR.Cast(target);
         YOU.Cast();
         BWC.Cast(target);
         DFG.Cast(target);
         FQC.Cast(target);
     }
     if (SKOMenu.Item("UseQHarass").GetValue <bool>() && Q.IsReady())
     {
         if (SKOMenu.Item("UseRHarass").GetValue <bool>() && R.IsReady())
         {
             if (Player.Distance(target) <= Q.Range)
             {
                 R.Cast();
             }
         }
         if (Player.Distance(target) <= Q.Range && Player.HasBuff("KarmaMantra"))
         {
             Q.Cast(target);
         }
         else
         {
             Q.Cast(target);
         }
     }
     if (SKOMenu.Item("UseWHarass").GetValue <bool>() && W.IsReady())
     {
         if (Player.Distance(target) <= W.Range)
         {
             W.Cast(target);
         }
     }
 }
Exemplo n.º 5
0
        private static void Combo()
        {
            var target = SimpleTs.GetTarget(Q.Range, SimpleTs.DamageType.Magical);

            Orbwalker.SetAttack((!Q.IsReady() || W.IsReady()));

            if (target != null)
            {
                if (IsHuman && Player.Distance(target) <= Q.Range && Config.Item("UseQCombo").GetValue <bool>() && Q.IsReady())
                {
                    Q.Cast(target, false);
                }
                if (IsHuman && Player.Distance(target) <= W.Range && Config.Item("UseWCombo").GetValue <bool>() && W.IsReady())
                {
                    W.Cast(target);
                }

                if (IsHuman && Config.Item("UseRCombo").GetValue <bool>() && Player.Distance(target) <= 625 && R.IsReady())
                {
                    if (IsHuman)
                    {
                        R.Cast();
                    }

                    if (IsCougar)
                    {
                        if (Config.Item("UseWComboCougar").GetValue <bool>() && Player.Distance(target) <= WC.Range)
                        {
                            WC.Cast(target);
                        }
                        if (Config.Item("UseEComboCougar").GetValue <bool>() && Player.Distance(target) <= EC.Range)
                        {
                            EC.Cast(target);
                        }
                        if (Config.Item("UseQComboCougar").GetValue <bool>() && Player.Distance(target) <= Q.Range)
                        {
                            Orbwalker.SetAttack(true);
                            QC.Cast(target);
                        }
                    }
                }

                if (IsCougar && Player.Distance(target) < 625)
                {
                    if (IsHuman)
                    {
                        R.Cast();
                    }

                    if (IsCougar)
                    {
                        if (Config.Item("UseWComboCougar").GetValue <bool>() && Player.Distance(target) <= WC.Range)
                        {
                            WC.Cast(target);
                        }
                        if (Config.Item("UseEComboCougar").GetValue <bool>() && Player.Distance(target) <= EC.Range)
                        {
                            EC.Cast(target);
                        }
                        if (Config.Item("UseQComboCougar").GetValue <bool>() && Player.Distance(target) <= Q.Range)
                        {
                            Orbwalker.SetAttack(true);
                            QC.Cast(target);
                        }
                    }
                }

                if (IsCougar && Config.Item("UseRCombo").GetValue <bool>() && Player.Distance(target) > WC.Range)
                {
                    R.Cast();
                }
                if (IsCougar && Player.Distance(target) > EC.Range && Config.Item("UseRCombo").GetValue <bool>())
                {
                    R.Cast();
                }

                if (Config.Item("UseItems").GetValue <bool>())
                {
                    BKR.Cast(target);
                    YOU.Cast();
                    BWC.Cast(target);
                    DFG.Cast(target);
                    SOD.Cast();
                    FQM.Cast(target);
                }
            }
        }
Exemplo n.º 6
0
        private static void doCombo()
        {
            var Target   = SimpleTs.GetTarget(Q1.Range, SimpleTs.DamageType.Magical);
            var Marked   = Target.HasBuff("nidaleepassivehunted", true);
            var Hunting  = Player.HasBuff("nidaleepassivehunting", true);
            var Distance = Player.Distance(Target);
            var useItems = Config.Item("combo_Items").GetValue <bool>();

            if (useItems)
            {
                if (Items.CanUseItem(Bork.Id))
                {
                    Bork.Cast(Target);
                }
                if (Items.CanUseItem(Cutlass.Id))
                {
                    Cutlass.Cast(Target);
                }
            }

            var comboUT = Config.Item("combo_UT").GetValue <bool>();

            /* Human Form */
            if (!IsCougar)
            {
                if (Marked && R.IsReady() && Config.Item("combo_R").GetValue <bool>() && Distance < 750f ||
                    (!Q1.IsReady() && !Q1.IsReady(2500) && Target.Distance(Player) < 300f) &&
                    (!Utility.UnderTurret(Target, true) || comboUT))
                {
                    R.CastOnUnit(Player, PacketCasting);
                }

                else if (Q1.IsReady() && Config.Item("combo_Q1").GetValue <bool>())
                {
                    Q1.Cast(Target, PacketCasting);
                }

                else if (W1.IsReady() && Config.Item("combo_W1").GetValue <bool>())
                {
                    W1.Cast(Target, PacketCasting);
                }

                else if (E1.IsReady() && Config.Item("combo_E1").GetValue <bool>() &&
                         (!R.IsReady() || !Marked && Distance < W2.Range + 75f))
                {
                    E1.CastOnUnit(Player, PacketCasting);
                }
            }

            /* Cougar Form */
            else
            {
                if (!Marked && R.IsReady() && Config.Item("combo_R").GetValue <bool>() && Distance < W2.Range + 75f)
                {
                    R.CastOnUnit(Player, PacketCasting);
                    return;
                }

                // Deathfire grasp / Blackfire Torch
                var dmg = Q1.GetDamage(Target, 1) + W1.GetDamage(Target, 1) + E1.GetDamage(Target, 1);
                if (Target.IsValidTarget(DFG.Range) && Q1.IsReady() && W1.IsReady() && E1.IsReady() && dmg < Target.Health && (dmg * 1.2f) + (Target.MaxHealth * (DFG.Id == 3188 ? 0.20f : 0.15f)) > Target.Health && useItems)
                {
                    DFG.Cast(Target);
                }

                if (Marked && Hunting && W2.IsReady() && Config.Item("combo_W2").GetValue <bool>() && Distance < 750f &&
                    Distance > 200f && (!Utility
                                        .UnderTurret(Target, true) || comboUT))
                {
                    Player.Spellbook.CastSpell(SpellSlot.W, Target);
                }
                else if (E2.IsReady() && Distance < 300f)
                {
                    var Pred = Prediction.GetPrediction(Target, 0.5f);
                    E2.Cast(Pred.CastPosition, PacketCasting);
                }
            }
        }
Exemplo n.º 7
0
        private static void doCombo()
        {
            try
            {
                // Menu Config
                var FeroSpell = Config.Item("FeroSpellC").GetValue <StringList>();
                var ForceW    = Config.Item("ForceWC").GetValue <Slider>();
                var ForceE    = Config.Item("ForceEC").GetValue <bool>();

                var Target = SimpleTs.GetSelectedTarget() ?? SimpleTs.GetTarget(1600f, SimpleTs.DamageType.Physical);

                // Force Leap to target
                if (Player.HasBuff("RengarR", true))
                {
                    LXOrbwalker.ForcedTarget = Target;
                    LXOrbwalker.SetAttack(LXOrbwalker.GetPossibleTarget() == Target);
                }

                // Use Tiamat / Hydra
                if (Target.IsValidTarget(TMT.Range))
                {
                    if (TMT.IsReady())
                    {
                        TMT.Cast();
                    }
                    else if (HYD.IsReady())
                    {
                        HYD.Cast();
                    }
                }

                // Use Yommus Ghostblade
                if (YGB.IsReady() && Target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(Player) + (Player.HasBuff("RengarR", true) ? Player.MoveSpeed / 2 : 0)))
                {
                    YGB.Cast();
                }

                // Cutlass
                if (BCL.IsReady() && Target.IsValidTarget(BCL.Range))
                {
                    BCL.Cast(Target);
                }

                // BORK
                if (BRK.IsReady() && Target.IsValidTarget(BRK.Range))
                {
                    BRK.Cast(Target);
                }

                // DFG
                if (W.IsReady() && DFG.IsReady() && Target.IsValidTarget(DFG.Range))
                {
                    DFG.Cast(Target);
                }

                // Ferocity Spell
                if (Player.Mana == 5)
                {
                    if (Player.Health / Player.MaxHealth < ForceW.Value / 100f && Target.IsValidTarget(W.Range))
                    {
                        W.CastOnUnit(Player, UsePackets);
                        return;
                    }

                    switch (FeroSpell.SelectedIndex)
                    {
                    case 1:
                        if (!Target.IsValidTarget(W.Range))
                        {
                            return;
                        }
                        W.CastOnUnit(Player, UsePackets);
                        break;

                    case 2:
                        if (!Target.IsValidTarget(E.Range) || Player.HasBuff("RengarR", true))
                        {
                            return;
                        }
                        E.Cast(Target, UsePackets);
                        break;
                    }
                    return;
                }

                // Don't cast W or E while ultimate is active (force leap)
                if (Player.HasBuff("RengarR", true))
                {
                    return;
                }

                if (E.IsReady() && Target.IsValidTarget(E.Range) &&
                    (!Target.HasBuff("RengarEFinalMAX", true) && !Target.HasBuff("rengareslow") &&
                     LastETick + 1500 < Environment.TickCount || ForceE))
                {
                    E.Cast(Target, UsePackets);
                }

                if (W.IsReady() && Target.IsValidTarget(W.Range))
                {
                    W.CastOnUnit(Player, UsePackets);
                }
            }
            catch (Exception e)
            {
                Console.WriteLine("Combo Exception: {0}", e);
            }
        }