Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. program ArdyKnightPickpocket;
  2.  
  3. var
  4. x, y: integer;
  5. //make sure coin purse in slot 1
  6.  
  7. procedure Music; //plays .wav until it finds 10hp
  8. begin
  9. repeat
  10. PlaySound('C:\Users\Tom\Desktop\pika.wav');
  11. writeln('LOW HP');
  12. wait(1000 + random(333));
  13. until (findcolortolerance(x, y, 728958, 530, 220, 570, 250, 10)); //hp 10
  14. end;
  15.  
  16. procedure Music2; //plays .wav until sack empty
  17. begin
  18. repeat
  19. PlaySound('C:\Users\Tom\Desktop\pika1.wav');
  20. writeln('COIN FULL');
  21. wait(1000 + random(333));
  22. until (findcolortolerance(x, y, 3885652, 586, 229, 587, 230, 10)); //nothing in slot 1
  23. end;
  24.  
  25. procedure spamClickMouse1(); //spam clicks mouse
  26. begin
  27. getMousePos(x, y);
  28. holdMouse(x, y, MOUSE_LEFT);
  29. wait(25 + randomRange(1, 50));
  30. wait(25 + randomRange(10, 62));
  31. writeln('clicking mouse 1');
  32. getMousePos(x, y);
  33. releaseMouse(x, y, MOUSE_LEFT);
  34. wait(25 + randomRange(74, 171));
  35. wait(25 + randomRange(34, 100));
  36. writeln('clicking mouse 2');
  37. end;
  38.  
  39. procedure spamClickMouse2(); //spam clicks mouse
  40. begin
  41. getMousePos(x, y);
  42. holdMouse(x, y, MOUSE_LEFT);
  43. wait(25 + randomRange(1, 50));
  44. wait(25 + randomRange(10, 62));
  45. writeln('clicking mouse (2) 1');
  46. getMousePos(x, y);
  47. releaseMouse(x, y, MOUSE_LEFT);
  48. wait(25 + randomRange(74, 171));
  49. wait(25 + randomRange(34, 100));
  50. writeln('clicking mouse (2) 2');
  51. end;
  52.  
  53. begin
  54. repeat
  55. if (findcolortolerance(x, y, 1646115, 540, 372, 550, 384, 10)) then //IF find low HP then
  56. music() //play .wav
  57. //else
  58. //spamClickMouse1();
  59. if (findcolortolerance(x, y, 65535, 570, 213, 571, 214, 10)) and //2 in sack
  60. (findcolortolerance(x, y, 65535, 577, 213, 578, 214, 10)) and //top left
  61. (findcolortolerance(x, y, 65535, 577, 218, 578, 219, 10)) and //bot left
  62. (findcolortolerance(x, y, 65535, 580, 219, 581, 220, 10)) and //bot
  63. (findcolortolerance(x, y, 65535, 580, 212, 581, 213, 10)) and //top
  64. (findcolortolerance(x, y, 65535, 581, 216, 582, 217, 10)) and //top right
  65. (findcolortolerance(x, y, 65535, 581, 218, 582, 219, 10)) and //bot right
  66. (findcolortolerance(x, y, 65535, 579, 219, 580, 220, 10)) and //mid
  67. (findcolortolerance(x, y, 65535, 570, 213, 582, 219, 10)) and //right bot corn
  68. (findcolortolerance(x, y, 65535, 580, 215, 581, 216, 10)) and //random
  69. (findcolortolerance(x, y, 65535, 581, 214, 582, 215, 10)) and //dfsafdfasdf
  70. (findcolortolerance(x, y, 65535, 577, 214, 578, 215, 10)) and //dfsafdfasdf
  71. (findcolortolerance(x, y, 65535, 582, 216, 583, 217, 10)) and //dfsafdfasdf
  72. (findcolortolerance(x, y, 65535, 582, 218, 583, 219, 10)) and //dfsafdfasdf
  73. (findcolortolerance(x, y, 65535, 579, 215, 580, 216, 10)) then //ranom
  74. music2() //play a .wav
  75. else
  76. spamClickMouse2(); //spam click the knight
  77. until (false);
  78. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement