SRL Archive - OSR Help

Not moving mouse...


IsoMorphic

2012-11-12 22:04:12

So i have my script
http://paste.villavu.com/show/xjVqJiNS6XD5SAZWizzq/

and im trying to make it chop, but its not. ive tried changing colours for FindObj(Ill do TPA once it works)

And using ACA
still now working… Any help?

Lalaji

2012-11-13 13:10:40

in your Colour:
  for i := 0 to arL do
begin
Result := arC[i]; // Result will be arC[0] because i starts out at 0
Break; // and then it breaks out of the loop. so... your result will always be arC[0]
end;
And your Chop:
          if FindObj(x, y, 'hop', 3098697, 10) then // call colour procedure here for the auto color.
begin
Mouse(x, y, 1, 1, true);
end;
Flag;
MarkTime(timer);

Just a couple of things that I saw. What does the debug say when you run it?

Edit:

Colour;
Chop;
^ like that will not auto color because you are not using the result from your colour function in your chop procedure.
Try : FindObj(x, y, 'hop', Colour, 10)

AND:
for you Colour procedure try to MMouse in for you arP array to check the uptext. then if uptext = 'hop' (or something?) then result := that color.

IsoMorphic

2012-11-13 18:42:16

I know. im not using ACA now, and that was the auto colour function and its allways worked for me like that
My script is working now and you can download 1.1 from the woodcutting section