Advertisement
Guest User

Untitled

a guest
Oct 17th, 2011
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.86 KB | None | 0 0
  1. program woodcutter;
  2.   var Tree, notree: Boolean;
  3.   fx, fy: Integer;
  4. Function TreeCheck (var x, y :integer): Boolean;
  5. begin
  6.   x:= 270;
  7.   y:= 160;
  8.   Result:= False;
  9.   repeat
  10.     if(x>510)or(y>330)or(x<0)or(y<0) then
  11.     begin
  12.       x:= 270;
  13.       y:= 160;
  14.     end;
  15.   MoveMouse(x,y);
  16.   Wait(200);
  17.   If(IsTextAt(6,2,'Tree: Chop'))then
  18.   Result:= True else
  19.     begin
  20.       x:= x + Random(200)-100;
  21.       y:= y + Random(200)-100;
  22.     end;
  23.   until(Result)
  24.   end;
  25. begin
  26.   repeat
  27.     Tree:= TreeCheck(fx, fy);
  28.     ClickMouse(fx, fy, True);
  29.     Wait(5000);
  30.       begin
  31.       notree:= False;
  32.       repeat
  33.         If(IsTextAt(6,2,'Tree: Chop'))then
  34.           begin
  35.             ClickMouse(fx, fy, True);
  36.             Wait(3500)
  37.           end else
  38.         notree:= True;
  39.       until(notree)
  40.       end;
  41.   until(Pos('You are too tired ',GetChatMsg) = 1);
  42. end.
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement