Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using LeagueSharp;
- using LeagueSharp.Common;
- using SharpDX;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.CompilerServices;
- namespace ParadigmCassio
- {
- internal class Program
- {
- public static string ChampName;
- public static Orbwalking.Orbwalker Orbwalker;
- public static Obj_AI_Base Player;
- public static Spell Q;
- public static Spell W;
- public static Spell E;
- public static Spell R;
- private static List<Spell> SpellList;
- public static Menu _Menu;
- [CompilerGenerated]
- private static Func<Obj_AI_Hero, bool> CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate1;
- [CompilerGenerated]
- private static Func<BuffInstance, bool> CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate4;
- [CompilerGenerated]
- private static Func<BuffInstance, bool> CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate5;
- static Program()
- {
- Program.ChampName = "Cassiopeia";
- Program.Player = (Obj_AI_Base) ObjectManager.get_Player();
- Program.SpellList = new List<Spell>();
- }
- public Program()
- {
- base.\u002Ector();
- }
- private static void Main(string[] args)
- {
- // ISSUE: method pointer
- CustomEvents.Game.add_OnGameLoad(new CustomEvents.Game.OnGameLoaded((object) null, __methodptr(Game_OnGameLoad)));
- }
- private static void Game_OnGameLoad(EventArgs args)
- {
- if (Program.Player.get_BaseSkinName() != Program.ChampName)
- return;
- Program.Q = new Spell((SpellSlot) 0, 850f);
- Program.W = new Spell((SpellSlot) 1, 850f);
- Program.E = new Spell((SpellSlot) 2, 700f);
- Program.R = new Spell((SpellSlot) 3, 825f);
- Program.Q.SetSkillshot(0.6f, 140f, float.MaxValue, false, (SkillshotType) 1, (Vector3) null, (Vector3) null);
- Program.W.SetSkillshot(0.6f, 200f, 2500f, false, (SkillshotType) 1, (Vector3) null, (Vector3) null);
- Program.E.SetTargetted(0.0f, float.MaxValue, (Vector3) null, (Vector3) null);
- Program.R.SetSkillshot(0.6f, 80f, float.MaxValue, false, (SkillshotType) 2, (Vector3) null, (Vector3) null);
- Program.SpellList.Add(Program.Q);
- Program.SpellList.Add(Program.W);
- Program.SpellList.Add(Program.E);
- Program.SpellList.Add(Program.R);
- Program._Menu = new Menu("Paradigm " + Program.ChampName, Program.ChampName, true);
- Program._Menu.AddSubMenu(new Menu("Orbwalker", "Orbwalker", false));
- Program.Orbwalker = new Orbwalking.Orbwalker(Program._Menu.SubMenu("Orbwalker"));
- Menu menu = new Menu("Target Selector", "Target Selector", false);
- SimpleTs.AddToMenu(menu);
- Program._Menu.AddSubMenu(menu);
- Program._Menu.AddSubMenu(new Menu("Combo", "Combo", false));
- Program._Menu.SubMenu("Combo").AddItem(new MenuItem("useQ", "Q Status: ").SetValue<bool>((M0) 1));
- Program._Menu.SubMenu("Combo").AddItem(new MenuItem("useW", "W Status: ").SetValue<bool>((M0) 1));
- Program._Menu.SubMenu("Combo").AddItem(new MenuItem("useE", "E Status: ").SetValue<bool>((M0) 1));
- Program._Menu.SubMenu("Combo").AddItem(new MenuItem("useR", "R Status: ").SetValue<bool>((M0) 1));
- Program._Menu.SubMenu("Combo").AddItem(new MenuItem("ComboActive", "Combo").SetValue<KeyBind>((M0) new KeyBind(32U, (KeyBindType) 1, false)));
- Program._Menu.AddItem(new MenuItem("NFE", "No-Face Exploit").SetValue<bool>((M0) 1));
- Program._Menu.AddToMainMenu();
- // ISSUE: method pointer
- Drawing.add_OnDraw(new Draw((object) null, __methodptr(Drawing_OnDraw)));
- // ISSUE: method pointer
- Game.add_OnGameUpdate(new GameUpdate((object) null, __methodptr(Game_OnGameUpdate)));
- // ISSUE: method pointer
- Game.add_OnGameSendPacket(new GameSendPacket((object) null, __methodptr(Game_OnGameSendPacket)));
- Game.PrintChat("Paradigm " + Program.ChampName + " Active! Created by iKiro");
- }
- private static void Game_OnGameSendPacket(GamePacketEventArgs args)
- {
- if ((int) args.get_PacketData()[0] != Packet.C2S.Cast.Header)
- return;
- Packet.C2S.Cast.Struct @struct = Packet.C2S.Cast.Decoded(args.get_PacketData());
- if (@struct.SourceNetworkId != ((GameObject) ObjectManager.get_Player()).get_NetworkId() || @struct.Slot != 3)
- return;
- IEnumerable<M0> enumerable = ObjectManager.Get<Obj_AI_Hero>();
- if (Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate1 == null)
- {
- // ISSUE: method pointer
- Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate1 = new Func<Obj_AI_Hero, bool>((object) null, __methodptr(\u003CGame_OnGameSendPacket\u003Eb__0));
- }
- Func<Obj_AI_Hero, bool> predicate = Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate1;
- if (Enumerable.Count<Obj_AI_Hero>((IEnumerable<Obj_AI_Hero>) enumerable, predicate) != 0)
- return;
- args.set_Process(false);
- }
- private static void Game_OnGameUpdate(EventArgs args)
- {
- if (((KeyBind) Program._Menu.Item("ComboActive").GetValue<KeyBind>()).Active == 0)
- return;
- Program.Combo();
- }
- private static bool IsPoisoned(Obj_AI_Base unit)
- {
- BuffInstance[] buffs = unit.get_Buffs();
- if (Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate4 == null)
- {
- // ISSUE: method pointer
- Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate4 = new Func<BuffInstance, bool>((object) null, __methodptr(\u003CIsPoisoned\u003Eb__2));
- }
- Func<BuffInstance, bool> predicate1 = Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate4;
- IEnumerable<BuffInstance> source = Enumerable.Where<BuffInstance>((IEnumerable<BuffInstance>) buffs, predicate1);
- if (Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate5 == null)
- {
- // ISSUE: method pointer
- Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate5 = new Func<BuffInstance, bool>((object) null, __methodptr(\u003CIsPoisoned\u003Eb__3));
- }
- Func<BuffInstance, bool> predicate2 = Program.CS\u0024\u003C\u003E9__CachedAnonymousMethodDelegate5;
- return Enumerable.Any<BuffInstance>(source, predicate2);
- }
- private static void Drawing_OnDraw(EventArgs args)
- {
- }
- private static void Combo()
- {
- Obj_AI_Hero target = SimpleTs.GetTarget(Program.Q.get_Range(), (SimpleTs.DamageType) 0);
- if (target == null)
- return;
- int num;
- if (Program.Q.IsReady(2000) && Program.E.IsReady(2000) && Program.R.IsReady(0))
- num = !DamageLib.IsKillable((Obj_AI_Base) target, (IEnumerable<DamageLib.SpellType>) new DamageLib.SpellType[7]
- {
- null,
- (DamageLib.SpellType) 1,
- (DamageLib.SpellType) 2,
- (DamageLib.SpellType) 2,
- (DamageLib.SpellType) 3,
- (DamageLib.SpellType) 3,
- (DamageLib.SpellType) 5
- }) ? 1 : 0;
- else
- num = 1;
- if (num == 0)
- {
- 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)
- Program.R.Cast(Program.R.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
- 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)
- Program.W.Cast(Program.W.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
- 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)
- Program.Q.Cast(Program.Q.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
- 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))
- Program.E.CastOnUnit((Obj_AI_Base) target, true);
- Program.E.CastOnUnit((Obj_AI_Base) target, true);
- }
- else
- {
- 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)
- Program.W.Cast(Program.W.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
- 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)
- Program.Q.Cast(Program.Q.GetPrediction((Obj_AI_Base) target, true, -1f).get_UnitPosition(), false);
- 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))
- Program.E.CastOnUnit((Obj_AI_Base) target, true);
- Program.E.CastOnUnit((Obj_AI_Base) target, true);
- }
- }
- [CompilerGenerated]
- private static bool \u003CGame_OnGameSendPacket\u003Eb__0(Obj_AI_Hero hero)
- {
- return Program.R.WillHit((Obj_AI_Base) hero, Program.R.GetPrediction((Obj_AI_Base) hero, false, -1f).get_CastPosition(), 0, (HitChance) 5);
- }
- [CompilerGenerated]
- private static bool \u003CIsPoisoned\u003Eb__2(BuffInstance buff)
- {
- return buff.get_IsActive() && buff.get_Type() == 23;
- }
- [CompilerGenerated]
- private static bool \u003CIsPoisoned\u003Eb__3(BuffInstance buff)
- {
- return (double) buff.get_EndTime() >= (double) Game.get_Time() + 0.35 + 0.0;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement