Results 1 to 11 of 11

Thread: OpenBankQuiet('feb')

  1. #1
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default OpenBankQuiet('feb')

    I've been getting a problem with it that kind of messes up my script. Basicallly, if my character isn't within 1 square of the booth it moves the mouse to the open door by the bank (kind of hard to explain) I think it has something to do with the highest angle view of the booth looks similar to the view of the bank doors. Is there anything i can do to fix this, or another procedure/function for opening the bank that doesn't do this?

    Edit: Tried OpenBankGlass, seems like it works better. If anyone suggest i use something else though, please let me know.

  2. #2
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    I assume that you're using HighestAngle?

    Two suggestions:
    -Try using LowestAngle;
    -Try using MakeCompass('S');

    (both before you use openbanksilent)
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Try: OpenBank3.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  4. #4
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think LowestAngle is broken for me..Cause it either does nothing or it makes it the lowest angle and then straight back to the highest angle..But Openbank3 works so i'll use that, thanks!

  5. #5
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  6. #6
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Your going to regret that name,

    Look at the other banking procedures in bank.scar, Open 3 as suggested works well. Also you could use a bitmap

  7. #7
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by NewToAutoing View Post
    I've been getting a problem with it that kind of messes up my script. Basicallly, if my character isn't within 1 square of the booth it moves the mouse to the open door by the bank (kind of hard to explain) I think it has something to do with the highest angle view of the booth looks similar to the view of the bank doors. Is there anything i can do to fix this, or another procedure/function for opening the bank that doesn't do this?

    Edit: Tried OpenBankGlass, seems like it works better. If anyone suggest i use something else though, please let me know.
    Glass ftw..
    I'm updating it to work even faster..



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  8. #8
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Illusionz View Post
    wizzup, can your miner possibly go any faster...lol
    Well the essence minuer uses OpenBankGlass too.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  9. #9
    Join Date
    Apr 2007
    Location
    California
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If you mean my screenname, then yeah i already regret it I guess it'll be fun to laugh at later though

    I switched to OpenBank3 but OpenBankGlass works good too so now i don't know which to use, lol. As of now my script has OpenBank3 in it though, dunno if i should switch it or not.

  10. #10
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  11. #11
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    I adjusted OpenBankQuiet('feb'). It works better and faster since the "slice" is a portion of the window now. see below.

    We are all experiencing the same kind of trouble. Our conclusion is that is related to UpText, somehow IsTextInAreaEx (the heart of all OCR) isnt properly functioning. At least....sometimes it does, sometimes it doesnt.

    We have a few hypothesis on the UpText-issue...
    • - Its a DIVI thing. But Freddy1990 hasnt touched any of the OCR related functions, so unlikely
    • - Its a wider Horizontal Spread. Unconfirmed, but possible explanation why all objectfinders work 50% atm.
    • - Its a vertical shift. Unconfirmed too.
    • - These changes happen around the time Varrock was updated. Nobody has noticed anything unusual.


    Its puzzling.... We need some answers here



    SCAR Code:
    function OpenBankQuiet(WhichBank: string): Boolean;
    var
      TheCounter, dx, dy, tol, Mark2, Mark3: Integer;
      acc, accthres: Extended;
    begin
      case WhichBank of
       'feb': TheCounter := BitmapFromString(1, 10, '6C583296897A948779948779736' +
           'C63A59E968C7F6F9686749B8A7685663E');
        // fally east
    {    'feb': TheCounter := BitmapFromString(1, 43, '252323554227644D' +
            '2D6E55337B5F3A7B5F3A6E5A336E5A33968979948778928677928' +
            '677756D6383786A8D7F6F9586719C8B7687683F8C6D42896E4D80' +
            '68498068497D65487D65487A63467A6346776145776145755F437' +
            '55F436E5533715735775C38775C387762388F6F43816A3B7E683A' +
            '816A3B9276547E683A846C3D746036');
    }
       // fally west
        'fwb': TheCounter := BitmapFromString(1, 29, '98887381' +
            '633B87683F7D6548836A4A7D65487D65487A63467A63467A63467' +
            '76145776145755F43755F436B52316B52316E5533715735775C38' +
            'A1835C9F815B8C6D428C6D428C6D428C6D427B643A7B643A74603' +
            '68B866F');
        // varrock west
        'vwb': TheCounter := BitmapFromString(30, 1, 'z78DA333530B' +
            '130B1304521413484044218DB05C6868A1A98184144CC0C4D5C8C' +
            '8C9149134B6333034B9C24C24C98692011430C930DA1A48BB1235' +
            '0171209001C2C2544');
        // varrock east
        'veb': TheCounter := BitmapFromString(30, 1, 'z78DA6DC' +
            'E5D0A80300C03E02BCDD92EE9E3DCF0FE4732EC077D90908F5228' +
            '9460E689AEDC0C35D13E068DCEAA6E5DDB34E7E2D6524C1D96B7E' +
            '5B0D0DCCCFF1CF70945095C92CBAE56E6F1C972C4DEE046457B00' +
            'D4FB2728');
        // draynor and this works too for alkharid
        'akb', 'db', 'eb': TheCounter := BitmapFromString(34, 1, 'z78DA658E4B0' +
            'E80300844AF34FCB45DAA70FF2B89B40B12339997F0C980BA5C98' +
            '06837A7AE828CE74551F77FF51CBCD1FC5D901369614282816E59' +
            '683EF94207AF2BA55C9948672BFB2FB7D5A1F6E8A10D0C9274552' +
            '39FD022AE92A73');
      end;

      MarkTime(Mark3);
      tol := 1;
      accthres := 0.6;
      repeat
        if IsUpTextMulti('ank', 'Bo', 'ot') then
        begin
          GetMousePos(dx, dy);
          Mouse(dx, dy, 0, 0, False);
          if ChooseOption(dx, dy, 'uickly') then
          begin
            MarkTime(Mark2);
            repeat
              Wait(10);
              if TimeFromMark(Mark2) > 20000 then
              begin
                WriteLn('couldnt find the bank. Exiting');
                Break;
                FreeBitmap(TheCounter);
                Exit;
              end;
            until BankScreen;
            FreeBitmap(TheCounter);
            Exit;
          end;
        end;

        FindDeformedBitmapToleranceIn(TheCounter, dx, dy, MSX1 + 50, MSY1 + 50, MSX2
          - 50, MSY2 - 50, tol, 4, True, acc);
        if (acc >= accthres) then
        begin
          MMouse(dx, dy, 0, 0);
        if IsUpTextMulti('ank', 'Bo', 'ot') then
          begin
            GetMousePos(dx, dy);
            Mouse(dx, dy, 0, 0, False);
            if ChooseOption(dx, dy, 'uickly') then
            begin
              MarkTime(Mark2);
              repeat
                Wait(10);
                if TimeFromMark(Mark2) > 20000 then
                begin
                  WriteLn('couldnt find the bank. Exiting');
                  FreeBitmap(TheCounter);
                  Exit;
                end;
              until BankScreen;
            end;
            Result := True;
            FreeBitmap(TheCounter);
            Exit;
          end;
        end;
        Wait(100);
        FindNormalRandoms;
        tol := tol + 4;
        if tol >= 20 then
        begin
          tol := 1;
          accthres := accthres - 0.1;
          if accthres < 0.2 then
          begin
            WriteLn('couldnt find the bank. Exiting');
            FreeBitmap(TheCounter);
            Exit;
          end;
        end;
      until TimeFromMark(Mark3) > 60000;
      FreeBitmap(TheCounter);
    end;
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

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
  •