Guest User

Untitled

a guest
Feb 2nd, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.76 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(50,100));
  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(6000, 7000));
  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(500)
  219. if findDTM(water, x, y, 547, 1, 702, 164) then
  220. begin
  221. result := true
  222. wait(50)
  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 := [1515121, 1778265, 1449082, 1251941]
  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. Result := True
  244. begin
  245. wait(randomrange(50, 500));
  246. mousebox1(620, 72, 641, 79, mouse_left);
  247. wait(randomrange(2000, 3000));
  248. MouseBox1(534,12,550,28, mouse_left);
  249. wait(500);
  250. end;
  251. end else
  252. end;
  253. end;
  254. procedure runsouth;
  255. begin
  256. mmouse(627, 97, 4, 4)
  257. wait(10);
  258. clickmouse(x, y, mouse_left);
  259. end;
  260.  
  261. procedure runwest;
  262. begin
  263. mmouse(599, 76, 5, 5)
  264. wait(10);
  265. clickmouse(x, y, mouse_left);
  266. end;
  267.  
  268. procedure runeast;
  269. begin
  270. mmouse(652, 84, 4, 4)
  271. wait(10);
  272. clickmouse(x, y, mouse_left);
  273. end;
  274.  
  275. procedure antilure;
  276. var
  277. a, b, Dist_To_Black:Integer;
  278. Begin
  279. findbitmaptolerancein(DTM_black, a, b, 611, 104, 652, 164, 35)
  280. Dist_To_Black := Distance(a,b,627,85);
  281. //Writeln('Current Distance from Bank symbol:' + ToStr(Dist_To_Black))
  282. If (Dist_To_black >= 58) and
  283. (Dist_To_black < 600) then
  284. begin
  285. wait(randomrange(50, 1000));
  286. mousebox1(623, 108, 632, 112, mouse_left);
  287. wait(randomrange(500,1000));
  288. end;
  289. If findcolortolerance(x, y,5401142, 659, 31, 675, 41, 25) then
  290. RunWest();
  291. If findcolortolerance(x, y,5007472, 607, 18, 617, 118, 10) then
  292. RunSouth();
  293. If finddtm(tree, x, y, 570, 70, 616, 124) then
  294. RunEast();
  295. end;
  296.  
  297. Begin
  298. setupsrl;
  299. mouseresetclientarea;
  300. imageresetclientarea;
  301. LoadDTM;
  302. Repeat
  303. login;
  304. proggy;
  305. inClw();
  306. walkin();
  307. antilure;
  308. Until False;
  309. AddOnTerminate('FreeMem');
  310. End.
Add Comment
Please, Sign In to add comment