private int recallsWithGold; //TODO repair shop and remove this tempfix public Recall(LogicSelector currentLogic, Menu parMenu) { Menu menu = parMenu.AddSubMenu("Recall settings", "ergtrh"); flatGold = new Slider("Minimum base gold to recall", 560, 0, 4000); goldPerLevel = new Slider("Minmum gold per level to recall", 70, 0, 300); menu.Add("mingold", flatGold); menu.Add("goldper", goldPerLevel); menu.AddSeparator(100); menu.AddLabel( @" Example: Your champ has lvl 10 Base gold = 560 Gold per level = 70 Minimum gold = 560+70*10 = 1260 AutoBuddy won't recall if you have less gold than needed for next item. "); current = currentLogic; foreach ( Obj_SpawnPoint so in ObjectManager.Get <Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team)) { spawn = so; } Core.DelayAction(ShouldRecall, 3000); Drawing.OnDraw += Drawing_OnDraw; }
private int recallsWithGold; //TODO repair shop and remove this tempfix public Recall(LogicSelector currentLogic, Menu parMenu) { Menu menu = parMenu.AddSubMenu("Recall settings", "ergtrh"); flatGold=new Slider("Minimum base gold to recall", 560, 0, 4000); goldPerLevel = new Slider("Minmum gold per level to recall", 70, 0, 300); menu.Add("mingold", flatGold); menu.Add("goldper", goldPerLevel); menu.AddSeparator(100); menu.AddLabel( @" Example: Your champ has lvl 10 Base gold = 560 Gold per level = 70 Minimum gold = 560+70*10 = 1260 AutoBuddy won't recall if you have less gold than needed for next item. "); current = currentLogic; foreach ( Obj_SpawnPoint so in ObjectManager.Get<Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team)) { spawn = so; } Core.DelayAction(ShouldRecall, 3000); if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue) Drawing.OnDraw += Drawing_OnDraw; }
private void Obj_AI_Base_OnTeleport(GameObject sender, TeleportEventArgs args) { var unit = sender as AIHeroClient; if (unit == null || !unit.IsValid || unit.IsAlly) { return; } var decoded = new RecallInf(unit.NetworkId, args.Status, args.Type, args.Duration, args.Start); if (unit.NetworkId == Hero.NetworkId && decoded.Type == TeleportType.Recall) { RecallStatus = decoded.Status; if (decoded.Status == TeleportStatus.Finish) { BeforeRecallLocation = Hero.ServerPosition; Obj_SpawnPoint enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); if (enemySpawn != null) { LastLocation = enemySpawn.Position; PredictedLocation = enemySpawn.Position; } LastSeen = Game.Time; } } }
public static void Tick() { if (spawn == null) { foreach (Obj_SpawnPoint so in ObjectManager.Get <Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team)) { spawn = so; } } }
private void SubscribeToEvents() { SpawnPoint = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); if (SpawnPoint == null) { throw new Exception("Something went wrong. Baseult couldn't load."); } Game.OnTick += Game_OnTick; ChampionTracker.Initialize(ChampionTrackerFlags.VisibilityTracker); }
private static void GameOnOnGameLoad(EventArgs args) { if (Player.ChampionName != "Quinn") { return; } enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = new Menu("奎因", "YuleQuinn", true); Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking")); new Quinn().LoadQuinn(); Config.SubMenu("Misc").SubMenu("Prediction").AddItem(new MenuItem("PredictionMODE", "Prediction MODE", true).SetValue(new StringList(new[] { "Common prediction", "神预判" }, 1))); Config.SubMenu("Misc").SubMenu("Prediction").AddItem(new MenuItem("HitChance", "Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0))); Config.SubMenu("Misc").AddItem(new MenuItem("comboDisableMode", "Disable auto-attack in combo mode", true).SetValue(false)); Config.SubMenu("Misc").AddItem(new MenuItem("manaDisable", "Disable mana manager in combo", true).SetValue(false)); Config.SubMenu("Misc").AddItem(new MenuItem("collAA", "Disable auto-attack if Yasuo wall collision", true).SetValue(true)); foreach (var hero in ObjectManager.Get <Obj_AI_Hero>()) { if (hero.IsEnemy) { Enemies.Add(hero); } if (hero.IsAlly) { Allies.Add(hero); } } new WardUsing().LoadWard(); new Tracker().LoadTrack(); Config.AddToMainMenu(); Game.OnUpdate += OnUpdate; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; }
public Recall(LogicSelector currentLogic) { lastRecallGold = 30000; current = currentLogic; foreach ( Obj_SpawnPoint so in ObjectManager.Get<Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team)) { spawn = so; } Core.DelayAction(ShouldRecall, 3000); if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue) Drawing.OnDraw += Drawing_OnDraw; }
public Recall(LogicSelector currentLogic) { current = currentLogic; foreach ( var so in ObjectManager.Get <Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team)) { spawn = so; } Core.DelayAction(ShouldRecall, 3000); if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue) { Drawing.OnDraw += Drawing_OnDraw; } }
private static void Obj_AI_Base_OnTeleport(GameObject sender, GameObjectTeleportEventArgs args) { var unit = sender as Obj_AI_Hero; if (unit == null || !unit.IsValid || unit.IsAlly) { return; } var recall = Packet.S2C.Teleport.Decoded(unit, args); if (recall.Type == Packet.S2C.Teleport.Type.Recall) { switch (recall.Status) { case Packet.S2C.Teleport.Status.Start: RecallInfos.RemoveAll(x => x.RecallID == sender.NetworkId); RecallInfos.Add(new RecallInfo() { RecallID = sender.NetworkId, RecallStart = Game.Time, RecallNum = 0 }); break; case Packet.S2C.Teleport.Status.Abort: RecallInfos.RemoveAll(x => x.RecallID == sender.NetworkId); RecallInfos.Add(new RecallInfo() { RecallID = sender.NetworkId, RecallStart = Game.Time, RecallNum = 1 }); break; case Packet.S2C.Teleport.Status.Finish: RecallInfos.RemoveAll(x => x.RecallID == sender.NetworkId); if (jungler.NetworkId == sender.NetworkId) { enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); timer = (int)(enemySpawn.Position.Distance(ObjectManager.Player.Position) / 370); } RecallInfos.Add(new RecallInfo() { RecallID = sender.NetworkId, RecallStart = Game.Time, RecallNum = 2 }); break; } } }
static OktwCommon() { foreach (var hero in ObjectManager.Get <Obj_AI_Hero>()) { ChampionList.Add(hero); if (hero.IsEnemy && hero.ChampionName == "Yasuo") { YasuoInGame = true; } } EnemySpawnPoint = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Obj_AI_Base.OnIssueOrder += Obj_AI_Base_OnIssueOrder; Spellbook.OnCastSpell += Spellbook_OnCastSpell; Obj_AI_Base.OnDoCast += Obj_AI_Base_OnDoCast; Game.OnWndProc += Game_OnWndProc; }
private static void Game_OnGameUpdate(EventArgs args) { PotionMenager(); if (Config.Item("ward").GetValue <bool>() || (Config.Item("ward").GetValue <bool>() && Config.Item("Combo").GetValue <KeyBind>().Active&& Config.Item("wardC").GetValue <bool>())) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsValidTarget(2000))) { bool WallOfGrass = NavMesh.IsWallOfGrass(Prediction.GetPrediction(enemy, 0.3f).CastPosition, 0); if (WallOfGrass) { positionWard = Prediction.GetPrediction(enemy, 0.3f).CastPosition; WardTarget = enemy; WardTime = Game.Time; } } if (Player.Distance(positionWard) < 600 && !WardTarget.IsValidTarget() && Game.Time - WardTime < 5) { WardTime = Game.Time - 6; if (TrinketN.IsReady()) { TrinketN.Cast(positionWard); } else if (SightStone.IsReady()) { SightStone.Cast(positionWard); } else if (WardS.IsReady()) { WardS.Cast(positionWard); } else if (WardN.IsReady()) { WardN.Cast(positionWard); } } } Obj_SpawnPoint allySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsAlly); if (ObjectManager.Player.Distance(allySpawn.Position) > 600 && !Items.HasItem(Potion.Id) && Config.Item("buyPots").GetValue <bool>() && ObjectManager.Player.InFountain() && Game.Time - potionProtect >= 0.2) { Potion.Buy(); potionProtect = Game.Time; } }
private void Obj_AI_Base_OnTeleport(Obj_AI_Base sender, EloBuddy.SDK.Events.Teleport.TeleportEventArgs args) { //Packet.S2C.Teleport.Struct decoded = Packet.S2C.Teleport.Decoded(sender, args); if (sender.NetworkId == Hero.NetworkId && args.Type == TeleportType.Recall) { RecallStatus = args.Status; if (args.Status == TeleportStatus.Finish) { BeforeRecallLocation = Hero.ServerPosition; Obj_SpawnPoint enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); if (enemySpawn != null) { LastLocation = enemySpawn.Position; PredictedLocation = enemySpawn.Position; } LastSeen = Game.Time; } } }
private void Obj_AI_Base_OnTeleport(GameObject sender, GameObjectTeleportEventArgs args) { Packet.S2C.Teleport.Struct decoded = Packet.S2C.Teleport.Decoded(sender, args); if (decoded.UnitNetworkId == Hero.NetworkId && decoded.Type == Packet.S2C.Teleport.Type.Recall) { RecallStatus = decoded.Status; if (decoded.Status == Packet.S2C.Teleport.Status.Finish) { BeforeRecallLocation = Hero.ServerPosition; Obj_SpawnPoint enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); if (enemySpawn != null) { LastLocation = enemySpawn.Position; PredictedLocation = enemySpawn.Position; } LastSeen = Game.ClockTime; } } }
public TrackerCore() { foreach (var it in ObjectManager.Get <Obj_SpawnPoint>()) { if (it.IsEnemy) { enemy_spawn_point = it; } else { ally_spawn_point = it; } } foreach (var it in ObjectManager.Get <Obj_AI_Hero>()) { var hero = new HeroInfo(); hero.org = it; hero.old_dead = it.IsDead; hero.last_visible_tick = Utils.TickCount; hero.last_visible_position = OktwCommon.EnemySpawnPoint.Position; if (it.GetSpell(SpellSlot.Summoner1).Name.Contains("Smite")) { hero.is_jungler = true; } else if (it.GetSpell(SpellSlot.Summoner2).Name.Contains("Smite")) { hero.is_jungler = true; } heroes_info[it.NetworkId] = hero; } Game.OnUpdate += OnUpdate; GameObject.OnCreate += OnCreate; GameObject.OnDelete += OnDelete; Obj_AI_Base.OnTeleport += OnTeleport; }
public static void JunglerTimer() { if (Config.Item("timer").GetValue <bool>() && jungler != null && jungler.IsValid) { foreach (var enemy in Enemies.Where(enemy => enemy.IsValid)) { if (Config.Item("ro" + enemy.ChampionName) != null && Config.Item("ro" + enemy.ChampionName).GetValue <bool>()) { jungler = enemy; } } if (jungler.IsDead) { enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); timer = (int)(enemySpawn.Position.Distance(ObjectManager.Player.Position) / 370); } else if (jungler.IsVisible && jungler.IsValid) { float Way = 0; var JunglerPath = Player.GetPath(Player.Position, jungler.Position); var PointStart = Player.Position; if (JunglerPath == null) { return; } foreach (var point in JunglerPath) { if (PointStart.Distance(point) > 0) { Way += PointStart.Distance(point); PointStart = point; } } timer = (int)(Way / jungler.MoveSpeed); } } }
private int recallsWithGold; //TODO repair shop and remove this tempfix public Recall(LogicSelector currentLogic, Menu parMenu) { var menu = parMenu.AddSubMenu("Recall settings", "ergtrh"); menu.AddLabel( @" Autobuddy yanlizca HP/MP'niz belirttginiz yuzdeden daha dusukse geri doner. (varsayilan 25% HP/15% MP) Yani birsey satin alacak kadar altininiz oldugunda kolay oldurmeyi kaybetmessin. "); current = currentLogic; foreach ( var so in ObjectManager.Get <Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team)) { spawn = so; } Core.DelayAction(ShouldRecall, 3000); if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue) { Drawing.OnDraw += Drawing_OnDraw; } }
private int recallsWithGold; //TODO repair shop and remove this tempfix public Recall(LogicSelector currentLogic, Menu parMenu) { var menu = parMenu.AddSubMenu("Recall settings", "ergtrh"); menu.AddLabel( @" Autobuddy will recall only if your HP/MP is lower than the percentage you specified. (defaulted to 25% HP/15% MP) So you won't lose easy kills just because you have enough gold to buy something. "); current = currentLogic; foreach ( var so in ObjectManager.Get <Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team)) { spawn = so; } Core.DelayAction(ShouldRecall, 3000); if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue) { Drawing.OnDraw += Drawing_OnDraw; } }
private static void GameOnOnGameLoad(object sender, EventArgs args) { TextBold = new Font(Drawing.Direct3DDevice, new FontDescription { FaceName = "Impact", Height = 30, Weight = FontWeight.Normal, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType }); enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); W = new Spell(SpellSlot.W); E = new Spell(SpellSlot.E); R = new Spell(SpellSlot.R); Config = new Menu("OneKeyToWin AIO", "OneKeyToWin_AIO " + Player.CharacterName, true); #region MENU ABOUT OKTW var about = new Menu("aboutoktw", "About OKTW©"); about.Add(new MenuBool("debug", "Debug")); about.Add(new MenuBool("debugChat", "Debug Chat")); about.Add(new Menu("0", "OneKeyToWin© by Sebby")); about.Add(new Menu("1", "visit joduska.me")); about.Add(new Menu("2", "DONATE: [email protected]")); about.Add(new MenuBool("print", "OKTW NEWS in chat", true)); Config.Add(about); #endregion Config.Add(new MenuList <string>("AIOmode", "AIO mode", new[] { "Utility and Champion", "Only Champion", "Only Utility" }, Player.CharacterName) { Index = 0 }); AIOmode = Config.GetValue <MenuList <string> >("AIOmode").Index; if (AIOmode != 1) { var utilityDraws = new Menu("utilitydraws", "Utility, Draws OKTW©"); var gankTimer = new Menu("ganktimer", "GankTimer"); gankTimer.Add(new MenuBool("enabled", "Enabled", true)); gankTimer.Add(new Menu("1", "RED - be careful")); gankTimer.Add(new Menu("2", "ORANGE - you have time")); gankTimer.Add(new Menu("3", "GREEN - jungler visible")); gankTimer.Add(new Menu("4", "CYAN jungler dead - take objectives")); utilityDraws.Add(gankTimer); Config.Add(utilityDraws); } var predictionmode = new Menu("predictionmode", "Prediction Mode"); predictionmode.Add(new MenuList <string>("Qpred", "Q Prediction MODE", new[] { "SDK", "OKTW© PREDICTION", "SPrediction press F5 if not loaded (outdated)", "Exory prediction" }) { Index = 1 }); predictionmode.Add(new MenuList <string>("QHitChance", "Q Hit Chance", new[] { "Very High", "High", "Medium" }, Player.CharacterName) { Index = 0 }); predictionmode.Add(new MenuList <string>("Wpred", "W Prediction MODE", new[] { "SDK", "OKTW© PREDICTION", "SPrediction press F5 if not loaded (outdated)", "Exory prediction" }) { Index = 1 }); predictionmode.Add(new MenuList <string>("WHitChance", "W Hit Chance", new[] { "Very High", "High", "Medium" }, Player.CharacterName) { Index = 0 }); predictionmode.Add(new MenuList <string>("Epred", "E Prediction MODE", new[] { "SDK", "OKTW© PREDICTION", "SPrediction press F5 if not loaded (outdated)", "Exory prediction" }) { Index = 1 }); predictionmode.Add(new MenuList <string>("EHitChance", "E Hit Chance", new[] { "Very High", "High", "Medium" }, Player.CharacterName) { Index = 0 }); predictionmode.Add(new MenuList <string>("Rpred", "R Prediction MODE", new[] { "SDK", "OKTW© PREDICTION", "SPrediction press F5 if not loaded (outdated)", "Exory prediction" }) { Index = 1 }); predictionmode.Add(new MenuList <string>("RHitChance", "R Hit Chance", new[] { "Very High", "High", "Medium" }, Player.CharacterName) { Index = 0 }); predictionmode.Add(new MenuBool("debugPred", "Draw Aiming OKTW© PREDICTION")); Config.Add(predictionmode); if (AIOmode != 2) { var extraSet = new Menu("extraSet", "Extra settings OKTW©"); extraSet.Add(new MenuBool("supportMode", "Support Mode", false, Player.CharacterName)); extraSet.Add(new MenuBool("comboDisableMode", "Disable auto-attack in combo mode", false, Player.CharacterName)); extraSet.Add(new MenuBool("manaDisable", "Disable mana manager in combo", false, Player.CharacterName)); extraSet.Add(new MenuBool("collAA", "Disable auto-attack if Yasuo wall collision", true, Player.CharacterName)); extraSet.Add(new MenuBool("harassLaneclear", "Skill-Harass in lane clear", true)); Config.Add(extraSet); extraSet.GetValue <MenuBool>("supportMode").Value = false; #region LOAD CHAMPIONS #endregion var player = Config[Player.CharacterName] as Menu; if (player == null) { player = new Menu(Player.CharacterName, Player.CharacterName); Config.Add(player); } var farm = player["farm"] as Menu; if (farm == null) { farm = new Menu("farm", "Farm"); player.Add(farm); } var spellsfarmtoggle = new Menu("spellsfarmtoggle", "SPELLS FARM TOGGLE"); spellsfarmtoggle.Add(new MenuBool("spellFarm", "OKTW spells farm", true)); spellsfarmtoggle.Add(new MenuList <string>("spellFarmMode", "SPELLS FARM TOGGLE MODE", new[] { "Scroll down", "Scroll press", "Key toggle", "Disable" }) { Index = 1 }); spellsfarmtoggle.Add(new MenuKeyBind("spellFarmKeyToggle", "Key toggle", Keys.N, KeyBindType.Toggle)); spellsfarmtoggle.Add(new MenuBool("showNot", "Show notification", true)); farm.Add(spellsfarmtoggle); spellsfarmtoggle.GetValue <MenuBool>("spellFarm").Permashow(true); } foreach (var hero in GameObjects.EnemyHeroes) { if (IsJungler(hero)) { jungler = hero; } } if (AIOmode != 1) { new Core.Activator().LoadOKTW(); new Core.AutoLvlUp().LoadOKTW(); new Core.OKTWdraws().LoadOKTW(); new Core.OKTWtracker().LoadOKTW(); new Core.OKTWward().LoadOKTW(); } Config.Add(new Menu("aiomodes", "!!! PRESS F5 TO RELOAD MODE !!!")); Config.Attach(); Game.OnUpdate += Game_OnUpdate; Game.OnWndProc += Game_OnWndProc; Drawing.OnDraw += Drawing_OnDraw; Variables.Orbwalker.OnAction += Orbwalker_OnAction; if (Config["aboutoktw"].GetValue <MenuBool>("print").Value) { Chat.PrintChat("<font size='30'>OneKeyToWin</font> <font color='#b756c5'>by Sebby</font>"); Chat.PrintChat("<font color='#b756c5'>OKTW NEWS: </font>" + OktwNews); } }
public static void GameOnOnGameLoad() { enemySpawn = ObjectManager.Get<Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = MainMenu.AddMenu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName); #region MENU ABOUT OKTW Config.Add("debug", new CheckBox("Debug", false)); Config.Add("debugChat", new CheckBox("Debug Chat", false)); Config.Add("print", new CheckBox("OKTW NEWS in chat")); #endregion Config.Add("AIOmode", new Slider("AIO mode (0 : Util & Champ | 1 : Only Champ | 2 : Only Util)", 0, 0, 2)); AIOmode = getSliderItem("AIOmode"); Config.Add("PredictionMODE", new Slider("Prediction MODE (0 : Common Pred | 1 : OKTW© PREDICTION | 2 : SPrediction | 3 : SDK)", 0, 0, 3)); Config.Add("HitChance", new Slider("AIO mode (0 : Very High | 1 : High | 2 : Medium)", 0, 0, 2)); Config.Add("debugPred", new CheckBox("Draw Aiming OKTW© PREDICTION", false)); if (getSliderItem("PredictionMODE") == 2) { SPrediction.Prediction.Initialize(Config); SPredictionLoad = true; } else { Config.AddLabel("SPREDICTION NOT LOADED"); } if (AIOmode != 2) { Config.Add("supportMode", new CheckBox("Support Mode", false)); Config.Add("comboDisableMode", new CheckBox("Disable auto-attack in combo mode", false)); Config.Add("manaDisable", new CheckBox("Disable mana manager in combo")); Config.Add("collAA", new CheckBox("Disable auto-attack if Yasuo wall collision")); #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Anivia": PortAIO.Champion.Anivia.Program.LoadOKTW(); break; case "Annie": PortAIO.Champion.Annie.Program.LoadOKTW(); break; case "Ashe": PortAIO.Champion.Ashe.Program.LoadOKTW(); break; case "Braum": PortAIO.Champion.Braum.Program.LoadOKTW(); break; case "Caitlyn": PortAIO.Champion.Caitlyn.Program.LoadOKTW(); break; case "Ekko": PortAIO.Champion.Ekko.Program.LoadOKTW(); break; case "Ezreal": Ezreal.LoadOKTW(); break; case "Graves": Graves.LoadOKTW(); break; case "Jayce": OneKeyToWin_AIO_Sebby.Champions.Jayce.LoadOKTW(); break; case "Jinx": Jinx.LoadOKTW(); break; case "Karthus": Karthus.LoadOKTW(); break; case "MissFortune": MissFortune.LoadOKTW(); break; case "Malzahar": Malzahar.LoadOKTW(); break; case "Orianna": Orianna.LoadOKTW(); break; case "Sivir": Sivir.LoadOKTW(); break; case "Twitch": Twitch.LoadOKTW(); break; case "Syndra": Syndra.LoadOKTW(); break; case "Velkoz": Velkoz.LoadOKTW(); break; case "Xerath": Xerath.LoadOKTW(); break; case "Swain": Swain.LoadOKTW(); break; case "Urgot": Urgot.LoadOKTW(); break; case "Ahri": Ahri.LoadOKTW(); break; case "Thresh": Thresh.LoadOKTW(); break; } } #endregion foreach (var hero in HeroManager.Enemies) { if (hero.IsEnemy && hero.Team != Player.Team) { Enemies.Add(hero); if (IsJungler(hero)) jungler = hero; } } foreach (var hero in HeroManager.Allies) { if (hero.IsAlly && hero.Team == Player.Team) Allies.Add(hero); } if (AIOmode != 1) { new OKTWward().LoadOKTW(); new OKTWtracker().LoadOKTW(); } Game.OnUpdate += OnUpdate; Orbwalker.OnPreAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; }
private static void Drawing_OnDraw(EventArgs args) { if (Config.Item("click").GetValue <bool>()) { foreach (var champion in ObjectManager.Get <Obj_AI_Hero>().Where(champion => Config.Item("GoodPlayer" + champion.BaseSkinName).GetValue <bool>() && champion.IsVisible && champion.IsValid)) { List <Vector2> waypoints = champion.GetWaypoints(); if (WayPoint != waypoints.Last <Vector2>()) { if (WayPointTime - Game.Time > -0.11) { Render.Circle.DrawCircle(champion.Position, 50, System.Drawing.Color.Cyan); } WayPointTime = Game.Time; } WayPoint = waypoints.Last <Vector2>(); } } var tw = TargetSelector.GetTarget(1500, TargetSelector.DamageType.Physical); if (Config.Item("click").GetValue <bool>() && tw.IsValidTarget()) { List <Vector2> waypoints = tw.GetWaypoints(); WayPoint = waypoints.Last <Vector2>(); Render.Circle.DrawCircle(waypoints.Last <Vector2>().To3D(), 50, System.Drawing.Color.Red); } if (Config.Item("Prediction").GetValue <bool>()) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsValidTarget(2000))) { var poutput = W.GetPrediction(enemy); drawText("HitChance: " + (int)poutput.Hitchance, enemy, System.Drawing.Color.GreenYellow); } } else if (Config.Item("infoCombo").GetValue <bool>()) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(enemy => enemy.IsValidTarget(2000))) { string combo; var hpCombo = Q.GetDamage(enemy) + W.GetDamage(enemy) + E.GetDamage(enemy); var hpLeft = enemy.Health - Q.GetDamage(enemy) + W.GetDamage(enemy) + E.GetDamage(enemy) + R.GetDamage(enemy); if (Q.GetDamage(enemy) > enemy.Health) { combo = "Q"; } else if (Q.GetDamage(enemy) + W.GetDamage(enemy) > enemy.Health) { combo = "QW"; } else if (Q.GetDamage(enemy) + W.GetDamage(enemy) + E.GetDamage(enemy) > enemy.Health) { combo = "QWE"; } else if (Q.GetDamage(enemy) + W.GetDamage(enemy) + E.GetDamage(enemy) + R.GetDamage(enemy) > enemy.Health) { combo = "QWER"; } else { if (Player.FlatPhysicalDamageMod > Player.FlatMagicDamageMod) { combo = "QWER+" + (int)(hpLeft / (Player.Crit * Player.GetAutoAttackDamage(enemy) + Player.GetAutoAttackDamage(enemy))) + " AA"; } else { combo = "QWER+" + (int)(hpLeft / hpCombo) + "QWE"; } } if (hpLeft > hpCombo) { drawText(combo, enemy, System.Drawing.Color.Red); } else if (hpLeft < 0) { drawText(combo, enemy, System.Drawing.Color.Red); } else if (hpLeft > 0) { drawText(combo, enemy, System.Drawing.Color.Yellow); } } } if (Config.Item("timer").GetValue <bool>() && jungler != null) { if (jungler.IsDead) { Obj_SpawnPoint enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); timer = (int)(enemySpawn.Position.Distance(ObjectManager.Player.Position) / 370); drawText(" " + timer, ObjectManager.Player, System.Drawing.Color.Cyan); } else if (jungler.IsVisible) { float Way = 0; var JunglerPath = ObjectManager.Player.GetPath(jungler.Position); var PointStart = ObjectManager.Player.Position; foreach (var point in JunglerPath) { if (PointStart.Distance(point) > 0) { Way += PointStart.Distance(point); PointStart = point; } } timer = (int)(Way / jungler.MoveSpeed); drawText(" " + timer, ObjectManager.Player, System.Drawing.Color.GreenYellow); } else { if (timer > 0) { drawText(" " + timer, ObjectManager.Player, System.Drawing.Color.Orange); } else { drawText(" " + timer, ObjectManager.Player, System.Drawing.Color.Red); } if (Game.Time - JungleTime >= 1) { timer = timer - 1; JungleTime = Game.Time; } } } }
public static void GameOnOnGameLoad() { TextBold = new Font(Drawing.Direct3DDevice, new FontDescription { FaceName = "Impact", Height = 30, Weight = FontWeight.Normal, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType }); enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = new Menu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName, true).SetFontStyle(System.Drawing.FontStyle.Bold, Color.DeepSkyBlue); Config.AddItem(new MenuItem("AIOmode", "AIO mode", true).SetValue(new StringList(new[] { "Utility and champion", "Only Champion", "Only Utility" }, 1))); AIOmode = Config.Item("AIOmode", true).GetValue <StringList>().SelectedIndex; if (AIOmode != 2) { Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); Orbwalker = new SebbyLib.Orbwalking.Orbwalker(Config.SubMenu("Orbwalking")); } #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Jinx": new Champions.Jinx(); break; case "Sivir": new Champions.Sivir(); break; case "Ezreal": new Champions.Ezreal(); break; case "KogMaw": new Champions.KogMaw(); break; case "Annie": new Champions.Annie(); break; case "Ashe": new Champions.Ashe(); break; case "MissFortune": new Champions.MissFortune(); break; case "Quinn": new Champions.Quinn(); break; case "Kalista": new Champions.Kalista(); break; case "Caitlyn": new Champions.Caitlyn(); break; case "Graves": new Champions.Graves(); break; case "Urgot": new Champions.Urgot(); break; case "Anivia": new Champions.Anivia(); break; case "Orianna": new Champions.Orianna(); break; case "Ekko": new Champions.Ekko(); break; case "Vayne": new Champions.Vayne(); break; case "Lucian": new Champions.Lucian(); break; case "Darius": new Champions.Darius(); break; case "Blitzcrank": new Champions.Blitzcrank(); break; case "Corki": new Champions.Corki(); break; case "Varus": new Champions.Varus(); break; case "Twitch": new Champions.Twitch(); break; case "Tristana": new Champions.Tristana(); break; case "Xerath": new Champions.Xerath(); break; case "Jayce": new Champions.Jayce(); break; case "Kayle": new Champions.Kayle(); break; case "Thresh": new Champions.Thresh(); break; case "Draven": new Champions.Draven(); break; case "Evelynn": new Champions.Evelynn(); break; case "Ahri": new Champions.Ahri(); break; case "Brand": new Champions.Brand(); break; case "Morgana": new Champions.Morgana(); break; case "Lux": new Champions.Lux(); break; case "Malzahar": new Champions.Malzahar(); break; case "Karthus": new Champions.Karthus(); break; case "Swain": new Champions.Swain(); break; case "TwistedFate": new Champions.TwistedFate(); break; case "Syndra": new Champions.Syndra(); break; case "Velkoz": new Champions.Velkoz(); break; case "Jhin": new Champions.Jhin(); break; case "Kindred": new Champions.Kindred(); break; case "Braum": new Champions.Braum(); break; case "Teemo": new Champions.Teemo(); break; case "Ziggs": new Champions.Ziggs(); break; } #endregion Config.SubMenu("Prediction MODE").AddItem(new MenuItem("Qpred", "Q Prediction MODE", true).SetValue(new StringList(new[] { "Common prediction", "OKTW© PREDICTION", "SPediction press F5 if not loaded", "SDK", "Exory prediction" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("QHitChance", "Q Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("Wpred", "W Prediction MODE", true).SetValue(new StringList(new[] { "Common prediction", "OKTW© PREDICTION", "SPediction press F5 if not loaded", "SDK", "Exory prediction" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("WHitChance", "W Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("Epred", "E Prediction MODE", true).SetValue(new StringList(new[] { "Common prediction", "OKTW© PREDICTION", "SPediction press F5 if not loaded", "SDK", "Exory prediction" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("EHitChance", "E Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("Rpred", "R Prediction MODE", true).SetValue(new StringList(new[] { "Common prediction", "OKTW© PREDICTION", "SPediction press F5 if not loaded", "SDK", "Exory prediction" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("RHitChance", "R Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("debugPred", "Draw Aiming OKTW© PREDICTION").SetValue(false)); if (Config.Item("Qpred", true).GetValue <StringList>().SelectedIndex == 2 || Config.Item("Wpred", true).GetValue <StringList>().SelectedIndex == 2 || Config.Item("Epred", true).GetValue <StringList>().SelectedIndex == 2 || Config.Item("Rpred", true).GetValue <StringList>().SelectedIndex == 2) { SPrediction.Prediction.Initialize(Config.SubMenu("Prediction MODE")); SPredictionLoad = true; Config.SubMenu("Prediction MODE").AddItem(new MenuItem("322", "SPREDICTION LOADED")); } else { Config.SubMenu("Prediction MODE").AddItem(new MenuItem("322", "SPREDICTION NOT LOADED")); } Config.AddItem(new MenuItem("aiomodes", "!!! PRESS F5 TO RELOAD MODE !!!")); Config.AddToMainMenu(); Game.OnUpdate += OnUpdate; SebbyLib.Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; }
private static void Obj_AI_Base_OnTeleport(GameObject sender, GameObjectTeleportEventArgs args) { var unit = sender as Obj_AI_Hero; if (unit == null || !unit.IsValid || unit.IsAlly) return; var recall = Packet.S2C.Teleport.Decoded(unit, args); if (recall.Type == Packet.S2C.Teleport.Type.Recall) { switch (recall.Status) { case Packet.S2C.Teleport.Status.Start: RecallInfos.RemoveAll(x => x.RecallID == sender.NetworkId); RecallInfos.Add(new RecallInfo() { RecallID = sender.NetworkId, RecallStart = Game.Time, RecallNum = 0 }); break; case Packet.S2C.Teleport.Status.Abort: RecallInfos.RemoveAll(x => x.RecallID == sender.NetworkId); RecallInfos.Add(new RecallInfo() { RecallID = sender.NetworkId, RecallStart = Game.Time, RecallNum = 1 }); break; case Packet.S2C.Teleport.Status.Finish: RecallInfos.RemoveAll(x => x.RecallID == sender.NetworkId); if (jungler.NetworkId == sender.NetworkId) { enemySpawn = ObjectManager.Get<Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); timer = (int)(enemySpawn.Position.Distance(ObjectManager.Player.Position) / 370); } RecallInfos.Add(new RecallInfo() { RecallID = sender.NetworkId, RecallStart = Game.Time, RecallNum = 2 }); break; } } }
public static void GameOnOnGameLoad() { enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = MainMenu.AddMenu("一键制胜 合集", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName); #region MENU ABOUT OKTW Config.Add("debug", new CheckBox("调试", false)); Config.Add("debugChat", new CheckBox("调试信息", false)); Config.Add("print", new CheckBox("OKTW更新信息")); #endregion Config.Add("AIOmode", new Slider("合集模式 (0 : 功能集 & 英雄 | 1 : 只载入英雄 | 2 : 只载入功能集)", 0, 0, 2)); AIOmode = getSliderItem("AIOmode"); Config.Add("PredictionMODE", new Slider("预判库 (0 : 库预判 | 1 : OKTW© 预判 | 2 : S预判)", 0, 0, 2)); Config.Add("HitChance", new Slider("AIO 预判模式 (0 : 非常高 | 1 : 高 | 2 : 中)", 0, 0, 2)); Config.Add("debugPred", new CheckBox("显示 瞄准OKTW©预判", false)); Config.Add("harassLaneclear", new CheckBox("清线时技能骚扰")); if (getSliderItem("PredictionMODE") == 2) { SPrediction.Prediction.Initialize(Config); SPredictionLoad = true; } else { Config.AddLabel("S预判未加载"); } if (AIOmode != 2) { Config.Add("supportMode", new CheckBox("辅助模式", false)); Config.Add("comboDisableMode", new CheckBox("连招屏蔽普攻", false)); Config.Add("manaDisable", new CheckBox("连招时无视蓝量控制器")); Config.Add("collAA", new CheckBox("面对亚索风墙停止普攻")); #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Anivia": PortAIO.Champion.Anivia.Anivia.LoadOKTW(); break; case "Annie": PortAIO.Champion.Annie.Program.LoadOKTW(); break; case "Ashe": PortAIO.Champion.Ashe.Program.LoadOKTW(); break; case "Braum": PortAIO.Champion.Braum.Program.LoadOKTW(); break; case "Caitlyn": new Caitlyn().LoadOKTW(); break; case "Ekko": PortAIO.Champion.Ekko.Program.LoadOKTW(); break; case "Ezreal": Ezreal.LoadOKTW(); break; case "Graves": Graves.LoadOKTW(); break; case "Jayce": OneKeyToWin_AIO_Sebby.Champions.Jayce.LoadOKTW(); break; case "Jinx": Jinx.LoadOKTW(); break; case "Karthus": Karthus.LoadOKTW(); break; case "MissFortune": MissFortune.LoadOKTW(); break; case "Malzahar": Malzahar.LoadOKTW(); break; case "Orianna": Orianna.LoadOKTW(); break; case "Sivir": Sivir.LoadOKTW(); break; case "Twitch": Twitch.LoadOKTW(); break; case "Syndra": Syndra.LoadOKTW(); break; case "Velkoz": Velkoz.LoadOKTW(); break; case "Xerath": Xerath.LoadOKTW(); break; case "Swain": Swain.LoadOKTW(); break; case "Urgot": Urgot.LoadOKTW(); break; case "Ahri": Ahri.LoadOKTW(); break; case "Thresh": Thresh.LoadOKTW(); break; case "Brand": Brand.LoadOKTW(); break; case "Blitzcrank": Blitzcrank.LoadOKTW(); break; case "Corki": Corki.LoadOKTW(); break; case "Darius": Darius.LoadOKTW(); break; case "Evelynn": OneKeyToWin_AIO_Sebby.Champions.Evelynn.LoadOKTW(); break; case "Jhin": Jhin.LoadOKTW(); break; case "Kindred": Kindred.LoadOKTW(); break; case "KogMaw": OneKeyToWin_AIO_Sebby.KogMaw.LoadOKTW(); break; case "Lux": Lux.LoadOKTW(); break; case "Morgana": Morgana.LoadOKTW(); break; case "Quinn": Quinn.LoadOKTW(); break; case "TwistedFate": OneKeyToWin_AIO_Sebby.Champions.TwistedFate.LoadOKTW(); break; } } #endregion foreach (var hero in HeroManager.Enemies) { if (hero.IsEnemy && hero.Team != Player.Team) { Enemies.Add(hero); if (IsJungler(hero)) { jungler = hero; } } } foreach (var hero in HeroManager.Allies) { if (hero.IsAlly && hero.Team == Player.Team) { Allies.Add(hero); } } if (AIOmode != 1) { new OKTWward().LoadOKTW(); new OKTWtracker().LoadOKTW(); } Game.OnUpdate += OnUpdate; Orbwalker.OnPreAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; }
private static void GameOnOnGameLoad(EventArgs args) { TextBold = new Font(Drawing.Direct3DDevice, new FontDescription { FaceName = "Impact", Height = 30, Weight = FontWeight.Normal, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType }); enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = new Menu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName, true); #region MENU ABOUT OKTW Config.SubMenu("About OKTW©").AddItem(new MenuItem("debug", "Debug").SetValue(false)); Config.SubMenu("About OKTW©").AddItem(new MenuItem("debugChat", "Debug Chat").SetValue(false)); Config.SubMenu("About OKTW©").AddItem(new MenuItem("0", "OneKeyToWin© by Sebby")); Config.SubMenu("About OKTW©").AddItem(new MenuItem("1", "visit joduska.me")); Config.SubMenu("About OKTW©").AddItem(new MenuItem("2", "DONATE: [email protected]")); Config.SubMenu("About OKTW©").AddItem(new MenuItem("print", "OKTW NEWS in chat").SetValue(true)); #endregion Config.AddItem(new MenuItem("AIOmode", "AIO mode", true).SetValue(new StringList(new[] { "Utility and champion", "Only Champion", "Only Utility" }, 0))); AIOmode = Config.Item("AIOmode", true).GetValue <StringList>().SelectedIndex; //var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); //TargetSelector.AddToMenu(targetSelectorMenu); //Config.AddSubMenu(targetSelectorMenu); if (AIOmode != 2) { if (Player.ChampionName != "MissFortune") { new Core.OktwTs().LoadOKTW(); } Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); Orbwalker = new SebbyLib.Orbwalking.Orbwalker(Config.SubMenu("Orbwalking")); } if (AIOmode != 1) { Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("timer", "GankTimer").SetValue(true)); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("1", "RED - be careful")); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("2", "ORANGE - you have time")); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("3", "GREEN - jungler visable")); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("4", "CYAN jungler dead - take objectives")); } Config.SubMenu("Prediction MODE").AddItem(new MenuItem("PredictionMODE", "Prediction MODE", true).SetValue(new StringList(new[] { "Common prediction", "OKTW© PREDICTION", "SPediction press F5 if not loaded", "SDK", "Exory prediction" }, 1))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("HitChance", "Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("debugPred", "Draw Aiming OKTW© PREDICTION").SetValue(false)); if (Config.Item("PredictionMODE", true).GetValue <StringList>().SelectedIndex == 2) { SPrediction.Prediction.Initialize(Config.SubMenu("Prediction MODE")); SPredictionLoad = true; Config.SubMenu("Prediction MODE").AddItem(new MenuItem("322", "SPREDICTION LOADED")); } else { Config.SubMenu("Prediction MODE").AddItem(new MenuItem("322", "SPREDICTION NOT LOADED")); } if (AIOmode != 2) { Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("supportMode", "Support Mode", true).SetValue(false)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("comboDisableMode", "Disable auto-attack in combo mode", true).SetValue(false)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("manaDisable", "Disable mana manager in combo", true).SetValue(false)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("collAA", "Disable auto-attack if Yasuo wall collision", true).SetValue(true)); Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").AddItem(new MenuItem("positioningAssistant", "Anti-Melee Positioning Assistant OKTW©").SetValue(false)); foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsMelee)) { Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").SubMenu("Positioning Assistant:").AddItem(new MenuItem("posAssistant" + enemy.ChampionName, enemy.ChampionName).SetValue(true)); } Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").AddItem(new MenuItem("positioningAssistantDraw", "Show notification").SetValue(true)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("harassLaneclear", "Skill-Harass in lane clear").SetValue(true)); Config.Item("supportMode", true).SetValue(false); #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Jinx": new Jinx().LoadOKTW(); break; case "Sivir": new Sivir().LoadOKTW(); break; case "Ezreal": new Ezreal().LoadOKTW(); break; case "KogMaw": new KogMaw().LoadOKTW(); break; case "Annie": new Annie().LoadOKTW(); break; case "Ashe": new Ashe().LoadOKTW(); break; case "MissFortune": new MissFortune().LoadOKTW(); break; case "Quinn": new Quinn().LoadOKTW(); break; case "Kalista": new Kalista().LoadOKTW(); break; case "Caitlyn": new Caitlyn().LoadOKTW(); break; case "Graves": new Graves().LoadOKTW(); break; case "Urgot": new Urgot().LoadOKTW(); break; case "Anivia": new Anivia().LoadOKTW(); break; case "Orianna": new Orianna().LoadOKTW(); break; case "Ekko": new Ekko().LoadOKTW(); break; case "Vayne": new Vayne().LoadOKTW(); break; case "Lucian": new Lucian().LoadOKTW(); break; case "Darius": new Champions.Darius().LoadOKTW(); break; case "Blitzcrank": new Champions.Blitzcrank().LoadOKTW(); break; case "Corki": new Champions.Corki().LoadOKTW(); break; case "Varus": new Champions.Varus().LoadOKTW(); break; case "Twitch": new Champions.Twitch().LoadOKTW(); break; case "Tristana": new Champions.Tristana().LoadMenuOKTW(); break; case "Xerath": new Champions.Xerath().LoadOKTW(); break; case "Jayce": new Champions.Jayce().LoadOKTW(); break; case "Kayle": new Champions.Kayle().LoadOKTW(); break; case "Thresh": new Champions.Thresh().LoadOKTW(); break; case "Draven": new Champions.Draven().LoadOKTW(); break; case "Evelynn": new Champions.Evelynn().LoadOKTW(); break; case "Ahri": new Champions.Ahri().LoadOKTW(); break; case "Brand": new Champions.Brand().LoadOKTW(); break; case "Morgana": new Morgana().LoadOKTW(); break; case "Lux": new Champions.Lux().LoadOKTW(); break; case "Malzahar": new Champions.Malzahar().LoadOKTW(); break; case "Karthus": new Champions.Karthus().LoadOKTW(); break; case "Swain": new Champions.Swain().LoadOKTW(); break; case "TwistedFate": new Champions.TwistedFate().LoadOKTW(); break; case "Syndra": new Champions.Syndra().LoadOKTW(); break; case "Velkoz": new Champions.Velkoz().LoadOKTW(); break; case "Jhin": new Champions.Jhin().LoadOKTW(); break; case "Kindred": new Champions.Kindred().LoadOKTW(); break; case "Braum": new Champions.Braum().LoadOKTW(); break; } #endregion Config.SubMenu(Player.ChampionName).SubMenu("Farm").SubMenu("SPELLS FARM TOGGLE").AddItem(new MenuItem("spellFarm", "OKTW spells farm").SetValue(true)).Show(); Config.SubMenu(Player.ChampionName).SubMenu("Farm").SubMenu("SPELLS FARM TOGGLE").AddItem(new MenuItem("spellFarmMode", "SPELLS FARM TOGGLE MODE").SetValue(new StringList(new[] { "Scroll down", "Scroll press", "Key toggle", "Disable" }, 1))); Config.SubMenu(Player.ChampionName).SubMenu("Farm").SubMenu("SPELLS FARM TOGGLE").AddItem(new MenuItem("spellFarmKeyToggle", "Key toggle").SetValue(new KeyBind("N".ToCharArray()[0], KeyBindType.Toggle))); Config.SubMenu(Player.ChampionName).SubMenu("Farm").SubMenu("SPELLS FARM TOGGLE").AddItem(new MenuItem("showNot", "Show notification").SetValue(true)); Config.Item("spellFarm").Permashow(true); } foreach (var hero in HeroManager.Enemies) { if (hero.IsEnemy && hero.Team != Player.Team) { if (IsJungler(hero)) { jungler = hero; } } } if (Config.Item("debug").GetValue <bool>()) { new Core.OKTWlab().LoadOKTW(); } if (AIOmode != 1) { new Activator().LoadOKTW(); new Core.OKTWward().LoadOKTW(); new Core.AutoLvlUp().LoadOKTW(); new Core.OKTWtracker().LoadOKTW(); new Core.OKTWdraws().LoadOKTW(); } new Core.OKTWtracker().LoadOKTW(); Config.AddItem(new MenuItem("aiomodes", "!!! PRESS F5 TO RELOAD MODE !!!")); //new Core.OKTWtargetSelector().LoadOKTW(); if (AIOmode != 2) { //new Core.OKTWfarmLogic().LoadOKTW(); } //new AfkMode().LoadOKTW(); Config.AddToMainMenu(); Game.OnUpdate += OnUpdate; SebbyLib.Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; Game.OnWndProc += Game_OnWndProc; if (Config.Item("print").GetValue <bool>()) { Game.PrintChat("<font size='30'>OneKeyToWin</font> <font color='#b756c5'>by Sebby</font>"); Game.PrintChat("<font color='#b756c5'>OKTW NEWS: </font>Ashe Q reset AA"); } }
public static void GameOnOnGameLoad() { enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = MainMenu.AddMenu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName); #region MENU ABOUT OKTW Config.Add("debug", new CheckBox("Debug", false)); Config.Add("debugChat", new CheckBox("Debug Chat", false)); Config.Add("print", new CheckBox("OKTW NEWS in chat")); #endregion Config.Add("AIOmode", new Slider("AIO mode (0 : Util & Champ | 1 : Only Champ | 2 : Only Util)", 0, 0, 2)); AIOmode = getSliderItem("AIOmode"); Config.Add("PredictionMODE", new Slider("Prediction MODE (0 : Common Pred | 1 : OKTW© PREDICTION | 2 : SPrediction | 3 : SDK)", 0, 0, 3)); Config.Add("HitChance", new Slider("AIO mode (0 : Very High | 1 : High | 2 : Medium)", 0, 0, 2)); Config.Add("debugPred", new CheckBox("Draw Aiming OKTW© PREDICTION", false)); Config.Add("harassLaneclear", new CheckBox("Skill-Harass in lane clear")); if (getSliderItem("PredictionMODE") == 2) { SPrediction.Prediction.Initialize(Config); SPredictionLoad = true; } else { Config.AddLabel("SPREDICTION NOT LOADED"); } if (AIOmode != 2) { Config.Add("supportMode", new CheckBox("Support Mode", false)); Config.Add("comboDisableMode", new CheckBox("Disable auto-attack in combo mode", false)); Config.Add("manaDisable", new CheckBox("Disable mana manager in combo")); Config.Add("collAA", new CheckBox("Disable auto-attack if Yasuo wall collision")); #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Anivia": PortAIO.Champion.Anivia.Anivia.LoadOKTW(); break; case "Annie": PortAIO.Champion.Annie.Program.LoadOKTW(); break; case "Ashe": PortAIO.Champion.Ashe.Program.LoadOKTW(); break; case "Braum": PortAIO.Champion.Braum.Program.LoadOKTW(); break; case "Caitlyn": new Caitlyn().LoadOKTW(); break; case "Ekko": PortAIO.Champion.Ekko.Program.LoadOKTW(); break; case "Ezreal": Ezreal.LoadOKTW(); break; case "Graves": Graves.LoadOKTW(); break; case "Jayce": OneKeyToWin_AIO_Sebby.Champions.Jayce.LoadOKTW(); break; case "Jinx": Jinx.LoadOKTW(); break; case "Karthus": Karthus.LoadOKTW(); break; case "MissFortune": MissFortune.LoadOKTW(); break; case "Malzahar": Malzahar.LoadOKTW(); break; case "Orianna": Orianna.LoadOKTW(); break; case "Sivir": Sivir.LoadOKTW(); break; case "Twitch": Twitch.LoadOKTW(); break; case "Syndra": Syndra.LoadOKTW(); break; case "Velkoz": Velkoz.LoadOKTW(); break; case "Xerath": Xerath.LoadOKTW(); break; case "Swain": Swain.LoadOKTW(); break; case "Urgot": Urgot.LoadOKTW(); break; case "Ahri": Ahri.LoadOKTW(); break; case "Thresh": Thresh.LoadOKTW(); break; case "Brand": Brand.LoadOKTW(); break; case "Blitzcrank": Blitzcrank.LoadOKTW(); break; case "Corki": Corki.LoadOKTW(); break; case "Darius": Darius.LoadOKTW(); break; case "Evelynn": OneKeyToWin_AIO_Sebby.Champions.Evelynn.LoadOKTW(); break; case "Jhin": Jhin.LoadOKTW(); break; case "Kindred": Kindred.LoadOKTW(); break; case "KogMaw": OneKeyToWin_AIO_Sebby.KogMaw.LoadOKTW(); break; case "Lux": Lux.LoadOKTW(); break; case "Morgana": Morgana.LoadOKTW(); break; case "Quinn": Quinn.LoadOKTW(); break; case "TwistedFate": OneKeyToWin_AIO_Sebby.Champions.TwistedFate.LoadOKTW(); break; } } #endregion foreach (var hero in HeroManager.Enemies) { if (hero.IsEnemy && hero.Team != Player.Team) { Enemies.Add(hero); if (IsJungler(hero)) { jungler = hero; } } } foreach (var hero in HeroManager.Allies) { if (hero.IsAlly && hero.Team == Player.Team) { Allies.Add(hero); } } if (AIOmode != 1) { new OKTWward().LoadOKTW(); new OKTWtracker().LoadOKTW(); } Game.OnUpdate += OnUpdate; Orbwalker.OnPreAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; }
public static void GameOnOnGameLoad() { enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new LeagueSharp.Common.Spell(SpellSlot.Q); E = new LeagueSharp.Common.Spell(SpellSlot.E); W = new LeagueSharp.Common.Spell(SpellSlot.W); R = new LeagueSharp.Common.Spell(SpellSlot.R); Config = MainMenu.AddMenu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName); #region MENU ABOUT OKTW Config.Add("debug", new CheckBox("Debug", false)); Config.Add("debugChat", new CheckBox("Debug Chat", false)); Config.Add("print", new CheckBox("OKTW NEWS in chat")); #endregion Config.Add("AIOmode", new Slider("AIO mode (0 : Util & Champ | 1 : Only Champ | 2 : Only Util)", 0, 0, 2)); AIOmode = getSliderItem("AIOmode"); if (AIOmode != 2) { if (Player.ChampionName != "MissFortune") { new Core.OktwTs().LoadOKTW(); } } if (AIOmode != 1) { Config.Add("timer", new CheckBox("GankTimer")); Config.AddLabel("RED - be careful"); Config.AddLabel("ORANGE - you have time"); Config.AddLabel("GREEN - jungler visable"); Config.AddLabel("CYAN jungler dead - take objectives"); } Config.Add("PredictionMODE", new Slider("Prediction MODE (0 : Common Pred | 1 : OKTW© PREDICTION | 2 : SPediction press F5 if not loaded)", 0, 0, 2)); Config.Add("HitChance", new Slider("AIO mode (0 : Very High | 1 : High | 2 : Medium)", 0, 0, 2)); Config.Add("debugPred", new CheckBox("Draw Aiming OKTW© PREDICTION", false)); if (getSliderItem("PredictionMODE") == 2) { SPrediction.Prediction.Initialize(Config); SPredictionLoad = true; } else { Config.AddLabel("SPREDICTION NOT LOADED"); } if (AIOmode != 2) { Config.Add("supportMode", new CheckBox("Support Mode", false)); Config.Add("comboDisableMode", new CheckBox("Disable auto-attack in combo mode", false)); Config.Add("manaDisable", new CheckBox("Disable mana manager in combo", true)); Config.Add("collAA", new CheckBox("Disable auto-attack if Yasuo wall collision", true)); #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Anivia": PortAIO.Champion.Anivia.Program.LoadOKTW(); break; case "Annie": PortAIO.Champion.Annie.Program.LoadOKTW(); break; case "Ashe": PortAIO.Champion.Ashe.Program.LoadOKTW(); break; } } #endregion foreach (var hero in HeroManager.Enemies) { if (hero.IsEnemy && hero.Team != Player.Team) { Enemies.Add(hero); if (IsJungler(hero)) { jungler = hero; } } } foreach (var hero in HeroManager.Allies) { if (hero.IsAlly && hero.Team == Player.Team) { Allies.Add(hero); } } if (getCheckBoxItem("debug")) { new Core.OKTWlab().LoadOKTW(); } if (AIOmode != 1) { new OneKeyToWin_AIO_Sebby.Activator().LoadOKTW(); new Core.OKTWward().LoadOKTW(); new Core.AutoLvlUp().LoadOKTW(); new Core.OKTWtracker().LoadOKTW(); new Core.OKTWdraws().LoadOKTW(); } new Core.OKTWtracker().LoadOKTW(); Config.AddGroupLabel("!!! PRESS F5 TO RELOAD MODE !!!"); Game.OnUpdate += OnUpdate; Orbwalker.OnPreAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; if (getCheckBoxItem("print")) { Chat.Print("<font size='30'>OneKeyToWin</font> <font color='#b756c5'>by Sebby</font>"); Chat.Print("<font color='#b756c5'>OKTW NEWS: </font> Vayne Q fix, Jinx faster E, Thresh new options"); } }
public static void GameOnOnGameLoad() { _spells = EloBuddy.SDK.Spells.SpellDatabase.GetSpellInfoList(ObjectManager.Player.BaseSkinName); enemySpawn = ObjectManager.Get<Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = MainMenu.AddMenu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName); #region MENU ABOUT OKTW Config.Add("debug", new CheckBox("Debug", false)); Config.Add("debugChat", new CheckBox("Debug Chat", false)); Config.Add("print", new CheckBox("OKTW NEWS in chat")); #endregion Config.Add("AIOmode", new Slider("AIO mode (0 : Util & Champ | 1 : Only Champ | 2 : Only Util)", 0, 0, 2)); AIOmode = getSliderItem("AIOmode"); var slots = new HashSet<SpellSlot>(); foreach (var info in _spells) { slots.Add(info.Slot); } Config.Add("PredictionMODE", new Slider("Pred Mode (0 : L# Pred | 1 : OKTW Pred | 2 : SPred | 3 : SDK | 4 : EB)", 0, 0, 4)); Config.Add("HitChance", new Slider("AIO mode (0 : Very High | 1 : High | 2 : Medium)", 0, 0, 2)); Config.Add("debugPred", new CheckBox("Draw Aiming OKTW© PREDICTION", false)); Config.Add("harassLaneclear", new CheckBox("Skill-Harass in lane clear")); if (getSliderItem("PredictionMODE") == 2) { SPrediction.Prediction.Initialize(Config); SPredictionLoad = true; } else { Config.AddLabel("SPREDICTION NOT LOADED"); } if (AIOmode != 2) { Config.Add("supportMode", new CheckBox("Support Mode", false)); Config.Add("comboDisableMode", new CheckBox("Disable auto-attack in combo mode", false)); Config.Add("manaDisable", new CheckBox("Disable mana manager in combo")); Config.Add("collAA", new CheckBox("Disable auto-attack if Yasuo wall collision")); #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Anivia": PortAIO.Champion.Anivia.Anivia.LoadOKTW(); break; case "Annie": PortAIO.Champion.Annie.Program.LoadOKTW(); break; case "Ashe": PortAIO.Champion.Ashe.Program.LoadOKTW(); break; case "Braum": PortAIO.Champion.Braum.Program.LoadOKTW(); break; case "Caitlyn": new Caitlyn().LoadOKTW(); break; case "Ekko": PortAIO.Champion.Ekko.Program.LoadOKTW(); break; case "Ezreal": Ezreal.LoadOKTW(); break; case "Graves": Graves.LoadOKTW(); break; case "Jayce": OneKeyToWin_AIO_Sebby.Champions.Jayce.LoadOKTW(); break; case "Jinx": new Jinx().LoadOKTW(); break; case "Karthus": Karthus.LoadOKTW(); break; case "Lucian": Lucian.LoadOKTW(); break; case "MissFortune": MissFortune.LoadOKTW(); break; case "Malzahar": Malzahar.LoadOKTW(); break; case "Orianna": Orianna.LoadOKTW(); break; case "Sivir": Sivir.LoadOKTW(); break; case "Twitch": Twitch.LoadOKTW(); break; case "Syndra": new OneKeyToWin_AIO_Sebby.Champions.Syndra().LoadOKTW(); break; case "Velkoz": Velkoz.LoadOKTW(); break; case "Xerath": Xerath.LoadOKTW(); break; case "Swain": Swain.LoadOKTW(); break; case "Urgot": Urgot.LoadOKTW(); break; case "Ahri": Ahri.LoadOKTW(); break; case "Thresh": Thresh.LoadOKTW(); break; case "Brand": Brand.LoadOKTW(); break; case "Blitzcrank": Blitzcrank.LoadOKTW(); break; case "Corki": Corki.LoadOKTW(); break; case "Darius": Darius.LoadOKTW(); break; case "Evelynn": OneKeyToWin_AIO_Sebby.Champions.Evelynn.LoadOKTW(); break; case "Jhin": Jhin.LoadOKTW(); break; case "Kindred": Kindred.LoadOKTW(); break; case "KogMaw": OneKeyToWin_AIO_Sebby.KogMaw.LoadOKTW(); break; case "Lux": Lux.LoadOKTW(); break; case "Morgana": Morgana.LoadOKTW(); break; case "Quinn": Quinn.LoadOKTW(); break; case "TwistedFate": OneKeyToWin_AIO_Sebby.Champions.TwistedFate.LoadOKTW(); break; case "Varus": new OneKeyToWin_AIO_Sebby.Champions.Varus().LoadOKTW(); break; } } #endregion foreach (var hero in HeroManager.Enemies) { if (hero.IsEnemy && hero.Team != Player.Team) { Enemies.Add(hero); if (IsJungler(hero)) jungler = hero; } } foreach (var hero in HeroManager.Allies) { if (hero.IsAlly && hero.Team == Player.Team) Allies.Add(hero); } if (AIOmode != 1) { new OKTWward().LoadOKTW(); new OKTWtracker().LoadOKTW(); } Game.OnUpdate += OnUpdate; LSEvents.BeforeAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; Game.OnTick += Game_OnTick; }
private static void GameOnOnGameLoad(EventArgs args) { enemySpawn = ObjectManager.Get<Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = new Menu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName, true); #region MENU ABOUT OKTW Config.SubMenu("About OKTW©").AddItem(new MenuItem("debug", "Debug").SetValue(false)); Config.SubMenu("About OKTW©").AddItem(new MenuItem("debugChat", "Debug Chat").SetValue(false)); Config.SubMenu("About OKTW©").AddItem(new MenuItem("0", "OneKeyToWin© by Sebby")); Config.SubMenu("About OKTW©").AddItem(new MenuItem("1", "visit joduska.me")); Config.SubMenu("About OKTW©").AddItem(new MenuItem("2", "DONATE: [email protected]")); Config.SubMenu("About OKTW©").AddItem(new MenuItem("print", "OKTW NEWS in chat").SetValue(true)); #endregion Config.AddItem(new MenuItem("AIOmode", "AIO mode", true).SetValue(new StringList(new[] { "Utility and champion", "Only Champion", "Only Utility" }, 0))); AIOmode = Config.Item("AIOmode", true).GetValue<StringList>().SelectedIndex; //var targetSelectorMenu = new Menu("Target Selector", "Target Selector"); //TargetSelector.AddToMenu(targetSelectorMenu); //Config.AddSubMenu(targetSelectorMenu); if (AIOmode != 2) { if (Player.ChampionName != "MissFortune") { new Core.OktwTs().LoadOKTW(); } Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalking")); } if (AIOmode != 1) { Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("timer", "GankTimer").SetValue(true)); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("1", "RED - be careful")); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("2", "ORANGE - you have time")); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("3", "GREEN - jungler visable")); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("4", "CYAN jungler dead - take objectives")); } Config.SubMenu("Prediction MODE").AddItem(new MenuItem("PredictionMODE", "Prediction MODE", true).SetValue(new StringList(new[] { "Common prediction", "OKTW© PREDICTION", "SPediction press F5 if not loaded"}, 1))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("HitChance", "Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("debugPred", "Draw Aiming OKTW© PREDICTION").SetValue(false)); if (Config.Item("PredictionMODE", true).GetValue<StringList>().SelectedIndex == 2) { SPrediction.Prediction.Initialize(Config.SubMenu("Prediction MODE")); SPredictionLoad = true; } else Config.SubMenu("Prediction MODE").AddItem(new MenuItem("322", "SPREDICTION NOT LOADED")); if (AIOmode != 2) { Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("supportMode", "Support Mode", true).SetValue(false)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("comboDisableMode", "Disable auto-attack in combo mode", true).SetValue(false)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("manaDisable", "Disable mana manager in combo", true).SetValue(false)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("collAA", "Disable auto-attack if Yasuo wall collision", true).SetValue(true)); Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").AddItem(new MenuItem("positioningAssistant", "Anti-Melee Positioning Assistant OKTW©").SetValue(true)); foreach (var enemy in ObjectManager.Get<Obj_AI_Hero>().Where(enemy => enemy.IsEnemy )) Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").SubMenu("Positioning Assistant:").AddItem(new MenuItem("posAssistant" + enemy.ChampionName, enemy.ChampionName).SetValue(true)); Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").AddItem(new MenuItem("positioningAssistantDraw", "Show notification").SetValue(true)); Config.Item("supportMode", true).SetValue(false); #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Jinx": new Jinx().LoadOKTW(); break; case "Sivir": new Sivir().LoadOKTW(); break; case "Ezreal": new Ezreal().LoadOKTW(); break; case "KogMaw": new KogMaw().LoadOKTW(); break; case "Annie": new Annie().LoadOKTW(); break; case "Ashe": new Ashe().LoadOKTW(); break; case "MissFortune": new MissFortune().LoadOKTW(); break; case "Quinn": new Quinn().LoadOKTW(); break; case "Kalista": new Kalista().LoadOKTW(); break; case "Caitlyn": new Caitlyn().LoadOKTW(); break; case "Graves": new Graves().LoadOKTW(); break; case "Urgot": new Urgot().LoadOKTW(); break; case "Anivia": new Anivia().LoadOKTW(); break; case "Orianna": new Orianna().LoadOKTW(); break; case "Ekko": new Ekko().LoadOKTW(); break; case "Vayne": new Vayne().LoadOKTW(); break; case "Lucian": new Lucian().LoadOKTW(); break; case "Darius": new Champions.Darius().LoadOKTW(); break; case "Blitzcrank": new Champions.Blitzcrank().LoadOKTW(); break; case "Corki": new Champions.Corki().LoadOKTW(); break; case "Varus": new Champions.Varus().LoadOKTW(); break; case "Twitch": new Champions.Twitch().LoadOKTW(); break; case "Tristana": new Champions.Tristana().LoadMenuOKTW(); break; case "Xerath": new Champions.Xerath().LoadOKTW(); break; case "Jayce": new Champions.Jayce().LoadOKTW(); break; case "Kayle": new Champions.Kayle().LoadOKTW(); break; case "Thresh": new Champions.Thresh().LoadOKTW(); break; case "Draven": new Champions.Draven().LoadOKTW(); break; case "Evelynn": new Champions.Evelynn().LoadOKTW(); break; case "Ahri": new Champions.Ahri().LoadOKTW(); break; case "Brand": new Champions.Brand().LoadOKTW(); break; case "Morgana": new Champions.Morgana().LoadOKTW(); break; case "Lux": new Champions.Lux().LoadOKTW(); break; case "Malzahar": new Champions.Malzahar().LoadOKTW(); break; case "Karthus": new Champions.Karthus().LoadOKTW(); break; case "Swain": new Champions.Swain().LoadOKTW(); break; case "TwistedFate": new Champions.TwistedFate().LoadOKTW(); break; case "Syndra": new Champions.Syndra().LoadOKTW(); break; case "Velkoz": new Champions.Velkoz().LoadOKTW(); break; case "Jhin": new Champions.Jhin().LoadOKTW(); break; case "Kindred": new Champions.Kindred().LoadOKTW(); break; } } #endregion foreach (var hero in ObjectManager.Get<Obj_AI_Hero>()) { if (hero.IsEnemy) { Enemies.Add(hero); if (IsJungler(hero)) jungler = hero; } if (hero.IsAlly) Allies.Add(hero); } if (Config.Item("debug").GetValue<bool>()) { new Core.OKTWlab().LoadOKTW(); } if (AIOmode != 1) { new Activator().LoadOKTW(); new Core.OKTWward().LoadOKTW(); new Core.AutoLvlUp().LoadOKTW(); new Core.OKTWtracker().LoadOKTW(); new Core.OKTWdraws().LoadOKTW(); } new Core.OKTWtracker().LoadOKTW(); Config.AddItem(new MenuItem("aiomodes", "!!! PRESS F5 TO RELOAD MODE !!!" )); //new Core.OKTWtargetSelector().LoadOKTW(); if (AIOmode != 2) { //new Core.OKTWfarmLogic().LoadOKTW(); } //new AfkMode().LoadOKTW(); Config.AddToMainMenu(); Game.OnUpdate += OnUpdate; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; Game.OnWndProc += Game_OnWndProc; if (Config.Item("print").GetValue<bool>()) { Game.PrintChat("<font size='30'>OneKeyToWin</font> <font color='#b756c5'>by Sebby</font>"); Game.PrintChat("<font color='#b756c5'>OKTW NEWS: </font> Ezreal R fix, Quinn new options"); } }
// static void Main(string[] args) { CustomEvents.Game.OnGameLoad += GameOnOnGameLoad; } private static void GameOnOnGameLoad(EventArgs args) { enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = new Menu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName, true); #region MENU ABOUT OKTW Config.SubMenu("About OKTW©").AddItem(new MenuItem("debug", "Debug").SetValue(false)); Config.SubMenu("About OKTW©").AddItem(new MenuItem("debugChat", "Debug Chat").SetValue(false)); Config.SubMenu("About OKTW©").AddItem(new MenuItem("print", "OKTW NEWS in chat").SetValue(true)); #endregion Config.AddItem(new MenuItem("AIOmode", "AIO mode", true).SetValue(new StringList(new[] { "Utility and champion", "Only Champion", "Only Utility" }, 0))); AIOmode = Config.Item("AIOmode", true).GetValue <StringList>().SelectedIndex; if (AIOmode != 2) { Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); Orbwalker = new LeagueSharp.Common.Orbwalking.Orbwalker(Config.SubMenu("Orbwalking")); } if (AIOmode != 1) { Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("timer", "GankTimer").SetValue(true)); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("1", "RED - be careful")); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("2", "ORANGE - you have time")); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("3", "GREEN - jungler visable")); Config.SubMenu("Utility, Draws OKTW©").SubMenu("GankTimer").AddItem(new MenuItem("4", "CYAN jungler dead - take objectives")); } Config.SubMenu("Prediction MODE").AddItem(new MenuItem("PredictionMODE", "Prediction MODE", true).SetValue(new StringList(new[] { "Common Prediction", "OKTW© Prediction", "SPediction press F5 if not loaded", "SDK" }, 1))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("HitChance", "Hit Chance", true).SetValue(new StringList(new[] { "Very High", "High", "Medium" }, 0))); Config.SubMenu("Prediction MODE").AddItem(new MenuItem("debugPred", "Draw Aiming OKTW© Prediction").SetValue(false)); if (Config.Item("PredictionMODE", true).GetValue <StringList>().SelectedIndex == 2) { SPrediction.Prediction.Initialize(Config.SubMenu("Prediction MODE")); SPredictionLoad = true; Config.SubMenu("Prediction MODE").AddItem(new MenuItem("322", "SPrediction LOADED")); } else { Config.SubMenu("Prediction MODE").AddItem(new MenuItem("322", "SPrediction NOT LOADED")); } if (AIOmode != 2) { Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("supportMode", "Support Mode", true).SetValue(false)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("comboDisableMode", "Disable auto-attack in combo mode", true).SetValue(false)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("manaDisable", "Disable mana manager in combo", true).SetValue(false)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("collAA", "Disable auto-attack if Yasuo wall collision", true).SetValue(true)); Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").AddItem(new MenuItem("positioningAssistant", "Anti-Melee Positioning Assistant OKTW©").SetValue(false)); foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.IsMelee)) { Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").SubMenu("Positioning Assistant:").AddItem(new MenuItem("posAssistant" + enemy.ChampionName, enemy.ChampionName).SetValue(true)); } Config.SubMenu("Extra settings OKTW©").SubMenu("Anti-Melee Positioning Assistant OKTW©").AddItem(new MenuItem("positioningAssistantDraw", "Show notification").SetValue(true)); Config.SubMenu("Extra settings OKTW©").AddItem(new MenuItem("harassLaneclear", "Skill-Harass in lane clear").SetValue(true)); Config.Item("supportMode", true).SetValue(false); #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Jinx": new Jinx().LoadOKTW(); break; case "Sivir": new Sivir().LoadOKTW(); break; case "Ezreal": new Ezreal().LoadOKTW(); break; case "KogMaw": new KogMaw().LoadOKTW(); break; case "Annie": new Annie().LoadOKTW(); break; case "Ashe": new Ashe().LoadOKTW(); break; case "MissFortune": new MissFortune().LoadOKTW(); break; case "Quinn": new Quinn().LoadOKTW(); break; case "Kalista": new Kalista().LoadOKTW(); break; case "Caitlyn": new Caitlyn().LoadOKTW(); break; case "Graves": new Graves().LoadOKTW(); break; case "Urgot": new Urgot().LoadOKTW(); break; case "Anivia": new Anivia().LoadOKTW(); break; case "Orianna": new Orianna().LoadOKTW(); break; case "Ekko": new Ekko().LoadOKTW(); break; case "Vayne": new Vayne().LoadOKTW(); break; case "Lucian": new Lucian().LoadOKTW(); break; case "Darius": new Champions.Darius().LoadOKTW(); break; case "Blitzcrank": new Champions.Blitzcrank().LoadOKTW(); break; case "Corki": new Champions.Corki().LoadOKTW(); break; case "Varus": new Champions.Varus().LoadOKTW(); break; case "Twitch": new Champions.Twitch().LoadOKTW(); break; case "Tristana": new Champions.Tristana().LoadMenuOKTW(); break; case "Xerath": new Champions.Xerath().LoadOKTW(); break; case "Jayce": new Champions.Jayce().LoadOKTW(); break; case "Kayle": new Champions.Kayle().LoadOKTW(); break; case "Thresh": new Champions.Thresh().LoadOKTW(); break; case "Draven": new Champions.Draven().LoadOKTW(); break; case "Evelynn": new Champions.Evelynn().LoadOKTW(); break; case "Ahri": new Champions.Ahri().LoadOKTW(); break; case "Brand": new Champions.Brand().LoadOKTW(); break; case "Morgana": new Morgana().LoadOKTW(); break; case "Lux": new Champions.Lux().LoadOKTW(); break; case "Malzahar": new Champions.Malzahar().LoadOKTW(); break; case "Karthus": new Champions.Karthus().LoadOKTW(); break; case "Swain": new Champions.Swain().LoadOKTW(); break; case "TwistedFate": new Champions.TwistedFate().LoadOKTW(); break; case "Syndra": new Champions.Syndra().LoadOKTW(); break; case "Velkoz": new Champions.Velkoz().LoadOKTW(); break; case "Jhin": new Champions.Jhin().LoadOKTW(); break; case "Kindred": new Champions.Kindred().LoadOKTW(); break; case "Braum": new Champions.Braum().LoadOKTW(); break; } } #endregion foreach (var hero in HeroManager.Enemies) { if (hero.IsEnemy && hero.Team != Player.Team) { if (IsJungler(hero)) { jungler = hero; } } } if (Config.Item("debug").GetValue <bool>()) { // new Core.OKTWlab().LoadOKTW(); } if (AIOmode != 1) { // new Activator().LoadOKTW(); new Core.OKTWward().LoadOKTW(); // new Core.AutoLvlUp().LoadOKTW(); // new Core.OKTWtracker().LoadOKTW(); // new Core.OKTWdraws().LoadOKTW(); } Config.AddToMainMenu(); Game.OnUpdate += OnUpdate; LeagueSharp.Common.Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; // Game.OnWndProc += Game_OnWndProc; if (Config.Item("print").GetValue <bool>()) { Chat.Print("<font size='30'>OneKeyToWin</font> <font color='#b756c5'>by Sebby</font>"); Chat.Print("<font color='#b756c5'>OKTW NEWS: </font>OKTW Prediction REWORKED"); } }
public static void JunglerTimer() { if (Config.Item("timer").GetValue<bool>() && jungler != null && jungler.IsValid) { foreach (var enemy in Enemies.Where(enemy => enemy.IsValid)) { if (Config.Item("ro" + enemy.ChampionName) != null && Config.Item("ro" + enemy.ChampionName).GetValue<bool>()) jungler = enemy; } if (jungler.IsDead) { enemySpawn = ObjectManager.Get<Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); timer = (int)(enemySpawn.Position.Distance(ObjectManager.Player.Position) / 370); } else if (jungler.IsVisible && jungler.IsValid) { float Way = 0; var JunglerPath = Player.GetPath(Player.Position, jungler.Position); var PointStart = Player.Position; if (JunglerPath == null) return; foreach (var point in JunglerPath) { if (PointStart.Distance(point) > 0) { Way += PointStart.Distance(point); PointStart = point; } } timer = (int)(Way / jungler.MoveSpeed); } } }
public static void GameOnOnGameLoad() { enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy); Q = new Spell(SpellSlot.Q); E = new Spell(SpellSlot.E); W = new Spell(SpellSlot.W); R = new Spell(SpellSlot.R); Config = MainMenu.AddMenu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName); #region MENU ABOUT OKTW Config.Add("debug", new CheckBox("Debug", false)); Config.Add("debugChat", new CheckBox("Debug Chat", false)); Config.Add("print", new CheckBox("OKTW NEWS in chat")); #endregion Config.Add("AIOmode", new Slider("AIO mode (0 : Util & Champ | 1 : Only Champ | 2 : Only Util)", 0, 0, 2)); AIOmode = getSliderItem("AIOmode"); if (AIOmode != 2) { if (Player.ChampionName != "MissFortune") { new OktwTs().LoadOKTW(); } } Config.Add("PredictionMODE", new Slider("Prediction MODE (0 : Common Pred | 1 : OKTW© PREDICTION)", 0, 0, 1)); Config.Add("HitChance", new Slider("AIO mode (0 : Very High | 1 : High | 2 : Medium)", 0, 0, 2)); Config.Add("debugPred", new CheckBox("Draw Aiming OKTW© PREDICTION", false)); if (AIOmode != 2) { Config.Add("supportMode", new CheckBox("Support Mode", false)); Config.Add("comboDisableMode", new CheckBox("Disable auto-attack in combo mode", false)); Config.Add("manaDisable", new CheckBox("Disable mana manager in combo")); Config.Add("collAA", new CheckBox("Disable auto-attack if Yasuo wall collision")); #region LOAD CHAMPIONS switch (Player.ChampionName) { case "Anivia": PortAIO.Champion.Anivia.Program.LoadOKTW(); break; case "Annie": PortAIO.Champion.Annie.Program.LoadOKTW(); break; case "Ashe": PortAIO.Champion.Ashe.Program.LoadOKTW(); break; case "Braum": PortAIO.Champion.Braum.Program.LoadOKTW(); break; case "Caitlyn": PortAIO.Champion.Caitlyn.Program.LoadOKTW(); break; case "Ekko": PortAIO.Champion.Ekko.Program.LoadOKTW(); break; case "Ezreal": Ezreal.LoadOKTW(); break; case "Graves": Graves.LoadOKTW(); break; case "Jayce": Jayce.LoadOKTW(); break; case "Jinx": Jinx.LoadOKTW(); break; case "Karthus": Karthus.LoadOKTW(); break; case "MissFortune": MissFortune.LoadOKTW(); break; case "Malzahar": Malzahar.LoadOKTW(); break; case "Orianna": Orianna.LoadOKTW(); break; case "Sivir": Sivir.LoadOKTW(); break; case "Twitch": Twitch.LoadOKTW(); break; case "Syndra": Syndra.LoadOKTW(); break; case "Velkoz": Velkoz.LoadOKTW(); break; case "Xerath": Xerath.LoadOKTW(); break; case "Swain": Swain.LoadOKTW(); break; case "Urgot": Urgot.LoadOKTW(); break; case "Ahri": Ahri.LoadOKTW(); break; case "Thresh": Thresh.LoadOKTW(); break; } } #endregion foreach (var hero in HeroManager.Enemies) { if (hero.IsEnemy && hero.Team != Player.Team) { Enemies.Add(hero); if (IsJungler(hero)) { jungler = hero; } } } foreach (var hero in HeroManager.Allies) { if (hero.IsAlly && hero.Team == Player.Team) { Allies.Add(hero); } } Game.OnUpdate += OnUpdate; Orbwalker.OnPreAttack += Orbwalking_BeforeAttack; Drawing.OnDraw += OnDraw; }