コード例 #1
0
ファイル: kSkarner.cs プロジェクト: wade1990/PortAIO
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (SkarnerR)
            {
                orbwalker.SetAttack(false);
                orbwalker.SetMovement(false);
                EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
            }
            else
            {
                orbwalker.SetAttack(true);
                orbwalker.SetMovement(true);
            }
            KS();
            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;
            }
        }
コード例 #2
0
        private static void OnGameUpdate(EventArgs args)
        {
            Player = ObjectManager.Player;
            QS     = new Spell(SpellSlot.Q, QS.Range);
            Orbwalker.SetAttack(true);

            CheckForm();

            if (Config.Item("ActiveCombo").GetValue <KeyBind>().Active)
            {
                Combo();
            }
            if (Config.Item("ActiveHarass").GetValue <KeyBind>().Active)
            {
                Harass();
            }
            if (Config.Item("ActiveFarm").GetValue <KeyBind>().Active)
            {
                Farm();
            }
            if (Config.Item("ActiveKs").GetValue <bool>())
            {
                KillSteal();
            }
        }
コード例 #3
0
        private static void OnGameUpdate(EventArgs args)
        {
            var target       = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
            var flashRtarget = TargetSelector.GetTarget(900, TargetSelector.DamageType.Magical);

            ChargeStun();
            switch (Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Orbwalker.SetAttack(false);
                Combo(target, flashRtarget);
                Orbwalker.SetAttack(true);
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                if (Config.Item("suppMode").GetValue <bool>())
                {
                    Farm(false);
                }
                Harass(target);
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                Farm(false);
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                Farm(true);
                break;
            }
        }
コード例 #4
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (Player.HasBuff("MissFortuneBulletTime"))
            {
                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.LaneClear:
                LaneClear();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

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

            case Orbwalking.OrbwalkingMode.None:
                break;
            }
        }
コード例 #5
0
        private void Game_OnUpdate(EventArgs args)
        {
            if (Player.IsChannelingImportantSpell() || Player.IsCastingInterruptableSpell())
            {
                Orbwalker.SetMovement(false);
                Orbwalker.SetAttack(false);
            }
            else
            {
                Orbwalker.SetMovement(true);
                Orbwalker.SetAttack(true);
            }

            if (Z.Item("combobind").GetValue <KeyBind>().Active)
            {
                Combo();
            }
            else if (Z.Item("harassbind").GetValue <KeyBind>().Active)
            {
                Harass();
            }
            else if (Z.Item("farmbind").GetValue <KeyBind>().Active)
            {
                Farm();
            }
            if (Z.Item("ignite").GetValue <bool>() && Infernus.IsReady())
            {
                Ignite();
            }
        }
コード例 #6
0
        private static void OnGameUpdate(EventArgs args)
        {
            Player = ObjectManager.Player;
            Q      = new Spell(SpellSlot.Q, Player.AttackRange + 50);
            Sod    = new Items.Item(3131, Player.AttackRange + 50);

            Orbwalker.SetAttack(true);
            if (Config.Item("ActiveCombo").GetValue <KeyBind>().Active)
            {
                Combo();
            }
            if (Config.Item("TripleQ").GetValue <KeyBind>().Active)
            {
                TripleQ();
            }
            if (Config.Item("ActiveHarass").GetValue <KeyBind>().Active)
            {
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
                Harass();
            }
            if (Config.Item("ActiveLane").GetValue <KeyBind>().Active)
            {
                Farm();
            }
            if (Config.Item("ActiveKs").GetValue <bool>())
            {
                KillSteal();
            }
            if (Config.Item("AutoW").GetValue <bool>())
            {
                Heal();
            }
        }
コード例 #7
0
ファイル: Program.cs プロジェクト: wade1990/PortAIO
        private static void Combo()
        {
            var target = TargetSelector.GetTarget(1300, TargetSelector.DamageType.Magical);

            if (Q.IsReady() && (Config.Item("UseQCombo").GetValue <bool>()))
            {
                var Qprediction = Q.GetPrediction(target);

                if (Qprediction.Hitchance >= HitChance.VeryHigh)
                {
                    Q.Cast(Qprediction.CastPosition);
                }
            }
            if (W.IsReady() && (Config.Item("UseWComboGold").GetValue <bool>()))
            {
                PickYellow();
                Orbwalker.ForceTarget(target);
                Orbwalker.SetAttack(true);
            }
            if (W.IsReady() && (Config.Item("UseWComboBlue").GetValue <bool>()))
            {
                PickBlue();
                Orbwalker.ForceTarget(target);
                Orbwalker.SetAttack(true);
            }
            if (W.IsReady() && (Config.Item("UseWComboRed").GetValue <bool>()))
            {
                PickRed();
                Orbwalker.ForceTarget(target);
                Orbwalker.SetAttack(true);
            }
        }
コード例 #8
0
        private void AutoLastHit()
        {
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo ||
                Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed || this.Player.IsRecalling() || !spells[Spells.Q].IsReady())
            {
                return;
            }

            var minions = MinionManager.GetMinions(
                this.Player.Position,
                spells[Spells.E].Range,
                MinionTypes.All,
                MinionTeam.Enemy,
                MinionOrderTypes.MaxHealth).OrderByDescending(m => this.GetBonusDmg(m) > m.Health);

            foreach (var minion in minions)
            {
                if (this.GetBonusDmg(minion) > minion.Health &&
                    Vector3.Distance(ObjectManager.Player.ServerPosition, minion.Position)
                    < Orbwalking.GetRealAutoAttackRange(ObjectManager.Player) + this.Menu.Item("ElEasy.Nasus.Lasthitrange").GetValue <Slider>().Value)
                {
                    Orbwalker.SetAttack(false);
                    EloBuddy.Player.IssueOrder(GameObjectOrder.AttackUnit, minion);
                    Orbwalker.SetAttack(true);
                    break;
                }
            }
        }
コード例 #9
0
ファイル: Program.cs プロジェクト: wade1990/PortAIO
 private static void Game_OnGameUpdate(EventArgs args)
 {
     if (Utils.GameTimeTickCount - WCount >= 500)
     {
         WCasted = false;
     }
     Ks.UpdateKs();
     if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
     {
         if (Selected() && OutOfAA(TargetSelector.GetSelectedTarget()) && Orbwalking.CanMove(80))
         {
             Orbwalker.SetAttack(false);
         }
         else
         {
             Orbwalker.SetAttack(true);
         }
         Combo.UpdateCombo();
     }
     if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
     {
         Harass.UpdateHarass();
     }
     if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
     {
         JungleClear.UpdateJungleClear();
         LaneClear.UpdateLaneClear();
     }
 }
コード例 #10
0
ファイル: Program.cs プロジェクト: CupidL0ve/LeagueSharp
        private static void Game_OnGameUpdate(EventArgs args)
        {
            Orbwalker.SetAttack(true);
            if (Config.Item("ComboActive").GetValue <KeyBind>().Active)
            {
                Combo();
            }
            else
            {
                if (Config.Item("HarassActive").GetValue <KeyBind>().Active)
                {
                    Harass();
                }

                var lc = Config.Item("LaneClearActive").GetValue <KeyBind>().Active;
                if (lc || Config.Item("FreezeActive").GetValue <KeyBind>().Active)
                {
                    Farm(lc);
                }

                if (Config.Item("JungleFarmActive").GetValue <KeyBind>().Active)
                {
                    JungleFarm();
                }
            }
            if (Config.Item("KillstealR").GetValue <bool>())
            {
                Killsteal();
            }
        }
コード例 #11
0
 private static void Combo()
 {
     Orbwalker.SetAttack(!(Q.IsReady() || W.IsReady() || E.IsReady()));
     UseSpells(Config.Item("UseQCombo").GetValue <bool>(), Config.Item("UseWCombo").GetValue <bool>(),
               Config.Item("UseECombo").GetValue <bool>(), Config.Item("UseRCombo").GetValue <bool>(),
               Config.Item("UseIgniteCombo").GetValue <bool>());
 }
コード例 #12
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (Config.Item("UseAutoE").GetValue <bool>())
            {
                AutoE();
            }
            AllyAutoE();
            Player = ObjectManager.Player;
            QC     = new Spell(SpellSlot.Q, Player.AttackRange + 50);
            SOD    = new Items.Item(3131, Player.AttackRange + 50);
            Orbwalker.SetAttack(true);

            CheckSpells();

            if (Config.Item("ActiveCombo").GetValue <KeyBind>().Active)
            {
                Combo();
            }
            if (Config.Item("ActiveHarass").GetValue <KeyBind>().Active&& Config.Item("UseQHarass").GetValue <bool>() && Q.IsReady() && (100 * (Player.Mana / Player.MaxMana)) > Config.Item("Harrasmana").GetValue <Slider>().Value)
            {
                Harass();
            }
            if (Config.Item("LaneClear").GetValue <KeyBind>().Active)
            {
                Farm();
            }
            if (Config.Item("ActiveKs").GetValue <bool>())
            {
                KillSteal();
            }
        }
コード例 #13
0
        private static void Combo()
        {
            Orbwalker.SetAttack(true);

            var qTarget = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
            var eTarget = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Physical);
            var rTarget = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical);

            bool useQ = Config.Item("UseQ").GetValue <bool>();
            bool useE = Config.Item("UseE").GetValue <bool>();
            bool useR = Config.Item("UseR").GetValue <bool>();


            var qLow      = Config.Item("Qhitch").GetValue <StringList>().SelectedIndex == 0;
            var qMedium   = Config.Item("Qhitch").GetValue <StringList>().SelectedIndex == 1;
            var qHigh     = Config.Item("Qhitch").GetValue <StringList>().SelectedIndex == 2;
            var qVeryHigh = Config.Item("Qhitch").GetValue <StringList>().SelectedIndex == 3;

            if (qTarget != null && useQ && Q.IsReady() && Player.Distance(qTarget) < Q.Range)
            {
                if (qLow)
                {
                    Q.Cast(qTarget);
                }
                else if (qMedium)
                {
                    Q.CastIfHitchanceEquals(qTarget, HitChance.Medium);
                }
                else if (qHigh)
                {
                    Q.CastIfHitchanceEquals(qTarget, HitChance.High);
                }
                else if (qVeryHigh)
                {
                    Q.CastIfHitchanceEquals(qTarget, HitChance.VeryHigh);
                }
            }


            if (eTarget != null && useE && E.IsReady())
            {
                if (eTarget.HasBuff("RocketGrab"))
                {
                    E.Cast();
                }
            }


            if (eTarget != null && useE && E.IsReady())
            {
                E.Cast();
            }


            if (rTarget != null && !Q.IsReady() && useR && R.IsReady())
            {
                R.Cast(rTarget, false, true);
            }
        }
コード例 #14
0
ファイル: Program.cs プロジェクト: princer007/LSResurrected
        //

        static void OnUpdate(EventArgs args)
        {
            packetCast = menu.Item("packets").GetValue <bool>();
            orbwalker.SetAttack(true);
            if (menu.Item("RKillsteal").GetValue <bool>())
            {
                foreach (Obj_AI_Hero enemy in ObjectManager.Get <Obj_AI_Hero>())
                {
                    if (enemy.IsEnemy && Vector3.Distance(player.Position, enemy.Position) <= R.Range && player.GetSpellDamage(enemy, SpellSlot.R) > enemy.Health && ultiCount() > 0 && R.IsReady())
                    {
                        R.CastOnUnit(enemy);
                    }
                }
            }

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

            case Orbwalking.OrbwalkingMode.Mixed:
                if (menu.SubMenu("harass").Item("useQ").GetValue <bool>())
                {
                    CastQ(true);
                }
                if (menu.SubMenu("harass").Item("useE").GetValue <bool>())
                {
                    CastE(true);
                }
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                if (menu.SubMenu("laneclear").Item("useQ").GetValue <bool>())
                {
                    CastQ(false);
                }
                if (menu.SubMenu("laneclear").Item("useE").GetValue <bool>())
                {
                    CastE(false);
                }
                break;
            }
            if (menu.Item("autoH").GetValue <KeyBind>().Active&& orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.None)
            {
                if (menu.SubMenu("harass").Item("useQ").GetValue <bool>())
                {
                    CastQ(true);
                }
                if (menu.SubMenu("harass").Item("useE").GetValue <bool>())
                {
                    CastE(true);
                }
            }
            if (menu.SubMenu("misc").Item("escape").GetValue <KeyBind>().Active)
            {
                Escape();
            }
        }
コード例 #15
0
ファイル: Program.cs プロジェクト: mostyle0622/LeagueSharp
 static void Obj_AI_Hero_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (args.SData.Name.ToUpperInvariant() == "KATARINAR" && sender.IsMe)
     {
         Orbwalker.SetMovement(false);
         Orbwalker.SetAttack(false);
     }
 }
コード例 #16
0
ファイル: Program.cs プロジェクト: Sakamaki-Izayoi/Huabian
        private static void Game_OnGameUpdate(EventArgs args)
        {
            // Select default target
            var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);



            //Main features with Orbwalker
            switch (Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

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

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

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

            default:
                break;
            }

            AutoPot();
            KillSteal();
            Harass(target);

            //Ultimate fix
            if (ObjectManager.Player.IsDead)
            {
                return;
            }
            if (InUlt)
            {
                Orbwalker.SetAttack(false);
                Orbwalker.SetMovement(false);
                return;
            }
            else
            {
                Orbwalker.SetAttack(true);
                Orbwalker.SetMovement(true);
            }

            // WardJump
            //if (wardjumpKey != null)
            //{
            //wardjump();
            //}
        }
コード例 #17
0
ファイル: Program.cs プロジェクト: wade1990/PortAIO
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }
            //Chat.Print(Player.Position.Distance(Game.CursorPos).ToString());
            if (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo || (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed && Selected()))
            {
                if (_q.IsReady())
                {
                    _orbwalker.SetAttack(false);
                }
                else
                {
                    _orbwalker.SetAttack(true);
                }
            }
            else
            {
                _orbwalker.SetAttack(true);
            }

            if (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                if (_menu.Item("Use Q Combo").GetValue <bool>())
                {
                    UseQ();
                }
                if (_menu.Item("Use E Combo").GetValue <bool>())
                {
                    UseE();
                }
                if (_menu.Item("Use W Combo").GetValue <bool>())
                {
                    UseW();
                }
                if (_menu.Item("Use R Burst Selected").GetValue <bool>())
                {
                    UseR();
                }
            }
            if (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                if (_menu.Item("Use Q Harass").GetValue <bool>())
                {
                    UseQ();
                }
                if (_menu.Item("Use E Harass").GetValue <bool>())
                {
                    UseE();
                }
            }
            ViktorRMove();
            killsteal();
        }
コード例 #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);
            }
            if (FpsBalancer.CheckCounter())
            {
                return;
            }
            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();
            }
            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();
            }
            if (data != null && activatedW && data.DamageTaken > player.GetBuff("sionwshieldstacks").Count&&
                data.DamageTaken < player.Health)
            {
                W.Cast();
            }
        }
コード例 #19
0
ファイル: Program.cs プロジェクト: werdbrian/MotionSharp
 static void Game_OnUpdate(EventArgs args)
 {
     Demark();
     Utility.HpBarDamageIndicator.Enabled = _menu.Item("motion.katarina.drawings.dmg").GetValue <bool>();
     if (Player.IsDead || Player.IsRecalling())
     {
         return;
     }
     if (HasRBuff())
     {
         _orbwalker.SetAttack(false);
         _orbwalker.SetMovement(false);
         if (_menu.Item("motion.katarina.misc.cancelR").GetValue <bool>() && Player.GetEnemiesInRange(R.Range + 50).Count == 0)
         {
             Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
         }
         if (_menu.Item("motion.katarina.misc.kswhileult").GetValue <bool>())
         {
             Killsteal();
         }
         return;
     }
     if (ShallJumpNow)
     {
         WardJump(JumpPosition, false, false);
         if (!E.IsReady())
         {
             ShallJumpNow = false;
         }
     }
     _orbwalker.SetAttack(true);
     _orbwalker.SetMovement(true);
     Killsteal();
     //Combo
     if (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
     {
         Combo(Q.IsReady() && _menu.Item("motion.katarina.combo.useq").GetValue <bool>(), W.IsReady() && _menu.Item("motion.katarina.combo.usew").GetValue <bool>(), E.IsReady() && _menu.Item("motion.katarina.combo.usee").GetValue <bool>(), R.IsReady() && _menu.Item("motion.katarina.combo.user").GetValue <bool>());
     }
     //Harass
     if (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
     {
         Combo(Q.IsReady() && _menu.Item("motion.katarina.harass.useq").GetValue <bool>(), W.IsReady() && _menu.Item("motion.katarina.harass.usew").GetValue <bool>(), false, false, true);
     }
     //Autoharass
     if (_menu.Item("motion.katarina.harass.autoharass.toggle").GetValue <bool>() && _menu.Item("motion.katarina.harass.autoharass.key").GetValue <KeyBind>().Active)
     {
         Combo(Q.IsReady() && _menu.Item("motion.katarina.harass.autoharass.useq").GetValue <bool>(), W.IsReady() && _menu.Item("motion.katarina.harass.autoharass.usew").GetValue <bool>(), false, false, true);
     }
     Lasthit();
     LaneClear();
     JungleClear();
     if (_menu.Item("motion.katarina.misc.wardjumpkey").GetValue <KeyBind>().Active&& _menu.Item("motion.katarina.misc.wardjump").GetValue <bool>())
     {
         WardJump(Game.CursorPos);
     }
 }
コード例 #20
0
ファイル: Program.cs プロジェクト: wade1990/PortAIO
 private static void Game_OnGameUpdate(EventArgs args)
 {
     ComboModeSwitch();
     //if (Helper.CanShield())
     //Chat.Print(Helper.CanShield().ToString());
     //Chat.Print(Helper.BonusMana.ToString());
     //Chat.Print(Helper.Qstack().ToString());
     //Chat.Print(Player.ManaPercent.ToString());
     if (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.None && AutoTear && Player.ManaPercent >= AutoTearM &&
         Player.CountEnemiesInRange(1500) == 0)
     {
         if (ItemData.Tear_of_the_Goddess.GetItem().IsOwned() || ItemData.Archangels_Staff.GetItem().IsOwned() ||
             ItemData.Manamune.GetItem().IsOwned())
         {
             if (_q.IsReady())
             {
                 _q.Cast(Player.Position);
             }
         }
     }
     if (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
     {
         var target = _orbwalker.GetTarget();
         if ((_w.IsReady() || (Player.Mana >= _q.ManaCost + _e.ManaCost)) && BlockAA &&
             target.IsValidTarget() && (!target.IsValidTarget(350) || Player.CountEnemiesInRange(800) >= 2) ||
             !target.IsValidTarget())
         {
             _orbwalker.SetAttack(false);
         }
         else
         {
             _orbwalker.SetAttack(true);
         }
     }
     else
     {
         _orbwalker.SetAttack(true);
     }
     foreach (var hero in HeroManager.Enemies.Where(x => x.IsValidTarget(_q.Range) && !x.IsZombie))
     {
         if (_q.IsReady() && Helper.Qdamage(hero) >= hero.Health)
         {
             Helper.CastQTarget(hero);
         }
         if (_w.IsReady() && Helper.Wdamge(hero) >= hero.Health)
         {
             _w.Cast(hero);
         }
         if (_e.IsReady() && Helper.Edamge(hero) >= hero.Health)
         {
             _e.Cast(hero);
         }
     }
 }
コード例 #21
0
ファイル: Amumu.cs プロジェクト: relanz/Leaguesharp-8
        private static void Combo()
        {
            Orbwalker.SetAttack(true);

            var qTarget = TargetSelector.GetTarget(Q.Range + Q.Width, TargetSelector.DamageType.Magical);
            var wTarget = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Magical);
            var eTarget = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Physical);
            var rTarget = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical);

            bool useQ = Config.Item("UseQ").GetValue <bool>();
            bool useW = Config.Item("UseW").GetValue <bool>();
            bool useE = Config.Item("UseE").GetValue <bool>();
            bool useR = Config.Item("UseR").GetValue <bool>();


            var qLow      = Config.Item("Qhitch").GetValue <StringList>().SelectedIndex == 0;
            var qMedium   = Config.Item("Qhitch").GetValue <StringList>().SelectedIndex == 1;
            var qHigh     = Config.Item("Qhitch").GetValue <StringList>().SelectedIndex == 2;
            var qVeryHigh = Config.Item("Qhitch").GetValue <StringList>().SelectedIndex == 3;

            if (qTarget != null && useQ && Q.IsReady() && Player.Distance(qTarget) < Q.Range)
            {
                if (qLow)
                {
                    Q.Cast(qTarget);
                }
                else if (qMedium)
                {
                    Q.CastIfHitchanceEquals(qTarget, HitChance.Medium);
                }
                else if (qHigh)
                {
                    Q.CastIfHitchanceEquals(qTarget, HitChance.High);
                }
                else if (qVeryHigh)
                {
                    Q.CastIfHitchanceEquals(qTarget, HitChance.VeryHigh);
                }
            }

            if (eTarget != null && useE && E.IsReady())
            {
                E.Cast();
            }

            if (wTarget != null && W.IsReady() && (Player.Spellbook.GetSpell(SpellSlot.W).ToggleState == 1) && useW)
            {
                W.Cast();
            }
            if (wTarget != null && W.IsReady() && (Player.Spellbook.GetSpell(SpellSlot.W).ToggleState == 2) && useW)
            {
                W.Cast();
            }
        }
コード例 #22
0
ファイル: Katarina.cs プロジェクト: memsenpai/ElBundle-1
        private void Obj_AI_Base_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe || args.SData.Name != "KatarinaR" || !this.Player.HasBuff("katarinarsound"))
            {
                return;
            }

            isChanneling = true;
            Orbwalker.SetMovement(false);
            Orbwalker.SetAttack(false);
            Utility.DelayAction.Add(1, () => isChanneling = false);
        }
コード例 #23
0
 private static void Game_OnGameUpdate(EventArgs args)
 {
     Orbwalker.SetAttack(true);
     if (configMenu.SubMenu("KeyBindings").Item("ComboKey").GetValue <KeyBind>().Active)
     {
         Combo();
     }
     else if (configMenu.SubMenu("KeyBindings").Item("HarassKey").GetValue <KeyBind>().Active ||
              configMenu.SubMenu("KeyBindings").Item("HarassToggleKey").GetValue <KeyBind>().Active)
     {
         Harass();
     }
 }
コード例 #24
0
ファイル: Karthus.cs プロジェクト: wx8829110/WUYANZZZ
        void Game_OnUpdate(EventArgs args)
        {
            if (_menu.Item("ultKS").GetValue <bool>())
            {
                UltKs();
            }
            switch (_orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                _orbwalker.SetAttack(_menu.Item("comboAA").GetValue <bool>() || ObjectManager.Player.Mana < 100);    //if no mana, allow auto attacks!
                _orbwalker.SetMovement(_menu.Item("comboMove").GetValue <bool>());
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                _orbwalker.SetAttack(true);
                _orbwalker.SetMovement(_menu.Item("harassMove").GetValue <bool>());
                Harass();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                _orbwalker.SetAttack(_menu.Item("farmAA").GetValue <bool>() || ObjectManager.Player.Mana < 100);
                _orbwalker.SetMovement(_menu.Item("farmMove").GetValue <bool>());
                LaneClear();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                _orbwalker.SetAttack(true);
                _orbwalker.SetMovement(_menu.Item("farmMove").GetValue <bool>());
                LastHit();
                break;

            default:
                _orbwalker.SetAttack(true);
                _orbwalker.SetMovement(true);
                RegulateEState();

                if (_menu.Item("autoCast").GetValue <bool>())
                {
                    if (IsInPassiveForm())
                    {
                        if (!Combo())
                        {
                            LaneClear(true);
                        }
                    }
                }

                break;
            }
        }
コード例 #25
0
        private static void Harass()
        {
            Obj_AI_Hero target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Physical);

            if (target != null)
            {
                if (Vector3.Distance(Player.ServerPosition, target.ServerPosition) <= Q.Range && Config.Item("UseQHarass").GetValue <bool>() && Q.IsReady() && !Jumping)
                {
                    Orbwalker.SetAttack(false);
                    Q.Cast(target);
                    Orbwalker.SetAttack(true);
                }

                if (Vector3.Distance(Player.ServerPosition, target.ServerPosition) <= W.Range && Config.Item("UseWHarass").GetValue <bool>() && W.IsReady() &&
                    Wnorm)
                {
                    W.Cast(target);
                }
                if (Vector3.Distance(Player.ServerPosition, target.ServerPosition) <= W.Range && Config.Item("UseWHarass").GetValue <bool>() && W.IsReady() &&
                    Wevolved)
                {
                    W.Cast(target);
                }
            }
        }
コード例 #26
0
        private static void Combo()
        {
            Orbwalker.SetAttack(true);

            var target = TargetSelector.GetTarget(1500, TargetSelector.DamageType.Physical);

            bool useQ = Config.Item("UseQ").GetValue <bool>();
            bool useT = Config.Item("Tiamat").GetValue <bool>();
            bool useH = Config.Item("Hydra").GetValue <bool>();
            bool useB = Config.Item("Blade").GetValue <bool>();
            bool useW = Config.Item("UseW").GetValue <bool>();
            bool useE = Config.Item("UseE").GetValue <bool>();
            bool useR = Config.Item("UseR").GetValue <bool>();


            if (target != null && useE && E.IsReady())
            {
                E.Cast(target);
            }

            if (target != null && useW && W.IsReady())
            {
                W.Cast();
            }

            if (target != null && useQ && Q.IsReady())
            {
                Q.Cast();
            }

            if (target != null && useR && R.IsReady())
            {
                R.Cast();
            }

            if (target != null && useT && tiamat.IsReady())
            {
                tiamat.Cast();
            }

            if (target != null && useH && hydra.IsReady())
            {
                hydra.Cast();
            }

            if (target != null && useB && blade.IsReady())
            {
                blade.Cast(target);
            }
        }
コード例 #27
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            Orbwalker.SetMovement(true);
            Orbwalker.SetAttack(true);

            if (Menu.Item("ComboActive").GetValue <KeyBind>().Active)
            {
                Combo();
            }

            if (Menu.Item("LaneClearActive").GetValue <KeyBind>().Active)
            {
                LaneClear();
            }
            if (Menu.Item("JungleFarmActive").GetValue <KeyBind>().Active)
            {
                JungleFarm();
            }

            if (Menu.Item("ActiveQSS").GetValue <bool>() && QuickS.IsReady() || Scimitar.IsReady())
            {
                SmartQuickS();
            }
            if (ObjectManager.Player.HasBuffOfType(BuffType.Slow) && Menu.Item("SmartW").GetValue <bool>() && W.IsReady())
            {
                W.Cast();
            }
        }
コード例 #28
0
ファイル: Program.cs プロジェクト: betw01/xsalice22
        private static void Game_OnGameUpdate(EventArgs args)
        {
            //check if player is dead
            if (Player.IsDead)
            {
                return;
            }

            Orbwalker.SetAttack(true);

            if (menu.Item("towerR").GetValue <bool>())
            {
                checkUnderTower();
            }

            if (menu.Item("ComboActive").GetValue <KeyBind>().Active)
            {
                Combo();
            }
            else
            {
                if (menu.Item("LaneClearActive").GetValue <KeyBind>().Active)
                {
                    Farm();
                }

                if (menu.Item("HarassActive").GetValue <KeyBind>().Active || menu.Item("HarassActiveT").GetValue <KeyBind>().Active)
                {
                    Harass();
                }
            }
        }
コード例 #29
0
ファイル: Program.cs プロジェクト: wolfhack739/LeagueSharp2
        private static void Game_OnUpdate(EventArgs args)
        {
            if (_config.Item("skinG").GetValue <bool>() && SkinChanged())
            {
                GenModelPacket(_player.ChampionName, _config.Item("skinGraves").GetValue <Slider>().Value);
                _lastSkin = _config.Item("skinGraves").GetValue <Slider>().Value;
            }
            if (_config.Item("ActiveCombo").GetValue <KeyBind>().Active)
            {
                Combo();
            }
            if ((_config.Item("ActiveHarass").GetValue <KeyBind>().Active || _config.Item("harasstoggle").GetValue <KeyBind>().Active) && (100 * (_player.Mana / _player.MaxMana)) > _config.Item("Harrasmana").GetValue <Slider>().Value)
            {
                Harass();
            }
            if (_config.Item("ActiveLane").GetValue <KeyBind>().Active&& (100 * (_player.Mana / _player.MaxMana)) > _config.Item("Lanemana").GetValue <Slider>().Value)
            {
                Laneclear();
                JungleClear();
            }
            if (_config.Item("ActiveLast").GetValue <KeyBind>().Active&& (100 * (_player.Mana / _player.MaxMana)) > _config.Item("Lanemana").GetValue <Slider>().Value)
            {
                LastHit();
            }

            _player = ObjectManager.Player;

            _orbwalker.SetAttack(true);

            KillSteal();
            Usepotion();
        }
コード例 #30
0
        /* WIP
         * private static void OnCreateObj(GameObject sender, EventArgs args)
         * {
         *   throw new NotImplementedException();
         * }
         *
         * private static void OnDeleteObj(GameObject sender, EventArgs args)
         * {
         *   throw new NotImplementedException();
         * }
         */



        private static void OnGameUpdate(EventArgs args)
        {
            if (Config.Item("EQmouse").GetValue <KeyBind>().Active)
            {
                EQMouse();
            }

            Player = ObjectManager.Player;
            var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }

            Orbwalker.SetAttack(true);
            if (Config.Item("ActiveCombo").GetValue <KeyBind>().Active)
            {
                Combo();
            }

            if (Player.Distance(target) <= 600 && IgniteDamage(target) >= target.Health && Config.Item("Ignite").GetValue <bool>())
            {
                Player.Spellbook.CastSpell(IgniteSlot, target);
            }
        }