private static async void Game_OnGameLoad(EventArgs eventArgs) { if (Info.Item("新闻").GetValue <bool>()) { var news = await FrozenGJ.FetchNews(); if (!string.IsNullOrEmpty(news)) { FrozenGJ.News(news); } } DrawWaterMark = false; WaterMarkFont.Dispose(); ShowLogo(); DisableDrawings = LeagueSharp.Hacks.DisableDrawings; EndTime = 0f; Draw = Menu.AddSubMenu(new Menu("屏蔽显示", "AsStreamMode")); Draw.AddItem(new MenuItem("屏蔽显示", "屏蔽显示").SetValue(new KeyBind('I', KeyBindType.Toggle, LeagueSharp.Hacks.DisableDrawings))).ValueChanged += delegate(object sender, OnValueChangeEventArgs args) { LeagueSharp.Hacks.DisableDrawings = args.GetNewValue <KeyBind>().Active; DisableDrawings = args.GetNewValue <KeyBind>().Active; }; Draw.AddItem(new MenuItem("商店屏蔽", "购买东西时屏蔽显示").SetValue(true)); Draw.AddItem(new MenuItem("比分屏蔽", "查看比分时屏蔽显示").SetValue(true)); Draw.AddItem(new MenuItem("超神屏蔽", "超神屏蔽显示").SetValue(true)); Draw.AddItem(new MenuItem("连杀人数", "已连杀人数").SetValue(new Slider(0, 0, 8)).SetTooltip("不要轻易改动这个,除非这个已经不准了")); Draw.AddItem(new MenuItem("多杀屏蔽", "多杀屏蔽显示").SetValue(true)); Draw.AddItem(new MenuItem("屏蔽时长", "屏蔽时长(单位:秒)").SetValue(new Slider(4, 0, 9))); Draw.AddItem(new MenuItem("32", "屏蔽显示作者:晴依")); PingBlocker = Menu.AddSubMenu(new Menu("屏蔽信号", "PingBlocker")); PingBlocker.AddItem(new MenuItem("pb0", "允许以下人员发送信号")); foreach (var hero in HeroManager.Allies) { PingBlocker.AddItem(new MenuItem(hero.Name, $"{hero.CnName()} ( {hero.Name.ToGBK()} )").SetValue(true)); } PingBlocker.AddItem(new MenuItem("pb3", "")); PingBlocker.AddItem(new MenuItem("pb1", "屏蔽信号不能分辨是脚本打的").SetFontStyle(FontStyle.Regular, SharpDX.Color.Gold)); PingBlocker.AddItem(new MenuItem("pb2", "还是手动打的,会统一处理").SetFontStyle(FontStyle.Regular, SharpDX.Color.Gold)); Language = new Menu("语言设置", "语言设置"); Language.AddItem(new MenuItem("语言", "强制菜单使用以下语言").SetValue(new StringList(new[] { "默认", "中文", "英文" }, 1))); Language.AddItem(new MenuItem("33", "更换语言后需要F5重载脚本生效")); Game.OnPing += Game_OnPing; Game.OnNotify += Game_OnNotify; Game.OnUpdate += Game_OnUpdate; Game.OnStart += Game_OnStart; }
public static void BadaoActivate() { Variables.Q = new Spell(SpellSlot.Q, 625); Variables.Q.SetSkillshot(0.25f, 70, float.MaxValue, false, SkillshotType.SkillshotLine); Variables.W = new Spell(SpellSlot.W, 300); Variables.E = new Spell(SpellSlot.E, 1000); Variables.R = new Spell(SpellSlot.R); Variables.E.SetSkillshot(0.25f, 70, 1500, true, SkillshotType.SkillshotLine); Variables.E.MinHitChance = HitChance.Medium; Variables.E2 = new Spell(SpellSlot.E, 1000); Variables.E2.SetSkillshot(0.25f, 70, 1500, true, SkillshotType.SkillshotLine); Variables.E2.MinHitChance = HitChance.Medium; Variables.W.SetSkillshot(0.25f, 500, 2000, false, SkillshotType.SkillshotCircle); Variables.W.MinHitChance = HitChance.Medium; foreach (var spell in Player.Spellbook.Spells.Where( i => i.Name.ToLower().Contains("smite") && (i.Slot == SpellSlot.Summoner1 || i.Slot == SpellSlot.Summoner2))) { Variables.Smite = spell.Slot; } Menu = new Menu("The Lazy Cat", Player.ChampionName, true); var orbwalkerMenu = new Menu("Orbwalker", "Orbwalker"); Variables.Orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu); Menu.AddSubMenu(orbwalkerMenu); var ts = Menu.AddSubMenu(new Menu("Target Selector", "Target Selector"));; TargetSelector.AddToMenu(ts); // Modes Modes = Menu.AddSubMenu(new Menu("Modes", "modes")); // Combo Combo = Modes.AddSubMenu(new Menu("Combo", "Combo")); Variables.ComboSmite = Combo.AddItem(new MenuItem("comboUseSmite", "Use Smite").SetValue(true)); Variables.ComboMode = Combo.AddItem(new MenuItem("comboMode", "Combo Mode").SetValue(new StringList(new[] { "Q", "W", "E" }, 0))); Variables.ComboSwitchKey = Combo.AddItem(new MenuItem("ComboSwitch", "ComboModeSwitch").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Press))); //Harass //Harass = Modes.AddSubMenu(new Menu("Harass", "Harass")); //Variables.HarassW = Harass.AddItem(new MenuItem("harassUseW", "Use W").SetValue(true)); //Variables.HarassE = Harass.AddItem(new MenuItem("harassUseE", "Use E").SetValue(true)); //Assasinate Assasinate = Modes.AddSubMenu(new Menu("Assasinate", "Assasinate")); Variables.AssasinateInstruction = Assasinate.AddItem(new MenuItem("AssasinateInstruction", "Only Works On Selected Target")); Variables.AssassinateKey = Assasinate.AddItem(new MenuItem("AssassinateKey", "Assassinate Key").SetValue(new KeyBind("Y".ToCharArray()[0], KeyBindType.Press))); Variables.AssasinateSwitchKey = Assasinate.AddItem(new MenuItem("AssasinateSwitchKey", "Switch Target Key").SetValue(new KeyBind("H".ToCharArray()[0], KeyBindType.Press))); foreach (var hero in HeroManager.Enemies) { heroList.Add(hero.ChampionName + "(" + hero.Name + ")"); } Variables.AssasinateTarget = Assasinate.AddItem(new MenuItem("AssasinateTarget", "Assasinate Target").SetValue(new StringList(heroList.ToArray()))); //LaneClear LaneClear = Modes.AddSubMenu(new Menu("LaneClear", "LaneClear")); Variables.LaneQ = LaneClear.AddItem(new MenuItem("laneUseQ", "Use Q").SetValue(true)); Variables.LaneW = LaneClear.AddItem(new MenuItem("laneUseW", "Use W").SetValue(true)); Variables.LaneE = LaneClear.AddItem(new MenuItem("laneUseE", "Use E").SetValue(true)); Variables.LaneTiamat = LaneClear.AddItem(new MenuItem("laneUseTiamat", "Use Tiamat/Hydra").SetValue(true)); //JungleClear JungleClear = Modes.AddSubMenu(new Menu("JungleClear", "JungleClear")); Variables.JungQ = JungleClear.AddItem(new MenuItem("jungUseQ", "Use Q").SetValue(true)); Variables.JungW = JungleClear.AddItem(new MenuItem("jungUseW", "Use W").SetValue(true)); Variables.JungE = JungleClear.AddItem(new MenuItem("jungUseE", "Use E").SetValue(true)); Variables.JungTiamat = JungleClear.AddItem(new MenuItem("jungUseTiamat", "Use Tiamat/Hydra").SetValue(true)); //Auto Auto = Modes.AddSubMenu(new Menu("Auto", "Auto")); Variables.AutoEInterrupt = Auto.AddItem(new MenuItem("autoEInterrupt", "Interrupt with E").SetValue(true)); Variables.AutoSmiteKS = Auto.AddItem(new MenuItem("autoSmiteKS", "Smite KS(blue / red)").SetValue(true)); Variables.AutoESK = Auto.AddItem(new MenuItem("autoEKS", "E Ks").SetValue(true)); Variables.AutoWKS = Auto.AddItem(new MenuItem("autoWKS", "W Ks").SetValue(true)); Variables.AutoSmiteSteal = Auto.AddItem(new MenuItem("autoSteal", "Smite steal Drake/Baron").SetValue(true)); //drawing Draw = Menu.AddSubMenu(new Menu("Drawing", "Drawing")); Variables.DrawMode = Draw.AddItem(new MenuItem("drawMode", "Draw Mode").SetValue(true)); Variables.DrawAssasinate = Draw.AddItem(new MenuItem("DrawAssasinate", "Draw Assasinate Target").SetValue(true)); //magnet Magnet = Menu.AddSubMenu(new Menu("Magnet", "Magnet")); Magnet.AddItem(new MenuItem("MagnetInstruction", "Magnet Only Works On Selected Target")); Variables.MagnetEnable = Magnet.AddItem(new MenuItem("magnetEnable", "Enable").SetValue(true)); Variables.MagnetRange = Magnet.AddItem(new MenuItem("magnetRange", "Magnet Range").SetValue(new Slider(300, 150, 500))); Menu.AddToMainMenu(); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; }