/// <summary> /// This event is triggered every tick of the game /// </summary> /// <param name="args"></param> private static void Game_OnTick(EventArgs args) { var orbMode = Orbwalker.ActiveModesFlags; var playerMana = Azir.ManaPercent; Active.Execute(); if (orbMode.HasFlag(Orbwalker.ActiveModes.Combo)) { Combo.Execute(); } if (orbMode.HasFlag(Orbwalker.ActiveModes.Harass) && playerMana > HarassMenu.GetSliderValue("manaSlider")) { Harass.Execute(); } if (orbMode.HasFlag(Orbwalker.ActiveModes.LastHit) && playerMana > LasthitMenu.GetSliderValue("manaSlider")) { LastHit.Execute(); } if (orbMode.HasFlag(Orbwalker.ActiveModes.LaneClear) && playerMana > LaneClearMenu.GetSliderValue("manaSlider")) { LaneClear.Execute(); } if (orbMode.HasFlag(Orbwalker.ActiveModes.JungleClear) && playerMana > JungleClearMenu.GetSliderValue("manaSlider")) { JungleClear.Execute(); } if (AutoHarassMenu.GetKeyBindValue("autoHarassKey")) { if (Orbwalker.AzirSoldiers.Count >= 1 && AutoHarassMenu.GetCheckBoxValue("attack")) { var target = TargetSelector.GetTarget(1250, DamageType.Magical); if (target == null) { return; } SoldierAttack(target); } if (playerMana > AutoHarassMenu.GetSliderValue("manaSlider")) { AutoHarass.Execute(); } } if (FleeMenu.GetKeyBindValue("insect")) { InSec.Normal(); } if (FleeMenu.GetKeyBindValue("insected")) { InSec.New(); } if (FleeMenu.GetKeyBindValue("flee")) { Flee.Execute(); } KillSteal.Execute(); }
public static void Game_OnTick(EventArgs args) { updatespells(); if (Insec.NewInsec) { var rpos = Player.Instance.ServerPosition.Extend(Insec.insectpos(), Azir.R.Range).To3D(); var qtime = Game.Time - Insec.qtime; if ((qtime > 0.1f && qtime < 0.1) || TargetSelector.SelectedTarget.IsValidTarget(Azir.R.Range - 75)) { Azir.R.Cast(rpos); } } if (Menus.ComboMenu.keybind("key")) { Combo.Execute(); } if (Menus.HarassMenu.keybind("key") || Menus.HarassMenu.keybind("toggle")) { Harass.Execute(); } if (Menus.LaneClearMenu.keybind("key")) { LaneClear.Execute(); } if (Menus.JungleClearMenu.keybind("key")) { JungleClear.Execute(); } if (Menus.JumperMenu.keybind("jump")) { Jumper.Jump(Game.CursorPos); } if (Menus.JumperMenu.keybind("normal")) { var target = TargetSelector.SelectedTarget; Insec.Normal(target); } if (Menus.JumperMenu.keybind("new")) { Insec.New(); } if (Menus.Auto.checkbox("tower")) { var azirtower = ObjectManager.Get <GameObject>() .FirstOrDefault(o => o != null && o.Name.ToLower().Contains("towerclicker") && Player.Instance.Distance(o) < 500); if (azirtower != null && azirtower.CountEnemeis(800) >= Menus.Auto.slider("Tenemy")) { Player.UseObject(azirtower); } } Insec.NormalInsec = Menus.JumperMenu.keybind("normal"); Insec.NewInsec = Menus.JumperMenu.keybind("new"); }