Exemplo n.º 1
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            if (MordeGhost && !GhostDelay && config.Item("autoMoveGhost", true).GetValue <bool>())
            {
                moveGhost();
            }
        }
Exemplo n.º 2
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            Obj_AI_Hero target = TargetSelector.GetTarget(950, TargetSelector.DamageType.Physical);

            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo(target);
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass(target);
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                if (Q.IsReady())
                {
                    useQ();
                }
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
        }
Exemplo n.º 3
0
 private void Game_OnGameUpdate(EventArgs args)
 {
     switch (orbwalker.ActiveMode)
     {
         case Orbwalking.OrbwalkingMode.Combo:
             Combo();
             break;
         case Orbwalking.OrbwalkingMode.Mixed:
             Harass();
             break;
         case Orbwalking.OrbwalkingMode.LaneClear:
             Clear();
             break;
         case Orbwalking.OrbwalkingMode.LastHit:
             Lasthit();
             break;
         default:
             break;
     }
     Jungle.CastSmite(config.Item("useSmite").GetValue<KeyBind>().Active);
     if (config.Item("EzAutoQ", true).GetValue<KeyBind>().Active && Q.IsReady() &&
         config.Item("EzminmanaaQ", true).GetValue<Slider>().Value < player.ManaPercent &&
         orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo && Orbwalking.CanMove(100))
     {
         Obj_AI_Hero target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical);
         if (target != null && Q.CanCast(target) && target.IsValidTarget())
         {
             Q.CastIfHitchanceEquals(
                 target, CombatHelper.GetHitChance(config.Item("qHit", true).GetValue<Slider>().Value),
                 config.Item("packets").GetValue<bool>());
         }
     }
 }
Exemplo n.º 4
0
 private void Game_OnGameUpdate(EventArgs args)
 {
     if (config.Item("Enabledorb").GetValue<bool>())
     {
         orbwalker.Enabled = true;
     }
     else
     {
         orbwalker.Enabled = false;
     }
     if (config.Item("Enabledcomm").GetValue<bool>())
     {
         autoLeveler.enabled = true;
         
         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;
         }
         Jungle.CastSmite(config.Item("useSmite").GetValue<KeyBind>().Active);
     }
     else
     {
         autoLeveler.enabled = false; 
     }
 }
Exemplo n.º 5
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            orbwalker.SetMovement(true);
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            blockW = false;
            if (config.Item("useDevour", true).GetValue <bool>() && W.IsReady() && !justQ)
            {
                EatAlly();
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                Console.WriteLine(player.GetBuffCount("talentreaperdisplay"));
                break;

            default:
                break;
            }
            if (config.Item("useShield", true).GetValue <bool>() && E.IsReady())
            {
                UseShield();
            }
        }
Exemplo n.º 6
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            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:
                break;
            }

            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            if (config.Item("manualR", true).GetValue <KeyBind>().Active&& R.IsReady())
            {
                CastR();
            }
        }
Exemplo n.º 7
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            if (GarenE)
            {
                orbwalker.SetMovement(false);
                if (orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.None)
                {
                    player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
                }
            }
            else
            {
                orbwalker.SetMovement(true);
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
        }
Exemplo n.º 8
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            if (System.Environment.TickCount - DamageTakenTime > 3000)
            {
                DamageTakenTime = System.Environment.TickCount;
                DamageTaken     = 0f;
            }
        }
Exemplo n.º 9
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            if (E.IsCharging || eActive)
            {
                orbwalker.SetAttack(false);
                orbwalker.SetMovement(false);
            }
            else
            {
                orbwalker.SetAttack(true);
                orbwalker.SetMovement(true);
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
        }
Exemplo n.º 10
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            orbwalker.SetMovement(true);
            ClearList();
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
        }
Exemplo n.º 11
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            if (System.Environment.TickCount - lastE > 4100)
            {
                lastE = 0;
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
        }
Exemplo n.º 12
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                Lasthit();
                break;

            default:
                break;
            }
            if (config.Item("AutoR", true).GetValue <bool>() && R.IsReady())
            {
                foreach (var enemy in
                         HeroManager.Enemies.Where(
                             e =>
                             ((e.UnderTurret(true) &&
                               e.HealthPercent < config.Item("Rhealt", true).GetValue <Slider>().Value * 0.75) ||
                              (!e.UnderTurret(true) &&
                               e.HealthPercent < config.Item("Rhealt", true).GetValue <Slider>().Value)) &&
                             e.HealthPercent > config.Item("RhealtMin", true).GetValue <Slider>().Value&&
                             e.IsValidTarget() && e.Distance(player) > 1500))
                {
                    var ally =
                        HeroManager.Allies.OrderBy(a => a.Health)
                        .FirstOrDefault(
                            a =>
                            enemy.Distance(a) < 700 && CombatHelper.IsFacing(a, enemy.Position) ||
                            CombatHelper.IsFacing(enemy, a.Position));
                    if (ally != null)
                    {
                        var pos = Prediction.GetPrediction(enemy, 0.75f).CastPosition;
                        if (
                            !(CombatHelper.IsFacing(ally, enemy.Position) && CombatHelper.IsFacing(enemy, ally.Position)) &&
                            pos.Distance(enemy.Position) < 450 && enemy.IsMoving)
                        {
                            pos = enemy.Position.Extend(pos, 450);
                        }
                        if (pos.IsValid())
                        {
                            R.Cast(pos);
                        }
                    }
                }
            }
        }
Exemplo n.º 13
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            GetPassive();
            Ulti();
            currEnergy = player.Mana;
            if (config.Item("useeflash").GetValue <KeyBind>().Active&&
                player.Spellbook.CanUseSpell(player.GetSpellSlot("SummonerFlash")) == SpellState.Ready)
            {
                FlashCombo();
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                LasthitQ();
                Harass();
                break;

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

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

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            if (System.Environment.TickCount - DamageTakenTime > 3000)
            {
                DamageTakenTime = System.Environment.TickCount;
                DamageTaken     = 0f;
            }
            if (!W.IsReady())
            {
                return;
            }
            var shield = (ShieldBuff[W.Level - 1] + 0.6f * player.FlatMagicDamageMod) *
                         config.Item("wabove").GetValue <Slider>().Value / 100f;

            if (shield <= DamageTaken || IncSpell)
            {
                if ((config.Item("autow").GetValue <bool>() &&
                     (config.Item("autowwithe").GetValue <bool>() &&
                      currEnergy - player.Spellbook.GetSpell(SpellSlot.W).ManaCost > getEenergy()) ||
                     !config.Item("autowwithe").GetValue <bool>()) ||
                    (orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && config.Item("usew").GetValue <bool>()))
                {
                    W.Cast();
                }
            }
        }
Exemplo n.º 14
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            Ulti();
            if (config.Item("useeflash", true).GetValue <KeyBind>().Active&&
                player.Spellbook.CanUseSpell(player.GetSpellSlot("SummonerFlash")) == SpellState.Ready)
            {
                FlashCombo();
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);

            var bladeObj =
                ObjectManager.Get <Obj_AI_Base>()
                .Where(
                    o => (o.Name == "ShenSpiritUnit" || o.Name == "ShenArrowVfxHostMinion") && o.Team == player.Team)
                .OrderBy(o => o.Distance(bladeOnCast))
                .FirstOrDefault();

            if (bladeObj != null)
            {
                blade = bladeObj.Position;
            }
            if (W.IsReady() && blade.IsValid())
            {
                foreach (var ally in HeroManager.Allies.Where(a => a.Distance(blade) < bladeRadius))
                {
                    var data = Program.IncDamages.GetAllyData(ally.NetworkId);
                    if (config.Item("autowAgg", true).GetValue <Slider>().Value <= data.AADamageCount)
                    {
                        W.Cast();
                    }
                    if (data.AADamageTaken >= ally.Health * 0.2f && config.Item("autow", true).GetValue <bool>())
                    {
                        W.Cast();
                    }
                }
            }
        }
Exemplo n.º 15
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;
            }
        }
Exemplo n.º 16
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();
            }
        }
Exemplo n.º 17
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            if (Q.IsCharging || activatedR)
            {
                orbwalker.SetAttack(false);
                orbwalker.SetMovement(false);
            }
            else
            {
                orbwalker.SetAttack(true);
                orbwalker.SetMovement(true);
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            var data = Program.IncDamages.GetAllyData(player.NetworkId);

            if (data != null && !activatedW && config.Item("AshieldB", true).GetValue <bool>() &&
                data.DamageCount >= config.Item("wMinAggro", true).GetValue <Slider>().Value&&
                player.ManaPercent > config.Item("minmanaAgg", true).GetValue <Slider>().Value)
            {
                W.Cast(config.Item("packets").GetValue <bool>());
            }
            if (data != null && !activatedW && config.Item("AshieldB", true).GetValue <bool>() && W.IsReady() &&
                (data.DamageTaken > player.Health ||
                 data.DamageTaken > getWShield() / 100f * config.Item("AshieldDmg", true).GetValue <Slider>().Value))
            {
                W.Cast(config.Item("packets").GetValue <bool>());
            }
            if (data != null && activatedW && data.DamageTaken > player.GetBuff("sionwshieldstacks").Count&&
                data.DamageTaken < player.Health)
            {
                W.Cast(config.Item("packets").GetValue <bool>());
            }
        }
Exemplo n.º 18
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            if (Q.IsCharging || activatedR)
            {
                orbwalker.SetAttack(false);
                orbwalker.SetMovement(false);
            }
            else
            {
                orbwalker.SetAttack(true);
                orbwalker.SetMovement(true);
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            if (System.Environment.TickCount - DamageTakenTime > 1200)
            {
                DamageTakenTime = System.Environment.TickCount;
                DamageTaken     = 0f;
                DamageCount     = 0;
            }
            if (DamageCount >= config.Item("wMinAggro", true).GetValue <Slider>().Value&&
                player.ManaPercent > config.Item("minmanaAgg", true).GetValue <Slider>().Value)
            {
                W.Cast(config.Item("packets").GetValue <bool>());
            }
            if (activatedW && DamageTaken > player.GetBuff("sionwshieldstacks").Count&& DamageTaken < player.Health)
            {
                W.Cast(config.Item("packets").GetValue <bool>());
            }
        }
Exemplo n.º 19
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            orbwalker.SetMovement(true);
            ClearList();
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            var data = Program.IncDamages.GetAllyData(player.NetworkId);

            if (data != null && W.IsReady())
            {
                Obj_AI_Hero enemy = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical);
                if ((config.Item("usew", true).GetValue <bool>() &&
                     orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && enemy != null &&
                     data.DamageTaken >= enemy.GetAutoAttackDamage(player) - 5) ||
                    (config.Item("usewDangerous", true).GetValue <bool>() && data.DamageTaken > player.Health * 0.1f))
                {
                    MinionManager.FarmLocation bestPositionW =
                        W.GetLineFarmLocation(
                            MinionManager.GetMinions(
                                ObjectManager.Player.ServerPosition, W.Range, MinionTypes.All, MinionTeam.NotAlly));
                    if (enemy != null)
                    {
                        W.Cast(enemy, config.Item("packets").GetValue <bool>());
                    }
                    else if (bestPositionW.MinionsHit > 0)
                    {
                        W.Cast(bestPositionW.Position, config.Item("packets").GetValue <bool>());
                    }
                }
            }
        }
Exemplo n.º 20
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            Obj_AI_Hero targetf = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical);

            if (config.Item("useeflashforced").GetValue <KeyBind>().Active)
            {
                if (targetf == null)
                {
                    player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
                }
                else
                {
                    var  bestpos  = CombatHelper.bestVectorToPoppyFlash2(targetf);
                    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);
                        player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
                    }
                    else if (!hasFlash)
                    {
                        Combo();
                        Orbwalking.Orbwalk(targetf, Game.CursorPos, 90, 90);
                    }
                }
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
        }
Exemplo n.º 21
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;
            }
        }
Exemplo n.º 22
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            if ((wActive && (!Q.IsReady() || Aggro || justW)) || rActive)
            {
                orbwalker.SetAttack(false);
            }
            else
            {
                orbwalker.SetAttack(true);
            }
            Rmovement();
            if (W.IsReady() && !Aggro && ((DamageTaken > 60 && DamageCount >= 3) || aggroList.Count >= 3))
            {
                Aggro = true;
                Utility.DelayAction.Add(800, () => Aggro = false);
            }
            if (System.Environment.TickCount - DamageTakenTime > 1500)
            {
                DamageTakenTime = System.Environment.TickCount;
                DamageTaken     = 0f;
                DamageCount     = 0;
                aggroList.Clear();
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
        }
Exemplo n.º 23
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            var data = Program.IncDamages.GetAllyData(player.NetworkId);

            if (config.Item("autoECC", true).GetValue <bool>() && data.AnyCC)
            {
                CastAutoE();
            }
            if (config.Item("autoEdmg", true).GetValue <Slider>().Value / 100f * player.Health < data.DamageTaken &&
                E.IsReady() && !OnTrident)
            {
                CastAutoE();
            }
            if (config.Item("castR", true).GetValue <KeyBind>().Active&& R.IsReady())
            {
                Obj_AI_Hero target = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical, true);
                if (target != null && R.CanCast(target))
                {
                    CastR(target);
                    Orbwalking.MoveTo(Game.CursorPos);
                }
            }
        }
Exemplo n.º 24
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            if (config.Item("AutoW", true).GetValue <bool>() && W.IsReady())
            {
                CastW(false);
            }
            if (rActive || justR)
            {
                orbwalker.SetAttack(false);
                orbwalker.SetMovement(false);
                return;
            }
            else
            {
                orbwalker.SetAttack(true);
                orbwalker.SetMovement(true);
            }
            if (config.Item("manualRflash", true).GetValue <KeyBind>().Active)
            {
                FlashCombo();
            }

            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
        }
Exemplo n.º 25
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            var hasbuff = player.HasBuff("volibearpassivecd");

            if (hasbuff && !passivecd)
            {
                passivecd   = true;
                passivetime = Game.Time;
            }
            if (!hasbuff)
            {
                passivecd   = false;
                passivetime = 0f;
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            var enemyForKs = HeroManager.Enemies.FirstOrDefault(h => W.CanCast(h) && Wdmg(h) > h.Health);

            if (enemyForKs != null && W.IsReady() && config.Item("ksW").GetValue <bool>())
            {
                W.CastOnUnit(enemyForKs, config.Item("packets").GetValue <bool>());
            }
        }
Exemplo n.º 26
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            var data = Program.IncDamages.GetAllyData(player.NetworkId);

            if (data != null && W.IsReady() && config.Item("usew", true).GetValue <bool>() &&
                (preventSilence(W) || (!config.Item("blockW", true).GetValue <bool>() && !preventSilence(W))) &&
                (data.DamageTaken > getShield() * config.Item("shieldPercent", true).GetValue <Slider>().Value / 100 ||
                 config.Item("Aggro", true).GetValue <Slider>().Value <= data.DamageCount))
            {
                W.Cast();
            }
            if (config.Item("castR", true).GetValue <KeyBind>().Active)
            {
                Obj_AI_Hero target = TargetSelector.GetTarget(1700, TargetSelector.DamageType.Magical, true);
                if (target != null)
                {
                    HandleR(target, true);
                }
            }
        }
Exemplo n.º 27
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            orbwalker.SetMovement(true);
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            if (E.IsReady() && config.Item("autoE", true).GetValue <bool>() && !Eactive)
            {
                var data = Program.IncDamages.GetAllyData(player.NetworkId);
                if (config.Item("EAggro", true).GetValue <Slider>().Value <= data.AADamageCount)
                {
                    E.Cast();
                }
                if (data.AADamageTaken >= player.Health * config.Item("Emindam", true).GetValue <Slider>().Value / 100f)
                {
                    E.Cast();
                }
            }
            if (config.Item("wardJump", true).GetValue <KeyBind>().Active)
            {
                WardJump();
            }
        }
Exemplo n.º 28
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            var hasbuff = player.HasBuff("volibearpassivecd");

            if (hasbuff && !passivecd)
            {
                passivecd   = true;
                passivetime = Game.Time;
            }
            if (!hasbuff)
            {
                passivecd   = false;
                passivetime = 0f;
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
        }
Exemplo n.º 29
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            orbwalker.SetMovement(true);
            ClearList();
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            var data = Program.IncDamages.GetAllyData(player.NetworkId);

            if (data != null && W.IsReady() && config.Item("autoW", true).GetValue <bool>() &&
                config.Item("minmanaP", true).GetValue <Slider>().Value < player.ManaPercent)
            {
                Obj_AI_Hero enemy = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical);
                if (enemy != null && data.ProjectileDamageTaken >= enemy.GetAutoAttackDamage(player) - 5)
                {
                    W.Cast(enemy, config.Item("packets").GetValue <bool>());
                }
            }
        }
Exemplo n.º 30
0
        private void Game_OnGameUpdate(EventArgs args)
        {
            Obj_AI_Hero target = TargetSelector.GetTarget(
                Q.Range + player.MoveSpeed * 3, TargetSelector.DamageType.Physical);

            if (ShacoStealth && target != null && target.Health > ComboDamage(target) &&
                CombatHelper.IsFacing(target, player.Position) &&
                orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                orbwalker.SetAttack(false);
            }
            else
            {
                orbwalker.SetAttack(true);
            }
            if (!ShacoClone)
            {
                cloneTime = System.Environment.TickCount;
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo(target);
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

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

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            if (E.IsReady())
            {
                var ksTarget =
                    HeroManager.Enemies.FirstOrDefault(
                        h =>
                        h.IsValidTarget() && !h.Buffs.Any(b => CombatHelper.invulnerable.Contains(b.Name)) &&
                        h.Health < E.GetDamage(h));
                if (ksTarget != null)
                {
                    if ((config.Item("ks", true).GetValue <bool>() || config.Item("ksq", true).GetValue <bool>()) &&
                        E.CanCast(ksTarget) && player.Mana > E.Instance.ManaCost)
                    {
                        E.Cast(ksTarget);
                    }
                    if (Q.IsReady() && config.Item("ks", true).GetValue <bool>() &&
                        ksTarget.Distance(player) < Q.Range + E.Range && ksTarget.Distance(player) > E.Range &&
                        !player.Position.Extend(ksTarget.Position, Q.Range).IsWall() &&
                        player.Mana > Q.Instance.ManaCost + E.Instance.ManaCost)
                    {
                        Q.Cast(player.Position.Extend(ksTarget.Position, Q.Range));
                    }
                }
            }

            if (config.Item("stackBox", true).GetValue <KeyBind>().Active&& W.IsReady())
            {
                var box =
                    ObjectManager.Get <Obj_AI_Minion>()
                    .Where(m => m.Distance(player) < W.Range && m.Name == "Jack In The Box" && !m.IsDead)
                    .OrderBy(m => m.Distance(Game.CursorPos))
                    .FirstOrDefault();

                if (box != null)
                {
                    W.Cast(box.Position);
                }
                else
                {
                    if (player.Distance(Game.CursorPos) < W.Range)
                    {
                        W.Cast(Game.CursorPos);
                    }
                    else
                    {
                        W.Cast(player.Position.Extend(Game.CursorPos, W.Range));
                    }
                }
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            if (ShacoClone && !GhostDelay && config.Item("autoMoveClone", true).GetValue <bool>())
            {
                moveClone();
            }
        }