Esempio n. 1
0
        private static void Loading_OnLoadingComplete(EventArgs bla)
        {
            if (Player.Instance.Hero != Champion.Syndra)
            {
                return;
            }
            SpellsManager.InitializeSpells();
            Menus.CreateMenu();
            ModeManager.InitializeModes();
            DrawingsManager.InitializeDrawings();


            Obj_AI_Base.OnProcessSpellCast += delegate(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
            {
                if (sender.IsMe && (int)args.Slot < 4)
                {
                    LockedSpellCasts = true;
                }
            };

            Obj_AI_Base.OnSpellCast += delegate(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
            {
                if (sender.IsMe && (int)args.Slot < 4)
                {
                    LockedSpellCasts = false;
                }
            };

            Spellbook.OnCastSpell += delegate(Spellbook sender, SpellbookCastSpellEventArgs args)
            {
                if (sender.Owner.IsMe && (int)args.Slot < 4 && Player.GetSpell(args.Slot).IsReady)
                {
                    if (LockedSpellCasts)
                    {
                        args.Process = false;
                    }
                    else
                    {
                        LockedSpellCasts = true;
                    }
                }
            };

            Game.OnTick += delegate
            {
                if (_lockedTime > 0 && LockedSpellCasts && Core.GameTickCount - _lockedTime > 250)
                {
                    LockedSpellCasts = false;
                }
            };


            Chat.Print("<font color='#FA5858'>Wladis Syndra loaded</font>");
            Chat.Print("Credits to ExRaZor, T2N1Scar, Definitely not Kappa, gero, MarioGK, 2Phones");
        }
Esempio n. 2
0
        private static void Loading_OnLoadingComplete(EventArgs bla)
        {
            if (Player.Instance.Hero != Champion.Syndra)
            {
                return;
            }
            SpellsManager.InitializeSpells();
            Menus.CreateMenu();
            ModeManager.InitializeModes();
            DrawingsManager.InitializeDrawings();
            EventsManager.Initialize();


            Chat.Print("<font color='#FA5858'>Wladis Syndra loaded</font>");
            Chat.Print("Credits to ExRaZor, T2N1Scar, Definitely not Kappa, gero, MarioGK, 2Phones");
        }