SRL Archive - Help

Setting mouse speed


HT BaaFly

2011-11-18 13:49:15

Hello,
Can someone tell me how to set the mouse's speed, especially during the bank pin event as it clicks on the numbers faster than the speed they load up at


thank you

Dynamite

2011-11-18 13:51:54

MouseSpeed := X;

(X being a number of your choice ;))

Hope I helped.

-Boom

HT BaaFly

2011-11-18 14:06:06

Thanks a lot :)
Another question, if you don't mind :)

I'm trying to script my first ever bot but I'm kind of stuck. I'm trying to get my script to cut logs. It does so, but only clicks on the top most trees and ignores the lower ones. Is there any way I can make it choose the one closest to the player or make it choose something other than the most top?

program New;
{$i SRL\SRL.scar}

function Findtree: Boolean;
var
x, y: integer;

begin
Result:= FindColorTolerance(x, y, 3034986, MSX1, MSY1, MSX2, MSY2, 20);
Mouse(x, y, 5, 5, True);
end;


begin
SetupSRL;
Findtree;
end.

Dynamite

2011-11-18 14:54:27

Sort(A)TPA will sort your TPA from closest to farthest (iirc) :)

-Boom

HT BaaFly

2011-11-18 15:30:12

Thank you for your kind help :D

footballjds

2011-11-18 17:27:49

From: Dynamite
Sort(A)TPA will sort your TPA from closest to farthest (iirc) :)

-Boom


You'll have to use FindColorSTolerance in order to take advantage of this.
Try reading around about TPA's, they're so godamn amazing

Dynamite

2011-11-18 19:33:46

From: footballjds
You'll have to use FindColorSTolerance in order to take advantage of this.
Try reading around about TPA's, they're so godamn amazing


This man is very right :)

-Boom