Guest User

Untitled

a guest
Jul 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. procedure PickBanana;
  2. Var
  3. x, y : Integer;
  4. TPA : TPointArray;
  5. MyPoint : TPoint;
  6. I : Integer;
  7.  
  8. begin
  9. if FindColorsSpiralTolerance(MSCX,MSCY,TPA, 6336583, MSX1, MSY1, MSX2, MSY2, 17) then
  10. begin
  11. for i:=0 to high(TPA) do
  12. MyPoint :=TPA[i];
  13. x := MyPoint.x + random(2);
  14. y := MyPoint.y + random(2);
  15. MMouse(x,y,0,0);
  16. if WaitUpTextMulti(['ick','nanas'],2500) then
  17. begin
  18. wait(700+Random(100,250));
  19. Mouse(x,y,0,0,true);
  20. wait(900+Random(100,255));
  21. end;
  22. end;
  23. end;
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. procedure MainLoop;
  36. begin
  37. WalkToPort;
  38. TalkWithNPC;
  39. GoToBananas;
  40. repeat
  41. if(not(loggedin)) then
  42. Exit;
  43. PickBanana;
  44. until(InvFull);
  45. end;
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. begin
  55. //{$IFDEF SMART}
  56. // Smart_Server := 0;
  57. // Smart_Members := True;
  58. // Smart_Signed := True;
  59. // Smart_SuperDetail := False;
  60. //{$ENDIF}
  61. SetUpSRL();
  62. ActivateClient();
  63. DeclarePlayers();
  64. LoginPlayer();
  65. repeat
  66. Wait(1000)
  67. until(RsReady());
  68. MainLoop;
  69.  
  70. end.
Add Comment
Please, Sign In to add comment