Esempio n. 1
0
        private void ActivatorsLoaded(object o)
        {
            try
            {
                if (o is Activators && (o as Activators).Menu != null)
                {
                    _activators = (o as Activators);

                    _potions = _potions.OrderBy(x => x.Priority).ToList();

                    Menu = new Menu(Name, Name);

                    var healthMenu = new Menu("Health", Name + "Health");
                    healthMenu.AddItem(new MenuItem(Name + "HealthPotion", "Use Health Potion").SetValue(true));
                    healthMenu.AddItem(
                        new MenuItem(Name + "HealthPercent", "HP Trigger Percent").SetValue(new Slider(60)));

                    var manaMenu = new Menu("Mana", Name + "Mana");
                    manaMenu.AddItem(new MenuItem(Name + "ManaPotion", "Use Mana Potion").SetValue(true));
                    manaMenu.AddItem(new MenuItem(Name + "ManaPercent", "MP Trigger Percent").SetValue(new Slider(60)));

                    Menu.AddSubMenu(healthMenu);
                    Menu.AddSubMenu(manaMenu);

                    Menu.AddItem(new MenuItem(Name + "Enabled", "Enabled").SetValue(false));

                    _activators.Menu.AddSubMenu(Menu);

                    Game.OnGameUpdate += OnGameUpdate;

                    Initialized = true;
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }
Esempio n. 2
0
        private void ActivatorsLoaded(object o)
        {
            try
            {
                if (o is Activators && (o as Activators).Menu != null)
                {
                    _activators = (o as Activators);

                    _potions = _potions.OrderBy(x => x.Priority).ToList();

                    Menu = new Menu("鑷姩鍥炶鍥炶摑", "Auto Potion");

                    var healthMenu = new Menu("娌绘剤", Name + "Health");
                    healthMenu.AddItem(new MenuItem(Name + "HealthPotion", "浣跨敤娌绘剤鑽按").SetValue(true));
                    healthMenu.AddItem(
                        new MenuItem(Name + "HealthPercent", "娌绘剤瑙﹀彂鐧惧垎姣攟").SetValue(new Slider(60)));

                    var manaMenu = new Menu("鍥炶摑", Name + "Mana");
                    manaMenu.AddItem(new MenuItem(Name + "ManaPotion", "浣跨敤鍥炶摑鑽按").SetValue(true));
                    manaMenu.AddItem(new MenuItem(Name + "ManaPercent", "鍥炶摑瑙﹀彂鐧惧垎姣攟").SetValue(new Slider(60)));

                    Menu.AddSubMenu(healthMenu);
                    Menu.AddSubMenu(manaMenu);

                    Menu.AddItem(new MenuItem(Name + "Enabled", "鎵ц閿綅").SetValue(false));

                    _activators.Menu.AddSubMenu(Menu);

                    Game.OnGameUpdate += OnGameUpdate;

                    Initialized = true;
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }
Esempio n. 3
0
        private void ActivatorsLoaded(object o)
        {
            try
            {
                if (o is Activators && (o as Activators).Menu != null)
                {
                    _activators = (o as Activators);

                    Menu = new Menu("鑷姩鎯╂垝", "Auto Smite");

                    var spellsMenu = new Menu("娉曟湳", Name + "Spells");
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsSmite", "浣跨敤鎯╂垝").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsNunu", "浣跨敤鍔姫Q").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsChogath", "浣跨敤铏氱┖鎭愭儳R").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsOlaf", "浣跨敤濂ユ媺澶珅E").SetValue(true));

                    var drawingMenu = new Menu("鑼冨洿绾垮湀", Name + "Drawing");
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingUseableColor", "鍙敤棰滆壊").SetValue(Color.Blue));
                    drawingMenu.AddItem(
                        new MenuItem(Name + "DrawingUnusableColor", "涓嶅彲鐢ㄩ鑹瞸").SetValue(Color.Gray));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageColor", "鎹熷棰滆壊").SetValue(Color.SkyBlue));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingSmiteRange", "鎯╂垝鑼冨洿").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingHeroSpellsRange", "鑻遍泟娉曟湳鑼冨洿").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageTillSmite", "鎯╂垝锛堝彲鏉€姝伙級").SetValue(true));

                    Menu.AddSubMenu(spellsMenu);
                    Menu.AddSubMenu(drawingMenu);

                    Menu.AddItem(new MenuItem(Name + "BigCamps", "澶у洿鍓縷").SetValue(true));
                    Menu.AddItem(new MenuItem(Name + "SmallCamps", "灏忓洿鍓縷").SetValue(false));
                    Menu.AddItem(new MenuItem(Name + "PacketCasting", "灏佸寘浣跨敤|").SetValue(false));
                    Menu.AddItem(
                        new MenuItem(Name + "Enabled", "鎵ц閿綅").SetValue(new KeyBind('N', KeyBindType.Toggle, true)));

                    _activators.Menu.AddSubMenu(Menu);

                    if (IsValidMap)
                    {
                        Utility.Map.MapType map = Utility.Map.GetMap()._MapType;

                        if (map == Utility.Map.MapType.SummonersRift)
                        {
                            _bigMinionNames   = new[] { "AncientGolem", "LizardElder", "Worm", "Dragon" };
                            _smallMinionNames = new[] { "GreatWraith", "Wraith", "GiantWolf", "Golem", "Wight" };
                        }
                        else if (map == Utility.Map.MapType.TwistedTreeline)
                        {
                            _bigMinionNames   = new[] { "TT_Spiderboss" };
                            _smallMinionNames = new[] { "TT_NWraith", "TT_NGolem", "TT_NWolf" };
                        }

                        _smite      = new Smite();
                        _heroSpells = new List <HeroSpell>
                        {
                            new HeroSpell("Nunu", SpellSlot.Q, 155),
                            new HeroSpell("Chogath", SpellSlot.R, 175),
                            new HeroSpell("Olaf", SpellSlot.E, 325)
                        };
                        _heroSpell = _heroSpells.FirstOrDefault(s => s.Available);

                        Game.OnGameUpdate += OnGameUpdate;
                        Drawing.OnDraw    += OnDraw;

                        Initialized = true;
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }
Esempio n. 4
0
        private void ActivatorsLoaded(object o)
        {
            try
            {
                if (o is Activators && (o as Activators).Menu != null)
                {
                    _activators = (o as Activators);

                    Menu = new Menu(Name, Name);

                    var spellsMenu = new Menu("Spells", Name + "Spells");
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsSmite", "Use Smite").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsNunu", "Use Nunu Q").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsChogath", "Use Cho'Gath R").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsOlaf", "Use Olaf E").SetValue(true));

                    var drawingMenu = new Menu("Drawing", Name + "Drawing");
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingUseableColor", "Useable Color").SetValue(Color.Blue));
                    drawingMenu.AddItem(
                        new MenuItem(Name + "DrawingUnusableColor", "Unusable Color").SetValue(Color.Gray));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageColor", "Damage Color").SetValue(Color.SkyBlue));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingSmiteRange", "Smite Range").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingHeroSpellsRange", "Hero Spells Range").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageTillSmite", "Damage till Smite").SetValue(true));

                    Menu.AddSubMenu(spellsMenu);
                    Menu.AddSubMenu(drawingMenu);

                    Menu.AddItem(new MenuItem(Name + "BigCamps", "Big Camps").SetValue(true));
                    Menu.AddItem(new MenuItem(Name + "SmallCamps", "Small Camps").SetValue(false));
                    //                    Menu.AddItem(new MenuItem(Name + "PacketCasting", "Packet Casting").SetValue(false));
                    Menu.AddItem(
                        new MenuItem(Name + "Enabled", "Enabled").SetValue(new KeyBind('N', KeyBindType.Toggle, true)));

                    _activators.Menu.AddSubMenu(Menu);

                    if (IsValidMap)
                    {
                        Utility.Map.MapType map = Utility.Map.GetMap().Type;

                        if (map == Utility.Map.MapType.SummonersRift)
                        {
                            _bigMinionNames = new[] {"SRU_Blue", "SRU_Red", "SRU_Baron", "SRU_Dragon"};
                            _smallMinionNames = new[] {"SRU_Razorbeak", "SRU_Krug", "SRU_Murkwolf", "SRU_Gromp", "SRU_Crab"};
                        }
                        else if (map == Utility.Map.MapType.TwistedTreeline)
                        {
                            _bigMinionNames = new[] {"TT_Spiderboss"};
                            _smallMinionNames = new[] {"TT_NWraith", "TT_NGolem", "TT_NWolf"};
                        }

                        _smite = new Smite();
                        _heroSpells = new List<HeroSpell>
                        {
                            new HeroSpell("Nunu", SpellSlot.Q, 155),
                            new HeroSpell("Chogath", SpellSlot.R, 175),
                            new HeroSpell("Olaf", SpellSlot.E, 325)
                        };
                        _heroSpell = _heroSpells.FirstOrDefault(s => s.Available);

                        Game.OnGameUpdate += OnGameUpdate;
                        Drawing.OnDraw += OnDraw;

                        Initialized = true;
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }
Esempio n. 5
0
        private void ActivatorsLoaded(object o)
        {
            try
            {
                if (o is Activators && (o as Activators).Menu != null)
                {
                    _activators = (o as Activators);

                    _potions = _potions.OrderBy(x => x.Priority).ToList();

                    Menu = new Menu(Name, Name);

                    var healthMenu = new Menu("Health", Name + "Health");
                    healthMenu.AddItem(new MenuItem(Name + "HealthPotion", "Use Health Potion").SetValue(true));
                    healthMenu.AddItem(
                        new MenuItem(Name + "HealthPercent", "HP Trigger Percent").SetValue(new Slider(60)));

                    var manaMenu = new Menu("Mana", Name + "Mana");
                    manaMenu.AddItem(new MenuItem(Name + "ManaPotion", "Use Mana Potion").SetValue(true));
                    manaMenu.AddItem(new MenuItem(Name + "ManaPercent", "MP Trigger Percent").SetValue(new Slider(60)));

                    Menu.AddSubMenu(healthMenu);
                    Menu.AddSubMenu(manaMenu);

                    Menu.AddItem(new MenuItem(Name + "Enabled", "Enabled").SetValue(false));

                    _activators.Menu.AddSubMenu(Menu);

                    Game.OnGameUpdate += OnGameUpdate;

                    Initialized = true;
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }
Esempio n. 6
0
        private void ActivatorsLoaded(object o)
        {
            try
            {
                if (o is Activators && (o as Activators).Menu != null)
                {
                    _activators = (o as Activators);

                    Menu = new Menu(Name, Name);

                    var spellsMenu = new Menu("法术", Name + "Spells");
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsSmite", "使用击打").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsNunu", "使用努努 Q").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsChogath", "使用大虫子 R").SetValue(true));
                    spellsMenu.AddItem(new MenuItem(Name + "SpellsOlaf", "使用奥拉夫 E").SetValue(true));

                    var drawingMenu = new Menu("绘制", Name + "Drawing");
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingUseableColor", "可用颜色").SetValue(Color.Blue));
                    drawingMenu.AddItem(
                        new MenuItem(Name + "DrawingUnusableColor", "不可用的颜色").SetValue(Color.Gray));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageColor", "损害颜色").SetValue(Color.SkyBlue));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingSmiteRange", "攻击范围").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingHeroSpellsRange", "英雄法术范围").SetValue(true));
                    drawingMenu.AddItem(new MenuItem(Name + "DrawingDamageTillSmite", "直到伤害").SetValue(true));

                    Menu.AddSubMenu(spellsMenu);
                    Menu.AddSubMenu(drawingMenu);

                    Menu.AddItem(new MenuItem(Name + "BigCamps", "大Camps").SetValue(true));
                    Menu.AddItem(new MenuItem(Name + "SmallCamps", "小Camps").SetValue(false));
                    //                   Menu.AddItem(new MenuItem(Name + "PacketCasting", "封包").SetValue(false));
                    Menu.AddItem(
                        new MenuItem(Name + "Enabled", "启用").SetValue(new KeyBind('N', KeyBindType.Toggle, true)));

                    _activators.Menu.AddSubMenu(Menu);

                    if (IsValidMap)
                    {
                        Utility.Map.MapType map = Utility.Map.GetMap().Type;

                        if (map == Utility.Map.MapType.SummonersRift)
                        {
                            _bigMinionNames   = new[] { "SRU_Blue", "SRU_Red", "SRU_Baron", "SRU_Dragon" };
                            _smallMinionNames = new[] { "SRU_Razorbeak", "SRU_Krug", "SRU_Murkwolf", "SRU_Gromp", "SRU_Crab" };
                        }
                        else if (map == Utility.Map.MapType.TwistedTreeline)
                        {
                            _bigMinionNames   = new[] { "TT_Spiderboss" };
                            _smallMinionNames = new[] { "TT_NWraith", "TT_NGolem", "TT_NWolf" };
                        }

                        _smite      = new Smite();
                        _heroSpells = new List <HeroSpell>
                        {
                            new HeroSpell("Nunu", SpellSlot.Q, 155),
                            new HeroSpell("Chogath", SpellSlot.R, 175),
                            new HeroSpell("Olaf", SpellSlot.E, 325)
                        };
                        _heroSpell = _heroSpells.FirstOrDefault(s => s.Available);

                        Game.OnGameUpdate += OnGameUpdate;
                        Drawing.OnDraw    += OnDraw;

                        Initialized = true;
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.WriteBlock(ex.Message, ex.ToString());
            }
        }