Hi,
I don't see a bankbox in bank.scar anymore so here is my function, it also has an option to fix the bank:
SCAR Code:(*************************************************************
(Author: Cut em2 it
(Purpose: Make a TBox of a bank index
*************************************************************)
function BankBox(BankIndex: integer; FixTheBank: boolean): TBox;
begin
if FixTheBank then FixBank;
if BankIndex div 8 > 5 then Exit;
Result.x1 := 79 * (BankIndex div 5);
Result.y1 := 62 * (BankIndex div 8);
Result.x2 := 118 * (BankIndex div 5);
Result.y2 := 96 * (BankIndex div 8);
end;
Thanks,
Cut em2 it
