Exemplo n.º 1
0
        private static void AutoSmite()
        {
            if (Config.Item("AutoSmite").GetValue <KeyBind>().Active)
            {
                float[]  SmiteDmg     = { 20 * Player.Level + 370, 30 * Player.Level + 330, 40 * Player.Level + 240, 50 * Player.Level + 100 };
                string[] MonsterNames = { "LizardElder", "AncientGolem", "Worm", "Dragon" };
                string[] Monstersteal = { "Worm", "Dragon" };
                var      vMinions     = MinionManager.GetMinions(Player.ServerPosition, 350 + Player.SummonerSpellbook.Spells.FirstOrDefault(
                                                                     spell => spell.Name.Contains("smite")).SData.CastRange[0], MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.Health);
                foreach (var vMinion in vMinions)
                {
                    if (vMinion != null &&
                        !vMinion.IsDead &&
                        !Player.IsDead &&
                        !Player.IsStunned &&
                        SmiteSlot != SpellSlot.Unknown &&
                        Player.SummonerSpellbook.CanUseSpell(SmiteSlot) == SpellState.Ready)
                    {
                        if ((vMinion.Health < SmiteDmg.Max()) && (MonsterNames.Any(name => vMinion.BaseSkinName.StartsWith(name))))
                        {
                            if (Config.Item("WardJumpSmite").GetValue <bool>())
                            {
                                if (Player.Distance(vMinion) > 720 && (Monstersteal.Any(name => vMinion.BaseSkinName.StartsWith(name))))
                                {
                                    Jumper.wardJump(Game.CursorPos.To2D());
                                }
                            }

                            Player.SummonerSpellbook.CastSpell(SmiteSlot, vMinion);

                            if (Config.Item("laugh").GetValue <bool>())
                            {
                                Game.Say("/l");
                            }
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            if (Config.Item("setW").GetValue <StringList>().SelectedIndex == 1)
            {
                if (Config.Item("ComboActive").GetValue <KeyBind>().Active&& Player.HasBuff("jaxrelentlessassaultas", true) && W.IsReady())
                {
                    W.Cast();
                }
            }

            if (Config.Item("AutoI").GetValue <bool>())
            {
                AutoIgnite();
            }

            if (!Config.Item("ComboActive").GetValue <KeyBind>().Active&& !Config.Item("HarassActive").GetValue <KeyBind>().Active)
            {
                Eactive = false;
            }

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

            if (Config.Item("HarassActive").GetValue <KeyBind>().Active)
            {
                Harass();
            }

            if (Config.Item("FreezeActive").GetValue <KeyBind>().Active)
            {
                FreezeFarm();
            }
            if (Config.Item("LaneClearActive").GetValue <KeyBind>().Active)
            {
                LaneClear();
            }

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

            if (Config.Item("Ward").GetValue <KeyBind>().Active)
            {
                Jumper.wardJump(Game.CursorPos.To2D());
            }

            if (Config.Item("AutoSmite").GetValue <KeyBind>().Active)
            {
                AutoSmite();
            }

            if (Config.Item("AutoEWQTower").GetValue <KeyBind>().Active)
            {
                AutoUnderTower();
            }
        }