public static void Burst() { var target = TargetSelector2.GetTarget(SpellManager.Spells[SpellSlot.E].Range + SpellManager.Spells[SpellSlot.W].Range + 400, DamageType.Physical); Orbwalker.ForcedTarget = target; Orbwalker.OrbwalkTo(Game.CursorPos); var flash = Player.Spells.FirstOrDefault(a => a.SData.Name == "summonerflash"); if (target == null) { Target = null; Queuer.Queue = new List <string>(); return; } if (Target == null || target.NetworkId != Target.NetworkId) { Target = target; Queuer.Queue = new List <string>(); } if (Queuer.Queue.Any()) { Queuer.DoQueue(target); return; } if (Program.ComboMenu["burst.flash"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.Q].IsReady() && SpellManager.Spells[SpellSlot.W].IsReady() && SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.R].IsReady() && !SpellEvents.HasR && flash != null && flash.IsReady) { Queuer.Queue.Add("E"); Queuer.Queue.Add("R1"); Queuer.Queue.Add("FL"); Queuer.Queue.Add("W"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("H"); Queuer.Queue.Add("R2"); Queuer.Queue.Add("Q"); return; } if (target.IsValidTarget(SpellManager.Spells[SpellSlot.E].Range + SpellManager.Spells[SpellSlot.W].Range) && (!Program.ComboMenu["burst.flash"].Cast <CheckBox>().CurrentValue || flash == null || !flash.IsReady) && SpellManager.Spells[SpellSlot.Q].IsReady() && SpellManager.Spells[SpellSlot.W].IsReady() && SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.R].IsReady() && SpellEvents.QCount <= 1 && !SpellEvents.HasR) { Queuer.Queue.Add("E"); Queuer.Queue.Add("R1"); Queuer.Queue.Add("Q"); Queuer.Queue.Add("H"); Queuer.Queue.Add("W"); Queuer.Queue.Add("Q"); Queuer.Queue.Add("R2"); } Combo(); }
private static void Loading_OnLoadingComplete(EventArgs args) { if (Player.Instance.ChampionName != Champion.Riven.ToString()) { return; } Menu = MainMenu.AddMenu("RivenBuddy", "rivenbuddy"); Menu.AddGroupLabel("Riven Buddy"); Menu.AddSeparator(); Menu.AddLabel("By Fluxy"); Menu.AddLabel("nixi waz here"); ComboMenu = Menu.AddSubMenu("Combo Settings", "combosettingsRiven"); ComboMenu.AddGroupLabel("Combo Settings"); ComboMenu.Add("combo.useQ", new CheckBox("Use Q")); ComboMenu.Add("combo.useQGapClose", new CheckBox("Use Q to Gapclose", false)); ComboMenu.Add("combo.useW", new CheckBox("Use W")); ComboMenu.Add("combo.useE", new CheckBox("Use E")); ComboMenu.Add("combo.useR", new CheckBox("Use R")); ComboMenu.Add("combo.useR2", new CheckBox("Use R2")); ComboMenu.Add("combo.hydra", new CheckBox("Use Hydra/Tiamat")); ComboMenu.Add("useR", new KeyBind("Force R", false, KeyBind.BindTypes.PressToggle, 'T')); ComboMenu.AddSeparator(); ComboMenu.AddLabel("R1 Combos"); ComboMenu.Add("combo.eR1", new CheckBox("E -> R1")); ComboMenu.Add("combo.R1", new CheckBox("R1")); ComboMenu.AddSeparator(); ComboMenu.AddLabel("R2 Combos"); ComboMenu.Add("combo.eR2", new CheckBox("E -> R2")); ComboMenu.Add("combo.qR2", new CheckBox("R2 -> Q")); ComboMenu.Add("combo.R2", new CheckBox("R2")); ComboMenu.AddSeparator(); ComboMenu.AddGroupLabel("Burst Combo"); ComboMenu.Add("burst.flash", new CheckBox("Use Flash in Burst")); ComboMenu.Add("burst", new KeyBind("Burst", false, KeyBind.BindTypes.HoldActive, 'Y')); ComboMenu.AddSeparator(); ComboMenu.AddGroupLabel("Misc"); ComboMenu.Add("combo.keepQAlive", new CheckBox("Keep Q Alive")); ComboMenu.Add("combo.useRBeforeExpire", new CheckBox("Use R Before Expire")); ComboMenu.Add("combo.alwaysCancelQ", new CheckBox("Always Cancel Q", false)); HarassMenu = Menu.AddSubMenu("Harass Settings", "harasssettingsRiven"); HarassMenu.AddGroupLabel("Harass Settings"); HarassMenu.Add("harass.hydra", new CheckBox("Use Hydra/Tiamat")); HarassMenu.Add("harass.useQ", new CheckBox("Use Q")); HarassMenu.Add("harass.useW", new CheckBox("Use W")); HarassMenu.Add("harass.useE", new CheckBox("Use E")); MinionClear = Menu.AddSubMenu("Minion Clear Settings", "farmettingsRiven"); MinionClear.AddGroupLabel("LastHit Settings"); MinionClear.Add("lasthit.useQ", new CheckBox("Use Q")); MinionClear.Add("lasthit.useW", new CheckBox("Use W")); MinionClear.AddSeparator(); MinionClear.AddGroupLabel("Wave Clear Settings"); MinionClear.Add("waveclear.hydra", new CheckBox("Use Hydra/Tiamat")); MinionClear.Add("waveclear.useQ", new CheckBox("Use Q")); MinionClear.Add("waveclear.useW", new CheckBox("Use W")); Jungle = Menu.AddSubMenu("Jungle Settings", "jungleettingsRiven"); Jungle.AddGroupLabel("Jungle Clear Settings"); Jungle.Add("jungle.hydra", new CheckBox("Use Hydra/Tiamat")); Jungle.Add("jungle.useQ", new CheckBox("Use Q")); Jungle.Add("jungle.useW", new CheckBox("Use W")); Jungle.Add("jungle.useE", new CheckBox("Use E")); DrawMenu = Menu.AddSubMenu("Draw Settings", "drawsettingsRiven"); DrawMenu.AddGroupLabel("Draw Settings"); DrawMenu.Add("draw.Q", new CheckBox("Draw Q", false)); DrawMenu.Add("draw.W", new CheckBox("Draw W", false)); DrawMenu.Add("draw.E", new CheckBox("Draw E", false)); DrawMenu.Add("draw.R", new CheckBox("Draw R", false)); DrawMenu.Add("draw.Damage", new CheckBox("Draw Damage")); DrawMenu.Add("draw.Combo", new CheckBox("Write Current Combo", false)); DrawMenu.Add("draw.rState", new CheckBox("Write R State")); R2 = new Spell.Skillshot(SpellSlot.R, 900, SkillShotType.Cone, 250, 1600, 125); TargetSelector2.Init(); SpellEvents.Init(); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Game.OnUpdate += delegate { SpellManager.UpdateSpells(); }; Player.OnIssueOrder += Player_OnIssueOrder; Indicator = new DamageIndicator.DamageIndicator(); //Chat.Print("RivenBuddy : Fully Loaded. by fluxy"); }
public static void Combo() { // Queuer Stuff start\ var target = TargetSelector2.GetTarget(500, DamageType.Physical); if (target == null) { Target = null; Queuer.Queue = new List <string>(); return; } if (Target == null || target.NetworkId != Target.NetworkId) { Target = target; Queuer.Queue = new List <string>(); } if (Queuer.Queue.Any()) { Queuer.DoQueue(target); return; } // Queuer Stuff End var comboDmg = DamageHandler.ComboDamage(target, true); if (Program.ComboMenu["combo.useQ"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useW"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useE"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useR"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useR2"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.Q].IsReady() && SpellManager.Spells[SpellSlot.W].IsReady() && SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.R].IsReady() && SpellEvents.QCount == 0 && !SpellEvents.HasR2 && (Program.IsRActive || target.IsValidTarget(SpellManager.Spells[SpellSlot.E].Range + SpellManager.Spells[SpellSlot.W].Range) && comboDmg < target.Health && comboDmg + Player.Instance.CalculateDamageOnUnit(target, DamageType.Physical, (int)DamageHandler.RDamage(target, comboDmg)) >= target.Health)) { Queuer.Queue.Add("E"); Queuer.Queue.Add("R1"); Queuer.Queue.Add("Q"); Queuer.Queue.Add("H"); Queuer.Queue.Add("W"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); return; } if (SpellManager.Spells[SpellSlot.R].IsReady() && Program.ComboMenu["combo.useR"].Cast <CheckBox>().CurrentValue&& (Program.IsRActive || comboDmg < target.Health && comboDmg + Player.Instance.CalculateDamageOnUnit(target, DamageType.Physical, (int)DamageHandler.RDamage(target, comboDmg)) >= target.Health) && !SpellEvents.HasR) { if (Program.ComboMenu["combo.eR1"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.R].IsReady()) { Queuer.Queue.Add("E"); Queuer.Queue.Add("R1"); return; } if (Program.ComboMenu["combo.R1"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.R].IsReady()) { Queuer.Queue.Add("R1"); return; } } if (SpellManager.Spells[SpellSlot.R].IsReady() && SpellEvents.HasR2 && Program.ComboMenu["combo.useR2"].Cast <CheckBox>().CurrentValue) { if (Player.Instance.CalculateDamageOnUnit(target, DamageType.Physical, (int)DamageHandler.RDamage(target)) >= target.Health) { if (Program.ComboMenu["combo.eR2"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.R].IsReady()) { Queuer.Queue.Add("E"); Queuer.Queue.Add("R2"); return; } if (Program.ComboMenu["combo.R2"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.R].IsReady()) { Queuer.Queue.Add("R2"); return; } } if (Player.Instance.CalculateDamageOnUnit(target, DamageType.Physical, (int)(DamageHandler.RDamage(target) + DamageHandler.QDamage())) >= target.Health) { if (Program.ComboMenu["combo.qR2"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.R].IsReady() && SpellManager.Spells[SpellSlot.Q].IsReady()) { Queuer.Queue.Add("R2"); Queuer.Queue.Add("Q"); return; } } } if (Program.ComboMenu["combo.useQ"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useW"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useE"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.Q].IsReady() && SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.W].IsReady() && Queuer.tiamat != null && Queuer.tiamat.CanUseItem() && target.IsValidTarget(SpellManager.Spells[SpellSlot.E].Range + SpellManager.Spells[SpellSlot.W].Range + ObjectManager.Player.BoundingRadius + target.BoundingRadius)) { Queuer.Queue.Add("E"); Queuer.Queue.Add("H"); Queuer.Queue.Add("W"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); return; } if (Program.ComboMenu["combo.useQ"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useW"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useE"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.Q].IsReady() && SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.W].IsReady() && (Queuer.tiamat == null || !Queuer.tiamat.CanUseItem()) && target.IsValidTarget(SpellManager.Spells[SpellSlot.E].Range + ObjectManager.Player.GetAutoAttackRange(target))) { Queuer.Queue.Add("E"); Queuer.Queue.Add("H"); Queuer.Queue.Add("W"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); return; } if (Program.ComboMenu["combo.useW"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useQ"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.Q].IsReady() && SpellEvents.QCount == 2 && SpellManager.Spells[SpellSlot.W].IsReady() && target.IsValidTarget(SpellManager.Spells[SpellSlot.Q].Range + SpellManager.Spells[SpellSlot.W].getTrueRange(target))) { Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("H"); Queuer.Queue.Add("W"); Queuer.Queue.Add("AA"); return; } if (SpellManager.Spells[SpellSlot.W].IsReady() && SpellManager.Spells[SpellSlot.W].inRange(target)) { if (Program.ComboMenu["combo.hydra"].Cast <CheckBox>().CurrentValue) { Queuer.Queue.Add("H"); } Queuer.Queue.Add("W"); return; } if (Program.ComboMenu["combo.useQ"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.Q].IsReady() && Orbwalker.CanAutoAttack) { if (SpellManager.Spells[SpellSlot.Q].IsInRange(target)) { Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); return; } } if (!target.IsValidTarget(Player.Instance.GetAutoAttackRange(target)) && target.IsValidTarget(Player.Instance.GetAutoAttackRange(target) + SpellManager.Spells[SpellSlot.Q].Range) && Program.ComboMenu["combo.useQGapClose"].Cast <CheckBox>().CurrentValue) { Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); return; } if (Program.ComboMenu["combo.useW"].Cast <CheckBox>().CurrentValue&& Program.ComboMenu["combo.useE"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.W].IsReady() && target.IsValidTarget(SpellManager.Spells[SpellSlot.W].getTrueRange(target) + SpellManager.Spells[SpellSlot.E].Range)) { Queuer.Queue.Add("E"); if (Program.ComboMenu["combo.hydra"].Cast <CheckBox>().CurrentValue) { Queuer.Queue.Add("H"); } Queuer.Queue.Add("W"); return; } if (Program.ComboMenu["combo.useE"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.E].IsReady() && !target.IsValidTarget(Player.Instance.GetAutoAttackRange(target))) { Queuer.Queue.Add("E"); } else { Queuer.Queue = new List <string>(); } }
public static void Harass() { var target = TargetSelector2.GetTarget(500, DamageType.Physical); if (target == null) { Target = null; Queuer.Queue = new List <string>(); return; } if (Target == null || target.NetworkId != Target.NetworkId) { Target = target; Queuer.Queue = new List <string>(); } if (Queuer.Queue.Any()) { Queuer.DoQueue(target); return; } if (Program.HarassMenu["harass.useQ"].Cast <CheckBox>().CurrentValue&& Program.HarassMenu["harass.useW"].Cast <CheckBox>().CurrentValue&& Program.HarassMenu["harass.useE"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.Q].IsReady() && SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.W].IsReady() && (Queuer.tiamat == null || !Queuer.tiamat.CanUseItem()) && target.IsValidTarget(SpellManager.Spells[SpellSlot.E].Range + ObjectManager.Player.GetAutoAttackRange(target))) { Queuer.Queue.Add("E"); Queuer.Queue.Add("W"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); return; } if (Program.HarassMenu["harass.useQ"].Cast <CheckBox>().CurrentValue&& Program.HarassMenu["harass.useW"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.Q].IsReady() && SpellEvents.QCount == 2 && SpellManager.Spells[SpellSlot.W].IsReady() && target.IsValidTarget(SpellManager.Spells[SpellSlot.Q].Range + SpellManager.Spells[SpellSlot.W].getTrueRange(target))) { Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); Queuer.Queue.Add("AA"); Queuer.Queue.Add("H"); Queuer.Queue.Add("W"); Queuer.Queue.Add("AA"); return; } if (Program.HarassMenu["harass.useQ"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.Q].IsReady() && Orbwalker.CanAutoAttack) { if (SpellManager.Spells[SpellSlot.Q].IsInRange(target)) { Queuer.Queue.Add("AA"); Queuer.Queue.Add("Q"); return; } } if (Program.HarassMenu["harass.useW"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.W].IsReady() && SpellManager.Spells[SpellSlot.W].inRange(target)) { if (Program.HarassMenu["harass.hydra"].Cast <CheckBox>().CurrentValue) { Queuer.Queue.Add("H"); } Queuer.Queue.Add("W"); return; } if (Program.HarassMenu["harass.useE"].Cast <CheckBox>().CurrentValue&& Program.HarassMenu["harass.useW"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.E].IsReady() && SpellManager.Spells[SpellSlot.W].IsReady() && target.IsValidTarget(SpellManager.Spells[SpellSlot.W].getTrueRange(target) + SpellManager.Spells[SpellSlot.E].Range)) { Queuer.Queue.Add("E"); Queuer.Queue.Add("W"); return; } if (Program.HarassMenu["harass.useE"].Cast <CheckBox>().CurrentValue&& SpellManager.Spells[SpellSlot.E].IsReady() && !target.IsValidTarget(Player.Instance.GetAutoAttackRange(target))) { Queuer.Queue.Add("E"); } else { Queuer.Queue = new List <string>(); } }