Results 1 to 13 of 13

Thread: DTMs

  1. #1
    Join Date
    Nov 2008
    Location
    Arizona
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default DTMs

    ok so im starting to get the hang of DTMs and how they work, the question i have is, in alot of tutorials people use logs as an example for DTMs and dropping them, what i want to know is how to repeat the dropping procedure?

    it finds the DTM drops it but what if i have full inv. how do i set to drop all instead of just one?
    I'm Back.

  2. #2
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Use a repeat find dtm loop until it doesn't find the DTM.

  3. #3
    Join Date
    Nov 2008
    Location
    Arizona
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah i tried that i think.

    heres what i got so far i just dont know where to throw repeat in.

    Code:
    var
     Log: integer;
     x, y: integer;
    
    procedure LoadDTMs;
    begin
     Log := DTMFromString('78DA634C656660B8C6C8800C527DF518B8803' +
           '448F43F1030C603D59C455503918591403A13A8E6340135F94498' +
           '530254739308BBEE1350130554738F809A48A09A2BF8D500001B8' +
           '70EEF');
     end;
     
    procedure DropLog;
    begin
      if FindDTM(Log, x, y, MIX1, MIY1, MIX2, MIY2)then
      begin
        Mouse(x, y, 5, 5, false);
        ChooseOption('rop');
      end;
    end;
    I'm Back.

  4. #4
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm, you can use my function.
    http://villavu.com/forum/showthread.php?t=45597

  5. #5
    Join Date
    Nov 2008
    Location
    Arizona
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol well from that i dont really learn. thanks though.
    I'm Back.

  6. #6
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You can learn by looking at functions....

  7. #7
    Join Date
    Nov 2008
    Location
    Arizona
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah your right but when i use functions how to i set that up in main loop? just like a procedure?
    I'm Back.

  8. #8
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well functions are useful because they return a value. LoggedIn is a function.
    i.e
    SCAR Code:
    if not LoggedIn then
      exit;

    etc.

    That function I have should never fail so you can just do DropAllDTM(THEDTMVAR); and put it in the main loop.

  9. #9
    Join Date
    Nov 2008
    Location
    Arizona
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ahh ok i see now. when i added to main loop i had just put DropAllDTM; instead of DropAllDTM(log); works perfect now thanks for the help =]

    btw would u mind if i added ur msn for future help?
    I'm Back.

  10. #10
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nope, not at all.
    kylewollaston@hotmail.com

  11. #11
    Join Date
    Nov 2008
    Location
    Arizona
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    k i just added and thanks again.
    I'm Back.

  12. #12
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    You could make a simple while .. do loop, very simple to make:

    SCAR Code:
    procedure Dropper;
    begin
      while FindDTM(DTM, x, y, MIX1, MIY1, MIX2, MIY2) do
      begin
        Mouse(x, y, 5, 5, False);
        ChooseOption('rop');
      end;
    end;

  13. #13
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    With a wait in it of course .

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
  •