public static void Init() { FirstMenu = MainMenu.AddMenu("URF Spell Spammer", Player.Instance.ChampionName.ToLower() + "hueurfspammer"); FirstMenu.AddGroupLabel("Spells"); FirstMenu.CreateCheckBox(" - Use Q", "qUse"); if (Skillshots.Contains(Q)) { FirstMenu.CreateSlider("Q Hitchance %", "qHitChance", 75); } FirstMenu.CreateCheckBox(" - Use W", "wUse"); if (Skillshots.Contains(W)) { FirstMenu.CreateSlider("W Hitchance %", "wHitChance", 75); } FirstMenu.CreateCheckBox(" - Use E", "eUse"); if (Skillshots.Contains(E)) { FirstMenu.CreateSlider("E Hitchance %", "eHitChance", 75); } FirstMenu.CreateCheckBox(" - Use R", "rUse"); if (Skillshots.Contains(R)) { FirstMenu.CreateSlider("R Hitchance %", "rHitChance", 90); } }
private static void OnUpdate(EventArgs args) { var target = TargetSelector.GetTarget(2000, DamageType.Mixed); if (target != null) { //Q if (Skillshots.Contains(Q)) { var qSS = Q as Spell.Skillshot; qSS.TryToCast(target, FirstMenu, FirstMenu.GetSliderValue("qHitChance")); } else { try { Q.TryToCast(target, FirstMenu); } catch (Exception) { Q.Cast(); } } //W if (Skillshots.Contains(W)) { var wSS = W as Spell.Skillshot; wSS.TryToCast(target, FirstMenu, FirstMenu.GetSliderValue("wHitChance")); } else { try { W.TryToCast(target, FirstMenu); } catch (Exception) { W.Cast(); } } //E if (Skillshots.Contains(E)) { var eSS = E as Spell.Skillshot; eSS.TryToCast(target, FirstMenu, FirstMenu.GetSliderValue("eHitChance")); } else { try { E.TryToCast(target, FirstMenu); } catch (Exception) { E.Cast(); } } //R if (Skillshots.Contains(R)) { var rSS = R as Spell.Skillshot; rSS.TryToCast(target, FirstMenu, FirstMenu.GetSliderValue("rHitChance")); } else { try { R.TryToCast(target, FirstMenu); } catch (Exception) { R.Cast(); } } } else //No Target { //Q if (Skillshots.Contains(Q)) { Q.Cast(Game.CursorPos); } else { Q.Cast(); } //W if (Skillshots.Contains(W)) { W.Cast(Game.CursorPos); } else { W.Cast(); } //E if (Skillshots.Contains(W)) { E.Cast(Game.CursorPos); } else { E.Cast(); } } }