Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tell application "System Events"
- #check if discord is open-----------------------------
- if exists process "Discord" then
- tell application "Discord"
- #switch to discord--------------------------
- activate
- end tell
- keystroke "test"
- keystroke return
- end if
- set frontmostApp to name of application processes whose frontmost is true
- tell application frontmostApp
- keystroke "test"
- keystroke return
- repeat while "Discord" is frontmostApp #while discord is in front
- #heal before start--------------------------------
- delay 4
- keystroke "#!heal auto"
- keystroke return
- keystroke "#!buy health potion 6"
- keystroke return
- #chop and stuff-----------------------------------
- delay 1
- keystroke "#!chop"
- keystroke return
- delay 1
- keystroke "#!forage"
- keystroke return
- delay 1
- keystroke "#!mine"
- keystroke return
- delay 1
- keystroke "#!fish"
- keystroke return
- #--------------------------------------------------
- #adventure for 20 times yay!-------------------
- repeat 20 times
- keystroke "#!adv"
- delay (random number from 15 to 17)
- end repeat
- #--------------------------------------------------
- end repeat
- end tell
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement