Functions for automating osrs botting using Python.
Full tutorial on creating Functions for automation using Python for osrs botting. The example used will be woodcutting, where the script will use colour detection using opencv and use pyautogui to move the mouse, click and use the keyboard to drop items using an image recognition module that will detect the wood icons in the inventory.
Consider donating if you found the project fun and learnt more about python: https://www.buymeacoffee.com/slyautomatG
Other python files will also use tesseract-OCR to detect text within images using tesseract-OCR image to text recognition functions.
Need help with installing python, pycharm and cloning a repo? read this article for help: https://www.slyautomation.com/blog/install-pycharm-and-python-clone-a-github-project/
Note: PC Monitor settings - change resolution to 1920x1080 panel and text of apps was set to 100%.
Right click and select Display Settings
In the Scale And Layout section - Change size of text to 100% and Set Display Resolution to 1920 x 1080 for best results.
How to add Project with Pycharm
Editing how to ensure venv (virtual environment) is active
For the full video tutorial click link: https://www.youtube.com/watch?v=C7ZY4KYpFII
This video is more about how it was created at the start core.py is how to make the python script focus on the old school runescape application and adjust the window size so all the scripts run as intended. Then functions.py is where all the different kinds of shortcut functions are placed to reference the mini map, or a piece of code to do color detection or open the inventory.
in terminal type:
pip install -r requirements.txt
tesseract-ocr = https://digi.bib.uni-mannheim.de/tesseract/?C=M;O=D
if that website is down use 5.3: https://drive.google.com/file/d/1acZJSm3BEmCORSB4NDmpaaT5WC1FNu2s/view?usp=sharing
or use original version 3.0.2: https://drive.google.com/file/d/1mCgYueVKRVbPg-ICz8BjrAWH5oOLjp55/view?usp=sharing
Tutorial on installing tesseract-OCR: https://youtube.com/watch?v=X3snnwzJfEw&t=25m15s
Tutorial on runelite setup click link: https://youtube.com/watch?v=JO2FvkJwppA
Also make sure that the transparent side panels and chatbox is unchecked:
Make sure the tool bar is enabled and showing on the right had side of the client window (press the arrow to enable the toolbar as visable):
client_title: Is the title of the application window usually Runelite if you have completed the steps for the Runelite Setup, if not then enter RuneLite - username or OpenOSRS
To disable the username in the client window using the toolbar search for runelite plugin and in the settings make sure 'Show display name title' is unchecked.
enable_on_start: if you don't want the config window to pop up each time, enter as false
file_path_to_client: the head folder where the OSRS client is stored usually .runelite or .openosrs
pc_profile: is the user profile of the pc so it can find runelite or openosrs
tesseract_path: Is the folder address to tesseract-ocr program
- Note: copy the format below make sure to include the slashes (\).
In Runescape setting, set the following:
Make sure the info boxes are filled and the standard brown color, use the toolbar and search Runelite. In the settings under overlay section select the 'Overlay color'.
Change Interface font to 'Bold'. Change Infobox font to 'Bold'. Change opacity to 255 and the hex color to #FF463D32:
Cuts woods and makes fire
Use object marker plugin to highlight trees red, green or yellow.
Make sure to have an axe equipped and a tinderbox if firemaking.
Turn on woodcutting plugin
Turn off Show weight in item stats Tutorial on firemaking code click link: https://youtu.be/bHZCQUChG_k
Make sure to equip a pick axe.
enter the ore type, the marker color and how long to run in hours (Change Run_Duration_hours)
Tutorial on mining code click link: https://youtube.com/watch?v=dkD5gXcgQYI
Tutorial on combat code click link: https://youtube.com/watch?v=llGbhVfU1Bc
This only works at the Rimmington mine and banks at Port Sarim deposit box.
- IMPORTANT! Set compass directly north, click the on the compass to reset straight.
Otherwise the walker from deposit box to rimmington mine won't work.
This is the path that is takes:
Make sure to select the color that you highlighted the clay ores and set the Run Duration to the number of hours:
Tutorial on smithing code click link: https://youtube.com/watch?v=YezEeVjoP6o
High alching
Superheat item
Tutorial on magic code click link: https://youtube.com/watch?v=Vyhy2CpfK7I
Tutorial: TBA
Located in jar_files: Add httpplug-1.0.3.jar to C:\Users\
Located in jar_files: Add shortestagility-5.0.2.jar to C:\Users\
Create txt file on desktop paths.txt, the modified plugin shortestagility-5.0.2.jar saves the coordinates when a path target is made in osrs.
Use main map and right click then select 'set target', run server.py and then run osrs_walker.py.
python venv/Scripts/pywin32_postinstall.py -install
Wiki page on function descriptions and purpose
Using the top banner in pycharm under file goto setttings.
Then in settings under the tools section click on terminal. and you'll need to change the shell path to cmd.exe. at the moment your default terminal is powershell Image
You'll now be able to type in the pip command no issues