private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("花边汉化-Adc合集", "Marksman", true); CClass = new Champion(); AActivator = new Activator(); var BaseType = CClass.GetType(); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName.ToLowerInvariant(); switch (championName) { case "ashe": CClass = new Ashe(); break; case "caitlyn": CClass = new Caitlyn(); break; case "corki": CClass = new Corki(); break; case "draven": CClass = new Draven(); break; case "ezreal": CClass = new Ezreal(); break; case "graves": CClass = new Graves(); break; case "gnar": CClass = new Gnar(); break; case "jinx": CClass = new Jinx(); break; case "kalista": CClass = new Kalista(); break; case "kogmaw": CClass = new Kogmaw(); break; case "lucian": CClass = new Lucian(); break; case "missfortune": CClass = new MissFortune(); break; case "quinn": CClass = new Quinn(); break; case "sivir": CClass = new Sivir(); break; case "teemo": CClass = new Teemo(); break; case "tristana": CClass = new Tristana(); break; case "twitch": CClass = new Twitch(); break; case "urgot": CClass = new Urgot(); break; case "vayne": CClass = new Vayne(); break; case "varus": CClass = new Varus(); break; } CClass.Id = ObjectManager.Player.BaseSkinName; CClass.Config = Config; var targetSelectorMenu = new Menu("目标 选择", "Target Selector"); TargetSelector.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); var orbwalking = Config.AddSubMenu(new Menu("走 砍", "Orbwalking")); CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking); /* Menu Summoners */ var summoners = Config.AddSubMenu(new Menu("召唤师 技能", "Summoners")); var summonersHeal = summoners.AddSubMenu(new Menu("治 疗", "Heal")); { summonersHeal.AddItem(new MenuItem("SUMHEALENABLE", "开 启").SetValue(true)); summonersHeal.AddItem(new MenuItem("SUMHEALSLIDER", "使用治疗时 HP<= %").SetValue(new Slider(20, 99, 1))); } var summonersBarrier = summoners.AddSubMenu(new Menu("屏 障", "Barrier")); { summonersBarrier.AddItem(new MenuItem("SUMBARRIERENABLE", "开 启").SetValue(true)); summonersBarrier.AddItem( new MenuItem("SUMBARRIERSLIDER", "使用屏障时 HP<= %").SetValue(new Slider(20, 99, 1))); } var summonersIgnite = summoners.AddSubMenu(new Menu("点 燃", "Ignite")); { summonersIgnite.AddItem(new MenuItem("SUMIGNITEENABLE", "开 启").SetValue(true)); } /* Menu Items */ var items = Config.AddSubMenu(new Menu("物 品", "Items")); items.AddItem(new MenuItem("BOTRK", "破败王者之刃").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "幽梦之灵").SetValue(true)); items.AddItem(new MenuItem("SWORD", "神圣之剑").SetValue(true)); items.AddItem(new MenuItem("MURAMANA", "魔宗利刃").SetValue(true)); QuickSilverMenu = new Menu("水银腰带", "QuickSilverSash"); items.AddSubMenu(QuickSilverMenu); QuickSilverMenu.AddItem(new MenuItem("AnyStun", "任何 眩晕").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySlow", "任何 减速").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySnare", "任何 束缚").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "任何 嘲讽").SetValue(true)); foreach (var t in AActivator.BuffList) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy)) { if (t.ChampionName == enemy.ChampionName) { QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue)); } } } items.AddItem( new MenuItem("UseItemsMode", "模式:").SetValue( new StringList(new[] { "禁用", "混合 模式", "连招 模式", "两者" }, 2))); //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras")); //new PotionManager(Extras); // If Champion is supported draw the extra menus if (BaseType != CClass.GetType()) { var combo = new Menu("连 招", "Combo"); if (CClass.ComboMenu(combo)) { Config.AddSubMenu(combo); } var harass = new Menu("骚 扰", "Harass"); if (CClass.HarassMenu(harass)) { harass.AddItem(new MenuItem("HarassMana", "Mp<= %").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(harass); } var laneclear = new Menu("清 线", "LaneClear"); if (CClass.LaneClearMenu(laneclear)) { laneclear.AddItem( new MenuItem("LaneClearMana", "Mp<= %").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(laneclear); } var misc = new Menu("杂 项", "Misc"); if (CClass.MiscMenu(misc)) { Config.AddSubMenu(misc); } /* * if (championName != "caitlyn" || championName != "jinx") * { * MenuInterruptableSpell = new Menu("Interruptable Spell", * "Interrupt with " + championName == "caitlyn" ? "Caitlyn's W" : "Jinx's E"); * * MenuInterruptableSpell.AddItem(new MenuItem("InterruptSpells", "Active").SetValue(true)); * * foreach (var xSpell in Interrupter.Spells) * { * MenuInterruptableSpell.AddItem( * new MenuItem("IntNode" + xSpell.BuffName, xSpell.ChampionName + " | " + xSpell.Slot) * .SetValue(true)); * } * Config.AddSubMenu(MenuInterruptableSpell); * } */ var extras = new Menu("附 加", "Extras"); if (CClass.ExtrasMenu(extras)) { new PotionManager(extras); Config.AddSubMenu(extras); } var drawing = new Menu("范 围", "Drawings"); if (CClass.DrawingMenu(drawing)) { drawing.AddItem( new MenuItem("drawMinionLastHit", "小兵丨最后一下").SetValue(new Circle(false, System.Drawing.Color.GreenYellow))); drawing.AddItem( new MenuItem("drawMinionNearKill", "附近可击杀的小兵").SetValue(new Circle(false, System.Drawing.Color.Gray))); drawing.AddItem(new MenuItem("drawJunglePosition", "显示 无伤打野位置").SetValue(true)); Config.AddSubMenu(drawing); } } CClass.MainMenu(Config); Config.AddToMainMenu(); Drawing.OnDraw += Drawing_OnDraw; Game.OnGameUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += Orbwalking_AfterAttack; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; //Interrupter.OnPossibleToInterrupt += Interrupter_OnPosibleToInterrupt; //Game.OnWndProc += Game_OnWndProc; }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("Marksman", "Marksman", true); CClass = new Champion(); AActivator = new Activator(); var BaseType = CClass.GetType(); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName.ToLowerInvariant(); switch (championName) { case "ashe": CClass = new Ashe(); break; case "caitlyn": CClass = new Caitlyn(); break; case "corki": CClass = new Corki(); break; case "draven": CClass = new Draven(); break; case "ezreal": CClass = new Ezreal(); break; case "graves": CClass = new Graves(); break; case "gnar": CClass = new Gnar(); break; case "jinx": CClass = new Jinx(); break; case "kalista": CClass = new Kalista(); break; case "kogmaw": CClass = new Kogmaw(); break; case "lucian": CClass = new Lucian(); break; case "missfortune": CClass = new MissFortune(); break; case "quinn": CClass = new Quinn(); break; case "sivir": CClass = new Sivir(); break; case "teemo": CClass = new Teemo(); break; case "tristana": CClass = new Tristana(); break; case "twitch": CClass = new Twitch(); break; case "urgot": CClass = new Urgot(); break; case "vayne": CClass = new Vayne(); break; case "varus": CClass = new Varus(); break; } CClass.Id = ObjectManager.Player.BaseSkinName; CClass.Config = Config; var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); TargetSelector.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); OrbWalking = Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); CClass.Orbwalker = new Orbwalking.Orbwalker(OrbWalking); OrbWalking.AddItem(new MenuItem("Orb.AutoWindUp", "Marksman - Auto Windup").SetValue(false)).ValueChanged += (sender, argsEvent) => { if (argsEvent.GetNewValue <bool>()) { CheckAutoWindUp(); } }; /* Menu Summoners */ var summoners = Config.AddSubMenu(new Menu("Summoners", "Summoners")); var summonersHeal = summoners.AddSubMenu(new Menu("Heal", "Heal")); { summonersHeal.AddItem(new MenuItem("SUMHEALENABLE", "Enable").SetValue(true)); summonersHeal.AddItem(new MenuItem("SUMHEALSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1))); } var summonersBarrier = summoners.AddSubMenu(new Menu("Barrier", "Barrier")); { summonersBarrier.AddItem(new MenuItem("SUMBARRIERENABLE", "Enable").SetValue(true)); summonersBarrier.AddItem( new MenuItem("SUMBARRIERSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1))); } var summonersIgnite = summoners.AddSubMenu(new Menu("Ignite", "Ignite")); { summonersIgnite.AddItem(new MenuItem("SUMIGNITEENABLE", "Enable").SetValue(true)); } /* Menu Items */ var items = Config.AddSubMenu(new Menu("Items", "Items")); items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true)); items.AddItem(new MenuItem("SWORD", "Sword of the Divine").SetValue(true)); items.AddItem(new MenuItem("MURAMANA", "Muramana").SetValue(true)); QuickSilverMenu = new Menu("QSS", "QuickSilverSash"); items.AddSubMenu(QuickSilverMenu); QuickSilverMenu.AddItem(new MenuItem("AnyStun", "Any Stun").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySlow", "Any Slow").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySnare", "Any Snare").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "Any Taunt").SetValue(true)); foreach (var t in AActivator.BuffList) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy)) { if (t.ChampionName == enemy.ChampionName) { QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue)); } } } items.AddItem( new MenuItem("UseItemsMode", "Use items on").SetValue( new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2))); //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras")); //new PotionManager(Extras); // If Champion is supported draw the extra menus if (BaseType != CClass.GetType()) { var combo = new Menu("Combo", "Combo"); if (CClass.ComboMenu(combo)) { Config.AddSubMenu(combo); } var harass = new Menu("Harass", "Harass"); if (CClass.HarassMenu(harass)) { harass.AddItem(new MenuItem("HarassMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(harass); } var laneclear = new Menu("LaneClear", "LaneClear"); if (CClass.LaneClearMenu(laneclear)) { laneclear.AddItem( new MenuItem("LaneClearMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(laneclear); } var misc = new Menu("Misc", "Misc"); if (CClass.MiscMenu(misc)) { Config.AddSubMenu(misc); } /* * if (championName != "caitlyn" || championName != "jinx") * { * MenuInterruptableSpell = new Menu("Interruptable Spell", * "Interrupt with " + championName == "caitlyn" ? "Caitlyn's W" : "Jinx's E"); * * MenuInterruptableSpell.AddItem(new MenuItem("InterruptSpells", "Active").SetValue(true)); * * foreach (var xSpell in Interrupter.Spells) * { * MenuInterruptableSpell.AddItem( * new MenuItem("IntNode" + xSpell.BuffName, xSpell.ChampionName + " | " + xSpell.Slot) * .SetValue(true)); * } * Config.AddSubMenu(MenuInterruptableSpell); * } */ var extras = new Menu("Extras", "Extras"); if (CClass.ExtrasMenu(extras)) { new PotionManager(extras); Config.AddSubMenu(extras); } var drawing = new Menu("Drawings", "Drawings"); if (CClass.DrawingMenu(drawing)) { drawing.AddItem(new MenuItem("Marksman.Drawings", "Marksman Default Draw Options")); drawing.AddItem( new MenuItem("drawMinionLastHit", MenuSpace + "Minion Last Hit").SetValue(new Circle(false, Color.GreenYellow))); drawing.AddItem( new MenuItem("drawMinionNearKill", MenuSpace + "Minion Near Kill").SetValue(new Circle(false, Color.Gray))); drawing.AddItem(new MenuItem("drawJunglePosition", MenuSpace + "Jungle Farm Position").SetValue(false)); drawing.AddItem( new MenuItem("Draw.DrawMinions", MenuSpace + "Draw Minions Sprite", true).SetValue(false)); drawing.AddItem( new MenuItem("Draw.DrawTarget", MenuSpace + "Draw Target Sprite", true).SetValue(false)); //drawing.AddItem(new MenuItem("Draw.DrawSTarget", MenuSpace + "Draw Selected Target", true).SetValue(new Circle(false,Color.GreenYellow))); Config.AddSubMenu(drawing); } } CClass.MainMenu(Config); Config.AddToMainMenu(); //Sprite.Load(); Drawing.OnDraw += Drawing_OnDraw; Game.OnUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += Orbwalking_AfterAttack; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; //Interrupter.OnPossibleToInterrupt += Interrupter_OnPosibleToInterrupt; //Game.OnWndProc += Game_OnWndProc; }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("Marksman", "Marksman", true); CClass = new Champion(); AActivator = new Activator(); var BaseType = CClass.GetType(); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName.ToLowerInvariant(); switch (championName) { case "ashe": CClass = new Ashe(); break; case "caitlyn": CClass = new Caitlyn(); break; case "corki": CClass = new Corki(); break; case "draven": CClass = new Draven(); break; case "ezreal": CClass = new Ezreal(); break; case "graves": CClass = new Graves(); break; case "gnar": CClass = new Gnar(); break; case "jinx": CClass = new Jinx(); break; case "kalista": CClass = new Kalista(); break; case "kogmaw": CClass = new Kogmaw(); break; case "lucian": CClass = new Lucian(); break; case "missfortune": CClass = new MissFortune(); break; case "quinn": CClass = new Quinn(); break; case "sivir": CClass = new Sivir(); break; case "teemo": CClass = new Teemo(); break; case "tristana": CClass = new Tristana(); break; case "twitch": CClass = new Twitch(); break; case "urgot": CClass = new Urgot(); break; case "vayne": CClass = new Vayne(); break; case "varus": CClass = new Varus(); break; } CClass.Id = ObjectManager.Player.BaseSkinName; CClass.Config = Config; var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); SimpleTs.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); var orbwalking = Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking); var items = Config.AddSubMenu(new Menu("Items", "Items")); items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true)); items.AddItem(new MenuItem("SWORD", "Sword of the Divine").SetValue(true)); items.AddItem(new MenuItem("MURAMANA", "Muramana").SetValue(true)); QuickSilverMenu = new Menu("QSS", "QuickSilverSash"); items.AddSubMenu(QuickSilverMenu); QuickSilverMenu.AddItem(new MenuItem("AnyStun", "Any Stun").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySlow", "Any Slow").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySnare", "Any Snare").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "Any Taunt").SetValue(true)); foreach (var t in AActivator.BuffList) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy)) { if (t.ChampionName == enemy.ChampionName) { QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue)); } } } items.AddItem( new MenuItem("UseItemsMode", "Use items on").SetValue( new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2))); //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras")); //new PotionManager(Extras); // If Champion is supported draw the extra menus if (BaseType != CClass.GetType()) { var combo = new Menu("Combo", "Combo"); if (CClass.ComboMenu(combo)) { Config.AddSubMenu(combo); } var harass = new Menu("Harass", "Harass"); if (CClass.HarassMenu(harass)) { harass.AddItem(new MenuItem("HarassMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(harass); } var laneclear = new Menu("LaneClear", "LaneClear"); if (CClass.LaneClearMenu(laneclear)) { laneclear.AddItem( new MenuItem("LaneClearMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(laneclear); } var misc = new Menu("Misc", "Misc"); if (CClass.MiscMenu(misc)) { Config.AddSubMenu(misc); } var extras = new Menu("Extras", "Extras"); if (CClass.ExtrasMenu(extras)) { new PotionManager(extras); Config.AddSubMenu(extras); } var drawing = new Menu("Drawings", "Drawings"); if (CClass.DrawingMenu(drawing)) { drawing.AddItem( new MenuItem("drawMinionLastHit", "Minion Last Hit").SetValue(new Circle(false, System.Drawing.Color.GreenYellow))); drawing.AddItem( new MenuItem("drawMinionNearKill", "Minion Near Kill").SetValue(new Circle(false, System.Drawing.Color.Gray))); Config.AddSubMenu(drawing); } } CClass.MainMenu(Config); Config.AddToMainMenu(); Drawing.OnDraw += Drawing_OnDraw; Game.OnGameUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += Orbwalking_AfterAttack; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; //Game.OnWndProc += Game_OnWndProc; }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("Marksman", "Marksman", true); CClass = new Champion(); var BaseType = CClass.GetType(); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName; switch (championName) { case "Caitlyn": CClass = new Caitlyn(); break; case "Corki": CClass = new Corki(); break; case "Draven": CClass = new Draven(); break; case "Ezreal": CClass = new Ezreal(); break; case "Graves": CClass = new Graves(); break; case "Jinx": CClass = new Jinx(); break; case "KogMaw": CClass = new Kogmaw(); break; case "Lucian": CClass = new Lucian(); break; case "Quinn": CClass = new Quinn(); break; case "Sivir": CClass = new Sivir(); break; case "Teemo": CClass = new Teemo(); break; case "Tristana": CClass = new Tristana(); break; case "Twitch": CClass = new Twitch(); break; case "Vayne": CClass = new Vayne(); break; } CClass.Id = ObjectManager.Player.BaseSkinName; CClass.Config = Config; var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); SimpleTs.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); var orbwalking = Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking); var items = Config.AddSubMenu(new Menu("Items", "Items")); items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true)); items.AddItem( new MenuItem("UseItemsMode", "Use items on").SetValue( new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2))); // If Champion is supported draw the extra menus if (BaseType != CClass.GetType()) { var combo = Config.AddSubMenu(new Menu("Combo", "Combo")); CClass.ComboMenu(combo); var harass = Config.AddSubMenu(new Menu("Harass", "Harass")); CClass.HarassMenu(harass); var laneclear = Config.AddSubMenu(new Menu("LaneClear", "LaneClear")); CClass.LaneClearMenu(laneclear); var misc = Config.AddSubMenu(new Menu("Misc", "Misc")); CClass.MiscMenu(misc); var drawing = Config.AddSubMenu(new Menu("Drawings", "Drawings")); CClass.DrawingMenu(drawing); } CClass.MainMenu(Config); Config.AddToMainMenu(); Drawing.OnDraw += Drawing_OnDraw; Game.OnGameUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += Orbwalking_AfterAttack; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("Marksman", "Marksman", true).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); ChampionClass = new Champion(); CommonGeometry.Init(); var baseType = ChampionClass.GetType(); igniteSlot = ObjectManager.Player.GetSpellSlot("summonerdot"); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName.ToLowerInvariant(); switch (championName) { case "ashe": ChampionClass = new Ashe(); break; case "caitlyn": ChampionClass = new Caitlyn(); break; case "corki": ChampionClass = new Corki(); break; case "draven": ChampionClass = new Draven(); break; case "ezreal": ChampionClass = new Ezreal(); break; case "graves": ChampionClass = new Graves(); break; case "gnar": ChampionClass = new Gnar(); break; case "jhin": ChampionClass = new Jhin(); break; case "jinx": ChampionClass = new Jinx(); break; case "kalista": ChampionClass = new Kalista(); break; case "kindred": ChampionClass = new Kindred(); break; case "kogmaw": ChampionClass = new Kogmaw(); break; case "lucian": ChampionClass = new Lucian(); break; case "missfortune": ChampionClass = new MissFortune(); break; case "quinn": ChampionClass = new Quinn(); break; case "sivir": ChampionClass = new Sivir(); break; case "teemo": ChampionClass = new Teemo(); break; case "tristana": ChampionClass = new Tristana(); break; case "twitch": ChampionClass = new Twitch(); break; case "urgot": ChampionClass = new Urgot(); break; case "vayne": ChampionClass = new Vayne(); break; case "varus": ChampionClass = new Varus(); break; default: Game.PrintChat(ObjectManager.Player.CharData.BaseSkinName + " Doesn't support from Marksman!"); break; } //Config.DisplayName = "Marksman Lite | " + CultureInfo.CurrentCulture.TextInfo.ToTitleCase(championName); Config.DisplayName = "Marksman II - " + ObjectManager.Player.ChampionName; ChampionClass.Id = ObjectManager.Player.CharData.BaseSkinName; ChampionClass.Config = Config; ChampionClass.MenuLane = MenuLane; ChampionClass.MenuJungle = MenuJungle; MenuExtraTools = new Menu("Marksman II - Tools", "ExtraTools", true).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); { var nMenuExtraToolsPackets = new Menu("Available Tools", "MenuExtraTools.Available"); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Orbwalker", "Orbwalker:")).SetValue(new StringList(new[] { "LeagueSharp Common", "Marksman Orbwalker (With Attack Speed Limiter)" })).SetFontStyle(FontStyle.Regular, SharpDX.Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Prediction", "Prediction:")).SetValue(new StringList(new[] { "LeagueSharp Common", "SPrediction (Synx)" })).SetFontStyle(FontStyle.Regular, SharpDX.Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.AutoLevel", "Auto Leveller:")).SetValue(true); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.AutoBush", "Auto Bush Ward:")).SetValue(true); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.AutoPink", "Auto Pink Ward:")).SetValue(true).SetTooltip("For rengar / vayne / shaco etc."); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.WarningSpells", "Warning Spells [NEW]:")).SetValue(true).SetTooltip("For Rengar R / Shaco Q etc.").SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Skin", "Skin Manager:")).SetValue(true); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Emote", "Emote:")).SetValue(true); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.AllySupport", "Ally Support:")).SetValue(true); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.BuffTimer", "Buff Time Manager:")).SetValue(false).SetFontStyle(FontStyle.Regular, SharpDX.Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Potition", "Potition Manager:")).SetValue(false).SetFontStyle(FontStyle.Regular, SharpDX.Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Summoners", "Summoner Manager:")).SetValue(false).SetFontStyle(FontStyle.Regular, SharpDX.Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Tracker", "Tracker:")).SetValue(false).SetFontStyle(FontStyle.Regular, SharpDX.Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Reload", "Press F5 for Load Extra Tools!")).SetFontStyle(FontStyle.Bold, SharpDX.Color.GreenYellow); MenuExtraTools.AddSubMenu(nMenuExtraToolsPackets); MenuExtraToolsActivePackets = new Menu("Installed Tools", "MenuExtraTools.Installed").SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); MenuExtraTools.AddSubMenu(MenuExtraToolsActivePackets); } CommonSettings.Init(Config); OrbWalking = Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); ChampionClass.Orbwalker = new Orbwalking.Orbwalker(OrbWalking); MenuActivator = new Menu("Activator", "Activator").SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua); { if (MenuExtraTools.Item("ExtraTools.AutoLevel").GetValue <bool>()) { CommonAutoLevel.Init(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.AutoPink").GetValue <bool>()) { CommonAutoPink.Initialize(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.WarningSpells").GetValue <bool>()) { CommonWarningSpelss.Initialize(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.AutoBush").GetValue <bool>()) { CommonAutoBush.Init(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.Skin").GetValue <bool>()) { CommonSkinManager.Init(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.Emote").GetValue <bool>()) { CommonEmote.Init(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.AllySupport").GetValue <bool>()) { CommonAlly.Init(MenuExtraToolsActivePackets); } /* Menu Items */ var items = MenuActivator.AddSubMenu(new Menu("Items", "Items")); items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true)); items.AddItem(new MenuItem("SWORD", "Sword of the Divine").SetValue(true)); items.AddItem(new MenuItem("MURAMANA", "Muramana").SetValue(true)); items.AddItem(new MenuItem("UseItemsMode", "Use items on").SetValue(new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2))); } Config.AddSubMenu(MenuActivator); // If Champion is supported draw the extra menus if (baseType != ChampionClass.GetType()) { SetSmiteSlot(); var combo = new Menu("Combo", "Combo").SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); if (ChampionClass.ComboMenu(combo)) { if (SmiteSlot != SpellSlot.Unknown) { combo.AddItem(new MenuItem("ComboSmite", "Use Smite").SetValue(true)); } Config.AddSubMenu(combo); } var harass = new Menu("Harass", "Harass"); if (ChampionClass.HarassMenu(harass)) { harass.AddItem(new MenuItem("HarassMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(harass); } var menuClear = new Menu("Farm / Jungle", "Mode.Clear"); { MenuLane = new Menu("Lane", "Mode.Lane"); { if (ChampionClass.LaneClearMenu(MenuLane)) { MenuLane.AddItem(new MenuItem("Lane.Min.Mana", ":: Min. Mana %:").SetValue(new Slider(60, 100, 0))); } menuClear.AddSubMenu(MenuLane); } MenuJungle = new Menu("Jungle", "Mode.Jungle"); { if (ChampionClass.JungleClearMenu(MenuJungle)) { MenuJungle.AddItem(new MenuItem("Jungle.Min.Mana", ":: Min. Mana %:").SetValue(new Slider(30, 100, 0))); MenuJungle.AddItem(new MenuItem("Jungle.Items", ":: Use Items:").SetValue(new StringList(new[] { "Off", "Use for Baron", "Use for Baron", "Both" }, 3))); menuClear.AddSubMenu(MenuJungle); } } menuClear.AddItem(new MenuItem("Farm.Active", ":: Farm Active!").SetValue(new KeyBind("J".ToCharArray()[0], KeyBindType.Toggle, true))).Permashow(true, "Marksman | Farm", SharpDX.Color.Aqua); menuClear.AddItem(new MenuItem("Farm.Min.Mana.Control", ":: Min. Mana Control!").SetValue(new KeyBind("M".ToCharArray()[0], KeyBindType.Toggle, true))).Permashow(true, "Marksman | Farm Min. Mana Control", SharpDX.Color.Aqua); Config.AddSubMenu(menuClear); } //var laneclear = new Menu("Lane Mode", "LaneClear"); //if (ChampionClass.LaneClearMenu(laneclear)) //{ // laneclear.AddItem(new MenuItem("Lane.Enabled", ":: Enable Lane Farm!").SetValue(new KeyBind("L".ToCharArray()[0],KeyBindType.Toggle, true))).Permashow(true, "Marksman | Enable Lane Farm", SharpDX.Color.Aqua); // var minManaMenu = new Menu("Min. Mana Settings", "Lane.MinMana.Title"); // { // minManaMenu.AddItem(new MenuItem("LaneMana.Alone", "If I'm Alone %:").SetValue(new Slider(30, 100, 0))).SetFontStyle(FontStyle.Regular, SharpDX.Color.LightSkyBlue); // minManaMenu.AddItem(new MenuItem("LaneMana.Enemy", "If Enemy Close %:").SetValue(new Slider(60, 100, 0))).SetFontStyle(FontStyle.Regular, SharpDX.Color.IndianRed); // laneclear.AddSubMenu(minManaMenu); // } // Config.AddSubMenu(laneclear); //} //var jungleClear = new Menu("Jungle Mode", "JungleClear"); //if (ChampionClass.JungleClearMenu(jungleClear)) //{ // var minManaMenu = new Menu("Min. Mana Settings", "Jungle.MinMana.Title"); // { // minManaMenu.AddItem(new MenuItem("Jungle.Mana.Ally", "Ally Mobs %:").SetValue(new Slider(50, 100, 0))).SetFontStyle(FontStyle.Regular, SharpDX.Color.LightSkyBlue); // minManaMenu.AddItem(new MenuItem("Jungle.Mana.Enemy", "Enemy Mobs %:").SetValue(new Slider(30, 100, 0))).SetFontStyle(FontStyle.Regular, SharpDX.Color.IndianRed); // minManaMenu.AddItem(new MenuItem("Jungle.Mana.BigBoys", "Baron/Dragon %:").SetValue(new Slider(70, 100, 0))).SetFontStyle(FontStyle.Regular, SharpDX.Color.HotPink); // jungleClear.AddSubMenu(minManaMenu); // } // jungleClear.AddItem(new MenuItem("Jungle.Items", ":: Use Items:").SetValue(new StringList(new[] {"Off", "Use for Baron", "Use for Baron", "Both"}, 3))); // jungleClear.AddItem(new MenuItem("Jungle.Enabled", ":: Enable Jungle Farm!").SetValue(new KeyBind("J".ToCharArray()[0], KeyBindType.Toggle, true))).Permashow(true, "Marksman | Enable Jungle Farm", SharpDX.Color.Aqua); // Config.AddSubMenu(jungleClear); //} /*----------------------------------------------------------------------------------------------------------*/ //Obj_AI_Base ally = (from aAllies in HeroManager.Allies // from aSupportedChampions in // new[] // { // "janna", "tahm", "leona", "lulu", "lux", "nami", "shen", "sona", "braum", "bard" // } // where aSupportedChampions == aAllies.ChampionName.ToLower() // select aAllies).FirstOrDefault(); //if (ally != null) //{ // var menuAllies = new Menu("Ally Combo", "Ally.Combo").SetFontStyle(FontStyle.Regular, Color.Crimson); // { // Obj_AI_Hero leona = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "leona"); // if (leona != null) // { // var menuLeona = new Menu("Leona", "Leona"); // menuLeona.AddItem(new MenuItem("Leona.ComboBuff", "Force Focus Marked Enemy for Bonus Damage").SetValue(true)); // menuAllies.AddSubMenu(menuLeona); // } // Obj_AI_Hero Lux = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "lux"); // if (Lux != null) // { // var menuLux = new Menu("Lux", "Lux"); // menuLux.AddItem(new MenuItem("Lux.ComboBuff", "Force Focus Marked Enemy for Bonus Damage").SetValue(true)); // menuAllies.AddSubMenu(menuLux); // } // Obj_AI_Hero Shen = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "shen"); // if (Shen != null) // { // var menuShen = new Menu("Shen", "Shen"); // menuShen.AddItem(new MenuItem("Shen.ComboBuff", "Force Focus Q Marked Enemy Objects for Heal").SetValue(true)); // menuShen.AddItem(new MenuItem("Shen.ComboBuff", "Minimum Heal:").SetValue(new Slider(80))); // menuAllies.AddSubMenu(menuShen); // } // Obj_AI_Hero Tahm = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "Tahm"); // if (Tahm != null) // { // var menuTahm = new Menu("Tahm", "Tahm"); // menuTahm.AddItem(new MenuItem("Tahm.ComboBuff", "Force Focus Marked Enemy for Stun").SetValue(true)); // menuAllies.AddSubMenu(menuTahm); // } // Obj_AI_Hero Sona = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "Sona"); // if (Sona != null) // { // var menuSona = new Menu("Sona", "Sona"); // menuSona.AddItem(new MenuItem("Sona.ComboBuff", "Force Focus to Marked Enemy").SetValue(true)); // menuAllies.AddSubMenu(menuSona); // } // Obj_AI_Hero Lulu = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "Lulu"); // if (Lulu != null) // { // var menuLulu = new Menu("Lulu", "Lulu"); // menuLulu.AddItem(new MenuItem("Lulu.ComboBuff", "Force Focus to Enemy If I have E buff").SetValue(true)); // menuAllies.AddSubMenu(menuLulu); // } // Obj_AI_Hero Nami = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "nami"); // if (Nami != null) // { // var menuNami = new Menu("Nami", "Nami"); // menuNami.AddItem(new MenuItem("Nami.ComboBuff", "Force Focus to Enemy If I have E Buff").SetValue(true)); // menuAllies.AddSubMenu(menuNami); // } // } // Config.AddSubMenu(menuAllies); //} /*----------------------------------------------------------------------------------------------------------*/ var misc = new Menu("Misc", "Misc").SetFontStyle(FontStyle.Regular, SharpDX.Color.DarkOrange); if (ChampionClass.MiscMenu(misc)) { misc.AddItem(new MenuItem("Misc.SaveManaForUltimate", "Save Mana for Ultimate").SetValue(false)); Config.AddSubMenu(misc); } /* * var extras = new Menu("Extras", "Extras"); * if (ChampionClass.ExtrasMenu(extras)) * { * Config.AddSubMenu(extras); * } */ var marksmanDrawings = new Menu("Drawings", "MDrawings"); Config.AddSubMenu(marksmanDrawings); var drawing = new Menu(CultureInfo.CurrentCulture.TextInfo.ToTitleCase(championName), "Drawings").SetFontStyle(FontStyle.Regular, SharpDX.Color.Aquamarine); if (ChampionClass.DrawingMenu(drawing)) { marksmanDrawings.AddSubMenu(drawing); } var globalDrawings = new Menu("Global", "GDrawings"); { marksmanDrawings.AddItem(new MenuItem("Draw.TurnOff", "Drawings").SetValue(new StringList(new[] { "Disable", "Enable", "Disable on Combo Mode", "Disable on Lane/Jungle Mode", "Both" }, 1))); globalDrawings.AddItem(new MenuItem("Draw.MinionLastHit", "Minion Last Hit").SetValue(new StringList(new[] { "Off", "On", "Just Out of AA Range Minions" }, 2))); globalDrawings.AddItem(new MenuItem("Draw.KillableEnemy", "Killable Enemy Text").SetValue(false)); //GlobalDrawings.AddItem(new MenuItem("Draw.JunglePosition", "Jungle Farm Position").SetValue(new StringList(new[] { "Off", "If I'm Close to Mobs", "If Jungle Clear Active" }, 2))); marksmanDrawings.AddSubMenu(globalDrawings); } //CreateButtons(); } ChampionClass.MainMenu(Config); ChampionClass.ToolsMenu(MenuExtraTools); //Evade.Evade.Initiliaze(); //Config.AddSubMenu(Evade.Config.Menu); //var y = new Common.CommonObjectDetector(); Config.AddToMainMenu(); MenuExtraTools.AddToMainMenu(); foreach (var i in Config.Children.SelectMany(GetChildirens)) { i.DisplayName = ":: " + i.DisplayName; } foreach (var i in MenuExtraTools.Children.SelectMany(GetChildirens)) { i.DisplayName = ":: " + i.DisplayName; } //CheckAutoWindUp(); Drawing.OnDraw += Drawing_OnDraw; Drawing.OnEndScene += eventArgs => { //DrawButtons(); if (Config.Item("Draw.KillableEnemy").GetValue <bool>()) { foreach (var e in HeroManager.Enemies.Where(e => e.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) * 2))) { var x = (int)Math.Ceiling(e.Health / ObjectManager.Player.GetAutoAttackDamage(e)); //Utils.Utils.DrawText(CommonGeometry.Text, $"{x} x AA = Kill", (int)e.HPBarPosition.X + 20, (int)e.HPBarPosition.Y + 17, SharpDX.Color.White); CommonGeometry.Text.DrawTextLeft(string.Format("{0} x AA Kill", x), (int)e.HPBarPosition.X + 5, (int)e.HPBarPosition.Y + 25, SharpDX.Color.White); } //var t = KillableEnemyAa; //if (t.Key != null && t.Key.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 1000) && // t.Value > 0) //{ // Utils.Utils.DrawText(CommonGeometry.Text, string.Format("{0} x AA Damage = Kill", t.Value), (int)t.Key.HPBarPosition.X + 30, (int)t.Key.HPBarPosition.Y + 5, SharpDX.Color.White); //} } }; Game.OnUpdate += GameOnUpdate; Game.OnUpdate += delegate(EventArgs eventArgs) { ChampionClass.GameOnUpdate(eventArgs); }; Game.OnUpdate += eventArgs => { if (ChampionClass.ComboActive) { ChampionClass.ExecuteCombo(); } if (ChampionClass.LaneClearActive) { ChampionClass.ExecuteLane(); } if (ChampionClass.JungleClearActive) { ChampionClass.ExecuteJungle(); } ChampionClass.PermaActive(); }; Orbwalking.OnAttack += (unit, target) => {// // if (unit.IsMe) // Game.PrintChat("Attack"); }; Orbwalking.AfterAttack += (unit, target) => { ChampionClass.Orbwalking_AfterAttack(unit, target); }; Orbwalking.BeforeAttack += (eventArgs) => { ChampionClass.Orbwalking_BeforeAttack(eventArgs); }; GameObject.OnCreate += (sender, eventArgs) => { ChampionClass.OnCreateObject(sender, args); }; GameObject.OnDelete += (sender, eventArgs) => { ChampionClass.OnDeleteObject(sender, args); }; Drawing.OnEndScene += eventArgs => { ChampionClass.DrawingOnEndScene(eventArgs); }; Obj_AI_Base.OnBuffAdd += (sender, eventArgs) => { ChampionClass.Obj_AI_Base_OnBuffAdd(sender, eventArgs); }; Obj_AI_Base.OnBuffRemove += (sender, eventArgs) => { ChampionClass.Obj_AI_Base_OnBuffRemove(sender, eventArgs); }; Obj_AI_Base.OnProcessSpellCast += (sender, eventArgs) => { ChampionClass.Obj_AI_Base_OnProcessSpellCast(sender, eventArgs); }; Obj_AI_Base.OnPlayAnimation += (sender, eventArgs) => { ChampionClass.Obj_AI_Base_OnPlayAnimation(sender, eventArgs); }; AntiGapcloser.OnEnemyGapcloser += (gapcloser) => { ChampionClass.AntiGapcloser_OnEnemyGapcloser(gapcloser); }; Spellbook.OnCastSpell += (sender, eventArgs) => { ChampionClass.Spellbook_OnCastSpell(sender, eventArgs); }; Interrupter2.OnInterruptableTarget += (sender, eventArgs) => { ChampionClass.Interrupter2_OnInterruptableTarget(sender, eventArgs); }; Obj_AI_Base.OnPlayAnimation += (sender, eventArgs) => { ChampionClass.Obj_AI_Base_OnPlayAnimation(sender, eventArgs); }; Console.Clear(); }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("Deadman", "Deadman", true); CClass = new Champion(); AActivator = new Activator(); var BaseType = CClass.GetType(); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName.ToLowerInvariant(); switch (championName) { case "ashe": CClass = new Ashe(); break; case "caitlyn": CClass = new Caitlyn(); break; case "corki": CClass = new Corki(); break; case "draven": CClass = new Draven(); break; case "ezreal": CClass = new Ezreal(); break; case "graves": CClass = new Graves(); break; case "gnar": CClass = new Gnar(); break; case "jinx": CClass = new Jinx(); break; case "kalista": CClass = new Kalista(); break; case "kindred": CClass = new Kindred(); break; case "kogmaw": CClass = new Kogmaw(); break; case "lucian": CClass = new Lucian(); break; case "missfortune": CClass = new MissFortune(); break; case "quinn": CClass = new Quinn(); break; case "sivir": CClass = new Sivir(); break; case "teemo": CClass = new Teemo(); break; case "tristana": CClass = new Tristana(); break; case "twitch": CClass = new Twitch(); break; case "urgot": CClass = new Urgot(); break; case "vayne": CClass = new Vayne(); break; case "varus": CClass = new Varus(); break; } CClass.Id = ObjectManager.Player.CharData.BaseSkinName; CClass.Config = Config; var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); TargetSelector.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); Config.AddSubMenu(new Menu("DeathWalker", "Orbwalker")); DeathWalker.AddToMenu(Config.SubMenu("Orbwalker")); /* Menu Summoners */ var summoners = Config.AddSubMenu(new Menu("Summoners", "Summoners")); var summonersHeal = summoners.AddSubMenu(new Menu("Heal", "Heal")); { summonersHeal.AddItem(new MenuItem("SUMHEALENABLE", "Enable").SetValue(true)); summonersHeal.AddItem(new MenuItem("SUMHEALSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1))); } var summonersBarrier = summoners.AddSubMenu(new Menu("Barrier", "Barrier")); { summonersBarrier.AddItem(new MenuItem("SUMBARRIERENABLE", "Enable").SetValue(true)); summonersBarrier.AddItem( new MenuItem("SUMBARRIERSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1))); } var summonersIgnite = summoners.AddSubMenu(new Menu("Ignite", "Ignite")); { summonersIgnite.AddItem(new MenuItem("SUMIGNITEENABLE", "Enable").SetValue(true)); } /* Menu Items */ var items = Config.AddSubMenu(new Menu("Items", "Items")); items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true)); items.AddItem(new MenuItem("SWORD", "Sword of the Divine").SetValue(true)); items.AddItem(new MenuItem("MURAMANA", "Muramana").SetValue(true)); QuickSilverMenu = new Menu("QSS", "QuickSilverSash"); items.AddSubMenu(QuickSilverMenu); QuickSilverMenu.AddItem(new MenuItem("AnyStun", "Any Stun").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySlow", "Any Slow").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySnare", "Any Snare").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "Any Taunt").SetValue(true)); foreach (var t in AActivator.BuffList) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy)) { if (t.ChampionName == enemy.ChampionName) { QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue)); } } } items.AddItem( new MenuItem("UseItemsMode", "Use items on").SetValue( new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2))); //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras")); //new PotionManager(Extras); // If Champion is supported draw the extra menus if (BaseType != CClass.GetType()) { SetSmiteSlot(); var combo = new Menu("Combo", "Combo"); if (CClass.ComboMenu(combo)) { if (SmiteSlot != SpellSlot.Unknown) { combo.AddItem(new MenuItem("ComboSmite", "Use Smite").SetValue(true)); } Config.AddSubMenu(combo); } var harass = new Menu("Harass", "Harass"); if (CClass.HarassMenu(harass)) { harass.AddItem(new MenuItem("HarassMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(harass); } var laneclear = new Menu("LaneClear", "LaneClear"); if (CClass.LaneClearMenu(laneclear)) { laneclear.AddItem( new MenuItem("LaneClearMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(laneclear); } var misc = new Menu("Misc", "Misc"); if (CClass.MiscMenu(misc)) { Config.AddSubMenu(misc); } var extras = new Menu("Extras", "Extras"); if (CClass.ExtrasMenu(extras)) { new PotionManager(extras); Config.AddSubMenu(extras); } var drawing = new Menu("Drawings", "Drawings"); if (CClass.DrawingMenu(drawing)) { drawing.AddItem(new MenuItem("Deadman.Drawings", "Deadman Default Draw Options")); //drawing.AddItem(new MenuItem("Draw.Ping", MenuSpace + "Show Game Ping").SetValue(true)); drawing.AddItem(new MenuItem("Draw.ToD", MenuSpace + "Turn Off Drawings On Team Fight").SetValue(false)); drawing.AddItem(new MenuItem("Draw.ToDControlRange", MenuSpace + MenuSpace + "Control Range:").SetValue(new Slider(1200, 1600, 600))); drawing.AddItem(new MenuItem("Draw.ToDControlRangeColor", MenuSpace + MenuSpace + "Draw Control Range:").SetValue(new Circle(false, Color.GreenYellow))); drawing.AddItem(new MenuItem("Draw.ToDMinEnemy", MenuSpace + MenuSpace + "Min. Enemy Count:").SetValue(new Slider(3, 5, 0))); drawing.AddItem(new MenuItem("drawMinionLastHit", MenuSpace + "Minion Last Hit").SetValue(new Circle(false, Color.GreenYellow))); drawing.AddItem(new MenuItem("drawMinionNearKill", MenuSpace + "Minion Near Kill").SetValue(new Circle(false, Color.Gray))); drawing.AddItem( new MenuItem("drawJunglePosition", MenuSpace + "Jungle Farm Position").SetValue(false)); drawing.AddItem(new MenuItem("Draw.DrawMinion", MenuSpace + "Draw Minions Sprite").SetValue(false)); drawing.AddItem(new MenuItem("Draw.DrawTarget", MenuSpace + "Draw Target Sprite").SetValue(false)); //drawing.AddItem(new MenuItem("Draw.DrawSTarget", MenuSpace + "Draw Selected Target", true).SetValue(new Circle(false,Color.GreenYellow))); Config.AddSubMenu(drawing); } } CClass.MainMenu(Config); if (championName == "sivir") { Evade.Evade.Initiliaze(); Evade.Config.Menu.DisplayName = "E"; Config.AddSubMenu(Evade.Config.Menu); } //Evade.Evade.Initiliaze(); //Config.AddSubMenu(Evade.Config.Menu); Config.AddToMainMenu(); Sprite.Load(); Drawing.OnDraw += Drawing_OnDraw; Game.OnUpdate += Game_OnGameUpdate; DeathWalker.AfterAttack += DeathWalker_AfterAttack; DeathWalker.BeforeAttack += DeathWalker_BeforeAttack; //Game.OnWndProc += Game_OnWndProc; }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("銆愯秴绁炴眽鍖栥€慉DC鍚堥泦", "Marksman", true); CClass = new Champion(); AActivator = new Activator(); var BaseType = CClass.GetType(); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName.ToLowerInvariant(); switch (championName) { case "ashe": CClass = new Ashe(); break; case "caitlyn": CClass = new Caitlyn(); break; case "corki": CClass = new Corki(); break; case "draven": CClass = new Draven(); break; case "ezreal": CClass = new Ezreal(); break; case "graves": CClass = new Graves(); break; case "jinx": CClass = new Jinx(); break; case "kalista": CClass = new Kalista(); break; case "kogmaw": CClass = new Kogmaw(); break; case "lucian": CClass = new Lucian(); break; case "missfortune": CClass = new MissFortune(); break; case "quinn": CClass = new Quinn(); break; case "sivir": CClass = new Sivir(); break; case "teemo": CClass = new Teemo(); break; case "tristana": CClass = new Tristana(); break; case "twitch": CClass = new Twitch(); break; case "urgot": CClass = new Urgot(); break; case "vayne": CClass = new Vayne(); break; case "varus": CClass = new Varus(); break; } CClass.Id = ObjectManager.Player.BaseSkinName; CClass.Config = Config; var targetSelectorMenu = new Menu("鐩爣閫夋嫨", "Target Selector"); SimpleTs.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); var orbwalking = Config.AddSubMenu(new Menu("璧扮爫", "Orbwalking")); CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking); var items = Config.AddSubMenu(new Menu("鐗╁搧", "Items")); items.AddItem(new MenuItem("BOTRK", "鐮磋触").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "灏忓集鍒€").SetValue(true)); QuickSilverMenu = new Menu("姘撮摱鑵板甫", "QuickSilverSash"); items.AddSubMenu(QuickSilverMenu); QuickSilverMenu.AddItem(new MenuItem("AnyStun", "鐪╂檿").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySnare", "澶瑰瓙").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "鍢茶").SetValue(true)); foreach (var t in AActivator.BuffList) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy)) { if (t.ChampionName == enemy.ChampionName) { QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue)); } } } items.AddItem( new MenuItem("UseItemsMode", "浣跨敤鐗╁搧").SetValue( new StringList(new[] { "no", "娣峰悎", "杩炴嫑", "鍏ㄩ儴" }, 2))); //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras")); //new PotionManager(Extras); // If Champion is supported draw the extra menus if (BaseType != CClass.GetType()) { var combo = new Menu("杩炴嫑", "Combo"); if (CClass.ComboMenu(combo)) { Config.AddSubMenu(combo); } var harass = new Menu("楠氭壈", "Harass"); if (CClass.HarassMenu(harass)) { harass.AddItem(new MenuItem("HarassMana", "钃濋噺鎺у埗%").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(harass); } var laneclear = new Menu("娓呯嚎", "LaneClear"); if (CClass.LaneClearMenu(laneclear)) { laneclear.AddItem( new MenuItem("LaneClearMana", "钃濋噺鎺у埗").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(laneclear); } var misc = new Menu("鏉傞」", "Misc"); if (CClass.MiscMenu(misc)) { Config.AddSubMenu(misc); } var extras = new Menu("闄勫姞", "Extras"); if (CClass.ExtrasMenu(extras)) { new PotionManager(extras); Config.AddSubMenu(extras); } var drawing = new Menu("鏄剧ず", "Drawings"); if (CClass.DrawingMenu(drawing)) { Config.AddSubMenu(drawing); } Config.AddSubMenu(new Menu("瓒呯姹夊寲", "by weilai")); Config.SubMenu("by weilai").AddItem(new MenuItem("qunhao", "姹夊寲缇わ細386289593")); } CClass.MainMenu(Config); Config.AddToMainMenu(); Drawing.OnDraw += Drawing_OnDraw; Game.OnGameUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += Orbwalking_AfterAttack; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("Marksman", "Marksman", true).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); ChampionClass = new Champion(); Common.CommonGeometry.Init(); var BaseType = ChampionClass.GetType(); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName.ToLowerInvariant(); switch (championName) { case "ashe": ChampionClass = new Ashe(); break; case "caitlyn": ChampionClass = new Caitlyn(); break; case "corki": ChampionClass = new Corki(); break; case "draven": ChampionClass = new Draven(); break; case "ezreal": ChampionClass = new Ezreal(); break; case "graves": ChampionClass = new Graves(); break; case "gnar": ChampionClass = new Gnar(); break; case "jinx": ChampionClass = new Jinx(); break; case "kalista": ChampionClass = new Kalista(); break; case "kindred": ChampionClass = new Kindred(); break; case "kogmaw": ChampionClass = new Kogmaw(); break; case "lucian": ChampionClass = new Lucian(); break; case "missfortune": ChampionClass = new MissFortune(); break; case "quinn": ChampionClass = new Quinn(); break; case "sivir": ChampionClass = new Sivir(); break; case "teemo": ChampionClass = new Teemo(); break; case "tristana": ChampionClass = new Tristana(); break; case "twitch": ChampionClass = new Twitch(); break; case "urgot": ChampionClass = new Urgot(); break; case "vayne": ChampionClass = new Vayne(); break; case "varus": ChampionClass = new Varus(); break; } //Config.DisplayName = "Marksman Lite | " + CultureInfo.CurrentCulture.TextInfo.ToTitleCase(championName); Config.DisplayName = "Marksman Lite"; ChampionClass.Id = ObjectManager.Player.CharData.BaseSkinName; ChampionClass.Config = Config; MenuExtraTools = new Menu("Extra Tools", "ExtraTools").SetFontStyle(FontStyle.Regular, Color.Aqua); { var nMenuExtraToolsPackets = new Menu("Available Tools", "MenuExtraTools.Available"); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Orbwalker", "Orbwalker:")).SetValue(new StringList(new[] { "LeagueSharp Common", "Marksman Orbwalker (With Attack Speed Limiter)" })).SetFontStyle(FontStyle.Regular, Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Prediction", "Prediction:")).SetValue(new StringList(new[] { "LeagueSharp Common", "SPrediction (Synx)" })).SetFontStyle(FontStyle.Regular, Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.AutoLevel", "Auto Leveller:")).SetValue(false); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.AutoBush", "Auto Bush Ward:")).SetValue(false); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.AutoPink", "Auto Pink Ward:")).SetValue(false).SetTooltip("For rengar / vayne / shaco etc."); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Skin", "Skin Manager:")).SetValue(false); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Emote", "Emote:")).SetValue(false); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.BuffTimer", "Buff Time Manager:")).SetValue(false).SetFontStyle(FontStyle.Regular, Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Potition", "Potition Manager:")).SetValue(false).SetFontStyle(FontStyle.Regular, Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Summoners", "Summoner Manager:")).SetValue(false).SetFontStyle(FontStyle.Regular, Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Tracker", "Tracker:")).SetValue(false).SetFontStyle(FontStyle.Regular, Color.Gray); nMenuExtraToolsPackets.AddItem(new MenuItem("ExtraTools.Reload", "Press F5 for Load Extra Tools!")).SetFontStyle(FontStyle.Bold, Color.GreenYellow); MenuExtraTools.AddSubMenu(nMenuExtraToolsPackets); MenuExtraToolsActivePackets = new Menu("Installed Tools", "MenuExtraTools.Installed").SetFontStyle(FontStyle.Regular, Color.GreenYellow); MenuExtraTools.AddSubMenu(MenuExtraToolsActivePackets); } Config.AddSubMenu(MenuExtraTools); Common.CommonSettings.Init(Config); OrbWalking = Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); ChampionClass.Orbwalker = new Orb.Orbwalking.Orbwalker(OrbWalking); //Orb.Orbwalking.Orbwalker Orbwalker = new Orb.Orbwalking.Orbwalker(OrbWalking); //if (MenuExtraTools.Item("ExtraTools.Orbwalker").GetValue<StringList>().SelectedIndex == 0) //{ // ChampionClass.OrbwalkerM = new Orbwalking.Orbwalker(OrbWalking); // Orbwalking.Orbwalker OrbwalkerM = new Orbwalking.Orbwalker(OrbWalking); //} //if (MenuExtraTools.Item("ExtraTools.Orbwalker").GetValue<StringList>().SelectedIndex == 1) //{ // ChampionClass.Orbwalker = new Orb.Orbwalking.Orbwalker(OrbWalking); // Orb.Orbwalking.Orbwalker Orbwalker = new Orb.Orbwalking.Orbwalker(OrbWalking); //} MenuActivator = new Menu("Activator", "Activator").SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua); { if (MenuExtraTools.Item("ExtraTools.AutoLevel").GetValue <bool>()) { Common.CommonAutoLevel.Init(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.AutoPink").GetValue <bool>()) { Common.CommonAutoPink.Initialize(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.AutoBush").GetValue <bool>()) { Common.CommonAutoBush.Init(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.Skin").GetValue <bool>()) { Common.CommonSkinManager.Init(MenuExtraToolsActivePackets); } if (MenuExtraTools.Item("ExtraTools.Emote").GetValue <bool>()) { Common.CommonEmote.Init(MenuExtraToolsActivePackets); } /* Menu Items */ var items = MenuActivator.AddSubMenu(new Menu("Items", "Items")); items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true)); items.AddItem(new MenuItem("SWORD", "Sword of the Divine").SetValue(true)); items.AddItem(new MenuItem("MURAMANA", "Muramana").SetValue(true)); items.AddItem( new MenuItem("UseItemsMode", "Use items on").SetValue( new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2))); } Config.AddSubMenu(MenuActivator); // If Champion is supported draw the extra menus if (BaseType != ChampionClass.GetType()) { SetSmiteSlot(); var combo = new Menu("Combo", "Combo").SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); if (ChampionClass.ComboMenu(combo)) { if (SmiteSlot != SpellSlot.Unknown) { combo.AddItem(new MenuItem("ComboSmite", "Use Smite").SetValue(true)); } Config.AddSubMenu(combo); } var harass = new Menu("Harass", "Harass"); if (ChampionClass.HarassMenu(harass)) { harass.AddItem(new MenuItem("HarassMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(harass); } var laneclear = new Menu("Lane Mode", "LaneClear"); if (ChampionClass.LaneClearMenu(laneclear)) { laneclear.AddItem(new MenuItem("Lane.Enabled", ":: Enable Lane Farm!").SetValue(new KeyBind("L".ToCharArray()[0], KeyBindType.Toggle, true))).Permashow(true, "Marksman | Enable Lane Farm", SharpDX.Color.Aqua); var minManaMenu = new Menu("Min. Mana Settings", "Lane.MinMana.Title"); { minManaMenu.AddItem(new MenuItem("LaneMana.Alone", "If I'm Alone %:").SetValue(new Slider(30, 100, 0))).SetFontStyle(FontStyle.Regular, Color.LightSkyBlue); minManaMenu.AddItem(new MenuItem("LaneMana.Enemy", "If Enemy Close %:").SetValue(new Slider(60, 100, 0))).SetFontStyle(FontStyle.Regular, Color.IndianRed); laneclear.AddSubMenu(minManaMenu); } Config.AddSubMenu(laneclear); } var jungleClear = new Menu("Jungle Mode", "JungleClear"); if (ChampionClass.JungleClearMenu(jungleClear)) { var minManaMenu = new Menu("Min. Mana Settings", "Jungle.MinMana.Title"); { minManaMenu.AddItem(new MenuItem("Jungle.Mana.Ally", "Ally Mobs %:").SetValue(new Slider(50, 100, 0))).SetFontStyle(FontStyle.Regular, Color.LightSkyBlue); minManaMenu.AddItem(new MenuItem("Jungle.Mana.Enemy", "Enemy Mobs %:").SetValue(new Slider(30, 100, 0))).SetFontStyle(FontStyle.Regular, Color.IndianRed); minManaMenu.AddItem(new MenuItem("Jungle.Mana.BigBoys", "Baron/Dragon %:").SetValue(new Slider(70, 100, 0))).SetFontStyle(FontStyle.Regular, Color.HotPink); jungleClear.AddSubMenu(minManaMenu); } jungleClear.AddItem(new MenuItem("Jungle.Items", ":: Use Items:").SetValue(new StringList(new[] { "Off", "Use for Baron", "Use for Baron", "Both" }, 3))); jungleClear.AddItem(new MenuItem("Jungle.Enabled", ":: Enable Jungle Farm!").SetValue(new KeyBind("J".ToCharArray()[0], KeyBindType.Toggle, true))).Permashow(true, "Marksman | Enable Jungle Farm", SharpDX.Color.Aqua); Config.AddSubMenu(jungleClear); } /*----------------------------------------------------------------------------------------------------------*/ Obj_AI_Base ally = (from aAllies in HeroManager.Allies from aSupportedChampions in new[] { "janna", "tahm", "leona", "lulu", "lux", "nami", "shen", "sona", "braum", "bard" } where aSupportedChampions == aAllies.ChampionName.ToLower() select aAllies).FirstOrDefault(); if (ally != null) { var menuAllies = new Menu("Ally Combo", "Ally.Combo").SetFontStyle(FontStyle.Regular, SharpDX.Color.Crimson); { Obj_AI_Hero Leona = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "leona"); if (Leona != null) { var menuLeona = new Menu("Leona", "Leona"); menuLeona.AddItem(new MenuItem("Leona.ComboBuff", "Force Focus Marked Enemy for Bonus Damage").SetValue(true)); menuAllies.AddSubMenu(menuLeona); } Obj_AI_Hero Lux = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "lux"); if (Lux != null) { var menuLux = new Menu("Lux", "Lux"); menuLux.AddItem(new MenuItem("Lux.ComboBuff", "Force Focus Marked Enemy for Bonus Damage").SetValue(true)); menuAllies.AddSubMenu(menuLux); } Obj_AI_Hero Shen = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "shen"); if (Shen != null) { var menuShen = new Menu("Shen", "Shen"); menuShen.AddItem(new MenuItem("Shen.ComboBuff", "Force Focus Q Marked Enemy Objects for Heal").SetValue(true)); menuShen.AddItem(new MenuItem("Shen.ComboBuff", "Minimum Heal:").SetValue(new Slider(80))); menuAllies.AddSubMenu(menuShen); } Obj_AI_Hero Tahm = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "Tahm"); if (Tahm != null) { var menuTahm = new Menu("Tahm", "Tahm"); menuTahm.AddItem(new MenuItem("Tahm.ComboBuff", "Force Focus Marked Enemy for Stun").SetValue(true)); menuAllies.AddSubMenu(menuTahm); } Obj_AI_Hero Sona = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "Sona"); if (Sona != null) { var menuSona = new Menu("Sona", "Sona"); menuSona.AddItem(new MenuItem("Sona.ComboBuff", "Force Focus to Marked Enemy").SetValue(true)); menuAllies.AddSubMenu(menuSona); } Obj_AI_Hero Lulu = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "Lulu"); if (Lulu != null) { var menuLulu = new Menu("Lulu", "Lulu"); menuLulu.AddItem(new MenuItem("Lulu.ComboBuff", "Force Focus to Enemy If I have E buff").SetValue(true)); menuAllies.AddSubMenu(menuLulu); } Obj_AI_Hero Nami = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "nami"); if (Nami != null) { var menuNami = new Menu("Nami", "Nami"); menuNami.AddItem(new MenuItem("Nami.ComboBuff", "Force Focus to Enemy If I have E Buff").SetValue(true)); menuAllies.AddSubMenu(menuNami); } } Config.AddSubMenu(menuAllies); } /*----------------------------------------------------------------------------------------------------------*/ var misc = new Menu("Misc", "Misc").SetFontStyle(FontStyle.Regular, SharpDX.Color.DarkOrange); if (ChampionClass.MiscMenu(misc)) { misc.AddItem(new MenuItem("Misc.SaveManaForUltimate", "Save Mana for Ultimate").SetValue(false)); Config.AddSubMenu(misc); } /* * var extras = new Menu("Extras", "Extras"); * if (ChampionClass.ExtrasMenu(extras)) * { * Config.AddSubMenu(extras); * } */ var marksmanDrawings = new Menu("Drawings", "MDrawings"); Config.AddSubMenu(marksmanDrawings); var drawing = new Menu(CultureInfo.CurrentCulture.TextInfo.ToTitleCase(championName), "Drawings").SetFontStyle(FontStyle.Regular, SharpDX.Color.Aquamarine); if (ChampionClass.DrawingMenu(drawing)) { marksmanDrawings.AddSubMenu(drawing); } var GlobalDrawings = new Menu("Global", "GDrawings"); { marksmanDrawings.AddItem(new MenuItem("Draw.TurnOff", "Drawings").SetValue(new StringList(new[] { "Disable", "Enable", "Disable on Combo Mode", "Disable on Lane/Jungle Mode", "Both" }, 1))); var menuCompare = new Menu("Compare me with", "Menu.Compare"); { string[] strCompare = new string[HeroManager.Enemies.Count + 1]; strCompare[0] = "Off"; var i = 1; foreach (var e in HeroManager.Enemies) { strCompare[i] = e.ChampionName; i += 1; } menuCompare.AddItem(new MenuItem("Marksman.Compare.Set", "Set").SetValue(new StringList(new[] { "Off", "Auto Compare at Startup" }, 1))); menuCompare.AddItem(new MenuItem("Marksman.Compare", "Compare me with").SetValue(new StringList(strCompare, 0))); GlobalDrawings.AddSubMenu(menuCompare); } GlobalDrawings.AddItem(new MenuItem("Draw.KillableEnemy", "Killable Enemy Text").SetValue(false)); GlobalDrawings.AddItem(new MenuItem("Draw.MinionLastHit", "Minion Last Hit").SetValue(new StringList(new[] { "Off", "On", "Just Out of AA Range Minions" }, 2))); //GlobalDrawings.AddItem(new MenuItem("Draw.JunglePosition", "Jungle Farm Position").SetValue(new StringList(new[] { "Off", "If I'm Close to Mobs", "If Jungle Clear Active" }, 2))); GlobalDrawings.AddItem(new MenuItem("Draw.DrawMinion", "Draw Minions Sprite").SetValue(false)); GlobalDrawings.AddItem(new MenuItem("Draw.DrawTarget", "Draw Target Sprite").SetValue(true)); marksmanDrawings.AddSubMenu(GlobalDrawings); } } ChampionClass.MainMenu(Config); //Evade.Evade.Initiliaze(); //Config.AddSubMenu(Evade.Config.Menu); Config.AddToMainMenu(); foreach (var i in Config.Children.Cast <Menu>().SelectMany(GetChildirens)) { i.DisplayName = ":: " + i.DisplayName; } //CheckAutoWindUp(); Drawing.OnDraw += Drawing_OnDraw; Game.OnUpdate += Game_OnGameUpdate; Game.OnUpdate += eventArgs => { if (ChampionClass.LaneClearActive) { ExecuteLaneClear(); } if (ChampionClass.JungleClearActive) { ExecuteJungleClear(); } PermaActive(); }; Orb.Orbwalking.AfterAttack += Orbwalking_AfterAttack; Orb.Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; GameObject.OnCreate += OnCreateObject; GameObject.OnDelete += OnDeleteObject; Obj_AI_Base.OnBuffAdd += Obj_AI_Base_OnBuffAdd; Obj_AI_Base.OnBuffRemove += Obj_AI_Base_OnBuffRemove; Spellbook.OnCastSpell += Spellbook_OnCastSpell; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Console.Clear(); }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("Marksman", "Marksman", true); CClass = new Champion(); if (ObjectManager.Player.ChampionName == "Caitlyn") { CClass = new Caitlyn(); } if (ObjectManager.Player.ChampionName == "Quinn") { CClass = new Quinn(); } if (ObjectManager.Player.ChampionName == "Corki") { CClass = new Corki(); } if (ObjectManager.Player.ChampionName == "Ezreal") { CClass = new Ezreal(); } if (ObjectManager.Player.ChampionName == "Graves") { CClass = new Graves(); } if (ObjectManager.Player.ChampionName == "Jinx") { CClass = new Jinx(); } if (ObjectManager.Player.ChampionName == "KogMaw") { CClass = new Kogmaw(); } if (ObjectManager.Player.ChampionName == "Lucian") { CClass = new Lucian(); } if (ObjectManager.Player.ChampionName == "Sivir") { CClass = new Sivir(); } if (ObjectManager.Player.ChampionName == "Teemo") { CClass = new Teemo(); } if (ObjectManager.Player.ChampionName == "Tristana") { CClass = new Tristana(); } if (ObjectManager.Player.ChampionName == "Twitch") { CClass = new Twitch(); } if (ObjectManager.Player.ChampionName == "Vayne") { CClass = new Vayne(); } CClass.Id = ObjectManager.Player.BaseSkinName; CClass.Config = Config; var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); SimpleTs.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); var orbwalking = Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking); var items = Config.AddSubMenu(new Menu("Items", "Items")); items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true)); items.AddItem( new MenuItem("UseItemsMode", "Use items on").SetValue( new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2))); var combo = Config.AddSubMenu(new Menu("Combo", "Combo")); CClass.ComboMenu(combo); var harass = Config.AddSubMenu(new Menu("Harass", "Harass")); CClass.HarassMenu(harass); var laneclear = Config.AddSubMenu(new Menu("LaneClear", "LaneClear")); CClass.LaneClearMenu(laneclear); var misc = Config.AddSubMenu(new Menu("Misc", "Misc")); CClass.MiscMenu(misc); var drawing = Config.AddSubMenu(new Menu("Drawings", "Drawings")); CClass.DrawingMenu(drawing); CClass.MainMenu(Config); Config.AddToMainMenu(); Drawing.OnDraw += Drawing_OnDraw; Game.OnGameUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += Orbwalking_AfterAttack; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("Marksman", "Marksman", true).SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); CClass = new Champion(); var BaseType = CClass.GetType(); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName.ToLowerInvariant(); switch (championName) { case "ashe": CClass = new Ashe(); break; case "caitlyn": CClass = new Caitlyn(); break; case "corki": CClass = new Corki(); break; case "draven": CClass = new Draven(); break; case "ezreal": CClass = new Ezreal(); break; case "graves": CClass = new Graves(); break; case "gnar": CClass = new Gnar(); break; case "jinx": CClass = new Jinx(); break; case "kalista": CClass = new Kalista(); break; case "kindred": CClass = new Kindred(); break; case "kogmaw": CClass = new Kogmaw(); break; case "lucian": CClass = new Lucian(); break; case "missfortune": CClass = new MissFortune(); break; case "quinn": CClass = new Quinn(); break; case "sivir": CClass = new Sivir(); break; case "teemo": CClass = new Teemo(); break; case "tristana": CClass = new Tristana(); break; case "twitch": CClass = new Twitch(); break; case "urgot": CClass = new Urgot(); break; case "vayne": CClass = new Vayne(); break; case "varus": CClass = new Varus(); break; } Config.DisplayName = "Marksman | " + CultureInfo.CurrentCulture.TextInfo.ToTitleCase(championName); CClass.Id = ObjectManager.Player.CharData.BaseSkinName; CClass.Config = Config; OrbWalking = Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); CClass.Orbwalker = new Marksman.Utils.Orbwalking.Orbwalker(OrbWalking); OrbWalking.AddItem(new MenuItem("Orb.AutoWindUp", "Marksman - Auto Windup").SetValue(false)).ValueChanged += (sender, argsEvent) => { if (argsEvent.GetNewValue <bool>()) { CheckAutoWindUp(); } }; AActivator = new Activator(); MenuActivator = new Menu("Activator", "Activator").SetFontStyle(FontStyle.Regular, SharpDX.Color.Aqua); { AutoLevel = new Utils.AutoLevel(); AutoPink = new Utils.AutoPink(); AutoPink.Initialize(); IncomingDangerous.Initialize(); //ExecutedTime.Initialize(); AutoBushRevealer = new AutoBushRevealer(); //EarlyEvade = new Utils.EarlyEvade(); //MenuActivator.AddSubMenu(EarlyEvade.MenuLocal); /* Menu Items */ var items = MenuActivator.AddSubMenu(new Menu("Items", "Items")); items.AddItem(new MenuItem("BOTRK", "BOTRK").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "Ghostblade").SetValue(true)); items.AddItem(new MenuItem("SWORD", "Sword of the Divine").SetValue(true)); items.AddItem(new MenuItem("MURAMANA", "Muramana").SetValue(true)); QuickSilverMenu = new Menu("QSS", "QuickSilverSash"); items.AddSubMenu(QuickSilverMenu); QuickSilverMenu.AddItem(new MenuItem("AnyStun", "Any Stun").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySlow", "Any Slow").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySnare", "Any Snare").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "Any Taunt").SetValue(true)); foreach (var t in AActivator.BuffList) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy)) { if (t.ChampionName == enemy.ChampionName) { QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue)); } } } items.AddItem( new MenuItem("UseItemsMode", "Use items on").SetValue( new StringList(new[] { "No", "Mixed mode", "Combo mode", "Both" }, 2))); new PotionManager(MenuActivator); /* Menu Summoners */ var summoners = MenuActivator.AddSubMenu(new Menu("Summoners", "Summoners")); { var summonersHeal = summoners.AddSubMenu(new Menu("Heal", "Heal")); { summonersHeal.AddItem(new MenuItem("SUMHEALENABLE", "Enable").SetValue(true)); summonersHeal.AddItem( new MenuItem("SUMHEALSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1))); } var summonersBarrier = summoners.AddSubMenu(new Menu("Barrier", "Barrier")); { summonersBarrier.AddItem(new MenuItem("SUMBARRIERENABLE", "Enable").SetValue(true)); summonersBarrier.AddItem( new MenuItem("SUMBARRIERSLIDER", "Min. Heal Per.").SetValue(new Slider(20, 99, 1))); } var summonersIgnite = summoners.AddSubMenu(new Menu("Ignite", "Ignite")); { summonersIgnite.AddItem(new MenuItem("SUMIGNITEENABLE", "Enable").SetValue(true)); } } } Config.AddSubMenu(MenuActivator); //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras")); //new PotionManager(Extras); // If Champion is supported draw the extra menus if (BaseType != CClass.GetType()) { SetSmiteSlot(); var combo = new Menu("Combo", "Combo").SetFontStyle(FontStyle.Regular, SharpDX.Color.GreenYellow); if (CClass.ComboMenu(combo)) { if (SmiteSlot != SpellSlot.Unknown) { combo.AddItem(new MenuItem("ComboSmite", "Use Smite").SetValue(true)); } Config.AddSubMenu(combo); } var harass = new Menu("Harass", "Harass"); if (CClass.HarassMenu(harass)) { harass.AddItem(new MenuItem("HarassMana", "Min. Mana Percent").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(harass); } var laneclear = new Menu("Lane Mode", "LaneClear"); if (CClass.LaneClearMenu(laneclear)) { laneclear.AddItem(new MenuItem("Lane.Enabled", ":: Enable Lane Farm!").SetValue(new KeyBind("L".ToCharArray()[0], KeyBindType.Toggle, true))).Permashow(true, "Marsman | Enable Lane Farm", SharpDX.Color.Aqua); var minManaMenu = new Menu("Min. Mana Settings", "Lane.MinMana.Title"); { minManaMenu.AddItem(new MenuItem("LaneMana.Alone", "If I'm Alone %:").SetValue(new Slider(30, 100, 0))).SetFontStyle(FontStyle.Regular, Color.LightSkyBlue); minManaMenu.AddItem(new MenuItem("LaneMana.Enemy", "If Enemy Close %:").SetValue(new Slider(60, 100, 0))).SetFontStyle(FontStyle.Regular, Color.IndianRed); laneclear.AddSubMenu(minManaMenu); } Config.AddSubMenu(laneclear); } var jungleClear = new Menu("Jungle Mode", "JungleClear"); if (CClass.JungleClearMenu(jungleClear)) { var minManaMenu = new Menu("Min. Mana Settings", "Jungle.MinMana.Title"); { minManaMenu.AddItem(new MenuItem("Jungle.Mana.Ally", "Ally Mobs %:").SetValue(new Slider(50, 100, 0))).SetFontStyle(FontStyle.Regular, Color.LightSkyBlue); minManaMenu.AddItem(new MenuItem("Jungle.Mana.Enemy", "Enemy Mobs %:").SetValue(new Slider(30, 100, 0))).SetFontStyle(FontStyle.Regular, Color.IndianRed); minManaMenu.AddItem(new MenuItem("Jungle.Mana.BigBoys", "Baron/Dragon %:").SetValue(new Slider(70, 100, 0))).SetFontStyle(FontStyle.Regular, Color.HotPink); jungleClear.AddSubMenu(minManaMenu); } jungleClear.AddItem(new MenuItem("Jungle.Items", ":: Use Items:").SetValue(new StringList(new[] { "Off", "Use for Baron", "Use for Baron", "Both" }, 3))); jungleClear.AddItem(new MenuItem("Jungle.Enabled", ":: Enable Jungle Farm!").SetValue(new KeyBind("J".ToCharArray()[0], KeyBindType.Toggle, true))).Permashow(true, "Marsman | Enable Jungle Farm", SharpDX.Color.Aqua); Config.AddSubMenu(jungleClear); } /*----------------------------------------------------------------------------------------------------------*/ Obj_AI_Base ally = (from aAllies in HeroManager.Allies from aSupportedChampions in new[] { "janna", "tahm", "leona", "lulu", "lux", "nami", "shen", "sona", "braum", "bard" } where aSupportedChampions == aAllies.ChampionName.ToLower() select aAllies).FirstOrDefault(); if (ally != null) { var menuAllies = new Menu("Ally Combo", "Ally.Combo").SetFontStyle(FontStyle.Regular, SharpDX.Color.Crimson); { Obj_AI_Hero Leona = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "leona"); if (Leona != null) { var menuLeona = new Menu("Leona", "Leona"); menuLeona.AddItem(new MenuItem("Leona.ComboBuff", "Force Focus Marked Enemy for Bonus Damage").SetValue(true)); menuAllies.AddSubMenu(menuLeona); } Obj_AI_Hero Lux = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "lux"); if (Lux != null) { var menuLux = new Menu("Lux", "Lux"); menuLux.AddItem(new MenuItem("Lux.ComboBuff", "Force Focus Marked Enemy for Bonus Damage").SetValue(true)); menuAllies.AddSubMenu(menuLux); } Obj_AI_Hero Shen = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "shen"); if (Shen != null) { var menuShen = new Menu("Shen", "Shen"); menuShen.AddItem(new MenuItem("Shen.ComboBuff", "Force Focus Q Marked Enemy Objects for Heal").SetValue(true)); menuShen.AddItem(new MenuItem("Shen.ComboBuff", "Minimum Heal:").SetValue(new Slider(80))); menuAllies.AddSubMenu(menuShen); } Obj_AI_Hero Tahm = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "Tahm"); if (Tahm != null) { var menuTahm = new Menu("Tahm", "Tahm"); menuTahm.AddItem(new MenuItem("Tahm.ComboBuff", "Force Focus Marked Enemy for Stun").SetValue(true)); menuAllies.AddSubMenu(menuTahm); } Obj_AI_Hero Sona = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "Sona"); if (Sona != null) { var menuSona = new Menu("Sona", "Sona"); menuSona.AddItem(new MenuItem("Sona.ComboBuff", "Force Focus to Marked Enemy").SetValue(true)); menuAllies.AddSubMenu(menuSona); } Obj_AI_Hero Lulu = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "Lulu"); if (Lulu != null) { var menuLulu = new Menu("Lulu", "Lulu"); menuLulu.AddItem(new MenuItem("Lulu.ComboBuff", "Force Focus to Enemy If I have E buff").SetValue(true)); menuAllies.AddSubMenu(menuLulu); } Obj_AI_Hero Nami = HeroManager.Allies.Find(e => e.ChampionName.ToLower() == "nami"); if (Nami != null) { var menuNami = new Menu("Nami", "Nami"); menuNami.AddItem(new MenuItem("Nami.ComboBuff", "Force Focus to Enemy If I have E Buff").SetValue(true)); menuAllies.AddSubMenu(menuNami); } } Config.AddSubMenu(menuAllies); } /*----------------------------------------------------------------------------------------------------------*/ var misc = new Menu("Misc", "Misc").SetFontStyle(FontStyle.Regular, SharpDX.Color.DarkOrange); if (CClass.MiscMenu(misc)) { misc.AddItem(new MenuItem("Misc.SaveManaForUltimate", "Save Mana for Ultimate").SetValue(false)); Config.AddSubMenu(misc); } /* * var extras = new Menu("Extras", "Extras"); * if (CClass.ExtrasMenu(extras)) * { * Config.AddSubMenu(extras); * } */ var marksmanDrawings = new Menu("Drawings", "MDrawings"); Config.AddSubMenu(marksmanDrawings); var drawing = new Menu(CultureInfo.CurrentCulture.TextInfo.ToTitleCase(championName), "Drawings").SetFontStyle(FontStyle.Regular, SharpDX.Color.Aquamarine); if (CClass.DrawingMenu(drawing)) { marksmanDrawings.AddSubMenu(drawing); } var GlobalDrawings = new Menu("Global", "GDrawings"); { marksmanDrawings.AddItem(new MenuItem("Draw.TurnOff", "Drawings").SetValue(new StringList(new[] { "Disable", "Enable", "Disable on Combo Mode", "Disable on Lane/Jungle Mode", "Both" }, 1))); var menuCompare = new Menu("Compare me with", "Menu.Compare"); { string[] strCompare = new string[HeroManager.Enemies.Count + 1]; strCompare[0] = "Off"; var i = 1; foreach (var e in HeroManager.Enemies) { strCompare[i] = e.ChampionName; i += 1; } menuCompare.AddItem(new MenuItem("Marksman.Compare.Set", "Set").SetValue(new StringList(new[] { "Off", "Auto Compare at Startup" }, 1))); menuCompare.AddItem(new MenuItem("Marksman.Compare", "Compare me with").SetValue(new StringList(strCompare, 0))); GlobalDrawings.AddSubMenu(menuCompare); } GlobalDrawings.AddItem(new MenuItem("Draw.KillableEnemy", "Killable Enemy Text").SetValue(false)); GlobalDrawings.AddItem(new MenuItem("Draw.MinionLastHit", "Minion Last Hit").SetValue(new StringList(new[] { "Off", "On", "Just Out of AA Range Minions" }, 2))); //GlobalDrawings.AddItem(new MenuItem("Draw.JunglePosition", "Jungle Farm Position").SetValue(new StringList(new[] { "Off", "If I'm Close to Mobs", "If Jungle Clear Active" }, 2))); GlobalDrawings.AddItem(new MenuItem("Draw.DrawMinion", "Draw Minions Sprite").SetValue(false)); GlobalDrawings.AddItem(new MenuItem("Draw.DrawTarget", "Draw Target Sprite").SetValue(true)); marksmanDrawings.AddSubMenu(GlobalDrawings); } } if (Config.Item("Marksman.Compare.Set").GetValue <StringList>().SelectedIndex == 1) { LoadDefaultCompareChampion(); } CClass.MainMenu(Config); if (championName == "sivir") { Evade.Evade.Initiliaze(); Evade.Config.Menu.DisplayName = "E"; Config.AddSubMenu(Evade.Config.Menu); } //Evade.Evade.Initiliaze(); //Config.AddSubMenu(Evade.Config.Menu); Config.AddToMainMenu(); foreach (var i in Config.Children.Cast <Menu>().SelectMany(GetChildirens)) { i.DisplayName = ":: " + i.DisplayName; } Sprite.Load(); CheckAutoWindUp(); Drawing.OnDraw += Drawing_OnDraw; Game.OnUpdate += Game_OnGameUpdate; Game.OnUpdate += eventArgs => { if (CClass.FleeActive) { ExecuteFlee(); } if (CClass.LaneClearActive) { ExecuteLaneClear(); } if (CClass.JungleClearActive) { ExecuteJungleClear(); } PermaActive(); }; Marksman.Utils.Orbwalking.AfterAttack += Orbwalking_AfterAttack; Marksman.Utils.Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; GameObject.OnCreate += OnCreateObject; GameObject.OnDelete += OnDeleteObject; Obj_AI_Base.OnBuffAdd += Obj_AI_Base_OnBuffAdd; Obj_AI_Base.OnBuffRemove += Obj_AI_Base_OnBuffRemove; Spellbook.OnCastSpell += Spellbook_OnCastSpell; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; AsmLoadingTime = Game.Time; }
private static void Game_OnGameLoad(EventArgs args) { Config = new Menu("Marksman", "Marksman", true); CClass = new Champion(); AActivator = new Activator(); var BaseType = CClass.GetType(); /* Update this with Activator.CreateInstance or Invoke * http://stackoverflow.com/questions/801070/dynamically-invoking-any-function-by-passing-function-name-as-string * For now stays cancer. */ var championName = ObjectManager.Player.ChampionName.ToLowerInvariant(); switch (championName) { case "ashe": CClass = new Ashe(); break; case "caitlyn": CClass = new Caitlyn(); break; case "corki": CClass = new Corki(); break; case "draven": CClass = new Draven(); break; case "ezreal": CClass = new Ezreal(); break; case "graves": CClass = new Graves(); break; case "jinx": CClass = new Jinx(); break; case "kogmaw": CClass = new Kogmaw(); break; case "lucian": CClass = new Lucian(); break; case "missfortune": CClass = new MissFortune(); break; case "quinn": CClass = new Quinn(); break; case "sivir": CClass = new Sivir(); break; case "teemo": CClass = new Teemo(); break; case "tristana": CClass = new Tristana(); break; case "twitch": CClass = new Twitch(); break; case "vayne": CClass = new Vayne(); break; case "varus": CClass = new Varus(); break; } CClass.Id = ObjectManager.Player.BaseSkinName; CClass.Config = Config; var targetSelectorMenu = new Menu("目标选择", "Target Selector"); SimpleTs.AddToMenu(targetSelectorMenu); Config.AddSubMenu(targetSelectorMenu); var orbwalking = Config.AddSubMenu(new Menu("走砍", "Orbwalking")); CClass.Orbwalker = new Orbwalking.Orbwalker(orbwalking); var items = Config.AddSubMenu(new Menu("物品", "Items")); items.AddItem(new MenuItem("BOTRK", "破败").SetValue(true)); items.AddItem(new MenuItem("GHOSTBLADE", "小弯刀").SetValue(true)); QuickSilverMenu = new Menu("Quick Silver Sash", "水银腰带"); items.AddSubMenu(QuickSilverMenu); QuickSilverMenu.AddItem(new MenuItem("AnyStun", "眩晕").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnySnare", "夹子").SetValue(true)); QuickSilverMenu.AddItem(new MenuItem("AnyTaunt", "嘲讽").SetValue(true)); foreach (var t in AActivator.BuffList) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsEnemy)) { if (t.ChampionName == enemy.ChampionName) { QuickSilverMenu.AddItem(new MenuItem(t.BuffName, t.DisplayName).SetValue(t.DefaultValue)); } } } items.AddItem( new MenuItem("UseItemsMode", "使用物品").SetValue( new StringList(new[] { "不", "混合", "连招", "全部" }, 2))); //var Extras = Config.AddSubMenu(new Menu("Extras", "Extras")); //new PotionManager(Extras); // If Champion is supported draw the extra menus if (BaseType != CClass.GetType()) { var combo = new Menu("连招", "Combo"); if (CClass.ComboMenu(combo)) { Config.AddSubMenu(combo); } var harass = new Menu("骚扰", "Harass"); if (CClass.HarassMenu(harass)) { harass.AddItem(new MenuItem("HarassMana", "Min蓝%").SetValue(new Slider(50, 100, 0))); Config.AddSubMenu(harass); } var laneclear = new Menu("LaneClear", "清线"); if (CClass.LaneClearMenu(laneclear)) { Config.AddSubMenu(laneclear); } var misc = new Menu("Misc", "杂项"); if (CClass.MiscMenu(misc)) { Config.AddSubMenu(misc); } var extras = new Menu("Extras", "附加"); if (CClass.ExtrasMenu(extras)) { new PotionManager(extras); Config.AddSubMenu(extras); } var drawing = new Menu("Drawings", "显示"); if (CClass.DrawingMenu(drawing)) { Config.AddSubMenu(drawing); } } CClass.MainMenu(Config); Config.AddToMainMenu(); Drawing.OnDraw += Drawing_OnDraw; Game.OnGameUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += Orbwalking_AfterAttack; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; }