static void Main(string[] args) { Console.WriteLine("Hello World!"); Trip trip = new TripToRussia(); Console.WriteLine(trip.getDescription() + " " + trip.cost() + " $"); Trip trip1 = new TripToParis(); trip1 = new Airplane(trip1); trip1 = new OceanView(trip1); trip1 = new SevenDays(trip1); Console.WriteLine(trip1.getDescription() + " " + trip1.cost() + " $"); Trip trip2 = new TripToMexica(); trip2 = new Bus(trip2); trip2 = new Lux(trip2); Console.WriteLine(trip2.getDescription() + " " + trip2.cost() + " $"); Console.ReadKey(); }
public override int GetHashCode() { unchecked { return((Lux.GetHashCode() * 397) ^ Timestamp.GetHashCode()); } }
public bool Equals(LuxSample other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Lux.Equals(other.Lux) && Timestamp.Equals(other.Timestamp)); }
private static void Rdamage(EventArgs args) { var enemy = HeroManager.Enemies.Where(e => e.IsValidTarget(R1.Range)); if (Config.Item("optimize").GetValue <bool>()) { return; } foreach (var e in enemy) { if (e == null) { return; } else { var debuff = e.HasBuff("luxilluminatingfraulein"); float dmgr = R1.GetDamage(e); if (debuff) { dmgr += Lux.PassiveDMG(e); } var pos1 = Drawing.WorldToScreen(e.Position); if (Config.Item("draw.R.dmg").GetValue <bool>() && R1.IsReady()) { Drawing.DrawText(pos1.X - 50, pos1.Y + 30, System.Drawing.Color.Tomato, "[R] Damage = " + dmgr.ToString("#,#")); } } } var pos = Drawing.WorldToScreen(ObjectManager.Player.Position); if (Config.Item("draw.harass.indicator").GetValue <bool>()) { Drawing.DrawText(pos.X - 50, pos.Y + 35, System.Drawing.Color.AliceBlue, "AutoHarass:"); } if (Config.Item("autoharass").GetValue <KeyBind>().Active&& Config.Item("draw.harass.indicator").GetValue <bool>()) { Drawing.DrawText(pos.X + 43, pos.Y + 35, System.Drawing.Color.LawnGreen, "On"); } else if (Config.Item("draw.harass.indicator").GetValue <bool>()) { Drawing.DrawText(pos.X + 43, pos.Y + 35, System.Drawing.Color.Tomato, "Off"); } }
private static void On_LoadGame() { // remove Update check //try { Update.Check(); } //catch { } Game.Print("Supported Champions: Alistar, Blitz, Lux, Morgana, Pyke, Soraka, Thresh"); Game.Print("SPrediction Port By Mask"); if (ObjectManager.Player.CharacterName == "Soraka") { Soraka.Load(); Game.Print("Soraka Script Load"); } else if (ObjectManager.Player.CharacterName == "Blitzcrank") { Blitz.BlitzOnLoad(); Game.Print("Blitzcrank Script Load"); Game.Print("This script is a Port of KurisuBlitz (Code of Kurisu)"); } else if (ObjectManager.Player.CharacterName == "Lux") { Lux.Load(); Game.Print("Partial Port of ChewyMoon Lux Load"); } else if (ObjectManager.Player.CharacterName == "Pyke") { Pyke.On_Load(); Game.Print("011110001.Pyke Load"); } else if (ObjectManager.Player.CharacterName == "Thresh") { Thresh.OnLoad(); Game.Print("011110001.Thresh Load"); } else if (ObjectManager.Player.CharacterName == "Alistar") { Alistar.OnLoad(); } else if (ObjectManager.Player.CharacterName == "Morgana") { Morgana.OnLoad(); Game.Print("Morgana Script Load"); Game.Print("This script is a Port of Kurisu Morgana (Code of Kurisu)"); } }
private static void OnGameLoad() { Game.Print("Supported Champions: Alistar, Blitz, Lux, Morgana, Pyke, Soraka, Thresh"); Game.Print("SPrediction Port By Mask"); if (ObjectManager.Player.CharacterName == "Soraka") { Soraka.Load(); Game.Print("Soraka Script Load"); } else if (ObjectManager.Player.CharacterName == "Blitzcrank") { Blitz.BlitzOnLoad(); Game.Print("Blitzcrank Script Load"); Game.Print("This script is a Port of KurisuBlitz (Code of Kurisu)"); } else if (ObjectManager.Player.CharacterName == "Lux") { Lux.Load(); Game.Print("Partial Port of ChewyMoon Lux Load"); } else if (ObjectManager.Player.CharacterName == "Pyke") { Pyke.On_Load(); Game.Print("011110001.Pyke Load"); } else if (ObjectManager.Player.CharacterName == "Thresh") { Thresh.OnLoad(); Game.Print("011110001.Thresh Load"); } else if (ObjectManager.Player.CharacterName == "Alistar") { Alistar.OnLoad(); } else if (ObjectManager.Player.CharacterName == "Morgana") { Morgana.OnLoad(); Game.Print("Morgana Script Load"); Game.Print("This script is Fixed By Memory"); Notifications.Add(new Notification("Easy Support Fixed By Memory", "Credit Memory")); } }
private static void On_LoadGame() { logo = new Render.Sprite(LoadImg("lgo"), new Vector2(Drawing.Width / 2 - 250, Drawing.Height / 2 - 250)); logo.Add(0); logo.OnDraw(); DelayAction.Add(7000, () => logo.Remove()); Chat.PrintChat("Supported Champions: Blitz , Soraka, Lux, Pyke"); Chat.PrintChat("SPrediction Port By Mask"); if (ObjectManager.Player.CharacterName == "Soraka") { Soraka.Load(); Chat.PrintChat("Soraka Script Load"); } else if (ObjectManager.Player.CharacterName == "Blitzcrank") { Blitz.BlitzOnLoad(); Chat.PrintChat("Blitzcrank Script Load"); Chat.PrintChat("This script is a Port of KurisuBlitz (Code of Kurisu)"); } else if (ObjectManager.Player.CharacterName == "Lux") { Lux.Load(); Chat.PrintChat("Partial Port of ChewyMoon Lux Load"); } else if (ObjectManager.Player.CharacterName == "Pyke") { Pyke.On_Load(); Chat.PrintChat("011110001.Pyke Load"); } else if (ObjectManager.Player.CharacterName == "Thresh") { Thresh.OnLoad(); Chat.PrintChat("011110001.Thresh Load"); } else if (ObjectManager.Player.CharacterName == "Alistar") { Alistar.OnLoad(); } }
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; }
private static void OnLoadingComplete() { try { switch (ObjectManager.GetLocalPlayer().ChampionName) { case "Jhin": var unused = new Jhin(); Console.WriteLine("FrOnDaL AIO Jhin loaded"); break; case "Veigar": var unused1 = new Veigar(); Console.WriteLine("FrOnDaL AIO Veigar loaded"); break; case "Swain": var unused2 = new Swain(); Console.WriteLine("FrOnDaL AIO Swain loaded"); break; case "Varus": var unused3 = new Varus(); Console.WriteLine("FrOnDaL AIO Varus loaded"); break; case "Thresh": var unused4 = new Thresh(); Console.WriteLine("FrOnDaL AIO Thresh loaded"); break; case "Lux": var unused5 = new Lux(); Console.WriteLine("FrOnDaL AIO Lux loaded"); break; case "Shen": var unused6 = new Shen(); Console.WriteLine("FrOnDaL AIO Shen loaded"); break; case "DrMundo": var unused7 = new DrMundo(); Console.WriteLine("FrOnDaL AIO Dr.Mundo loaded"); break; case "JarvanIV": var unused8 = new JarvanIv(); Console.WriteLine("FrOnDaL AIO Jarvan IV loaded"); break; case "AurelionSol": var unused9 = new AurelionSol(); Console.WriteLine("FrOnDaL AIO AurelionSol loaded"); break; case "Ziggs": var unused10 = new Ziggs(); Console.WriteLine("FrOnDaL AIO Ziggs loaded"); break; } } catch (Exception) { Console.WriteLine("Champion not supported " + ObjectManager.GetLocalPlayer().ChampionName); } }
public void SetMatrix4(string varName, Lux.Framework.Matrix4 mat4) { float[] temp_mat4 = new float[16] { (float)mat4.OpenTKEquivalent.M11, (float)mat4.OpenTKEquivalent.M12, (float)mat4.OpenTKEquivalent.M13, (float)mat4.OpenTKEquivalent.M14, (float)mat4.OpenTKEquivalent.M21, (float)mat4.OpenTKEquivalent.M22, (float)mat4.OpenTKEquivalent.M23, (float)mat4.OpenTKEquivalent.M24, (float)mat4.OpenTKEquivalent.M31, (float)mat4.OpenTKEquivalent.M32, (float)mat4.OpenTKEquivalent.M33, (float)mat4.OpenTKEquivalent.M34, (float)mat4.OpenTKEquivalent.M41, (float)mat4.OpenTKEquivalent.M42, (float)mat4.OpenTKEquivalent.M43, (float)mat4.OpenTKEquivalent.M44 }; GL.UniformMatrix4(GL.GetUniformLocation(ID, varName), 1, false, temp_mat4); }
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; }
static void Main(string[] args) { Lux.LuxMain(); }