Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. !::main()
  2. @::pause
  3. #::exitapp
  4.  
  5. main(){
  6. loop{
  7. ;randomising variables
  8. Random, grax, 430, 455
  9. Random, gray, 295, 311
  10. ;Random, bankx, 375, 391
  11. Random, bankx, 346, 398
  12. Random, banky, 366, 419
  13. Random, depallx, 448, 476
  14. Random, depally, 324, 352
  15. ;Random, firex, 493, 554
  16. Random, firex, 460, 527
  17. Random, firey, 299, 353
  18. Random, fishx, 718, 738
  19. Random, fishy, 422, 440
  20. Random, mouseSpeed, 3, 4
  21. Random, s2, 50, 100
  22. Random, s3, 150, 300
  23. Random, s4, 300, 700
  24. Random, s5, 250, 400
  25. random, s6, 250, 450
  26. Random, cookSleep, 71000, 74000
  27.  
  28. ;click on bank
  29. sleep, s3
  30. Random, s3, 150, 300
  31. Mousemove, bankx, banky, mouseSpeed
  32. Random, mouseSpeed, 3, 4
  33. sleep, s2
  34. Random, s2, 75, 150
  35. click
  36. sleep, s3
  37. Random, s3, 150, 300
  38. sleep s4
  39. Random, s4, 300, 700
  40.  
  41. ;deposits inventory
  42. sleep, s3
  43. Random, s3, 150, 300
  44. Mousemove, depallx, depally, mouseSpeed
  45. Random, mouseSpeed, 3, 4
  46. sleep, s3
  47. Random, s3, 150, 300
  48. click
  49. sleep s4
  50. Random, s4, 300, 700
  51.  
  52.  
  53. ;grabbing fish from bank
  54. Mousemove, grax, gray, mouseSpeed
  55. Random, mouseSpeed, 3, 4
  56. sleep, s2
  57. Random, s2, 75, 150
  58. click
  59. sleep, s2
  60. Random, s2, 50, 100
  61. send {Esc}
  62. sleep, s4
  63.  
  64. ;cooking on fire
  65. sleep, s2
  66. Random, s2, 50, 100
  67. Mousemove, fishx, fishy, mouseSpeed
  68. sleep, s2
  69. Random, s2, 50, 100
  70. click
  71. Random, mouseSpeed, 3, 4
  72. Random, fishx, 718, 738
  73. Random, fishy, 422, 440
  74. sleep, s3
  75. Random, s3, 150, 300
  76. Mousemove, firex, firey, mouseSpeed
  77. Random, mouseSpeed, 3, 4
  78. sleep, s2
  79. Random, s2, 50, 100
  80. click
  81.  
  82. ;pressing space and waiting while cooking
  83. Loop
  84. {
  85. CoordMode, Pixel, Client
  86. PixelSearch, FoundX, FoundY, 505, 442, 505, 442, 0xAC9D81, 0, Fast RGB
  87. }
  88. Until ErrorLevel = 0
  89. If ErrorLevel = 0
  90. {
  91. sleep, s3
  92. send {space}
  93. }
  94. sleep, s3
  95.  
  96. ;checking for level up
  97. bStopLoop := false
  98. SetTimer EndLoop, % cookSleep
  99. Loop{
  100. sleep 250
  101. Loop{
  102. CoordMode, Pixel, Client
  103. PixelSearch, FoundX1, FoundY1, 512, 484, 513, 484, 0xA19376, 0, Fast RGB
  104. }
  105. until ErrorLevel = 0
  106. If ErrorLevel = 0{
  107. sleep, 500
  108. Random, s4, 300, 700
  109. send {space down}
  110. sleep, 300
  111. send {space up}
  112. sleep, 75
  113. main()
  114. }
  115. if bStopLoop
  116. Break
  117. EndLoop:
  118. bStopLoop := True
  119.  
  120.  
  121. sleep, s3
  122. main()
  123. return
  124. }
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement