Exemplo n.º 1
0
        private static void OnLoadingComplete(EventArgs args)
        //Let's start with the addon, when the loading screen finished then the addon have to start.
        {
            // With if player.ChampionName we are searching if out champion is Tristana, if we put != is If not tristana then Fack off
            if (Player.ChampionName != "Tristana")
            {
                return;
            }
            //Abilitysequence is needed for my autolvlup, we will see it in the program
            AbilitySequence = new[] { 3, 2, 1, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2 };
            //Like every nob addon, we want to write something in chat like our addon is loaded and some spam like this
            //Using Chat.Print helps you to write this, you can also choose how to type it with Color.Red like Annie bad days
            Chat.Print("Boostana Loaded!", Color.CornflowerBlue);
            Chat.Print("Enjoy the game and DONT FLAME!", Color.Red);
            //We start to load every single thing we need for let the addon works properly or every file we have separately to this
            TristanaMenu.LoadMenu();
            wardLocation = new WardLocation();
            Game.OnTick += GameOnTick;
            MyActivator.LoadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill
            //As i said first, When we load the game we have also to set the skills right?
            //Then let's do it with each skill
            //Q was active then we have to set it as active
            Q = new Spell.Active(SpellSlot.Q, 550);
            //W was a skillshot, precisely a circular one so we have to write Spell.Skillshot
            //For the skillshot we have to define if it is linear, circual or madafaker
            //We call it by SkillShotType
            W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 450, int.MaxValue, 180);
            E = new Spell.Targeted(SpellSlot.E, 550);
            R = new Spell.Targeted(SpellSlot.R, 550);

            #endregion

            Obj_AI_Base.OnLevelUp            += Obj_AI_Base_OnLevelUp;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += AntiGapCloser;
            Obj_AI_Base.OnBuffGain           += OnBuffGain;
            GameObject.OnCreate += GameObject_OnCreate;
            Drawing.OnDraw      += GameOnDraw;
        }
Exemplo n.º 2
0
        //Let's start with the addon, when the loading screen finished then the addon have to start.
        private static void OnLoadingComplete(EventArgs args)
        {
            // With if player.ChampionName we are searching if out champion is Tristana, if we put != is If not tristana then Fack off
            if (Player.ChampionName != "Tristana") return;
            //Abilitysequence is needed for my autolvlup, we will see it in the program
            AbilitySequence = new[] { 3, 2, 1, 3, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2 };
            //Like every nob addon, we want to write something in chat like our addon is loaded and some spam like this
            //Using Chat.Print helps you to write this, you can also choose how to type it with Color.Red like Annie bad days
            Chat.Print("Boostana Loaded!", Color.CornflowerBlue);
            Chat.Print("Enjoy the game and DONT FLAME!", Color.Red);
            //We start to load every single thing we need for let the addon works properly or every file we have separately to this
            TristanaMenu.LoadMenu();
            wardLocation = new WardLocation();
            Game.OnTick += GameOnTick;
            MyActivator.LoadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill
            //As i said first, When we load the game we have also to set the skills right?
            //Then let's do it with each skill
            //Q was active then we have to set it as active
            Q = new Spell.Active(SpellSlot.Q, 550);
            //W was a skillshot, precisely a circular one so we have to write Spell.Skillshot
            //For the skillshot we have to define if it is linear, circual or madafaker
            //We call it by SkillShotType
            W = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Circular, 450, int.MaxValue, 180);
            E = new Spell.Targeted(SpellSlot.E, 550);
            R = new Spell.Targeted(SpellSlot.R, 550);

            #endregion

            Obj_AI_Base.OnLevelUp += Obj_AI_Base_OnLevelUp;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser += AntiGapCloser;
            Obj_AI_Base.OnBuffGain += OnBuffGain;
            GameObject.OnCreate += GameObject_OnCreate;
            Drawing.OnDraw += GameOnDraw;
        }