Exemple #1
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "Karthus")
            {
                return;
            }
            AbilitySequence = new int[] { 1, 3, 1, 2, 1, 4, 1, 3, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2 };
            Chat.Print("KzKarthus Loaded!", Color.CornflowerBlue);
            Chat.Print("Enjoy the game and DONT FEED!", Color.Red);
            Tahoma16B = new Font(Drawing.Direct3DDevice, new FontDescription {
                FaceName = "Tahoma", Height = 16, Weight = FontWeight.Bold, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType
            });
            KzKarthusMenu.loadMenu();
            Game.OnTick += GameOnTick;
            MyActivator.loadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill
            Q = new Spell.Skillshot(SpellSlot.Q, 950, SkillShotType.Circular, 1000, int.MaxValue, 160);
            W = new Spell.Skillshot(SpellSlot.W, 1000, SkillShotType.Circular, 500, int.MaxValue, 70);
            E = new Spell.Active(SpellSlot.E, 505);
            R = new Spell.Skillshot(SpellSlot.R, 25000, SkillShotType.Circular, 3000, int.MaxValue, int.MaxValue);
            #endregion

            Gapcloser.OnGapcloser += AntiGapCloser;
            Drawing.OnDraw        += GameOnDraw;
        }