static void Main(string[] args) { Console.Clear(); CustomEvents.Game.OnGameLoad += load => { //Start caching objects Creatures.Load(); Structures.Load(); //Check for updates Helpers.Updater(); //Initialize AutoLeveler new AutoLevel(LevelSequences.GetSequence().Select(num => num - 1).ToArray()); AutoLevel.Enable(); //Load Champion Plugin new PluginLoader(); }; Game.OnUpdate += tick => { EasyPositioning.Update(); Behaviors.Tree.Root.Tick(); }; }
private static void OnLoadingComplete(EventArgs args) { if (Player.Instance.Hero != Champion.Riven) { return; } Spells.Initialize(); ModeController.Initialize(); MenuDesigner.Initialize(); Variables.Initialize(); Logic.IniInitialize(); AutoLevel.Initialize(); Obj_AI_Base.OnPlayAnimation += OnPlayAnimation; Orbwalker.OnPostAttack += OnPostAttack; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; Obj_AI_Base.OnBuffGain += OnBuffGain; Obj_AI_Base.OnBuffLose += OnBuffLose; Interrupter.OnInterruptableSpell += OnInterruptableSpell; Gapcloser.OnGapcloser += OnGapcloser; Drawing.OnDraw += OnDraw; Chat.Print("Ex1L Riven made by Enelx !"); }
static void Game_OnGameLoad(EventArgs args) { if (Game.MapId != SummonerRift) { return; } Revive = Player.GetSpellSlot("SummonerRevive"); Ghost = Player.GetSpellSlot("SummonerHaste"); Flash = Player.GetSpellSlot("SummonerFlash"); Game.OnGameUpdate += Game_OnGameUpdate; Drawing.OnDraw += Drawing_OnDraw; Menu = new Menu("[xcsoft] Let's Feeding", "xcoft_feeder", true); Menu.AddItem(new MenuItem("switch", "Switch").SetValue(false)); Menu.Item("switch").ValueChanged += Enabled_ValueChanged; Menu.AddItem(new MenuItem("enjoy", "Enjoy!")); Menu.AddToMainMenu(); if (Menu.Item("switch").GetValue <bool>()) { var level = new AutoLevel(new[] { 1, 2, 3, 1, 2, 4, 3, 1, 2, 3, 4, 1, 2, 3, 1, 4, 1, 2 }); } Game.PrintChat("<font color = \"#33CCCC\">[xcsoft] Let's feeding -</font> Loaded"); }
public void Add(string spellPriorityDesc, int[] spellPriority) { SpellPriorityList.Add(spellPriorityDesc, spellPriority); AutoLevel = new AutoLevel(spellPriority); AutoLevel.Enabled(true); }
public AutoLeveler(Menu config) { configMenu = config; config.AddItem(new MenuItem(player.ChampionName + "order", "Skill order", true)).SetValue(new StringList(new[] { "Q->W->E", "Q->E->W", "W->Q->E", "W->E->Q", "E->Q->W", "E->W->Q" }, 0)); config.AddItem(new MenuItem(player.ChampionName + "Enabled", "Enabled")).SetValue(false); config.AddItem(new MenuItem("Test", "Test Only")); autoLevel = new AutoLevel(GetTree(configMenu.Item(player.ChampionName + "order", true).GetValue <StringList>().SelectedIndex)); Game.OnUpdate += Game_OnUpdate; }
public static void Checks() { //Updates the auto-leveling sequence each time (redundant) List<SpellSlot> SKILL_SEQUENCE = new List<SpellSlot>() { SpellSlot.Q, SpellSlot.E, SpellSlot.E, SpellSlot.W, SpellSlot.E, SpellSlot.R, SpellSlot.E, SpellSlot.Q, SpellSlot.E, SpellSlot.Q, SpellSlot.R, SpellSlot.Q, SpellSlot.Q, SpellSlot.W, SpellSlot.W, SpellSlot.R, SpellSlot.W, SpellSlot.W }; AutoLevel.UpdateSequence(SKILL_SEQUENCE); //Enables if user selects yes else disables if (Program.menuController.getMenu().Item("autoLevel").GetValue<bool>()) AutoLevel.Enable(); else AutoLevel.Disable(); }
private static void OnChange(object sender, OnValueChangeEventArgs e) { if (e.GetNewValue <bool>()) { AutoLevel.Enable(); } else { AutoLevel.Disable(); } }
public static void GetSpelltree(int[] defTree) { int[] tree = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; for (var i = 0; i < 18; i++) { tree[i] = defTree[i] - 1; } autoLevel = new AutoLevel(tree); AutoLevel.Enabled(true); }
private void Game_OnUpdate(EventArgs args) { if (enabled && configMenu.Item(player.ChampionName + "Enabled").GetValue <bool>()) { AutoLevel.UpdateSequence(GetTree(configMenu.Item(player.ChampionName + "order", true).GetValue <StringList>().SelectedIndex)); AutoLevel.Enable(); } else { AutoLevel.Disable(); } }
/* * public static void GetSpelltree(string path) * { * var str = GetSettingValue_String("SpellTree", "Value", path).Replace(" ","").Split(','); * int[] tree = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; * * Game.PrintChat("I'm your servant." ); * * for (var i = 0; i < 18;i++ ) * { * tree[i] = Convert.ToInt32(str[i])-1; * } * var myAutoLevel = new AutoLevel(tree); * AutoLevel.Enabled(true); * } */ public static void GetSpelltree(int[] defTree) { int[] tree = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; Game.PrintChat("Tempo Fix."); for (var i = 0; i < 18; i++) { tree[i] = Convert.ToInt32(defTree[i]) - 1; } var myAutoLevel = new AutoLevel(tree); AutoLevel.Enabled(true); }
private static void Game_OnGameLoad(EventArgs args) { Menu = new Menu("AutoLevelSpells", "AutoLevelSpells", true); Menu.AddItem(new MenuItem("Enabled", "Enabled").SetValue(true)); Menu.Item("Enabled").ValueChanged += Enabled_ValueChanged; Menu.AddToMainMenu(); if (Menu.Item("Enabled").GetValue <bool>()) { var level = new AutoLevel(GetSequence()); } }
public static void OnLoad(EventArgs args) { AutoLevel.UpdateSequence(new List <SpellSlot>() { SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.R, SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.R, SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.Unknown, SpellSlot.R }); _menu = new Menu("AutoUltLeveling", "menu", true); _menu.AddItem(new MenuItem("autoultlevel_activate", "Auto Ult Leveling").SetValue(true)); _menu.AddItem(new MenuItem("42424242", "Credits - Romesti")); _menu.Item("autoultlevel_activate").ValueChanged += OnChange; AutoLevel.Enable(); _menu.AddToMainMenu(); }
public static void Init() { MenuIni = MainMenu.AddMenu("DNK", "DNK"); MenuIni.AddGroupLabel("DNK Settings"); MenuIni.Add("DisableSpells", new CheckBox("Disable Built-in Casting Logic", false)); MenuIni.Add("Safe", new Slider("Safe Slider (Recommended 1250)", 1250, 0, 2500)); MenuIni.AddLabel("More Value = more defensive playstyle"); // Initialize Bot Functions. Brain.Init(); Auto.HowlingAbyss.ARAMShopAI.Main.Init(); AutoLevel.GetSequence(); Chat.Print("Buddy Loaded !"); }
private static void Game_OnGameUpdate(EventArgs args) { if (!Menu.Item("Enabled", true).IsActive()) { return; } AutoLevel.Enable(); if (SequenceDiffers(AutoLevel.GetSequence(), Sequence)) { AutoLevel.UpdateSequence(Sequence); } }
public static void GetSpelltree(string path) { var str = GetSettingValue_String("SpellTree", "Value", path).Replace(" ", "").Split(','); int[] tree = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; for (var i = 0; i < 18; i++) { tree[i] = Convert.ToInt32(str[i]); } var myAutoLevel = new AutoLevel(tree); }
public void OnEnable() { _input ??= new PlayerControl(); _input.Player.SetCallbacks(this); _input.Player.Enable(); _autoLevel = new AutoLevel(8, 0.1f, 0.001f); segmentStreamer.Subscribe(this.gameObject, OnWorldSegmentEvent, SubscriptionMode.Selective, new List <string>() { "Bird" }); }
private void AutoLevel_ValueChanged(object sender, OnValueChangeEventArgs ev) { if (isMenuEnabled("ALAct") && !aLInit) { var AutoLevel_I = new AutoLevel( getSequence( Menu.Item("ALSeq").GetValue <StringList>().SList[ Menu.Item("ALSeq").GetValue <StringList>().SelectedIndex])); aLInit = true; } AutoLevel.Enabled(ev.GetNewValue <bool>()); }
public static Menu AddToMenu(Menu config) { Menu menulvl = new Menu("Autoleveler ", "Autolevelersettings"); menulvl.AddItem(new MenuItem(player.ChampionName + "order", "Skill order", true)) .SetValue(new StringList(new[] { "Q->W->E", "Q->E->W", "W->Q->E", "W->E->Q", "E->Q->W", "E->W->Q" }, 0)); menulvl.AddItem(new MenuItem(player.ChampionName + "Enabled", "Enabled")).SetValue(false); menulvl.AddItem(new MenuItem("Test", "Test Only")); config.AddSubMenu(menulvl); configMenu = config; autoLevel = new AutoLevel( GetTree(configMenu.Item(player.ChampionName + "order", true).GetValue <StringList>().SelectedIndex)); Game.OnUpdate += Game_OnUpdate; return(configMenu); }
private static void OnGameLoad(EventArgs args) { _loaded = (Bot.Level == 1) ? Environment.TickCount:Environment.TickCount - 140000; _stepTime = Environment.TickCount; var map = Utility.Map.GetMap(); if (map != null && map.Type == Utility.Map.MapType.SummonersRift) { if (Bot.Team == GameObjectTeam.Order) { _chosen = Blue + Rand.Next(-76, 76); _safe = Purple + Rand.Next(-67, 67); BotLanePos.X = 11376 + Rand.Next(-50, 50); BotLanePos.Y = 1062 + Rand.Next(-50, 50); TopLanePos.X = 1302 + Rand.Next(-50, 50); TopLanePos.Y = 10249 + Rand.Next(-50, 50); } if (Bot.Team == GameObjectTeam.Chaos) { _chosen = Purple + Rand.Next(-67, 67); _safe = Blue + Rand.Next(-76, 76); BotLanePos.X = 13496 + Rand.Next(-50, 50); BotLanePos.Y = 4218 + Rand.Next(-50, 50); TopLanePos.X = 4849 + Rand.Next(-50, 50); TopLanePos.Y = 13535 + Rand.Next(-50, 50); } } else { _byPassLoadedCheck = true; if (Bot.Team == GameObjectTeam.Order) { _chosen = Blue; _safe = Purple; } if (Bot.Team == GameObjectTeam.Chaos) { _chosen = Purple; _safe = Blue; } } AutoLevel levelUpSpells = new AutoLevel(TreesAutoLevel.GetSequence()); AutoLevel.Enabled(true); FileHandler.DoChecks(); MetaHandler.LoadObjects(); }
public static void AutLevel() { //Cookies Values sliderValue = slider.Value; sliderValue2 = slider2.Value; sliderValue3 = slider3.Value; sliderValue4 = slider4.Value; sliderValue5 = slider5.Value; sliderValue6 = slider6.Value; sliderValue7 = slider7.Value; sliderValue8 = slider8.Value; sliderValue9 = slider9.Value; sliderValue10 = slider10.Value; sliderValue11 = slider11.Value; sliderValue12 = slider12.Value; sliderValue13 = slider13.Value; sliderValue14 = slider14.Value; sliderValue15 = slider15.Value; sliderValue16 = slider16.Value; sliderValue17 = slider17.Value; sliderValue18 = slider18.Value; var AutLevel = new AutoLevel(new[] { sliderValue, sliderValue2, sliderValue3, sliderValue4, sliderValue5, sliderValue6, sliderValue7, sliderValue8, sliderValue9, sliderValue10, sliderValue11, sliderValue12, sliderValue13, sliderValue14, sliderValue15, sliderValue16, sliderValue17, sliderValue18 }); }
public static void UpdateLvl() { int[] tree = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; int[] defTree = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; if (Player.ChampionName.ToUpper() == "NUNU") { tree = new int[] { 1, 3, 2, 1, 1, 4, 1, 3, 1, 3, 4, 2, 2, 2, 2, 4, 3, 3 }; } else if (Player.ChampionName.ToUpper() == "WARWICK") { tree = new int[] { 1, 2, 3, 1, 1, 4, 1, 3, 1, 3, 4, 2, 2, 2, 2, 4, 3, 3 }; } else if (Player.ChampionName.ToUpper() == "MASTERYI") { tree = new int[] { 1, 2, 3, 1, 1, 4, 1, 3, 1, 3, 4, 2, 2, 2, 2, 4, 3, 3 }; } else if (Player.ChampionName.ToUpper() == "CHOGATH") { tree = new int[] { 3, 2, 1, 3, 3, 4, 3, 1, 3, 1, 4, 2, 2, 2, 2, 4, 1, 1 }; } else if (Player.ChampionName.ToUpper() == "MAOKAI") { tree = new int[] { 1, 2, 3, 1, 1, 4, 1, 3, 1, 3, 4, 2, 2, 2, 2, 4, 3, 3 }; } else if (Player.ChampionName.ToUpper() == "NASUS") { tree = new int[] { 1, 3, 3, 2, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2 }; } else { tree = new int[] { 1, 3, 2, 1, 1, 4, 1, 3, 1, 3, 4, 2, 2, 2, 2, 4, 3, 3 }; } for (var i = 0; i < 18; i++) { defTree[i] = tree[i] - 1; } AutoLevel.UpdateSequence(defTree); AutoLevel.Enabled(true); }
private static void OnGameLoad(EventArgs args) { _loaded = (Bot.Level == 1) ? Environment.TickCount:Environment.TickCount - 140000; _stepTime = Environment.TickCount; var map = Utility.Map.GetMap(); if (map.Type == Utility.Map.MapType.SummonersRift) { //Initialize var condition = Bot.Team == GameObjectTeam.Order; _chosen = condition ? Blue : Purple; _safe = condition ? Purple : Blue; BotLanePos = condition ? new Vector2(11376, 1062).To3D() : new Vector2(13496, 4218).To3D(); TopLanePos = condition ? new Vector2(1302, 10249).To3D() : new Vector2(4849, 13535).To3D(); //Randomize: _chosen += Rand.Next(-100, 100); _safe += Rand.Next(-100, 100); TopLanePos = TopLanePos.Randomize(-150, 150); BotLanePos = BotLanePos.Randomize(-150, 150); } else { _byPassLoadedCheck = true; var condition = Bot.Team == GameObjectTeam.Order; _chosen = condition ? Blue : Purple; _safe = condition ? Purple : Blue; //Randomize: _chosen += Rand.Next(-100, 100); _safe += Rand.Next(-100, 100); } new AutoLevel(TreesAutoLevel.GetSequence().Select(l => l - 1)); AutoLevel.Enable(); MetaHandler.LoadObjects(); }
public static void CreateMenu(Menu Menu) { Config = new Menu("ProBuilds", "ProBuilds", true); var settings = new Menu("Misc", "Misc"); Config.AddItem(new MenuItem("leveler", "ProLeveler").SetValue(true)); Config.Item("leveler").ValueChanged += (s, e) => { AutoLevel.Enabled(e.GetNewValue <bool>()); Console.WriteLine("ProLeveler: " + e.GetNewValue <bool>()); if (e.GetNewValue <bool>()) { var sequence = BuildData.SkillSequence; Console.Write(sequence); new AutoLevel(sequence); } }; settings.AddItem(new MenuItem("notif", "Enable Notifications")).SetValue(false); Config.AddSubMenu(settings); foreach (var build in BuildData.BuildsList) { Random Random = new Random(); var BuildName = "Build " + BuildData.BuildsList.IndexOf(build); var BuildMenu = new Menu(BuildName, BuildName); var starting = BuildMenu.AddSubMenu(new Menu("Starting", "Starting")); var Buildorder = BuildMenu.AddSubMenu(new Menu("Order", "Build Order")); var Final = BuildMenu.AddSubMenu(new Menu("Final Items", "Final")); var Summary = BuildMenu.AddSubMenu(new Menu("Build Summary", "Summary")); if (BuildData.BuildsList.IndexOf(build) == 0 && NotifOn()) { INotification start = new Notification("Starting Items", 60000); Notifications.AddNotification(start); } foreach (var si in build.startingitems) { starting.AddItem(new MenuItem(si + Random.Next(), si)); if (BuildData.BuildsList.IndexOf(build) == 0 && NotifOn()) { INotification buildnotif = new Notification(si, 100000); Notifications.AddNotification(buildnotif); } } if (BuildData.BuildsList.IndexOf(build) == 0 && NotifOn()) { INotification start = new Notification("Build Order", 100000); Notifications.AddNotification(start); } foreach (var bo in build.buildorder) { Buildorder.AddItem(new MenuItem(bo + Random.Next(), bo)); if (BuildData.BuildsList.IndexOf(build) == 0 && NotifOn()) { INotification buildnotif = new Notification(bo, 100000); Notifications.AddNotification(buildnotif); } } if (BuildData.BuildsList.IndexOf(build) == 0 && NotifOn()) { INotification start = new Notification("Final Items", 100000); Notifications.AddNotification(start); } foreach (var finalitem in build.finalitems) { Final.AddItem(new MenuItem(finalitem + Random.Next(), finalitem)); if (BuildData.BuildsList.IndexOf(build) == 0 && NotifOn()) { INotification buildnotif = new Notification(finalitem, 100000); Notifications.AddNotification(buildnotif); } } foreach (var summitem in build.buildsummary) { Summary.AddItem(new MenuItem(summitem + Random.Next(), summitem)); } Config.AddSubMenu(BuildMenu); } Config.AddToMainMenu(); }
private static void Game_OnGameLoad(EventArgs args) { if (ObjectManager.Player.ChampionName != "Soraka") { return; } //InitializeSafeWardSpots(); //InitializeWardSpots(); allies = new List <Obj_AI_Hero>(); //BushRevealer c = new BushRevealer(); Q = new Spell(SpellSlot.Q, 970); W = new Spell(SpellSlot.W, 550); E = new Spell(SpellSlot.E, 925); R = new Spell(SpellSlot.R); //Game.PrintChat("in1"); ts = new TargetSelector(1025, TargetSelector.TargetingMode.AutoPriority); stufftosay = new[] { "brb", "need to b", "sec" }; deaths = new[] { "oops", "lol", "rip", "laggg" }; spawn = ObjectManager.Get <GameObject>() .First(x => x.Type == GameObjectType.obj_SpawnPoint && x.Team == ObjectManager.Player.Team) .Position; menu = new Menu("Soraka Slack", "slack", true); menu.AddItem(new MenuItem("on", "Start Slacking!").SetValue(new KeyBind(32, KeyBindType.Toggle))); menu.AddItem(new MenuItem("user", "Use R?").SetValue(true)); menu.AddItem(new MenuItem("usew", "Use W?").SetValue(true)); menu.AddItem(new MenuItem("allyhpw", "Ally % HP for W").SetValue(new Slider(30, 0, 93))); menu.AddItem(new MenuItem("wabovehp", "Use W when my hp > x%").SetValue(new Slider(20, 0, 99))); menu.AddItem(new MenuItem("allyhpr", "Ally % HP for R").SetValue(new Slider(30, 0, 50))); menu.AddItem(new MenuItem("hpb", "B if hp < %").SetValue(new Slider(15, 0, 80))); //Game.PrintChat("in2"); menu.AddSubMenu(new Menu("Follow:", "follower")); foreach (var ally in ObjectManager.Get <Obj_AI_Hero>().Where(x => x.IsAlly && !x.IsMe)) { allies.Add(ally); if (ad.Contains(ally.ChampionName)) { menu.SubMenu("follower").AddItem(new MenuItem(ally.ChampionName, ally.ChampionName).SetValue(true)); } else { menu.SubMenu("follower").AddItem(new MenuItem(ally.ChampionName, ally.ChampionName).SetValue(false)); } } // Game.PrintChat("hi"); buyThings = new List <ItemToShop> { new ItemToShop() { goldReach = 500, itemsMustHave = new List <int> { 3301 }, itemIds = new List <int> { 3096 } }, new ItemToShop() { goldReach = 360, itemsMustHave = new List <int> { 3096 }, itemIds = new List <int> { 1004, 1004 } }, new ItemToShop() { goldReach = 500, itemsMustHave = new List <int> { 1004, 1004 }, itemIds = new List <int> { 1033 } }, new ItemToShop() { goldReach = 180, itemsMustHave = new List <int> { 1033, 1004, 1004 }, itemIds = new List <int> { 3028 } }, new ItemToShop() { goldReach = 325, itemsMustHave = new List <int> { 3028 }, itemIds = new List <int> { 1001 } }, new ItemToShop() { goldReach = 675, itemsMustHave = new List <int> { 1001 }, itemIds = new List <int> { 3009 } }, new ItemToShop() { goldReach = 400, itemsMustHave = new List <int> { 3009 }, itemIds = new List <int> { 1028 } }, new ItemToShop() { goldReach = 450, itemsMustHave = new List <int> { 1028 }, itemIds = new List <int> { 3067 } }, new ItemToShop() { goldReach = 400, itemsMustHave = new List <int> { 3067 }, itemIds = new List <int> { 1028 } }, new ItemToShop() { goldReach = 800, itemsMustHave = new List <int> { 1028 }, itemIds = new List <int> { 3211 } }, new ItemToShop() { goldReach = 700, itemsMustHave = new List <int> { 3211 }, itemIds = new List <int> { 3065 } }, new ItemToShop() { goldReach = 2900, itemsMustHave = new List <int> { 3065 }, itemIds = new List <int> { 3116 } } }; //Game.PrintChat("hi2"); // Game.PrintChat("in3"); var sequence = new[] { 1, 2, 3, 2, 2, 4, 2, 1, 2, 3, 4, 3, 3, 1, 1, 4, 1, 3 }; var level = new AutoLevel(sequence); gamestart = Game.Time; menu.AddToMainMenu(); nextItem = buyThings[0]; //Game.PrintChat("in4"); //ids = new[] { 3096, 1004, 1004, 1033, 1001, 3028, 3174, 3009, 1028, 3067, 1028, 3211, 3065, 3069, 1028, 2049, 2045 }; //follow = ObjectManager.Get<Obj_AI_Hero>().First(x => x.IsAlly && menu.Item(x.ChampionName).GetValue<bool>()); //?? // ObjectManager.Get<Obj_AI_Hero>().First(x => !x.IsMe && x.IsAlly && ap.Contains(x.ChampionName)) ?? // ObjectManager.Get<Obj_AI_Hero>().First(x => x.IsAlly && !x.IsMe); //if (follow != null) // followpos = follow.Position; followtime = Game.Time; //Game.PrintChat("in5"); //int counter = 0; //foreach (var item in ids) //{ // if (Items.HasItem(item) && counter > index) // { // index = counter; // Game.PrintChat(index.ToString()); // } // counter++; //} // Game.PrintChat("in6"); if (Game.Time < 300) { Packet.C2S.BuyItem.Encoded(new Packet.C2S.BuyItem.Struct(3301)).Send(); Packet.C2S.BuyItem.Encoded(new Packet.C2S.BuyItem.Struct(3340)).Send(); Packet.C2S.BuyItem.Encoded(new Packet.C2S.BuyItem.Struct(2003)).Send(); Packet.C2S.BuyItem.Encoded(new Packet.C2S.BuyItem.Struct(2003)).Send(); Packet.C2S.BuyItem.Encoded(new Packet.C2S.BuyItem.Struct(2003)).Send(); } //Game.OnGameNotifyEvent += Game_OnGameNotifyEvent; Game.OnGameProcessPacket += Game_OnGameProcessPacket; Game.OnGameUpdate += Game_OnGameUpdate; //follow = ObjectManager.Get<Obj_AI_Hero>().First(x => ad.Contains(x.ChampionName)); //Obj_AI_Base.OnCreate += Obj_AI_Base_OnCreate; }
private static void Game_OnGameLoad(EventArgs args) { _player = ObjectManager.Player; //if (ObjectManager.Player.BaseSkinName != ChampionName) return; _q = new Spell(SpellSlot.Q, 200); _w = new Spell(SpellSlot.W, 200); _e = new Spell(SpellSlot.E, 200); _r = new Spell(SpellSlot.R, 200); SpellList.Add(_q); SpellList.Add(_w); SpellList.Add(_e); SpellList.Add(_r); _bilge = new Items.Item(3144, 450f); _blade = new Items.Item(3153, 450f); _hydra = new Items.Item(3074, 250f); _tiamat = new Items.Item(3077, 250f); _rand = new Items.Item(3143, 490f); _lotis = new Items.Item(3190, 590f); SetSmiteSlot(); //Udyr _config = new Menu("D-Udyr", "D-Udyr", true); //TargetSelector var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); TargetSelector.AddToMenu(targetSelectorMenu); _config.AddSubMenu(targetSelectorMenu); //Orbwalker _config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); _orbwalker = new Orbwalking.Orbwalker(_config.SubMenu("Orbwalking")); //Auto Level _config.AddSubMenu(new Menu("Style", "Style")); _config.SubMenu("Style").AddItem(new MenuItem("udAutoLevel", "Auto Level")).SetValue(false); _config.SubMenu("Style").AddItem(new MenuItem("udyrStyle", "Level Sequence").SetValue( new StringList(new[] { "Tiger Q-E-W-R", "Tiger Q-W-E-R", "Pheonix R-E-W-Q", "Pheonix R-W-E-Q" }))); //Combo _config.AddSubMenu(new Menu("Main", "Main")); _config.SubMenu("Main").AddItem(new MenuItem("AutoShield", "Auto Shield")).SetValue(true); _config.SubMenu("Main") .AddItem(new MenuItem("AutoShield%", "AutoShield HP %").SetValue(new Slider(50, 100, 0))); _config.SubMenu("Main") .AddItem(new MenuItem("TargetRange", "Range to Use E").SetValue(new Slider(1000, 600, 1500))); _config.SubMenu("Main") .AddItem(new MenuItem("ActiveCombo", "Combo Key").SetValue(new KeyBind(32, KeyBindType.Press))); _config.SubMenu("Main").AddItem(new MenuItem("smitecombo", "Use Smite in target")).SetValue(true); _config.SubMenu("Main") .AddItem( new MenuItem("StunCycle", "Stun Cycle").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Press))); //Forest gump _config.AddSubMenu(new Menu("Forest Gump", "Forest Gump")); _config.SubMenu("Forest Gump").AddItem(new MenuItem("ForestE", "Use E")).SetValue(true); _config.SubMenu("Forest Gump").AddItem(new MenuItem("ForestW", "Use W")).SetValue(true); _config.SubMenu("Forest Gump") .AddItem( new MenuItem("Forest", "Forest gump(Toggle)").SetValue(new KeyBind("G".ToCharArray()[0], KeyBindType.Toggle))); _config.SubMenu("Forest Gump") .AddItem(new MenuItem("Forest-Mana", "Forest gump Mana").SetValue(new Slider(50, 100, 0))); _config.AddSubMenu(new Menu("items", "items")); _config.SubMenu("items").AddSubMenu(new Menu("Offensive", "Offensive")); _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Tiamat", "Use Tiamat")).SetValue(true); _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Hydra", "Use Hydra")).SetValue(true); _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Bilge", "Use Bilge")).SetValue(true); _config.SubMenu("items") .SubMenu("Offensive") .AddItem(new MenuItem("BilgeEnemyhp", "If Enemy Hp < ").SetValue(new Slider(85, 1, 100))); _config.SubMenu("items") .SubMenu("Offensive") .AddItem(new MenuItem("Bilgemyhp", "Or your Hp < ").SetValue(new Slider(85, 1, 100))); _config.SubMenu("items").SubMenu("Offensive").AddItem(new MenuItem("Blade", "Use Blade")).SetValue(true); _config.SubMenu("items") .SubMenu("Offensive") .AddItem(new MenuItem("BladeEnemyhp", "If Enemy Hp < ").SetValue(new Slider(85, 1, 100))); _config.SubMenu("items") .SubMenu("Offensive") .AddItem(new MenuItem("Blademyhp", "Or Your Hp < ").SetValue(new Slider(85, 1, 100))); _config.SubMenu("items").AddSubMenu(new Menu("Deffensive", "Deffensive")); _config.SubMenu("items") .SubMenu("Deffensive") .AddItem(new MenuItem("Omen", "Use Randuin Omen")) .SetValue(true); _config.SubMenu("items") .SubMenu("Deffensive") .AddItem(new MenuItem("Omenenemys", "Randuin if enemys>").SetValue(new Slider(2, 1, 5))); _config.SubMenu("items") .SubMenu("Deffensive") .AddItem(new MenuItem("lotis", "Use Iron Solari")).SetValue(true); _config.SubMenu("items").SubMenu("Deffensive").AddItem(new MenuItem("lotisminhp", "Solari if Ally Hp<").SetValue(new Slider(35, 1, 100))); _config.SubMenu("items").SubMenu("Deffensive").AddItem(new MenuItem("Righteous", "Use Righteous Glory")).SetValue(true); _config.SubMenu("items").SubMenu("Deffensive").AddItem(new MenuItem("Righteousenemys", "Righteous Glory if Enemy >=").SetValue(new Slider(2, 1, 5))); _config.SubMenu("items").SubMenu("Deffensive").AddItem(new MenuItem("Righteousenemysrange", "Righteous Glory Range Check").SetValue(new Slider(800, 400, 1400))); _config.SubMenu("items").AddSubMenu(new Menu("Potions", "Potions")); _config.SubMenu("items") .SubMenu("Potions") .AddItem(new MenuItem("usehppotions", "Use Healt potion/Flask/Biscuit")) .SetValue(true); _config.SubMenu("items") .SubMenu("Potions") .AddItem(new MenuItem("usepotionhp", "If Health % <").SetValue(new Slider(35, 1, 100))); _config.SubMenu("items") .SubMenu("Potions") .AddItem(new MenuItem("usemppotions", "Use Mana potion/Flask/Biscuit")) .SetValue(true); _config.SubMenu("items") .SubMenu("Potions") .AddItem(new MenuItem("usepotionmp", "If Mana % <").SetValue(new Slider(35, 1, 100))); //Farm _config.AddSubMenu(new Menu("Farm", "Farm")); _config.SubMenu("Farm").AddSubMenu(new Menu("Lane", "Lane")); _config.SubMenu("Farm").SubMenu("Lane").AddItem(new MenuItem("laneitems", "Use Items")).SetValue(true); _config.SubMenu("Farm").SubMenu("Lane").AddItem(new MenuItem("Use-Q-Farm", "Use Q")).SetValue(true); _config.SubMenu("Farm").SubMenu("Lane").AddItem(new MenuItem("Use-W-Farm", "Use W")).SetValue(true); _config.SubMenu("Farm").SubMenu("Lane").AddItem(new MenuItem("Use-E-Farm", "Use E")).SetValue(true); _config.SubMenu("Farm").SubMenu("Lane").AddItem(new MenuItem("Use-R-Farm", "Use R")).SetValue(true); _config.SubMenu("Farm") .SubMenu("Lane") .AddItem(new MenuItem("Farm-Mana", "Mana Limit").SetValue(new Slider(50, 100, 0))); _config.SubMenu("Farm") .SubMenu("Lane") .AddItem( new MenuItem("ActiveLane", "Lane Key").SetValue(new KeyBind("V".ToCharArray()[0], KeyBindType.Press))); _config.SubMenu("Farm").AddSubMenu(new Menu("Jungle", "Jungle")); _config.SubMenu("Farm").SubMenu("Jungle").AddItem(new MenuItem("jungleitems", "Use Items")).SetValue(true); _config.SubMenu("Farm").SubMenu("Jungle").AddItem(new MenuItem("Use-Q-Jungle", "Use Q")).SetValue(true); _config.SubMenu("Farm").SubMenu("Jungle").AddItem(new MenuItem("Use-W-Jungle", "Use W")).SetValue(true); _config.SubMenu("Farm").SubMenu("Jungle").AddItem(new MenuItem("Use-E-Jungle", "Use E")).SetValue(true); _config.SubMenu("Farm").SubMenu("Jungle").AddItem(new MenuItem("Use-R-Jungle", "Use R")).SetValue(true); _config.SubMenu("Farm") .SubMenu("Jungle") .AddItem(new MenuItem("Jungle-Mana", "Mana Limit").SetValue(new Slider(50, 100, 0))); _config.SubMenu("Farm") .SubMenu("Jungle") .AddItem( new MenuItem("ActiveJungle", "Jungle Key").SetValue(new KeyBind("V".ToCharArray()[0], KeyBindType.Press))); //Smite _config.AddSubMenu(new Menu("Smite", "Smite")); _config.SubMenu("Smite") .AddItem( new MenuItem("Usesmite", "Use Smite(toggle)").SetValue(new KeyBind("H".ToCharArray()[0], KeyBindType.Toggle))); _config.SubMenu("Smite").AddItem(new MenuItem("Useblue", "Smite Blue Early ")).SetValue(true); _config.SubMenu("Smite") .AddItem(new MenuItem("manaJ", "Smite Blue Early if MP% <").SetValue(new Slider(35, 1, 100))); _config.SubMenu("Smite").AddItem(new MenuItem("Usered", "Smite Red Early ")).SetValue(true); _config.SubMenu("Smite") .AddItem(new MenuItem("healthJ", "Smite Red Early if HP% <").SetValue(new Slider(35, 1, 100))); _config.AddToMainMenu(); Drawing.OnDraw += Drawing_OnDraw; Game.OnGameUpdate += OnGameUpdate; _config.Item("udAutoLevel").ValueChanged += LevelUpMode; if (_config.Item("udAutoLevel").GetValue <bool>()) { var level = new AutoLevel(Style()); } Game.PrintChat("<font color='#881df2'>Udyr By Diabaths </font>Loaded!"); Game.PrintChat("<font color='#881df2'>StunCycle by xcxooxl"); Game.PrintChat( "<font color='#FF0000'>If You like my work and want to support me, plz donate via paypal in </font> <font color='#FF9900'>[email protected]</font> (10) S"); }
public static void UpdateSequence(int level, int spell) { Sequence[level] = spell; Save.UpdateSequence(Sequence); AutoLevel.UpdateSequence(Sequence); }
private void AutoLevel_ValueChanged(object sender, OnValueChangeEventArgs ev) { if (isMenuEnabled("ALAct") && !aLInit) { var AutoLevel_I = new AutoLevel( getSequence( Menu.Item("ALSeq").GetValue<StringList>().SList[ Menu.Item("ALSeq").GetValue<StringList>().SelectedIndex])); aLInit = true; } AutoLevel.Enabled(ev.GetNewValue<bool>()); }
private void Game_OnGameLoad(EventArgs args) { if (Player.ChampionName != charName) { return; } Cleanser.CreateQSSSpellList(); #region Menu Menu = new Menu("【超神汉化】薇恩", "VHRework", true); var orbMenu = new Menu("走砍", "orbwalker"); COrbwalker = new Orbwalking.Orbwalker(orbMenu); Menu.AddSubMenu(orbMenu); var tsMenu = new Menu("目标选择", "TargetSel"); TargetSelector.AddToMenu(tsMenu); Menu.AddSubMenu(tsMenu); Menu.AddSubMenu(new Menu("连招", "Combo")); Menu.SubMenu("Combo").AddItem(new MenuItem("UseQC", "使用Q")).SetValue(true); Menu.SubMenu("Combo").AddItem(new MenuItem("UseEC", "使用E").SetValue(true)); Menu.SubMenu("Combo").AddItem(new MenuItem("UseRC", "使用R").SetValue(false)); Menu.SubMenu("Combo").AddItem(new MenuItem("QManaC", "Min Q蓝量%").SetValue(new Slider(35, 1, 100))); Menu.SubMenu("Combo").AddItem(new MenuItem("EManaC", "Min E蓝量%").SetValue(new Slider(20, 1, 100))); Menu.SubMenu("Combo").AddItem(new MenuItem("NEnUlt", "敌人>X使用大招").SetValue(new Slider(2, 1, 5))); Menu.AddSubMenu(new Menu("骚扰", "Harrass")); Menu.SubMenu("Harrass").AddItem(new MenuItem("UseQH", "使用Q")).SetValue(true); Menu.SubMenu("Harrass").AddItem(new MenuItem("UseEH", "使用E").SetValue(true)); Menu.SubMenu("Harrass").AddItem(new MenuItem("QManaH", "最小Q蓝量%").SetValue(new Slider(35, 1, 100))); Menu.SubMenu("Harrass").AddItem(new MenuItem("EManaH", "最小E蓝量%").SetValue(new Slider(20, 1, 100))); Menu.AddSubMenu(new Menu("补兵", "Farm")); Menu.SubMenu("Farm").AddItem(new MenuItem("UseQLH", "使用Q补兵")).SetValue(true); Menu.SubMenu("Farm").AddItem(new MenuItem("UseQLC", "使用Q清线")).SetValue(true); Menu.SubMenu("Farm").AddItem(new MenuItem("QManaLH", "补兵Min Q蓝量%").SetValue(new Slider(35, 1, 100))); Menu.SubMenu("Farm").AddItem(new MenuItem("QManaLC", "清线Min Q蓝量%").SetValue(new Slider(35, 1, 100))); var MiscSubMenu = new Menu("杂项", "Misc"); var MiscTSubMenu = new Menu("杂项-Q设置", "MiscT"); { MiscTSubMenu.AddItem(new MenuItem("SmartQ", "尽量QE优先").SetValue(false)); MiscTSubMenu.AddItem(new MenuItem("NoQEn", "不往人堆里Q").SetValue(true)); MiscTSubMenu.AddItem(new MenuItem("NoAAStealth", "潜行时不要AA").SetValue(false)); MiscTSubMenu .AddItem( new MenuItem("WallTumble", "翻滚过墙").SetValue(new KeyBind("Y".ToCharArray()[0], KeyBindType.Press))); } var MiscCSubMenu = new Menu("杂项-E设置", "MiscC"); { MiscCSubMenu.AddItem(new MenuItem("ENext", "自动下一个E").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Toggle))); MiscCSubMenu.AddItem(new MenuItem("PushDistance", "E 推进距离").SetValue(new Slider(425, 400, 500))); MiscCSubMenu.AddItem(new MenuItem("CondemnTurret", "试图E到塔上").SetValue(false)); MiscCSubMenu.AddItem(new MenuItem("CondemnFlag", "E到皇子的旗帜上").SetValue(true)); MiscCSubMenu.AddItem(new MenuItem("AutoE", "自动 E").SetValue(false)); MiscCSubMenu.AddItem(new MenuItem("AutoEKS", "只能 E 击杀").SetValue(true)); MiscCSubMenu.AddItem(new MenuItem("NoEEnT", "在敌人塔下不E").SetValue(true)); } var MiscGSubMenu = new Menu("杂项-一般", "MiscG"); { MiscGSubMenu.AddItem(new MenuItem("Packets", "使用封包").SetValue(true)); MiscGSubMenu.AddItem(new MenuItem("AntiGP", "反突进")).SetValue(true); MiscGSubMenu.AddItem(new MenuItem("Interrupt", "打断技能").SetValue(true)); MiscGSubMenu .AddItem(new MenuItem("SpecialFocus", "重点目标 2次W标记").SetValue(false)); MiscGSubMenu .AddItem( new MenuItem("ThreshLantern", "点灯笼").SetValue(new KeyBind("S".ToCharArray()[0], KeyBindType.Press))); MiscGSubMenu.AddItem(new MenuItem("UseIgn", "使用点燃")).SetValue(true); } MiscSubMenu.AddSubMenu(MiscTSubMenu); MiscSubMenu.AddSubMenu(MiscCSubMenu); MiscSubMenu.AddSubMenu(MiscGSubMenu); Menu.AddSubMenu(MiscSubMenu); Menu.AddSubMenu(new Menu("草丛插眼", "BushReveal")); //Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushReveal", "Bush Revealer").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Toggle))); Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushRevealer", "E进草自动插眼").SetValue(true)); Menu.AddSubMenu(new Menu("物品", "Items")); Menu.SubMenu("Items").AddItem(new MenuItem("BotrkC", "破败(连招)").SetValue(true)); Menu.SubMenu("Items").AddItem(new MenuItem("BotrkH", "破败(骚扰)").SetValue(false)); Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuC", "幽梦(连招)").SetValue(true)); Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuH", "幽梦(骚扰)").SetValue(false)); Menu.SubMenu("Items").AddItem(new MenuItem("BilgeC", "小弯刀(连招)").SetValue(true)); Menu.SubMenu("Items").AddItem(new MenuItem("BilgeH", "小弯刀(骚扰)").SetValue(false)); Menu.SubMenu("Items").AddItem(new MenuItem("OwnHPercBotrk", "自身HP<%使用破败").SetValue(new Slider(50, 1, 100))); Menu.SubMenu("Items").AddItem(new MenuItem("EnHPercBotrk", "敌人HP<%使用破败").SetValue(new Slider(20, 1, 100))); Menu.AddSubMenu(new Menu("水银饰带", "QSSMenu")); Menu.SubMenu("QSSMenu").AddItem(new MenuItem("UseQSS", "使用水银饰带").SetValue(true)); Menu.SubMenu("QSSMenu").AddItem(new MenuItem("QSSMinBuffs", "最少几个减益技能").SetValue(new Slider(2, 1, 5))); Menu.AddSubMenu(new Menu("净化选项1", "QSST")); Cleanser.CreateTypeQSSMenu(); Menu.AddSubMenu(new Menu("净化选项2", "QSSSpell")); Cleanser.CreateQSSSpellMenu(); Menu.AddSubMenu(new Menu("不E", "NoCondemn")); CreateNoCondemnMenu(); Menu.AddSubMenu(new Menu("自动喝药", "AutoPot")); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APH", "红药").SetValue(true)); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APM", "蓝药").SetValue(true)); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APH_Slider", "血量 %").SetValue(new Slider(35, 1))); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APM_Slider", "蓝量 %").SetValue(new Slider(35, 1))); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APHeal", "使用治疗").SetValue(true)); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APHeal_Slider", "血量 %").SetValue(new Slider(35, 1))); Menu.AddSubMenu(new Menu("自动升级", "AutoLevel")); Menu.SubMenu("AutoLevel").AddItem(new MenuItem("ALSeq", "自动排列").SetValue(Orders)); Menu.SubMenu("AutoLevel").AddItem(new MenuItem("ALAct", "打开").SetValue(false)); Menu.AddSubMenu(new Menu("显示", "Draw")); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawE", "E范围").SetValue(new Circle(true, Color.MediumPurple))); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawCond", "显示E晕人位置").SetValue(new Circle(true, Color.Red))); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawDrake", "小龙附近穿墙").SetValue(new Circle(true, Color.WhiteSmoke))); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawMid", "中路穿墙").SetValue(new Circle(true, Color.WhiteSmoke))); Menu.AddSubMenu(new Menu("超神汉化", "by welai")); Menu.SubMenu("by welai").AddItem(new MenuItem("qunhao", "汉化群:386289593")); Menu.AddToMainMenu(); #endregion Game.PrintChat("<font color='#FF0000'>VayneHunter</font> <font color='#FFFFFF'>Rework loaded!</font>"); Game.PrintChat("By <font color='#FF0000'>DZ</font><font color='#FFFFFF'>191</font>. Special Thanks to: Kurisuu & KonoeChan"); Game.PrintChat("If you like my assemblies feel free to donate me (link on the forum :) )"); //Cleanser.cleanUselessSpells(); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E, 550f); R = new Spell(SpellSlot.R); E.SetTargetted(0.25f, 1600f); Orbwalking.AfterAttack += Orbwalker_AfterAttack; Game.OnGameUpdate += Game_OnGameUpdate; // Game.OnGameProcessPacket += GameOnOnGameProcessPacket; Interrupter.OnPossibleToInterrupt += Interrupter_OnPossibleToInterrupt; AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser; Drawing.OnDraw += Drawing_OnDraw; GameObject.OnCreate += Cleanser.OnCreateObj; GameObject.OnDelete += Cleanser.OnDeleteObj; Menu.Item("ALAct").ValueChanged += AutoLevel_ValueChanged; #region AutoLeveler if (isMenuEnabled("ALAct") && !aLInit) { var AutoLevel_I = new AutoLevel( getSequence( Menu.Item("ALSeq").GetValue <StringList>().SList[ Menu.Item("ALSeq").GetValue <StringList>().SelectedIndex])); aLInit = true; } }
private static void EnabledValueChanged(object sender, OnValueChangeEventArgs e) { AutoLevel.Enabled(e.GetNewValue <bool>()); }
private void Game_OnGameLoad(EventArgs args) { if (Player.ChampionName != charName) { return; } Cleanser.CreateQSSSpellList(); #region Menu Menu = new Menu("VayneHunter Rework", "VHRework", true); var orbMenu = new Menu("Orbwalker", "orbwalker"); COrbwalker = new Orbwalking.Orbwalker(orbMenu); Menu.AddSubMenu(orbMenu); var tsMenu = new Menu("Target Selector", "TargetSel"); TargetSelector.AddToMenu(tsMenu); Menu.AddSubMenu(tsMenu); Menu.AddSubMenu(new Menu("[VH] Combo", "Combo")); Menu.SubMenu("Combo").AddItem(new MenuItem("UseQC", "Use Q Combo")).SetValue(true); Menu.SubMenu("Combo").AddItem(new MenuItem("UseEC", "Use E Combo").SetValue(true)); Menu.SubMenu("Combo").AddItem(new MenuItem("UseRC", "Use R Combo").SetValue(false)); Menu.SubMenu("Combo").AddItem(new MenuItem("QManaC", "Min Q Mana %").SetValue(new Slider(35, 1, 100))); Menu.SubMenu("Combo").AddItem(new MenuItem("EManaC", "Min E Mana %").SetValue(new Slider(20, 1, 100))); Menu.SubMenu("Combo").AddItem(new MenuItem("NEnUlt", "Only ult when x enemies").SetValue(new Slider(2, 1, 5))); Menu.AddSubMenu(new Menu("[VH] Harrass", "Harrass")); Menu.SubMenu("Harrass").AddItem(new MenuItem("UseQH", "Use Q Harrass")).SetValue(true); Menu.SubMenu("Harrass").AddItem(new MenuItem("UseEH", "Use E Harrass").SetValue(true)); Menu.SubMenu("Harrass").AddItem(new MenuItem("QManaH", "Min Q Mana %").SetValue(new Slider(35, 1, 100))); Menu.SubMenu("Harrass").AddItem(new MenuItem("EManaH", "Min E Mana %").SetValue(new Slider(20, 1, 100))); Menu.AddSubMenu(new Menu("[VH] Farm", "Farm")); Menu.SubMenu("Farm").AddItem(new MenuItem("UseQLH", "Use Q LastHit")).SetValue(true); Menu.SubMenu("Farm").AddItem(new MenuItem("UseQLC", "Use Q Laneclear")).SetValue(true); Menu.SubMenu("Farm").AddItem(new MenuItem("QManaLH", "Min Q Mana % LH").SetValue(new Slider(35, 1, 100))); Menu.SubMenu("Farm").AddItem(new MenuItem("QManaLC", "Min Q Mana % LC").SetValue(new Slider(35, 1, 100))); var MiscSubMenu = new Menu("[VH] Misc", "Misc"); var MiscTSubMenu = new Menu("Misc - Tumble", "MiscT"); { MiscTSubMenu.AddItem(new MenuItem("SmartQ", "Try to QE First").SetValue(false)); MiscTSubMenu.AddItem(new MenuItem("NoQEn", "Don't Q into enemies").SetValue(true)); MiscTSubMenu.AddItem(new MenuItem("NoAAStealth", "Don't AA while stealthed").SetValue(false)); MiscTSubMenu .AddItem( new MenuItem("WallTumble", "Tumble Over Wall").SetValue(new KeyBind("Y".ToCharArray()[0], KeyBindType.Press))); } var MiscCSubMenu = new Menu("Misc - Condemn", "MiscC"); { MiscCSubMenu.AddItem(new MenuItem("ENext", "E Next Auto").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Toggle))); MiscCSubMenu.AddItem(new MenuItem("PushDistance", "E Push Dist").SetValue(new Slider(425, 400, 500))); MiscCSubMenu.AddItem(new MenuItem("CondemnTurret", "Try to Condemn to turret").SetValue(false)); MiscCSubMenu.AddItem(new MenuItem("CondemnFlag", "Condemn to J4 flag").SetValue(true)); MiscCSubMenu.AddItem(new MenuItem("AutoE", "Auto E").SetValue(false)); MiscCSubMenu.AddItem(new MenuItem("AutoEKS", "Smart E Ks").SetValue(true)); MiscCSubMenu.AddItem(new MenuItem("NoEEnT", "No E Under enemy turret").SetValue(true)); } var MiscGSubMenu = new Menu("Misc - General", "MiscG"); { MiscGSubMenu.AddItem(new MenuItem("Packets", "Packet Casting").SetValue(true)); MiscGSubMenu.AddItem(new MenuItem("AntiGP", "Anti Gapcloser")).SetValue(true); MiscGSubMenu.AddItem(new MenuItem("Interrupt", "Interrupter").SetValue(true)); MiscGSubMenu .AddItem(new MenuItem("SpecialFocus", "Focus targets with 2 W marks").SetValue(false)); MiscGSubMenu .AddItem( new MenuItem("ThreshLantern", "Grab Thresh Lantern").SetValue(new KeyBind("S".ToCharArray()[0], KeyBindType.Press))); MiscGSubMenu.AddItem(new MenuItem("UseIgn", "Use Ignite")).SetValue(true); } MiscSubMenu.AddSubMenu(MiscTSubMenu); MiscSubMenu.AddSubMenu(MiscCSubMenu); MiscSubMenu.AddSubMenu(MiscGSubMenu); Menu.AddSubMenu(MiscSubMenu); Menu.AddSubMenu(new Menu("[VH] BushRevealer", "BushReveal")); //Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushReveal", "Bush Revealer").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Toggle))); Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushRevealer", "Trinket bush on condemn").SetValue(true)); Menu.AddSubMenu(new Menu("[VH] Items", "Items")); Menu.SubMenu("Items").AddItem(new MenuItem("BotrkC", "Botrk Combo").SetValue(true)); Menu.SubMenu("Items").AddItem(new MenuItem("BotrkH", "Botrk Harrass").SetValue(false)); Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuC", "Youmuu Combo").SetValue(true)); Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuH", "Youmuu Harrass").SetValue(false)); Menu.SubMenu("Items").AddItem(new MenuItem("BilgeC", "Cutlass Combo").SetValue(true)); Menu.SubMenu("Items").AddItem(new MenuItem("BilgeH", "Cutlass Harrass").SetValue(false)); Menu.SubMenu("Items").AddItem(new MenuItem("OwnHPercBotrk", "Min Own H. % Botrk").SetValue(new Slider(50, 1, 100))); Menu.SubMenu("Items").AddItem(new MenuItem("EnHPercBotrk", "Min Enemy H. % Botrk").SetValue(new Slider(20, 1, 100))); Menu.AddSubMenu(new Menu("[VH] QSS", "QSSMenu")); Menu.SubMenu("QSSMenu").AddItem(new MenuItem("UseQSS", "Use QSS").SetValue(true)); Menu.SubMenu("QSSMenu").AddItem(new MenuItem("QSSMinBuffs", "Min Buffs to QSS").SetValue(new Slider(2, 1, 5))); Menu.AddSubMenu(new Menu("[VH] QSS Buff Types", "QSST")); Cleanser.CreateTypeQSSMenu(); Menu.AddSubMenu(new Menu("[VH] QSS Spells", "QSSSpell")); Cleanser.CreateQSSSpellMenu(); Menu.AddSubMenu(new Menu("[VH] Don't Condemn", "NoCondemn")); CreateNoCondemnMenu(); Menu.AddSubMenu(new Menu("[VH] AutoPot", "AutoPot")); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APH", "Health Pot").SetValue(true)); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APM", "Mana Pot").SetValue(true)); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APH_Slider", "Health Pot %").SetValue(new Slider(35, 1))); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APM_Slider", "Mana Pot %").SetValue(new Slider(35, 1))); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APHeal", "Use Heal").SetValue(true)); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APHeal_Slider", "Heal %").SetValue(new Slider(35, 1))); Menu.AddSubMenu(new Menu("[VH] AutoLeveler", "AutoLevel")); Menu.SubMenu("AutoLevel").AddItem(new MenuItem("ALSeq", "AutoLevel Seq").SetValue(Orders)); Menu.SubMenu("AutoLevel").AddItem(new MenuItem("ALAct", "AutoLevel Active").SetValue(false)); Menu.AddSubMenu(new Menu("[VH] Drawings", "Draw")); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawE", "Draw E").SetValue(new Circle(true, Color.MediumPurple))); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawCond", "Draw Pos. Aft. E if Stun").SetValue(new Circle(true, Color.Red))); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawDrake", "Draw Drake Spot").SetValue(new Circle(true, Color.WhiteSmoke))); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawMid", "Draw Mid Spot").SetValue(new Circle(true, Color.WhiteSmoke))); Menu.AddToMainMenu(); #endregion Game.PrintChat("<font color='#FF0000'>VayneHunter</font> <font color='#FFFFFF'>Rework loaded!</font>"); Game.PrintChat("By <font color='#FF0000'>DZ</font><font color='#FFFFFF'>191</font>. Special Thanks to: Kurisuu & KonoeChan"); Game.PrintChat("If you like my assemblies feel free to donate me (link on the forum :) )"); //Cleanser.cleanUselessSpells(); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E, 550f); R = new Spell(SpellSlot.R); E.SetTargetted(0.25f, 1600f); Orbwalking.AfterAttack += Orbwalker_AfterAttack; Game.OnGameUpdate += Game_OnGameUpdate; // Game.OnGameProcessPacket += GameOnOnGameProcessPacket; Interrupter.OnPossibleToInterrupt += Interrupter_OnPossibleToInterrupt; AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser; Drawing.OnDraw += Drawing_OnDraw; GameObject.OnCreate += Cleanser.OnCreateObj; GameObject.OnDelete += Cleanser.OnDeleteObj; Menu.Item("ALAct").ValueChanged += AutoLevel_ValueChanged; #region AutoLeveler if (isMenuEnabled("ALAct") && !aLInit) { var AutoLevel_I = new AutoLevel( getSequence( Menu.Item("ALSeq").GetValue <StringList>().SList[ Menu.Item("ALSeq").GetValue <StringList>().SelectedIndex])); aLInit = true; } }
private void Game_OnGameLoad(EventArgs args) { if (Player.ChampionName != charName) return; Cleanser.CreateQSSSpellList(); #region Menu Menu = new Menu("VayneHunter Rework", "VHRework", true); var orbMenu = new Menu("Orbwalker", "orbwalker"); COrbwalker = new Orbwalking.Orbwalker(orbMenu); Menu.AddSubMenu(orbMenu); var tsMenu = new Menu("Target Selector", "TargetSel"); TargetSelector.AddToMenu(tsMenu); Menu.AddSubMenu(tsMenu); Menu.AddSubMenu(new Menu("[VH] Combo", "Combo")); Menu.SubMenu("Combo").AddItem(new MenuItem("UseQC", "Use Q Combo")).SetValue(true); Menu.SubMenu("Combo").AddItem(new MenuItem("UseEC", "Use E Combo").SetValue(true)); Menu.SubMenu("Combo").AddItem(new MenuItem("UseRC", "Use R Combo").SetValue(false)); Menu.SubMenu("Combo").AddItem(new MenuItem("QManaC", "Min Q Mana %").SetValue(new Slider(35, 1, 100))); Menu.SubMenu("Combo").AddItem(new MenuItem("EManaC", "Min E Mana %").SetValue(new Slider(20, 1, 100))); Menu.SubMenu("Combo").AddItem(new MenuItem("NEnUlt", "Only ult when x enemies").SetValue(new Slider(2, 1, 5))); Menu.AddSubMenu(new Menu("[VH] Harrass", "Harrass")); Menu.SubMenu("Harrass").AddItem(new MenuItem("UseQH", "Use Q Harrass")).SetValue(true); Menu.SubMenu("Harrass").AddItem(new MenuItem("UseEH", "Use E Harrass").SetValue(true)); Menu.SubMenu("Harrass").AddItem(new MenuItem("QManaH", "Min Q Mana %").SetValue(new Slider(35, 1, 100))); Menu.SubMenu("Harrass").AddItem(new MenuItem("EManaH", "Min E Mana %").SetValue(new Slider(20, 1, 100))); Menu.AddSubMenu(new Menu("[VH] Farm", "Farm")); Menu.SubMenu("Farm").AddItem(new MenuItem("UseQLH", "Use Q LastHit")).SetValue(true); Menu.SubMenu("Farm").AddItem(new MenuItem("UseQLC", "Use Q Laneclear")).SetValue(true); Menu.SubMenu("Farm").AddItem(new MenuItem("QManaLH", "Min Q Mana % LH").SetValue(new Slider(35, 1, 100))); Menu.SubMenu("Farm").AddItem(new MenuItem("QManaLC", "Min Q Mana % LC").SetValue(new Slider(35, 1, 100))); var MiscSubMenu = new Menu("[VH] Misc", "Misc"); var MiscTSubMenu = new Menu("Misc - Tumble", "MiscT"); { MiscTSubMenu.AddItem(new MenuItem("SmartQ", "Try to QE First").SetValue(false)); MiscTSubMenu.AddItem(new MenuItem("NoQEn", "Don't Q into enemies").SetValue(true)); MiscTSubMenu.AddItem(new MenuItem("NoAAStealth", "Don't AA while stealthed").SetValue(false)); MiscTSubMenu .AddItem( new MenuItem("WallTumble", "Tumble Over Wall").SetValue(new KeyBind("Y".ToCharArray()[0], KeyBindType.Press))); } var MiscCSubMenu = new Menu("Misc - Condemn", "MiscC"); { MiscCSubMenu.AddItem(new MenuItem("ENext", "E Next Auto").SetValue(new KeyBind("T".ToCharArray()[0], KeyBindType.Toggle))); MiscCSubMenu.AddItem(new MenuItem("PushDistance", "E Push Dist").SetValue(new Slider(425, 400, 500))); MiscCSubMenu.AddItem(new MenuItem("CondemnTurret", "Try to Condemn to turret").SetValue(false)); MiscCSubMenu.AddItem(new MenuItem("CondemnFlag", "Condemn to J4 flag").SetValue(true)); MiscCSubMenu.AddItem(new MenuItem("AutoE", "Auto E").SetValue(false)); MiscCSubMenu.AddItem(new MenuItem("AutoEKS", "Smart E Ks").SetValue(true)); MiscCSubMenu.AddItem(new MenuItem("NoEEnT", "No E Under enemy turret").SetValue(true)); } var MiscGSubMenu = new Menu("Misc - General", "MiscG"); { MiscGSubMenu.AddItem(new MenuItem("Packets", "Packet Casting").SetValue(true)); MiscGSubMenu.AddItem(new MenuItem("AntiGP", "Anti Gapcloser")).SetValue(true); MiscGSubMenu.AddItem(new MenuItem("Interrupt", "Interrupter").SetValue(true)); MiscGSubMenu .AddItem(new MenuItem("SpecialFocus", "Focus targets with 2 W marks").SetValue(false)); MiscGSubMenu .AddItem( new MenuItem("ThreshLantern", "Grab Thresh Lantern").SetValue(new KeyBind("S".ToCharArray()[0], KeyBindType.Press))); MiscGSubMenu.AddItem(new MenuItem("UseIgn", "Use Ignite")).SetValue(true); } MiscSubMenu.AddSubMenu(MiscTSubMenu); MiscSubMenu.AddSubMenu(MiscCSubMenu); MiscSubMenu.AddSubMenu(MiscGSubMenu); Menu.AddSubMenu(MiscSubMenu); Menu.AddSubMenu(new Menu("[VH] BushRevealer", "BushReveal")); //Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushReveal", "Bush Revealer").SetValue(new KeyBind("Z".ToCharArray()[0], KeyBindType.Toggle))); Menu.SubMenu("BushReveal").AddItem(new MenuItem("BushRevealer", "Trinket bush on condemn").SetValue(true)); Menu.AddSubMenu(new Menu("[VH] Items", "Items")); Menu.SubMenu("Items").AddItem(new MenuItem("BotrkC", "Botrk Combo").SetValue(true)); Menu.SubMenu("Items").AddItem(new MenuItem("BotrkH", "Botrk Harrass").SetValue(false)); Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuC", "Youmuu Combo").SetValue(true)); Menu.SubMenu("Items").AddItem(new MenuItem("YoumuuH", "Youmuu Harrass").SetValue(false)); Menu.SubMenu("Items").AddItem(new MenuItem("BilgeC", "Cutlass Combo").SetValue(true)); Menu.SubMenu("Items").AddItem(new MenuItem("BilgeH", "Cutlass Harrass").SetValue(false)); Menu.SubMenu("Items").AddItem(new MenuItem("OwnHPercBotrk", "Min Own H. % Botrk").SetValue(new Slider(50, 1, 100))); Menu.SubMenu("Items").AddItem(new MenuItem("EnHPercBotrk", "Min Enemy H. % Botrk").SetValue(new Slider(20, 1, 100))); Menu.AddSubMenu(new Menu("[VH] QSS", "QSSMenu")); Menu.SubMenu("QSSMenu").AddItem(new MenuItem("UseQSS", "Use QSS").SetValue(true)); Menu.SubMenu("QSSMenu").AddItem(new MenuItem("QSSMinBuffs", "Min Buffs to QSS").SetValue(new Slider(2,1,5))); Menu.AddSubMenu(new Menu("[VH] QSS Buff Types", "QSST")); Cleanser.CreateTypeQSSMenu(); Menu.AddSubMenu(new Menu("[VH] QSS Spells", "QSSSpell")); Cleanser.CreateQSSSpellMenu(); Menu.AddSubMenu(new Menu("[VH] Don't Condemn", "NoCondemn")); CreateNoCondemnMenu(); Menu.AddSubMenu(new Menu("[VH] AutoPot", "AutoPot")); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APH", "Health Pot").SetValue(true)); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APM", "Mana Pot").SetValue(true)); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APH_Slider", "Health Pot %").SetValue(new Slider(35,1))); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APM_Slider", "Mana Pot %").SetValue(new Slider(35, 1))); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APHeal", "Use Heal").SetValue(true)); Menu.SubMenu("AutoPot").AddItem(new MenuItem("APHeal_Slider", "Heal %").SetValue(new Slider(35, 1))); Menu.AddSubMenu(new Menu("[VH] AutoLeveler", "AutoLevel")); Menu.SubMenu("AutoLevel").AddItem(new MenuItem("ALSeq", "AutoLevel Seq").SetValue(Orders)); Menu.SubMenu("AutoLevel").AddItem(new MenuItem("ALAct", "AutoLevel Active").SetValue(false)); Menu.AddSubMenu(new Menu("[VH] Drawings", "Draw")); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawE", "Draw E").SetValue(new Circle(true,Color.MediumPurple))); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawCond", "Draw Pos. Aft. E if Stun").SetValue(new Circle(true, Color.Red))); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawDrake", "Draw Drake Spot").SetValue(new Circle(true, Color.WhiteSmoke))); Menu.SubMenu("Draw").AddItem(new MenuItem("DrawMid", "Draw Mid Spot").SetValue(new Circle(true, Color.WhiteSmoke))); Menu.AddToMainMenu(); #endregion Game.PrintChat("<font color='#FF0000'>VayneHunter</font> <font color='#FFFFFF'>Rework loaded!</font>"); Game.PrintChat("By <font color='#FF0000'>DZ</font><font color='#FFFFFF'>191</font>. Special Thanks to: Kurisuu & KonoeChan"); Game.PrintChat("If you like my assemblies feel free to donate me (link on the forum :) )"); //Cleanser.cleanUselessSpells(); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E,550f); R = new Spell(SpellSlot.R); E.SetTargetted(0.25f,1600f); Orbwalking.AfterAttack += Orbwalker_AfterAttack; Game.OnGameUpdate += Game_OnGameUpdate; // Game.OnGameProcessPacket += GameOnOnGameProcessPacket; Interrupter.OnPossibleToInterrupt += Interrupter_OnPossibleToInterrupt; AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser; Drawing.OnDraw += Drawing_OnDraw; GameObject.OnCreate += Cleanser.OnCreateObj; GameObject.OnDelete += Cleanser.OnDeleteObj; Menu.Item("ALAct").ValueChanged += AutoLevel_ValueChanged; #region AutoLeveler if (isMenuEnabled("ALAct") && !aLInit) { var AutoLevel_I = new AutoLevel( getSequence( Menu.Item("ALSeq").GetValue<StringList>().SList[ Menu.Item("ALSeq").GetValue<StringList>().SelectedIndex])); aLInit = true; } }
public static void Load() { Events.OnLoad += (obj, loadArgs) => { Shop.Main.Init(); _autoLevel = new AutoLevel(AutoLevel.GetSequenceFromDb()); _autoLevel.Enable(); Obj_AI_Base.OnIssueOrder += (sender, issueOrderArgs) => { if (SessionBasedData.Loaded && sender.IsMe) { if (issueOrderArgs.Order == GameObjectOrder.MoveTo && ObjectManager.Player.Distance(issueOrderArgs.TargetPosition) < 1000) { if (ObjectManager.Player.IsRecalling() || (ObjectManager.Player.InFountain() && ObjectManager.Player.HealthPercent < 95)) { Logging.Log("bot is recalling"); issueOrderArgs.Process = false; return; } if (issueOrderArgs.TargetPosition.IsDangerousPosition()) { Logging.Log("target position is dangerous"); issueOrderArgs.Process = false; return; } if (Environment.TickCount - _lastMovementCommand > Utility.Random.GetRandomInteger(300, 1100)) { Logging.Log("humanizing"); _lastMovementCommand = Environment.TickCount; return; } issueOrderArgs.Process = false; } if (issueOrderArgs.Target != null) { if (issueOrderArgs.Target is Obj_AI_Hero) { Logging.Log("anti outtraded"); if (ObjectManager.Player.IsUnderEnemyTurret() || (ObjectManager.Get <Obj_AI_Minion>().Count(m => m.IsEnemy && !m.IsDead && m.Distance(ObjectManager.Player) < 600) > 4 && Variables.Orbwalker.ActiveMode != OrbwalkingMode.Combo)) { issueOrderArgs.Process = false; return; } } if (issueOrderArgs.Target is Obj_AI_Minion && (issueOrderArgs.Target as Obj_AI_Minion).Team == GameObjectTeam.Neutral) { Logging.Log("skipped hitting jg camp"); issueOrderArgs.Process = false; return; } } } }; Spellbook.OnCastSpell += (sender, castSpellArgs) => { if (castSpellArgs.Slot == SpellSlot.Recall) { Variables.Orbwalker.ActiveMode = OrbwalkingMode.None; } }; Obj_AI_Base.OnProcessSpellCast += (sender, spellCastArgs) => { if (Variables.Orbwalker.ActiveMode != OrbwalkingMode.Combo && spellCastArgs.Target != null && spellCastArgs.Target.IsMe) { if (sender is Obj_AI_Minion) { AttackedByMinionsFlag = true; DelayAction.Add(350, () => AttackedByMinionsFlag = false); } if (sender is Obj_AI_Turret) { AttackedByTurretFlag = true; DelayAction.Add(500, () => AttackedByTurretFlag = false); } } }; Game.OnUpdate += args => { if (ObjectManager.Player.IsRecalling() || (ObjectManager.Player.InFountain() && ObjectManager.Player.HealthPercent < 95)) { Variables.Orbwalker.ActiveMode = OrbwalkingMode.None; return; } if (ObjectManager.Player.Position.IsDangerousPosition()) { AttackedByMinionsFlag = true; DelayAction.Add(350, () => AttackedByMinionsFlag = false); } }; Variables.Orbwalker.OnAction += (sender, args) => { if (ObjectManager.Player.IsRecalling()) { args.Process = false; Variables.Orbwalker.ActiveMode = OrbwalkingMode.None; } if (Environment.TickCount - _lastAfkCheckTime > 30000) { _lastAfkCheckTime = Environment.TickCount; if (_lastAfkCheckPosition.Distance(ObjectManager.Player.ServerPosition) < 400) { var pos = new Utility.Geometry.Circle(ObjectManager.Player.Position.ToVector2(), 500).ToPolygon().GetRandomPointInPolygon(); pos.WalkToPoint(OrbwalkingMode.None, true); } _lastAfkCheckPosition = ObjectManager.Player.ServerPosition; } }; }; }