Results 1 to 3 of 3

Thread: Finding MS Objects Using Bitmap Slices

  1. #1
    Join Date
    Jun 2007
    Location
    New Jersey, USA
    Posts
    123
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Finding MS Objects Using Bitmap Slices

    I have a few questions concerning this topic.

    I've read some posts and scripts by Fawki and he says that he uses bitmap slices to find objects. I'm interested in finding an anvil or maybe a ladder, keep that in mind when answering my questions.

    Questions:
    1) How do I make a bitmap that has a small size? I know that the simple answer to this would be make a bitmap that contains less pixels, but it seems that Fawki can make bitmaps the same size (pixel wise) as mine, that have a lot less characters in the BitmapFromString(), why?
    2) I wanted to know what the bitmaps used in OpenBankQuiet look like, and how the function actually works.
    3) I don't know that much about bitmaps besides the basic stuff shown in tutorials. I think I should be using FindDeformedBitmapToleranceIn just like in OpenBankQuiet, but how exactly do I use it? What values should I be modifying in the searching loop?
    My Scripts:
    Rimmington Soft Clay Farmer 2.0 - Makes approx. 40k gold per hour. Mines clay, softens it, and banks it.

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    1) Try making you bitmaps simple maybe 5X5 pixel maximum
    2) To see what a bitmap looks like,
    Copy the pink characters,
    Click Tools>String to picture
    Paste the pink chracters at bottom
    and enter the width and legth
    Example:

    'feb', 'fwb': TheCounter := BitmapFromString(1, 10, '6C583296897A948779948779736' +
    'C63A59E968C7F6F9686749B8A7685663E');

    copy paste this:
    '6C583296897A948779948779736' +
    'C63A59E968C7F6F9686749B8A7685663E'
    Length is 1, width is 10

    As for what it does, it bascilly just looks for the bitmap, adding tolerance, and spiraling out from different areas of the screen so it searches all over.
    3)
    Well hers a line from openbankquiet:
    SCAR Code:
    FindDeformedBitmapToleranceIn(TheCounter, dx, dy, MSX1 + 50, MSY1 + 50, MSX2- 50, MSY2 - 50, tol, 4, True, acc);

    The Counter=Bitmap Name
    Dx,DY=x,y (the cords where it is found)
    MSX1 + 50, MSY1 + 50, MSX2- 50, MSY2 - 50= Seraching box
    Tol=Tolerance
    4= Range as the scar manual says
    If range is 0, it checks pixels at positions that match bitmap we are looking for; if Range ir 1, it checks neighbor pixels as well, if range is bigger, it checks further
    True= Partial Acuracy (leave it at tue)
    Acc= You just need it, make it an extended variable at the top of your script.

    Tell us if you need more info =)

  3. #3
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    Fawki can make bitmaps the same size (pixel wise) as mine, that have a lot less characters in the BitmapFromString(),
    If you're talking about in his newest scripts, thats a new way of bitmap encryption in SCAR 3.12 Beta.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. finding objects
    By randy marsh in forum OSR Help
    Replies: 1
    Last Post: 07-02-2008, 09:13 PM
  2. Finding objects
    By nielsie95 in forum Outdated Tutorials
    Replies: 13
    Last Post: 08-17-2007, 06:08 PM

Posting Permissions

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