PDA

View Full Version : About script terminate



raimis89
12-12-2006, 07:01 AM
So how can i make that script terminates?
it stops if its false

YoHoJo
12-12-2006, 07:12 AM
Begein
Repeat
Wait(1000)
I:=I+1
Until
I=5
if i=5 then
TerminateScript
end;

^something like that
OR

function FindColor:Boolean;
If Findcolorspiral(x,y,6666,1,1,300,300)then
Result:=True;
end.

Begin
repeat
Dacne;
Until FindColor=False
If FindColor=False then
TerminateScript;
end.


first one waits one second and adds a number.
If the number (i) =5 then it will stop and terminate the script.

Second one continues "dacceing" until the specific color is not found

i know they are vague examples, tell me if you need more help

raimis89
12-14-2006, 01:41 PM
Ok tnx