Hey I just started scripting and having some problems using FindObj, this is the part of my script not working.
Simba Code:
procedure findTree;
var
X,Y:Integer;
begin
if P07_FindObj(x, y, 'Chop', 3232106, 6) then
begin
mmouse(x, y,0,0);
wait(250);
ClickMouse(X, Y, mouse_Right)
end;
end;
When I run this procedure in an area with trees it will simply hover the mouse to each tree in the area and then stop, so it seems like it actually finds the right object it just won't run the if clause when it does and continues to find more. Total noob so if I missed something fundamental about how findObj works please explain