SRL Archive - OSR Help

Coloring broken?


NKN

2012-04-21 22:45:17

I'm using ACA, and like, the WHOLE guy is covered, plug in numbers, run script, nothing, doesn't find ONE point.


Edit: :| ACA finds color, doesn't find it in script.

function FindJudge(var x,y:integer):Boolean;
var
a : Integer;
TPA : TPointArray;
ATPA : T2DPointArray;
MP : TPoint;
tmpCTS,Clicked : Integer;
Box,SearchArea : TBox;
begin
FindNormalRandoms;
SMART_ClearCanvas;
if not LoggedIn then Exit;
Writeln('Starting hunt for judge...');
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.23,0.95);
SearchArea := IntToBox((MSCX - 150),(MSCY - 150),(MSCX + 150),(MSCY+150));
SMART_DrawBoxEx(False,SearchArea,clPurple);
FindColorsSpiralTolerance(MSCX,MSCY,TPA,2768457,MSCX -150,MSCY - 150 ,MSCX+150,MSCY+150,15);
SortTPAFrom(TPA,point(MSCX,MSCY));
ATPA := TPAtoATPAEx(TPA,15,15);
for a := 0 to High(ATPA) do
begin
MP := MiddleTPA(ATPA[a]);
Box := IntToBox((MP.x - 20),(MP.y - 20),(MP.x + 20),(MP.y + 20));
SMART_DrawBoxEx(False,Box,clYellow);
MMouse(MP.x,MP.y,4,4);
if(WaitUpText('udge',5000))then
begin
x := MP.x; y := MP.y;
SMART_ClearCanvas;
Mouse(x,y,0,0,False);
Wait(RandomRange(200,400));
ChooseOption('Compete');
WaitOnText(['Yes','es'],Clickleft,5000);
end;
Break;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2,0.2);
Writeln('...finished buying');
end;
Wait(500);
end;

tehq

2012-04-21 22:47:45

checking

FindColorsSpiralTolerance(MSCX,MSCY,TPA,2768457,MSCX -150,MSCY - 150 ,MSCX+150,MSCY+150,15);
needs to be edited. your function always stores it as MSCX, MSCY

NKN

2012-04-21 22:52:47

What should I change it to, x,y?
Edit: Still not working, read top edit?

tehq

2012-04-21 22:54:53

Yeah x, y and if it still doesn't work i think i see something else wrong, but i'll wait to tell.

Brandon

2012-04-21 23:04:18

Can you confirm if this fits the description? http://villavu.com/forum/showthread.php?t=72742

It could be that but I declared it solved as it no longer happened. Specifically my second post would suit your description so far.

Also if you didn't know, ACA has well.. been updated in the form of an extension as something was wrong with the colours it gave out. I think it was some kind of calculation multiplied by 100. Cannot seem to find the extension though and don't know what happened to it's development.

NKN

2012-04-21 23:07:26

It seems I had the same problem, I just changed it to CST1, which works, I guess.