Results 1 to 5 of 5

Thread: banking failsafe help

  1. #1
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default banking failsafe help

    Hey, I'm wondering if I can use this little bit I wrote up (not necessarily my idea's, seeing as most comes from the includes #creds2srlTeam). I use it in a script, but I'm curious if it's a potential for causing problems (i.e. bad form/misuse of statements, etc.)

    Ideally it's suppose to see if you are not viewing your bankscreen, then if so, will search for the bank on the mini map to relocate to the aforementioned bank.

    Simba Code:
    procedure DaBank;
    var
      z: Integer;
    begin
      BankChest;
      if (BankScreen) then
        begin
    // Bank stuffs
          Exit;
        end else

      if not (BankScreen) then
      FindNormalRandoms();
        begin
        if FindBank('SRL_BANK_CW') then
          BankChest;
          if not (BankScreen) then
            repeat
              FindBank('SRL_BANK_CW');
              incEx(z, 1);
            until(BankScreen);
          if z=5 then
            begin
              Writeln('Error, out of range.');
              Logout;
              TerminateScript;
            end;
          end;
    end;

  2. #2
    Join Date
    Mar 2012
    Location
    Over there
    Posts
    840
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    You could put FindBank and a Wait in a repeat with an until didredclick, but I don't like using until didredclick because it only works half the time for me for some reason(probably color changes). Heres another idea using a for to do loop.

    Simba Code:
    procedure DaBank;
    var
      i : Integer;
    begin
      for i := 0 to 2 do
      begin
        if FindBank('SRL_BANK_CW') then
        if BankScreen then
        begin
          BankChest;
          Break;
        end else
        Writeln('Bank not opened, trying again');
      end;
      if i = 2 then
      Writeln('Couldnt open bank');
      Logout;
      TerminateScript;
    end;

    I'm not too familiar with the FindBank procedure but if you need to, add waits wherever needed.

  3. #3
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Doesn't look like the code will look for the bank symbol on minimap for that you need something like.

    Simba Code:
    If FindSymbol(x, y, 'bank') then
     Begin
      ClickMouse2(True);
     End;

    TotalKillz that if BankScreen then should be after BankChest; that way it'll open Bank with BankChest then look for BankScreen and do the banking required
    Last edited by Gucci; 04-15-2012 at 05:23 AM.
    Current Project: Retired

  4. #4
    Join Date
    Mar 2012
    Location
    Over there
    Posts
    840
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Oh lol. I thought it was a failsafe for not opening the bank screen xD. Yeah I think FindBank is to open the bank, will have to use FindSymbol or something else to get to the bank.

  5. #5
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    ah okay, I've only tested the find bank whilst the bank is still on screen, and it worked. I'll try the find symbol suggestion from you two, thanks.

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
  •