/// <summary>
        /// Steals Jungle Mobs
        /// </summary>
        /// <param name="args"></param>
        public static void JungleSteal(EventArgs args)
        {
            if (Essentials.HasSpell("smite"))
            {
                Essentials.SetSmiteSlot();
            }

            if (Game.MapId == GameMapId.SummonersRift)
            {
                var mob =
                    EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.ServerPosition,
                                                                       Program.QHuman.Range)
                    .Where(t => Essentials.JungleMobsList.Contains(t.BaseSkinName))
                    .OrderByDescending(t => t.MaxHealth)
                    .FirstOrDefault();

                if (mob != null)
                {
                    StealJungle(mob);
                }
            }

            if (Game.MapId == GameMapId.TwistedTreeline)
            {
                var mob = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.ServerPosition,
                                                                             Program.QHuman.Range)
                          .Where(t => Essentials.JungleMobsListTwistedTreeline.Contains(t.BaseSkinName))
                          .OrderByDescending(t => t.MaxHealth)
                          .FirstOrDefault();

                if (mob != null)
                {
                    StealJungle(mob);
                }
            }
        }
Exemple #2
0
        /// <summary>
        /// Called when Loading is Completed
        /// </summary>
        /// <param name="args">The Args</param>
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Nidalee)
            {
                return;
            }

            // Human Form
            QHuman = new Spell.Skillshot(SpellSlot.Q, 1500, SkillShotType.Linear, 500, 1300, 40)
            {
                AllowedCollisionCount = 0
            };
            WHuman = new Spell.Skillshot(SpellSlot.W, 875, SkillShotType.Circular, 500, 1450, 100);
            EHuman = new Spell.Targeted(SpellSlot.E, 600);
            R      = new Spell.Active(SpellSlot.R);

            // Javelin Toss -> Pounce
            WExtended = new Spell.Skillshot(SpellSlot.W, 740, SkillShotType.Circular, 500, int.MaxValue, 210);

            // Cougar Form
            QCat = new Spell.Targeted(SpellSlot.Q, 500);
            WCat = new Spell.Skillshot(SpellSlot.W, 375, SkillShotType.Circular, 500, int.MaxValue, 210);
            ECat = new Spell.Skillshot(SpellSlot.E, 310, SkillShotType.Cone, 500, int.MaxValue,
                                       (int)(15.00 * Math.PI / 180.00))
            {
                ConeAngleDegrees = 90
            };

            // Ignite
            if (Essentials.HasSpell("ignite"))
            {
                Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
            }

            // Smite
            if (Essentials.HasSpell("smite"))
            {
                Essentials.SetSmiteSlot();
            }

            // Initializes the Menu
            NidaleeMenu.Create();

            // Initializes the DamageIndicator
            Indicator = new DamageIndicator.DamageIndicator();

            // Prints Success Message
            Chat.Print("Sucessfully Injected NidaleeBuddy Evolution", System.Drawing.Color.Green);

            // Events
            Game.OnUpdate                  += Game_OnUpdate;
            Game.OnUpdate                  += Events.SpellsOnUpdate;
            Game.OnUpdate                  += Events.KillSteal;
            Game.OnUpdate                  += Events.JungleSteal;
            Game.OnUpdate                  += Events.AutoE;
            Orbwalker.OnPostAttack         += Orbwalker_OnPostAttack;
            Orbwalker.OnPreAttack          += Orbwalker_OnPreAttack;
            Orbwalker.OnUnkillableMinion   += Orbwalker_OnUnkillableMinion;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            GameObject.OnDelete            += GameObject_OnDelete;
            Drawing.OnDraw                 += Drawing_OnDraw;
        }