Guest User

Untitled

a guest
May 31st, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. program AutoYakker;
  2. var x, y, a, b, blues, kills, bitmap1, repotcounter: integer;
  3. var username, password: string;
  4. var FoundAllBlues: boolean;
  5.  
  6. procedure Login;
  7. begin
  8. username := '';
  9. password := '';
  10.  
  11. WriteLn('Logging in...');
  12.  
  13. wait(1000);
  14. x := 298;
  15. y := 240;
  16. MoveMouse(x,y);
  17. wait(100);
  18. clickmouse(x,y, 1);
  19. wait(500);
  20. SendKeys(username, 100);
  21. wait(1500);
  22. x := 313;
  23. y := 284;
  24. MoveMouse(x,y);
  25. wait(100);
  26. clickmouse(x,y, 1);
  27. SendKeys(password, 100);
  28.  
  29. x := 324;
  30. y := 345;
  31.  
  32. MoveMouse(x,y);
  33. wait(100);
  34. clickmouse(x,y, 1);
  35. end;
  36.  
  37. procedure SetPrays;
  38. begin
  39. //Switch to prayers tab
  40. MoveMouse(710, 186);
  41. wait(1000);
  42. Clickmouse(710, 186, 1);
  43. wait(1000);
  44.  
  45. //Protect from Melee
  46. MoveMouse(722, 334);
  47. wait(1000);
  48. Clickmouse(722, 334, 1);
  49. wait(1000);
  50.  
  51. //Piety
  52.  
  53. MoveMouse(648, 407);
  54. wait(1000);
  55. Clickmouse(648, 407, 1);
  56. wait(1000);
  57.  
  58. //Protect Item
  59. MoveMouse(572, 298);
  60. wait(1000);
  61. Clickmouse(572, 298, 1);
  62. wait(1000);
  63. end;
  64.  
  65.  
  66. procedure ReLogin;
  67. begin
  68.  
  69. x := 324;
  70. y := 345;
  71.  
  72. MoveMouse(x,y);
  73. wait(100);
  74. clickmouse(x,y, 1);
  75.  
  76. WriteLn('ReLogging');
  77.  
  78. wait(10000);
  79.  
  80. SetPrays;
  81.  
  82. end;
  83.  
  84. procedure CheckLogin;
  85. begin
  86. If (getcolor(419, 346)=3123905) and (getcolor(432, 196)=3159352) then
  87. begin
  88. WriteLn('We seemed to be logged out, relogging in.');
  89. ReLogin;
  90. end;
  91.  
  92. end;
  93.  
  94. procedure KillYak;
  95. begin
  96. x := -1;
  97. y := -1;
  98.  
  99. if FindColorSpiral(x, y, 5726319, 0, 0, 511, 333) then
  100. begin
  101. MoveMouse(x, y);
  102. wait(500);
  103. clickmouse(x, y, 1);
  104. kills := kills + 1;
  105. end;
  106. end;
  107.  
  108.  
  109. procedure LootBlues;
  110. begin
  111.  
  112. FoundAllBlues := false;
  113.  
  114. repeat
  115. wait(3000);
  116. a := -1;
  117. b := -1;
  118. if FindColorSpiral(a, b, 9081202, 0, 0, 511, 333) then
  119. begin
  120. MoveMouse(a, b);
  121. wait(500);
  122. clickmouse(a, b, 1);
  123. blues := blues + 1;
  124. end else
  125. FoundAllBlues := true;
  126. until(FoundAllBlues = true);
  127. end;
  128.  
  129. procedure RePot;
  130. begin
  131.  
  132. //Super Attack
  133.  
  134. a := -1;
  135. b := -1;
  136.  
  137. if FindColorSpiral(a, b, 13776947, 561, 235, 741, 498) then
  138. begin
  139. MoveMouse(a, b);
  140. wait(500);
  141. clickmouse(a, b, 1);
  142. end;
  143.  
  144.  
  145. wait(2000);
  146.  
  147. //Super Strength
  148.  
  149. a := -1;
  150. b := -1;
  151.  
  152. if FindColorSpiral(a, b, 12237501, 561, 235, 741, 498) then
  153. begin
  154. MoveMouse(a, b);
  155. wait(500);
  156. clickmouse(a, b, 1);
  157. end;
  158.  
  159. repotcounter := 15;
  160. end;
  161.  
  162.  
  163. begin
  164.  
  165. repotcounter := 1;
  166.  
  167. repeat
  168. wait(6000);
  169. KillYak;
  170. wait(4000);
  171. LootBlues;
  172. wait(1000);
  173. CheckLogin;
  174.  
  175. if (repotcounter = 1) then
  176. begin
  177. RePot;
  178. end;
  179.  
  180. repotcounter := repotcounter - 1;
  181. until (false);
  182.  
  183. end.
Add Comment
Please, Sign In to add comment