Results 1 to 6 of 6

Thread: What did I do wrong :(?

  1. #1
    Join Date
    Jan 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default What did I do wrong :(?

    Currently I have this code:

    Code:
    program New;
    var AxeDTM,x,y:integer;
    begin
     AxeDTM := DTMFromString('mWAAAA345icY2FgYOBggAABH8ZHYk4GBOAF4rrKSoaXbYpgbG3NwZDCgaoY0TAIAAD+PgVg');
    
    if FindDTM(AxeDTM,x, y,1, 1, 800, 800) then
    writeln('Congratz! You have just found your first DTM!');
    FreeDTM(AxeDTM);
     end.
    The DTM should work because I checked in the editor. The problem is that I have the axe in my inventory but I still don't see the 'Congratz!' in my debug box .

    I thought the FindDTM should return true because the axe is in the box from 1,1 until 800,800 . But it doesnt do that why is that?

    Regards!



    SOLVED: I had to put tolerance to 15 on all points not just one point, stupid me.
    Last edited by mastah; 01-30-2012 at 04:21 PM. Reason: Solved

  2. #2
    Join Date
    Feb 2011
    Location
    Wisconsin
    Posts
    398
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    instead of 1, 1, 800, 800 use MIX1, MIY1, MIX2, MIY2. this will search only your inventory

  3. #3
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    Every since the bot nuke, jagex has had a bug they haven't been able to fix (as of yet). I makes items in the inventory sometimes appear distorted or incomplete. This may be your problem. Try using a bitmap of a small, distinct area in the axe? Maybe where the handle meets the axe head. Then go into paint and black out everything that is not part of the axe, like the inventory background. This is because for bitmaps, black is the ignore color.

    Give that a try


    Moved to proper section.
    Last edited by Hobbit; 01-30-2012 at 03:53 PM.
    STOP PM'ING ME

  4. #4
    Join Date
    Jan 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    yes sorry, I sometimes post it accidently in the wrong section

  5. #5
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    Quote Originally Posted by mastah View Post
    yes sorry, I sometimes post it accidently in the wrong section
    That's okay, there are a lot of sections to get to know
    STOP PM'ING ME

  6. #6
    Join Date
    Dec 2011
    Location
    Texas
    Posts
    348
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Try what rygy said it should work.

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
  •