Advertisement
Guest User

Untitled

a guest
Dec 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.89 KB | None | 0 0
  1. import sys
  2.  
  3. time = 0
  4. file = open(sys.argv[1], "w")
  5.  
  6. buy_btn = (965,652)
  7. buy_confirm_btn = (787,520)
  8. exit_btn = (152, 32)
  9. inventory_btn = (178, 644)
  10. grind_btn = (839,629)
  11. grind_all_btn = (730,629)
  12. grind_btn_2 = (732,589)
  13. grind_confirm_btn = (738,531)
  14. dismiss_results = (738,531)
  15. enter_forge_btn = (641,525)
  16. use_shop_btn = (636,561)
  17.    
  18. def wait(amount):
  19.     global time
  20.     time = time + amount
  21.  
  22. def click(file, loc, post_wait):
  23.     global time
  24.     file.write("0ScRiPtSePaRaToR1280|720|MULTI:1:0:{0}:{1}ScRiPtSePaRaToR{2}\n".format(loc[0], loc[1], time))
  25.     wait(100)
  26.     file.write("0ScRiPtSePaRaToR1280|720|MULTI:0:6ScRiPtSePaRaToR{0}\n".format(time))
  27.     file.write("0ScRiPtSePaRaToR1280|720|MULTI:0:6ScRiPtSePaRaToR{0}\n".format(time))
  28.     file.write("0ScRiPtSePaRaToR1280|720|MULTI:0:1ScRiPtSePaRaToR{0}\n".format(time))
  29.     file.write("0ScRiPtSePaRaToR1280|720|MSBRL:-1158647:599478ScRiPtSePaRaToR{0}\n".format(time))
  30.     wait(post_wait)
  31.    
  32. wait(500)
  33.  
  34. # Buy 300 items
  35. for i in range(0, 300):
  36.     click(file, buy_btn, 275)
  37.     click(file, buy_confirm_btn, 275)
  38.  
  39. # Exit twice (to Orvel map)
  40. click(file, exit_btn, 1000)
  41. click(file, exit_btn, 1000)
  42.  
  43. # Open inventory
  44. click(file, inventory_btn, 1000)
  45.  
  46. # Grind
  47. click(file, grind_btn, 1000)
  48.  
  49. # Grind all
  50. click(file, grind_all_btn, 1000)
  51.  
  52. # Click the Grind button on the window that pops up
  53. click(file, grind_btn_2, 1000)
  54.  
  55. # Confirmation
  56. click(file, grind_confirm_btn, 1000)
  57.  
  58. # Click on the screen to get rid of the results
  59. click(file, dismiss_results, 1000)
  60.  
  61. # Exit back to Orvel world map
  62. click(file, exit_btn, 1000)
  63.  
  64. # Re-enter the shop.  Delay set to 2000 here since there's an animated transition
  65. # that takes a little extra time
  66. click(file, enter_forge_btn, 2000)
  67.  
  68. # Click Use Shop button
  69. click(file, use_shop_btn, 1000)
  70.  
  71. # At this point we're back where we started and the macro can loop.
  72.  
  73. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement