public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.DrMundo.Combo"); combo.AddItem(new MenuItem("SAutoCarry.DrMundo.Combo.UseQ", "Use Q").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("SAutoCarry.DrMundo.Combo.UseQHP").Show(ar.GetNewValue <bool>()); combo.AddItem(new MenuItem("SAutoCarry.DrMundo.Combo.UseQHP", "Use Q Min HP %").SetValue(new Slider(10, 0, 100))).Show(combo.Item("SAutoCarry.DrMundo.Combo.UseQ").GetValue <bool>()); combo.AddItem(new MenuItem("SAutoCarry.DrMundo.Combo.UseW", "Use W").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.DrMundo.Combo.UseE", "Use E").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.DrMundo.Combo.UseR", "Use R Min HP % <").SetValue(new Slider(20, 0, 100))); Menu harass = new Menu("Harass", "SAutoCarry.DrMundo.Harass"); harass.AddItem(new MenuItem("SAutoCarry.DrMundo.Harass.UseQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.DrMundo.Harass.MinHP", "Min HP %").SetValue(new Slider(30, 0, 100))); harass.AddItem(new MenuItem("SAutoCarry.DrMundo.Harass.Toggle", "Toggle Harass").SetValue(new KeyBind('T', KeyBindType.Toggle))); Menu laneclear = new Menu("LaneClear", "SAutoCarry.DrMundo.LaneClear"); laneclear.AddItem(new MenuItem("SAutoCarry.DrMundo.LaneClear.UseQ", "Use Q").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.DrMundo.LaneClear.UseW", "Use W").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("SAutoCarry.DrMundo.LaneClear.UseWMin").Show(ar.GetNewValue <bool>()); laneclear.AddItem(new MenuItem("SAutoCarry.DrMundo.LaneClear.UseWMin", "Use W Min. Minion").SetValue(new Slider(3, 0, 12))).Show(laneclear.Item("SAutoCarry.DrMundo.LaneClear.UseW").GetValue <bool>()); laneclear.AddItem(new MenuItem("SAutoCarry.DrMundo.LaneClear.UseE", "Use E").SetValue(false)); Menu misc = new Menu("Misc", "SAutoCarry.DrMundo.Misc"); misc.AddItem(new MenuItem("SAutoCarry.DrMundo.Misc.KillStealQ", "KS With Q").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.DrMundo.Misc.AutoR", "Enable Auto R").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("SAutoCarry.DrMundo.Misc.AutoRPercent").Show(ar.GetNewValue <bool>()); misc.AddItem(new MenuItem("SAutoCarry.DrMundo.Misc.AutoRPercent", "Auto R When HP % <").SetValue(new Slider(20, 0, 100))).Show(misc.Item("SAutoCarry.DrMundo.Misc.AutoR").GetValue <bool>()); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(laneclear); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
public void Combo() { //R if (ConfigMenu.Item("CUSER").GetValue <bool>()) { UltMethods[ConfigMenu.Item("CUSERMETHOD").GetValue <StringList>().SelectedIndex](); } if (Spells[Q].IsReady() && ConfigMenu.Item("CUSEQ").GetValue <bool>()) { var t = TargetSelector.GetTarget(Spells[Q].Range / 2f, LeagueSharp.Common.TargetSelector.DamageType.Magical); if (t != null) { Helpers.BallMgr.Post(Helpers.BallMgr.Command.Attack, t); } } if (Spells[W].IsReady() && ConfigMenu.Item("CUSEW").GetValue <bool>()) { if (CountEnemiesInRangePredicted(Spells[W].Range, 50, 0.25f) > 0) { Helpers.BallMgr.Post(Helpers.BallMgr.Command.Dissonance, null); } } if (Spells[E].IsReady() && !Spells[W].IsReady() && ConfigMenu.Item("CUSEE").GetValue <bool>()) { if (Helpers.BallMgr.CheckHeroCollision(ObjectManager.Player.ServerPosition)) { Helpers.BallMgr.Post(Helpers.BallMgr.Command.Protect, ObjectManager.Player); } } }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.TwistedFate.Combo"); combo.AddItem(new MenuItem("SAutoCarry.TwistedFate.Combo.UseQImmobile", "Auto Q Immobile").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.TwistedFate.Combo.UseQDashing", "Auto Q Immobile").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.TwistedFate.Combo.UseW", "Use W").SetValue(true)); Menu harass = new Menu("Harass", "SAutoCarry.TwistedFate.Harass"); harass.AddItem(new MenuItem("SAutoCarry.TwistedFate.Harass.UseQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.TwistedFate.Harass.UseW", "Use W (Blue Always)").SetValue(true)); Menu misc = new Menu("Misc", "SAutoCarry.TwistedFate.Misc"); misc.AddItem(new MenuItem("SAutoCarry.TwistedFate.Misc.SelectGold", "Select Gold Card").SetValue(new KeyBind('W', KeyBindType.Press))); misc.AddItem(new MenuItem("SAutoCarry.TwistedFate.Misc.SelectBlue", "Select Blue Card").SetValue(new KeyBind('E', KeyBindType.Press))); misc.AddItem(new MenuItem("SAutoCarry.TwistedFate.Misc.SelectRed", "Select Red Card").SetValue(new KeyBind('T', KeyBindType.Press))); misc.AddItem(new MenuItem("SAutoCarry.TwistedFate.Misc.SelectGoldAfterR", "Select Gold Card After R").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.TwistedFate.Misc.AntiGapCloser", "Anti Gap Closer").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.TwistedFate.Misc.Interrupter", "Interrupter").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.TwistedFate.Misc.DrawR", "Draw R Range").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.TwistedFate.Misc.DrawRMinimap", "Draw R Range On Minimap").SetValue(true)); DamageIndicator.Initialize((t) => (float)CalculateComboDamage(t), misc); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.Jhin.Combo"); combo.AddItem(new MenuItem("SAutoCarry.Jhin.Combo.UseQ", "UseQ").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Jhin.Combo.UseW", "Use W").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("SAutoCarry.Jhin.Combo.UseWMarked").Show(ar.GetNewValue <bool>()); combo.AddItem(new MenuItem("SAutoCarry.Jhin.Combo.UseWMarked", "Use W Only If Target Is Marked").SetValue(true)).Show(combo.Item("SAutoCarry.Jhin.Combo.UseW").GetValue <bool>()); combo.AddItem(new MenuItem("SAutoCarry.Jhin.Combo.UseEImmobile", "Use E Immobile Targets").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Jhin.Combo.UseEDashing", "Use E Dashing Targets").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Jhin.Combo.UseR", "Use R Shoots If Ult Activated").SetValue(true)); Menu harass = new Menu("Harass", "SAutoCarry.Jhin.Harass"); harass.AddItem(new MenuItem("SAutoCarry.Jhin.Harass.UseQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Jhin.Harass.UseW", "Use W").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Jhin.Harass.Toggle", "Toggle Harass").SetValue(new KeyBind('T', KeyBindType.Toggle))); Menu misc = new Menu("Misc", "SAutoCarry.Jhin.Misc"); misc.AddItem(new MenuItem("SAutoCarry.Jhin.Misc.AdjustW", "Adjust W Range").SetValue(new Slider(1000, 0, 2500))).ValueChanged += (s, ar) => Spells[W].Range = ar.GetNewValue <Slider>().Value; misc.AddItem(new MenuItem("SAutoCarry.Jhin.Misc.AdjustR", "Adjust R Range").SetValue(new Slider(1000, 0, 3500))).ValueChanged += (s, ar) => Spells[R].Range = ar.GetNewValue <Slider>().Value; misc.AddItem(new MenuItem("SAutoCarry.Jhin.Misc.KillStealRW", "KillSteal").SetValue(false)); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.Vayne.Combo"); combo.AddItem(new MenuItem("SAutoCarry.Vayne.Combo.UseQ", "Use Q").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Vayne.Combo.UseE", "Use E").SetValue(true)); Menu harass = new Menu("Harass", "SAutoCarry.Vayne.Harass"); harass.AddItem(new MenuItem("SAutoCarry.Vayne.Harass.UseQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Vayne.Harass.UseE", "Use E").SetValue(true)).ValueChanged += (s, ar) => harass.Item("SAutoCarry.Vayne.Harass.UseE3RDW").Show(ar.GetNewValue <bool>()); harass.AddItem(new MenuItem("SAutoCarry.Vayne.Harass.UseE3RDW", "Use E for 3rd W stack").SetValue(false)).Show(harass.Item("SAutoCarry.Vayne.Harass.UseE").GetValue <bool>()); Menu misc = new Menu("Misc", "SAutoCarry.Vayne.Misc"); misc.AddItem(new MenuItem("SAutoCarry.Vayne.Misc.AAIndicator", "Draw AA Indicator").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.Vayne.Misc.DontAAInvisible", "Dont AA While Stealth").SetValue(true)).ValueChanged += (s, ar) => misc.Item("SAutoCarry.Vayne.Misc.DontAAInvisibleCount").Show(ar.GetNewValue <bool>()); misc.AddItem(new MenuItem("SAutoCarry.Vayne.Misc.DontAAInvisibleCount", "Dont AA While Stealth if around enemy count >").SetValue(new Slider(1, 0, 5))).Show(misc.Item("SAutoCarry.Vayne.Misc.DontAAInvisible").GetValue <bool>()); misc.AddItem(new MenuItem("SAutoCarry.Vayne.Misc.LaneClearQ", "Use Q LaneClear").SetValue(true)); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); Helpers.Tumble.Initialize(this); Helpers.Condemn.Initialize(this); }
public void LaneClear() { if (ObjectManager.Player.ManaPercent < ConfigMenu.Item("LMANA").GetValue <Slider>().Value || Utils.TickCount - m_lastLaneClearTick < 250 || !ConfigMenu.Item("TOGGLESPELL").GetValue <KeyBind>().Active) { return; } m_lastLaneClearTick = Utils.TickCount; if (Spells[Q].IsReady() && ConfigMenu.Item("LUSEQ").GetValue <bool>()) { var farm = MinionManager.GetBestCircularFarmLocation(MinionManager.GetMinions(Spells[Q].Range / 2f, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.None).Select(p => p.ServerPosition.To2D()).ToList(), Spells[Q].Width, Spells[Q].Range); if (farm.MinionsHit > 0 && Helpers.BallMgr.IsBallReady) { Spells[Q].Cast(farm.Position, true); } } if (Spells[W].IsReady() && ConfigMenu.Item("LUSEW").GetValue <bool>()) { if (ObjectManager.Get <Obj_AI_Minion>().Count(p => (p.IsEnemy || p.IsJungleMinion()) && p.ServerPosition.Distance(Helpers.BallMgr.Position) <= Spells[W].Range) >= ConfigMenu.Item("LMINW").GetValue <Slider>().Value) { Spells[W].Cast(ObjectManager.Player.ServerPosition, true); } } if (Spells[E].IsReady() && ConfigMenu.Item("LUSEE").GetValue <bool>()) { if (MinionManager.GetMinions(ObjectManager.Player.AttackRange, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth).Any(p => p.GetJunglePriority() == 1)) { Spells[E].CastOnUnit(ObjectManager.Player); } } }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.Corki.Combo"); combo.AddItem(new MenuItem("SAutoCarry.Corki.Combo.UseQ", "Use Q").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Corki.Combo.UseE", "Use E").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Corki.Combo.UseR", "Use R").SetValue(true)); Menu harass = new Menu("Harass", "SAutoCarry.Corki.Harass"); harass.AddItem(new MenuItem("SAutoCarry.Corki.Harass.UseQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Corki.Harass.UseE", "Use E").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Corki.Harass.UseR", "Use R").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("SAutoCarry.Corki.Harass.RStacks").Show(ar.GetNewValue <bool>()); harass.AddItem(new MenuItem("SAutoCarry.Corki.Harass.RStacks", "Keep R Stacks").SetValue(new Slider(3, 0, 7))).Show(harass.Item("SAutoCarry.Corki.Harass.UseR").GetValue <bool>()); harass.AddItem(new MenuItem("SAutoCarry.Corki.Harass.MinMana", "Min Mana Percent").SetValue(new Slider(30, 100, 0))); Menu laneclear = new Menu("LaneClear/JungleClear", "SAutoCarry.Corki.LaneClear"); laneclear.AddItem(new MenuItem("SAutoCarry.Corki.LaneClear.UseQ", "Use Q").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Corki.LaneClear.UseR", "Use R").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Corki.LaneClear.MinMana", "Min Mana Percent").SetValue(new Slider(50, 100, 0))); Menu misc = new Menu("Misc", "SAutoCarry.Corki.Misc"); misc.AddItem(new MenuItem("SAutoCarry.Corki.Misc.RKillSteal", "KS With R").SetValue(true)); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(laneclear); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.Pantheon.Combo"); combo.AddItem(new MenuItem("SAutoCarry.Pantheon.Combo.UseQ", "Use Q").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Pantheon.Combo.UseW", "Use W").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Pantheon.Combo.UseE", "Use E").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Pantheon.Combo.UseTiamat", "Use Tiamat/Hydra").SetValue(true)); Menu harass = new Menu("Harass", "SAutoCarry.Pantheon.Harass"); harass.AddItem(new MenuItem("SAutoCarry.Pantheon.Harass.UseQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Pantheon.Harass.Toggle", "Toggle Harass").SetValue(new KeyBind('T', KeyBindType.Toggle))); harass.AddItem(new MenuItem("SAutoCarry.Pantheon.Harass.MinMana", "Min. Mana %").SetValue(new Slider(40, 0, 100))); Menu misc = new Menu("Misc", "SAutoCarry.Pantheon.Misc"); misc.AddItem(new MenuItem("SAutoCarry.Pantheon.Misc.LaneClearQ", "Use Q On LaneClear").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.Pantheon.Misc.LaneClear.MinMana", "Min Mana Percent").SetValue(new Slider(50, 100, 0))); misc.AddItem(new MenuItem("SAutoCarry.Pantheon.Misc.InterruptW", "Interrupt Spells With W").SetValue(true)); DamageIndicator.Initialize((t) => (float)CalculateComboDamage(t), misc); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.Rengar.Combo"); combo.AddItem(new MenuItem("SAutoCarry.Rengar.Combo.UseQ", "Use Q").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Rengar.Combo.UseW", "Use W").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Rengar.Combo.UseE", "Use E").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Rengar.Combo.OneShot", "Active One Shot Combo").SetValue(new KeyBind('T', KeyBindType.Toggle))); Menu laneclear = new Menu("LaneClear/JungleClear", "SAutoCarry.Rengar.LaneClear"); laneclear.AddItem(new MenuItem("SAutoCarry.Rengar.LaneClear.UseQ", "Use Q").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Rengar.LaneClear.UseW", "Use W").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Rengar.LaneClear.UseE", "Use E").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Rengar.LaneClear.SaveFerocity", "Save Ferocity").SetValue(true)); Menu misc = new Menu("Misc", "SAutoCarry.Rengar.Misc"); misc.AddItem(new MenuItem("SAutoCarry.Rengar.Misc.AutoHeal", "Auto Heal %").SetValue(new Slider(20, 0, 100))); misc.AddItem(new MenuItem("SAutoCarry.Rengar.Misc.DrawComboMode", "Draw Combo Mode").SetValue(true)); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(laneclear); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
private void SettingOnClick(object sender, RoutedEventArgs e) { ConfigMenu config = new ConfigMenu(ViewModel.AddMenu); config.WindowStartupLocation = WindowStartupLocation.CenterOwner; config.Show(); }
protected override void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser) { if (!gapcloser.Sender.IsEnemy) { return; } if (Spells[W].IsReady() && gapcloser.End.Distance(ObjectManager.Player.ServerPosition) <= Spells[W].Range && ConfigMenu.Item("MANTIGAPW").GetValue <bool>()) { LeagueSharp.Common.Utility.DelayAction.Add(100 + Game.Ping, () => Spells[W].Cast()); } if (ConfigMenu.Item("MANTIGAPQ").GetValue <bool>() && Animation.QStacks == 2) { if (gapcloser.Sender.Spellbook.GetSpell(gapcloser.Slot).SData.MissileSpeed != 0) { LeagueSharp.Common.Utility.DelayAction.Add((int)(gapcloser.End.Distance(gapcloser.Start) / gapcloser.Sender.Spellbook.GetSpell(gapcloser.Slot).SData.MissileSpeed * 1000f) - Game.Ping, () => { if (Items.GetWardSlot() != null) { Items.UseItem((int)Items.GetWardSlot().Id, ObjectManager.Player.ServerPosition + (gapcloser.End - gapcloser.Start).Normalized() * 40); } Spells[Q].Cast(ObjectManager.Player.ServerPosition); }); } } }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.Lucian.Combo"); combo.AddItem(new MenuItem("SAutoCarry.Lucian.Combo.UseQ", "Use Q").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Lucian.Combo.UseQEx", "Use Extended Q").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Lucian.Combo.UseW", "Use W").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Lucian.Combo.UseE", "Use E").SetValue(true)).ValueChanged += (s, ar) => combo.Item("SAutoCarry.Lucian.Combo.EMode").Show(ar.GetNewValue <bool>()); combo.AddItem(new MenuItem("SAutoCarry.Lucian.Combo.EMode", "E Mode").SetValue(new StringList(new[] { "Auto Pos", "Cursor Pos" }))).Show(combo.Item("SAutoCarry.Lucian.Combo.UseE").GetValue <bool>()); Menu harass = new Menu("Harass", "SAutoCarry.Lucian.Harass"); harass.AddItem(new MenuItem("SAutoCarry.Lucian.Harass.UseQEx", "Use Extended Q").SetValue(true)); Menu misc = new Menu("Misc", "SAutoCarry.Lucian.Misc"); misc.AddItem(new MenuItem("SAutoCarry.Lucian.Misc.CheckPassive", "Check Passive").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.Lucian.Misc.LockR", "Lock R Selected Target").SetValue(new KeyBind('T', KeyBindType.Press))); misc.AddItem(new MenuItem("SAutoCarry.Lucian.Misc.AAInd", "Draw AA Indicator").SetValue(true)); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
public bool CheckR1(Obj_AI_Hero t) { if (!ObjectManager.Player.HasBuff("RivenFengShuiEngine") && !ConfigMenu.Item("CDISABLER").GetValue <KeyBind>().Active&& Spells[R].IsReady() && t.Distance(ObjectManager.Player.ServerPosition) < 500 && Orbwalker.ActiveMode == SCommon.Orbwalking.Orbwalker.Mode.Combo) { if (ObjectManager.Player.GetSpellDamage(t, SpellSlot.Q) * 2 + ObjectManager.Player.GetSpellDamage(t, SpellSlot.W) + CalculateAADamage(t, 2) >= t.Health && ObjectManager.Player.CountEnemiesInRange(1000) == 1) { return(false); } if (ObjectManager.Player.ServerPosition.CountEnemiesInRange(500) > 1) { return(true); } switch (ConfigMenu.Item("CR1MODE").GetValue <StringList>().SelectedIndex) { case 1: if (!(t.Health - CalculateComboDamage(t) - CalculateDamageR2(t) <= 0)) { return(false); } break; case 2: if (!(t.Health - CalculateComboDamage(t) < 1000 && t.Health >= 1000)) { return(false); } break; } return(true); } return(false); }
public bool CheckR2(Obj_AI_Hero t) { if (ObjectManager.Player.HasBuff("RivenFengShuiEngine") && !ConfigMenu.Item("CDISABLER").GetValue <KeyBind>().Active&& Spells[R].IsReady() && t.Distance(ObjectManager.Player.ServerPosition) < 900 && Orbwalker.ActiveMode == SCommon.Orbwalking.Orbwalker.Mode.Combo) { switch (ConfigMenu.Item("CR2MODE").GetValue <StringList>().SelectedIndex) { case 1: if (t.Health - CalculateDamageR2(t) > 0 || t.Distance(ObjectManager.Player.ServerPosition) > 650f) { return(false); } break; case 2: if (t.Distance(ObjectManager.Player.ServerPosition) < 600) { return(false); } break; case 3: if ((t.HealthPercent > 25 && t.Health - CalculateDamageR2(t) - CalculateComboDamage(t) - CalculateAADamage(t, 2) > 0) || t.Distance(ObjectManager.Player.ServerPosition) > 650f) { return(false); } break; } return(true); } return(false); }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.Aatrox.Combo"); combo.AddItem(new MenuItem("SAutoCarry.Aatrox.Combo.UseQ", "Use Q").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Aatrox.Combo.UseW", "Use W").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Aatrox.Combo.UseE", "Use E").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Aatrox.Combo.UseR", "Use R").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Aatrox.Combo.UseTiamat", "Use Tiamat/Hydra").SetValue(true)); Menu harass = new Menu("Harass", "SAutoCarry.Aatrox.Harass"); harass.AddItem(new MenuItem("SAutoCarry.Aatrox.Harass.UseQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Aatrox.Harass.UseW", "Use W").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Aatrox.Harass.UseE", "Use E").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Aatrox.Harass.MinMana", "Min Mana Percent").SetValue(new Slider(30, 100, 0))); Menu laneclear = new Menu("LaneClear/JungleClear", "SAutoCarry.Aatrox.LaneClear"); laneclear.AddItem(new MenuItem("SAutoCarry.Aatrox.LaneClear.UseQ", "Use Q").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Aatrox.LaneClear.UseW", "Use W").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Aatrox.LaneClear.MinMana", "Min Mana Percent").SetValue(new Slider(50, 100, 0))); Menu misc = new Menu("Misc", "SAutoCarry.Aatrox.Misc"); misc.AddItem(new MenuItem("SAutoCarry.Aatrox.Misc.AutoQHP", "Auto Harass Q HP").SetValue(new Slider(50, 100, 0))); misc.AddItem(new MenuItem("SAutoCarry.Aatrox.Misc.RKillSteal", "KS With R").SetValue(true)); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(laneclear); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
public void LaneClear() { var minion = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, 400, MinionTypes.All, MinionTeam.NotAlly, MinionOrderTypes.MaxHealth).FirstOrDefault(); if (minion != null) { if (ConfigMenu.Item("LUSEQ").GetValue <bool>() && Spells[Q].IsReady()) { Animation.SetAttack(true); if (!IsDoingFastQ && !SCommon.Orbwalking.Utility.InAARange(minion)) { Spells[Q].Cast(minion.ServerPosition); } IsDoingFastQ = true; } if (ConfigMenu.Item("LUSEW").GetValue <bool>() && Spells[W].IsReady() && (ObjectManager.Get <Obj_AI_Minion>().Count(p => MinionManager.IsMinion(p) && p.IsValidTarget(Spells[W].Range)) >= ConfigMenu.Item("LMINW").GetValue <Slider>().Value || minion.IsJungleMinion())) { if (ConfigMenu.Item("LUSETIAMAT").GetValue <bool>()) { CastCrescent(); } Spells[W].Cast(); } } }
public void BeforeOrbwalk() { bool autoQ = ConfigMenu.Item("SAutoCarry.Veigar.Misc.AutoQLastHit").GetValue <KeyBind>().Active; bool autoW = ConfigMenu.Item("SAutoCarry.Veigar.Misc.AutoWImmobile").GetValue <bool>(); bool autoR = ConfigMenu.Item("SAutoCarry.Veigar.AutoR.Enabled").GetValue <bool>(); foreach (var enemy in HeroManager.Enemies) { if (enemy.IsValidTarget(Spells[W].Range - 150) && enemy.IsImmobilized() && autoW) { Spells[W].Cast(enemy.ServerPosition); } if (enemy.IsValidTarget(Spells[R].Range) && autoR && !ConfigMenu.Item("SAutoCarry.Veigar.AutoR.DontUlt" + enemy.ChampionName).GetValue <bool>()) { if (CalculateDamageR(enemy) >= enemy.Health) { Spells[R].CastOnUnit(enemy); } } } if (autoQ && Orbwalker.ActiveMode != SCommon.Orbwalking.Orbwalker.Mode.Combo) { StackQ(); } }
public void Harass() { if (ObjectManager.Player.ManaPercent < ConfigMenu.Item("HMANA").GetValue <Slider>().Value) { return; } if (Spells[Q].IsReady() && ConfigMenu.Item("HUSEQ").GetValue <bool>()) { var t = TargetSelector.GetTarget(Spells[Q].Range / 2f, LeagueSharp.Common.TargetSelector.DamageType.Magical); if (t != null) { Helpers.BallMgr.Post(Helpers.BallMgr.Command.Attack, t); } } if (Spells[W].IsReady() && ConfigMenu.Item("HUSEW").GetValue <bool>()) { if (CountEnemiesInRangePredicted(Spells[W].Range, 50, 0.25f) > 0) { Helpers.BallMgr.Post(Helpers.BallMgr.Command.Dissonance, null); } } if (Spells[E].IsReady() && !Spells[W].IsReady() && ConfigMenu.Item("HUSEE").GetValue <bool>()) { if (Helpers.BallMgr.CheckHeroCollision(ObjectManager.Player.ServerPosition)) { Helpers.BallMgr.Post(Helpers.BallMgr.Command.Protect, ObjectManager.Player); } } }
private void LaneClearMenuSwitch(int tag) { ConfigMenu.SubMenu("SAutoCarry.Jax.LaneClear").Items.ForEach(p => { if (p.Tag != 2) { p.Show(p.Tag == tag); } }); }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.Blitzcrank.Combo"); combo.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Combo.UseQ", "Use Q").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Combo.UseW", "Use W").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Combo.UseE", "Use E").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Combo.UseR", "Use R").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("SAutoCarry.Blitzcrank.Combo.UseRHit").Show(ar.GetNewValue <bool>()); combo.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Combo.UseRHit", "Use R When Enemy Count >= ").SetValue(new Slider(2, 1, 5))).Show(combo.Item("SAutoCarry.Blitzcrank.Combo.UseR").GetValue <bool>()); // Menu nograb = new Menu("Grab Filter", "SAutoCarry.Blitzcrank.Combo.Grabfilter"); foreach (AIHeroClient enemy in HeroManager.Enemies) { nograb.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Combo.Grabfilter.DontGrab" + enemy.ChampionName, string.Format("Dont Grab {0}", enemy.ChampionName)).SetValue(false)); } // combo.AddSubMenu(nograb); Menu harass = new Menu("Harass", "SAutoCarry.Blitzcrank.Harass"); harass.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Harass.UseQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Harass.UseE", "Use E").SetValue(true)); Menu laneclear = new Menu("LaneClear/JungleClear", "SAutoCarry.Blitzcrank.LaneClear"); laneclear.AddItem(new MenuItem("SAutoCarry.Blitzcrank.LaneClear.UseR", "Use R").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Blitzcrank.LaneClear.MinMana", "Min Mana Percent").SetValue(new Slider(50, 100, 0))); Menu misc = new Menu("Misc", "SAutoCarry.Blitzcrank.Misc"); misc.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Misc.InterruptQ", "Interrupt With Q").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Misc.InterruptR", "Interrupt With R").SetValue(true)); // Menu autograb = new Menu("Auto Grab (Q)", "SAutoCarry.Blitzcrank.Misc.AutoGrab"); foreach (AIHeroClient enemy in HeroManager.Enemies) { autograb.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Misc.AutoGrab.DontGrab" + enemy.ChampionName, string.Format("Dont Grab {0}", enemy.ChampionName)).SetValue(false)); } autograb.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Misc.AutoGrab.Immobile", "Auto Grab Immobile Target").SetValue(true)); autograb.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Misc.AutoGrab.Range", "Max. Grab Range").SetValue(new Slider(800, 1, 925))); autograb.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Misc.AutoGrab.MinHp", "Min. HP Percent").SetValue(new Slider(40, 1, 100))); autograb.AddItem(new MenuItem("SAutoCarry.Blitzcrank.Misc.AutoGrab.Enabled", "Enabled").SetValue(new KeyBind('T', KeyBindType.Toggle))); // misc.AddSubMenu(autograb); DamageIndicator.Initialize((t) => (float)CalculateComboDamage(t), misc); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(laneclear); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
public void Combo() { var t = Target.Get(600, true); if (t != null) { ComboInstance.MethodsOnUpdate[ConfigMenu.Item(String.Format("CMETHOD{0}", t.ChampionName)).GetValue <StringList>().SelectedIndex](t); } }
protected override void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser) { if (ConfigMenu.Item("SAutoCarry.Veigar.Misc.AntiGapcloseE").GetValue <bool>()) { if (gapcloser.End.Distance(ObjectManager.Player.ServerPosition) < 350) { Spells[E].Cast(ObjectManager.Player.ServerPosition); } } }
private void Animation_OnAnimationCastable(string animname) { if (Orbwalker.ActiveMode == SCommon.Orbwalking.Orbwalker.Mode.Combo || Orbwalker.ActiveMode == SCommon.Orbwalking.Orbwalker.Mode.Mixed || ConfigMenu.Item("CSHYKEY").GetValue <KeyBind>().Active || ConfigMenu.Item("CFLASHKEY").GetValue <KeyBind>().Active) { var t = Target.Get(1000); if (t != null) { ComboInstance.MethodsOnAnimation[ConfigMenu.Item(String.Format("CMETHOD{0}", t.ChampionName)).GetValue <StringList>().SelectedIndex](t, animname); } } }
public void Flee() { if (Spells[Q].IsReady() && Animation.QStacks != 2) { Spells[Q].Cast(Game.CursorPos); } if (ConfigMenu.Item("MFLEEWJ").GetValue <bool>()) { if (Spells[Q].IsReady()) { var curSpot = WallJump.GetSpot(ObjectManager.Player.ServerPosition); if (curSpot.Start != Vector3.Zero && Animation.QStacks == 2) { if (Spells[E].IsReady()) { Spells[E].Cast(curSpot.End); } else if (Items.GetWardSlot() != null) { Items.UseItem((int)Items.GetWardSlot().Id, curSpot.End); } Spells[Q].Cast(curSpot.End); return; } var spot = WallJump.GetNearest(Game.CursorPos); if (spot.Start != Vector3.Zero) { ObjectManager.Player.IssueOrder(GameObjectOrder.MoveTo, spot.Start); return; } else { Spells[E].Cast(Game.CursorPos); } } } else { if (Spells[Q].IsReady() && Animation.QStacks == 2) { Spells[Q].Cast(Game.CursorPos); } if (Spells[E].IsReady()) { Spells[E].Cast(Game.CursorPos); } } ObjectManager.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos); }
/// <summary>Raised after the game is launched, right before the first update tick. This happens once per game session (unrelated to loading saves). All mods are loaded and initialised at this point, so this is a good time to set up mod integrations.</summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event arguments.</param> private void OnGameLaunched(object sender, GameLaunchedEventArgs e) { settings = new Settings(Helper); configMenu = new ConfigMenu(settings); drawingManager = new LabelDrawingManager(settings); detector = new Detector(settings); detector.AddDetector(DetectorType.NPC) .AddDetector(DetectorType.Object) .AddDetector(DetectorType.FarmAnimal) .AddDetector(DetectorType.WaterEntity) .AddDetector(DetectorType.Crop); }
public static void CreateConfigMenu() { ConfigMenu = MainMenu.AddMenu("SAutoCarry - Azir", "Azir"); ConfigMenu.AddLabel("This is a very complicated addon that conflicts with the target selector of EB."); ConfigMenu.AddLabel("1. Just ignore EB's Target Selector."); comboMenu = ConfigMenu.AddSubMenu("Combo", "SAutoCarry.Azir.Combo"); comboMenu.Add("SAutoCarry.Azir.Combo.UseQ", new CheckBox("Use Q")); comboMenu.Add("SAutoCarry.Azir.Combo.UseQOnlyOutOfAA", new CheckBox("Use Q Only When Enemy out of range")); comboMenu.Add("SAutoCarry.Azir.Combo.UseQAlwaysMaxRange", new CheckBox("Always Cast Q To Max Range", false)); comboMenu.Add("SAutoCarry.Azir.Combo.UseQWhenNoWAmmo", new CheckBox("Use Q When Out of W Ammo", false)); comboMenu.Add("SAutoCarry.Azir.Combo.UseW", new CheckBox("Use W")); comboMenu.Add("SAutoCarry.Azir.Combo.UseE", new CheckBox("Use E If target is killable")); comboMenu.Add("SAutoCarry.Azir.Combo.UseR", new CheckBox("Use R")); comboMenu.Add("SAutoCarry.Azir.Combo.RMinHit", new Slider("Min R Hit", 1, 1, 5)); comboMenu.Add("SAutoCarry.Azir.Combo.RMinHP", new Slider("Use R whenever my health < ", 20, 0, 100)); harassMenu = ConfigMenu.AddSubMenu("Harass", "SAutoCarry.Azir.Harass"); harassMenu.Add("SAutoCarry.Azir.Harass.UseQ", new CheckBox("Use Q")); harassMenu.Add("SAutoCarry.Azir.Harass.UseW", new CheckBox("Use W")); harassMenu.Add("SAutoCarry.Azir.Harass.MaxSoldier", new Slider("Max Soldier Count", 1, 1, 3)); harassMenu.Add("SAutoCarry.Azir.Harass.ManaPercent", new Slider("Min. Mana Percent", 40, 0, 100)); harassMenu.Add("SAutoCarry.Azir.Harass.Toggle", new KeyBind("Toggle Harass", false, KeyBind.BindTypes.PressToggle, 'J')); laneClearMenu = ConfigMenu.AddSubMenu("LaneClear", "SAutoCarry.Azir.LaneClear"); laneClearMenu.Add("SAutoCarry.Azir.LaneClear.UseQ", new CheckBox("Use Q")); laneClearMenu.Add("SAutoCarry.Azir.LaneClear.MinQMinion", new Slider("Q Min. Minions", 3, 1, 5)); laneClearMenu.Add("SAutoCarry.Azir.LaneClear.UseW", new CheckBox("Use W")); laneClearMenu.Add("SAutoCarry.Azir.LaneClear.Toggle", new KeyBind("Toggle Spellfarm", false, KeyBind.BindTypes.PressToggle, 'L')); laneClearMenu.Add("SAutoCarry.Azir.LaneClear.ManaPercent", new Slider("Min. Mana Percent", 40, 0, 100)); miscMenu = ConfigMenu.AddSubMenu("Misc", "SAutoCarry.Azir.Misc"); miscMenu.Add("SAutoCarry.Azir.Misc.Jump", new KeyBind("Jump To Cursor (Always Jumps Max Range)", false, KeyBind.BindTypes.HoldActive, 'G')); miscMenu.Add("SAutoCarry.Azir.Misc.JumpEQ", new KeyBind("Jump To Cursor (Jumps with juke)", false, KeyBind.BindTypes.HoldActive, 'A')); miscMenu.Add("SAutoCarry.Azir.Misc.Insec", new KeyBind("Insec Selected Target", false, KeyBind.BindTypes.HoldActive, 'T')); miscMenu.Add("SAutoCarry.Azir.Misc.WQKillSteal", new CheckBox("Use W->Q to KillSteal")); miscMenu.Add("SAutoCarry.Azir.Misc.BlockR", new CheckBox("Block R if wont hit anyone")); antiGapMenu = ConfigMenu.AddSubMenu("AntiGapCloser (R)", "SAutoCarry.Azir.Misc.AntiGapCloser"); foreach (var enemy in HeroManager.Enemies) { if (AntiGapcloser.Spells.Any(p => p.ChampionName == enemy.ChampionName)) { var spells = AntiGapcloser.Spells.Where(p => p.ChampionName == enemy.ChampionName); foreach (var gapcloser in spells) { antiGapMenu.Add("SAutoCarry.Azir.Misc.AntiGapCloser." + gapcloser.SpellName, new CheckBox(String.Format("{0} ({1})", gapcloser.ChampionName, gapcloser.Slot), false)); } } } antiGapMenu.Add("SAutoCarry.Azir.Misc.AntiGapCloser.Enable", new CheckBox("Enabled")); }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "Combo"); combo.AddItem(new MenuItem("CUSEQ", "Use Q").SetValue(true)); combo.AddItem(new MenuItem("CUSEW", "Use W").SetValue(true)); combo.AddItem(new MenuItem("CUSEE", "Use E For Damage Enemy").SetValue(true)); // Menu ult = new Menu("R Settings", "rsetting"); ult.AddItem(new MenuItem("CUSER", "Use R").SetValue(true)); ult.AddItem(new MenuItem("CUSERMETHOD", "R Method").SetValue <StringList>(new StringList(new string[] { "Only If Will Hit >= X Method", "If Will Hit Toggle Selected", "Smart R" }, 2))).ValueChanged += (s, ar) => ult.Item("CUSERHIT").Show(ar.GetNewValue <StringList>().SelectedIndex == 0); ult.AddItem(new MenuItem("CUSERHIT", "Use When Enemy Count >=").SetValue <Slider>(new Slider(3, 1, 5))).Show(ult.Item("CUSERMETHOD").GetValue <StringList>().SelectedIndex == 0); // combo.AddSubMenu(ult); Menu harass = new Menu("Harass", "Harass"); harass.AddItem(new MenuItem("HUSEQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("HUSEW", "Use W").SetValue(true)); harass.AddItem(new MenuItem("HUSEE", "Use E For Damage Enemy").SetValue(true)); harass.AddItem(new MenuItem("HTOGGLE", "Toggle Harass").SetValue(new KeyBind('T', KeyBindType.Toggle))); harass.AddItem(new MenuItem("HMANA", "Min. Mana Percent").SetValue(new Slider(50, 0, 100))); Menu laneclear = new Menu("Lane/Jungle Clear", "LaneClear"); laneclear.AddItem(new MenuItem("LUSEQ", "Use Q").SetValue(true)); laneclear.AddItem(new MenuItem("LUSEW", "Use W").SetValue(true)); laneclear.AddItem(new MenuItem("LMINW", "Min. Minions To W In Range").SetValue(new Slider(3, 1, 12))); laneclear.AddItem(new MenuItem("LUSEE", "Use E While Jungle Clear").SetValue(true)); laneclear.AddItem(new MenuItem("TOGGLESPELL", "Enabled Spell Farm").SetValue(new KeyBind('G', KeyBindType.Toggle, true))); laneclear.AddItem(new MenuItem("LMANA", "Min. Mana Percent").SetValue(new Slider(50, 0, 100))); Menu misc = new Menu("Misc", "Misc"); misc.AddItem(new MenuItem("MANTIGAPEW", "Anti Gap Closer With E->W").SetValue(true)); misc.AddItem(new MenuItem("MINTIMPORTANT", "Interrupt Important Spells With Q->R").SetValue(true)); misc.AddItem(new MenuItem("MEINIT", "Cast E On Initiators").SetValue(true)); misc.AddItem(new MenuItem("MAUTOR", "Enable Auto Ult").SetValue(true)).ValueChanged += (s, ar) => ConfigMenu.Item("MAUTORHIT").Show(ar.GetNewValue <bool>()); misc.AddItem(new MenuItem("MAUTORHIT", "Auto R When Can Hit").SetValue(new Slider(4, 2, 5))).Show(misc.Item("MAUTOR").GetValue <bool>()); misc.AddItem(new MenuItem("DDRAWBALL", "Draw Ball Position").SetValue(false)); misc.AddItem(new MenuItem("DDRAWKILL", "Draw Killable Enemy").SetValue(true)); DamageIndicator.Initialize((t) => (float)CalculateComboDamage(t), misc); m_targetedEvader = new TargetedSpellEvader(TargetedSpell_Evade, misc); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(laneclear); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); }
protected override void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser) { if (AntiGapCloserEnabled) { if (ConfigMenu.Item("SAutoCarry.Azir.Misc.AntiGapCloser." + gapcloser.Sender.Spellbook.GetSpell(gapcloser.Slot).Name).GetValue <bool>()) { if (gapcloser.End.Distance(ObjectManager.Player.ServerPosition) < 200) { Spells[R].Cast(gapcloser.End.Extend(gapcloser.Start, 100)); } } } }
public void BeforeDraw() { if (ConfigMenu.Item("DDRAWCOMBOMODE").GetValue <bool>()) { foreach (var enemy in HeroManager.Enemies) { if (!enemy.IsDead && enemy.IsVisible) { var text_pos = Drawing.WorldToScreen(enemy.Position); Drawing.DrawText((int)text_pos.X - 20, (int)text_pos.Y + 35, System.Drawing.Color.Aqua, ConfigMenu.Item(String.Format("CMETHOD{0}", enemy.ChampionName)).GetValue <StringList>().SelectedValue); } } } }
public override void CreateConfigMenu() { Menu combo = new Menu("Combo", "SAutoCarry.Veigar.Combo"); combo.AddItem(new MenuItem("SAutoCarry.Veigar.Combo.UseQ", "Use Q").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Veigar.Combo.UseW", "Use W").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Veigar.Combo.UseE", "Use E").SetValue(true)); combo.AddItem(new MenuItem("SAutoCarry.Veigar.Combo.EMode", "E Mode").SetValue(new StringList(new string[] { "Stun enemy", "Zone enemy" }))); combo.AddItem(new MenuItem("SAutoCarry.Veigar.Combo.UseR", "Use R").SetValue(true)); Menu harass = new Menu("Harass", "SAutoCarry.Veigar.Harass"); harass.AddItem(new MenuItem("SAutoCarry.Veigar.Harass.UseQ", "Use Q").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Veigar.Harass.UseW", "Use W").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Veigar.Harass.UseE", "Use E").SetValue(true)); harass.AddItem(new MenuItem("SAutoCarry.Veigar.Harass.EMode", "E Mode").SetValue(new StringList(new string[] { "Stun enemy", "Zone enemy" }))); harass.AddItem(new MenuItem("SAutoCarry.Veigar.Harass.Mana", "Min. Mana Percent").SetValue(new Slider(60, 0, 100))); Menu laneclear = new Menu("Lane/Jungle Clear", "SAutoCarry.Veigar.LaneClear"); laneclear.AddItem(new MenuItem("SAutoCarry.Veigar.LaneClear.UseQ", "Use Q").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Veigar.LaneClear.UseW", "Use W").SetValue(true)); laneclear.AddItem(new MenuItem("SAutoCarry.Veigar.LaneClear.MinW", "Min. Minions To W In Range").SetValue(new Slider(4, 1, 12))); laneclear.AddItem(new MenuItem("SAutoCarry.Veigar.LaneClear.Mana", "Min. Mana Percent").SetValue(new Slider(10, 0, 100))); Menu misc = new Menu("Misc", "SAutoCarry.Veigar.Misc"); misc.AddItem(new MenuItem("SAutoCarry.Veigar.Misc.AutoQLastHit", "Auto Q Last Hit").SetValue(new KeyBind('T', KeyBindType.Toggle))); misc.AddItem(new MenuItem("SAutoCarry.Veigar.Misc.AntiGapcloseE", "Anti Gap Closer With E").SetValue(true)); misc.AddItem(new MenuItem("SAutoCarry.Veigar.Misc.AutoWImmobile", "Auto W Immobile Target").SetValue(true)); //auto r Menu autoUlt = new Menu("Auto Ult Settings (Killable)", "SAutoCarry.Veigar.AutoR"); foreach (AIHeroClient enemy in HeroManager.Enemies) { autoUlt.AddItem(new MenuItem("SAutoCarry.Veigar.AutoR.DontUlt" + enemy.ChampionName, string.Format("Dont Auto Ult {0}", enemy.ChampionName)).SetValue(false)); } autoUlt.AddItem(new MenuItem("SAutoCarry.Veigar.AutoR.Enabled", "Enabled").SetValue(true)); // misc.AddSubMenu(autoUlt); ConfigMenu.AddSubMenu(combo); ConfigMenu.AddSubMenu(harass); ConfigMenu.AddSubMenu(laneclear); ConfigMenu.AddSubMenu(misc); ConfigMenu.AddToMainMenu(); DamageIndicator.Initialize((t) => (float)CalculateComboDamage(t), misc); }