Advertisement
baller3

The Battle Bricks: Rocket Arena - EZ Farm

Sep 25th, 2024 (edited)
239
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; The Battle Bricks: Rocket Arena - Ez Farm V1.4
  2. ; I am gonna be honest this needs a new name lol (it works with almost any level)
  3. ; Needs v2.0
  4.  
  5. ; Credits
  6. ; Zig (_3xp on Discord), Daanbenan (On Discord)
  7.  
  8. ; Tutorial/How To Use:
  9. ; Press N to start/stop the macro (unless toggle lock is active)
  10. ; Press M to reset the timer to 0
  11. ; Press P to set the timer to timerMax and start SendKeys immediately (unless toggle lock is active)
  12. ; Press Shift + N to toggle the lock on/off (allows typing N and P without triggering the macro while active)
  13. ; Q will be sent for the first 40 seconds, then the sequence Q 1 2 3 4 5 6 7 8
  14.  
  15. ; Compatibility:
  16. ; Resolution Tested (so use this if possible, otherwise edit this script to match): 1920 x 1080
  17. ; Color Filters (all should be compatible, except for grayscale(?)): None, Deuteranopia, Protanopia, Tritanopia
  18.  
  19. toggle := 0
  20. lock := 0
  21. timeElapsed := 0
  22. timerMax := 40
  23.  
  24. N::
  25.     NFire()
  26. return
  27.  
  28. NFire() {
  29.     global toggle, lock, timeElapsed
  30.     if (lock = 0) {
  31.         toggle := !toggle
  32.         if (toggle = 1) {
  33.             SetTimer, SendQ, 1000
  34.             SetTimer, CheckPixel, 20
  35.         } else {
  36.             SetTimer, SendQ, Off
  37.             SetTimer, CheckPixel, Off
  38.             SetTimer, SendKeys, Off
  39.         }
  40.     } else if (lock = 1) {
  41.         SendInput, {N}
  42.     }
  43. }
  44.  
  45. <+N::
  46.     lock := !lock
  47.     if (lock = 1) {
  48.         ToolTip, Toggle lock is ACTIVE
  49.         Sleep, 1000
  50.         ToolTip
  51.     } else {
  52.         ToolTip, Toggle lock is INACTIVE
  53.         Sleep, 1000
  54.         ToolTip
  55.         SetTimer, SendKeys, Off
  56.     }
  57. return
  58.  
  59. M::
  60.     timeElapsed := 0
  61.     if (lock = 1) {
  62.         SendInput, {M}
  63.     }
  64. return
  65.  
  66. P::
  67.     if (toggle = 1) {
  68.         if (lock = 0) {
  69.             timeElapsed := timerMax
  70.             SetTimer, SendQ, Off
  71.             SetTimer, SendKeys, 1000
  72.         }
  73.     } else if (lock = 1) {
  74.         SendInput, {P}
  75.     }
  76. return
  77.  
  78. SendQ:
  79.    timeElapsed++
  80.     if (timeElapsed <= timerMax) {
  81.         Send, q
  82.     } else {
  83.         SetTimer, SendQ, Off
  84.         SetTimer, SendKeys, 1000
  85.     }
  86. return
  87.  
  88. SendKeys:
  89.    Send, q
  90.     Sleep, 100
  91.     Send, e
  92.     Sleep, 100
  93.     Send, 1
  94.     Sleep, 100
  95.     Send, 2
  96.     Sleep, 100
  97.     Send, 3
  98.     Sleep, 100
  99.     Send, 4
  100.     Sleep, 100
  101.     Send, 5
  102.     Sleep, 100
  103.     Send, 6
  104.     Sleep, 100
  105.     Send, 7
  106.     Sleep, 100
  107.     Send, 8
  108. return
  109.  
  110. CheckPixel:
  111.    if (toggle = 1) {
  112.         MouseMove, 893, 970
  113.         Sleep, 10
  114.         MouseMove, 893, 995
  115.         Sleep, 10
  116.         PixelGetColor, color, 893, 995, RGB
  117.         if (color = "0x010101") {
  118.             SetTimer, SendQ, Off
  119.             SetTimer, SendKeys, Off
  120.             Click
  121.             timeElapsed := 0
  122.             SetTimer, SendQ, 1000
  123.         }
  124.     }
  125. return
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement