it has a possibility of getting stuck yes. if someone sends a room invite for a raid, during any procedure that screen will pop up for 30 seconds which will throw off every procedure. I tried making a DTM to check for the "reject" button but its always different colors.
This is why I wanted to find a way to just at ANY time if the bot is stuck for more than 30 seconds then restart script. because no wait is over 30 seconds. i guess I can just run the ttimer with my finddtm sicne if it cant find dtm it will sit in a loophole.
is there a way I can restart the script then? like if i use your timer method and it hits 30seconds, it breaks and skips to the next procedure which is a failsafe, that checks screen image, if its false it restarts script?
im hitting an error with the break command.
Code:
[Error] C:\Users\***\Desktop\Script.simba(16:3): Not in a loop at line 16
Compiling failed.
Also getting a error with the ttimer (sorry im so dumb with this)
Code:
Unknown type 'TTimeMarker' at line 368
Compiling failed.
Is there a variable i need in the beginging of my script?
This is my header
Code:
program Script;
{$i srl/srl.simba}
//F3 stops script
Var
Runs, GoldMade, FarmShop, GSeed, KSeed, city, x, y: Integer;
time, time2: longint;