private static void ComboAfterAttackEvent(AttackableUnit orbTarget) { try { Obj_AI_Hero target = null; if (myTarget.IsValidTarget(600)) { target = myTarget; } else if (orbTarget is Obj_AI_Hero) { target = (Obj_AI_Hero)orbTarget; } if (target != null && target.IsValidTarget(400)) { if (Q.Ready && target.IsValidTarget(400)) { MyExtraManager.CastQ(target); return; } if (ComboMenu["FlowersRiven.ComboMenu.RMode"].As <MenuList>().Value != 3 && R.Ready && isRActive && qStack == 2 && Q.Ready && ComboMenu["FlowersRiven.ComboMenu.RMode"].As <MenuList>().Value != 1 && MyExtraManager.R2Logic(target)) { return; } if (ComboMenu["FlowersRiven.ComboMenu.WCancel"].Enabled && W.Ready && target.IsValidTarget(W.Range) && !target.HaveShiled()) { W.Cast(); return; } if (!Q.Ready && !W.Ready && E.Ready && target.IsValidTarget(400)) { E.Cast(target.ServerPosition); return; } if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive && ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled) { MyExtraManager.R1Logic(target); } } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.ComboAfterAttackEvent." + ex); } }
private static void HarassAfterAttackEvent(AttackableUnit orbTarget) { try { Obj_AI_Hero target = null; if (myTarget.IsValidTarget()) { target = myTarget; } else if (orbTarget is Obj_AI_Hero) { target = (Obj_AI_Hero)orbTarget; } if (target == null || !target.IsValidTarget()) { return; } if (HarassMenu["FlowersRiven.HarassMenu.Mode"].As <MenuList>().Value == 0) { if (qStack == 1) { MyExtraManager.CastQ(target); } } else { if (HarassMenu["FlowersRiven.HarassMenu.Q"].Enabled && Q.Ready) { MyExtraManager.CastQ(target); } } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.HarassAfterAttackEvent." + ex); } }
private static void BurstAfterAttackEvent() { try { var target = TargetSelector.GetSelectedTarget(); if (target == null || !target.IsValidTarget()) { return; } UseItem(); if (R.Ready && isRActive) { R.Cast(target.ServerPosition); return; } if (Q.Ready && MyExtraManager.CastQ(target)) { return; } if (W.Ready && target.IsValidTarget(W.Range) && W.Cast()) { return; } if (E.Ready) { E.Cast(target.ServerPosition); } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.BurstAfterAttackEvent." + ex); } }
private static void RivenDoubleCastEvent(string spellName, bool isBurstMode) { var target = myTarget.IsValidTarget(600f) ? myTarget : TargetSelector.GetTarget(600); if (target != null && target.IsValidTarget()) { switch (spellName.ToLower()) { case "itemtiamatcleave": if (W.Ready && target.IsValidTarget(W.Range)) { W.Cast(); } else if (Q.Ready && target.IsValidTarget(400)) { MyExtraManager.CastQ(target); } break; case "rivenmartyr": if (isBurstMode) { if (R.Ready && isRActive) { R.Cast(target.ServerPosition); } else if (Q.Ready && target.IsValidTarget(400)) { MyExtraManager.CastQ(target); } } else { if (Q.Ready && target.IsValidTarget(400)) { MyExtraManager.CastQ(target); } else if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive && ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled) { MyExtraManager.R1Logic(target); } } break; case "rivenfeint": if (isBurstMode) { if (BurstMenu["FlowersRiven.BurstMenu.Mode"].As <MenuList>().Value == 0) { UseYoumuu(); if (R.Ready && !isRActive) { R.Cast(); } } } else { if (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled&& R.Ready && !isRActive && target.IsValidTarget(500f) && ComboMenu["FlowersRiven.ComboMenu.RTargetFor" + target.ChampionName].Enabled) { MyExtraManager.R1Logic(target); } } break; case "rivenfengshuiengine": if (!isBurstMode) { if (ComboMenu["FlowersRiven.ComboMenu.WCancel"].Enabled && W.Ready && target.IsValidTarget(W.Range)) { W.Cast(); } } break; case "rivenizunablade": if (Q.Ready && target.IsValidTarget(400)) { Q.Cast(target.ServerPosition); } break; default: return; } } }
private static void HarassEvent() { try { if (Me.IsUnderEnemyTurret()) { return; } var target = TargetSelector.GetTarget(E.Range + Me.BoundingRadius); if (target.IsValidTarget()) { if (HarassMenu["FlowersRiven.HarassMenu.Mode"].As <MenuList>().Value == 0) { if (E.Ready && qStack == 2) { var pos = Me.ServerPosition + (Me.ServerPosition - target.ServerPosition).Normalized() * E.Range; if (pos != Vector3.Zero) { E.Cast(pos); } } if (Q.Ready && qStack == 2) { var pos = Me.ServerPosition + (Me.ServerPosition - target.ServerPosition).Normalized() * E.Range; if (pos != Vector3.Zero) { DelayAction.Queue(100, () => Q.Cast(pos)); } } if (W.Ready && target.IsValidTarget(W.Range) && qStack == 1) { W.Cast(); } if (Q.Ready) { if (qStack == 0) { MyExtraManager.CastQ(target); Orbwalker.ForceTarget(target); } if (qStack == 1 && Environment.TickCount - lastQTime > 600) { MyExtraManager.CastQ(target); Orbwalker.ForceTarget(target); } } } else { if (E.Ready && HarassMenu["FlowersRiven.HarassMenu.E"].Enabled && target.DistanceToPlayer() <= E.Range + (Q.Ready ? Q.Range : Me.AttackRange)) { E.Cast(target.ServerPosition); } if (Q.Ready && HarassMenu["FlowersRiven.HarassMenu.Q"].Enabled && target.IsValidTarget(Q.Range) && qStack == 0 && Game.TickCount - lastQTime > 500) { MyExtraManager.CastQ(target); Orbwalker.ForceTarget(target); } if (W.Ready && HarassMenu["FlowersRiven.HarassMenu.W"].Enabled && target.IsValidTarget(W.Range) && (!Q.Ready || qStack == 1)) { W.Cast(); } } } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.HarassEvent." + ex); } }