Beispiel #1
0
        private void Clear()
        {
            var mob = Jungle.GetNearest(player.Position);

            if (mob != null && config.Item("usewLCSteal").GetValue <bool>() && CanW && W.CanCast(mob) &&
                player.CalcDamage(mob, Damage.DamageType.Physical, Wdmg(mob)) > mob.Health)
            {
                W.Cast(mob);
            }
            if (mob != null && config.Item("usewbsmite").GetValue <bool>() && CanW && W.CanCast(mob) &&
                Jungle.SmiteReady(config.Item("useSmite").GetValue <KeyBind>().Active) &&
                player.CalcDamage(mob, Damage.DamageType.Physical, Wdmg(mob)) + Jungle.smiteDamage(mob) > mob.Health)
            {
                W.Cast(mob);
            }
            float perc = config.Item("minmana").GetValue <Slider>().Value / 100f;

            if (player.Mana < player.MaxMana * perc)
            {
                return;
            }
            var minions = MinionManager.GetMinions(W.Range, MinionTypes.All, MinionTeam.NotAlly);

            if (config.Item("useeLC").GetValue <bool>() && E.IsReady() &&
                config.Item("ehitLC").GetValue <Slider>().Value <= minions.Count)
            {
                E.Cast();
            }
        }
Beispiel #2
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            bool minionBlock = false;

            foreach (Obj_AI_Minion minion in MinionManager.GetMinions(player.Position, player.AttackRange + 55, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.None))
            {
                if (HealthPrediction.GetHealthPrediction(minion, 3000) <= Damage.GetAutoAttackDamage(player, minion, false))
                {
                    minionBlock = true;
                }
            }
            if (System.Environment.TickCount - lastE > 4100)
            {
                lastE = 0;
            }
            if (config.Item("useSmite").GetValue <bool>() && Jungle.smiteSlot != SpellSlot.Unknown)
            {
                var  target     = Jungle.GetNearest(player.Position);
                bool smiteReady = ObjectManager.Player.Spellbook.CanUseSpell(Jungle.smiteSlot) == SpellState.Ready;

                if (target != null)
                {
                    Jungle.setSmiteSlot();
                    if (Jungle.smite.CanCast(target) && smiteReady &&
                        player.Distance(target.Position) <= Jungle.smite.Range && Jungle.smiteDamage() >= target.Health)
                    {
                        Jungle.CastSmite(target);
                    }
                }
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                if (!minionBlock)
                {
                    Harass();
                }
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                Clear();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                if (!minionBlock)
                {
                }
                break;
            }
        }
Beispiel #3
0
 private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args)
 {
     if (args.Unit.IsMe && orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
     {
         var mob = Jungle.GetNearest(player.Position);
         if (mob != null && config.Item("useqLCSteal").GetValue <bool>() && Q.IsReady() &&
             Q.GetDamage(mob) > mob.Health)
         {
             Q.Cast(config.Item("packets").GetValue <bool>());
         }
         if (mob != null && config.Item("useqbsmite").GetValue <bool>() && Q.IsReady() &&
             Jungle.SmiteReady(config.Item("useSmite").GetValue <KeyBind>().Active) &&
             Q.GetDamage(mob) + Jungle.smiteDamage(mob) > mob.Health)
         {
             Q.Cast(config.Item("packets").GetValue <bool>());
         }
     }
     if (args.Unit.IsMe && Q.IsReady() && config.Item("useq").GetValue <bool>() && args.Target is Obj_AI_Hero &&
         Q.GetDamage((Obj_AI_Base)args.Target) > args.Target.Health)
     {
         Q.Cast(config.Item("packets").GetValue <bool>());
     }
 }
Beispiel #4
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            GetPassive();
            currEnergy = me.Mana;
            bool minionBlock = false;

            foreach (Obj_AI_Minion minion in MinionManager.GetMinions(me.Position, me.AttackRange, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.None))
            {
                if (HealthPrediction.GetHealthPrediction(minion, 3000) <= Damage.GetAutoAttackDamage(me, minion, false))
                {
                    minionBlock = true;
                }
            }
            if (config.Item("useeflash").GetValue <KeyBind>().Active&& me.Spellbook.CanUseSpell(me.GetSpellSlot("SummonerFlash")) == SpellState.Ready)
            {
                //Game.PrintChat("flashCombo");
                FlashCombo();
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                if (!minionBlock)
                {
                    Harass();
                }
                Ulti();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                LasthitQ();
                Clear();
                Ulti();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                LasthitQ();
                Ulti();
                break;

            default:
                if (!minionBlock)
                {
                    Ulti();
                    //AutoQ();
                    //AutoW();
                }
                break;
            }
            if (config.Item("autotauntattower").GetValue <bool>())
            {
                var enemy = getEnemiesAtMyTurret(me);
                if (getEnemiesAtMyTurret(me).IsValid&& E.CanCast(enemy))
                {
                    E.Cast(enemy, config.Item("packets").GetValue <bool>());
                }
            }
            if (config.Item("useSmite").GetValue <bool>() && Jungle.smiteSlot != SpellSlot.Unknown)
            {
                Jungle.setSmiteSlot();
                var  target     = Jungle.GetNearest(me.Position);
                bool smiteReady = ObjectManager.Player.Spellbook.CanUseSpell(Jungle.smiteSlot) == SpellState.Ready;
                if (target != null)
                {
                    if (Jungle.smite.CanCast(target) && smiteReady && me.Distance(target.Position) <= Jungle.smite.Range && Jungle.smiteDamage() >= target.Health)
                    {
                        Jungle.CastSmite(target);
                    }
                }
            }
        }
Beispiel #5
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (config.Item("useSmite").GetValue <bool>() && Jungle.smiteSlot != SpellSlot.Unknown)
            {
                var  target     = Jungle.GetNearest(player.Position);
                bool smiteReady = ObjectManager.Player.Spellbook.CanUseSpell(Jungle.smiteSlot) == SpellState.Ready;
                if (target != null)
                {
                    Jungle.setSmiteSlot();
                    if (Jungle.smite.CanCast(target) && smiteReady && player.Distance(target.Position) <= Jungle.smite.Range && Jungle.smiteDamage() >= target.Health)
                    {
                        Jungle.CastSmite(target);
                    }
                }
            }
            Obj_AI_Hero targetf = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical);
            var         bestpos = CombatHelper.bestVectorToPoppyFlash(targetf);

            if (config.Item("useeflashforced").GetValue <KeyBind>().Active)
            {
                bool hasFlash = player.Spellbook.CanUseSpell(player.GetSpellSlot("SummonerFlash")) == SpellState.Ready;
                if (E.IsReady() && hasFlash && !CheckWalls(player, targetf) && bestpos.IsValid())
                {
                    player.Spellbook.CastSpell(player.GetSpellSlot("SummonerFlash"), bestpos);
                    Utility.DelayAction.Add(100, () => E.CastOnUnit(targetf, config.Item("packets").GetValue <bool>()));
                }
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
        }
Beispiel #6
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            bool minionBlock = false;

            foreach (Obj_AI_Minion minion in MinionManager.GetMinions(me.Position, me.AttackRange, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.None))
            {
                if (HealthPrediction.GetHealthPrediction(minion, 3000) <= Damage.GetAutoAttackDamage(me, minion, false))
                {
                    minionBlock = true;
                }
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                //if (!minionBlock) Harass();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                if (!minionBlock)
                {
                    Clear();
                }
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }

            if (config.Item("useSmite").GetValue <bool>() && Jungle.smiteSlot != SpellSlot.Unknown)
            {
                Jungle.setSmiteSlot();
                var  target     = Jungle.GetNearest(me.Position);
                bool smiteReady = ObjectManager.Player.Spellbook.CanUseSpell(Jungle.smiteSlot) == SpellState.Ready;
                if (target != null)
                {
                    if (Jungle.smite.CanCast(target) && smiteReady && me.Distance(target.Position) <= Jungle.smite.Range && Jungle.smiteDamage() >= target.Health)
                    {
                        Jungle.CastSmite(target);
                    }
                }
            }

            if (config.Item("manualR").GetValue <KeyBind>().Active&& R.IsReady())
            {
                CastR();
            }
        }