Results 1 to 10 of 10

Thread: FindDTM not working=/

  1. #1
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default FindDTM not working=/

    when i run the script it is not moving to the DTM:/

    HTML Code:
    http://pastebin.com/m71be26a5
    Any Help?

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Like I told you in the other thread, you need to search for it in the inventory, not the mainscreen.

    Change the MSX1,MSY1,MSX2,MSY2 to MIX1,MIY1,MIX2,MIY2

    MS = main screen

    MI = inventory

  3. #3
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    heh:/
    if i want to take it out my bank:/
    why should i take MI then?:S

  4. #4
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    ok, i changed it to MI but it's still doing nothing:/

  5. #5
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Yush Dragon View Post
    heh:/
    if i want to take it out my bank:/
    why should i take MI then?:S
    Oh my bad. You should use MS then.

    You call FindCoal in the main loop. All that does is returns if it finds the coal; it doesn't click it. You need to call the procedure that actually clicks it there (GetCoalOre).

  6. #6
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    do u got a example??
    i don't understand

  7. #7
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Change FindCoal to GetCoalOre in your main loop.

    Code:
    Begin
    SetupSRL;
    LoadDTM;
    Wait(500);
    GetCoalOre;  // <---
    Wait(500);
    FreeDTM(Coal);
    End.


  8. #8
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    Code:
    if(FindDtm(Coal, x, y, MSX1, MSY1, MSX2, MSY2)then
    begin
      Mouse(x, y, 2, 2, True);
    end;

    or change True to False and do ChooseOption for the amount. That help any?

    EDIT: I don't know what your main loop looks like, and I don't know if they are using your procedures or just making names, so I showed you the work for the procedure, just use a mouse or a mmouse after you find the DTM.
    Last edited by Baked0420; 08-13-2009 at 03:20 AM.

  9. #9
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    it works, thank you
    rep+

  10. #10
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Instead of using MSX1, MSY1, maybe you could use the MBX1, MBY1 globals instead. Just in case your Item happens to be on a tab. However, If your searching the bank I would advise using a Bitmap as DTM finding usually mucks up ;(.

    Check out Globals.scar := http://www.villavu.com/repositories/...e/Globals.scar

    Good Luck

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
  •