Advertisement
Der3_Al3arab

Auto Mining (Normal Digsite) V2 - Pet Simulator 99

Oct 5th, 2024
603
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;This macro is made @Der3_Al3arab. Please give credit if you are going to make a video about it.
  2. ;Set up tutorial can be found in my Youtube Channel.
  3.  
  4. ;This macro is made for the Advanced Digsite. If you want the one for the Normal Digsite go here (https://pastebin.com/a5Pw17bH)
  5. ;Requirements to make it work:
  6. ;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.
  7. ;2- Make your avatar as small as posible. (It must be unable to climb the mine edge without jumping)
  8. ;3- Make your avatar 1 color that doesnt exist in the digsite (You can use Dark Green, Green, Lime, Sky Blue or White)
  9. ;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)
  10. ;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)
  11. ;6- Hide the Player Leaderboard and Chat Box.
  12. ;7- Hide the Clan Tags.
  13.  
  14.  
  15. ;Warning: This macro may not work on Ultra Wide Monitors.
  16. ;Don't change the lines below unless you know what you are doing.
  17. #MaxThreadsPerHotKey, 2
  18. Toggle := 0
  19.  
  20. ;Coordinates Variables
  21. BottomRightX := A_ScreenWidth - (Ceil(A_ScreenWidth / 20))
  22. BottomRightY := A_ScreenHeight - 10
  23.  
  24. MiddleX := A_ScreenWidth / 2
  25. MiddleY := A_ScreenHeight / 2
  26.  
  27. GoTopBRY := Ceil(A_ScreenHeight / 10)
  28.  
  29. BedrockTLX := (A_ScreenWidth / 2) + (Ceil(A_ScreenWidth / 50))
  30. BedrockTLY := (A_ScreenHeight / 2) - (Ceil(A_ScreenHeight / 8))
  31. BedrockBRX := (A_ScreenWidth / 2) + (Ceil(A_ScreenWidth / 18))
  32. BedrockBRY := (A_ScreenHeight / 2) - (Ceil(A_ScreenHeight / 14))
  33.  
  34. HomeButtonX1 := (A_ScreenWidth / 2) - (Ceil(A_ScreenWidth / 40))
  35. HomeButtonX2 := (A_ScreenWidth / 2) + (Ceil(A_ScreenWidth / 40))
  36. HomeButtonY := (A_ScreenHeight / 2) - (Ceil(A_ScreenHeight / 5))
  37.  
  38. ;Colors Variables
  39. GoTopButton := 0xFF2274
  40.  
  41. BedrockColor := 0x0C1114
  42.  
  43. ;chest colors
  44. chestColors := ["0xBE0000", "0xE48100", "0xFE3800", "0x2249F2", "0xFF00FF", "0x980A9A", "0xE900FF", "0x5005E9", "0x980DFF", "0x0B0D2A", "0x071DA0", "0x4767E8", "0x1B5CD5", "0x3273EB", "0x1B41AD"]
  45. F1::
  46. Toggle := !Toggle
  47. Click, up
  48. ;Aligning Camera
  49. MouseMove, MiddleX, MiddleY, 2
  50. Sleep, 252
  51. Send {RButton down}
  52. MouseMove, 0, 100, 2, R
  53. Send {RButton up}
  54. MouseMove, MiddleX, MiddleY, 2
  55.  
  56. Loop 25{
  57.     Send, {WheelUp}
  58.     Sleep, 25
  59. }
  60. Sleep, 25
  61. Loop 9{
  62.     Send, {WheelDown}
  63.     Sleep, 25
  64. }
  65. Sleep, 25
  66.  
  67. ;Try to break blocks under (if there is)
  68. if(Toggle){
  69.     MouseMove, middleX, middleY, 2
  70.     Click, down
  71.     Sleep, 1000
  72.     Click, up
  73. }
  74.  
  75. While (Toggle) {
  76.     ;check if you are in the mine
  77.     PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  78.     if(!inMineX){
  79.  
  80.         ;go inside the mine
  81.         Random, movefor, 2575, 4004
  82.         Send, {w down}
  83.         Sleep, movefor
  84.         Send, {w up}
  85.  
  86.         Random, movefor, 1001, 3333
  87.         Send, {d down}
  88.         Sleep, movefor
  89.         Send, {d up}
  90.  
  91.         Random, movefor, 3963, 4884
  92.         Send, {s down}
  93.         Sleep, movefor
  94.         Send, {s up}
  95.  
  96.         Random, movefor, 666, 1551
  97.         Send, {a down}
  98.         Sleep, movefor
  99.         Send, {a up}
  100.        
  101.  
  102.         Random, movefor, 777, 2772
  103.         Send, {w down}
  104.         Sleep, movefor
  105.         Send, {w up}
  106.  
  107.         Random, movefor, 0, 1111
  108.         Send, {d down}
  109.         Sleep, movefor
  110.         Send, {d up}
  111.  
  112.         Random, movefor, 0, 1111
  113.         Send, {a down}
  114.         Sleep, movefor
  115.         Send, {a up}
  116.  
  117.        
  118.         ;Break a few blocks
  119.         MouseMove, middleX, middleY, 2
  120.         Click, down
  121.         Sleep, 1000
  122.         Click, up
  123.     }
  124.  
  125.     ;check if you are underground
  126.     PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  127.  
  128.     if(!inMineX){
  129.         ;fall in the hole you dug
  130.         Send, {d down}
  131.         Sleep, 250
  132.         Send, {d up}
  133.         Sleep, 250
  134.         Send, {w down}
  135.         Sleep, 250
  136.         Send, {w up}
  137.         Sleep, 1000
  138.     }
  139.    
  140.     ;center your character
  141.     Click,
  142.     Send, {s down}
  143.     Sleep, 555
  144.     Send, {s up}
  145.     Click,
  146.     Send, {w down}
  147.     Sleep, 175
  148.     Send, {w up}
  149.     Click,
  150.  
  151.     Click,
  152.     Send, {a down}
  153.     Sleep, 555
  154.     Send, {a up}
  155.     Click,
  156.     Send, {d down}
  157.     Sleep, 160
  158.     Send, {d up}
  159.     Click,
  160.  
  161.     ;Checks if you are underground and/or on bedrock
  162.     PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  163.     PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  164.     Click, down
  165.     while(Toggle && inMineX && !(OnBedrock)){
  166.  
  167.         ;Check if there is a chest
  168.         Loop, 15{
  169.             PixelSearch, ChestX, ChestY, 10, 10, BottomRightX, BottomRightY, chestColors[A_Index], 5, fast, RGB
  170.             if(Toggle && ChestX){
  171.                 if(HomeButtonX1 <= ChestX && ChestX <= HomeButtonX2 && ChestY > HomeButtonY){
  172.                     Sleep, 5
  173.                 }else{
  174.                     ;Chest found (tries to open it)
  175.                     MouseMove, ChestX, ChestY, 2
  176.                     Sleep, 33
  177.                 }
  178.             }
  179.             Sleep, 5
  180.         }
  181.         MouseMove, middleX, middleY, 2
  182.         Sleep, 333
  183.  
  184.         ;center your character from time to time
  185.         Random, RN, 1, 20
  186.         if(Toggle && RN = 11){
  187.             Click, up
  188.  
  189.             Sleep, 111
  190.             Click,
  191.             Send, {s down}
  192.             Sleep, 555
  193.             Send, {s up}
  194.  
  195.             Click,
  196.             Send, {a down}
  197.             Sleep, 555
  198.             Send, {a up}
  199.             Click,
  200.  
  201.             PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  202.  
  203.             if(!OnBedrock){
  204.                 Send, {w down}
  205.                 Sleep, 155
  206.                 Send, {w up}
  207.                 Click,
  208.                 Send, {d down}
  209.                 Sleep, 111
  210.                 Send, {d up}
  211.                 Click,
  212.                 Sleep, 111
  213.             }
  214.  
  215.             Click, down
  216.         }
  217.  
  218.         ;Checks if you are underground and/or on bedrock
  219.         PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  220.         PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  221.         if(Toggle && OnBedrock){
  222.             Click, up
  223.             Sleep, 3737
  224.             PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  225.             PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  226.             Click,down
  227.         }
  228.         if( Toggle && !inMineX){
  229.             Click, up
  230.             Sleep, 5555
  231.             PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  232.             PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  233.             Click, down
  234.         }
  235.     }
  236.     Click, up
  237.     Sleep, 9696
  238.     PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  239.     if(Toggle && inMineX){
  240.         MouseMove, inMineX, tapY, 2
  241.         MouseMove, 15, 7, 2 ,R
  242.         Click,
  243.         Sleep, 111
  244.         Click,
  245.     }
  246.  
  247. }
  248.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement