k erm this is the problem. i want it to check for certain colours at every time interval. e.g. check for 1583557, every 1 minute.
k erm this is the problem. i want it to check for certain colours at every time interval. e.g. check for 1583557, every 1 minute.
I do it like that
SCAR Code:procedure example;
var Mymark : integer;
var firstcheck : boolean;
begin
if not firstcheck then
begin
Firstcheck := true;
marktime(mymark);
end;
if TimeFromMark(mymark) > 60000 then
begin
Here your stuff what you wanted to do after every 60 sec
end;
end;
Try to understand...
You'll need to call it practically all the time...
[CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]
why wouldn't i regret it?
You might want to change the "Learning to script" thing to 2% BTWSCAR Code:Program New;
var x,y: integer;
const
MillisecondsToWait = 1337;
Procedure LookForColor;
begin
If FindcolorTolerance(x,y,1583557, MSX1,MSY1,MSX2,MSY2,20)
end;
begin
setupsrl;
activateClient;
LookForColor
Wait(60000)
until(iskeydown(a))
end.
thanks guys. ill try 2 understand.=)
p.s. i aint that crap at scripting. understand most things like DTM's and finding symbols and stuff. kinda used hy's cave runner, and added better pray, and dbaxe spec 2 it.
negaal kinda doesnt work
SCAR Code:program New;
procedure AmIStillHere;
var Mymark : integer;
firstcheck : boolean;
begin
if not firstcheck then
begin
Firstcheck := true;
marktime :=(mymark);
end;
if TimeFromMark(mymark) > 60000+Random(10000) then
begin
if not FindColor(tx,ty,1518021,576,259,627,285) and
if not FindSymbol(dx,dy,'minigame') and
if not FindSymbol(dx,dy,'bank') and
if not FindSymbol(dx,dy,'mining spot') then
begin
Logout;
until(not(LoggedIn));
else
begin
WriteLn(its working);
end;
end;
i get this error
Failed when compiling
Line 11: [Error] (11:1): Unknown identifier 'marktime' in script C:\Program Files\SCAR 3.12\Scripts\new.scar
Failed when compiling
Line 12: [Error] (12:4): Unknown identifier 'TimeFromMark' in script C:\Program Files\SCAR 3.12\Scripts\new.scar
Failed when compiling



You have to include SRL![]()
You'll need to put {.include srl/srl.scar} to second line
and
Marktime := mymark
should be
Marktime(mymark)
[CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]
Oh, negaal, i made that in 5 minutes, i wasn't able to test it because i don't have scar on this computer!
There are currently 1 users browsing this thread. (0 members and 1 guests)