Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using LeagueSharp;
  7. using LeagueSharp.Common;
  8. using SharpDX;
  9. using System.Drawing;
  10. using Color = System.Drawing.Color;
  11.  
  12.  
  13. namespace ConsoleApplication1
  14. {
  15. internal class Veigar
  16. {
  17. public static Spell Q, W, E, R;
  18. private static readonly Obj_AI_Hero Player = ObjectManager.Player;
  19. public static Menu _menu;
  20. private static Orbwalking.Orbwalker orbwalker;
  21.  
  22. private static void Main(string[] args)
  23. {
  24. CustomEvents.Game.OnGameLoad += OnLoad;
  25. }
  26.  
  27. private static void OnLoad(EventArgs args)
  28. {
  29. if (Player.ChampionName != "Veigar") return;
  30.  
  31. Notifications.AddNotification("Freelo_Veigar by Jentika!", 10000);
  32.  
  33. Q = new Spell(SpellSlot.Q, 940);
  34. W = new Spell(SpellSlot.W, 890);
  35. E = new Spell(SpellSlot.E, 700);
  36. R = new Spell(SpellSlot.R, 650);
  37.  
  38. Q.SetSkillshot(.25f, 70f, 2000f, false, SkillshotType.SkillshotLine);
  39. E.SetSkillshot(1.25f, 225f, float.MaxValue, false, SkillshotType.SkillshotCircle);
  40. W.SetSkillshot(.8f, 25f, float.MaxValue, false, SkillshotType.SkillshotCircle);
  41.  
  42. _menu = new Menu("Freelo_Veigar", "Menu", true);
  43.  
  44. var DrawingMenu = new Menu("Drawings", "Drawings");
  45. DrawingMenu.AddItem(new MenuItem("FreeloVeigar.Draw.off", "Turn drawings off").SetValue(false));
  46. DrawingMenu.AddItem(new MenuItem("FreeloVeigar.DrawQ", "Draw Q").SetValue(true));
  47. DrawingMenu.AddItem(new MenuItem("FreeloVeigar.Draw.W", "Draw W").SetValue(false));
  48. DrawingMenu.AddItem(new MenuItem("FreeloVeigar.Draw.R", "Draw R").SetValue(false));
  49.  
  50. _menu.AddSubMenu(DrawingMenu);
  51. _menu.AddToMainMenu();
  52.  
  53. Drawing.OnDraw += Drawing_OnDraw;
  54. }
  55.  
  56. private static void Drawing_OnDraw(EventArgs args)
  57. {
  58. var DrawOff = _menu.Item("FreeloVeigar.Draw.Off").GetValue<bool>();
  59. var DrawQ = _menu.Item("FreeloVeigar.Draw.Q").GetValue<bool>();
  60. var DrawW = _menu.Item("FreeloVeigar.Draw.W").GetValue<bool>();
  61. var DrawR = _menu.Item("FreeloVeigar.Draw.R").GetValue<bool>();
  62.  
  63. if (DrawOff)
  64. return;
  65.  
  66. if (DrawQ)
  67. if (Q.Level > 0)
  68. Render.Circle.DrawCircle(Player.Position, Q.Range, Color.Green);
  69.  
  70. if (DrawW)
  71. if (W.Level > 0)
  72. Render.Circle.DrawCircle(Player.Position, W.Range, Color.Red);
  73.  
  74. if (DrawR)
  75. if (R.Level > 0)
  76. Render.Circle.DrawCircle(Player.Position, R.Range, Color.Yellow);
  77. }
  78. }
  79. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement