[Runtime Error] : Exception: Canvas does not allow drawing in line 13
script:
SCAR Code:
1program Distillery;//By RaptorBlaze(my first script w00t)
2var
3a,b,x,y,c,d,e,f: Integer;//a,b=Left piece coords, x,y=Right piece coords c,d,e,f=search area values
4procedure moveright;
5 begin
6 c:=a+40;
7 d:=b-40;
8 e:=a+40;
9 f:=b+40;
10
11 if findcolor(a,b,12645373,0,0,899,1439) then
12 clickmouse(a,b,true);
13 if findcolor(x,y,8829120,a,b,c,d) then
14 begin
15 clickmouse(x,y,true);
16 end else
17
18 if findcolor(x,y,4245488,a,b,e,f) then
19 clickmouse(x,y,true);
20 end;
21 begin
22 repeat
23 moveright
24 wait(500+random(200))//added random for more humanity(just in case)
25 until(iskeydown('a'));
26 end.
maybe when i can script without getting an error on every line i'll be less careless about leaving copies of the script for anyone to copy lol...
,also i'm thinking of adding another procedure to make it smarter after i get this part working(its a puzzle solving script)