Janilabo

obj

Apr 3rd, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.83 KB | None | 0 0
  1. {$DEFINE RS07}
  2. {$I MSSL\MSSL.scar}                     // NOTE: Used Draynor Bank booth colors as an example there.
  3.  
  4. procedure ScriptTerminate;
  5. begin
  6.   MSSL_Unsetup;
  7. end;  
  8.  
  9. var
  10.   x, y, t: Integer;
  11.  
  12. begin
  13.   MSSL_Setup;  
  14.   t := GetSystemTime;
  15.   //                 X  X     Object name    Uptext style   Color Settings() CTS S. HueM. SatM.   Color Tol Split      Area X1              Area Y1               Area X2               Area Y2
  16.   if RS07_FindObject(x, y, 'Bank Bank booth', um_IsUpText, MSSL_ColorSettings(2, 0, 0.14, 0.46), 5796480, 6, 5, RS07_GameActionBx.X1, RS07_GameActionBx.Y1, RS07_GameActionBx.X2, RS07_GameActionBx.Y2) then
  17.   begin
  18.     WriteLn('Found object at ' + IntToStr(x) + ', ' + IntToStr(y) + ' coordinates! [' + IntToStr(GetSystemTime - t) + ' ms.]');
  19.     RS07_ClickMouse(x, y, mbLeft);
  20.   end;
  21. end.
Advertisement
Add Comment
Please, Sign In to add comment