zamaro

Untitled

Apr 4th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. program Test1;
  2. {$DEFINE SMART8}
  3. {$I SRL-OSR/SRL.Simba}
  4.  
  5.  
  6. const
  7. me: tstringarray
  8. me2: string;
  9.  
  10. Function ColorLocate(name :TstringArray) :boolean;
  11. var
  12. CTS: Integer;
  13. TPA: Tpointarray;
  14. begin
  15. if (not (loggedin)) then
  16. exit;
  17. cts := GetColorToleranceSpeed;
  18. ColorToleranceSpeed(2);
  19. SetColorSpeed2Modifiers(0.05, 0.41);
  20. case Name of
  21. 'RangeScreen': Result := FindColorsTolerance(TPA, 5334901, 482, 36, 492, 45, 12);
  22. ['Skillz']: Result := FindColorsTolerance(TPA, 8042720, 480, 5, 513, 35, 4); // even with brackets it doesnt know what skills is
  23. 'NChatTabAll': Result := FindColorsTolerance(TPA, 4213586, 6, 482, 60, 497, 11);
  24. end;
  25. ColorToleranceSpeed(CTS);
  26. SetColorSpeed2Modifiers(0.02, 0.2);
  27. end;
  28.  
  29.  
  30. procedure test1;
  31. begin
  32. if ColorLocate(skillz) then
  33. writeln('please dont say you dont know what skills is..');
  34.  
  35. end;
  36.  
  37. begin
  38. setupsrl;
  39. test1;
  40. end.
Advertisement
Add Comment
Please, Sign In to add comment