Exemplo n.º 1
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "Thresh")
            {
                return;
            }
            AbilitySequence = new int[] { 3, 1, 2, 3, 1, 4, 1, 1, 1, 3, 4, 3, 3, 2, 2, 4, 2, 2 };
            Chat.Print("Thug Thresh Loaded!", Color.CornflowerBlue);
            Chat.Print("Enjoy the game and DONT FLAME!", Color.CornflowerBlue);
            ThreshMenu.loadMenu();
            Game.OnTick += GameOnTick;
            MyActivator.loadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill
            Q  = new Spell.Skillshot(SpellSlot.Q, 1075, SkillShotType.Linear, (int)0.35f, 1200, 60);
            Q2 = new Spell.Active(SpellSlot.Q, 1075);
            W  = new Spell.Skillshot(SpellSlot.W, 950, SkillShotType.Circular, (int)0.25f, 1750, 300);
            E  = new Spell.Skillshot(SpellSlot.E, 500, SkillShotType.Linear, 1, 2000, 110);
            R  = new Spell.Active(SpellSlot.R, 350);
            #endregion

            Obj_AI_Base.OnNewPath            += Obj_AI_Base_OnNewPath;
            Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell;
            Gapcloser.OnGapcloser            += AntiGapCloser;
            AIHeroClient.OnProcessSpellCast  += AIHeroClient_OnProcessSpellCast;
            Drawing.OnDraw += GameOnDraw;
        }
Exemplo n.º 2
0
 public static void MyActivatorPage()
 {
     MyActivator = MyMenu.AddSubMenu("Items Settings", "Items");
     MyActivator.AddGroupLabel("Items usage:");
     MyActivator.AddSeparator();
     MyActivator.Add("items.sliderHP", new Slider("Use items when HP is lower than {0}(%)", 30, 1, 100));
     MyActivator.Add("items.enemiesinrange", new Slider("Use items when there are {0} enemies in range", 3, 1, 5));
     MyActivator.AddSeparator();
     MyActivator.AddLabel("Items avaible to use with Activator:");
     MyActivator.Add("talisman", new CheckBox("Use Talisman of Ascension"));
     MyActivator.Add("randuin", new CheckBox("Use Randuin"));
     MyActivator.Add("glory", new CheckBox("Use Righteous Glory"));
     MyActivator.Add("fotmountain", new CheckBox("Use Face of the Mountain"));
     MyActivator.Add("mikael", new CheckBox("Use Mikaels Crucible"));
     MyActivator.Add("ironsolari", new CheckBox("Use Locket of the Iron Solari"));
     MySpells = MyMenu.AddSubMenu("Spells Settings");
     MySpells.AddGroupLabel("Spells settings:");
     MySpells.Add("useexhaust", new CheckBox("Use Exhaust on:"));
     foreach (var source in ObjectManager.Get <AIHeroClient>().Where(a => a.IsEnemy))
     {
         MySpells.Add(source.ChampionName + "exhaust",
                      new CheckBox("Exhaust " + source.ChampionName, false));
     }
     MySpells.AddSeparator();
     MySpells.AddGroupLabel("Heal settings:");
     MySpells.Add("spells.Heal.Hp", new Slider("Use Heal when HP is lower than {0}(%)", 30, 1, 100));
     MySpells.AddGroupLabel("Ignite settings:");
     MySpells.Add("spell.Ignite.Use", new CheckBox("Use Ignite for KillSteal"));
     MySpells.Add("spells.Ignite.Focus", new Slider("Use Ignite when target HP is lower than {0}(%)", 10, 1, 100));
     MySpells.Add("spells.Ignite.Kill", new CheckBox("Use ignite if killable"));
 }