Advertisement
Guest User

Untitled

a guest
Jan 19th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.98 KB | None | 0 0
  1. {$i srl/srl.simba}
  2.  
  3. const
  4. USERNAME = 'parabot';
  5. PASSWORD = '6135284495';
  6.  
  7. Var
  8. X,Y, tree,DTM_black, count, water:Integer;
  9. Status:String;
  10.  
  11. procedure proggy; //idea from rj
  12. begin
  13. cleardebug;
  14. writeln('Oral Time ~~ Exiled Nser');
  15. writeln(' Time Running: '+ MsToTime(GetTimeRunning,3))
  16. exit;
  17. end;
  18.  
  19. Procedure MouseBox1(X1, Y1, X2, Y2: Integer; ClickType: Integer);
  20. Begin
  21. MMouse(RandomRange(X1,X2),RandomRange(Y1,Y2),0,0);
  22. ClickMouse2(ClickType);
  23. Wait(RandomRange(20,50));
  24. End;
  25.  
  26. function IsLoggedIn: boolean;
  27. begin
  28. if not findcolortolerance(x, y, 1226218, 664, 163, 669, 177, 40) then
  29. begin
  30. result := true
  31. end else
  32. begin
  33. result := false
  34. end;
  35. end;
  36. procedure setmeup;
  37. begin
  38. //Status := ('Setting up');
  39. // proggy;
  40. sleep(500);
  41. //rsps_prayercheck();
  42. sleep(500);
  43. MouseBox1(538,35,555,55, mouse_left);
  44. end;
  45.  
  46. procedure login;
  47. begin
  48. if (isloggedIn) then
  49. begin
  50. exit;
  51. end else
  52. begin
  53. wait(1000);
  54. movemouse(453, 363);
  55. Wait(100);
  56. clickmouse(x, y, mouse_left);
  57. wait(200);
  58. movemouse(383, 212);
  59. //Status := 'Entering Username';
  60. //proggy;
  61. Wait(100);
  62. clickmouse(x, y, mouse_left);
  63. count := 0;
  64. repeat
  65. Inc(count);
  66. PressKey(VK_Back);
  67. until count > 25;
  68. Wait(1000);
  69. typesend(USERNAME);
  70. wait(1000);
  71. count := 0;
  72. repeat
  73. Inc(count);
  74. PressKey(VK_Back);
  75. until count > 25;
  76. Wait(250);
  77. typesend(PASSWORD);
  78. //Status := ('logging in');
  79. //proggy;
  80. Wait(5000);
  81. setmeup;
  82. end;
  83. end;
  84. Procedure LoadDTM;
  85. Begin
  86. tree := DTMFromString('mQwAAAHicY2ZgYLBmYmCwAWI7IE4B8jOAOBGI7Y0FGUzVhBjMtcQZuIB8GGZEwkAAAJaiA3U=');
  87. water := DTMFromString('mQwAAAHicY2ZgYFjKxMCwkAlC5wL52UBcAMSFgUIM7x6uZnh7UZlBEsiHYUYkDAQAZCAIug==');
  88. DTM_Black := BitmapFromString(4, 5, 'meJxjY2JmIxcBABquAN0=');
  89. End;
  90.  
  91. Procedure FreeMem;
  92. Begin
  93. FreeBitmap(DTM_black);
  94. freeDTM(water);
  95. freeDTM(tree);
  96. End;
  97.  
  98. function DebugTPA(Points: TPointArray; BmpName: string): Boolean;
  99. var
  100. Bmp: integer;
  101. Box : TBox;
  102. TempTPA : TPointArray;
  103. begin
  104. Box := GetTPABounds(Points);
  105. Bmp := BitmapFromClient(Box.x1,Box.y1,Box.x2,Box.y2);
  106. TempTPA := CopyTPA(Points);
  107. OffsetTPA(TempTPA,Point(-box.x1,-box.y1));
  108. DrawTPABitmap(Bmp,TempTPA,clRed);
  109. DisplayDebugImgWindow(box.x2-Box.x1 + 1, box.y2-box.y1 + 1);
  110. DrawBitmapDebugImg(Bmp);
  111. if bmpname <> '' then
  112. SaveBitmap(Bmp, ScriptPath + BmpName +'.bmp');
  113. FreeBitmap(Bmp);
  114. Result := True;
  115. end;
  116. function rsps_getUpText:string;
  117. var
  118. blueTPA: tpointarray;
  119. blueATPA: t2dpointarray;
  120. begin
  121. FindColorsTolerance(blueTPA, 15593993, 0, 0, 294, 29, 255);
  122. if (length(blueTPA) > 1) then
  123. blueATPA := splitTPAEx(blueTPA, 1, 10);
  124. sortATPAFromFirstPointX(blueATPA, point(0, 0));
  125. result:= getTextATPA(blueATPA, 5, 'UpChars');
  126. //DebugTPA(blueTPA, 'bmp');
  127. end;
  128.  
  129. Function rspsIsUpTextMultiCustom(Text: TStringArray): Boolean;
  130. Var
  131. TheText: String;
  132. i, n: Integer;
  133. Begin
  134. TheText := rsps_getUpText;
  135. n := High(Text);
  136. For i := 0 to n do
  137. If (Pos(Text[i], TheText) > 0) then
  138. Begin
  139. Result := True;
  140. Exit;
  141. End;
  142. End;
  143.  
  144. Function rsps_prayercheck(): Boolean;
  145. Var
  146. X,Y:Integer;
  147. Begin
  148. wait(100);
  149. MouseBox1(711,176,724,194, mouse_left);
  150. Begin
  151. If (Not FindColorTolerance(X,Y,7185335,593,280,613,287,13)) Then
  152. begin
  153. wait(100);
  154. MouseBox1(597,290,615,304, mouse_left);
  155. wait(200);
  156. end;
  157. If (Not FindColorTolerance(X,Y,7185335,666,245,683,260,13)) Then
  158. begin
  159. wait(100);
  160. MouseBox1(669,252,691,270, mouse_left);
  161. wait(400);
  162. end;
  163. End;
  164. Result:=True;
  165. end;
  166.  
  167. procedure EnterPortal;
  168. Var
  169. TPAA: T2DPointArray;
  170. TPA: TPointArray;
  171. CTS, clicked, I: Integer;
  172. Begin
  173. count := 0
  174. repeat
  175. inc(count);
  176. presskey(40);
  177. until count > 25;
  178. rsps_prayercheck;
  179. CTS := GetColorToleranceSpeed;
  180. ColorToleranceSpeed(2);
  181. setcolorspeed2modifiers(0.25, 0.12);
  182. if FindColorsSpiralTolerance(61, 31, TPA, 11515077, 0, 0, 516, 336, 20) then
  183. begin
  184. ColorToleranceSpeed(CTS);
  185. TPAA := TPAToATPAEx(TPA, 30, 30);
  186. SortATPASize(TPAA, True);
  187. For I := 0 To High(TPAA) Do
  188. If GetArraylength(TPAA[i]) > 20 Then
  189. Begin
  190. MiddleTPAEx(TPAA[i], x, y);
  191. MMouse(X, Y, 3, 3);
  192. If (rspsIsUpTextMultiCustom(['safe'])) Then
  193. begin
  194. clickmouse(x, y, mouse_left);
  195. wait(100);
  196. MouseBox1(534,12,550,28, mouse_left);
  197. wait(randomrange(9000, 13000));
  198. exit;
  199. end else
  200. KeyDown(39);
  201. wait(100);
  202. KeyUp(39);
  203. wait(10);
  204. end else
  205. KeyDown(39);
  206. wait(100);
  207. KeyUp(39);
  208. wait(10);
  209. end else
  210. KeyDown(39);
  211. wait(100);
  212. KeyUp(39);
  213. wait(10);
  214. end;
  215.  
  216. function inClw: boolean;
  217. begin
  218. wait(50)
  219. if findDTM(water, x, y, 547, 1, 702, 164) then
  220. begin
  221. result := true
  222. wait(500)
  223. EnterPortal;
  224. end else
  225. begin
  226. result := false
  227. end;
  228. end;
  229.  
  230. function walkin(): boolean;
  231. var
  232. a, b, Dist_To_Black:Integer;
  233. x, y, i: Integer;
  234. colours1: TIntegerArray;
  235. Begin
  236. if (inClw) then exit;
  237. if (FlagPresent) then exit;
  238. colours1 := [1052319,1118354,1383811, 527318, 724686, 461536]
  239. for i := 0 to High(colours1) do
  240. begin
  241. if FindColorTolerance(x, y, colours1[i], 607, 79, 620, 83, 60) then
  242. begin
  243. wait(randomrange(50, 500));
  244. mousebox1(620, 72, 641, 79, mouse_left);
  245. wait(randomrange(2000, 3000));
  246. MouseBox1(534,12,550,28, mouse_left);
  247. wait(500);
  248. end;
  249. if FindColorTolerance(x, y, colours1[i], 607, 65, 620, 83, 60) then
  250. begin
  251. wait(randomrange(50, 500));
  252. mousebox1(620, 60, 641, 67, mouse_left);
  253. wait(randomrange(2000, 3000));
  254. MouseBox1(534,12,550,28, mouse_left);
  255. wait(500);
  256. end;
  257. end;
  258. end;
  259.  
  260. procedure runsouth;
  261. begin
  262. mmouse(627, 97, 4, 4)
  263. wait(10);
  264. clickmouse(x, y, mouse_left);
  265. end;
  266.  
  267. procedure runwest;
  268. begin
  269. mmouse(605, 78, 5, 5)
  270. wait(10);
  271. clickmouse(x, y, mouse_left);
  272. end;
  273.  
  274. procedure runeast;
  275. begin
  276. mmouse(652, 84, 4, 4)
  277. wait(10);
  278. clickmouse(x, y, mouse_left);
  279. end;
  280.  
  281. procedure antilure;
  282. var
  283. a, b, Dist_To_Black:Integer;
  284. Begin
  285. findbitmaptolerancein(DTM_black, a, b, 611, 104, 652, 164, 35)
  286. Dist_To_Black := Distance(a,b,627,85);
  287. //Writeln('Current Distance from Bank symbol:' + ToStr(Dist_To_Black))
  288. If (Dist_To_black >= 58) and
  289. (Dist_To_black < 600) then
  290. begin
  291. wait(randomrange(10, 20));
  292. mousebox1(623, 108, 632, 112, mouse_left);
  293. wait(randomrange(10,20));
  294. end;
  295. If findcolortolerance(x, y,5401142, 659, 31, 675, 41, 25) then
  296. RunWest();
  297. If findcolortolerance(x, y,5007472, 607, 18, 617, 118, 10) then
  298. RunSouth();
  299. If finddtm(tree, x, y, 570, 70, 616, 124) then
  300. RunEast();
  301. end;
  302.  
  303. Begin
  304. setupsrl;
  305. mouseresetclientarea;
  306. imageresetclientarea;
  307. LoadDTM;
  308. Repeat
  309. login;
  310. proggy;
  311. inClw();
  312. walkin();
  313. antilure;
  314. Until False;
  315. AddOnTerminate('FreeMem');
  316. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement