/* public static bool ObjisInRange(Obj_AI_Base target , Obj_AI_Base target2 , float range) * { * if (target2.Distance(target) < range) * { * return true; * } * return false; * }*/ public static void Do(Obj_AI_Hero target) { var minion = ObjectManager.Get <Obj_AI_Base>() .Where(x => x.IsEnemy && Program.Q.CanCast(x) && Program.Q.IsInRange(x)) .FirstOrDefault <Obj_AI_Base>(); if (insecActive == false) { if (Program.Q.IsReady() && ((Program.W.IsReady() && WardJump.getBestWardItem().IsValidSlot()) || (Program.menu.Item("useflash").GetValue <bool>() && ObjectManager.Player.Spellbook.GetSpell( ObjectManager.Player.GetSpellSlot("SummonerFlash")).IsReady())) && Program.R.IsReady() && Program.Player.Mana >= 130) { if (Program.Player.Distance(target) <= 500) { Steps = steps.WardJump; } insecActive = true; WardJump.wardj = false; } } if (!insecActive) { return; } if (target.IsValidTarget(Program.Q.Range)) { if (Steps == steps.Q1) { if (Program.Q.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "BlindMonkQOne") { Program.cast(target, Program.Q); } } if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name.ToLower() == "blindmonkqtwo") { if (Program.Q.Cast()) { if (!WardJump.getBestWardItem().IsValidSlot() && Program.menu.Item("useflash").GetValue <bool>()) { Steps = steps.Flash; } else { Steps = steps.WardJump; } } } } if (Steps == steps.WardJump) // put ward { if (Program.W.IsReady()) { WardJump.JumpTo(GetInsecPos(target)); } } else if (Steps == steps.Flash) // hit w { if (WardJump.Insecpos(target).Distance(Program.Player.Position) < 400) { ObjectManager.Player.Spellbook.CastSpell( ObjectManager.Player.GetSpellSlot("SummonerFlash"), GetInsecPos(target)); Steps = steps.R; } } else if (Steps == steps.R) // and hit the kick { RCast(target); } else { // insecActive = false; // Steps = steps.Q1; } }
/* public static bool ObjisInRange(Obj_AI_Base target , Obj_AI_Base target2 , float range) * { * if (target2.Distance(target) < range) * { * return true; * } * return false; * }*/ public static void Do(Obj_AI_Hero target) { Obj_AI_Base minion = ObjectManager.Get <Obj_AI_Base>().Where(x => x.IsEnemy && Program.Q.CanCast(x) && Program.Q.IsInRange(x)).FirstOrDefault <Obj_AI_Base>(); if (insecActive == false) { if (Program.Q.IsReady() && ((Program.W.IsReady() && WardJump.getBestWardItem().IsValidSlot()) || (Program.menu.Item("useflash").GetValue <bool>() && ObjectManager.Player.Spellbook.GetSpell(ObjectManager.Player.GetSpellSlot("SummonerFlash")).IsReady())) && Program.R.IsReady() && Program.Player.Mana >= 130) { insecActive = true; WardJump.wardj = false; } } if (!insecActive) { return; } if (target.IsValidTarget(Program.Q.Range)) { if (Steps == steps.Q1) { if (Program.Q.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "BlindMonkQOne") { if (Program.Q.CastIfHitchanceEquals(target, Combos.Combo.HitchanceCheck(Program.menu.Item("seth").GetValue <Slider>().Value))) { Steps = steps.Q2; } /* else if (Program.Q.CanCast(minion) && useQMinion) * { * if (!Program.Q.IsKillable(minion)&&ObjisInRange(minion, target, Program.W.Range)) * { * if(Program.Q.CastIfHitchanceEquals(minion, Combos.Combo.HitchanceCheck(Program.menu.Item("seth").GetValue<Slider>().Value))) * Steps = steps.Q2; * } * }*/ } } else if (Steps == steps.Q2) // hit second q { if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "blindmonkqtwo") { if (Program.Q.Cast()) { if (!WardJump.getBestWardItem().IsValidSlot() && Program.menu.Item("useflash").GetValue <bool>()) { Steps = steps.Flash; } else { Steps = steps.WardJump; } } } } else if (Steps == steps.WardJump) // put ward { if (Program.Player.Distance(WardJump.getward(target)) <= 600 && Program.W.IsReady()) { WardJump.JumpTo(GetInsecPos(target)); } } else if (Steps == steps.Flash) // hit w { if (WardJump.Insecpos(target).Distance(Program.Player.Position) < 400) { ObjectManager.Player.Spellbook.CastSpell(ObjectManager.Player.GetSpellSlot("SummonerFlash"), GetInsecPos(target)); Steps = steps.R; } } else if (Steps == steps.R) // and hit the kick { RCast(target); } else { // insecActive = false; // Steps = steps.Q1; } } }
public static void InsecQMode(Obj_AI_Hero target) { if (target.IsValidTarget(Program.Q.Range)) { if (Steps == "One") //First hit q { if (Program.Q.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "BlindMonkQOne") { if (Program.Q.CastIfHitchanceEquals(target, Program.HitchanceCheck(Program.menu.Item("seth").GetValue <Slider>().Value))) // Continue like that { Steps = "Two"; } } } else if (Steps == "Two") // hit second q { if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "blindmonkqtwo") { SecondQTime = Convert.ToInt32(Math.Round(Game.Ping + Program.Q.Instance.SData.SpellTotalTime, MidpointRounding.AwayFromZero)); if (Program.Q.Cast()) { if (!WardJump.getBestWardItem().IsValidSlot() && Program.menu.Item("useflash").GetValue <bool>()) { Steps = "Flash"; } else { Steps = "Three"; } } } else { } } else if (Steps == "Three") // put ward { if (Program.Player.Distance(WardJump.getward(target)) <= 600 && Program.W.IsReady()) { Utility.DelayAction.Add(SecondQTime, () => WardJump.InsecJump(WardJump.Insecpos(target).To2D())); Steps = "Four"; } } else if (Steps == "Four") //go to the ward { Utility.DelayAction.Add(Game.Ping + 100, () => WardJump.InsecJump(WardJump.Insecpos(target).To2D())); Utility.DelayAction.Add(Game.Ping + 110, () => fiveornot()); } else if (Steps == "Flash") // hit w { if (WardJump.Insecpos(target).Distance(Program.Player.Position) < 400) { ObjectManager.Player.Spellbook.CastSpell(ObjectManager.Player.GetSpellSlot("SummonerFlash"), WardJump.Insecpos(target)); Steps = "Five"; } } else if (Steps == "Five") // and hit the kick { Utility.DelayAction.Add(Convert.ToInt32(Math.Round(Game.Ping + Program.W.Instance.SData.SpellTotalTime, MidpointRounding.AwayFromZero)), () => Program.R.CastOnUnit(target)); // it dont hit anything } else { Steps = "One"; } } }