Results 1 to 3 of 3

Thread: UpText Not Working on Second loop of my script?

  1. #1
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Smile UpText Not Working on Second loop of my script?

    Simba Code:
    procedure GetClayFromBank;

    begin
      if bankscreen then
      begin
      WriteLn('found bankscreen');
       if finddtm(CLAYDTM, x, y, MSX1, MSY1, MSX2, MSY2) then
        begin
          AL_MissMouse(Point(X, Y), 2, 2);
          sleep(180 + random(220));
          if IsUpText('oft') then
          begin
           Writeln('Taking Clay');
           AL_FastClick(mouse_right);
           sleep(212 + random(159));
           chooseoption('Withdraw-All');
           closebank;
           sleep(215 + random(242));
           findnoninventoryrandoms();
           end
          end
        end
    end;


    Results from a test done on a door using the uptext.

    1st loop = Close Door
    2nd loop = lFn Fioorm@@m

    Sorry to post again so soon... However, every procedure which uses ISUpText such as the one above work perfectly the first time round in my scripts, however, they fail to detect the uptext at all the second time the scripts loops.

    Any ideas on what potentially could cause this? You would think if it works the first time it would again?
    Last edited by Cage; 09-28-2013 at 10:32 PM.

  2. #2
    Join Date
    Jul 2012
    Posts
    437
    Mentioned
    10 Post(s)
    Quoted
    165 Post(s)

    Default

    Quote Originally Posted by Cage View Post
    Simba Code:
    procedure GetClayFromBank;

    begin
      if bankscreen then
      begin
      WriteLn('found bankscreen');
       if finddtm(CLAYDTM, x, y, MSX1, MSY1, MSX2, MSY2) then
        begin
          AL_MissMouse(Point(X, Y), 2, 2);
          sleep(180 + random(220));
          if IsUpText('oft') then
          begin
           Writeln('Taking Clay');
           AL_FastClick(mouse_right);
           sleep(212 + random(159));
           chooseoption('Withdraw-All');
           closebank;
           sleep(215 + random(242));
           findnoninventoryrandoms();
           end
          end
        end
    end;


    Results from a test done on a door using the uptext.

    1st loop = Close Door
    2nd loop = lFn Fioorm@@m

    Sorry to post again so soon... However, every procedure which uses ISUpText such as the one above work perfectly the first time round in my scripts, however, they fail to detect the uptext at all the second time the scripts loops.

    Any ideas on what potentially could cause this? You would think if it works the first time it would again?
    are you changing the color tolerance with out changing it back to the default values?

  3. #3
    Join Date
    Sep 2013
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Resolved. Tealc, you were correct. It was down to not changing the colour tolerance back to their default values after altering them, just in case any new scriptwriters come across a similar problem.

    Thanks!

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
  •