private static void KillStealRLogic() { if (Menu.Item("KillStealR", true).GetValue <bool>() && R.IsReady()) { var targets = new List <Obj_AI_Hero>(); foreach (var ult in EnemyTracker.enemyInfo) { if (ult.target.IsDead) { continue; } if (ult.target.IsZombie) { continue; } if (ult.target.HasBuff("KindredRNoDeathBuff")) { continue; } if (ult.target.HasBuff("UndyingRage") && ult.target.GetBuff("UndyingRage").EndTime - Game.Time > 0.3) { continue; } if (ult.target.HasBuff("JudicatorIntervention")) { continue; } if (ult.target.HasBuff("ChronoShift") && ult.target.GetBuff("ChronoShift").EndTime - Game.Time > 0.3) { continue; } if (ult.target.HasBuff("FioraW")) { continue; } if (!Menu.Item("KillStealR" + ult.target.ChampionName.ToLower(), true).GetValue <bool>()) { continue; } if (ult.target.IsVisible && R.GetDamage(ult.target) > ult.target.Health + ult.target.MagicalShield + ult.target.HPRegenRate * 2) { targets.Add(ult.target); } if (!ult.target.IsVisible && Utils.TickCount > ult.LastSeen + 5000 && R.GetDamage(ult.target) > EnemyTracker.GetTargetHealth(ult, R.Delay)) { targets.Add(ult.target); } if (!ult.target.IsVisible && Utils.TickCount < ult.LastSeen + 5000 && targets.Contains(ult.target)) { targets.Remove(ult.target); } } if (targets.Count >= Menu.Item("KillStealRCount", true).GetValue <Slider>().Value) { if (!Me.IsZombie && Me.CountEnemiesInRange(800) > 0) { return; } R.Cast(); } } }
private static void OnDraw(EventArgs Args) { if (!Me.IsDead && !MenuGUI.IsShopOpen && !MenuGUI.IsChatOpen && !MenuGUI.IsScoreboardOpen) { if (Menu.Item("DrawQ", true).GetValue <bool>() && Q.Level > 0) { Render.Circle.DrawCircle(Me.Position, Q.Range, System.Drawing.Color.FromArgb(253, 164, 17), 1); } if (Menu.Item("DrawW", true).GetValue <bool>() && W.Level > 0) { Render.Circle.DrawCircle(Me.Position, W.Range, System.Drawing.Color.FromArgb(9, 253, 242), 1); } if (Menu.Item("DrawE", true).GetValue <bool>() && E.Level > 0) { Render.Circle.DrawCircle(Me.Position, E.Range, System.Drawing.Color.FromArgb(143, 16, 146), 1); } if (Menu.Item("DrawDamage", true).GetValue <bool>()) { foreach ( var x in ObjectManager.Get <Obj_AI_Hero>().Where(e => e.IsValidTarget() && !e.IsDead && !e.IsZombie)) { HpBarDraw.Unit = x; HpBarDraw.DrawDmg(ComboDamage(x), new ColorBGRA(255, 204, 0, 170)); } } if (Menu.Item("DrawKillSteal", true).GetValue <bool>()) { Drawing.DrawText(Drawing.Width - 150, Drawing.Height - 500, System.Drawing.Color.Yellow, "Ult Kill Target: "); var targets = new List <Obj_AI_Hero>(); foreach (var ult in EnemyTracker.enemyInfo) { if (ult.target.IsDead) { continue; } if (ult.target.IsZombie) { continue; } if (ult.target.HasBuff("KindredRNoDeathBuff")) { continue; } if (ult.target.HasBuff("UndyingRage") && ult.target.GetBuff("UndyingRage").EndTime - Game.Time > 0.3) { continue; } if (ult.target.HasBuff("JudicatorIntervention")) { continue; } if (ult.target.HasBuff("ChronoShift") && ult.target.GetBuff("ChronoShift").EndTime - Game.Time > 0.3) { continue; } if (ult.target.HasBuff("FioraW")) { continue; } if (!Menu.Item("KillStealR" + ult.target.ChampionName.ToLower(), true).GetValue <bool>()) { continue; } if (ult.target.IsVisible && R.GetDamage(ult.target) > ult.target.Health + ult.target.MagicalShield + ult.target.HPRegenRate * 2) { targets.Add(ult.target); } if (!ult.target.IsVisible && Utils.TickCount > ult.LastSeen + 5000 && R.GetDamage(ult.target) > EnemyTracker.GetTargetHealth(ult, R.Delay)) { targets.Add(ult.target); } if (!ult.target.IsVisible && Utils.TickCount < ult.LastSeen + 5000 && targets.Contains(ult.target)) { targets.Remove(ult.target); } } if (targets.Count > 0) { for (var i = 0; i <= targets.Count; i++) { Drawing.DrawText(Drawing.Width - 150, Drawing.Height - 470 + i * 30, System.Drawing.Color.Red, " " + targets.ElementAt(i).ChampionName); } } } } }
private static void OnGameLoad(EventArgs Args) { if (ObjectManager.Player.ChampionName.ToLower() != "karthus") { return; } var enemyTracker = new EnemyTracker(); Me = ObjectManager.Player; Q = new Spell(SpellSlot.Q, 880f); W = new Spell(SpellSlot.W, 1000f); E = new Spell(SpellSlot.E, 550f); R = new Spell(SpellSlot.R, 20000f); Q.SetSkillshot(0.95f, 145f, float.MaxValue, false, SkillshotType.SkillshotCircle); W.SetSkillshot(0.5f, 50f, float.MaxValue, false, SkillshotType.SkillshotCircle); E.SetSkillshot(1.0f, 505f, float.MaxValue, false, SkillshotType.SkillshotCircle); R.SetSkillshot(3.0f, float.MaxValue, float.MaxValue, false, SkillshotType.SkillshotCircle); SkinID = Me.BaseSkinId; Menu = new Menu("Flowers' Karthus", "Flowers' Karthus", true); var OrbwalkerMenu = Menu.AddSubMenu(new Menu("Orbwalking", "Orbwalking")); { Orbwalker = new Orbwalking.Orbwalker(OrbwalkerMenu); } var ComboMenu = Menu.AddSubMenu(new Menu("Combo", "Combo")); { ComboMenu.AddItem(new MenuItem("ComboQ", "Use Q", true).SetValue(true)); ComboMenu.AddItem(new MenuItem("ComboW", "Use W", true).SetValue(true)); ComboMenu.AddItem(new MenuItem("ComboE", "Use E", true).SetValue(true)); ComboMenu.AddItem(new MenuItem("ComboEMana", "Use E|When Player ManaPercent >= x%", true).SetValue(new Slider(30))); ComboMenu.AddItem(new MenuItem("ComboDisable", "Disable Auto Attack?", true).SetValue(true)); } var HarassMenu = Menu.AddSubMenu(new Menu("Harass", "Harass")); { HarassMenu.AddItem(new MenuItem("HaraassQ", "Use Q", true).SetValue(true)); HarassMenu.AddItem(new MenuItem("HaraassQLH", "Use Q| Last Hit", true).SetValue(true)); HarassMenu.AddItem(new MenuItem("HaraassE", "Use E| Last Hit", true).SetValue(false)); HarassMenu.AddItem(new MenuItem("AutoHarass", "Auto Harass?", true).SetValue(new KeyBind('T', KeyBindType.Toggle))).Permashow(); HarassMenu.AddItem(new MenuItem("HaraassMana", "When Player ManaPercent >= x%", true).SetValue(new Slider(60))); } var LaneClearMenu = Menu.AddSubMenu(new Menu("LaneClear", "LaneClear")); { LaneClearMenu.AddItem(new MenuItem("LaneClearQ", "Use Q", true).SetValue(true)); LaneClearMenu.AddItem(new MenuItem("LaneClearE", "Use E", true).SetValue(true)); LaneClearMenu.AddItem(new MenuItem("LaneClearECount", "Use E| Min Hit Minions Count >= x", true).SetValue(new Slider(3, 1, 5))); LaneClearMenu.AddItem(new MenuItem("LaneClearMana", "When Player ManaPercent >= x%", true).SetValue(new Slider(60))); } var JungleClearMenu = Menu.AddSubMenu(new Menu("JungleClear", "JungleClear")); { JungleClearMenu.AddItem(new MenuItem("JungleClearQ", "Use Q", true).SetValue(true)); JungleClearMenu.AddItem(new MenuItem("JungleClearE", "Use E", true).SetValue(true)); JungleClearMenu.AddItem(new MenuItem("JungleClearMana", "When Player ManaPercent >= x%", true).SetValue(new Slider(30))); } var LastHitMenu = Menu.AddSubMenu(new Menu("LastHit", "LastHit")); { LastHitMenu.AddItem(new MenuItem("LastHitQ", "Use Q", true).SetValue(true)); LastHitMenu.AddItem(new MenuItem("LastHitMana", "When Player ManaPercent >= x%", true).SetValue(new Slider(60))); } var KillStealMenu = Menu.AddSubMenu(new Menu("KillSteal", "KillSteal")); { KillStealMenu.AddItem(new MenuItem("KillStealQ", "Use Q", true).SetValue(true)); } var UltMenu = Menu.AddSubMenu(new Menu("Ult Settings", "Ult Settings")); { UltMenu.AddItem(new MenuItem("TeamFightR", "Use R TeamFight", true).SetValue(true)); UltMenu.AddItem(new MenuItem("KillStealR", "Use R KillSteal", true).SetValue(true)); UltMenu.AddItem(new MenuItem("KillStealRCount", "Use R KillSteal Count >=", true).SetValue(new Slider(2, 1, 5))); foreach (var target in HeroManager.Enemies) { UltMenu.AddItem(new MenuItem("KillStealR" + target.ChampionName.ToLower(), "Kill: " + target.ChampionName, true).SetValue(true)); } } var MiscMenu = Menu.AddSubMenu(new Menu("Misc", "Misc")); { MiscMenu.AddItem(new MenuItem("AutoZombie", "Auto Zombie Mode?", true).SetValue(true)); MiscMenu.AddItem(new MenuItem("PingKill", "Auto Ping Kill Target", true).SetValue(true)); MiscMenu.AddItem(new MenuItem("NormalPingKill", "Normal Ping?", true).SetValue(true)); MiscMenu.AddItem(new MenuItem("NotificationKill", "Notification Kill Target", true).SetValue(true)); } var SkinMenu = Menu.AddSubMenu(new Menu("SkinChance", "SkinChance")); { SkinMenu.AddItem(new MenuItem("EnableSkin", "Enabled", true).SetValue(false)).ValueChanged += EnbaleSkin; SkinMenu.AddItem(new MenuItem("SelectSkin", "Select Skin: ", true).SetValue(new StringList(new[] { "Classic Karthus", "Phantom Karthus", "Statue of Karthus", "Grim Reaper Karthus", "Pentakill Karthus", "Fnatic Karthus" }))); } var PredMenu = Menu.AddSubMenu(new Menu("Prediction", "Prediction")); { PredMenu.AddItem(new MenuItem("SelectPred", "Select Prediction: ", true).SetValue(new StringList(new[] { "Common Prediction", "OKTW Prediction", "SDK Prediction", "SPrediction(Need F5 Reload)", "xcsoft AIO Prediction" }, 1))); PredMenu.AddItem( new MenuItem("SetHitchance", "HitChance: ", true).SetValue( new StringList(new[] { "VeryHigh", "High", "Medium", "Low" }))); PredMenu.AddItem(new MenuItem("AboutCommonPred", "Common Prediction -> LeagueSharp.Commmon Prediction")); PredMenu.AddItem(new MenuItem("AboutOKTWPred", "OKTW Prediction -> Sebby' Prediction")); PredMenu.AddItem(new MenuItem("AboutSDKPred", "SDK Prediction -> LeagueSharp.SDKEx Prediction")); PredMenu.AddItem(new MenuItem("AboutSPred", "SPrediction -> Shine' Prediction")); PredMenu.AddItem(new MenuItem("AboutxcsoftAIOPred", "xcsoft AIO Prediction -> xcsoft ALL In One Prediction")); } var DrawMenu = Menu.AddSubMenu(new Menu("Drawings", "Drawings")); { DrawMenu.AddItem(new MenuItem("DrawQ", "Draw Q Range", true).SetValue(false)); DrawMenu.AddItem(new MenuItem("DrawW", "Draw W Range", true).SetValue(false)); DrawMenu.AddItem(new MenuItem("DrawE", "Draw E Range", true).SetValue(false)); DrawMenu.AddItem(new MenuItem("DrawDamage", "Draw ComboDamage", true).SetValue(true)); DrawMenu.AddItem(new MenuItem("DrawKillSteal", "Draw KillSteal target", true).SetValue(true)); } Menu.AddItem(new MenuItem("Credit", "Credit: NightMoon", true)); Menu.AddToMainMenu(); Game.PrintChat("Flowers' Karthus Load Succeed! Credit: NightMoon"); if (Menu.Item("SelectPred", true).GetValue <StringList>().SelectedIndex == 3) { SPrediction.Prediction.Initialize(PredMenu); } Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; }