Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 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. // Spells
  18. public static Spell Q, W, E, R;
  19. // setting Player (you)
  20. private static readonly Obj_AI_Hero Player = ObjectManager.Player;
  21. // Menu
  22. public static Menu _menu;
  23. //orbwalker durrrr
  24. private static Orbwalking.Orbwalker orbwalker;
  25.  
  26.  
  27. // setting an onload event
  28. private static void Main(string[] args)
  29. {
  30. CustomEvents.Game.OnGameLoad += OnLoad;
  31. }
  32.  
  33.  
  34. // stuff you do onload
  35. private static void OnLoad(EventArgs args)
  36. {
  37. if (Player.ChampionName != "Veigar") return;
  38.  
  39. Notifications.AddNotification("Freelo_Veigar by Jentika!", 10000);
  40.  
  41.  
  42. // here is where you set all your skills credentials
  43. Q = new Spell(SpellSlot.Q, 940);
  44. W = new Spell(SpellSlot.W, 890);
  45. E = new Spell(SpellSlot.E, 700);
  46. R = new Spell(SpellSlot.R, 650);
  47.  
  48. Q.SetSkillshot(.25f, 70f, 2000f, false, SkillshotType.SkillshotLine);
  49. E.SetSkillshot(1.25f, 225f, float.MaxValue, false, SkillshotType.SkillshotCircle);
  50. W.SetSkillshot(.8f, 25f, float.MaxValue, false, SkillshotType.SkillshotCircle);
  51.  
  52.  
  53. //here starts the menu
  54. _menu = new Menu("Freelo_Veigar", "Menu", true);
  55.  
  56. //new menu tab that will be called Drawings
  57. var DrawingMenu = new Menu("Drawings", "Drawings");
  58.  
  59. // you set the menu var, which you will use to put all this options under it
  60. DrawingMenu.AddItem(new MenuItem("FreeloVeigar.Draw.off", "Turn drawings off").SetValue(false));
  61. DrawingMenu.AddItem(new MenuItem("FreeloVeigar.DrawQ", "Draw Q").SetValue(true));
  62. DrawingMenu.AddItem(new MenuItem("FreeloVeigar.Draw.W", "Draw W").SetValue(false));
  63. DrawingMenu.AddItem(new MenuItem("FreeloVeigar.Draw.R", "Draw R").SetValue(false));
  64.  
  65.  
  66. // adding the menu you created to the menu
  67. _menu.AddSubMenu(DrawingMenu);
  68. _menu.AddToMainMenu();
  69.  
  70.  
  71. // setting a drawing event
  72. Drawing.OnDraw += Drawing_OnDraw;
  73. }
  74.  
  75.  
  76. private static void Drawing_OnDraw(EventArgs args)
  77. {
  78. // basic variables
  79. var DrawOff = _menu.Item("FreeloVeigar.Draw.Off").GetValue<bool>();
  80. var DrawQ = _menu.Item("FreeloVeigar.Draw.Q").GetValue<bool>();
  81. var DrawW = _menu.Item("FreeloVeigar.Draw.W").GetValue<bool>();
  82. var DrawR = _menu.Item("FreeloVeigar.Draw.R").GetValue<bool>();
  83.  
  84. // returns if X is off
  85. if (DrawOff)
  86. return;
  87.  
  88.  
  89.  
  90. if (DrawQ)
  91. if (Q.Level > 0)
  92.  
  93. // here is how you properly and easily set a circle
  94. Render.Circle.DrawCircle(Player.Position, Q.Range, Color.Green);
  95.  
  96. if (DrawW)
  97. if (W.Level > 0)
  98. Render.Circle.DrawCircle(Player.Position, W.Range, Color.Red);
  99.  
  100. if (DrawR)
  101. if (R.Level > 0)
  102. Render.Circle.DrawCircle(Player.Position, R.Range, Color.Yellow);
  103. }
  104. }
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement