Janilabo

Untitled

Mar 31st, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 1.28 KB | None | 0 0
  1. program RS07_FightCaveFighter;
  2.  
  3. const
  4.   USERNAME = '';
  5.   PASSWORD = '';  
  6.  
  7. {$DEFINE SMART}
  8. {$DEFINE RS07}
  9. {$I OSI\OSI.scar}
  10. {$I MSSL\MSSL.scar}
  11.  
  12. var
  13.   actionMark: Integer;
  14.  
  15. procedure EnterCave;
  16. var
  17.   X, Y: Integer;
  18.   cs: MSSL_TColorSettings;
  19. begin
  20.   if ((GetSystemTime - actionMark) > 2500) then
  21.   begin
  22.     cs := MSSL_GetColorSettings;
  23.     ColorToleranceSpeed(2);
  24.     SetColorSpeed2Modifiers(0.28, 0.17);
  25.     if FindColorTol(X, Y, 10921906, RS07_GameActionBx.X1, RS07_GameActionBx.Y1, RS07_GameActionBx.X2, RS07_GameActionBx.Y2, 5) then
  26.     begin
  27.       RS07_ClickMouse(X, Y, mbLeft);
  28.       actionMark := GetSystemTime;
  29.     end;  
  30.     MSSL_SetColorSettings(cs);  
  31.   end;
  32. end;
  33.  
  34. procedure ScriptTerminate;
  35. begin
  36.   MSSL_Unsetup;
  37.   FreeOSI;
  38. end;
  39.  
  40. begin
  41.   SetUpOSI;
  42.   MSSL_Setup;
  43.   if RS07_LoggedIn then
  44.     RS07_SetScreenBrightness(RS07_SCREEN_BRIGHTNESS_VERY_BRIGHT);
  45.   repeat
  46.     RS07_AutoRetaliate;
  47.     case RS07_LoggedIn of
  48.       False:
  49.       if RS07_LogIn(username, password) then
  50.       begin                    
  51.         RS07_SetScreenBrightness(RS07_SCREEN_BRIGHTNESS_VERY_BRIGHT);
  52.         RS07_SetCompassDir('S');
  53.         actionMark := (GetSystemTime - GetSystemTime);
  54.       end;
  55.       True: EnterCave;
  56.     end;
  57.     MSSL_Wait(0);
  58.   until False;
  59. end.
Advertisement
Add Comment
Please, Sign In to add comment