I want to add a failsafe into my script to do the following, click on minimap at selected point ( i have the DTM for it) If wait exceeds a set time.
Im unsure what and where to add in this.
Simba Code:
var
Xi, Yi, X1, Y1, X2, Y2: Integer;
begin
//Writeln('Checking for bones');
if FindObjEx(Xi, Yi, ['ake', 'ke'], BoneColours, 3, 50, 1, 5, 689, 390) then
begin
GetMousePos(Xi, Yi);
Mouse(Xi, Yi, 0, 0, false);
if WaitOptionMulti(['ake Bone', 'ake B'], 200) then
Wait(RandomRange(700, 1200));
while IsMoving do
begin
Wait(250);
antiban;
end;
If not(invfull) then
begin
FindBones;
or if FindObjEx
end;
end;
end;
Thanks in advance