Advertisement
Der3_Al3arab

Pet Simulator 99 Auto Items Placing/Using Macro

Feb 16th, 2024 (edited)
153
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; This macro is made to automatically use items such as Comets, Coin Jars, PiƱatas, Lucky Blocks...
  2. ; When using make sure you have atleast 1 of each item. If you dont, getting any new item will break this macro.
  3. ; Completely optional, but I recommend not having apps icon or opened windows where the buttons are. so in case roblox crash, it doesn't spam click those or any other window opened behind roblox.
  4.  
  5.  
  6. ; Ignore these 2 lines.
  7. #MaxThreadsPerHotKey, 2
  8. Toggle := 0
  9.  
  10.  
  11. ; Scroll to the bottom? (0 = No | 1 = Yes)
  12. ScrollDown := 0
  13.  
  14. ; The item you want to spawn/use position(X,Y)
  15. ItemX :=
  16. ItemY :=
  17.  
  18. ; "OK" error menu button location(X,Y)
  19. OkX :=
  20. OkY :=
  21.  
  22. ; This variable is the wait time between each use.
  23. ; If you want to use this macro for flags or fruits increase the value below to 300000 (5 minutes)
  24. WaitTimeBetweenUses := 1111
  25.  
  26.  
  27. F1::
  28. Toggle := !Toggle
  29. if (Toggle && ScrollDown){
  30.     MouseMove, ItemX, ItemY, 2
  31.     Loop 10{
  32.         Send, {WheelDown}
  33.         Sleep, 50
  34.     }
  35. }
  36. While (Toggle) {
  37.     MouseMove, ItemX, ItemY, 2
  38.     Sleep, 1000
  39.     Click,
  40.     Sleep, 1000
  41.     MouseMove, OkX, OkY, 2
  42.     Sleep, 1000
  43.     Click,
  44.     Sleep, WaitTimeBetweenUses
  45.     if (Toggle && ScrollDown){
  46.         Loop 10{
  47.             Send, {WheelDown}
  48.             Sleep, 50
  49.         }
  50.     }
  51. }
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement