Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using LeagueSharp;
- using LeagueSharp.Common;
- using SharpDX;
- using System.Drawing;
- using Color = System.Drawing.Color;
- namespace ConsoleApplication1
- {
- internal class Veigar
- {
- public static Spell Q, W, E, R;
- private static readonly Obj_AI_Hero Player = ObjectManager.Player;
- public static Menu _menu;
- private static Orbwalking.Orbwalker orbwalker;
- private static void Main(string[] args)
- {
- CustomEvents.Game.OnGameLoad += OnLoad;
- }
- private static void OnLoad(EventArgs args)
- {
- if (Player.ChampionName != "Veigar") return;
- Notifications.AddNotification("Freelo_Veigar by Jentika!", 10000);
- Q = new Spell(SpellSlot.Q, 940);
- W = new Spell(SpellSlot.W, 890);
- E = new Spell(SpellSlot.E, 700);
- R = new Spell(SpellSlot.R, 650);
- Q.SetSkillshot(.25f, 70f, 2000f, false, SkillshotType.SkillshotLine);
- E.SetSkillshot(1.25f, 225f, float.MaxValue, false, SkillshotType.SkillshotCircle);
- W.SetSkillshot(.8f, 25f, float.MaxValue, false, SkillshotType.SkillshotCircle);
- _menu = new Menu("Freelo_Veigar", "Menu", true);
- var DrawingMenu = new Menu("Drawings", "Drawings");
- DrawingMenu.AddItem(new MenuItem("FreeloVeigar.Draw.off", "Turn drawings off").SetValue(false));
- DrawingMenu.AddItem(new MenuItem("FreeloVeigar.DrawQ", "Draw Q").SetValue(true));
- DrawingMenu.AddItem(new MenuItem("FreeloVeigar.Draw.W", "Draw W").SetValue(false));
- DrawingMenu.AddItem(new MenuItem("FreeloVeigar.Draw.R", "Draw R").SetValue(false));
- _menu.AddSubMenu(DrawingMenu);
- _menu.AddToMainMenu();
- Drawing.OnDraw += Drawing_OnDraw;
- }
- private static void Drawing_OnDraw(EventArgs args)
- {
- var DrawOff = _menu.Item("FreeloVeigar.Draw.Off").GetValue<bool>();
- var DrawQ = _menu.Item("FreeloVeigar.Draw.Q").GetValue<bool>();
- var DrawW = _menu.Item("FreeloVeigar.Draw.W").GetValue<bool>();
- var DrawR = _menu.Item("FreeloVeigar.Draw.R").GetValue<bool>();
- if (DrawOff)
- return;
- if (DrawQ)
- if (Q.Level > 0)
- Render.Circle.DrawCircle(Player.Position, Q.Range, Color.Green);
- if (DrawW)
- if (W.Level > 0)
- Render.Circle.DrawCircle(Player.Position, W.Range, Color.Red);
- if (DrawR)
- if (R.Level > 0)
- Render.Circle.DrawCircle(Player.Position, R.Range, Color.Yellow);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement