Exemplo n.º 1
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            if (Player.ChampionName != "Jax")
            {
                return;
            }

            Q = new Spell(SpellSlot.Q, 680f);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E);
            R = new Spell(SpellSlot.R);

            Q.SetTargetted(0.50f, 75f);

            Items = new Items();

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            //Create the menu
            Config = new Menu("xQx | Jax", "Jax", true);

            AssassinManager = new AssassinManager();
            AssassinManager.Load();
            Sprite.Load();

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

            // Combo
            var menuCombo = new Menu("Combo", "Combo");


            menuCombo.AddItem(new MenuItem("ComboUseQMinRange", "Min. Q Range").SetValue(new Slider(250, (int)Q.Range)));
            menuCombo.AddItem(
                new MenuItem("Combo.CastE", "E Setting:").SetValue(
                    new StringList(new[] { "Cast E Before Q Jump", "Cast E After Q Jump" }, 1)));

            menuCombo.AddItem(
                new MenuItem("ComboActive", "Combo!").SetValue(
                    new KeyBind(Config.Item("Orbwalk").GetValue <KeyBind>().Key, KeyBindType.Press))
                .SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow));
            Config.AddSubMenu(menuCombo);
            // Harass
            Config.AddSubMenu(new Menu("Harass", "Harass"));
            Config.SubMenu("Harass").AddItem(new MenuItem("UseQHarass", "Use Q").SetValue(true));
            Config.SubMenu("Harass")
            .AddItem(new MenuItem("UseQHarassDontUnderTurret", "Don't Under Turret Q").SetValue(true));
            Config.SubMenu("Harass").AddItem(new MenuItem("UseWHarass", "Use W").SetValue(true));
            Config.SubMenu("Harass").AddItem(new MenuItem("UseEHarass", "Use E").SetValue(true));
            Config.SubMenu("Harass")
            .AddItem(
                new MenuItem("HarassMode", "Harass Mode: ").SetValue(
                    new StringList(new[] { "Q+W", "Q+E", "Default" })));
            Config.SubMenu("Harass")
            .AddItem(new MenuItem("HarassMana", "Min. Mana Percent: ").SetValue(new Slider(50, 100, 0)));
            Config.SubMenu("Harass")
            .AddItem(
                new MenuItem("HarassActive", "Harass").SetValue(
                    new KeyBind("C".ToCharArray()[0], KeyBindType.Press))
                .SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow));

            // Lane Clear
            Config.AddSubMenu(new Menu("LaneClear", "LaneClear"));
            Config.SubMenu("LaneClear").AddItem(new MenuItem("UseQLaneClear", "Use Q").SetValue(false));
            Config.SubMenu("LaneClear")
            .AddItem(new MenuItem("UseQLaneClearDontUnderTurret", "Don't Under Turret Q").SetValue(true));
            Config.SubMenu("LaneClear").AddItem(new MenuItem("UseWLaneClear", "Use W").SetValue(false));
            Config.SubMenu("LaneClear").AddItem(new MenuItem("UseELaneClear", "Use E").SetValue(false));
            Config.SubMenu("LaneClear")
            .AddItem(new MenuItem("LaneClearMana", "Min. Mana Percent: ").SetValue(new Slider(50, 100, 0)));
            Config.SubMenu("LaneClear")
            .AddItem(
                new MenuItem("LaneClearActive", "LaneClear").SetValue(
                    new KeyBind("V".ToCharArray()[0], KeyBindType.Press))
                .SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow));

            // Jungling Farm
            Config.AddSubMenu(new Menu("JungleFarm", "JungleFarm"));
            Config.SubMenu("JungleFarm").AddItem(new MenuItem("UseQJungleFarm", "Use Q").SetValue(true));
            Config.SubMenu("JungleFarm").AddItem(new MenuItem("UseWJungleFarm", "Use W").SetValue(false));
            Config.SubMenu("JungleFarm").AddItem(new MenuItem("UseEJungleFarm", "Use E").SetValue(false));
            Config.SubMenu("JungleFarm")
            .AddItem(new MenuItem("JungleFarmMana", "Min. Mana Percent: ").SetValue(new Slider(50, 100, 0)));

            Config.SubMenu("JungleFarm")
            .AddItem(
                new MenuItem("JungleFarmActive", "JungleFarm").SetValue(
                    new KeyBind("V".ToCharArray()[0], KeyBindType.Press))
                .SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow));
            ;

            // Misc
            var misc = new Menu("Misc", "Misc");

            {
                misc.AddItem(new MenuItem("InterruptSpells", "Interrupt Spells").SetValue(true));
                misc.AddItem(new MenuItem("Misc.AutoW", "Auto Hit W if possible").SetValue(true))
                .Permashow(true, "Jax| Auto hit W if possible");
                Config.AddSubMenu(misc);
            }

            Extra = new Extra();
            Utils = new Utils();
            PlayerSpells.Initialize();
            // Drawing
            Config.AddSubMenu(new Menu("Drawings", "Drawings"));
            Config.SubMenu("Drawings")
            .AddItem(
                new MenuItem("DrawQRange", "Q range").SetValue(new Circle(true, Color.FromArgb(255, 255, 255, 255))));
            Config.SubMenu("Drawings")
            .AddItem(new MenuItem("DrawQMinRange", "Min. Q range").SetValue(new Circle(true, Color.GreenYellow)));
            Config.SubMenu("Drawings")
            .AddItem(
                new MenuItem("DrawWard", "Ward Range").SetValue(
                    new Circle(false, System.Drawing.Color.FromArgb(255, 255, 255, 255))));

            /* [ Damage After Combo ] */
            var dmgAfterComboItem = new MenuItem("DamageAfterCombo", "Damage After Combo").SetValue(true);

            Config.SubMenu("Drawings").AddItem(dmgAfterComboItem);

            Utility.HpBarDamageIndicator.DamageToUnit = GetComboDamage;
            Utility.HpBarDamageIndicator.Enabled      = dmgAfterComboItem.GetValue <bool>();
            dmgAfterComboItem.ValueChanged           += delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                Utility.HpBarDamageIndicator.Enabled = eventArgs.GetNewValue <bool>();
            };

            Config.AddItem(
                new MenuItem("Ward", "Ward Jump / Flee").SetValue(new KeyBind('A', KeyBindType.Press))
                .SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow));
            Config.AddToMainMenu();

            map = new Map();

            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast     += Obj_AI_Base_OnProcessSpellCast;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Orbwalking.BeforeAttack            += OrbwalkingBeforeAttack;
            Obj_AI_Base.OnBuffRemove           += (sender, eventArgs) =>
            {
                if (sender.IsMe && eventArgs.Buff.Name.ToLower() == "sheen")
                {
                    shenBuffActive = false;
                }

                if (sender.IsMe && eventArgs.Buff.Name.ToLower() == "jaxcounterstrike")
                {
                    eCounterStrike = false;
                }
            };

            Obj_AI_Base.OnBuffAdd += (sender, eventArgs) =>
            {
                if (sender.IsMe && eventArgs.Buff.Name.ToLower() == "sheen")
                {
                    shenBuffActive = true;
                }

                if (sender.IsMe && eventArgs.Buff.Name.ToLower() == "jaxcounterstrike")
                {
                    eCounterStrike = true;
                }
            };
            Notifications.AddNotification(String.Format("{0} Loaded", ChampionName), 4000);
        }
Exemplo n.º 2
0
        public static void Game_OnGameLoad()
        {
            if (Player.ChampionName != "Jax")
            {
                return;
            }

            Q = new Spell(SpellSlot.Q, 680f);
            W = new Spell(SpellSlot.W);
            E = new Spell(SpellSlot.E);
            R = new Spell(SpellSlot.R);

            Q.SetTargetted(0.50f, 75f);

            Items = new Items();

            SpellList.Add(Q);
            SpellList.Add(W);
            SpellList.Add(E);
            SpellList.Add(R);

            //Create the menu
            Config = MainMenu.AddMenu("xQx | Jax", "Jax");

            // Combo
            comboMenu = Config.AddSubMenu("Combo", "Combo");
            comboMenu.Add("ComboUseQMinRange", new Slider("Min. Q Range", 250, 250, (int)Q.Range));
            comboMenu.Add("Combo.CastE", new ComboBox("E Setting:", 1, "Cast E Before Q Jump", "Cast E After Q Jump"));

            // Harass
            harassMenu = Config.AddSubMenu("Harass", "Harass");
            harassMenu.Add("UseQHarass", new CheckBox("Use Q"));
            harassMenu.Add("UseQHarassDontUnderTurret", new CheckBox("Don't Under Turret Q"));
            harassMenu.Add("UseWHarass", new CheckBox("Use W"));
            harassMenu.Add("UseEHarass", new CheckBox("Use E"));
            harassMenu.Add("HarassMode", new ComboBox("Harass Mode: ", 2, "Q+W", "Q+E", "Default"));
            harassMenu.Add("HarassMana", new Slider("Min. Mana Percent: ", 50));

            // Lane Clear
            laneClearMenu = Config.AddSubMenu("LaneClear", "LaneClear");
            laneClearMenu.Add("UseQLaneClear", new CheckBox("Use Q", false));
            laneClearMenu.Add("UseQLaneClearDontUnderTurret", new CheckBox("Don't Under Turret Q"));
            laneClearMenu.Add("UseWLaneClear", new CheckBox("Use W", false));
            laneClearMenu.Add("UseELaneClear", new CheckBox("Use E", false));
            laneClearMenu.Add("LaneClearMana", new Slider("Min. Mana Percent: ", 50));

            // Jungling Farm
            jungleMenu = Config.AddSubMenu("JungleFarm", "JungleFarm");
            jungleMenu.Add("UseQJungleFarm", new CheckBox("Use Q"));
            jungleMenu.Add("UseWJungleFarm", new CheckBox("Use W", false));
            jungleMenu.Add("UseEJungleFarm", new CheckBox("Use E", false));
            jungleMenu.Add("JungleFarmMana", new Slider("Min. Mana Percent: ", 50));

            // Misc
            miscMenu = Config.AddSubMenu("Misc", "Misc");
            miscMenu.Add("InterruptSpells", new CheckBox("Interrupt Spells"));
            miscMenu.Add("Misc.AutoW", new CheckBox("Auto Hit W if possible"));
            miscMenu.Add("Ward", new KeyBind("Ward Jump / Flee", false, KeyBind.BindTypes.HoldActive, 'A'));

            Extra = new Extra();
            Utils = new Utils();
            PlayerSpells.Initialize();

            // Drawing
            drawingMenu = Config.AddSubMenu("Drawings", "Drawings");
            drawingMenu.Add("DrawQRange", new CheckBox("Q range"));
            drawingMenu.Add("DrawQMinRange", new CheckBox("Min. Q range"));
            drawingMenu.Add("DrawWard", new CheckBox("Ward Range"));

            map = new Map();

            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast     += Obj_AI_Base_OnProcessSpellCast;
            Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
            Orbwalker.OnPreAttack  += OrbwalkingBeforeAttack;
            Obj_AI_Base.OnBuffLose += (sender, eventArgs) =>
            {
                if (sender.IsMe && eventArgs.Buff.Name.ToLower() == "sheen")
                {
                    shenBuffActive = false;
                }

                if (sender.IsMe && eventArgs.Buff.Name.ToLower() == "jaxcounterstrike")
                {
                    eCounterStrike = false;
                }
            };

            Obj_AI_Base.OnBuffGain += (sender, eventArgs) =>
            {
                if (sender.IsMe && eventArgs.Buff.Name.ToLower() == "sheen")
                {
                    shenBuffActive = true;
                }

                if (sender.IsMe && eventArgs.Buff.Name.ToLower() == "jaxcounterstrike")
                {
                    eCounterStrike = true;
                }
            };
        }