Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;This macro is made @Der3_Al3arab. Please give credit if you are going to make a video about it.
- ;Set up tutorial can be found in my Youtube Channel.
- ;This macro is made for the Advanced Digsite. If you want the one for the Normal Digsite go here (https://pastebin.com/a5Pw17bH)
- ;Requirements to make it work:
- ;1- This macro is designed to ONLY work on FULLSCREEN, make sure the game is ALWAYS set on fullscreen or it may start clicking random files on your PC.
- ;2- Make your avatar as small as posible. (It must be unable to climb the mine edge without jumping)
- ;3- Make your avatar 1 color that doesnt exist in the digsite (You can use Dark Green, Green, Lime, Sky Blue or White)
- ;4- Make sure to have your Graphics Quality is set to the LOWEST (1) in Roblox. (Shadows in higher quality can/will break this macro)
- ;5- If you have an autoclicker or another macro opened make sure to DISABLE them. (any other macro or autoclicker will miss up the macro)
- ;6- Hide the Player Leaderboard and Chat Box.
- ;7- Hide the Clan Tags.
- ;Warning: This macro may not work on Ultra Wide Monitors.
- ;Don't change the lines below unless you know what you are doing.
- #MaxThreadsPerHotKey, 2
- Toggle := 0
- ;Coordinates Variables
- BottomRightX := A_ScreenWidth - (Ceil(A_ScreenWidth / 20))
- BottomRightY := A_ScreenHeight - 10
- MiddleX := A_ScreenWidth / 2
- MiddleY := A_ScreenHeight / 2
- GoTopBRY := Ceil(A_ScreenHeight / 10)
- BedrockTLX := (A_ScreenWidth / 2) + (Ceil(A_ScreenWidth / 50))
- BedrockTLY := (A_ScreenHeight / 2) - (Ceil(A_ScreenHeight / 8))
- BedrockBRX := (A_ScreenWidth / 2) + (Ceil(A_ScreenWidth / 18))
- BedrockBRY := (A_ScreenHeight / 2) - (Ceil(A_ScreenHeight / 14))
- HomeButtonX1 := (A_ScreenWidth / 2) - (Ceil(A_ScreenWidth / 40))
- HomeButtonX2 := (A_ScreenWidth / 2) + (Ceil(A_ScreenWidth / 40))
- HomeButtonY := (A_ScreenHeight / 2) - (Ceil(A_ScreenHeight / 5))
- ;Colors Variables
- GoTopButton := 0xFF2274
- BedrockColor := 0x0C1114
- ;chest colors
- chestColors := ["0xBE0000", "0xE48100", "0xFE3800", "0x2249F2", "0xFF00FF", "0x980A9A", "0xE900FF", "0x5005E9", "0x980DFF", "0x0B0D2A", "0x071DA0", "0x4767E8", "0x1B5CD5", "0x3273EB", "0x1B41AD"]
- F1::
- Toggle := !Toggle
- Click, up
- ;Aligning Camera
- MouseMove, MiddleX, MiddleY, 2
- Sleep, 252
- Send {RButton down}
- MouseMove, 0, 100, 2, R
- Send {RButton up}
- MouseMove, MiddleX, MiddleY, 2
- Loop 25{
- Send, {WheelUp}
- Sleep, 25
- }
- Sleep, 25
- Loop 9{
- Send, {WheelDown}
- Sleep, 25
- }
- Sleep, 25
- ;Try to break blocks under (if there is)
- if(Toggle){
- MouseMove, middleX, middleY, 2
- Click, down
- Sleep, 1000
- Click, up
- }
- While (Toggle) {
- ;check if you are in the mine
- PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
- if(!inMineX){
- ;go inside the mine
- Random, movefor, 2575, 4004
- Send, {w down}
- Sleep, movefor
- Send, {w up}
- Random, movefor, 1001, 3333
- Send, {d down}
- Sleep, movefor
- Send, {d up}
- Random, movefor, 3963, 4884
- Send, {s down}
- Sleep, movefor
- Send, {s up}
- Random, movefor, 666, 1551
- Send, {a down}
- Sleep, movefor
- Send, {a up}
- Random, movefor, 777, 2772
- Send, {w down}
- Sleep, movefor
- Send, {w up}
- Random, movefor, 0, 1111
- Send, {d down}
- Sleep, movefor
- Send, {d up}
- Random, movefor, 0, 1111
- Send, {a down}
- Sleep, movefor
- Send, {a up}
- ;Break a few blocks
- MouseMove, middleX, middleY, 2
- Click, down
- Sleep, 1000
- Click, up
- }
- ;check if you are underground
- PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
- if(!inMineX){
- ;fall in the hole you dug
- Send, {d down}
- Sleep, 250
- Send, {d up}
- Sleep, 250
- Send, {w down}
- Sleep, 250
- Send, {w up}
- Sleep, 1000
- }
- ;center your character
- Click,
- Send, {s down}
- Sleep, 555
- Send, {s up}
- Click,
- Send, {w down}
- Sleep, 175
- Send, {w up}
- Click,
- Click,
- Send, {a down}
- Sleep, 555
- Send, {a up}
- Click,
- Send, {d down}
- Sleep, 160
- Send, {d up}
- Click,
- ;Checks if you are underground and/or on bedrock
- PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
- PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
- Click, down
- while(Toggle && inMineX && !(OnBedrock)){
- ;Check if there is a chest
- Loop, 15{
- PixelSearch, ChestX, ChestY, 10, 10, BottomRightX, BottomRightY, chestColors[A_Index], 5, fast, RGB
- if(Toggle && ChestX){
- if(HomeButtonX1 <= ChestX && ChestX <= HomeButtonX2 && ChestY > HomeButtonY){
- Sleep, 5
- }else{
- ;Chest found (tries to open it)
- MouseMove, ChestX, ChestY, 2
- Sleep, 33
- }
- }
- Sleep, 5
- }
- MouseMove, middleX, middleY, 2
- Sleep, 333
- ;center your character from time to time
- Random, RN, 1, 20
- if(Toggle && RN = 11){
- Click, up
- Sleep, 111
- Click,
- Send, {s down}
- Sleep, 555
- Send, {s up}
- Click,
- Send, {a down}
- Sleep, 555
- Send, {a up}
- Click,
- PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
- if(!OnBedrock){
- Send, {w down}
- Sleep, 155
- Send, {w up}
- Click,
- Send, {d down}
- Sleep, 111
- Send, {d up}
- Click,
- Sleep, 111
- }
- Click, down
- }
- ;Checks if you are underground and/or on bedrock
- PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
- PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
- if(Toggle && OnBedrock){
- Click, up
- Sleep, 3737
- PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
- PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
- Click,down
- }
- if( Toggle && !inMineX){
- Click, up
- Sleep, 5555
- PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
- PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
- Click, down
- }
- }
- Click, up
- Sleep, 9696
- PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
- if(Toggle && inMineX){
- MouseMove, inMineX, tapY, 2
- MouseMove, 15, 7, 2 ,R
- Click,
- Sleep, 111
- Click,
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement