The Divided
2012-12-17 10:32:51
Hey, this might be a stupid question, but hey im new! Is there a way to implement a failsafe when banking… i mean incase an item doesnt exist(a DTM?)
it will use TerminateScript.
Ive tried the following:
But when using this it just terminates the script, even if it finds the DTM.
Any suggestions?
it will use TerminateScript.
Ive tried the following:
procedure bank;
var
x, y, grass: Integer;
begin
DTM = LONG LINE OF CODE(the actual DTM) //I didn't include the actual DTM in this post, thought it was irrelevant
if OpenBankChest(SRL_BANK_CW) then //opens bank
if FindDTM(DTM, x, y, MBX1, MBY1, MBX2, MBY2)then //attempts to find DTM
begin
Withdraw(0, 0, 13);
wait(500+Random(20));
Withdraw(1, 0, 13);
wait(300+Random(50));
CloseBank;
AntiBan;
end else
begin
TerminateScript;
end;
end;But when using this it just terminates the script, even if it finds the DTM.
Any suggestions?