Example #1
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "MissFortune")
            {
                return;
            }
            AbilitySequence = new[] { 1, 2, 1, 3, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3 };
            Chat.Print("MissInopportune Loaded!", Color.CornflowerBlue);
            Chat.Print("Enjoy the game and DONT FLAME!", Color.Red);
            MissInopportuneMenu.LoadMenu();
            _wardLocation = new WardLocation();
            Game.OnTick  += GameOnTick;
            MyActivator.LoadSpells();
            Game.OnUpdate += OnGameUpdate;


            #region Skill

            Q  = new Spell.Targeted(SpellSlot.Q, 650);
            Q1 = new Spell.Skillshot(SpellSlot.Q, 1100, SkillShotType.Circular, 250, 2000, 50);
            W  = new Spell.Active(SpellSlot.W);
            E  = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Circular, 500, int.MaxValue, 200);
            R  = new Spell.Skillshot(SpellSlot.R, 1400, SkillShotType.Cone, 0, int.MaxValue);
            R.ConeAngleDegrees = 30;

            #endregion

            Gapcloser.OnGapcloser          += AntiGapCloser;
            Obj_AI_Base.OnProcessSpellCast += OnSpellCast;
            Obj_AI_Base.OnBuffGain         += OnBuffGain;
            Obj_AI_Base.OnBuffLose         += OnBuffLose;
            Drawing.OnDraw += GameOnDraw;
            DamageIndicator.Initialize(SpellDamage.GetTotalDamage);
        }
Example #2
0
 private static void MyActivatorPage()
 {
     MyActivator = MyMenu.AddSubMenu("Activator Settings", "Items");
     MyActivator.AddGroupLabel("Auto QSS if :");
     MyActivator.Add("Blind",
                     new CheckBox("Blind", false));
     MyActivator.Add("Charm",
                     new CheckBox("Charm"));
     MyActivator.Add("Fear",
                     new CheckBox("Fear"));
     MyActivator.Add("Polymorph",
                     new CheckBox("Polymorph"));
     MyActivator.Add("Stun",
                     new CheckBox("Stun"));
     MyActivator.Add("Snare",
                     new CheckBox("Snare"));
     MyActivator.Add("Silence",
                     new CheckBox("Silence", false));
     MyActivator.Add("Taunt",
                     new CheckBox("Taunt"));
     MyActivator.Add("Suppression",
                     new CheckBox("Suppression"));
     MyActivator.AddGroupLabel("Ults");
     MyActivator.Add("ZedUlt",
                     new CheckBox("Zed Ult"));
     MyActivator.Add("VladUlt",
                     new CheckBox("Vlad Ult"));
     MyActivator.Add("FizzUlt",
                     new CheckBox("Fizz Ult"));
     MyActivator.Add("MordUlt",
                     new CheckBox("Mordekaiser Ult"));
     MyActivator.Add("PoppyUlt",
                     new CheckBox("Poppy Ult"));
     MyActivator.AddGroupLabel("Items usage:");
     MyActivator.AddSeparator();
     MyActivator.Add("checkward",
                     new CheckBox("Use AutoWard", false));
     MyActivator.Add("pinkvision",
                     new CheckBox("Use Pink Ward", false));
     MyActivator.Add("greatherstealthtotem",
                     new CheckBox("Use Greather Stealth Totem", false));
     MyActivator.Add("greatervisiontotem",
                     new CheckBox("Use Greater Vision Totem", false));
     MyActivator.Add("wardingtotem",
                     new CheckBox("Use Warding Totem", false));
     MyActivator.Add("farsightalteration",
                     new CheckBox("Use Farsight Alteration", false));
     MyActivator.AddSeparator();
     MyActivator.Add("bilgewater",
                     new CheckBox("Use Bilgewater Cutlass"));
     MyActivator.Add("bilgewater.HP",
                     new Slider("Use Bilgewater Cutlass if hp is lower than {0}(%)", 60));
     MyActivator.AddSeparator();
     MyActivator.Add("botrk",
                     new CheckBox("Use Blade of The Ruined King"));
     MyActivator.Add("botrk.HP",
                     new Slider("Use Blade of The Ruined King if hp is lower than {0}(%)", 60));
     MyActivator.AddSeparator();
     MyActivator.Add("youmus",
                     new CheckBox("Use Youmus Ghostblade"));
     MyActivator.Add("items.Youmuss.HP",
                     new Slider("Use Youmuss Ghostblade if hp is lower than {0}(%)", 60, 1));
     MyActivator.Add("youmus.Enemies",
                     new Slider("Use Youmus Ghostblade when there are {0} enemies in range", 3, 1, 5));
     MyActivator.AddSeparator();
     MyActivator.AddGroupLabel("Potion Settings");
     MyActivator.Add("spells.Potions.Check",
                     new CheckBox("Use Potions"));
     MyActivator.Add("spells.Potions.HP",
                     new Slider("Use Potions when HP is lower than {0}(%)", 60, 1));
     MyActivator.Add("spells.Potions.Mana",
                     new Slider("Use Potions when Mana is lower than {0}(%)", 60, 1));
     MyActivator.AddSeparator();
     MyActivator.AddGroupLabel("Spells settings:");
     MyActivator.AddGroupLabel("Barrier settings:");
     MyActivator.Add("spells.Barrier.Hp",
                     new Slider("Use Barrier when HP is lower than {0}(%)", 30, 1));
     MyActivator.AddGroupLabel("Heal settings:");
     MyActivator.Add("spells.Heal.Hp",
                     new Slider("Use Heal when HP is lower than {0}(%)", 30, 1));
     MyActivator.AddGroupLabel("Ignite settings:");
     MyActivator.Add("spells.Ignite.Focus",
                     new Slider("Use Ignite when target HP is lower than {0}(%)", 10, 1));
 }