SRL Archive - News and General

BankScreen; Broken?


Tniffoc

2009-10-28 19:35:10

I am having troubles with BankScreen;. It returns false even if the bank screen is open. Debugging/Fixing the issue now. Is this happening for you? Help and screenshots are appreciated.

TRiLeZ

2009-10-28 19:37:55

It works. Make sure the RS client's size is fixed and 800x600.

rogeruk

2009-10-28 19:38:48

Should have been posted in http://www.villavu.com/forum/forumdisplay.php?f=203

NCDS

2009-10-29 00:26:05

I had problems with Bank screen a while back as well.

Something as simple as:

function bScreen: Boolean;
var Arr: array of TPoint;
begin
if not LoggedIn then Exit;
FindColorsTolerance(Arr, 4106994, 194, 25, 322, 44, 20);
Result := Length(Arr) > 375;
end;
will fix it though.
All that does is count the color of the title on the Bankscreen. Has always worked perfectly for me.

Tniffoc

2009-10-29 00:32:10

I found that I had a weird if statement in there. I redowmloaded from the repository and that fixed the problem.