Advertisement
Der3_Al3arab

Auto Mining (Advanced Digsite) V2 - Pet Simulator 99

Apr 11th, 2024 (edited)
3,678
0
Never
2
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 (https://youtu.be/-aWRAXVMJOI)
  3.  
  4. ;This macro is made for the Advanced Digsite. If you want the one for the Normal Digsite go here (https://pastebin.com/HsTkXarB)
  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 small. (smaller = better Field Of View)
  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- If you have an autoclicker or another macro opened make sure to DISABLE them. (any other macro or autoclicker will miss up the macro)
  10. ;5- Hide the Player Leaderboard and Chat Box.
  11. ;6- Make sure you have Empty Buckets otherwise you will get stuck in a Pool of Magic.
  12.  
  13. ;Optional/Recommended:
  14. ;1- Make sure to have your Graphics Quality is set to the LOWEST (1) in Roblox. (Shadows in higher quality may break this macro)
  15. ;2- Hide the Clan Tags. (only required if your Clan has a Medal)
  16. ;3- Disable Voice Chat and Camera in Roblox.
  17.  
  18. ;Warning: This macro may not work on Ultra Wide Monitors.
  19. ;Don't change the lines below unless you know what you are doing.
  20. #MaxThreadsPerHotKey, 2
  21. Toggle := 0
  22.  
  23. ;Coordinates Variables
  24. BottomRightX := A_ScreenWidth - (Ceil(A_ScreenWidth / 22))
  25. BottomRightY := A_ScreenHeight - 10
  26.  
  27. MiddleX := A_ScreenWidth / 2
  28. MiddleY := A_ScreenHeight / 2
  29.  
  30. GoTopBRY := Ceil(A_ScreenHeight / 10)
  31.  
  32. BedrockTLX := (A_ScreenWidth / 2) - (Ceil(A_ScreenWidth / 18))
  33. BedrockTLY := (A_ScreenHeight / 2) - (Ceil(A_ScreenHeight / 8))
  34. BedrockBRX := (A_ScreenWidth / 2) + (Ceil(A_ScreenWidth / 18))
  35. BedrockBRY := (A_ScreenHeight / 2) - (Ceil(A_ScreenHeight / 14))
  36.  
  37. HomeButtonX1 := (A_ScreenWidth / 2) - (Ceil(A_ScreenHeight / 16))
  38. HomeButtonX2 := (A_ScreenWidth / 2) + (Ceil(A_ScreenHeight / 16))
  39. HomeButtonY1 := A_ScreenHeight - (Ceil(A_ScreenHeight / 5))
  40. HomeButtonY2 := A_ScreenHeight - (Ceil(A_ScreenHeight / 5)) + (Ceil(A_ScreenHeight / 8))
  41.  
  42. ;Colors Variables
  43. GoTopButton := 0xFF2274
  44.  
  45. BedrockColor := 0x0C1114
  46.  
  47. MagicColor := 0xA200FF
  48.  
  49. HomeButtonColor := 0xFCA901
  50. ;chest colors
  51. chestColors := ["0xBE0000", "0xE48100", "0xFE3800", "0x2249F2", "0xFF00FF", "0x980A9A", "0xE900FF", "0x5005E9", "0x980DFF", "0x0B0D2A", "0x071DA0", "0x4767E8", "0x1B5CD5", "0x3273EB", "0x1B41AD"]
  52. F1::
  53. Toggle := !Toggle
  54. if(Toggle){
  55.     Click, up
  56.     ;Aligning Camera
  57.     MouseMove, MiddleX, MiddleY, 2
  58.     Sleep, 252
  59.     Send {RButton down}
  60.     MouseMove, 0, 100, 2, R
  61.     Send {RButton up}
  62.     Sleep, 252
  63.     MouseMove, MiddleX, MiddleY, 2
  64.  
  65.     Loop 25{
  66.         Send, {WheelUp}
  67.         Sleep, 25
  68.     }
  69.     Sleep, 25
  70.     Loop 9{
  71.         Send, {WheelDown}
  72.         Sleep, 25
  73.     }
  74.     Sleep, 25    
  75. }
  76.  
  77.  
  78. ;Try to break blocks under (if there is)
  79. if(Toggle){
  80.     MouseMove, middleX, middleY, 2
  81.     Click, down
  82.     Sleep, 1000
  83.     Click, up
  84. }
  85.  
  86. While (Toggle) {
  87.     ;check if you are in the mine
  88.     PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  89.     if(!inMineX){
  90.  
  91.         ;go inside the mine
  92.         Random, movefor, 3030, 7272
  93.         Send, {w down}
  94.         Sleep, movefor
  95.         Send, {w up}
  96.  
  97.         PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  98.         if(Toggle && !inMineX){
  99.         Random, movefor, 0, 1717
  100.         Send, {d down}
  101.         Sleep, movefor
  102.         Send, {d up}
  103.         }
  104.  
  105.         PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  106.         if(Toggle && !inMineX){
  107.         Random, movefor, 0, 2222
  108.         Send, {a down}
  109.         Sleep, movefor
  110.         Send, {a up}
  111.         }
  112.         ;Break a few blocks
  113.         MouseMove, middleX, middleY, 2
  114.         Click, down
  115.         Sleep, 1000
  116.         Click, up
  117.     }
  118.  
  119.     ;check if you are underground
  120.     PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  121.  
  122.     if(Toggle && !inMineX){
  123.         ;fall in the hole you dug
  124.         Send, {a down}
  125.         Sleep, 250
  126.         Send, {a up}
  127.  
  128.         Sleep, 111
  129.  
  130.         Send, {d down}
  131.         Sleep, 500
  132.         Send, {d up}
  133.  
  134.         Sleep, 111
  135.  
  136.         Send, {a down}
  137.         Sleep, 250
  138.         Send, {a up}
  139.  
  140.         Sleep, 111
  141.  
  142.         Send, {w down}
  143.         Sleep, 250
  144.         Send, {w up}
  145.  
  146.         Sleep, 111
  147.     }
  148.    
  149.     ;center your character
  150.     if(Toggle){
  151.         Click,
  152.         Send, {s down}
  153.         Sleep, 555
  154.         Send, {s up}
  155.         Sleep, 111
  156.         Send, {w down}
  157.         Sleep, 155
  158.         Send, {w up}
  159.         Click,
  160.  
  161.         Click,
  162.         Send, {a down}
  163.         Sleep, 555
  164.         Send, {a up}
  165.         Sleep, 111
  166.         Send, {d down}
  167.         Sleep, 111
  168.         Send, {d up}
  169.         Click,
  170.     }
  171.  
  172.     ;Checks if you are underground and/or on bedrock
  173.     PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  174.     PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  175.     Click, down
  176.     while(Toggle && inMineX && !(OnBedrock)){
  177.  
  178.         ;Check if there is a chest
  179.         Loop, 15{
  180.             PixelSearch, ChestX, ChestY, 10, 10, BottomRightX, BottomRightY, chestColors[A_Index], 5, fast, RGB
  181.             if(Toggle && ChestX){
  182.                 if((HomeButtonX1 < ChestX && ChestX < HomeButtonX2) && (HomeButtonY1 < ChestY && ChestY < HomeButtonY2)){
  183.                     Sleep, 5
  184.                 }else{
  185.                     ;Chest found (tries to open it)
  186.                     MouseMove, ChestX, ChestY, 2
  187.                     Sleep, 33
  188.                 }
  189.             }
  190.             Sleep, 5
  191.         }
  192.  
  193.         Loop, 10{
  194.             PixelSearch, OnMagic, MagicY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, MagicColor, 5, fast, RGB
  195.             if(Toggle && OnMagic){
  196.                 MouseMove, OnMagic, MagicY, 2
  197.                 Sleep, 333
  198.             }else{
  199.                 Sleep, 5
  200.             }
  201.         }
  202.        
  203.         MouseMove, middleX, middleY, 2
  204.         Sleep, 333
  205.  
  206.         ;center your character from time to time
  207.         Random, RN, 1, 20
  208.         if(Toggle && RN = 11){
  209.             Click, up
  210.  
  211.             Sleep, 111
  212.             Click,
  213.             Send, {s down}
  214.             Sleep, 555
  215.             Send, {s up}
  216.            
  217.             Sleep, 111
  218.  
  219.             Send, {a down}
  220.             Sleep, 555
  221.             Send, {a up}
  222.             Click,
  223.  
  224.             PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  225.  
  226.             if(Toggle && !OnBedrock){
  227.                 Send, {w down}
  228.                 Sleep, 155
  229.                 Send, {w up}
  230.                 Sleep, 111
  231.                 Send, {d down}
  232.                 Sleep, 111
  233.                 Send, {d up}
  234.                 Click,
  235.                 Sleep, 111
  236.             }
  237.            
  238.  
  239.             Click, down
  240.         }
  241.  
  242.         ;Checks if you are still underground or on bedrock
  243.         PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  244.         PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  245.         if(Toggle && OnBedrock){
  246.             Click, up
  247.  
  248.             Sleep, 111
  249.             Click,
  250.             Send, {s down}
  251.             Sleep, 555
  252.             Send, {s up}
  253.  
  254.             Sleep, 111
  255.  
  256.             Send, {a down}
  257.             Sleep, 555
  258.             Send, {a up}
  259.             Click,
  260.  
  261.             PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  262.  
  263.             if(Toggle && !OnBedrock){
  264.                 Send, {w down}
  265.                 Sleep, 155
  266.                 Send, {w up}
  267.                 Sleep, 111
  268.                 Send, {d down}
  269.                 Sleep, 111
  270.                 Send, {d up}
  271.                 Click,
  272.                 Sleep, 111
  273.             }
  274.  
  275.             Sleep, 2222
  276.             PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  277.             PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  278.            
  279.             Click, down
  280.         }
  281.         if(Toggle && !inMineX){
  282.             Click, up
  283.             Sleep, 222
  284.             PixelSearch, OnBedrock, tapY, BedrockTLX, BedrockTLY, BedrockBRX, BedrockBRY, BedrockColor, 5, fast, RGB
  285.             PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  286.             Click, down
  287.         }
  288.     }
  289.     Click, up
  290.    
  291.     ;make sure the "Home" button is visible (not in a loading screen)
  292.     PixelSearch, HomeButton, tapY, HomeButtonX1, HomeButtonY1, HomeButtonX2, HomeButtonY2, HomeButtonColor, 5, fast, RGB
  293.     while(Toggle && !HomeButton){
  294.         Sleep, 333
  295.         PixelSearch, HomeButton, tapY, HomeButtonX1, HomeButtonY1, HomeButtonX2, HomeButtonY2, HomeButtonColor, 5, fast, RGB
  296.     }
  297.     Sleep, 222
  298.  
  299.     ;otherwise it clicks "Go To Top" (leaves the mine)
  300.     PixelSearch, inMineX, tapY, 10, 10, BottomRightX, goTopBRY, GoTopButton, 5, fast, RGB
  301.     if(Toggle && inMineX){
  302.         MouseMove, inMineX, tapY, 2
  303.         MouseMove, 15, 7, 2 ,R
  304.         Click,
  305.         Sleep, 111
  306.         Click,
  307.     }
  308.  
  309. }
  310.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement