/// <summary> /// Fired when the game loads. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void OnGameLoad() { try { if (!Player.IsChampion("Zilean")) { return; } var igniteSlot = Player.GetSpellSlot("summonerdot"); if (igniteSlot != SpellSlot.Unknown) { IgniteSpell = new Spell(igniteSlot, 600f); } foreach (var ally in HeroManager.Allies) { IncomingDamageManager.AddChampion(ally); } IncomingDamageManager.Skillshots = true; Q = new Spell(SpellSlot.Q, 900f - 100f); W = new Spell(SpellSlot.W, Orbwalking.GetRealAutoAttackRange(Player)); E = new Spell(SpellSlot.E, 700f); R = new Spell(SpellSlot.R, 900f); Q.SetSkillshot(0.7f, 140f - 25f, int.MaxValue, false, SkillshotType.SkillshotCircle); GenerateMenu(); Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; Interrupter2.OnInterruptableTarget += OnInterruptableTarget; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; Obj_AI_Base.OnSpellCast += OnProcessSpellCast; Obj_AI_Base.OnBasicAttack += OnProcessSpellCast; Orbwalking.BeforeAttack += BeforeAttack; } catch (Exception exception) { Console.WriteLine(exception); } }
/// <summary> /// Fired when the game loads. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void OnGameLoad() { try { if (Player.ChampionName != "Zilean") { return; } var igniteSlot = Player.GetSpellSlot("summonerdot"); if (igniteSlot != SpellSlot.Unknown) { IgniteSpell = new Spell(igniteSlot, 600f); } foreach (var ally in HeroManager.Allies) { IncomingDamageManager.AddChampion(ally); } IncomingDamageManager.Skillshots = true; Q = new EloBuddy.SDK.Spell.Skillshot(SpellSlot.Q, 900 + 100, EloBuddy.SDK.Enumerations.SkillShotType.Circular, 300, 2000, 100); W = new Spell(SpellSlot.W, Player.GetAutoAttackRange(Player)); E = new Spell(SpellSlot.E, 700f); R = new Spell(SpellSlot.R, 900f); GenerateMenu(); Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; Interrupter2.OnInterruptableTarget += OnInterruptableTarget; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; Orbwalker.OnPreAttack += BeforeAttack; } catch (Exception exception) { Console.WriteLine(exception); } }
/// <summary> /// Fired when the game loads. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> public static void OnGameLoad() { try { if (Player.ChampionName != "Zilean") { return; } var igniteSlot = Player.GetSpellSlot("summonerdot"); if (igniteSlot != SpellSlot.Unknown) { IgniteSpell = new Spell(igniteSlot, 600f); } foreach (var ally in HeroManager.Allies) { IncomingDamageManager.AddChampion(ally); Console.WriteLine(@"[ELZILEAN] loaded champions: {0}", ally.ChampionName); } IncomingDamageManager.RemoveDelay = 500; IncomingDamageManager.Skillshots = true; Q = new Spell(SpellSlot.Q, 900f); W = new Spell(SpellSlot.W, Player.GetAutoAttackRange(Player)); E = new Spell(SpellSlot.E, 700f); R = new Spell(SpellSlot.R, 900f); Q.SetSkillshot(0.7f, 140f, int.MaxValue, false, SkillshotType.SkillshotCircle); GenerateMenu(); Game.OnUpdate += OnUpdate; } catch (Exception exception) { Console.WriteLine(exception); } }