@ Dan's The Man,
Scriptterminate doesn't have to be called.
When you stop the script/it gets an error, it will automatically do that procedure;)
I use it in my fightcaver too:)
Iew, no randomness:o
wait(700);
Thats bannable.. Use
wait(700+random(500));
Or something like that;)
Your standards also, not cool:p
I fixed them in this function so you can see what I mean.
They are usefull when you are searching for errors/bugs;)
It makes it view better:)
function TakeLogs: Boolean;
var Z: Integer;
begin
GameTab(4);
ln('Opening Bank..');
if not(OpenMyBank) then
begin
ln('Bank not found.. Relocating to nearest bank symbol');
ReLocate;
GetBankPos;
wait(1000);
OpenMyBank;
end;
MarkTime(Z);
repeat
wait(500);
until(TimeFromMark(Z) > 10000) or (Bankscreen);
ln('Bank took ' + IntToStr(TimeFromMark(Z)) + ' ms');
FixBank;
wait(800);
if(ExistsItem(2)) then
begin
Mouse(620, 231, 3, 3, false);
wait(400);
if(FindBitmap(StoreAll, x, y))then //finds the bitmap
begin
ln('Storing from slot 2');
Mouse(x + random(100), y, 1, 1, True); //left clicks the bitmap
end else Ln('"Store All" not found!');
wait(500);
end else Ln('Nothing to store');
MMouse(91, 78, 1, 1);
wait(500);
if(IsUpText('ogs')) then
begin
ln('Detecting log');
log := GetLog(rs_GetUpText);
Mouse(91, 78, 1, 1, False);
Wait(800);
ln('Withdrawing logs');
if(FindBitmap(WithdrawAll, x, y))then //finds the bitmap
begin
Mouse(x + random(100), y, 1, 1, True); //left clicks the bitmap
end else Ln('"Withdraw All" not found!');
wait(600);
ln('Closing bank');
CloseBank;
result := true;
end else
begin
Ln(rs_getUptext + ' is not a log');
ln('Closing Bank');
CloseBank;
result := false;
end;
CloseBank;
end;
Also, you don't need a begin here, because you only give 1 command:
You use this:
if(FindBitmap(WithdrawAll, x, y))then //finds the bitmap
begin
Mouse(x + random(100), y, 1, 1, True); //left clicks the bitmap
I use this:
if(FindBitmap(WithdrawAll, x, y))then Mouse(x + random(100), y, 1, 1, True); //left clicks the bitmap
See? Thats a lot of smaller.
Also, when it fails to find the log or so, you don't exit the procedure.
Which means it will move on and keep on moving the mouse.
Don't do that!
It will look very unhuman.
Sorry man, It's a no from me.
It is a good attempt, but you need to improve some things.
Good luck;)
PvH