Advertisement
Guest User

iKiros assembly

a guest
Sep 1st, 2014
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 10.08 KB | None | 0 0
  1. using LeagueSharp;
  2. using LeagueSharp.Common;
  3. using SharpDX;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Runtime.CompilerServices;
  8.  
  9. namespace ParadigmCassio
  10. {
  11.   internal class Program
  12.   {
  13.     public static string ChampName;
  14.     public static Orbwalking.Orbwalker Orbwalker;
  15.     public static Obj_AI_Base Player;
  16.     public static Spell Q;
  17.     public static Spell W;
  18.     public static Spell E;
  19.     public static Spell R;
  20.     private static List<Spell> SpellList;
  21.     public static Menu _Menu;
  22.     [CompilerGenerated]
  23.     private static Func<Obj_AI_Hero, bool> CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate1;
  24.     [CompilerGenerated]
  25.     private static Func<BuffInstance, bool> CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate4;
  26.     [CompilerGenerated]
  27.     private static Func<BuffInstance, bool> CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate5;
  28.  
  29.     static Program()
  30.     {
  31.       Program.ChampName = "Cassiopeia";
  32.       Program.Player = (Obj_AI_Base) ObjectManager.get_Player();
  33.       Program.SpellList = new List<Spell>();
  34.     }
  35.  
  36.     public Program()
  37.     {
  38.       base.\u002Ector();
  39.     }
  40.  
  41.     private static void Main(string[] args)
  42.     {
  43.       // ISSUE: method pointer
  44.       CustomEvents.Game.add_OnGameLoad(new CustomEvents.Game.OnGameLoaded((object) null, __methodptr(Game_OnGameLoad)));
  45.     }
  46.  
  47.     private static void Game_OnGameLoad(EventArgs args)
  48.     {
  49.       if (Program.Player.get_BaseSkinName() != Program.ChampName)
  50.         return;
  51.       Program.Q = new Spell((SpellSlot) 0, 850f);
  52.       Program.W = new Spell((SpellSlot) 1, 850f);
  53.       Program.E = new Spell((SpellSlot) 2, 700f);
  54.       Program.R = new Spell((SpellSlot) 3, 825f);
  55.       Program.Q.SetSkillshot(0.6f, 140f, float.MaxValue, false, (SkillshotType) 1, (Vector3) null, (Vector3) null);
  56.       Program.W.SetSkillshot(0.6f, 200f, 2500f, false, (SkillshotType) 1, (Vector3) null, (Vector3) null);
  57.       Program.E.SetTargetted(0.0f, float.MaxValue, (Vector3) null, (Vector3) null);
  58.       Program.R.SetSkillshot(0.6f, 80f, float.MaxValue, false, (SkillshotType) 2, (Vector3) null, (Vector3) null);
  59.       Program.SpellList.Add(Program.Q);
  60.       Program.SpellList.Add(Program.W);
  61.       Program.SpellList.Add(Program.E);
  62.       Program.SpellList.Add(Program.R);
  63.       Program._Menu = new Menu("Paradigm " + Program.ChampName, Program.ChampName, true);
  64.       Program._Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker", false));
  65.       Program.Orbwalker = new Orbwalking.Orbwalker(Program._Menu.SubMenu("Orbwalker"));
  66.       Menu menu = new Menu("Target Selector", "Target Selector", false);
  67.       SimpleTs.AddToMenu(menu);
  68.       Program._Menu.AddSubMenu(menu);
  69.       Program._Menu.AddSubMenu(new Menu("Combo", "Combo", false));
  70.       Program._Menu.SubMenu("Combo").AddItem(new MenuItem("useQ", "Q Status: ").SetValue<bool>((M0) 1));
  71.       Program._Menu.SubMenu("Combo").AddItem(new MenuItem("useW", "W Status: ").SetValue<bool>((M0) 1));
  72.       Program._Menu.SubMenu("Combo").AddItem(new MenuItem("useE", "E Status: ").SetValue<bool>((M0) 1));
  73.       Program._Menu.SubMenu("Combo").AddItem(new MenuItem("useR", "R Status: ").SetValue<bool>((M0) 1));
  74.       Program._Menu.SubMenu("Combo").AddItem(new MenuItem("ComboActive", "Combo").SetValue<KeyBind>((M0) new KeyBind(32U, (KeyBindType) 1, false)));
  75.       Program._Menu.AddItem(new MenuItem("NFE", "No-Face Exploit").SetValue<bool>((M0) 1));
  76.       Program._Menu.AddToMainMenu();
  77.       // ISSUE: method pointer
  78.       Drawing.add_OnDraw(new Draw((object) null, __methodptr(Drawing_OnDraw)));
  79.       // ISSUE: method pointer
  80.       Game.add_OnGameUpdate(new GameUpdate((object) null, __methodptr(Game_OnGameUpdate)));
  81.       // ISSUE: method pointer
  82.       Game.add_OnGameSendPacket(new GameSendPacket((object) null, __methodptr(Game_OnGameSendPacket)));
  83.       Game.PrintChat("Paradigm " + Program.ChampName + " Active! Created by iKiro");
  84.     }
  85.  
  86.     private static void Game_OnGameSendPacket(GamePacketEventArgs args)
  87.     {
  88.       if ((int) args.get_PacketData()[0] != Packet.C2S.Cast.Header)
  89.         return;
  90.       Packet.C2S.Cast.Struct @struct = Packet.C2S.Cast.Decoded(args.get_PacketData());
  91.       if (@struct.SourceNetworkId != ((GameObject) ObjectManager.get_Player()).get_NetworkId() || @struct.Slot != 3)
  92.         return;
  93.       IEnumerable<M0> enumerable = ObjectManager.Get<Obj_AI_Hero>();
  94.       if (Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate1 == null)
  95.       {
  96.         // ISSUE: method pointer
  97.         Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate1 = new Func<Obj_AI_Hero, bool>((object) null, __methodptr(\u003CGame_OnGameSendPacket\u003Eb__0));
  98.       }
  99.       Func<Obj_AI_Hero, bool> predicate = Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate1;
  100.       if (Enumerable.Count<Obj_AI_Hero>((IEnumerable<Obj_AI_Hero>) enumerable, predicate) != 0)
  101.         return;
  102.       args.set_Process(false);
  103.     }
  104.  
  105.     private static void Game_OnGameUpdate(EventArgs args)
  106.     {
  107.       if (((KeyBind) Program._Menu.Item("ComboActive").GetValue<KeyBind>()).Active == 0)
  108.         return;
  109.       Program.Combo();
  110.     }
  111.  
  112.     private static bool IsPoisoned(Obj_AI_Base unit)
  113.     {
  114.       BuffInstance[] buffs = unit.get_Buffs();
  115.       if (Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate4 == null)
  116.       {
  117.         // ISSUE: method pointer
  118.         Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate4 = new Func<BuffInstance, bool>((object) null, __methodptr(\u003CIsPoisoned\u003Eb__2));
  119.       }
  120.       Func<BuffInstance, bool> predicate1 = Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate4;
  121.       IEnumerable<BuffInstance> source = Enumerable.Where<BuffInstance>((IEnumerable<BuffInstance>) buffs, predicate1);
  122.       if (Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate5 == null)
  123.       {
  124.         // ISSUE: method pointer
  125.         Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate5 = new Func<BuffInstance, bool>((object) null, __methodptr(\u003CIsPoisoned\u003Eb__3));
  126.       }
  127.       Func<BuffInstance, bool> predicate2 = Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate5;
  128.       return Enumerable.Any<BuffInstance>(source, predicate2);
  129.     }
  130.  
  131.     private static void Drawing_OnDraw(EventArgs args)
  132.     {
  133.     }
  134.  
  135.     private static void Combo()
  136.     {
  137.       Obj_AI_Hero target = SimpleTs.GetTarget(Program.Q.get_Range(), (SimpleTs.DamageType) 0);
  138.       if (target == null)
  139.         return;
  140.       int num;
  141.       if (Program.Q.IsReady(2000) && Program.E.IsReady(2000) && Program.R.IsReady(0))
  142.         num = !DamageLib.IsKillable((Obj_AI_Base) target, (IEnumerable<DamageLib.SpellType>) new DamageLib.SpellType[7]
  143.         {
  144.           null,
  145.           (DamageLib.SpellType) 1,
  146.           (DamageLib.SpellType) 2,
  147.           (DamageLib.SpellType) 2,
  148.           (DamageLib.SpellType) 3,
  149.           (DamageLib.SpellType) 3,
  150.           (DamageLib.SpellType) 5
  151.         }) ? 1 : 0;
  152.       else
  153.         num = 1;
  154.       if (num == 0)
  155.       {
  156.         if ((double) Geometry.Distance((Obj_AI_Base) ObjectManager.get_Player(), (Obj_AI_Base) target) <= (double) Program.R.get_Range() + Program.R.Width && Program.R.GetPrediction((Obj_AI_Base) target, true, -1f).Hitchance >= 5)
  157.           Program.R.Cast(Program.R.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
  158.         if ((double) Geometry.Distance((Obj_AI_Base) ObjectManager.get_Player(), (Obj_AI_Base) target) <= (double) Program.W.get_Range() + Program.W.Width && Program.W.GetPrediction((Obj_AI_Base) target, true, -1f).Hitchance >= 5)
  159.           Program.W.Cast(Program.W.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
  160.         if ((double) Geometry.Distance((Obj_AI_Base) ObjectManager.get_Player(), (Obj_AI_Base) target) <= (double) Program.Q.get_Range() + Program.Q.Width && Program.Q.GetPrediction((Obj_AI_Base) target, true, -1f).Hitchance >= 5)
  161.           Program.Q.Cast(Program.Q.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
  162.         if ((double) Geometry.Distance((Obj_AI_Base) ObjectManager.get_Player(), (Obj_AI_Base) target) <= (double) Program.E.get_Range() + (double) ((GameObject) target).get_BoundingRadius() && Program.IsPoisoned((Obj_AI_Base) target))
  163.           Program.E.CastOnUnit((Obj_AI_Base) target, true);
  164.         Program.E.CastOnUnit((Obj_AI_Base) target, true);
  165.       }
  166.       else
  167.       {
  168.         if (Program.W.IsReady(0) && (double) Geometry.Distance((Obj_AI_Base) ObjectManager.get_Player(), (Obj_AI_Base) target) <= (double) Program.W.get_Range() + (Program.W.Width - 10.0) && Program.W.GetPrediction((Obj_AI_Base) target, true, -1f).Hitchance >= 5)
  169.           Program.W.Cast(Program.W.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
  170.         if (Program.Q.IsReady(0) && (double) Geometry.Distance((Obj_AI_Base) ObjectManager.get_Player(), (Obj_AI_Base) target) <= (double) Program.Q.get_Range() + (Program.Q.Width - 10.0) && Program.Q.GetPrediction((Obj_AI_Base) target, true, -1f).Hitchance >= 5)
  171.           Program.Q.Cast(Program.Q.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
  172.         if (Program.E.IsReady(0) && (double) Geometry.Distance((Obj_AI_Base) ObjectManager.get_Player(), (Obj_AI_Base) target) <= (double) Program.E.get_Range() + (double) ((GameObject) target).get_BoundingRadius() && Program.IsPoisoned((Obj_AI_Base) target))
  173.           Program.E.CastOnUnit((Obj_AI_Base) target, true);
  174.         Program.E.CastOnUnit((Obj_AI_Base) target, true);
  175.       }
  176.     }
  177.  
  178.     [CompilerGenerated]
  179.     private static bool \u003CGame_OnGameSendPacket\u003Eb__0(Obj_AI_Hero hero)
  180.     {
  181.       return Program.R.WillHit((Obj_AI_Base) hero, Program.R.GetPrediction((Obj_AI_Base) hero, false, -1f).get_CastPosition(), 0, (HitChance) 5);
  182.     }
  183.  
  184.     [CompilerGenerated]
  185.     private static bool \u003CIsPoisoned\u003Eb__2(BuffInstance buff)
  186.     {
  187.       return buff.get_IsActive() && buff.get_Type() == 23;
  188.     }
  189.  
  190.     [CompilerGenerated]
  191.     private static bool \u003CIsPoisoned\u003Eb__3(BuffInstance buff)
  192.     {
  193.       return (double) buff.get_EndTime() >= (double) Game.get_Time() + 0.35 + 0.0;
  194.     }
  195.   }
  196. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement