Results 1 to 22 of 22

Thread: WalkBank, Walks to every F2p bank in rs! by Hermpie

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

    Default WalkBank, Walks to every F2p bank in rs! by Hermpie

    Will make an detailled thingy tommorow...

    Note <BankName> + 1 means left part of the bank 2 means right...
    Note Public TEST section
    SCAR Code:
    Program Hermpie;
    {.Include SRL/SRL.Scar}
    Var
      X, Y:Integer;
     
    Function WalkBank(WhichBank:String; RanXnY:Integer; SymbolFailSafe:boolean):Boolean;
    Var
      DTM, BankX, BankY :Integer;
    Begin
      Case LowerCase(WhichBank) Of
      'feb1':  DTM := DTMFromString('78DA63E461646058C98002D62EEA61F80FA48' +
                    '1320CFF81809103C8DA00916384AAF90F542082C4670499B39180' +
                    '1A01206B1301352244A89100B23613502343580D00F34718AA');
      'feb2': DTM := DTMFromString('78DA639462646058C78002D62EEA61F80FA48' +
                   '1320CFF81809103C8DA00916384AAF90F542082C467E401B23612' +
                   '502300646D22A0468408351240D666026A6408AB010005E318BD');
      'fwb' : DTM := DTMFromString('78DA639465646058CA8002FEFFFFCFF01F483' +
                   '342D8FF194581AC35103946A89AEFDF19184490F88C5244A89123' +
                  '428D12116AD409AB0100888F16CE');
      'akb' :  DTM := DTMFromString('78DA63E463646058CC8002DEBF7FCFF01F480' +
                    '36518FE0301231B90350722C70855F3FD3B038308129F9115C85A' +
                    '88AA06680CAA1A16206B29AA9AFFFFD1D43003592BF1AB010029A' +
                    '91342');
      'veb' : DTM := DTMFromString('78DA639460646058C78002AA4B8B19FE0369A' +
                   '00CC37F2060E405B23640E418A16ABE7F67601041E2330A02591B' +
                   '09A81125420DC83D9B50D5FCFF8FA64616C8DA4CC01C054C35E8E' +
                   '6000083EA181E');
      'vwb1': DTM := DTMFromString('78DA6364656460D8C88002A23C0D19FE0369A' +
                   '00CC37F2060FCCB0057C30855F3FE3D038308121FAC6615AA9AFF' +
                   'FFD1D4800C5D44C01C909A5944A89984DF2E009D8518B2');
      'vwb2': DTM := DTMFromString('78DA6394676460D8CE8002FEFFFFCFF01F483' +
                   '342D8FF19D5116A18E16A18184490F860351B08A8D100B25610A1' +
                   '660101359A40D64CFC6A00D106174F');
      'evb' : DTM := DTMFromString('78DA632C616260086000032608C530B9BD93E' +
                   '13F906604E2FF40C0580594F14555F3E70F138324540D0830D601' +
                   '653C09A80199134A849A38FC6A00CF351302');
      'lbb' : DTM := DTMFromString('78DA639462646058C100068C108AE1FFFFFF0' +
                   'C92503E90FD9F11A46601448E15AAE6FB7706B81AB05E7E20AB0E' +
                   'D59C20053435EC40D66DFC6A00056A0D2F');
       Else
         Begin
           srl_Warn('WalkBank(' + WhichBank + ', ' + IntToStr(RanXnY) + ', ' + BoolToStr(SymbolFailSafe) + ');', 'Bank' + WhichBank + ' Does Not Exist!', warn_AllVersions);
           Exit;
         End;
       End;
       Result:= DTMRotated(DTM, BankX, BankY, MMX1, MMY1, MMX2, MMY2);
       If Result Then MouseFlag(BankX, BankY, RanXnY + 1, RanXnY + 1);
       If Not Result And SymbolFailSafe Then
       Begin
         Result:=FindSymbol(BankX, BankY, 'Bank');
         If Result Then MouseFlag(BankX, BankY,RanXnY + 1, RanXnY + 1);
       End else
       Writeln('Failed to find the bank, you might want to set SymbolFailSafe to true.');
    End;
     
    Begin
      SetUpSRL;
      WalkBank('lbb',2,True);
    End.
    If a dtm or something is not working tell me!

    Thanks to Laurens for taking pics for me!

    Hermpie
    ~Hermen

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Walks INTO the bank? I though it was a Deathwalk like thing :|

    Good work anyways


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

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

    Default

    LOL, not possible i need to know where the player is located at...
    ~Hermen

  4. #4
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Function Detect_Location: String;
    Use's Fer My Private Walker

    SCAR Code:
    Program Hermpie;
    {.Include SRL/SRL.Scar}
    Var
      X, Y:Integer;

    Function WalkBank(WhichBank:String; RanXnY:Integer; SymbolFailSafe:boolean):Boolean;
    Var
      DTM, BankX, BankY :Integer;
    Begin
      Case LowerCase(WhichBank) Of
      'feb1':  DTM := DTMFromString('78DA63E461646058C98002D62EEA61F80FA48' +
                    '1320CFF81809103C8DA00916384AAF90F542082C4670499B39180' +
                    '1A01206B1301352244A89100B23613502343580D00F34718AA');
      'feb2': DTM := DTMFromString('78DA639462646058C78002D62EEA61F80FA48' +
                   '1320CFF81809103C8DA00916384AAF90F542082C467E401B23612' +
                   '502300646D22A0468408351240D666026A6408AB010005E318BD');
      'fwb' : DTM := DTMFromString('78DA639465646058CA8002FEFFFFCFF01F483' +
                   '342D8FF194581AC35103946A89AEFDF19184490F88C5244A89123' +
                  '428D12116AD409AB0100888F16CE');
      'akb' :  DTM := DTMFromString('78DA63E463646058CC8002DEBF7FCFF01F480' +
                    '36518FE0301231B90350722C70855F3FD3B038308129F9115C85A' +
                    '88AA06680CAA1A16206B29AA9AFFFFD1D43003592BF1AB010029A' +
                    '91342');
      'veb' : DTM := DTMFromString('78DA639460646058C78002AA4B8B19FE0369A' +
                   '00CC37F2060E405B23640E418A16ABE7F67601041E2330A02591B' +
                   '09A81125420DC83D9B50D5FCFF8FA64616C8DA4CC01C054C35E8E' +
                   '6000083EA181E');
      'vwb1': DTM := DTMFromString('78DA6364656460D8C88002A23C0D19FE0369A' +
                   '00CC37F2060FCCB0057C30855F3FE3D038308121FAC6615AA9AFF' +
                   'FFD1D4800C5D44C01C909A5944A89984DF2E009D8518B2');
      'vwb2': DTM := DTMFromString('78DA6394676460D8CE8002FEFFFFCFF01F483' +
                   '342D8FF19D5116A18E16A18184490F860351B08A8D100B25610A1' +
                   '660101359A40D64CFC6A00D106174F');
      'evb' : DTM := DTMFromString('78DA632C616260086000032608C530B9BD93E' +
                   '13F906604E2FF40C0580594F14555F3E70F138324540D0830D601' +
                   '653C09A80199134A849A38FC6A00CF351302');
      'lbb' : DTM := DTMFromString('78DA639462646058C100068C108AE1FFFFFF0' +
                   'C92503E90FD9F11A46601448E15AAE6FB7706B81AB05E7E20AB0E' +
                   'D59C20053435EC40D66DFC6A00056A0D2F');
       Else
         Begin
           srl_Warn('WalkBank(' + WhichBank + ', ' + IntToStr(RanXnY) + ', ' + BoolToStr(SymbolFailSafe) + ');', 'Bank' + WhichBank + ' Does Not Exist!', warn_AllVersions);
           Exit;
         End;
       End;
       Result:= DTMRotated(DTM, BankX, BankY, MMX1, MMY1, MMX2, MMY2);
       If Result Then MouseFlag(BankX, BankY, RanXnY + 1, RanXnY + 1);
       If Not Result And SymbolFailSafe Then
       Begin
         Result:=FindSymbol(BankX, BankY, 'Bank');
         If Result Then MouseFlag(BankX, BankY,RanXnY + 1, RanXnY + 1);
       End else
       Writeln('Failed to find the bank, you might want to set SymbolFailSafe to true.');
    End;

    Begin
      SetUpSRL;
      WalkBank('lbb',2,True);
    End.

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

    Default

    Get in the real rs no private server thingy.
    ~Hermen

  6. #6
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can't you just use FindSymbol(x, y, 'bank');?

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

    Default

    Quote Originally Posted by TheVoiceInYourHead View Post
    Can't you just use FindSymbol(x, y, 'bank');?
    I think symbol clicking is detectable this will click close the bank slots a symbol is somewhere in the bank and someways OUT of the bank.
    ~Hermen

  8. #8
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh my god. Why does everyone think everything is detectable? It uses dynamic coords, just as your script does.

  9. #9
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm guessing this will fail if the symbol covers the banker's yellow dot on the MM? If not, then it may I suggest using FindDTMRotated as it's a fairly small area so you can make the step increases smaller and make it more accurate
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

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

    Default

    This never failes for me it could be i made the dtm wrong but normaly it works 100%
    ~Hermen

  11. #11
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    thanks hermpie will help alot

    for draynor banking failsafe/or prob main proc lol

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

    Default

    Quote Originally Posted by P1NKY View Post
    thanks hermpie will help alot

    for draynor banking failsafe/or prob main proc lol
    I only make another dtm or shit if it is not working, so tell me if it is not working
    ~Hermen

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

    Default

    *New Version*

    Tell me which banks to add and which don't work!
    ~Hermen

  14. #14
    Join Date
    Mar 2008
    Location
    The Netherlands
    Posts
    1,395
    Mentioned
    1 Post(s)
    Quoted
    1 Post(s)

    Default

    Thanks for crediting

    Edit: woot 50th post


  15. #15
    Join Date
    Nov 2007
    Location
    The Netherlands
    Posts
    1,490
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    seems nice hermpie
    but.. we could also simply create a banker dtm..
    wouldn't take more than 5 mins..lol
    good work anyway
    will save time

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

    Default

    Quote Originally Posted by pvh View Post
    seems nice hermpie
    but.. we could also simply create a banker dtm..
    wouldn't take more than 5 mins..lol
    good work anyway
    will save time
    made this in 15 mins... with dtms of the bankers some1 try!
    ~Hermen

  17. #17
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by TheVoiceInYourHead View Post
    Oh my god. Why does everyone think everything is detectable? It uses dynamic coords, just as your script does.
    you're right, although it is stupid. considering someone walks over the symbol and your whole script fails, ty.
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  18. #18
    Join Date
    Sep 2006
    Location
    include srl/srl.scar ( aussie)
    Posts
    2,875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by drizzt View Post
    you're right, although it is stupid. considering someone walks over the symbol and your whole script fails, ty.
    you can set symbol ac so it will click Evan if there are players over it

  19. #19
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by nicbaz View Post
    you can set symbol ac so it will click Evan if there are players over it
    yea but sometimes even then, a place like a bank can get pretty crowded, and a banker DTM isn't affected by that and is still the best way to go.
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  20. #20
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by drizzt View Post
    yea but sometimes even then, a place like a bank can get pretty crowded, and a banker DTM isn't affected by that and is still the best way to go.
    if you set the SymbolAccuracy to 0.4 i GUARANTEE that it will find the symbol no matter what.

  21. #21
    Join Date
    May 2007
    Location
    in a pineapple under the sea
    Posts
    1,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by itschris917 View Post
    if you set the SymbolAccuracy to 0.4 i GUARANTEE that it will find the symbol no matter what.
    it could also possibly think some random junk is a symbol
    [SIZE="4"][CENTER][URL="http://www.youtube.com/watch?v=5YsGJz3j4os"]LOL u mad bro?[/URL][/CENTER][/SIZE]

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

    Default

    Quote Originally Posted by itschris917 View Post
    if you set the SymbolAccuracy to 0.4 i GUARANTEE that it will find the symbol no matter what.
    -.- Always clicking the symbol Note: ALWAYS, is detectable IMO.
    Also it will click wrong on the location sometimes IMO.
    ~Hermen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 18
    Last Post: 01-10-2009, 09:19 PM
  2. DeadWalkVE (Walks from Lumby to Varrock East)
    By senrath in forum Research & Development Lounge
    Replies: 11
    Last Post: 03-11-2008, 01:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •