Skip to content

Commit

Permalink
New Pips have been added and a autorun key variable has been made
Browse files Browse the repository at this point in the history
  • Loading branch information
Qfc9 committed Nov 29, 2021
1 parent bc38c5a commit 57b0fe7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Make sure you pip install the following packages
```
pip install PyAutoGUI
pip install PyDirectInput
pip install Pillow
pip install opencv-python
```

New World must be installed and running..... But you know this already right?
Expand Down
11 changes: 7 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def main():
pyautogui.click()
time.sleep(.1)

# Auto Run Key
autowalkKey = '='

# Seconds to move foward
fowardMoveTotal = 20

Expand All @@ -54,15 +57,15 @@ def main():
continue

# Do I got to explain?
pyautogui.press('=')
pyautogui.press(autowalkKey)

# Randomly move foward 0 - 1.5 seconds
temp = 1.5 * random.random()
currentFoward += temp
time.sleep(temp)

# Brah, you know
pyautogui.press('=')
pyautogui.press(autowalkKey)

# Flippy flip if you hitty hit the max move time (fowardMoveTotal)
if currentFoward >= fowardMoveTotal:
Expand All @@ -73,9 +76,9 @@ def main():
pydirectinput.move(flipMouseMove * flip, 1, relative=True)

# Move Foward 1.5 secs
pyautogui.press('=')
pyautogui.press(autowalkKey)
time.sleep(1.5)
pyautogui.press('=')
pyautogui.press(autowalkKey)

# Move the mouse 90 degrees
pydirectinput.move(flipMouseMove * flip, 1, relative=True)
Expand Down

0 comments on commit 57b0fe7

Please sign in to comment.