Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 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.  
  7. using LeagueSharp;
  8. using LeagueSharp.Common;
  9. using Color = System.Drawing.Color;
  10.  
  11. namespace ayyGangplank
  12. {
  13. class Program
  14. {
  15. public static Obj_AI_Base Player { get { return ObjectManager.Player; } }
  16. public static string ChampName = "Gangplank";
  17. public static Orbwalking.Orbwalker Orbwalker;
  18. public static Spell Q, W, E, R;
  19. public static Items.Item DFG;
  20. public static Menu menu;
  21.  
  22. static void Main(string[] args)
  23. {
  24. CustomEvents.Game.OnGameLoad += Game_OnGameLoad;
  25.  
  26. }
  27.  
  28. private static void Game_OnGameLoad(EventArgs args)
  29. {
  30. if (Player.BaseSkinName != ChampName)
  31. return;
  32.  
  33. Q = new Spell(SpellSlot.Q, 625);
  34. W = new Spell(SpellSlot.W);
  35. E = new Spell(SpellSlot.E, 1300);
  36.  
  37.  
  38. menu = new Menu("ayy" + ChampName, "ChampName", true);
  39.  
  40.  
  41. menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
  42. Orbwalker = new Orbwalking.Orbwalker(menu.SubMenu("Orbwalker"));
  43.  
  44. var ts = menu.AddSubMenu(new Menu("Target Selector", "Target Selector")); ;
  45. SimpleTs.AddToMenu(ts);
  46.  
  47. menu.AddSubMenu(new Menu("Combo", "Combo"));
  48. menu.SubMenu("Combo").AddItem(new MenuItem("useQ", "Use Q?").SetValue(true));
  49. menu.SubMenu("Combo").AddItem(new MenuItem("useW", "Use W?").SetValue(true));
  50. menu.SubMenu("Combo").AddItem(new MenuItem("useE", "Use E?").SetValue(true));
  51. menu.SubMenu("Combo").AddItem(new MenuItem("ComboActive", "Combo").SetValue(new KeyBind(32, KeyBindType.Press)));
  52.  
  53. menu.AddItem(new MenuItem("NFE", "No-Face Exploit").SetValue(true));
  54. menu.AddToMainMenu();
  55.  
  56. Drawing.OnDraw += Drawing_OnDraw;
  57. Game.OnGameUpdate += Game_OnGameUpdate;
  58.  
  59. Game.PrintChat(ChampName + " loaded! By ayySilver");
  60. Game.PrintChat("Welcome to my first ever assembly, ayyGangplank");
  61. }
  62.  
  63. private static void Game_OnGameUpdate(EventArgs args)
  64. {
  65. if (menu.Item("ComboActive").GetValue<KeyBind>().Active)
  66. {
  67. Combo();
  68. }
  69. }
  70.  
  71. private static void Drawing_OnDraw(EventArgs args)
  72. {
  73. if (!Player.IsDead)
  74. {
  75. if (Q.IsReady())
  76. {
  77. Utility.DrawCircle(Player.Position, Q.Range, Color.Aqua);
  78. }
  79. else
  80. {
  81. Utility.DrawCircle(Player.Position, Q.Range, Color.DarkRed);
  82. }
  83. }
  84. }
  85.  
  86. private static void Combo()
  87. {
  88. var target = SimpleTs.GetTarget(E.Range, SimpleTs.DamageType.Physical);
  89.  
  90. if (target.IsValidTarget(Q.Range) && Q.IsReady() && menu.Item("useQ").GetValue<bool>())
  91. {
  92.  
  93. Q.CastOnUnit(target, menu.Item("NFE").GetValue<bool>());
  94. }
  95.  
  96. if (W.IsReady() && menu.Item("useW").GetValue<bool>() &&
  97. (Player.HasBuffOfType(BuffType.Stun) || Player.HasBuffOfType(BuffType.Fear) ||
  98. Player.HasBuffOfType(BuffType.Slow) || Player.HasBuffOfType(BuffType.Snare) ||
  99. Player.HasBuffOfType(BuffType.Taunt)))
  100. {
  101. W.CastOnUnit(Player);
  102. }
  103. if (W.IsReady())
  104. {
  105. float healthPercent = ObjectManager.Player.Health / ObjectManager.Player.MaxHealth * 100;
  106.  
  107. if (healthPercent < 10)
  108. {
  109.  
  110. }
  111. }
  112. if (target.IsValidTarget(E.Range) && E.IsReady() && menu.Item("useE").GetValue<bool>())
  113. {
  114. E.CastOnUnit(Player);
  115. }
  116. {
  117.  
  118. }
  119.  
  120. }
  121. }
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement