Advertisement
Guest User

Untitled

a guest
May 3rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. program CocoBuyerByHy71194;
  2. {.include SRL/SRL.scar}
  3.  
  4. const
  5. Username = '';
  6. Password = '';
  7. Nick = '';
  8.  
  9. var totfail,tries,phail,nox, noy:integer;
  10.  
  11. procedure bankstuff;
  12. begin
  13. writeln(' ');
  14. end;
  15.  
  16. procedure findseller;
  17. var cx,cy:integer;
  18. begin
  19. while not FindObjTPA(cx, cy, 5856670, 20, 2, 15, 15, 5, ['okuh']) and not (getcolor(376,190)=2070783) and (tries < 5) do
  20. begin
  21. inc(tries);
  22. GetMousePos(cx,cy);
  23. Mouse(cx,cy,0,0,false);
  24. wait(100+random(300));
  25. chooseoption('rade ');
  26. wait(10);
  27. findnormalrandoms;
  28. while not (getcolor(208,41)=2070783) do
  29. begin
  30. findnormalrandoms;
  31. wait(200+random(300));
  32. inc(phail);
  33. if phail > 70 then
  34. begin
  35. Writeln('Took too long to get to trade screen with guy.');
  36. phail := 0;
  37. bankstuff;
  38. exit;
  39. end;
  40. end;
  41. tries:=0;
  42. phail := 0;
  43. wait(random(300));
  44. mousebox(109,103,124,119,2);
  45. wait(random(40));
  46. chooseoption('y X');
  47. while not (getcolor(216,400) = 0) do
  48. begin
  49. wait(200+random(300));
  50. inc(phail);
  51. if phail > 70 then
  52. begin
  53. Writeln('Took too long to get to get to enter ammount screen');
  54. phail := 0;
  55. bankstuff;
  56. exit;
  57. end;
  58. end;
  59. wait(random(200));
  60. typesend(inttostr(27 + random(972)));
  61. wait(200+random(1500));
  62. closewindow;
  63. bankstuff;
  64. exit;
  65. end;
  66. writeln('phailed to find the guy!..');
  67. inc(totfail);
  68. if totfail > 3 then begin
  69. writeln('failed finding guy too much; terminating the script to keep ur user safe.');
  70. terminatescript;
  71. end;
  72. bankstuff;
  73. end;
  74.  
  75. begin
  76. SetupSRL;
  77. NumberOfPlayers(1);
  78. Players[0].Name := Username;
  79. Players[0].Pass := Password;
  80. Players[0].Nick := Nick;
  81. Players[0].Active := True;
  82. WriteLn('Hy71194 chocolate buyer.');
  83. wait(2000);
  84. activateclient;
  85. wait(3000);
  86. repeat
  87. SymbolAccuracy := 0.5;
  88. if not loggedin then loginplayer;
  89. if not invfull and findsymbol(nox,noy,'water') then
  90. begin
  91. findseller;
  92. end;
  93. if (invcount = 0) and (loggedin) then
  94. begin
  95. writeln('u has no cash or items in ur inv; something is wrong, terminating script;');
  96. terminatescript;
  97. end;
  98. if (invcount <> 0) and (invcount < 29) and (findsymbol(nox,noy,'bank')) then
  99. begin
  100. wait(10);
  101. end;
  102. until false;
  103. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement