Datlock

DBZ:DB Auto Reroll Japan - AHK Script

Sep 3rd, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*  DBZ Dokkan Battle - Automatic Rerolling Script for BlueStacks - Japanese Edition
  2.     This script is heavily inspired by /u/guagno333's script on Reddit here: bit.ly/1J8USBc
  3.     All credits should go to him!
  4.  
  5.     Important Notes:
  6.     2. This method uses the free app SH Script Runner.
  7.     3. This method uses free software called AutoHotKey
  8.     4. This method assumes DBZ:DB is the 13th entry in the app list.
  9.     5. This method uses ALT+PRINTSCREEN to save a screenshot.
  10.        I use software called Greenshot that saves the screenshot to a predefined folder.
  11.        You can use any screencap tool, but you might have to change the hotkey in the script below.
  12.     6. You can change any of the SLEEP timers below (in ms) to speed things up or slow things down, depending on your connection
  13.    
  14.  
  15.     How to use:
  16.     1. Run this script (PickAName.ahk) as Administrator
  17.     2. Open Bluestacks
  18.     3. Open SH Script Runner and make sure the "CopyCoco" script is showing, and has superuser access
  19.     4. Press Home, keeping SH Script Runner open in the background 
  20.     5. Press CTRL+Q to start the script
  21.     6. At any time, you can pause the script by pressing CTRL+P
  22.  
  23.     Good luck! May all your rolls be SSRs.
  24.    
  25. */
  26.    
  27. ^q::
  28. loop
  29. {
  30.     Sleep, 500
  31.     WinMove, BlueStacks App Player,, 0, 0,,         ; Move Bluestacks to top left corner
  32.     Sleep, 500
  33.     MouseClick, left, 1388, 172                     ; Click "All Apps"
  34.     Sleep, 750 
  35.     MouseClick, left, 110, 493                      ; Click "Dokkan Battle"
  36.     Sleep 3500
  37.     WinMove, BlueStacks App Player,, 0, 0,,         ; Move game to top left corner
  38.     Sleep, 500
  39.    
  40.     MouseClick, left, 295, 509                      ; Click Hercule screen
  41.     Sleep, 4000
  42.     MouseClick, left, 295, 509                      ; Click start screen
  43.     Sleep, 1000
  44.     MouseClick, left, 444, 638                      ; Click "alrighty then"
  45.     Sleep, 500
  46.     MouseClick, left, 444, 638                      ; Click "yeah, yeah, yeah.. I accept"
  47.     Sleep, 20000
  48.     MouseClick, left, 322, 683                      ; Click "OK"
  49.     Sleep, 9000
  50.     MouseClick, left, 331, 576                      ; Click "OK" - Change the timer (in ms) above this line depending on how long downloading the data takes
  51.     Sleep, 6000
  52.     MouseClick, left, 579, 71                       ; Click "Skip"
  53.     Sleep, 10000
  54.     MouseClick, left, 334, 697                      ; Click "OK" on daily reward screen
  55.     Sleep, 500
  56.     MouseClick, left, 318, 925                      ; Click "OK" on news screen
  57.     Sleep, 1000
  58.     MouseClick, left, 495, 672                      ; Open rewards screen
  59.     Sleep, 2000
  60.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; Drag down. We're hunting dragonstones.
  61.     Sleep, 500
  62.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; Drag down some more.
  63.     Sleep, 500
  64.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; Drag, drag, drag.
  65.     Sleep, 500
  66.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; Down, down, down.
  67.     Sleep, 500
  68.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; I should write a song.
  69.     Sleep, 500
  70.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; Keep dragging, we're halfway there.
  71.     Sleep, 500
  72.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; Okay we weren't halfway yet, but now we are.
  73.     Sleep, 500
  74.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; Drag, drag, drag your mouse.
  75.     Sleep, 500
  76.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; Gently down the screen.
  77.     Sleep, 500
  78.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; Merrily, merrily, merrily, merrily.
  79.     Sleep, 500
  80.     MouseClickDrag, left, 319, 760, 319, 30, 50     ; SSRs are but a dream.
  81.     Sleep, 1000
  82.     MouseClick, left, 501, 591                      ; EUREKA! Accept 5 dragonstones.
  83.     Sleep, 11000
  84.     MouseClick, left, 327, 651                      ; Confirm accepting dragonstones
  85.     Sleep, 750
  86.     MouseClick, left, 316, 922                      ; Open Summon Page
  87.     Sleep, 5000
  88.     MouseClick, left, 318, 826                      ; Scroll down
  89.     Sleep, 750
  90.     MouseClick, left, 202, 663                      ; Click single summon
  91.     Sleep, 500
  92.     MouseClick, left, 444, 661                      ; Confirm single summon
  93.     Sleep, 14000
  94.  
  95.     MouseClickDrag, left, 311, 640, 311, 825, 50    ; Drag down
  96.     Sleep, 19000
  97.     Send, {ALTDOWN}{PRINTSCREEN}{ALTUP}             ; Take Screenshot of card using GreenShot
  98.     Sleep, 750
  99.     MouseClick, left, 311, 725                      ; Click card
  100.     Sleep, 3000
  101.     MouseClick, left, 535, 948                      ; Click Menu
  102.     Sleep, 750
  103.     MouseClick, left, 309, 356                      ; Click Device Transfer
  104.     Sleep, 750
  105.     MouseClick, left, 309, 356                      ; Create Code
  106.     Sleep, 750
  107.     MouseClick, left, 322, 713                      ; Click OK
  108.     Sleep, 3000
  109.     Send, {ALTDOWN}{PRINTSCREEN}{ALTUP}             ; Take Screenshot of code using GreenShot
  110.     Sleep, 2000
  111.     MouseClick, left, 91, 1018                      ; Click Home
  112.     Sleep, 1500
  113.  
  114.     WinMove, BlueStacks App Player,, 0, 0,,         ; Move Bluestacks to top left corner
  115.     Sleep, 500
  116.  
  117.     MouseClick, left, 211, 900                      ; Click Task Manager
  118.     Sleep, 500
  119.     MouseClickDrag, left, 1312, 476, 1312, 220, 50  ; Close DBZ:DB
  120.     Sleep, 1000
  121.  
  122.     MouseClick, left, 1312, 476                     ; Open SH Script Runner
  123.     Sleep, 1000
  124.     MouseClick, left, 1099, 79                      ; Run opened script
  125.     Sleep, 500
  126.     MouseClick, left, 723, 819                      ; Close result screen
  127.     Sleep, 500
  128.     MouseClick, left, 130, 903                      ; Click Home
  129.     Sleep, 1000
  130. }
  131. Return
  132.  
  133. ^p::Pause,Toggle
Advertisement
Add Comment
Please, Sign In to add comment