Advertisement
Guest User

Untitled

a guest
Oct 17th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 2.27 KB | None | 0 0
  1. program GnomeAgilityPipe;
  2.  
  3. {
  4.    ===============================================
  5.    Gnome Agility script for RS1
  6.    Start at the pipe with the camera facing north.
  7.    Sleeping bag goes in the first slot.
  8.    Set username and password below.
  9.    ===============================================
  10. }
  11.  
  12. var
  13.   x, y: Integer;
  14.   s: string;
  15. const
  16. username ='';
  17. password ='';
  18.  
  19. procedure DoAgility;
  20. begin
  21. repeat
  22.       if (FindColorSpiral (x, y, 5197647, 80, 80, 420, 270)) then
  23.          begin
  24.           wait(200);
  25.               MoveMouse(x, y);
  26.               if(IsTextAt(6,2,'pipe: enter'))then
  27.               begin
  28.                  status ('Going through the pipe');
  29.                  ClickMouse(x, y, True);
  30.                  Wait(5000 + Random(200));
  31.               end;
  32.          end;
  33.     s:= GetChatMsg;
  34.     until(s = 'you are too tired to train');
  35. end;
  36.  
  37. procedure AutoLogin;
  38. begin
  39.      if (FindColorSpiral (x, y, 7888212, 300, 305, 355, 308)) then
  40.      if (FindColorSpiral (x, y, 16777215, 80, 245, 95, 265)) then
  41.      begin
  42.               status ('Logging in');
  43.               // Click on "Click here to login"
  44.               ClickMouse(255, 285, True);
  45.               wait(500);
  46.               // Enter username
  47.               ClickMouse(150, 250, True);
  48.               wait(500);
  49.               SendKeysSilent(username);
  50.               wait(300);
  51.               // Enter password
  52.               ClickMouse(190, 300, True);
  53.               wait(500);
  54.               SendKeysSilent(password);
  55.               wait(500);
  56.               // Log in
  57.               ClickMouse(410, 250, True);
  58.               wait(5000);
  59.               // Close welcome screen
  60.               ClickMouse(254, 217, True);
  61.               wait(500);
  62.      end;
  63. end;
  64.  
  65.  
  66. procedure Sleep;
  67. begin
  68. if (IsTextAt (7, 304, 'you are too')) then
  69. begin
  70.     status ('Sleeping.');
  71.     MoveMouse (490, 15)
  72.     Wait (300);
  73.       ClickMouse (280, 50, True);
  74.       Wait(2000)
  75.       repeat
  76.             wait (50);
  77.       until (IsTextAt (7, 304,'You wake up')) or
  78.             (IsTextAt (7, 304,'You are unexpectedly awoken')) or
  79.             (IsTextAt (7, 304,'You can t do that whilst'));
  80.    MoveMouse(20,20)
  81.    wait (5000);
  82. end;
  83. wait (5000);
  84. end;
  85.  
  86. begin
  87.   repeat
  88.     AutoLogin;
  89.     DoAgility;
  90.     Sleep;
  91.   until(False);
  92. end.
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement