Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; This macro is made by Der3_Al3arab.
- ; This macro is made to work on either fullscreen or a maximized window.
- ; To start this macro press F1 and if you want to stop it press F1 again and wait a few seconds for it to finish the rest of the code.
- ; Make sure you have followed all the steps and did them correctly or the macro won't work properly.
- ; If you are experiencing any problems re-check the variables values.
- ; IMPORTANT: This macro is made to work on a fixed window size, if you changed the window size you will probably have to re-enter the variables values.
- ; IMPORTANT: if your Ping is high or your FPS is low, the macro will most likely miss the prize.
- ; If you are experiencing any problem DM me on either Twitter or Discord (@Der3_Al3arab)
- ; Ignore these 4 lines.
- #MaxThreadsPerHotKey, 2
- Toggle := 0
- BottomRightX := A_ScreenWidth - 1
- BottomRightY := A_ScreenHeight - 1
- ; Set the value of this to 0 if you DON'T want it to use all of your Tickets. Set it to 1 if you want it to use ALL of your Tickets.
- ; If you set it to 0, you will have to start the macro during the countdown when starting the minigame.
- ; If you set it to 1, you will have to start the macro in front of the claw machine and it will start the minigame by itself.
- UseAllTickets := 1
- ; The coordinates of the "Drop" button in the claw machine minigame.
- DropButtonX :=
- DropButtonY :=
- ; The coordinates of the first pet in the pet selection UI
- PetToUseX :=
- PetToUseY :=
- F1::
- Toggle := !Toggle
- if (UseAllTickets) {
- While (Toggle) {
- Send, E
- Sleep, 250
- PixelSearch, tapX, tapY, 0, 0, BottomRightX, BottomRightY, 0x43EA37, 1, fast, RGB
- While (Toggle && !tapX) {
- Send, E
- Sleep, 250
- PixelSearch, tapX, tapY, 0, 0, BottomRightX, BottomRightY, 0x43EA37, 1, fast, RGB
- }
- if (Toggle) {
- MouseMove, tapX, tapY, 2
- Sleep, 111
- MouseMove, 10, 10, 2, R
- Sleep, 111
- Click,
- Sleep, 250
- }
- if (Toggle) {
- MouseMove, PetToUseX, PetToUseY, 2
- Sleep, 111
- Click,
- Sleep, 250
- }
- PixelSearch, tapX, tapY, 0, 0, BottomRightX, BottomRightY, 0xFB79FF, 3, fast, RGB
- While (Toggle && !tapX) {
- Sleep, 111
- PixelSearch, tapX, tapY, 0, 0, BottomRightX, BottomRightY, 0xFB79FF, 3, fast, RGB
- }
- if (Toggle) {
- MouseMove, tapX, tapY, 2
- Sleep, 111
- MouseMove, 10, 10, 2, R
- Sleep, 111
- Click,
- Sleep, 250
- }
- PixelSearch, tapX1, tapY1, 0, 0, BottomRightX, BottomRightY, 0xFF00FF, 3, fast, RGB
- While (Toggle && !tapX1) {
- Sleep, 25
- PixelSearch, tapX1, tapY1, 0, 0, BottomRightX, BottomRightY, 0xFF00FF, 3, fast, RGB
- }
- MouseMove, DropButtonX, DropButtonY, 2
- While (Toggle && tapX1) {
- Loop 50{
- PixelSearch, tapX, tapY, 0, 0, BottomRightX, BottomRightY, 0x59FD3E, 3, fast, RGB
- if(Toggle && tapX) {
- Click,
- }
- Sleep, 10
- }
- PixelSearch, tapX1, tapY1, 0, 0, BottomRightX, BottomRightY, 0xFF00FF, 3, fast, RGB
- }
- PixelSearch, tapX, tapY, 0, 0, BottomRightX, BottomRightY, 0xFF4646, 3, fast, RGB
- While (Toggle && !tapX) {
- Sleep, 111
- PixelSearch, tapX, tapY, 0, 0, BottomRightX, BottomRightY, 0xFF4646, 3, fast, RGB
- }
- if (Toggle) {
- MouseMove, tapX, tapY, 2
- Sleep, 111
- MouseMove, 5, 5, 2, R
- Sleep, 111
- Click,
- Sleep, 250
- }
- Sleep, 1000
- PixelSearch, tapX, tapY, 0, 0, BottomRightX, BottomRightY, 0xFF4646, 3, fast, RGB
- if (Toggle && tapX) {
- MouseMove, tapX, tapY, 2
- Sleep, 111
- MouseMove, 5, 5, 2, R
- Sleep, 111
- Click,
- Sleep, 250
- }
- }
- } else {
- MouseMove, DropButtonX, DropButtonY, 2
- While (Toggle) {
- PixelSearch, tapX, tapY, 0, 0, BottomRightX, BottomRightY, 0x59FD3E, 3, fast, RGB
- if(tapX) {
- Click,
- }
- Sleep, 25
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement