Example #1
0
        public static void Harass()
        {
            var q = Config.Item("UQH").GetValue <bool>();
            var w = Config.Item("UWH").GetValue <bool>();
            var e = Config.Item("UEH").GetValue <bool>();

            var t = AxeCatcher.GetTarget();

            if (!t.IsValidTarget() || !t.IsValid <Obj_AI_Hero>())
            {
                return;
            }
            var target = (Obj_AI_Hero)t;

            if (q && AxeCatcher.LastAa + 300 < Environment.TickCount && _spells[Spells.Q].IsReady() &&
                AxeCatcher.AxeSpots.Count + AxeCatcher.CurrentAxes < 2 &&
                target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(_player)))
            {
                _spells[Spells.Q].Cast();
            }
            if (w && !ObjectManager.Player.HasBuff("dravenfurybuff", true) &&
                !ObjectManager.Player.HasBuff("dravenfurybuff") && _spells[Spells.W].IsReady() &&
                target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(_player)))
            {
                _spells[Spells.W].Cast();
            }
            if (e && _spells[Spells.E].IsReady() && AxeCatcher.CanMakeIt(500) &&
                target.IsValidTarget(_spells[Spells.E].Range))
            {
                _spells[Spells.E].Cast(target);
            }
        }
Example #2
0
        public static void Jungle()
        {
            var q = Config.Item("UQJ").GetValue <bool>();
            var w = Config.Item("UWJ").GetValue <bool>();
            var e = Config.Item("UEJ").GetValue <bool>();

            var target =
                MinionManager.GetMinions(
                    _player.Position, 700, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth)
                .FirstOrDefault();

            if (q && AxeCatcher.LastAa + 300 < Environment.TickCount && _spells[Spells.Q].IsReady() &&
                AxeCatcher.AxeSpots.Count + AxeCatcher.CurrentAxes < 2 &&
                target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(_player)))
            {
                _spells[Spells.Q].Cast();
            }
            if (w && !ObjectManager.Player.HasBuff("dravenfurybuff", true) &&
                !ObjectManager.Player.HasBuff("dravenfurybuff") && _spells[Spells.W].IsReady() &&
                target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(_player)))
            {
                _spells[Spells.W].Cast();
            }
            if (e && _spells[Spells.E].IsReady() && AxeCatcher.CanMakeIt(500) &&
                target.IsValidTarget(_spells[Spells.E].Range))
            {
                _spells[Spells.E].Cast(target);
            }
        }
Example #3
0
      public static void Combo()
      {
          var Q = Config.Item("UQC").GetValue <bool>();
          var W = Config.Item("UWC").GetValue <bool>();
          var E = Config.Item("UEC").GetValue <bool>();
          var R = Config.Item("URC").GetValue <bool>();

          var t = AxeCatcher.GetTarget();

          if (!t.IsValidTarget() || !t.IsValid <Obj_AI_Hero>())
          {
              return;
          }
          var Target = (Obj_AI_Hero)t;

          if (Target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(Player) + 200))
          {
              if (ItemData.Youmuus_Ghostblade.GetItem().IsReady())
              {
                  ItemData.Youmuus_Ghostblade.GetItem().Cast();
              }
          }

          if (Q && AxeCatcher.LastAa + 300 < Environment.TickCount && spells[Spells.Q].IsReady() &&
              AxeCatcher.AxeSpots.Count + AxeCatcher.CurrentAxes < 2 && Target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(Player)))
          {
              spells[Spells.Q].Cast();
          }
          if (W && !ObjectManager.Player.HasBuff("dravenfurybuff", true) && !ObjectManager.Player.HasBuff("dravenfurybuff") &&
              spells[Spells.W].IsReady() && Target.IsValidTarget(Orbwalking.GetRealAutoAttackRange(Player)))
          {
              spells[Spells.W].Cast();
          }
          if (E && spells[Spells.E].IsReady() && AxeCatcher.CanMakeIt(500) && Target.IsValidTarget(spells[Spells.E].Range))
          {
              spells[Spells.E].Cast(Target);
          }
          var t2 = TargetSelector.GetTarget(3000, TargetSelector.DamageType.Physical);

          if (R && spells[Spells.R].IsReady() && t2.IsValidTarget(spells[Spells.R].Range))
          {
              switch (Config.Item("URCM").GetValue <StringList>().SelectedIndex)
              {
              case 1:
                  if (getRCalc(t2))
                  {
                      spells[Spells.R].Cast(t2);
                  }
                  break;

              case 0:
                  if (getRCalc(t2) && t2.Distance(Player) > 800)
                  {
                      spells[Spells.R].Cast(t2);
                  }
                  break;
              }
          }
      }