Results 1 to 15 of 15

Thread: DTM or picture to string?

  1. #1
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default DTM or picture to string?

    which is better and really whats the difference?

  2. #2
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    It depends on a few things. How dynamic is it? How big or small is it? Where are you searching for it? DTMs look mostly at the outline of an object, while bitmaps look for a small (or large, yet small is more accurate and faster) snippet of something. Apparently bitmaps are faster, but it's no noticeable difference. All in all, it comes down to personal preference (except for some things, where DTMs would be better, but for the most part, it's up to the scripter).

  3. #3
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by BlueWorld View Post
    which is better and really whats the difference?
    Really depends on the purpose that its for.

    DTM's are usually good for item finding, thought BMP's do the same.

    I prefer DTM's over BMP's.
    There used to be something meaningful here.

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

    Default

    Show us a picture of what you are trying to find, and we'll tell you.

  5. #5
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    not what im trying to find cause iv'e made the dtms of what i want =] but i need to figure out how to withdraw x amount, and you know when i lets say x=100 then i have the option to take of 100 at a time right? how would i click withdraw 100 rather then keep using with draw x amount?

  6. #6
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    SCAR Code:
    if(ChooseOption('X'))then
      TypeSend('100')
    else
      ChooseOption('100');

  7. #7
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by i luffs yeww View Post
    SCAR Code:
    if(ChooseOption('X'))then
      TypeSend('100')
    else
      ChooseOption('100');
    Maybe this instead?
    SCAR Code:
    if (OptionsExist(['100'], False)) then begin
      ChooseOption('100');
    end else begin
      ChooseOption('x');
      TypeSend('100');
    end;
    There used to be something meaningful here.

  8. #8
    Join Date
    Aug 2007
    Posts
    328
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    so that would choose x and then take 100 IF it didn't have the option to take 100 already?
    frement's one makes sense i think its taht one

  9. #9
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    What I posted would still work, I think. If it doesn't ChooseOption('100'), it will ChooseOption('X') and then TypeSend('100'), so then next time ChooseOption('100') will work. I'll try it.

    SCAR Code:
    {.include SRL/SRL.scar}

    begin
      SetupSRL;
      repeat
        MouseBox(440, 97, 458, 121, 2);
        Wait(Random(500));
        if(ChooseOption('100'))then
          Break
        else begin
          MouseBox(440, 97, 458, 121, 2);
          ChooseOption('X');
          Wait(500 + Random(500));
          TypeSend('100');
        end;
        MMouse(MMCX, MMCY, 100, 100);
      until(False);
    end.

    Fixed, sorry.

    Or just use Frement's. What I posted just now was just an example that I think would work.
    Last edited by i luffs yeww; 05-02-2010 at 11:22 PM.

  10. #10
    Join Date
    Oct 2009
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    DTM all way, smaller, faster, more dynamic.

  11. #11
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    bitmaps are better then dtms. They are much faster. If you need help with them check out my tutorial in my signiture. Dont worry about people saying they are more memory intensive i am sure you have 30kb of ram to spare.
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  12. #12
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by cycrosism View Post
    bitmaps are better then dtms. They are much faster. If you need help with them check out my tutorial in my signiture. Dont worry about people saying they are more memory intensive i am sure you have 30kb of ram to spare.
    Depends on what you are trying to search for...if you search for a road in minimap, a bitmap is the worst way to do it, am i right? If you search for a item in inv/bank then bitmap would do fine, thought i still prefer using dtm's for those too. As for the speed, you wont even notice it. (or atleast on my comp).
    There used to be something meaningful here.

  13. #13
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    if you search for a road in minimap you should be using autocolours not bitmaps.
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  14. #14
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by cycrosism View Post
    if you search for a road in minimap you should be using autocolours not bitmaps.
    I use DTM's as failsafes...
    There used to be something meaningful here.

  15. #15
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    I've used both DTMs and Bitmaps a lot, and I've had in my experience, DTMs are more reliable. Just saying. Oh and DTMs are a good failsafe for walking (in certain situations).

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
  •