you should really try and follow the proper structure of a function
Simba Code:
{$i srl\srl.scar}
function Foundcolor: Boolean;
var
x,y:integer;
begin
if
findcolor(x, y, 111111, 1,1,520,340 ) then
begin
result:=true
end;
end;
begin
repeat
Waitnone;
//until Wait until we found the color...
until(WaitFunc(@FoundColor, 8000+ Random(15), 9000));
end.
make your own function
Simba Code:
//this type of function is called a boolean, meaning it can either be true or false
Function NameOfFunction: Boolean;
Begin
If findColor(x, y, 111111, 1,1,520,340)then
Begin
Result:=True
End;
//when using a function in your script you simply put the name
repeat
writeln('waiting')
//until the color is found
until(NameOfFunction)
have you any programming experience?
it may be tough but try reading any book on programming
try Java...
youll eventually will be more familiar...
Personally I like Python because it has PyGame =)