Example #1
0
        public override System.Collections.Generic.IEnumerator<string> Run(Bot bot)
        {
            var r = new Random();
            var chosenCombo = (from combo in bot.getComboList()
                              where
                                  combo.Score > 0 && combo.Type.HasFlag(ComboType.GROUND)
                              orderby combo.Score descending
                              
                              select combo).Take(5);
            if (chosenCombo.Count() == 0)
			{
				_reason = "No combos?";
                yield break;
			}
            var c = chosenCombo.ElementAt(r.Next(chosenCombo.Count()));
            var timer = 0;
            while(Math.Abs(bot.myState.XDistance) > c.XMax || bot.enemyState.ActiveCancelLists.Contains("REVERSAL") || bot.enemyState.ScriptName.Contains("UPWARD"))
            {
                bot.pressButton("6");
                if (timer++ > 10)
				{
					_reason = "Rerolling";
                    yield break;
				}
                
                yield return "Getting in range"+timer;
            }

			var substate = new SequenceState(c.Input);
			while(!substate.isFinished())
				yield return substate.Process(bot);
        }
Example #2
0
 public override System.Collections.Generic.IEnumerator<string> Run(Bot bot)
 {
     while(Math.Abs(bot.myState.XDistance) > 1)
     {
         bot.pressButton("6");
         yield return "Getting in range";
     }
     if(!bot.enemyState.ActiveCancelLists.Contains("REVERSAL"))
     {
         var substate = new SequenceState("1LP.W18.*2HP.2MPHP.W10.6.2.3HP");
         while(!substate.isFinished())
             yield return substate.Process(bot);
     }
     yield break;
 }
Example #3
0
        public override System.Collections.Generic.IEnumerator <string> Run(Bot bot)
        {
            var chosenCombo = (from combo in bot.getComboList()
                               where
                               combo.Score >= 100
                               orderby combo.Score descending

                               select combo).Take(1);
            var c        = chosenCombo.First();
            var substate = new SequenceState(c.Input);

            while (!substate.isFinished())
            {
                yield return(substate.Process(bot));
            }
        }
Example #4
0
            public override IEnumerator <string> Run(Bot bot)
            {
                var timer = 0;

                while (Math.Abs(bot.myState.XDistance) > combo.XMax || bot.enemyState.ActiveCancelLists.Contains("REVERSAL") || bot.enemyState.ScriptName.Contains("UPWARD"))
                {
                    bot.pressButton("6");
                    yield return("Getting in range");
                }

                var substate = new SequenceState(combo.Input);

                while (!substate.isFinished())
                {
                    yield return(substate.Process(bot));
                }
            }
Example #5
0
 public override System.Collections.Generic.IEnumerator <string> Run(Bot bot)
 {
     while (Math.Abs(bot.myState.XDistance) > 1)
     {
         bot.pressButton("6");
         yield return("Getting in range");
     }
     if (!bot.enemyState.ActiveCancelLists.Contains("REVERSAL"))
     {
         var substate = new SequenceState("1LP.W18.*2HP.2MPHP.W10.6.2.3HP");
         while (!substate.isFinished())
         {
             yield return(substate.Process(bot));
         }
     }
     yield break;
 }
Example #6
0
        public override System.Collections.Generic.IEnumerator <string> Run(Bot bot)
        {
            var chosenCombo = (from combo in bot.getComboList()
                               where
                               combo.Score >= 100 && combo.Type.HasFlag(ComboType.STUFF)
                               orderby combo.Score descending
                               select combo).ToList();

            if (chosenCombo.Count() == 0)
            {
                yield break;
            }
            var c        = chosenCombo.First();
            var substate = new SequenceState(c.Input);

            while (!substate.isFinished())
            {
                yield return(substate.Process(bot));
            }
        }
Example #7
0
        public override System.Collections.Generic.IEnumerator <string> Run(Bot bot)
        {
            var r           = new Random();
            var chosenCombo = (from combo in bot.getComboList()
                               where
                               combo.Score > 0 && combo.Type.HasFlag(ComboType.GROUND)
                               orderby combo.Score descending

                               select combo).Take(5);

            if (chosenCombo.Count() == 0)
            {
                _reason = "No combos?";
                yield break;
            }
            var c     = chosenCombo.ElementAt(r.Next(chosenCombo.Count()));
            var timer = 0;

            while (Math.Abs(bot.myState.XDistance) > c.XMax || bot.enemyState.ActiveCancelLists.Contains("REVERSAL") || bot.enemyState.ScriptName.Contains("UPWARD"))
            {
                bot.pressButton("6");
                if (timer++ > 10)
                {
                    _reason = "Rerolling";
                    yield break;
                }

                yield return("Getting in range" + timer);
            }

            var substate = new SequenceState(c.Input);

            while (!substate.isFinished())
            {
                yield return(substate.Process(bot));
            }
        }
            public override IEnumerator<string> Run(Bot bot)
            {
                var timer = 0;
                while (Math.Abs(bot.myState.XDistance) > combo.XMax || bot.enemyState.ActiveCancelLists.Contains("REVERSAL") || bot.enemyState.ScriptName.Contains("UPWARD"))
                {
                    bot.pressButton("6");
                    yield return "Getting in range";
                }

                var substate = new SequenceState(combo.Input);
                while (!substate.isFinished())
                    yield return substate.Process(bot);
            }
Example #9
0
 public override System.Collections.Generic.IEnumerator<string> Run(Bot bot)
 {
     var chosenCombo = (from combo in bot.getComboList()
                        where
                            combo.Score >= 100 && combo.Type.HasFlag(ComboType.STUFF)
                        orderby combo.Score descending
                        select combo).ToList();
     if (chosenCombo.Count() == 0)
     {
         yield break;
     }
     var c = chosenCombo.First();
     var substate = new SequenceState(c.Input);
     while (!substate.isFinished())
         yield return substate.Process(bot);
 }
Example #10
0
        public override System.Collections.Generic.IEnumerator<string> Run(Bot bot)
        {
			var chosenCombo = (from combo in bot.getComboList()
                              where
                                  combo.Score >= 100
                              orderby combo.Score descending
                              
                              select combo).Take(1);
			var c = chosenCombo.First();
            var substate = new SequenceState(c.Input);
			while(!substate.isFinished())
                yield return substate.Process(bot);
        }