Advertisement
Guest User

Untitled

a guest
Apr 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. {$I AeroLib/AeroLib.simba}
  2.  
  3. var
  4. ragList := ['Bunny Ears','Bargk','Lenny','EII5H','BonI Avoidme','Vippp'];
  5.  
  6. function prayOff(): boolean;
  7. begin
  8. result := GetColor(551, 95) = 7551053
  9. end;
  10.  
  11. Function inSafeZone() : boolean;
  12. Begin
  13. result := GetColor(479, 280) <> 65344;
  14. end;
  15.  
  16. Function RunIsOff() : boolean;
  17. Begin
  18. result := GetColor(582, 149) = 4014658;
  19. end;
  20.  
  21. procedure TurnRunOn();
  22. var
  23. x, y: integer;
  24. begin
  25. MoveMouse(582, 149);
  26.  
  27. ClickMouse(582, 149, mouse_left);
  28. end
  29.  
  30. procedure quickPray();
  31. var
  32. x, y: integer;
  33. begin
  34. MoveMouse(553, 108);
  35. wait(50);
  36. ClickMouse(553, 108, mouse_left);
  37. wait(1200);
  38. end
  39.  
  40. procedure walkOut
  41.  
  42. var x, y: integer;
  43. begin
  44. MoveMouse( 639,76);
  45.  
  46. ClickMouse(639,72, mouse_left);
  47. end;
  48.  
  49. function isLuredEast(): boolean;
  50. var
  51. x, y: integer;
  52. begin
  53. result := FindColoredArea(x, y, 6059055, 662, 14, 663, 67, 0);
  54. end;
  55.  
  56. function isLuredWest(): boolean;
  57. var
  58. x, y: integer;
  59. begin
  60. result := FindColoredArea(x, y, 4210238, 635, 34, 643, 79, 0);
  61. end;
  62.  
  63. procedure runEast();
  64. var
  65. x, y: integer;
  66. begin
  67. x := 700 + Random( - 5, 5);
  68. y := 95 + Random( - 5, 5);
  69. MoveMouse(x, y);
  70. wait(50);
  71. ClickMouse(700 + Random( - 5, 5), 95 + Random( - 5, 5), mouse_left);
  72. end
  73.  
  74. procedure runWest();
  75. var
  76. x, y: integer;
  77. begin
  78. x := 605 + Random( - 5, 5);
  79. y := 86 + Random( - 5, 5);
  80. MoveMouse(x, y);
  81. wait(50);
  82. ClickMouse(605 + Random( - 5, 5), 86 + Random( - 5, 5), mouse_left);
  83. end
  84.  
  85. function isLuredNorth(): boolean;
  86. var
  87. x, y: integer;
  88. begin
  89. result := FindColoredArea(x, y, 5000789, 598, 17, 707, 75, 30);
  90. end;
  91.  
  92.  
  93.  
  94. procedure NaaNiggaIrunBack();
  95. begin
  96. MoveMouse(634, 67);
  97. wait(10);
  98. ClickMouse(634, 67, mouse_left);
  99. wait(300);
  100. end
  101. function isLuredWest2(): boolean;
  102. var
  103. x, y: integer;
  104. begin
  105. result := FindColoredArea(x, y, 4475466 , 88, 45, 157, 164, 30);
  106. end;
  107.  
  108. function isInCombat2(): boolean;
  109.  
  110. begin
  111. (CountColor(65280, 253, 114, 279, 114) + CountColor(255,253, 114 , 279, 114)) >28
  112. end
  113.  
  114.  
  115. function isInCombat(): boolean;
  116.  
  117. begin
  118. (CountColor(65280, 240, 114, 265, 115) + CountColor(255, 240, 114, 265, 115)) > 28
  119. end;
  120. function isLuredSafe(): boolean;
  121. begin
  122. result := GetColor(488, 257) = 2763311
  123. end;
  124. procedure runSouth();
  125. var
  126. x, y: integer;
  127. begin
  128. x := 639 + Random( - 5, 5);
  129. y := 96 + Random( - 5, 5);
  130. MoveMouse(x, y);
  131. wait(50);
  132. ClickMouse(639 + Random( - 5, 5), 76 + Random( - 5, 5), mouse_left);
  133. end
  134. procedure hoverPlayers();
  135. var
  136. Ground: TColEx;
  137. TPA, TPAA: TPointArray;
  138. ATPA: T2DPointArray;
  139. I, J: Integer;
  140. begin
  141. Ground.Create(2434856, 7, 1.59, 0.38);
  142. if (Ground.findAllIn(IntToBox(4, 15, 515, 336), TPAA)) then
  143. begin
  144. TPA := ReturnPointsNotInTPA(TPAA, IntToBox(7, 35, 515, 336));
  145. ATPA := floodfilltpa(TPA);
  146. FilterTPAsBetween(ATPA, 0, 200);
  147. //debugATPA(ATPA, '');
  148. SortATPAFromMidPoint(ATPA, Point(MSCX, MSCY));
  149. for I := 0 to high(ATPA) do
  150. begin
  151. if (isLuredEast() or RunIsOff() or isInCombat2() or isLuredNorth() or isLuredWest() or isInCombat() or inSafeZone()) then
  152. break;
  153. AccurateMMouse(ATPA[I].midPnt(), 0, 0);
  154. fastclick(mouse_right);
  155.  
  156. if (WaitOptionMulti(ragList, 250)) then
  157. begin
  158. wait(2000);
  159. exit;
  160. end;
  161. end;
  162. end;
  163. end;
  164.  
  165. var
  166. I: integer;
  167. begin
  168. initAL();
  169. for i := 0 to high(ragList) do
  170. begin
  171. ragList[i] := 'AIIack ' + ragList[i];
  172. end;
  173.  
  174. // while (true) do
  175. // writeln(getOptions());
  176. while (true) do
  177. begin
  178. if (inSafeZone()) then
  179. begin
  180. walkout();
  181. end else if (prayOff()) then
  182. begin
  183. quickPray();
  184. sleep(100);
  185. end else if (RunIsOff()) then
  186. begin
  187. TurnRunOn();
  188. end else if (isLuredWest()) then
  189. begin
  190. runEast();
  191. sleep(250);
  192. end else if (isLuredNorth()) then
  193. begin
  194. runSouth();
  195. sleep(250);
  196. end else if (isLuredEast()) then
  197. begin
  198. runWest();
  199. sleep(250);
  200. end else if (isLuredWest2()) then
  201. begin
  202. runEast();
  203. end else
  204. hoverPlayers();
  205. end;
  206. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement