예제 #1
0
 public override Boolean Execute(Profile ExecuteFrom)
 {
     do
     {
         if (!ExecuteFrom.MoveTo(ExecuteFrom.D3Mail.D3Info.X, ExecuteFrom.D3Mail.D3Info.Y))
         {
             return(false);
         }
         ExecuteFrom.D3Cmd(IPlugin.COMMANDS.D3_Update);
         if (ExecuteFrom.Paused)
         {
             return(false);
         }
     } while (this.QuestStep != ExecuteFrom.D3Mail.D3Info.QuestStep);
     return(true);
 }
예제 #2
0
        public override Boolean Execute(Profile ExecuteFrom)
        {
            DateTime CurrTime = DateTime.Now;
            D3Sleep  sleep    = ExecuteFrom.D3Quest[ExecuteFrom.D3ExecuteQueueIndex] as D3Sleep;

            while (sleep != null && ((DateTime.Now.Ticks - CurrTime.Ticks) / 10000) < sleep.Time)
            {
                if (ExecuteFrom.Paused)
                {
                    return(false);
                }
                if (!ExecuteFrom.MoveTo(ExecuteFrom.D3Mail.D3Info.X, ExecuteFrom.D3Mail.D3Info.Y))
                {
                    break;
                }
            }
            return(true);
        }
예제 #3
0
 public override Boolean Execute(Profile ExecuteFrom)
 {
     return(ExecuteFrom.MoveTo(((D3Point)ExecuteFrom.D3Quest[ExecuteFrom.D3ExecuteQueueIndex]).X, ((D3Point)ExecuteFrom.D3Quest[ExecuteFrom.D3ExecuteQueueIndex]).Y));
 }
예제 #4
0
 public override Boolean Execute(Profile ExecuteFrom)
 {
     do
     {
         if (!ExecuteFrom.MoveTo(ExecuteFrom.D3Mail.D3Info.X, ExecuteFrom.D3Mail.D3Info.Y))
             return false;
         ExecuteFrom.D3Cmd(IPlugin.COMMANDS.D3_Update);
         if (ExecuteFrom.Paused) return false;
     } while (this.QuestStep != ExecuteFrom.D3Mail.D3Info.QuestStep);
     return true;
 }
예제 #5
0
 public override Boolean Execute(Profile ExecuteFrom)
 {
     DateTime CurrTime = DateTime.Now;
     D3Sleep sleep = ExecuteFrom.D3Quest[ExecuteFrom.D3ExecuteQueueIndex] as D3Sleep;
     while (sleep != null && ((DateTime.Now.Ticks - CurrTime.Ticks) / 10000) < sleep.Time)
     {
         if (ExecuteFrom.Paused) return false;
         if (!ExecuteFrom.MoveTo(ExecuteFrom.D3Mail.D3Info.X, ExecuteFrom.D3Mail.D3Info.Y))
         {
             break;
         }
     }
     return true;
 }
예제 #6
0
 public override Boolean Execute(Profile ExecuteFrom)
 {
     return ExecuteFrom.MoveTo(((D3Point)ExecuteFrom.D3Quest[ExecuteFrom.D3ExecuteQueueIndex]).X, ((D3Point)ExecuteFrom.D3Quest[ExecuteFrom.D3ExecuteQueueIndex]).Y);
 }