Ejemplo n.º 1
0
        /*    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;
                }
            }
        }
Ejemplo n.º 2
0
        /*    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;
            }
        }