예제 #1
0
 private void CastR()
 {
     if (CombatHelper.CheckInterrupt(player.Position, R.Range))
     {
         R.Cast();
     }
 }
예제 #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();
         }
     }
 }
예제 #3
0
파일: Program.cs 프로젝트: volder1/PortAIO
 private static void CastR()
 {
     if (CombatHelper.CheckInterrupt(player.Position, R.Range))
     {
         R.Cast(getCheckBoxItem(config, "packets"));
     }
 }
예제 #4
0
 private void CastR()
 {
     if (CombatHelper.CheckInterrupt(player.Position, R.Range))
     {
         R.Cast(config.Item("packets").GetValue <bool>());
     }
 }
예제 #5
0
파일: Program.cs 프로젝트: volder1/PortAIO
 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();
         }
     }
 }