Results 1 to 6 of 6

Thread: srl_GetBitmap

  1. #1
    Join Date
    Aug 2007
    Location
    Emo-land
    Posts
    1,109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default srl_GetBitmap

    Right, so rev14 has the function srl_GetBitmap. I am using it as :
    SCAR Code:
    If Not(FindBitmapIn(srl_GetBitmap(54), x, y, MIX1, MIY1, MIX2, MIY2)) then
        If FindBitmapIn(srl_GetBitmap(54), x, y, MSX1, MSY1, MSX2, MSY2) then
        Begin
          GetEmptyItemPosition(IX, IY);
          Mouse(x, y, 3, 3, true);
          Wait(RandomRange(150, 500));
          if CoordsToItem(IX, IY) > 1 then
          Begin
            FindBitmapIn(srl_GetBitmap(54), x, y, MIX1, MIY1, MIX2, MIY2);
            DragItem(CoordsToItem(x, y), 1);
          end;
        end else
          LogoutProc(False, 'Can' + #39 + 't Find Tinderbox!');
      Deposit(2, 28, 2);

    So it checks the bank for a tinderbox.

    However, when I use

    FindBitmapIn(srl_GetBitmap(54), x, y, MIX1, MIY1, MIX2, MIY2)

    wether I use that or FindBitmap, neither will acknowledge that it is there. I tested this by a repeat loop and a WriteLn on finding. So is it a problem with the bitmap, or am I using it wrong, or do I need tolerance?

    Edit: Looks like I needa use FindBitmapToleranceIn...

  2. #2
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    All colors Vary, Use a Tolerace of about 50.
    SCAR Code:
    if not FindBitmapToleranceIn(srl_GetBitmap(54), x, y, MIX1, MIY1, MIX2, MIY2, 50) then
        if FindBitmapToleranceIn(srl_GetBitmap(54), x, y, MSX1, MSY1, MSX2, MSY2, 50) then
        begin
          GetEmptyItemPosition(IX, IY);
          Mouse(x, y, 3, 3, True);
          Wait(RandomRange(150, 500));
          if CoordsToItem(IX, IY) > 1 then
          begin
            FindBitmapToleranceIn(srl_GetBitmap(54), x, y, MIX1, MIY1, MIX2, MIY2, 50);
            DragItem(CoordsToItem(x, y), 1);
          end;
        end else
          LogoutProc(False, 'Can''t Find Tinderbox!');
      Deposit(2, 28, 2);

  3. #3
    Join Date
    Jun 2007
    Posts
    785
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    and the second one ( If FindBitmapIn(srl_GetBitmap(54), x, y, MSX1, MSY1, MSX2, MSY2) then ) is looking on the MS you don't want to look in the inv?

    [22:20] <[-jesus-]> freddy, go uninstall yourself

  4. #4
    Join Date
    Aug 2007
    Location
    Emo-land
    Posts
    1,109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol yea I used 50 and got a massive print out telling me i was mental, so it works amazingly I used the number before your post timer lol.

    Edit : Yea dumpin, thats already dealt with, but thanks

  5. #5
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    LoL.
    Frozen, Frozen, Frozen, I thought u would of known that

  6. #6
    Join Date
    Aug 2007
    Location
    Emo-land
    Posts
    1,109
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I honestly did too lol. I just thought maybe SRL ones would be godly don't ask why, its late! And besides I never really used bitmaps much before, only DTM's haha.

    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
  •