Exemplo n.º 1
0
 private void CastR()
 {
     if (CombatHelper.CheckInterrupt(player.Position, R.Range))
     {
         R.Cast();
     }
 }
Exemplo n.º 2
0
 private void FlashCombo()
 {
     if (R.IsReady() && player.Spellbook.CanUseSpell(player.GetSpellSlot("SummonerFlash")) == SpellState.Ready)
     {
         var points = CombatHelper.PointsAroundTheTarget(player.Position, 425);
         var best   =
             points.Where(
                 p =>
                 !p.IsWall() && p.Distance(player.Position) > 200 && p.Distance(player.Position) < 425 &&
                 p.IsValid() && p.CountEnemiesInRange(R.Range) > 0 &&
                 config.Item("Rminflash", true).GetValue <Slider>().Value <=
                 p.CountEnemiesInRange(R.Range - 150))
             .OrderByDescending(p => p.CountEnemiesInRange(R.Range - 100))
             .FirstOrDefault();
         if (best.CountEnemiesInRange(R.Range - 150) > player.CountEnemiesInRange(R.Range) &&
             CombatHelper.CheckInterrupt(best, R.Range))
         {
             player.Spellbook.CastSpell(player.GetSpellSlot("SummonerFlash"), best);
             Utility.DelayAction.Add(50, () => { R.Cast(); });
             justR = true;
             Utility.DelayAction.Add(200, () => justR = false);
             orbwalker.SetAttack(false);
             orbwalker.SetMovement(false);
             return;
         }
     }
     if (!rActive && Orbwalking.CanMove(100))
     {
         if (!justR)
         {
             Orbwalking.MoveTo(Game.CursorPos, 80f);
             Combo();
         }
     }
 }
Exemplo n.º 3
0
 private static void CastR()
 {
     if (CombatHelper.CheckInterrupt(player.Position, R.Range))
     {
         R.Cast(getCheckBoxItem(config, "packets"));
     }
 }
Exemplo n.º 4
0
 private void CastR()
 {
     if (CombatHelper.CheckInterrupt(player.Position, R.Range))
     {
         R.Cast(config.Item("packets").GetValue <bool>());
     }
 }
Exemplo n.º 5
0
 private static void FlashCombo()
 {
     if (R.IsReady() && player.Spellbook.CanUseSpell(player.GetSpellSlot("SummonerFlash")) == SpellState.Ready)
     {
         var points = CombatHelper.PointsAroundTheTarget(player.Position, 425);
         var best   =
             points.Where(
                 p =>
                 !p.IsWall() && p.LSDistance(player.Position) > 200 && p.LSDistance(player.Position) < 425 &&
                 p.IsValid() && p.CountEnemiesInRange(R.Range) > 0 &&
                 getSliderItem(comboMenu, "Rminflash") <= p.CountEnemiesInRange(R.Range - 150))
             .OrderByDescending(p => p.CountEnemiesInRange(R.Range - 100))
             .FirstOrDefault();
         if (best.CountEnemiesInRange(R.Range - 150) > player.CountEnemiesInRange(R.Range) &&
             CombatHelper.CheckInterrupt(best, R.Range))
         {
             player.Spellbook.CastSpell(player.GetSpellSlot("SummonerFlash"), best);
             Utility.DelayAction.Add(50, () => { R.Cast(getCheckBoxItem(config, "packets")); });
             justR = true;
             Utility.DelayAction.Add(200, () => justR = false);
             PortAIO.OrbwalkerManager.SetAttack(false);
             PortAIO.OrbwalkerManager.SetMovement(false);
             return;
         }
     }
     if (!rActive)
     {
         if (!justR)
         {
             Orbwalker.MoveTo(Game.CursorPos);
             Combo();
         }
     }
 }