Results 1 to 5 of 5

Thread: up text?

  1. #1
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default up text?

    is there any way to have it wait until it doesn;t find willow in the top corner

    i believe the code is uptext but scar doesnt reconize it
    Code:
    procedure ChopLogs;
    var
        i,x,y,m: integer;
        treecolors: array [0..3] of integer;
        treeNames: array [0..2] of String;
    
    begin
      treecolors[0]:= 3759203;
      treecolors[1]:= 5406322;
      treecolors[2]:= 6132352;
      treecolors[3]:= 3363673;
      treenames[0]:= 'Wil';
      treenames[1]:= 'llo';
      treenames[2]:= 'low';
      repeat
        if (not LoggedIn) then Exit;
          for i := 0 to 3 do
            if FindObjTPA(x, y, treecolors[i], 10, 2, 15, 25, 10, [treenames[0], treenames[1], treenames[2]]) then
            begin
              FindObjTPA(x, y, treecolors[i], 10, 2, 15, 25, 10, [treenames[0], treenames[1], treenames[2]])
              Wait(100 + Random(300));
                 begin
                      Mouse(x, y, 4, 4, True);
                       MarkTime(M);
                       repeat
                         wait(10);
                         //Findrandoms;
                       until not uptext(treenames[0], treenames[1], treenames[2]);
                     end;
                 end;
              AntiBanz;
             // FindRandoms;
              if not (LoggedIn) then
                  begin
                    NextPlayer(False);
                    LoginPlayer;
                 end;
              until invfull
             end;

  2. #2
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    It's IsUpText.

    Also, to use an array of possibilities, it's IsUpTextMultiCustom.

  3. #3
    Join Date
    Oct 2007
    Location
    brooklyn, new york
    Posts
    258
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make sure you put in your includees after program and before the first procedure. In your case you need to include {.include srl/srl.scar}

    Also, its not uptext its isuptext
    I do not believe it supports array, so you would have to modifiy it. However,

    SCAR Code:
    isuptext('illow')

    would work just fine.

  4. #4
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    is there any way to make it wait until the tree is cut donw nad willow is no longer in the cornoer or should i make a dtm of it

  5. #5
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    to make it do something until the uptext is no longer found just do

    Code:
    repeat
      stuff...
    until(not(GetUpText('UpText')));

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
  •