SRL Archive - SRL Archives

BankTab(0);


NiCbaZ

2008-07-25 03:13:13

//-----------------------------------------------------------------//
//-- Scar Nicbaz Libary --//
//-- ยป BankTabs --//
//-----------------------------------------------------------------//

//Function IsBankTabOpen(WichTab:String) : Boolean // * by Nicbaz
//function BankTab(NumberOfTab: Integer): Boolean; //* by Nicbaz

{-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Function IsBankTabOpen(WichTab:String) : Boolean
By: Nicbaz
Description: Returns True if your tab is open
Status: Good
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-}
function IsBankTabOpen(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 BankTab(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;

ive already posted this but i think it would be usefull for the public in SRL what do you guys think?'

oh and thanks to the people who helped me get it shorter :)

Freddy1990

2008-07-30 09:58:17

/me spots some ugly scripting standards

Twisted

2008-07-30 13:11:05

me doesn't :-P

NiCbaZ

2008-08-03 23:15:57

me doesnt either

Shuttleu

2008-08-06 15:04:29

i think what freddy means is the capital E's on the exits

~shut

ZephyrsFury

2008-08-07 04:27:05

From: Shuttleu
i think what freddy means is the capital E's on the exits

~shut


Nothing wrong with capitalising Exit. After all its not bolded in SCAR.