Results 1 to 6 of 6

Thread: Am I using FindNormalRandoms correctly?

  1. #1
    Join Date
    May 2012
    Posts
    102
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Am I using FindNormalRandoms correctly?

    Am I using FindNormalRandoms correctly and if no how should it be used?

    Simba Code:
    procedure FindRandoms;
    begin
      If FindNormalRandoms Then
        If Not LoggedIn Then
          begin
            writeln('We might be stuck in a random.');
            writeln('Ending Script.');
            TerminateScript;
          end;
    end;

    Simba Code:
    repeat
        if (LoggedIn) then
          begin
          ProgressReport;
          RunEnergy(RUNATENERGY);
          while IsChopping do
            begin
              FindRandoms;
              AntiBan;
            end;
          if InvFull then
            begin
              FindRandoms;
              DropLogs(Trees[a]);
            end else
              begin
                FindRandoms;
                if (fs >= 5) then
                  begin
                    ProgressReport;
                    writeln('')
                    writeln('We are stuck.')
                    writeln('Ending Script.')
                    Logout;
                    TerminateScript;
                  end;
                if TreeFindLocation(x, y, Trees[a]) then
                  begin
                    fs := 0;
                    if TreeCheckClick(x, y, Trees[a]) then
                      IsChoppingWait;
                  end else
                    IncEx(fs, 1);
                    RandomCompass;
              end;
          end else
            begin
              ProgressReport;
              TerminateScript;
            end;
      until(false);

  2. #2
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Yeah, that is correct though you might want to do SwapPlayer(False); instead of TerminateScript, if you do stick with TerminateScript then do ExitToLobby before it I'm an idiot

    Edit:
    The OCD in me made me fix up your standards:
    Simba Code:
    repeat
        if(LoggedIn)then
          begin
            ProgressReport;
            RunEnergy(RUNATENERGY);
            while IsChopping do
              begin
                FindRandoms;
                AntiBan;
              end;
            if InvFull then
              begin
                FindRandoms;
                DropLogs(Trees[a]);
              end
            else
              begin
                FindRandoms;
                if (fs >= 5) then
                  begin
                    ProgressReport;
                    writeln('')
                    writeln('We are stuck.')
                    writeln('Ending Script.')
                    Logout;
                    TerminateScript;
                  end;
                if TreeFindLocation(x, y, Trees[a]) then
                  begin
                    fs := 0;
                    if TreeCheckClick(x, y, Trees[a]) then
                      IsChoppingWait;
                  end
                else
                  IncEx(fs, 1);
                RandomCompass;
              end;
          end
        else
          begin
            ProgressReport;
            TerminateScript;
          end;
      until(false);
    Last edited by putonajonny; 06-12-2012 at 04:16 PM.

  3. #3
    Join Date
    May 2012
    Posts
    102
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by putonajonny View Post
    Yeah, that is correct though you might want to do SwapPlayer(False); instead of TerminateScript, if you do stick with TerminateScript then do ExitToLobby before it
    Thank you
    Last edited by Wreck; 06-12-2012 at 04:17 PM.

  4. #4
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Wreck View Post
    Quote Originally Posted by putonajonny View Post
    Yeah, that is correct though you might want to do SwapPlayer(False); instead of TerminateScript, if you do stick with TerminateScript then do ExitToLobby before it
    Thank you
    You are welcome, see my edit though, I made a bit of a bobo..

  5. #5
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    You should call LogOut; before TerminateScript;, actually I'm not sure if TerminateScript; logs you out but yeah you should add LogOut;
    Current Project: Retired

  6. #6
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Gucci View Post
    You should call LogOut; before TerminateScript;, actually I'm not sure if TerminateScript; logs you out but yeah you should add LogOut;
    The thing was the way that it new to terminate the script is because it is logged out, so there is no point in trying to log out...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •