ok i can find the fally road color, but i don't know how to get that color from the debug box to the if "(FindColor (x, y, [insert color], 0, 0, 0, 0))then".
ok i can find the fally road color, but i don't know how to get that color from the debug box to the if "(FindColor (x, y, [insert color], 0, 0, 0, 0))then".
procedure GoToFurnace;
var FaladorRoadColor: integer;
begin
FaladorRoadColor:= IntToStr(FindFallyRoadColor);
FindFallyRoadColor;
if (FindColor (x, y, (FaladorRoadColor), 800, 200, 850, 250))then
movemousesmooth(x, y);
wait(500);
clickmouse(x, y, true);
end;
thsi is what i have so far, anyone see anything i have to change? it says
Don't use movemouse and clickmouse, as it is detectable and gets you banned. Use MMouse (to move the mouse) or just Mouse if you need to move to and then click. works like so:
SCAR Code:MMouse(x,y,2,2); //Moves to x,y with randomness of 2 to both x and y
Mouse(x,y,2,2,True); //Moves to x,y with randomness of 2 to both x and y and clicks
And you don't need FaladorRoadColor := IntToStr(FindFallyRoadColor). All you need is FaladorRoadColor := FindFallyRoadColor. The function itself returns an integer, it just also writes it out for you to see in the debug box. And you don't need to call FindFallyRoadColor afterwards either. Only FaladorRoadColor := FindFallyRoadColor; as that takes care of it for you.
Also, you should read some tutorials on RadialWalk and RadialRoadWalk, as it works much better for walking. Basically, if you do FindColor(x,y,FallyRoadColor, etc) it'll click anywhere that it finds that color, which doesn't allow you to control which way it moves. RadialRoadWalk gives you more control on where it searches for the color, just find some tutorials on it and you'll be fine.
ty, i'm working on my first script, it's an auto smelter
There are currently 1 users browsing this thread. (0 members and 1 guests)