Results 1 to 3 of 3

Thread: Bank Tabbing

  1. #1
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default Bank Tabbing

    Tested all three of these, they all work well.

    SCAR Code:
    {*******************************************************************************
    Function CurrentBankTab: Integer;
    by: Narcle
    Description: Returns Current Bank Tab selected
    *******************************************************************************}

    Function CurrentBankTab: Integer;
    var
      i: integer;
    begin
      if not BankScreen then
       Exit;
      for i := 0 to 8 do
       if GetColor(40 + 48 * i, 83) = 2896954 then
       begin
         Result := i + 1;
         Exit;
       end;
    end;


    {*******************************************************************************
    Function ExistsBankTab(T: Integer): Boolean;
    by: Narcle
    Description: Returns true if Bank Tab Exists
    *******************************************************************************}

    Function ExistsBankTab(T: Integer): Boolean;
    var
      x, y: integer;
    begin
      if not BankScreen then
       Exit;
      if T = 1 then
       Result := true;
       
      if FindColor(x, y, 65536, 27+(T-1)*48, 51, 75+(T-1)*48, 81) then
       Result := true;
    end;


    {*******************************************************************************
    Function BankTab(T: Integer): Boolean;
    by: Narcle
    Description: If Bank Tab is there will swith to it
    *******************************************************************************}

    Function BankTab(T: Integer): Boolean;

    begin
      if not BankScreen then
       Exit;

      if T = CurrentBankTab then
      Begin
        Result := true;
        Exit;
      end;
     
      if not ExistsBankTab(T) then
        srl_Warn('BankTab', 'Bank Tab '+inttostr(T) +' does not Exist.', warn_AllVersions)
      else
       Mouse(48 * T, 57, 10, 10, true);
     
      Result := T = CurrentBankTab;
    end;
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

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

    Default

    Nice i made some as well


    SCAR Code:
    {-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    Function IsBankTabOpen(WichTab:String) : Boolean
    By: Nicbaz
    Description: Returns True if your tab is open
    Status: Good
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-}

    function IssBankTabOpen(WhichTab: Integer) : Boolean;

    begin
      Result := (GetColor(62 + (WhichTab - 1) * 49, 56) = 2896954 );
    end;

    {-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    function BankTab(NumberOfTab: Integer): Boolean;
    By: Nicbaz
    Description: Changes to the tab you select
    Status: Good
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-}

    function BankkTab(NumberOfTab: Integer): Boolean;
    begin
      if (NumberOfTab <1) or (NumberOfTab > 9) then
      begin
        srl_Warn('BankTab',inttostr(NumberOfTab)+' BankTab does not exist',warn_AllVersions);
        Result := False;
        Exit;
      end;
      if (IsBankTabOpen(NumberOfTab)) then
        Exit;
      MouseBox(34 + (NumberOfTab - 1) * 50, 54, 34 + (NumberOfTab - 1) * 50, 75, 1);
    end;

    yours look nicer tho...

  3. #3
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Added.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hello bank help plz
    By Hobo in forum OSR Help
    Replies: 12
    Last Post: 01-01-2008, 10:29 AM
  2. bank pin
    By whatsthat in forum News and General
    Replies: 6
    Last Post: 12-16-2007, 10:19 PM
  3. Bank Pin
    By awesom in forum OSR Help
    Replies: 13
    Last Post: 11-28-2007, 04:11 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
  •