Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.62 KB | None | 0 0
  1. program PlankPickingBot;
  2. {$define SMART}
  3. {$I SRL/OSR.simba}
  4. {$I RSWalker/Walker.simba}
  5.  
  6. var
  7. TPA: TpointArray;
  8. x, y, PlankDTM, CCounter, CurrentWorld: Integer;
  9. RSW: TRSWalker;
  10. Antiban: TAntiban;
  11. Starting_pos, Bank_path: TPointArray;
  12.  
  13.  
  14. const
  15. Login_name := 'jofebor@emailapps.in';
  16. Login_passowrd := 'Dketmgwhfv123';
  17. BANK_TILE := Point(409, 615);
  18. STARTING_TILE := Point(485, 612);
  19.  
  20. procedure LDTM;
  21. begin
  22. PlankDTM := DTMFromString('mvQEAAHic1cxhCoJAEIbhbw1R8UeI1GG8SEfoMhohkmURek5TepedI/jHgQdmv5nZk6RnJL3wwRcTRut99saABzq0aFDjhrtlne30SJw08/cPC1aI7ODCLEOOEmfj+wJHm6WIXbjz99dLFR4birXj+gNGGBNh');
  23. end;
  24.  
  25. procedure FDTM;
  26. begin
  27. end;
  28.  
  29. procedure setupAntiban();
  30. begin
  31. Antiban.Init(SKILL_FISHING);
  32.  
  33. Antiban.AddTask([@Antiban.HoverPlayers, ONE_MINUTE*9, 0.33]);
  34. Antiban.AddTask([@Antiban.CheckSkill, ONE_MINUTE*12, 0.33]);
  35. Antiban.AddTask([@Antiban.LoseFocus, ONE_MINUTE* 18, 0.33]);
  36. Antiban.AddBreak([80*ONE_MINUTE, 25*ONE_MINUTE, 0.05, 0.25]);
  37. Antiban.AddTask([@Antiban.RandomCompass, ONE_MINUTE*5, 0.33]);
  38. Antiban.AddTask([@Antiban.OpenRandomTab, ONE_MINUTE*15, 0.33]);
  39. Antiban.AddTask([@Antiban.VeryShortBreak, ONE_MINUTE*20, 0.33]);
  40. end;
  41.  
  42.  
  43. procedure LogInEnd;
  44. begin
  45. Wait(300+random(150));
  46. Mouse.Move(455, 290);
  47. Wait(150+random(150));
  48. Mouse.Click(mouse_Left);
  49. wait(250+random(150));
  50. LoginScreen.EnterLogin('jofebor@emailapps.in');
  51. Wait(150+random(350));
  52. LoginScreen.EnterPassword('Dketmgwhfv123');
  53. wait(250+random(100));
  54. Keyboard.PressKey(13);
  55. wait(5000+random(500));
  56. srl.FindColors(TPA, CTS2(584, 5), Box(273, 300, 485, 376));
  57. Mouse.Move(TPA.Cluster(5).Biggest.Bounds);
  58. wait(150+random(300));
  59. Mouse.Click(mouse_left);
  60. end;
  61.  
  62. procedure LoggingInWorld311;
  63. begin
  64. Mouse.Move(61, 488);
  65. wait(150+random(250));
  66. Mouse.Click(mouse_left);
  67. wait(150+random(250));
  68. Mouse.Move(91, 236);
  69. Wait(50+random(250));
  70. Mouse.Click(mouse_Left);// WORLD 311
  71. CurrentWorld := 311;
  72. LogInEnd;
  73. end;
  74.  
  75. procedure LoggingInWorld312;
  76. begin
  77. Mouse.Move(61, 488);
  78. wait(150+random(250));
  79. Mouse.Click(mouse_left);
  80. wait(150+random(250));
  81. Mouse.Move(96, 254);
  82. Wait(50+random(250));
  83. Mouse.Click(mouse_Left);// WORLD 312
  84. CurrentWorld := 312;
  85. LogInEnd;
  86. end;
  87.  
  88. procedure LoggingInWorld313;
  89. begin
  90. Mouse.Move(61, 488);
  91. wait(150+random(250));
  92. Mouse.Click(mouse_left);
  93. wait(150+random(250));
  94. Mouse.Move(83, 274);
  95. Wait(50+random(250));
  96. Mouse.Click(mouse_Left);// WORLD 313
  97. CurrentWorld := 313;
  98. LogInEnd;
  99. end;
  100.  
  101. procedure LoggingInWorld314;
  102. begin
  103. Mouse.Move(61, 488);
  104. wait(150+random(250));
  105. Mouse.Click(mouse_left);
  106. wait(150+random(250));
  107. Mouse.Move(96, 291);
  108. Wait(50+random(250));
  109. Mouse.Click(mouse_Left);// WORLD 314
  110. CurrentWorld := 314;
  111. LogInEnd;
  112. end;
  113.  
  114.  
  115.  
  116. procedure myAntiban;
  117. begin
  118. if not SRL.IsLoggedIn() then
  119. Exit;
  120.  
  121. SRL.DismissRandom();
  122. Antiban.DoAntiban();
  123. end;
  124.  
  125. procedure WalkTo(Path: TPointArray);
  126. begin
  127. myAntiban();
  128. RSW.WalkPath(Path);
  129. end;
  130.  
  131. procedure StartingPos;
  132. begin
  133. myAntiban();
  134. WalkTo(Starting_Pos);
  135. end;
  136.  
  137. procedure WalkToBank;
  138. begin
  139. myAntiban();
  140. WalkTo(Bank_path);
  141. end;
  142.  
  143. procedure banking;
  144. begin
  145. Wait(500+random(1000));
  146. repeat
  147. srl.FindColors(TPA, CTS2 (1726064, 5), Box(4, 4, 493, 319));
  148. Mouse.Move(TPA.Cluster(5).Biggest.Bounds);
  149. until(MainScreen.IsUpText(['ank chest']));
  150. wait(450+random(350));
  151. Mouse.Click(mouse_left);
  152. wait(2000+random(1000));
  153. BankScreen.DepositAll;
  154. wait(450+random(1000));
  155. StartingPos;
  156. end;
  157.  
  158. procedure InventoryFull;
  159. begin
  160. If Inventory.IsFull then
  161. begin
  162. WalkToBank;
  163. Wait(1000+random(500));
  164. banking;
  165. end;
  166. end;
  167.  
  168. procedure PickUpPlanks;
  169. begin
  170. InventoryFull;
  171. repeat
  172. srl.FindColors(TPA, CTS2 (4021614, 3), Box(4, 4, 514, 337));
  173. Mouse.Move(TPA.Cluster(5).Biggest.Bounds);
  174. until(MainScreen.IsUpText(['lank'], 100));
  175. wait(500+random(300));
  176. Mouse.Click(mouse_left);
  177. wait(3000+random(600));
  178. myAntiban();
  179. end;
  180.  
  181. procedure InventoryEmpty;
  182. begin
  183. If not Inventory.IsFull then
  184. begin
  185. StartingPos;
  186. PickUpPlanks;
  187. end;
  188. end;
  189.  
  190. procedure WorldHopLogin;
  191. begin
  192. if CurrentWorld := 311 then
  193. begin
  194. LoggingInWorld312;
  195. Wait(500+random(250));
  196. PickUpPlanks;
  197. end else
  198. Exit;
  199. if CurrentWorld := 312 then
  200. begin
  201. LoggingInWorld313;
  202. Wait(500+random(250));
  203. PickUpPlanks;
  204. end else
  205. Exit;
  206. if CurrentWorld := 313 then
  207. begin
  208. LoggingInWorld314;
  209. Wait(500+random(250));
  210. PickUpPlanks;
  211. end else
  212. Exit;
  213. if CurrentWorld := 314 then
  214. begin
  215. LoggingInWorld311;
  216. Wait(500+random(250));
  217. PickUpPlanks;
  218. end else
  219. Exit;
  220. end;
  221.  
  222. procedure WorldHop;
  223. var
  224. myTimer: TCountDown;
  225.  
  226. begin
  227. myTimer.Init(10000);
  228. repeat
  229. PickUpPlanks;
  230. until(myTimer.IsFinished);
  231. StartingPos;
  232. Wait(3000+random(400));
  233. Logout.ClickLogout;
  234. WorldHopLogin;
  235. end;
  236.  
  237. procedure SetCamera;
  238. begin
  239. Options.Open;
  240. wait(150+random(250));
  241. Mouse.Move(656, 274);
  242. wait(150+random(200));
  243. Mouse.Click(mouse_left);
  244. wait(200+random(300));
  245. Inventory.Open;
  246. end;
  247.  
  248. procedure MainLoop;
  249. begin
  250. if (not SRL.IsLoggedIn) then
  251. begin
  252. LoggingInWorld311;
  253. MainScreen.SetAngle(True);
  254. SetCamera;
  255. Inventory.Open;
  256. end;
  257. InventoryEmpty;
  258. WorldHop;
  259. end;
  260.  
  261.  
  262. begin
  263. srl.Setup([]);
  264. srl.Options += [soDebugAntiban];
  265. RSW.Init('[2_2].png');
  266. setupAntiban();
  267. Starting_pos := [STARTING_TILE];
  268. Bank_path := [BANK_TILE];
  269. LDTM;
  270. repeat
  271. MainLoop;
  272. until(False);
  273. FDTM;
  274. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement