Skip to content

fix2-3 #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/osrs_basic_botting_functions.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added 17084.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 17320.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 2004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 22092.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 22424.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 22924.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 23072.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added __pycache__/config_generator.cpython-37.pyc
Binary file not shown.
Binary file added __pycache__/core.cpython-37.pyc
Binary file not shown.
Binary file added __pycache__/functions.cpython-37.pyc
Binary file not shown.
Binary file added __pycache__/slyautomation_title.cpython-37.pyc
Binary file not shown.
Binary file added images/gem_icon3.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/inventshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/miner_img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screen_resize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/textshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 10 additions & 3 deletions miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ def drop_ore():
image_Rec_clicker(r'coal_ore.png', 'dropping item', threshold=0.8, playarea=False)
image_Rec_clicker(r'iron_ore.png', 'dropping item', threshold=0.8, playarea=False)
image_Rec_clicker(r'tin_ore.png', 'dropping item', threshold=0.8, playarea=False)
image_Rec_clicker(r'gem_icon.png', 'dropping item', threshold=0.8, playarea=False)
image_Rec_clicker(r'gem_icon2.png', 'dropping item', threshold=0.8, playarea=False)
image_Rec_clicker(r'gem_icon3.png', 'dropping item', threshold=0.8, playarea=False)
release_drop_item()
time.sleep(3)
#print("dropping ore done")
return "drop ore done"

Expand Down Expand Up @@ -161,6 +165,9 @@ def count_geo():
def count_gems2():
return Image_count('gem_icon2.png')

def count_gems3():
return Image_count('gem_icon3.png')

def inv_count(name):
return Image_count(name + '_ore.png')

Expand All @@ -180,7 +187,7 @@ def count_items():
t_end = time.time() + (60 * 60 * Run_Duration_hours)
while time.time() < t_end:
global ore, powerlist, ore_count, mined_text, gem_count, clue_count
gem_count = int(count_gems() + count_gems2())
gem_count = int(count_gems() + count_gems2() + count_gems3())
ore_count = int(inv_count(powerlist[ore]))
clue_count = int(count_geo())
time.sleep(0.1)
Expand Down Expand Up @@ -274,9 +281,9 @@ def powerminer_text(ore, num, Take_Human_Break=False, Run_Duration_hours=5):
amber = 8

# --------- CHANGE TO RUN FOR AMOUNT OF HOURS ----------------
Run_Duration_hours = 0.1
Run_Duration_hours = 10

# | ore | marker color | take break | how long to run for in hours
powerminer_text(copper, red, Take_Human_Break=True, Run_Duration_hours=Run_Duration_hours)
powerminer_text(iron, red, Take_Human_Break=False, Run_Duration_hours=Run_Duration_hours)

#os.system('shutdown -s -f')
6 changes: 3 additions & 3 deletions pybot-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- Config:
client_title: Runelite
file_path_to_client: \.runelite\
pc_profile: C:\Users\MMH
tesseract_path: C:\Program Files\Tesseract-OCR\
enable_on_start: true
pc_profile: C:\Users\<YOURSELF>
tesseract_path: C:\Program Files (x86)\Tesseract-OCR\
enable_on_start: false
2 changes: 1 addition & 1 deletion woodcutting.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,6 @@ def powercutter(color=0, type='wood', firemaking=False, bank_items=True, spot=''

firespots = ['firespot_varrock_wood', 'firespot_draynor_willow', 'firespot_draynor_oak'
, 'firespot_farador_oak', 'firespot_draynor_wood']
powercutter(red, 'oak', firemaking=False, bank_items=True,
powercutter(yellow, 'maple', firemaking=False, bank_items=False,
spot='',
Take_Human_Break=True, Run_Duration_hours=Run_Duration_hours)