Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. {$i AeroLib/AeroLib.Simba}
  2.  
  3. var
  4. aFound: Extended;
  5. item_overload: TItem;
  6. obj_prayericon : TItem;
  7. item_Absorb : TItem;
  8. item_cake : TItem;
  9. minimap : TBox;
  10. invbox1 : TBox;
  11. phealth : Integer;
  12. absorbtimer : Integer;
  13.  
  14. procedure flicpray;
  15. var
  16. pnt : TPoint;
  17. x ,y : Integer;
  18. begin
  19. writeln('Flicking Pray');
  20. if obj_prayericon.findIn(minimap,pnt) then
  21. begin
  22. humanMMouse(pnt,2,2);
  23. wait(50+random(20));
  24. ClickMouse(x,y,mouse_Left);
  25. wait(400+random(100));
  26. ClickMouse(x,y,mouse_Left);
  27. end
  28. end
  29.  
  30. procedure drinkoverload;
  31. var
  32. pnt : TPoint;
  33. x ,y : Integer;
  34. begin
  35. writeln('Drinking overload');
  36. if item_overload.findIn(invbox1,pnt) then
  37. begin
  38. humanMMouse(pnt,2,2);
  39. wait(50+random(20));
  40. ClickMouse(x,y,mouse_Left);
  41. wait(100+random(20));
  42. flicpray;
  43. end
  44. end
  45.  
  46.  
  47. procedure drinkabsorb;
  48. var
  49. pnt : TPoint;
  50. x ,y : Integer;
  51. begin
  52. writeln('Drinking Absorb');
  53. if item_absorb.findIn(invbox1,pnt) then
  54. begin
  55. humanMMouse(pnt,2,2);
  56. wait(50+random(20));
  57. ClickMouse(x,y,mouse_Left);
  58. wait(100+random(20));
  59. absorbtimer := 0;
  60. end
  61. end
  62.  
  63.  
  64. procedure createItems;
  65. begin
  66. item_overload.Name := 'Overload';
  67. obj_prayericon.Name := 'prayer';
  68. item_cake.Name := 'Dwarven rock cake';
  69. item_absorb.Name := 'Absorb';
  70. item_overload.DTM:= DTMFromString('mggAAAHicY2NgYLjGwsBwF4jPA/FFIL4DpauYGBiKgLgEiAuAuA6KBfn4gLoYMTAXA3aAqRKCIQAAaUMIOQ==');
  71. obj_prayericon.DTM := DTMFromString('mbQAAAHicY2VgYMhnYWAoAeJUIE6Hsi8wMjCcAOKTQHwZitds3sCgKWfL4G6SxWCuEcggL6HPIALUj44ZsWAwAAAq6QtA');
  72. item_cake.DTM := DTMFromString('mbQAAAHicY2VgYHBiYmAwB2J3ILYFYm8gfgEUfwPEH4D4DhA/AuLSbH8gyYiCFRkwASMWDAYAMLoHMw==');
  73. item_absorb.DTM := DTMFromString('mbQAAAHicY2VgYHBiYmDwAmJLILYBYjcgFmVkYOAHYj4g5gBidiBev2s/UDUjClYEkuiYEQsGAwA64wRz');
  74. end;
  75.  
  76.  
  77. procedure startafk;
  78. var
  79. prayflictimer : Integer;
  80. begin
  81. repeat
  82. begin
  83. prayflictimer := 0;
  84. repeat
  85. begin
  86. mouseSpeed := Random(16, 28);
  87. flicpray;
  88. wait(45000+random(5000));
  89. Inc(absorbtimer);
  90. end
  91. until (getCurrentHealth() >= 20);
  92. flicpray;
  93. drinkoverload;
  94. if (absorbtimer > 20) then
  95. begin
  96. drinkabsorb;
  97. end
  98. wait(8000+random(300));
  99. end
  100. until (false);
  101. end;
  102.  
  103.  
  104. procedure setupplayer;
  105. var
  106. pnt : TPoint;
  107. x ,y : Integer;
  108. counter : Integer;
  109. begin
  110. if item_overload.findIn(invbox1,pnt) then
  111. begin
  112. Writeln('Found Overload');
  113. humanMMouse(pnt,2,2);
  114. wait(500+random(300));
  115. ClickMouse(x,y,mouse_Left);
  116. wait(100+random(100));
  117. end
  118. wait(500+random(300));
  119. flicpray;
  120. repeat
  121. if item_absorb.findIn(invbox1,pnt) then
  122. begin
  123. Writeln('Found Absorb');
  124. humanMMouse(pnt,2,2);
  125. wait(500+random(300));
  126. ClickMouse(x,y,mouse_Left);
  127. wait(500+random(100));
  128. Inc(Counter);
  129. end
  130. until (counter = 20)
  131. end
  132.  
  133. procedure eatcake;
  134. var
  135. pnt : TPoint;
  136. x ,y : Integer;
  137. counter : Integer;
  138. begin
  139. repeat
  140. if item_cake.findIn(invbox1,pnt) then
  141. begin
  142. Writeln('Found Cake');
  143. humanMMouse(pnt,2,2);
  144. wait(500+random(300));
  145. ClickMouse(x,y,mouse_Right);
  146. wait(100+random(100));
  147. chooseOption('Guzzle')
  148. end
  149. until (getCurrentHealth() <= 70)
  150. repeat
  151. if item_cake.findIn(invbox1,pnt) then
  152. begin
  153. humanMMouse(pnt,2,2);
  154. wait(500+random(300));
  155. ClickMouse(x,y,mouse_Left);
  156. wait(900+random(300));
  157. end
  158. until (getCurrentHealth() <= 51)
  159. end
  160.  
  161.  
  162. procedure mainLoop;
  163. begin
  164. eatcake;
  165. setupplayer;
  166. flicpray;
  167. startafk;
  168. end
  169.  
  170.  
  171. begin
  172. initAL;
  173. minimap := ToBox(500, 91, 600, 130);
  174. invbox1 := ToBox(550, 208, 735, 465);
  175. createitems;
  176. mouseSpeed := Random(16, 28);
  177. mainLoop;
  178. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement