Esempio n. 1
0
        public static void Game_OnGameLoad()
        {
            if (ObjectManager.Player.ChampionName != ChampionName)
            {
                return;
            }

            Q = new Spell(SpellSlot.Q, 400);
            W = new Spell(SpellSlot.W, 1250);
            E = new Spell(SpellSlot.E, 4500);
            R = new Spell(SpellSlot.R, 700);
            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            ItemDb = new Dictionary <string, Tuple <Items.Item, EnumItemType, EnumItemTargettingType> >
            {
                {
                    "Tiamat",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(
                        new Items.Item(3077, 250f),
                        EnumItemType.AoE,
                        EnumItemTargettingType.EnemyObjects)
                },
                {
                    "Bilge",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(new Items.Item(3144, 450f),
                                                                                 EnumItemType.Targeted, EnumItemTargettingType.EnemyHero)
                },
                {
                    "Blade",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(
                        new Items.Item(3153, 450f),
                        EnumItemType.Targeted,
                        EnumItemTargettingType.EnemyHero)
                },
                {
                    "Hydra",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(
                        new Items.Item(3074, 250f),
                        EnumItemType.AoE,
                        EnumItemTargettingType.EnemyObjects)
                },
                {
                    "Randiun",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(
                        new Items.Item(3143, 490f),
                        EnumItemType.AoE,
                        EnumItemTargettingType.EnemyHero)
                }
            };


            Config = MainMenu.AddMenu("Warwick | the Blood Hunter", "Warwick");

            rMenu  = Config.AddSubMenu("R", "R");
            SpellR = new SpellR();

            menuCombo = Config.AddSubMenu("Combo", "Combo");
            menuCombo.Add("Combo.W.Use",
                          new ComboBox("Use W:", 3, "Off", "Just for me", "Just for Allies", "Smart W (Recommend!)"));

            menuHarass = Config.AddSubMenu("Harass", "Harass");
            menuHarass.Add("Harass.Q.Use", new CheckBox("Use Q"));
            menuHarass.Add("Harass.Q.UseT", new KeyBind("Toggle", false, KeyBind.BindTypes.PressToggle, 'T'));
            menuHarass.Add("Harass.Q.UseTEnemyUn", new CheckBox("Don't Use Q Under Turret"));
            menuHarass.Add("Harass.Q.MinMana", new Slider("Min. Mana Per.:", 20, 1));

            menuLane = Config.AddSubMenu("Lane Farm", "Lane Farm");
            menuLane.Add("Lane.Q.Use", new ComboBox("Use Q", 1, "Off", "Last Hit", "Only out of AA Range", "Everytime"));
            menuLane.Add("Lane.Q.MinMana", new Slider("Min. Mana Per.:", 35, 1));
            menuLane.Add("Lane.W.Use", new CheckBox("Use W"));
            menuLane.Add("Lane.W.MinObj", new Slider("Min. Farm Count:", 3, 1, 6));
            menuLane.Add("Lane.W.MinMana", new Slider("Min. Mana Per.:", 35, 1));
            menuLane.Add("Lane.Items.Use", new CheckBox("Use Items"));

            menuJungle = Config.AddSubMenu("Jungle Farm", "Jungle Farm");
            menuJungle.Add("Jungle.Q.Use", new CheckBox("Use Q"));
            menuJungle.Add("Jungle.Q.MinMana", new Slider("Min. Mana Per.:", 20, 1));
            menuJungle.Add("Jungle.W.Use", new CheckBox("Use W"));
            menuJungle.Add("Jungle.W.MinMana", new Slider("Min. Mana Per.:", 20, 1));
            menuJungle.Add("Jungle.Items.Use", new CheckBox("Use Items"));

            menuAuto = Config.AddSubMenu("Auto", "Auto");
            menuAuto.Add("Auto.Q.UseQHp", new CheckBox("Use Auto Q"));
            menuAuto.Add("Auto.Q.UseQHpMinHp", new Slider("Min. Heal:", 70, 1));
            menuAuto.Add("Auto.Q.UseQHpEnemyUn", new CheckBox("Check Enemy Under Turret Position"));
            menuAuto.AddGroupLabel("E Settings");
            menuAuto.Add("Auto.E.Use", new CheckBox("Always Turn On E Spell"));

            menuInterrupt = Config.AddSubMenu("Interruptable Target", "Interruptable Target");
            menuInterrupt.Add("Interrupt.R", new CheckBox("Use R"));

            menuDraw = Config.AddSubMenu("Draw/Notification", "Draw");
            menuDraw.Add("Draw.Disable", new CheckBox("Disable All Drawings", false));
            menuDraw.Add("Draw.E.Show", new CheckBox("Show Blood Scent (E) Marked Enemy"));
            menuDraw.Add("Draw.Q", new CheckBox("Draw Q")); //.SetValue(new Circle(true, Color.Bisque)));
            menuDraw.Add("Draw.W", new CheckBox("Draw W")); //.SetValue(new Circle(true, Color.Coral)));
            menuDraw.Add("Draw.E", new CheckBox("Draw E")); //.SetValue(new Circle(true, Color.Aqua)));
            menuDraw.Add("Draw.R", new CheckBox("Draw R")); //.SetValue(new Circle(true, Color.Chartreuse)));

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate  += Game_OnUpdate;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Drawing.OnEndScene += DrawingOnOnEndScene;
        }
Esempio n. 2
0
        public static void Game_OnGameLoad()
        {
            if (ObjectManager.Player.ChampionName != ChampionName)
            {
                return;
            }

            Q = new Spell(SpellSlot.Q, 400);
            W = new Spell(SpellSlot.W, 1250);
            E = new Spell(SpellSlot.E, 4500);
            R = new Spell(SpellSlot.R, 700);
            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            ItemDb = new Dictionary <string, Tuple <Items.Item, EnumItemType, EnumItemTargettingType> >
            {
                {
                    "Tiamat",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(
                        new Items.Item(3077, 250f),
                        EnumItemType.AoE,
                        EnumItemTargettingType.EnemyObjects)
                },
                {
                    "Bilge",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(new Items.Item(3144, 450f),
                                                                                 EnumItemType.Targeted, EnumItemTargettingType.EnemyHero)
                },
                {
                    "Blade",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(
                        new Items.Item(3153, 450f),
                        EnumItemType.Targeted,
                        EnumItemTargettingType.EnemyHero)
                },
                {
                    "Hydra",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(
                        new Items.Item(3074, 250f),
                        EnumItemType.AoE,
                        EnumItemTargettingType.EnemyObjects)
                },
                {
                    "Randiun",
                    new Tuple <Items.Item, EnumItemType, EnumItemTargettingType>(
                        new Items.Item(3143, 490f),
                        EnumItemType.AoE,
                        EnumItemTargettingType.EnemyHero)
                }
            };


            Config = new Menu("Warwick | the Blood Hunter", "Warwick", true);

            TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
            TargetSelector.AddToMenu(TargetSelectorMenu);
            Config.AddSubMenu(TargetSelectorMenu);

            Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking"));
            Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking"));

            rMenu = new Menu("R", "R");
            {
                SpellR = new SpellR();
                Config.AddSubMenu(rMenu);
            }
            var menuCombo = new Menu("Combo", "Combo");
            {
                menuCombo.AddItem(
                    new MenuItem("Combo.W.Use", "Use W:").SetValue(
                        new StringList(new[] { "Off", "Just for me", "Just for Allies", "Smart W (Recommend!)" }, 3)));

                Config.AddSubMenu(menuCombo);

                PlayerSpells.Initialize();
            }

            var menuHarass = new Menu("Harass", "Harass");
            {
                menuHarass.AddItem(new MenuItem("Harass.Q.Use", "Use Q").SetValue(true));
                menuHarass.AddItem(
                    new MenuItem("Harass.Q.UseT", Tab + "Toggle").SetValue(new KeyBind("T".ToCharArray()[0],
                                                                                       KeyBindType.Toggle)));
                menuHarass.AddItem(new MenuItem("Harass.Q.UseTEnemyUn", Tab + "Don't Use Q Under Turret").SetValue(true));
                menuHarass.AddItem(new MenuItem("Harass.Q.MinMana", Tab + "Min. Mana Per.:").SetValue(new Slider(20, 1)));

                Config.AddSubMenu(menuHarass);
            }

            var menuLane = new Menu("Lane Farm", "Lane Farm");
            {
                menuLane.AddItem(
                    new MenuItem("Lane.Q.Use", "Use Q").SetValue(
                        new StringList(new[] { "Off", "Last Hit", "Only out of AA Range", "Everytime" }, 1)));
                menuLane.AddItem(new MenuItem("Lane.Q.MinMana", Tab + "Min. Mana Per.:").SetValue(new Slider(35, 1)));

                menuLane.AddItem(new MenuItem("Lane.W.Use", "Use W").SetValue(true));
                menuLane.AddItem(new MenuItem("Lane.W.MinObj", Tab + "Min. Farm Count:").SetValue(new Slider(3, 1, 6)));
                menuLane.AddItem(new MenuItem("Lane.W.MinMana", Tab + "Min. Mana Per.:").SetValue(new Slider(35, 1)));
                menuLane.AddItem(new MenuItem("Lane.Items.Use", "Use Items").SetValue(true));
                Config.AddSubMenu(menuLane);
            }

            var menuJungle = new Menu("Jungle Farm", "Jungle Farm");
            {
                menuJungle.AddItem(new MenuItem("Jungle.Q.Use", "Use Q").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.Q.MinMana", Tab + "Min. Mana Per.:").SetValue(new Slider(20, 1)));

                menuJungle.AddItem(new MenuItem("Jungle.W.Use", "Use W").SetValue(true));
                menuJungle.AddItem(new MenuItem("Jungle.W.MinMana", Tab + "Min. Mana Per.:").SetValue(new Slider(20, 1)));
                menuJungle.AddItem(new MenuItem("Jungle.Items.Use", "Use Items").SetValue(true));
                Config.AddSubMenu(menuJungle);
            }

            var menuAuto = new Menu("Auto", "Auto");
            {
                menuAuto.AddItem(new MenuItem("Auto.Q.UseQHp", "Keep-Up My Heal with Q").SetValue(true));
                menuAuto.AddItem(new MenuItem("Auto.Q.UseQHpMinHp", Tab + "Min. Heal:").SetValue(new Slider(70, 1)));
                menuAuto.AddItem(
                    new MenuItem("Auto.Q.UseQHpEnemyUn", Tab + "Check Enemy Under Turret Position").SetValue(true));
                menuAuto.AddItem(new MenuItem("Auto.E.Title", "E Settings"));
                {
                    menuAuto.AddItem(new MenuItem("Auto.E.Use", Tab + "Always Turn On E Spell").SetValue(true));
                }

                Config.AddSubMenu(menuAuto);
            }

            var menuInterrupt = new Menu("Interruptable Target", "Interruptable Target");
            {
                menuInterrupt.AddItem(new MenuItem("Interrupt.R", "Use R").SetValue(true));

                Config.AddSubMenu(menuInterrupt);
            }

            var menuDraw = new Menu("Draw/Notification", "Draw");

            {
                menuDraw.AddItem(new MenuItem("Draw.Disable", "Disable All Drawings").SetValue(false));

                menuDraw.AddItem(new MenuItem("Draw.E.Show", "Show Blood Scent (E) Marked Enemy").SetValue(true));

                if (PlayerSpells.SmiteSlot != SpellSlot.Unknown)
                {
                    menuDraw.AddItem(
                        new MenuItem("PermaShowSmiteEnemy", "Show Smite Enemy Permashow Status").SetValue(true))
                    .ValueChanged += (s, ar) =>
                    {
                        if (ar.GetNewValue <bool>())
                        {
                            Config.Item("PermaShowSmiteEnemy").Permashow(true, "Smite to Enemy");
                        }
                        else
                        {
                            Config.Item("PermaShowSmiteEnemy").Permashow(false);
                        }
                    };
                    Config.Item("Spells.Smite.Enemy")
                    .Permashow(menuDraw.Item("PermaShowSmiteEnemy").GetValue <bool>(), "Smite to Enemy");

                    menuDraw.AddItem(
                        new MenuItem("PermaShowSmiteMonster", "Show Smite Monster Permashow Status").SetValue(true))
                    .ValueChanged += (s, ar) =>
                    {
                        if (ar.GetNewValue <bool>())
                        {
                            Config.Item("PermaShowSmiteMonster").Permashow(true, "Smite to Monster");
                        }
                        else
                        {
                            Config.Item("PermaShowSmiteMonster").Permashow(false);
                        }
                    };
                    Config.Item("Spells.Smite.Monster")
                    .Permashow(menuDraw.Item("PermaShowSmiteMonster").GetValue <bool>(), "Smite to Monster");
                }

                menuDraw.AddItem(new MenuItem("Draw.Q", "Draw Q").SetValue(new Circle(true, Color.Bisque)));
                menuDraw.AddItem(new MenuItem("Draw.W", "Draw W").SetValue(new Circle(true, Color.Coral)));
                menuDraw.AddItem(new MenuItem("Draw.E", "Draw E").SetValue(new Circle(true, Color.Aqua)));
                menuDraw.AddItem(new MenuItem("Draw.E.Mini", "Draw E on Mini-Map").SetValue(new Circle(true, Color.Aqua)));
                menuDraw.AddItem(new MenuItem("Draw.R", "Draw R").SetValue(new Circle(true, Color.Chartreuse)));

                var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Draw Damage After Combo").SetValue(true);
                LeagueSharp.Common.Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
                LeagueSharp.Common.Utility.HpBarDamageIndicator.Enabled      = dmgAfterComboItem.GetValue <bool>();
                dmgAfterComboItem.ValueChanged += delegate(object sender, OnValueChangeEventArgs eventArgs)
                {
                    LeagueSharp.Common.Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
                };
                menuDraw.AddItem(dmgAfterComboItem);

                Config.AddSubMenu(menuDraw);
            }

            Config.AddToMainMenu();

            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate  += Game_OnUpdate;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Drawing.OnEndScene += DrawingOnOnEndScene;
            Chat.Print(ChampionName + " <font color='#ff3232'>the Blood Hunter</font> by Mirin Loaded!");
        }