Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. program RUNME;
  2. {$DEFINE SMART}
  3. {$i AeroLib/AeroLib.Simba}
  4.  
  5. var
  6. i, i2, i3, OreXP, FailedDrops, LoadsDone, rI, rI2, x, y, Color, Tolerance, image : Integer;
  7. SatMod, HueMod, ColorSettings, Calcs: Extended;
  8. ScreenBounds: TBox;
  9. TPA, TPA2 : TPointArray;
  10. ATPA, ATPA2 : T2DPointArray;
  11.  
  12. const
  13. //Fill Out These Forms To Start Mining!
  14. ORE = 'COAL'; // All caps!
  15. ORESTOMINE = 5000;
  16.  
  17. P_USERNAME = '';
  18. P_PASSWORD = '';
  19. P_NICKNAME = '';
  20. P_MEMBER = false;
  21. P_PIN = '';
  22. P_LAMPSKILL = SKILL_MINING;
  23.  
  24. procedure declarePlayer();
  25. begin
  26. Me.Name := P_USERNAME;
  27. Me.Pass := P_PASSWORD;
  28. Me.Pin := P_PIN;
  29. Me.Nick := P_NICKNAME;
  30. Me.LampSkill := P_LAMPSKILL;
  31. Me.Member := P_MEMBER;
  32. Me.Active := True;
  33. end;
  34.  
  35. procedure DoAntiBan();
  36. var
  37. cases: Integer;
  38. begin
  39. case cases := random(14) of
  40. 1..4: hoverSkill('mining', false);
  41. 5..6: SleepAndMoveMouse(1500 + random(3000));
  42. 7..14:
  43. begin
  44. MMouseOffClient('rand');
  45. wait(1800 + random(5000));
  46. end;
  47. 0: wait(((120 + random(120)) * 1000) + random(4000));
  48. end;
  49. end;
  50.  
  51. procedure DoAntiBan2();
  52. var
  53. cases: integer;
  54. begin
  55. case cases := random(20) of
  56. 0: wait(19000 + random(60000));
  57. 1..6:
  58. begin
  59. MMouseOffClient('rand');
  60. wait(1800 + random(5000));
  61. end;
  62. 7..11: randomRClick();
  63. 12..19: hoverSkill('mining', false);
  64. end;
  65. end;
  66.  
  67. function FindOre(): boolean;
  68. begin
  69. SetColorToleranceSpeed(2);
  70. case (ORE) of
  71. 'IRON':
  72. begin
  73. Color := 2372175;
  74. Tolerance := 2;
  75. SetToleranceSpeed2Modifiers(0.31, 0.70);
  76. OreXP := 35;
  77. end;
  78. 'COAL':
  79. begin
  80. Color := 1582887;
  81. Tolerance := 5;
  82. SetToleranceSpeed2Modifiers(0.00, 0.88);
  83. OreXP := 50;
  84. end;
  85. end;
  86. if FindColorsSpiralTolerance(MSCX, MSCY, TPA, Color, MSX1, MSY1, MSX2, MSY2, Tolerance) then
  87. begin
  88. result := true;
  89. ATPA := ClusterTPAEx(TPA, 30, 30);
  90. FilterTPADist(TPA, 10);
  91. SortATPASize(ATPA, True);
  92. end;
  93. end;
  94.  
  95. Function FindEmptyOre() : boolean;
  96. begin
  97. SetColorToleranceSpeed(2);
  98. if FindColorsSpiralTolerance(MSCX, MSCY, TPA2, 3487032, MSX1, MSY1, MSX2, MSY2, 6) then
  99. begin
  100. result := true;
  101. ATPA2 := ClusterTPAEx(TPA2, 30, 30);
  102. FilterTPADist(TPA2, 10);
  103. SortATPASize(ATPA2, True);
  104. end;
  105. end;
  106.  
  107.  
  108. procedure Proggy();
  109. begin
  110. ClearDebug();
  111. Writeln('[======================================================]');
  112. Writeln('| Joopii´s AIO Miner ');
  113. Writeln('| ------------------- ');
  114. WriteLn('|'+' ' + intToStr((LoadsDone * 27) - FailedDrops) + ' Ores Mined');
  115. WriteLn('|'+' ' + 'Time Run: ' + TimeRunning());
  116. WriteLn('|'+' ' + floatToStr((( 3600000 / getTimeRunning()) * ((LoadsDone * 27) - FailedDrops)) * OreXP) + ' XP / H');
  117. Writeln('[======================================================]');
  118. end;
  119.  
  120. procedure WaitWhileMining();
  121. begin
  122. rI := 0;
  123. repeat
  124. wait(270 + random(250));
  125. rI := rI + 1;
  126. until (getInvCount() = i) or (rI > 4);
  127. i3 := randomrange(0,10);
  128. if i3 > 9 then
  129. begin
  130. writeLn('Doing Antiban.');
  131. DoAntiBan2();
  132. end;
  133. i := GetInvCount();
  134. if isInvFull then
  135. exit();
  136. while CountColorTolerance(Color, MSX1, MSY1, MSX2, MSY2, Tolerance) < 20 do
  137. wait(200 + random(200));
  138. end;
  139.  
  140. procedure MineOres();
  141. begin
  142. MouseSpeed := 7;
  143. repeat
  144. i := getInvCount();
  145. rI := 0;
  146. getMousePos(x, y);
  147. if isUpTextMulti(['Min', 'ine', 'Roc', 'ocks']) and FindColorsSpiralTolerance(MSCX, MSCY, TPA, Color, (x - 15), (y - 15), (x + 15), (y + 15), Tolerance) then
  148. begin
  149. FastClick(MOUSE_LEFT);
  150. i := (i + 1);
  151. if FindEmptyOre() then
  152. missMouse(middleTPA(ATPA2[0]), 8, 6);
  153. WaitWhileMining();
  154. end else
  155. if isUpTextMulti(['Attack', 'ttack', 'Atta']) then
  156. begin
  157. FastClick(MOUSE_RIGHT);
  158. if ChooseOption('Mine') then
  159. i := (i + 1);
  160. if FindEmptyOre() then
  161. missMouse(middleTPA(ATPA2[0]), 8, 6);
  162. WaitWhileMining();
  163. end;
  164.  
  165. if FindOre() and (i < 28) then
  166. begin
  167. Wait(250 + random(200));
  168. missMouse(middletpa(atpa[0]), 8, 6);
  169. end;
  170.  
  171. until IsInvFull();
  172. LoadsDone := (LoadsDone + 1);
  173. i2 := randomrange(1, 23);
  174.  
  175. if i2 < 18 then
  176. begin
  177. writeLn('Doing Antiban.');
  178. DoAntiBan();
  179. end;
  180. end;
  181.  
  182. procedure DropItems();
  183. begin
  184. MouseSpeed := 11;
  185. i := 1;
  186. if IsInvFull() then
  187. repeat
  188. i := (i + 1);
  189. interactSlot(i, false);
  190. wait(200 + random(200));
  191. case rI := random(22) of
  192. 1..21: chooseOption('Drop');
  193. 22:
  194. begin
  195. chooseOption('amine');
  196. i := (i - 1);
  197. end;
  198. end;
  199. until i = 28;
  200. FailedDrops := (FailedDrops + (GetInvCount() - 1));
  201. end;
  202.  
  203.  
  204. begin
  205. DeclarePlayer();
  206. initAL();
  207. LoginPlayer(false);
  208. repeat
  209. MineOres();
  210. proggy();
  211. DropItems();
  212. until LoadsDone = ORESTOMINE;
  213. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement