Guest User

Untitled

a guest
Jun 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. {*******************************************************************************
  2. function FFlag(Dist: Integer): Boolean;
  3. By: Wizzup? / WT-Fakawi / ZephyrsFury recent fix by Tniffoc
  4. Description: Waits until Flag is within "Distance" distance.
  5. *******************************************************************************}
  6.  
  7. function FFlag(Dist: Integer): Boolean;
  8. var
  9. Tx, Ty, M, D1, D2: Integer;
  10. begin
  11. Result := False;
  12. M := GetSystemTime;
  13. while (FindColor(Tx, Ty, 9764763, MMX1, MMY1, MMX2, MMY2)) do
  14. begin
  15. D1 := Distance(Tx + 1, Ty + 15, MMCX, MMCY);
  16. if (D1 <= Dist) then
  17. begin
  18. Result := True;
  19. Exit;
  20. end;
  21. Wait(100);
  22. if (GetColor(6, 6) <> 16777215) then
  23. if (GetSystemTime - M > 5000) then
  24. begin
  25. if (D1 = D2) then Exit;
  26. D2 := D1;
  27. M := GetSystemTime;
  28. end;
  29. if (Random(20) = 0) then IdleTime(500, 1000, 0.01);
  30. if SRL_Procs[SRL_AntiBan] <> nil then
  31. SRL_Procs[SRL_AntiBan]();
  32. end;
  33. Wait(RandomRange(200, 400));
  34. end;
Add Comment
Please, Sign In to add comment