hi it's because i have a problem/question.
i have modified this banking procedure so the player can logout and then the next player will log if he has not find bank screen. so here it is:
procedure BankOpen;
var
Tries :integer;
begin
MakeCompass('E');
if not (BankScreen) then
repeat
if(FindObj(x,y,'ank',607067,10))then
Mouse(x,y,4,4,false)
else if(FindObj(x,y,'ank',608095,10))then
Mouse(x,y,4,4,false)
Wait(250);
if(ClickOption('uickly', 1))then
begin
Tries := Tries+1;
Flag;
end;
until(BankScreen) or (Tries=10);
if(BankScreen)then
begin
StoreAllToBank2;
end;
if(Tries=10)then
begin
LogOut;
NextPlayer(False);
end;
begin
CloseBank;
MakeCompass('N');
Loads:=Loads+1;
Trips:=Trips+1;
Players[CurrentPlayer].Banked:= Players[CurrentPlayer].Banked+1;
End;
End;
as u can see i did:
if(Tries=10)then
begin
LogOut;
NextPlayer(False);
end;
will it works??????????????????
when it moves the mouse to find the bankboth is it considered as 1 trie? because i was watchin it goes and it was lost then it was searching for bankboth and it was moving the mouse on people and then it stop and it doesnt do nothin and it logged out and it was lagging but none players have re-logged in so i had to stop it![]()


Reply With Quote


Then you have yourself an endless loop.
