Results 1 to 10 of 10

Thread: SRL banking problems?

  1. #1
    Join Date
    Feb 2012
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    84 Post(s)

    Default SRL banking problems?

    Hey guys, I am having some problems while using SRL banking - sometimes it takes the function even 10 or more times to detect the uptext and click the chest/NPC. I've been experiencing the exact same issue using several banking locations (SW, CW, GROTTO, SHANTAY).. and also BLUE_NPC.

    This is how it looks like
    https://vid.me/V0X5

    This is my simba banking code:

    Simba Code:
    function banking: boolean;
    var
    t: TTimeMarker;
    time, shift, slot: integer;
    b, area: TBox;
    begin
    b := mainScreen.getBounds();
    shift := getPixelShiftAverage(b, 100, 2000);
    t.start;
    time := gaussRangeInt(80000, 120000);
      repeat
        if (t.getTime > time) or (not isLoggedIn) then
          exit;
        getRightAngle;
        findNormalrandoms;
        disableSRLDebug := False;
        if bankScreen.Open(players[currentPlayer].integers[2]) then
        begin
         disableSRLDebug := true;
         break;
        end;
        chooseOption.close;
        case random(10) of
          0..8: slot := 2;
          9..10: slot := 7;
        end;
        // Check if any backpack item is clicked - which might stop us from banking
        if ((tabBackpack.countDTM(clickedHerb)) > 0) or ((tabBackpack.countDTM(clickedPot)) > 0) then
        begin
          writeln('--- Found clicked item, clicking cancel ---');
          tabBackpack.mouseSlot(slot, MOUSE_MOVE);
          fastclick(MOUSE_RIGHT);
          chooseOption.select(['Cancel']);
        end;
        mainScreen.setAngle(MS_ANGLE_HIGH);
        if (t.getTime > time) or (not isLoggedIn) then
          exit;
        wait(gaussRangeInt(100, 300));
      until bankscreen.isOpen or (t.getTime > time);
    result := true;
    end;

  2. #2
    Join Date
    Jun 2014
    Location
    Lithuania
    Posts
    475
    Mentioned
    27 Post(s)
    Quoted
    200 Post(s)

    Default

    why dont you mouse left?

  3. #3
    Join Date
    Feb 2012
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    84 Post(s)

    Default

    Quote Originally Posted by cosmasjdz View Post
    why dont you mouse left?
    mouse left..where? I'm using bankScreen.Open which should find the chest/banker, point on it and if there's the right uptext, click and return true if the bankscreen is open, no?

  4. #4
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    I think your computer is slow. I just ran it and it opened it perfectly fine.

  5. #5
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    I think your computer is slow. I just ran it and it opened it perfectly fine.
    ^^
    either the video is skipping frames and appearing slow, or your computer is. and it looks like the computer.

  6. #6
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    I agree with Sin and Turp. Comparing the video to the debug, it seems like the main problem is the script not detecting the chooseOption menu opening after performing a right-click.

    Thus, the chooseOption menu stays open, no mouse-over text is detected, and the function loops again.

    I'd advise you to create a custom function, or delve into the core routines and place a wait() so that the function will pause for a bit in between right-clicking and checking for the chooseOption menu.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  7. #7
    Join Date
    Dec 2010
    Posts
    483
    Mentioned
    30 Post(s)
    Quoted
    328 Post(s)

    Default

    Alternatively simply try playing on a world with a lower latency. If it is indeed your computer being piss poor, then close unneeded processes in the background.

  8. #8
    Join Date
    Feb 2012
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    84 Post(s)

    Default

    Thanks for your responses guys. You're all right - I'm running a few accounts each within one VM. The rest of my script is made to handle the weak cpu performance, this is the only function that doesn't work flawlessly (at least within my script.....I cant even think about running SPS walking script within a VM for a longer time).

    Anybody has experience with VMs? Maybe some of my settings reduce the cpu power of each VM.

  9. #9
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Nufineek View Post
    Thanks for your responses guys. You're all right - I'm running a few accounts each within one VM. The rest of my script is made to handle the weak cpu performance, this is the only function that doesn't work flawlessly (at least within my script.....I cant even think about running SPS walking script within a VM for a longer time).

    Anybody has experience with VMs? Maybe some of my settings reduce the cpu power of each VM.
    How-To Geek has a guide that I've had some experience following (some, but not all steps seem to provide a performance boost)

    http://www.howtogeek.com/124796/the-...tual-machines/

    For your situation, I think you're going to want to be looking at the "Allocate more CPUs" section. Other sections will help to a lesser degree or maybe not at all, depending on how your host machine is set up.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  10. #10
    Join Date
    Feb 2012
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    84 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    How-To Geek has a guide that I've had some experience following (some, but not all steps seem to provide a performance boost)

    http://www.howtogeek.com/124796/the-...tual-machines/

    For your situation, I think you're going to want to be looking at the "Allocate more CPUs" section. Other sections will help to a lesser degree or maybe not at all, depending on how your host machine is set up.
    Yeah I have allocated all cores/threads to each of the VMs. I did not try different brand though (using VMware atm), but I guess that'll be very similar. Thanks for ur answer tho!

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
  •