Results 1 to 11 of 11

Thread: Different uses of DTMs and Bitmaps?

  1. #1
    Join Date
    Feb 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Different uses of DTMs and Bitmaps?

    sorry for so many questions, but what can i say, im a curious guy. so, i was wondering what the difference between a dtm and a bitmap is.
    1) Is a DTM with 255 tolerance the same as a masked Bitmap?
    2) A DTM cannot be used on the minimap or mainscreen, and a bitmap cannot be used on mainscreen but can be used on minimap... about that... what if the compass isnt exactly as what it was when you took the Bitmap?

    now to a more specific question for my script:
    To find the arrows in the inventory, a. which is better to use, DTM or Bitmap, and b. if I use DTM, then how much tolerance would i need if i'm planning on making a DTM for every arrow type? if i make it 0 tolerance will i get the same results?

    thanks a lot, especially if you answer all 3 questions in 1 post oh, also a minor question, but when i tried to make a stringtopicture i put in the whole 'blahblah' + 'moreblah' etc. and it just stayed black. what did i do wrong?

    "Impressive" - Star

  2. #2
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I believe its better to use a dtm.

    This is a really good weild arrow function if you're needing one.

    SCAR Code:
    Function WeildArrow(Arrow:String):Boolean;
    var arrowcolor,xaa,yaa:integer;
    var bronze:integer;
    begin
    Bronze := 1847874;
    ArrowColor := 1847874;


      if(findcolorspiraltolerance(xaa,yaa,ArrowColor,MIX1,MIY1,MIX2,MIY2,5))then
       begin
       mmouse(xaa,yaa,0,0)
       mouse(xaa,yaa,0,0,True);
       Result := True;
      end
      else
      Result := False;
     end;

    With the constant ArrowType defined i.e.

    SCAR Code:
    const ArrowType             = 'Bronze';

    and when using the function used like this

    SCAR Code:
    WeildArrow(ArrowType)

    Hope that helped a lil, unfortunately not involving bitmaps or dtm's :P

  3. #3
    Join Date
    Feb 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    uhh thanks for the post at least and the effort. but no, not what i'm looking for. any1 else PLEASE. read my questions and try to answer em ^^

    "Impressive" - Star

  4. #4
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by gsquare567 View Post
    1) Is a DTM with 255 tolerance the same as a masked Bitmap?
    2) A DTM cannot be used on the minimap or mainscreen, and a bitmap cannot be used on mainscreen but can be used on minimap... about that... what if the compass isnt exactly as what it was when you took the Bitmap?
    1) no they arent the same. DTM takes points and compares. Bitmap mask just looks for the same outline as it has. they can be used for the same purpose but they are not the same.
    2) DTM can be used anywhere you want. Bitmap can be used anywhere. as for
    what if the compass isnt exactly as what it was when you took the Bitmap?
    i dont know i usually use DTM's
    3) i would use a DTM. you would have to make diff DTMs for different arrows(diff parent point color). and use about 5-10 tol i think is good.

  5. #5
    Join Date
    Feb 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    alright, so i'll make 5-10 tol and see how that goes, but im pretty sure the dtm tuts say u can't use dtm on a mainscreen cuz there are so many diff angles.

    "Impressive" - Star

  6. #6
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what tut says that? i dont use it on mainscreen anyway but if it was in a bank or shop you can use it.

  7. #7
    Join Date
    Feb 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yahojo's (i think thats how u spell it)
    How to make a DTM to locate an item

    • In this first have of the tutorial i will show you how to use DTMs to locate items on the runescape bank screen or inventory. DTMs can not be used to find items on the mainscreen because there are many camera angles ect...

    "Impressive" - Star

  8. #8
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well what are you trying to look for?

  9. #9
    Join Date
    Feb 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    arrows. i already have an arrowfinder with colors but i was just wondering if theres a dtm or bitmap way. no biggie.

    "Impressive" - Star

  10. #10
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Concerning your last question about the tolerance: if you want to make a dtm that is able to detect all types of arrows, just select points for the dtm that are along the black (65536) outline of the arrow
    Interested in C# and Electrical Engineering? This might interest you.

  11. #11
    Join Date
    Feb 2007
    Posts
    149
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Smartzkid View Post
    Concerning your last question about the tolerance: if you want to make a dtm that is able to detect all types of arrows, just select points for the dtm that are along the black (65536) outline of the arrow
    yeah, i know. thats exactly what i dont want though. im trying to figure out how to make it identify separate arrows. maybe i need to choose one color of the dtm as the arrowhead. then set the tolerance low like 5 so i can make 1 for every arrow type and equip only 1 type.

    "Impressive" - Star

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding BitMaps/DTMs
    By stupedspam in forum OSR Help
    Replies: 4
    Last Post: 05-19-2007, 01:32 AM
  2. Which to use DTMs or Bitmaps?
    By gwz in forum OSR Help
    Replies: 3
    Last Post: 11-26-2006, 06:15 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
  •