SRL Archive - Discussions and Debates

Change OpenBank;


maxzzz

2006-03-21 05:36:21

It's a suggesion.
I think it's better to change OpenBank into this:


{*******************************************************************************
procedure OpenBank;
by: Stupid3ooo
Description: Opens the bank if possible.
*******************************************************************************}
procedure OpenBank; // By Stupid3ooo
var
c : Integer;
begin
if (FindObj(x,y,'Use Bank', (BankColor), 10)) then
begin
Mouse(x, y, 1, 1, False);
if (ChooseOption(x,y,'quickly')) then
begin
Flag;
repeat
Wait(100);
c := c + 1
until (BankScreen) or (c >= 50);
end;
end;
end;

This is OpenBank at this moment:

{*******************************************************************************
procedure OpenBank;
by: Stupid3ooo
Description: Opens the bank if possible.
*******************************************************************************}
procedure OpenBank; // By Stupid3ooo
var
c : Integer;
begin
if (FindObj(x,y,'Use Bank', 539728, 10)) then
begin
Mouse(x, y, 1, 1, False);
if (ChooseOption(x,y,'quickly')) then
begin
Flag;
repeat
Wait(100);
c := c + 1
until (BankScreen) or (c >= 50);
end;
end;
end;

You only need to put BankColor = 123456789; into your Const. This will work for every bank and will find the bank faster.
You only need to copy it into your own script I see now.

Maybe someone can think a way that it can stay in the include while declaring the BankColor in your own script.

The Un-Named

2006-03-21 06:22:04

I don't see a diffrence. :\

Krazy_Meerkat

2006-03-21 06:34:09

All you did was add in (bankcolor) :/ openbank is designed so that you don't have to pick a colour.

XxKanexX

2006-03-21 06:38:16

Could make it an Integer parametre? But i don't think it needs it. =S

maxzzz

2006-03-21 08:25:21

Well you are right, but for me it was effective, I'm stringing and it always walk to another bankbooth, so I added it to take an uncommon color so it walked not to another bank booth anymore.

Is there a way to create a bank procedure that almost most of the time only banks at the bank booth where your character is standing?!

Sdcit

2006-03-21 10:40:27

well, maybe, though youd have to go through a few hundread(?) pixels or more pixels, not desirable. The original color should work fine