daily pastebin goal
12%
SHARE
TWEET

Untitled

a guest Jan 30th, 2015 2,362 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net.Sockets;
  5. using System.Reflection;
  6. using LeagueSharp;
  7. using LeagueSharp.Common;
  8.  
  9. namespace Exploit_Framework
  10. {
  11.     class Program
  12.     {
  13.         public static Menu Config;
  14.         public static List<GameObject> wards = new List<GameObject>();
  15.         private static Spell _E = new Spell(SpellSlot.E, 99999, TargetSelector.DamageType.Physical);
  16.         static void Main(string[] args)
  17.         {
  18.             CustomEvents.Game.OnGameLoad += OnGameLoad;
  19.         }
  20.  
  21.  
  22.  
  23.         private static void OnGameLoad(EventArgs args)
  24.         {
  25.             Config = new Menu("Exploit Framework", "Exploit", true);
  26.             Config.AddSubMenu(new Menu("Exploits", "Exploits"));
  27.             Config.SubMenu("Exploits")
  28.                 .AddItem(new MenuItem("LAG", "Lag exploit")).SetValue(new KeyBind("H".ToCharArray()[0], KeyBindType.Toggle));
  29.                
  30.             Config.AddToMainMenu();
  31.             Game.OnGameUpdate += game_Update;
  32.  
  33.         }
  34.  
  35.         private static void game_Update(EventArgs args)
  36.         {
  37.             if (Config.Item("LAG").GetValue<KeyBind>().Active)
  38.             {
  39.                     foreach (Obj_AI_Base minion in ObjectManager.Get<Obj_AI_Base>().Where(minion => minion.IsEnemy))
  40.                     {
  41.                         if (minion.ServerPosition.Distance(ObjectManager.Player.ServerPosition) > 1000)
  42.                         {
  43.                                 _E.CastOnUnit(minion);
  44.                         }
  45.                     }
  46.             }
  47.         }
  48.  
  49.         }
  50. }
RAW Paste Data
Top