public static void Drawing_OnDraw(EventArgs args) { // Insec Helper var target = TargetSelector.SelectedTarget; var colors = System.Drawing.Color.White; if (Menus.DrawMenu.checkbox("insec") && (Insec.NormalInsec || Insec.NewInsec)) { var insecpos = Insec.insectpos(target); float x; float y; if (target == null) { x = Game.CursorPos.WorldToScreen().X; y = Game.CursorPos.WorldToScreen().Y - 15; Drawing.DrawText(x, y, colors, "SELECT A TARGET", 5); } else { x = target.ServerPosition.WorldToScreen().X; y = target.ServerPosition.WorldToScreen().Y; Drawing.DrawText(x, y, colors, "SELECTED TARGET", 5); Circle.Draw(Color.Red, target.BoundingRadius, target.ServerPosition); if (Insec.NewInsec && !Orbwalker.AzirSoldiers.Any(s => s.IsInRange(target, 420) && s.IsAlly)) { x = Game.CursorPos.WorldToScreen().X; y = Game.CursorPos.WorldToScreen().Y - 15; Drawing.DrawText(x, y, colors, "CREATE A SOLDIER NEAR THE TARGET FIRST", 5); } } if (insecpos == Vector3.Zero) { x = Game.CursorPos.WorldToScreen().X; y = Game.CursorPos.WorldToScreen().Y - 15; Drawing.DrawText(x, y, colors, "Cant Detect Insec Position", 5); } else { x = insecpos.WorldToScreen().X; y = insecpos.WorldToScreen().Y; Drawing.DrawText(x, y, colors, "Insec Position", 5); } if (target != null && insecpos != Vector3.Zero) { var pos = target.ServerPosition.Extend(insecpos, -200).To3D(); var rpos = Player.Instance.ServerPosition.Extend(insecpos, Azir.R.Range).To3D(); Circle.Draw(Color.White, 100, rpos); Circle.Draw(Color.White, 100, pos); Circle.Draw(Color.White, 200, insecpos); Line.DrawLine(colors, pos, rpos); } } // Spells Drawings foreach (var spell in Azir.SpellList) { var color = Menus.ColorMenu.Color(spell.Slot.ToString()); var draw = Menus.DrawMenu.checkbox(spell.Slot.ToString()); if (draw) { Circle.Draw(new ColorBGRA(color.R, color.G, color.B, color.A), spell.Range, Player.Instance.ServerPosition); } } }
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"); }