Janilabo

Untitled

Aug 10th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.54 KB | None | 0 0
  1. function RSCE_TooTired: Boolean;
  2. begin
  3.   Result := (RSCE_FatigueReader = '100%');
  4. end;
  5.  
  6. function RSCE_Sleeping: Boolean;
  7. begin
  8.   Result := (CountColor(65535, 160, 33, 349, 54) = 1215) and
  9.             (CountColor(0, 160, 33, 349, 54) = 2965);
  10. end;
  11.  
  12. function RSCE_Sleep: Boolean;
  13. var
  14.   tm: Integer;
  15. begin
  16.   if OpenGameTab(5) then
  17.     if ClickItem(1263, 1) then
  18.     begin
  19.       tm := GetSystemTime;
  20.       repeat
  21.         Result := RSCE_Sleeping;
  22.         Wait(10);
  23.       until (Result or ((GetSystemTime - tm) > 5000));
  24.     end;
  25. end;
Advertisement
Add Comment
Please, Sign In to add comment