Results 1 to 8 of 8

Thread: cant find oaklog

  1. #1
    Join Date
    Jul 2007
    Location
    Pluto... Maybe?
    Posts
    198
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default cant find oaklog

    Im trying to find oaklogs in the bank using DTM's but no matter how many i make they all seem to fail in the end heres my procedure atm :

    SCAR Code:
    Procedure FindTheOak;
    Var
    Oaklog, OakLog2, OakLog3, x, y : Integer;
    begin
    if not LoggedIn then Exit;
    OakLog := DTMFromString('78DA6394626060106540018D29360CFC409A1' +
           '188FF0301232F9021C88006189148202D0324E408A85102120204' +
           'D42802094E026A5481840C0135200FC8E257030036D50691');
    OakLog2 := DTMFromString('78DA63DCCAC4C03087910119D4265A8169982' +
           '8E36EA09A25A86A60B27035FB806A661050B314A8662E7E35005E' +
           '7F0678');
    OakLog3 := DTMFromString('78DA633CCCC8C070840105D42759836946289' +
           'F711B907588010D30A2AAD904641D27A0E63490B59B809AF340D6' +
           '29FC6A00CE2408C7');
           If FindDTM(Oaklog, x, y, MBX1, MBY1, MBX2, MBY2) or
           FindDTM(Oaklog, x, y, MBX1, MBY1, MBX2, MBY2) or
           FindDTM(Oaklog, x, y, MBX1, MBY1, MBX2, MBY2) then
             begin
             MMouse(x, y, 0, 0);
           Wait(50 + Random(50));
           if (IsUpText('log')) then
           begin
           Writeln('Found Oak Logs!');
           GetMousePos(x, y);
            Mouse(x, y, 0, 0, False);
           Wait(100 + Random(50));
         ChooseOption('All');
       FreeDTM(Oaklog);
       FreeDTM(Oaklog2);
       FreeDTM(OakLog3);
       end else
        begin
          Writeln('No Logs Found!');
         CloseBank;
        Logout;
      TerminateScript;
      end;
        end else
        begin
          Writeln('No Logs Found!');
         CloseBank;
        Logout;
      TerminateScript;
      end;
     end;

    3 dtms! and still it manages to fail finding the oak logs sometimes -.- and pointers to get it to work more?

  2. #2
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Try using a bitmap. Just take a small strip of the log, and use FindBitmapToleranceIn

  3. #3
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Err is (MB = MainBank)? I don't think thats valid... But if its not giving you an error it must be. Try using MSx1, MSy1, etc... For Mainscreen, also how sub points are you using? And make sure that your using tolerance.

    EDIT: also
    if (IsUpText('log')) then
    use
    SCAR Code:
    if (IsUpText('ak')) then
    for Oak

  4. #4
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    this code works:
    Code:
    Procedure FindTheOak;
    Var
      Oaklog, x, y : Integer;
      whichangle:extended;
    begin
      if not LoggedIn then Exit;
      OakLog := DTMFromString('78DA63E467626078C4C8800C6A12AC18FE036' +
        '99828A33450CD5554353059B81A59A09A1B04D4C803D5DC27A04609D' +
        '33D186AE4806A5E1050230054F386801A4EA09A9704D4B000D53C26A' +
        '08603A8E63601357C44848F30613500EC120DC4');
       If FindDTMrotated(Oaklog, x, y, MbX1, MbY1, mbX2, Mby2,radians(0),radians(360),0.05,whichangle) then
       begin
         MMouse(x, y, 3, 3);
         Wait(50 + Random(50));
         if (IsUpText('og')) then
         begin
           Writeln('Found Oak Logs!');
           GetMousePos(x, y);
           Mouse(x, y, 0, 0, False);
           Wait(100 + Random(50));
           ChooseOption('All');
           FreeDTM(Oaklog);
         end else
         begin
           Writeln('No Logs Found!');
           CloseBank;
           Logout;
           FreeDTM(Oaklog);
           TerminateScript;
         end;
       end else
       begin
         Writeln('No Logs Found!');
         CloseBank;
         Logout;
         FreeDTM(Oaklog);
         TerminateScript;
       end;
    end;
    Last edited by x[Warrior]x3500; 08-30-2009 at 02:11 AM.

  5. #5
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by mormonman View Post
    Try using a bitmap. Just take a small strip of the log, and use FindBitmapToleranceIn
    Further to mormonman, DTM's, for me, never seem to work for the bank. I think it's due to the fact that it is on the main screen; so the outline shifts a bit.

    If bitmap'ing' fails, try using some color. Or if the logs are in a constant position use Withdraw

  6. #6
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    If FindDTM(Oaklog, x, y, MBX1, MBY1, MBX2, MBY2) or
    FindDTM(Oaklog, x, y, MBX1, MBY1, MBX2, MBY2) or
    FindDTM(Oaklog, x, y, MBX1, MBY1, MBX2, MBY2) then

    You never put a 2 or 3 after the others also. So you were trying to find 1 of the dtms only
    I do visit every 2-6 months

  7. #7
    Join Date
    Jul 2007
    Location
    Pluto... Maybe?
    Posts
    198
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol didnt notice i forgot to put 3 and 3 -.- also il use dtmrotated instead or maybe try a bitmap
    Last edited by pl0xmypl0x; 08-30-2009 at 03:17 AM.

  8. #8
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    There's no need for DTMRotated if you're trying to find a static image. DTMRotated is used for finding things on the minimap.

    Richard.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

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
  •