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; Orbwalker.OnPostAttack += Orbwalking_AfterAttack; 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; } }; }
private static void Main(string[] args) { map = new Map(); CustomEvents.Game.OnGameLoad += Game_OnGameLoad; }
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); SpellList.Add(Q); SpellList.Add(W); SpellList.Add(E); SpellList.Add(R); igniteSlot = Player.GetSpellSlot("SummonerDot"); //Create the menu Config = new Menu("xQx | Jax", "Jax", true); var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); TargetSelector.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); AssassinManager = new AssassinManager(); Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking")); Orbwalker.SetAttack(true); // Combo Config.AddSubMenu(new Menu("Combo", "Combo")); Config.SubMenu("Combo") .AddItem(new MenuItem("ComboUseQMinRange", "Min. Q Range").SetValue(new Slider(250, (int)Q.Range))); Config.SubMenu("Combo") .AddItem( new MenuItem("ComboActive", "Combo!").SetValue(new KeyBind(Config.Item("Orbwalk").GetValue<KeyBind>().Key, KeyBindType.Press)).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow)); // 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)); ; // Extra var misc = new Menu("Misc", "Misc"); Config.AddSubMenu(misc); misc.AddItem(new MenuItem("InterruptSpells", "Interrupt Spells").SetValue(true)); misc.AddItem(new MenuItem("Misc.AutoW", "Auto Hit W if possible").SetValue(true)); // Drawing Config.AddSubMenu(new Menu("Drawings", "Drawings")); Config.SubMenu("Drawings") .AddItem( new MenuItem("DrawQRange", "Q range").SetValue( new Circle(true, System.Drawing.Color.FromArgb(255, 255, 255, 255)))); Config.SubMenu("Drawings") .AddItem( new MenuItem("DrawQMinRange", "Min. Q range").SetValue( new Circle(true, System.Drawing.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; Notifications.AddNotification(String.Format("{0} Loaded", ChampionName), 4000); }