juunhoad
2013-03-01 15:28:35
Hee,
I was looking at this guide http://villavu.com/forum/showthread.php?t=90767 for TPA's.
And I got this script. The only thing I changed was the uptext, because it's for 07scape. but for some reason it still doesn't work..
It must be the GetUpText, because it can find the flax fine!
I was looking at this guide http://villavu.com/forum/showthread.php?t=90767 for TPA's.
And I got this script. The only thing I changed was the uptext, because it's for 07scape. but for some reason it still doesn't work..
It must be the GetUpText, because it can find the flax fine!
program new;
{$i SRL/SRL.simba}
{$I P07Include.Simba}
Procedure FindFlax;
var
tmpCTS, i, x, y, counter, r, l:integer;
FlaxTPA:TPointArray;
begin
tmpCTS := GetToleranceSpeed;
SetColorToleranceSpeed(2);
SetToleranceSpeed2Modifiers(0.13, 1.22);
FindColorsTolerance(FlaxTPA,608516 , MSX1, MSY1, MSX2, MSY2, 10);
SetColorToleranceSpeed(tmpCTS); //RIGHT AFTER we find our colors, we
SetToleranceSpeed2Modifiers(0.02, 0.02); //Change the CTS back.
L := High(FlaxTPA)
marktime(counter);
for i := 0 to L do
begin;
r := random(L);
Wait(RandomRange(60, 200));
mmouse(FlaxTPA[r].x, FlaxTPA[r].y, 2, 2);
if (P07_ContainsText(P07_GetUpText, ['ick', 'lax'] )) then
Break;
if timefrommark(counter) > 3000 then
begin
writeln('We failed to find the flax!');
Terminatescript;
end;
end;
writeln('We found the flax!');
clickmouse2(mouse_right);
end;
begin
SetupSRL;
SetupP07Include;
FindFlax;
end.