Results 1 to 7 of 7

Thread: how do i

  1. #1
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default how do i

    ok so heres my script so far it goes from the vem to the almost the bank and i was wondering how would i get in the bank

    Code:
    {.include srl/srl.scar}
    
    
    procedure ToThaBank;
    var
      x, y: Integer;
    begin
      If Not LoggedIn Then Exit;
      RadialRoadWalk(8357769, 5, 50, 70, 1, 1);
      FFlag(10);
      RadialRoadWalk(8357769, 337, 385, 65, 1, 1);
      repeat
        If Not LoggedIn then
        begin
          WriteLn('Player logged out while walking to the bank.');
          Players[CurrentPlayer].Loc := 'Logged Out To Bank';
          Exit;
        end;
        RadialRoadWalk(8357513, 240, 380, 65, 1, 1);
      until (FindSymbol(x, y, 'bank'));
    end;
    procedure setup;
    begin
      setupsrl;
    end;
    
    begin
     setup;
     makecompass('n');
     tothabank;
    end.

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    make a dtm of the banker dots, they have a constant color of 19... something, have the script click the dtm +3 ish Y. if you dont get what i mean i can show you again?
    “Ignorance, the root and the stem of every evil.”

  3. #3
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    i understand what your doing i jsut cant get it to find the dots

    should i use bitmap

  4. #4
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    -.-
    Quote Originally Posted by Blumblebee View Post
    make a dtm of the banker dots, they have a constant color of 19... something, have the script click the dtm +3 ish Y. if you dont get what i mean i can show you again?

  5. #5
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by jpizzle View Post
    i understand what your doing i jsut cant get it to find the dots

    should i use bitmap
    use tolerance with the dots (although I dont think you even need tolerance), get about 3 of the dots. Use DTMRotated() for the best results and its the easiest way to understand DTM finding on the MM.

    example (dont use the dtm because its for a different bank (not sure if that matters or not))

    SCAR Code:
    begin
            try
              B := DTMFromString('78DA636C666660B065640001560608D8B0A69' +
                '76119508811CA67AC06AA7187F098A1627FFE3031483220A96901CAB' +
                '81150D3039471C1AF060092960C0C');
              if DTMRotated(B, X, Y, MMX1, MMY1, MMX2, MMY2) then
                Mouse(X-2, Y, 0, 0, True);
              Flag;
            finally
              FreeDTM(B);
            except end;
          end;

    remembering that
    SCAR Code:
    var B: Integer;
    “Ignorance, the root and the stem of every evil.”

  6. #6
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    ty i have one question though what does dtm rotated do?

  7. #7
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    looks for a DTM and if it doesn't find it, it will rotate the DTM it's looking for and look again.. and it will do it 360 degrees I believe..

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
  •