Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- time = 0
- file = open(sys.argv[1], "w")
- buy_btn = (965,652)
- buy_confirm_btn = (787,520)
- exit_btn = (152, 32)
- inventory_btn = (178, 644)
- grind_btn = (839,629)
- grind_all_btn = (730,629)
- grind_btn_2 = (732,589)
- grind_confirm_btn = (738,531)
- dismiss_results = (738,531)
- enter_forge_btn = (641,525)
- use_shop_btn = (636,561)
- def wait(amount):
- global time
- time = time + amount
- def click(file, loc, post_wait):
- global time
- file.write("0ScRiPtSePaRaToR1280|720|MULTI:1:0:{0}:{1}ScRiPtSePaRaToR{2}\n".format(loc[0], loc[1], time))
- wait(100)
- file.write("0ScRiPtSePaRaToR1280|720|MULTI:0:6ScRiPtSePaRaToR{0}\n".format(time))
- file.write("0ScRiPtSePaRaToR1280|720|MULTI:0:6ScRiPtSePaRaToR{0}\n".format(time))
- file.write("0ScRiPtSePaRaToR1280|720|MULTI:0:1ScRiPtSePaRaToR{0}\n".format(time))
- file.write("0ScRiPtSePaRaToR1280|720|MSBRL:-1158647:599478ScRiPtSePaRaToR{0}\n".format(time))
- wait(post_wait)
- wait(500)
- # Buy 300 items
- for i in range(0, 300):
- click(file, buy_btn, 275)
- click(file, buy_confirm_btn, 275)
- # Exit twice (to Orvel map)
- click(file, exit_btn, 1000)
- click(file, exit_btn, 1000)
- # Open inventory
- click(file, inventory_btn, 1000)
- # Grind
- click(file, grind_btn, 1000)
- # Grind all
- click(file, grind_all_btn, 1000)
- # Click the Grind button on the window that pops up
- click(file, grind_btn_2, 1000)
- # Confirmation
- click(file, grind_confirm_btn, 1000)
- # Click on the screen to get rid of the results
- click(file, dismiss_results, 1000)
- # Exit back to Orvel world map
- click(file, exit_btn, 1000)
- # Re-enter the shop. Delay set to 2000 here since there's an animated transition
- # that takes a little extra time
- click(file, enter_forge_btn, 2000)
- # Click Use Shop button
- click(file, use_shop_btn, 1000)
- # At this point we're back where we started and the macro can loop.
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement