Beispiel #1
0
        private static void OnDraw(EventArgs args)
        {
            if (Player.Instance.IsDead)
            {
                return;
            }

            if (MiscMenu.GetCheckBoxValue("vSmiteDrawRange"))
            {
                Circle.Draw(Color.Gold, SpellsManager.Smite.Range, Player.Instance.Position);
            }
            if (MiscMenu.GetCheckBoxValue("vSmiteDrawSmiteStatus"))
            {
                var enabled = MiscMenu.GetKeyBindValue("smitekey") && MiscMenu.GetCheckBoxValue("sjgl");
                Text.Position  = Drawing.WorldToScreen(Player.Instance.Position) - new Vector2(40, -60);
                Text.Color     = enabled ? FontColor.LightSeaGreen : FontColor.DarkRed;
                Text.TextValue = enabled ? "Smite: ENABLED" : "Smite: disabled";
                Text.Draw();
            }
            if (MiscMenu.GetCheckBoxValue("vSmiteDrawSmiteable"))
            {
                var monsters =
                    EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, SpellsManager.Smite.Range + 500.0f)
                    .Where(e => !e.IsDead && e.Health > 0 && !e.IsInvulnerable && e.IsVisible && e.Health < Program.SmiteDmgMonster(e) && Program.MonstersNames.Contains(e.BaseSkinName));
                foreach (var monster in monsters)
                {
                    Circle.Draw(Color.Red, monster.BoundingRadius, monster.Position);
                }
            }
        }
Beispiel #2
0
        public static void WardJumper()
        {
            //----------------------------------------------Ward Jump---------------------------------------
            if (Q.IsReady() && MiscMenu.GetKeyBindValue("wardjump") && Environment.TickCount - WardTick >= 2000)
            {
                var         CursorPos = Game.CursorPos;
                float       WardTick;
                Obj_AI_Base JumpPlace = EntityManager.Heroes.Allies.FirstOrDefault(it => it.Distance(CursorPos) <= 250 && Q.IsInRange(it));

                if (JumpPlace != default(Obj_AI_Base))
                {
                    Q.Cast(JumpPlace);
                }
                else
                {
                    JumpPlace = EntityManager.MinionsAndMonsters.Minions.FirstOrDefault(it => it.Distance(CursorPos) <= 250 && Q.IsInRange(it));

                    if (JumpPlace != default(Obj_AI_Base))
                    {
                        Q.Cast(JumpPlace);
                    }
                    else if (JumpWard() != default(InventorySlot))
                    {
                        var Ward = JumpWard();
                        CursorPos = _player.Position.Extend(CursorPos, 600).To3D();
                        Ward.Cast(CursorPos);
                        WardTick = Environment.TickCount;
                        Core.DelayAction(() => WardJump(CursorPos), Game.Ping + 100);
                    }
                }
            }
        }
Beispiel #3
0
        public static void Execute()
        {
            if (Smite.IsLearned)
            {
                Minion = (Obj_AI_Minion)EntityManager.MinionsAndMonsters.Monsters.FirstOrDefault(buff => Program._player.IsInRange(buff, 570) && (buff.Name.StartsWith(buff.BaseSkinName) || Program.BuffsThatActuallyMakeSenseToSmite.Contains(buff.BaseSkinName)) && !buff.Name.Contains("Mini") && !buff.Name.Contains("Spawn"));
                AIHeroClient target = TargetSelector.GetTarget(570, DamageType.Magical);

                if (MiscMenu.GetKeyBindValue("smitekey") && Minion.IsValidTarget(570) && Minion.Health < Program.SmiteDmgMonster(Minion) && MiscMenu.GetCheckBoxValue("sjgl") && SpellsManager.Smite.IsReady())
                {
                    Smite.Cast(Minion);
                }

                if (target.IsValidTarget(570) && target.Health < Program.SmiteDmgHero(target) && MiscMenu.GetCheckBoxValue("sks") && SpellsManager.Smite.IsReady())
                {
                    Smite.Cast(target);
                }
            }
        }