Results 1 to 4 of 4

Thread: Working with DTM's

  1. #1
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default Working with DTM's

    My DTM string for the willows is this:

    SCAR Code:
    procedure LoadDTM;
    begin
       Willow := DTMFromString('78DA6314626060E06540010E56A20CFF81342' +
             '310FF07024616204300554D7AAC19986684F219398184180135A2' +
             '404218558DAF8B24AA1A5920C18FE91E1435E2408209558DAD991' +
             '0AA1A4120C182AAC6D516CD1C3620C18DDFCD00DCA30BC3');
    end;

    Then my banking procedure is this:

    SCAR Code:
    function Banking: Boolean;

    begin
      if (InvFull) then
      begin
        MakeCompass('N')
        Wait (300 + random(160));
             OpenBankQuiet('db');

          if (FindDTM(Willow, x, y,  547, 206, 734, 464)) then
        begin
         Mouse(x, y, 4, 3, false);
         ChooseOption('All');
         Result := True;
         if Result = True then
         begin
           LoadsNum := LoadsNum + 1;
           LoadsNum2 := LoadsNum2 + 1;
         end;
        end;
        CloseBank;
        Wait(150 + random (278));
        MakeCompass('S');
      end;
    end;

    So when the DTM "Willow" is found in the inventory, it should bank.

    But it doesnt. It opens the Bank then closes it again instantly, does the waiting, then repeats the cutting procedure?
    Jus' Lurkin'

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

    Default

    You need to put this after the opened bank bit
    SCAR Code:
    if (BankScreen) then

    and at the end

    SCAR Code:
    CloseBank;

  3. #3
    Join Date
    Feb 2007
    Location
    South East England
    Posts
    2,906
    Mentioned
    2 Post(s)
    Quoted
    8 Post(s)

    Default

    Thanks :]
    Jus' Lurkin'

  4. #4
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You might want to use FFlag(0); and little wait();
    Edit: Also I made your standards correct.

    SCAR Code:
    function Banking: Boolean;
    begin
      if (InvFull) then
      begin
        MakeCompass('N')
        Wait (300 + random(160));
        OpenBankQuiet('db');
        FFlag(0);
        Wait(500);
        if (FindDTM(Willow, x, y,  547, 206, 734, 464)) then
        begin
          Mouse(x, y, 4, 3, false);
          ChooseOption('All');
          Result := True;
          if Result = True then
          begin
            LoadsNum := LoadsNum + 1;
            LoadsNum2 := LoadsNum2 + 1;
          end;
        end;
        CloseBank;
        Wait(150 + random (278));
        MakeCompass('S');
      end;
    end;
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. what are DTM's?
    By 5o c3nt rulz in forum OSR Help
    Replies: 7
    Last Post: 10-03-2008, 02:55 PM
  2. Hermpie is now Making 100% working DTM's for You!
    By ShowerThoughts in forum News and General
    Replies: 16
    Last Post: 04-13-2008, 07:39 PM
  3. DTM's
    By marre in forum OSR Help
    Replies: 2
    Last Post: 09-16-2007, 09:25 PM
  4. DTM's
    By elementalelf in forum OSR Help
    Replies: 8
    Last Post: 09-06-2007, 06:19 PM
  5. Help with DTM's
    By !bezo! in forum OSR Help
    Replies: 10
    Last Post: 08-30-2007, 02:50 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
  •