Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* DBZ Dokkan Battle - Automatic Rerolling Script for BlueStacks - Japanese Edition
- This script is heavily inspired by /u/guagno333's script on Reddit here: bit.ly/1J8USBc
- All credits should go to him!
- Important Notes:
- 2. This method uses the free app SH Script Runner.
- 3. This method uses free software called AutoHotKey
- 4. This method assumes DBZ:DB is the 13th entry in the app list.
- 5. This method uses ALT+PRINTSCREEN to save a screenshot.
- I use software called Greenshot that saves the screenshot to a predefined folder.
- You can use any screencap tool, but you might have to change the hotkey in the script below.
- 6. You can change any of the SLEEP timers below (in ms) to speed things up or slow things down, depending on your connection
- How to use:
- 1. Run this script (PickAName.ahk) as Administrator
- 2. Open Bluestacks
- 3. Open SH Script Runner and make sure the "CopyCoco" script is showing, and has superuser access
- 4. Press Home, keeping SH Script Runner open in the background
- 5. Press CTRL+Q to start the script
- 6. At any time, you can pause the script by pressing CTRL+P
- Good luck! May all your rolls be SSRs.
- */
- ^q::
- loop
- {
- Sleep, 500
- WinMove, BlueStacks App Player,, 0, 0,, ; Move Bluestacks to top left corner
- Sleep, 500
- MouseClick, left, 1388, 172 ; Click "All Apps"
- Sleep, 750
- MouseClick, left, 110, 493 ; Click "Dokkan Battle"
- Sleep 3500
- WinMove, BlueStacks App Player,, 0, 0,, ; Move game to top left corner
- Sleep, 500
- MouseClick, left, 295, 509 ; Click Hercule screen
- Sleep, 4000
- MouseClick, left, 295, 509 ; Click start screen
- Sleep, 1000
- MouseClick, left, 444, 638 ; Click "alrighty then"
- Sleep, 500
- MouseClick, left, 444, 638 ; Click "yeah, yeah, yeah.. I accept"
- Sleep, 20000
- MouseClick, left, 322, 683 ; Click "OK"
- Sleep, 9000
- MouseClick, left, 331, 576 ; Click "OK" - Change the timer (in ms) above this line depending on how long downloading the data takes
- Sleep, 6000
- MouseClick, left, 579, 71 ; Click "Skip"
- Sleep, 10000
- MouseClick, left, 334, 697 ; Click "OK" on daily reward screen
- Sleep, 500
- MouseClick, left, 318, 925 ; Click "OK" on news screen
- Sleep, 1000
- MouseClick, left, 495, 672 ; Open rewards screen
- Sleep, 2000
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; Drag down. We're hunting dragonstones.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; Drag down some more.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; Drag, drag, drag.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; Down, down, down.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; I should write a song.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; Keep dragging, we're halfway there.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; Okay we weren't halfway yet, but now we are.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; Drag, drag, drag your mouse.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; Gently down the screen.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; Merrily, merrily, merrily, merrily.
- Sleep, 500
- MouseClickDrag, left, 319, 760, 319, 30, 50 ; SSRs are but a dream.
- Sleep, 1000
- MouseClick, left, 501, 591 ; EUREKA! Accept 5 dragonstones.
- Sleep, 11000
- MouseClick, left, 327, 651 ; Confirm accepting dragonstones
- Sleep, 750
- MouseClick, left, 316, 922 ; Open Summon Page
- Sleep, 5000
- MouseClick, left, 318, 826 ; Scroll down
- Sleep, 750
- MouseClick, left, 202, 663 ; Click single summon
- Sleep, 500
- MouseClick, left, 444, 661 ; Confirm single summon
- Sleep, 14000
- MouseClickDrag, left, 311, 640, 311, 825, 50 ; Drag down
- Sleep, 19000
- Send, {ALTDOWN}{PRINTSCREEN}{ALTUP} ; Take Screenshot of card using GreenShot
- Sleep, 750
- MouseClick, left, 311, 725 ; Click card
- Sleep, 3000
- MouseClick, left, 535, 948 ; Click Menu
- Sleep, 750
- MouseClick, left, 309, 356 ; Click Device Transfer
- Sleep, 750
- MouseClick, left, 309, 356 ; Create Code
- Sleep, 750
- MouseClick, left, 322, 713 ; Click OK
- Sleep, 3000
- Send, {ALTDOWN}{PRINTSCREEN}{ALTUP} ; Take Screenshot of code using GreenShot
- Sleep, 2000
- MouseClick, left, 91, 1018 ; Click Home
- Sleep, 1500
- WinMove, BlueStacks App Player,, 0, 0,, ; Move Bluestacks to top left corner
- Sleep, 500
- MouseClick, left, 211, 900 ; Click Task Manager
- Sleep, 500
- MouseClickDrag, left, 1312, 476, 1312, 220, 50 ; Close DBZ:DB
- Sleep, 1000
- MouseClick, left, 1312, 476 ; Open SH Script Runner
- Sleep, 1000
- MouseClick, left, 1099, 79 ; Run opened script
- Sleep, 500
- MouseClick, left, 723, 819 ; Close result screen
- Sleep, 500
- MouseClick, left, 130, 903 ; Click Home
- Sleep, 1000
- }
- Return
- ^p::Pause,Toggle
Advertisement
Add Comment
Please, Sign In to add comment