Exemple #1
0
        public static void OnLoad(EventArgs args)
        {
            if (ObjectManager.Player.CharData.BaseSkinName != "Diana")
            {
                return;
            }

            Notifications.AddNotification(String.Format("ElDiana by jQuery v{0}", ScriptVersion), 1000);
            spells[Spells.Q].SetSkillshot(0.35f, 180f, 1800f, false, SkillshotType.SkillshotCircle);
            _ignite = Player.GetSpellSlot("summonerdot");

            ElDianaMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += Drawings.Drawing_OnDraw;

            Interrupter2.OnInterruptableTarget += (source, eventArgs) =>
            {
                var eSlot = spells[Spells.E];
                if (ElDianaMenu._menu.Item("ElDiana.Interrupt.UseEInterrupt").GetValue <bool>() &&
                    eSlot.IsReady() &&
                    eSlot.Range >= Player.Distance(source, false))
                {
                    eSlot.Cast();
                }
            };

            CustomEvents.Unit.OnDash += (source, eventArgs) =>
            {
                if (!source.IsEnemy)
                {
                    return;
                }
                var eSlot = spells[Spells.E];
                var dis   = Player.Distance(source, false);
                Console.WriteLine(source.Name + " > " + eSlot.Range + " : " + dis);
                if (!eventArgs.IsBlink &&
                    ElDianaMenu._menu.Item("ElDiana.Interrupt.UseEDashes").GetValue <bool>() &&
                    eSlot.IsReady() &&
                    eSlot.Range >= dis)
                {
                    Console.WriteLine("Cast !");
                    eSlot.Cast();
                }
            };
        }
Exemple #2
0
        public static void OnLoad(EventArgs args)
        {
            if (ObjectManager.Player.CharData.BaseSkinName != "Diana")
            {
                return;
            }

            spells[Spells.Q].SetSkillshot(0.25f, 185f, 1620f, false, SkillshotType.SkillshotCircle);
            ignite = Player.GetSpellSlot("summonerdot");

            ElDianaMenu.Initialize();
            Game.OnUpdate  += OnUpdate;
            Drawing.OnDraw += Drawings.Drawing_OnDraw;

            AntiGapcloser.OnEnemyGapcloser     += AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += (source, eventArgs) =>
            {
                var eSlot = spells[Spells.E];
                if (ElDianaMenu.Menu.Item("ElDiana.Interrupt.UseEInterrupt").GetValue <bool>() && eSlot.IsReady() &&
                    eSlot.Range >= Player.Distance(source))
                {
                    eSlot.Cast();
                }
            };

            CustomEvents.Unit.OnDash += (source, eventArgs) =>
            {
                if (!source.IsEnemy)
                {
                    return;
                }

                var eSlot = spells[Spells.E];
                var dis   = Player.Distance(source);
                if (!eventArgs.IsBlink && ElDianaMenu.Menu.Item("ElDiana.Interrupt.UseEDashes").GetValue <bool>() &&
                    eSlot.IsReady() && eSlot.Range >= dis)
                {
                    eSlot.Cast();
                }
            };
        }