Page 1 of 2 12 LastLast
Results 1 to 25 of 28

Thread: Crowded banks

  1. #1
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Crowded banks

    I'm trying to make my script bank at Catherby, but it's hard. I've tried dtms, ddtms, bitmaps, radial walking, symbol finding, autocoloring and cannot find a way to get inside! Can somebody help me with this dilemma?

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Any bankers?
    ~Hermen

  3. #3
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    yeah like 4 or 5.

  4. #4
    Join Date
    Nov 2008
    Location
    Belgium
    Posts
    254
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make a DTM of the bankers?

  5. #5
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    i already tried dtms.. didn't work

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

    Default

    Use MouseBox as a last resort?
    Jus' Lurkin'

  7. #7
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Should work, What function are you using to find the DTM With?

    Try

    DTMRotated.

  8. #8
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by DeSnob View Post
    i already tried dtms.. didn't work
    Why didn't they work? Are they moving(bankers)?
    Did you add the "Area size?" and how do you call your DTM(DTMRotated/FindDTM)?
    ~Eerik~
    EDIT: N1ke was faster than I. :/

  9. #9
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    DTMs ALWAYS work for this kind of stuff. Use the static colour of the NPC dots (195*something*), areasize 2 or 3, and remember to use DTMRotated and 300 tol @ mainpoint.
    edit: N1ke/Erik gf.
    I made a new script, check it out!.

  10. #10
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Markus View Post
    DTMs ALWAYS work for this kind of stuff. Use the static colour of the NPC dots (195*something*), areasize 2 or 3, and remember to use DTMRotated and 300 tol @ mainpoint.
    edit: N1ke/Erik gf.
    It's "Eerik" not Erik.

    ~Eerik~

  11. #11
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by DeSnob View Post
    yeah like 4 or 5.
    Why still posting?
    Start scripting! +1
    ~Hermen

  12. #12
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    like so?



    I put an area size of 3, tolerance of 300 on main point and used the 19.... color for the npc's just like Marcus said.

  13. #13
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It took some time .
    Does it works all of the time?
    ~Hermen

  14. #14
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Area size 3 for all of em,
    ~Eerik~
    edit: "Markus"*, not marcus.

  15. #15
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Big note: You could pick all the point of the middle of 2 possible standing locations? If you get what I'm saying
    ~Hermen

  16. #16
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    It took some time .
    Does it works all of the time?
    Nah. Took me a minute. It took me a while to see the posts. lol

    EDIT: Hermen- Yeah, i get it. So that it doesn't go to the same spot all of the time . After i see that the dtm works, i'll do that. Thanks for pointing it out. Rep + oh and to Markus too.

    @ Eerik: Yup, did that. =)

    Note: All i need is to test it. Will post back in a few.

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

    Default

    Are you trying to click the bank on the map? If so, whats wrong with
    SCAR Code:
    FindSymbol(x,y, 'bank');
    ?

    And in case of a full bank:

    SCAR Code:
    SymbolAccuracy := {symbol accuracy from 0 to 1};

  18. #18
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Nope and Nope.
    Dtm didn't work. Here's the proc:

    SCAR Code:
    program New;
    {.include srl/srl.scar}
    var
    BankDTM, x, y: integer;
    DTMAngle : Extended;
    begin
    SetUpSrl;
    ActivateClient;
      BankDTM := DTMFromString('78DA858A490A00210C04BBF53BFEFF511E066' +
           '65C60201043F4E2297DA92E28B604087C7903AA8A4280FB2BAB35' +
           '13D7449293C7F998BF41F3998FA099E63D68FEB8592A2E1C90');
      if (DTMRotated(BankDTM, x, y, MMx1, MMy1, MMx2, MMy1)) then Writeln(';)');
      if not (DTMRotated(BankDTM, x, y, MMx1, MMy1, MMx2, MMy1)) then Writeln(';(');
    end.

    Didn't work.

    Symbol clicking didn't work either. Here's the proc:
    SCAR Code:
    program New;
    {.include srl/srl.scar}
    var
    x, y: integer;
    begin
    SetUpSrl;
    ActivateClient;
    SymbolAccuracy := 1;
    if FindSymbol(x, y, 'bank') then MMouse(x, y, 5, 5);
    if not FindSymbol(x, y, 'bank') then Writeln('noooo');
    end.
    can someone help?

  19. #19
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Don't use symbolaccuracy 1.0, try 0.7-0.8.
    I will create a DTM for you, wait..
    ~Eerik~

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

    Default

    Of course 1 symbol accuracy isn't going to work! It means the image has to be perfect, try 0.5 or 0.4, might find it.

  21. #21
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Symbol method doesn't work. And i can't seem to make a working dtm.
    Last edited by DeSnob; 05-10-2009 at 03:37 AM.

  22. #22
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Okay, that should work.
    SCAR Code:
    program New;
    {.include srl/srl.scar}

    function OpenBankI: Boolean;
    var
      x, y: integer;
    begin
      SymbolAccuracy := 1.0;
      repeat
        SymbolAccuracy := SymbolAccuracy - 0.1;
      until (FindSymbol(x, y, 'bank') or (SymbolAccuracy = 0.1));
      begin
        Result := True;
        MMouse(x, y, 5, 5);
      end;
    end;

    function OpenBankJ: Boolean;
    var
      x, y, bank: Integer;
    begin
      Bank := DTMFromString('78DA6364676660C86740016FDEBC61D061646' +
        '0002286FF40C0F8978981211D22C70255F3E70F1398CD08E53332' +
        '02CD4922A08615A8268D801A2E22D4F001D5A4E257030076D614A' +
        '0');
      if DTMRotated(Bank, x, y, mmx1, mmy1, mmx2, mmy2) then
      begin
        Result := True;
        MMouse(x, y, 5, 5);
      end;
    end;

    begin
      SetupSRL;
      ActivateClient;
      if OpenBankJ then
      begin
        Writeln('Found bank with DTM.');
      end
      else
      begin
        if OpenBankI then
        begin
          Writeln('Found bank with symbol.');
        end
        else
        begin
          Writeln('We didn''t find bank.');
        end;
      end;
    end.
    ~Eerik~

  23. #23
    Join Date
    Mar 2008
    Location
    Look behind you.
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Oh em gee! Finally!! Thank you...Sooooo Much! You deserve a cookie! Rep+

  24. #24
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by DeSnob View Post
    Oh em gee! Finally!! Thank you...Sooooo Much! You deserve a cookie! Rep+
    You should have fixed it yourself

    Everyone has to ask something sometime ; )
    ~Hermen

  25. #25
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Hermen View Post
    You should have fixed it yourself

    Everyone has to ask something sometime ; )
    He probably couldn't, that's why he asked help,
    But yeah, next time first try yourself,
    And thanks. ^^
    ~Eerik~

Page 1 of 2 12 LastLast

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
  •