Updated tutorial setup for botting runescape with python - Part 1

Поділитися
Вставка
  • Опубліковано 21 жов 2024

КОМЕНТАРІ • 142

  • @lukegalea8171
    @lukegalea8171 Рік тому +10

    bro this tutorial is amazing, been searching deep for someone that can explain this as good as you can for about a week, youve done a wicked job going over everything here, legend!

    • @lukegalea8171
      @lukegalea8171 Рік тому +3

      is part 2 far off bro?

    • @slyautomation
      @slyautomation  Рік тому +4

      thanks man! much appreciated!

    • @yamumspenis
      @yamumspenis Рік тому

      ​@@slyautomation as Luke mentioned, is there a part 2 or any updates coming up soon?

    • @slyautomation
      @slyautomation  Рік тому +1

      @@yamumspenis hopefully by tonight it will be for fletching, Herblore and low level theiving

  • @History-Remastered
    @History-Remastered Рік тому +15

    bro, thanks so much for this, im not really botting but im studying python you cant even imagine how much these videos have helped me

  • @obo_ooz
    @obo_ooz Рік тому +5

    Love where your head's at with the pathing system, definitely inspires me to work on something similar in my scripts.

  • @y3wtub3
    @y3wtub3 Рік тому +5

    Insane. This all worked without a hitch. Subbing for pt2, you're a clever dude.

    • @tylersoule6636
      @tylersoule6636 Рік тому +1

      I agree. I am still installing but am confused. Don't know how to install tesseract ocr.

  • @NotGoingCrazy
    @NotGoingCrazy Рік тому +5

    Pretty nuts this is open source, kudos to you

  • @mario1324able
    @mario1324able Рік тому

    i just learning Python, this can help me in a project extra to practice at holiday, greating from Chile

  • @tist203
    @tist203 2 місяці тому

    Thanks for the explanation and source. I want to develop my own using a combination of color, yolo and maybe ocr. This will be a good reference.

  • @raakapena
    @raakapena 2 роки тому +3

    Interesting videos, been watching quite many of these. I saw you are using uniform distribution in your random sleeps :O Keep them videos coming! I'm a fan.

    • @raakapena
      @raakapena 2 роки тому +3

      I made a cookie cutter function to hover over different click boxes. It's a function which gets the RuneLite's click box RGB color as parameter and then randomizes a coordinate inside the object's click box contour using a normal distribution, works like a charm. Glad I found this channel, really got inspired! OpenCV is a powerful tool for sure.

    • @slyautomation
      @slyautomation  2 роки тому

      Thanks, will do!

    • @SZ-ZS-
      @SZ-ZS- Рік тому

      @@raakapena the problem is humans don’t click on objects in random spots, or anything close to random.

    • @raakapena
      @raakapena Рік тому

      @@SZ-ZS- That is very true. I've been toying alot with different ways of generating clicks, currently I'm using "spots of interests" inside objects. Well, as long as ur not doing circles and squares on ur game screen with let's say 100k clicks I think ur fine. Good way to battle this one is to missclick the object at times too (aka not relying on the exact clickbox of the object with something like pointpolygontest)

  • @ChrisNoHandle
    @ChrisNoHandle 2 роки тому +3

    Thanks for putting the time and effort into it. It's definitely huge project. Keep it up boss!

  • @tonywalsh6512
    @tonywalsh6512 Рік тому +8

    very good, waiting for part 2. could you explain how to virtualize the mouse rather than it taking control?

    • @slyautomation
      @slyautomation  Рік тому +7

      Yes! Found a way using a remote desktop wrapper and creating a second PC account running that account in the remote desktop uses significantly less resources than a virtual machine and you can minimise the window and use your mouse which is cool. Here's a tutorial I found to get it working I might do a video specifically for this project. ua-cam.com/video/Pm-kjKdEfdA/v-deo.html let me know how you go.

    • @Nidaleeop
      @Nidaleeop Рік тому +1

      @@slyautomationThis video you liked was very informative!! I think i might try the remote desktop thing aswell... thanks

  • @ReverenceQ2
    @ReverenceQ2 Рік тому +2

    i spent a while trying to set this up, the gui in python is very different from the guide, also the woodcutting code is different so i've had to work that out myself, despite all my efforts and struggles when i eventually got it working, the bot is just clicking in the top left of my screen constantly, it did cut one tree successfully but now it appears to be broken.
    edit: it was clicking on the "NOT WOODCUTTING" status tab in the top left, this is what it kept doing, I'm not sure how to remove it yet but that's definitely the problem, seems it's working now.
    edit2: seems to be getting stuck, i've highlighted about 10-15 trees next to lumbridge castle, i've set the timer to 0.1 (6 minutes) and it cuts 2-3 logs and sits idle until script ends.
    edit3: i changed some co-ordinates and it seems to woodcut successfully, but now it won't drop logs upon full inventory, i try again tomorrow, any chance of a discord link so i can speak to you or someone about my issues? 🤞🤞

  • @D3mosthene
    @D3mosthene Рік тому

    Thank you you so much for the script! it doesn't seem to be firemaking/banking though, i saw that you created the command for woodcut_and_firemake; but doesn't seem to work. Did it on Draynor as per the comments. is there a specific location that you have set it for?

  • @HonieFlakes
    @HonieFlakes Рік тому +2

    Queation using runlite will the api not pick it up? Also another question since this is on python plus if someone made their own custom script would it be a little better for ban evasian? Unlike other widly used methods by everyone.

    • @slyautomation
      @slyautomation  Рік тому +2

      No i don't believe so. Any plugin used in runelite for this project is using ones already made available to the public so its not breaking any rules. Runelite client uses mouse and keyboard hooks and since this project uses the system's mouse and not a mouse event or sendkeys to the java client so those data huerstics won't provide much to jagex. There is another step to take which would be to instead of using pyautogui is to send mouse movements to a HID device which would mimic real mouse input (on the to do list to add on the project).
      Yes it can some scripts that rely on taking a certain path like runecrafting or clay collecting those would benefit if a different approach is taken.

  • @veryolddog2701
    @veryolddog2701 Рік тому +2

    Can you make video of how to code this from scratch and explain why you used such tools, if there was ai invovled from image recognition etc..

  • @pl9820
    @pl9820 6 місяців тому +1

    Do you use yolo for this? I wish to learn how to create a repo like this, any tips for where to look to learn?

    • @slyautomation
      @slyautomation  6 місяців тому

      No just color detection for that one

  • @mohamedgomaa5842
    @mohamedgomaa5842 Рік тому +1

    thank you for the effort of putting it together. took sometime to set up but works perfectly. intending to use to learn python coding and add features on to the existing code. please let me a way i can reach to you incase i developed it further.

    • @slyautomation
      @slyautomation  Рік тому +1

      No worries much appreciated 🙂, you can reach me on discord discord.gg/bYjB5swB

  • @nedal1alex123
    @nedal1alex123 Рік тому

    Do you have any tutorial on interacting with the game just through api calls? Like, call an api to eat a shark, or to equip an item, or to toggle a prayer?

  • @jsbots
    @jsbots 2 роки тому +1

    Great tutorial! As always 💪

  • @acehomi
    @acehomi 2 роки тому

    Love it! Keep up the great work!

  • @klhmia
    @klhmia 2 роки тому +1

    I notice you're marking the world objects - why aren't you using the amazing osrs_yolov5 object detection to provide coordinates for objects such as rocks to mine, spots to fish, items to click etc. instead of having to mark things with RuneLite couldn't you build detection profiles for them? I'm sure you can rotate the camera with the current implementation of marking things but perhaps the detection would be more robust.

    • @slyautomation
      @slyautomation  2 роки тому

      yes, im currently making a yolo auto annoting tool plugin for runelite so i dont have to do it manually thats the biggest barrier

    • @Ehxx
      @Ehxx Рік тому

      Theres an absolutely insane amount of manual work tagging all these objects to train a weight file. Runelite allows you to just simply tag something instead of spending days tagging all sorts of objects.

  • @AnotherAvaibleName
    @AnotherAvaibleName Рік тому +1

    Also, I supposed it'd be nice to randomize the coordinates of clicks, looking at the code it seems the locations are pretty consistent and thus we can secure lower ban rates.

  • @JadiSaab-y8s
    @JadiSaab-y8s 20 днів тому

    does it work on 1366x768 resoulation? i try its not working any solution?

  • @lilseezy8123
    @lilseezy8123 Рік тому +1

    Hey, Im new to python and I was wondering if you can show us how to make a afk sandcrabs bot?

  • @AnotherAvaibleName
    @AnotherAvaibleName Рік тому

    This is great. I recommend changing your development environment to Linux since a lot of Window's finicky options and quirks are nonexistent in Linux.

    • @brandonevans5123
      @brandonevans5123 10 місяців тому +1

      I daily drive Linux and have been a Linux fan for almost a decade now. Regardless if you're an experienced Linux user or not... to say quirks are non-existent is just wrong lol. Everything has "quirks".

  • @kraftp
    @kraftp Рік тому +1

    Awesome tutorial! Will this work on Mac?

    • @slyautomation
      @slyautomation  Рік тому

      no sorry i dont think it does, the issues come down to resizing and moving the client window and adjusting the resolution

    • @kraftp
      @kraftp Рік тому

      @@slyautomation yea I figured, thanks!

  • @marcusvos7060
    @marcusvos7060 2 роки тому +1

    Have you considered adding a humanised mouse? Like pyclick - HumanClicker or windmouse by ben land?

    • @slyautomation
      @slyautomation  2 роки тому +2

      yeah, so just working with a bezier curve for movement path works quite well. so working with that to update the mouse movement for this project

    • @teste-yh5df
      @teste-yh5df Рік тому

      humans do not travel mouse in corner, it needs to improve laot human behaviour, what about making chat gpt inside py

  • @OutdoorCQB
    @OutdoorCQB Рік тому

    Could this be used on a RSPS for pvm? I just need something that can click the NPCs. Eating and looting isn't needed

  • @MotivatedMan
    @MotivatedMan Рік тому +1

    So i want to create a bot but not for OSRS but for RSPS
    Is it pretty much the same?

    • @slyautomation
      @slyautomation  Рік тому +1

      Yep pretty much the same process except the client window will be the name of the RSPS client

    • @MotivatedMan
      @MotivatedMan Рік тому

      @@slyautomationthanks mate!

  • @DadBodWarrior
    @DadBodWarrior Рік тому +1

    Whats the best way to reduce the delay for woodcutting between chopping?

    • @slyautomation
      @slyautomation  Рік тому +1

      anywhere it says random_breaks(xx, xx) in the code adjust the number to your desired range in seconds (0.1 would be 100 milliseconds)
      also set Take_Human_Break to False.

  • @rRockworth710
    @rRockworth710 Рік тому +1

    Do you happen to have a discord? Went through all your set up videos and keep running into problems. I have not coded much in python except for what I’ve written based on projects I’ve watched on UA-cam but do know most the basics if there’s anyway to reach out and pm you plz get back to me. Thank you so much for making all these videos has been really fun learning to code

    • @slyautomation
      @slyautomation  Рік тому

      Here you go! :) let me know on the discord what your issues are: discord.gg/MGNdvT7N

    • @r0lldice123
      @r0lldice123 Рік тому

      @@slyautomation I'm also having some issues with the fishing script too. I put lobster_fish as the fish_type and the fishing plugin is on but it clicks shark nodes instead of lobster nodes. Do you have another invite to your discord?

  • @GulFugl
    @GulFugl 2 роки тому +2

    fishing bot is working perfectly, except it doesnt drop Salmon & trout fishes, it does find the spots and keeps on fishing though.

    • @slyautomation
      @slyautomation  2 роки тому +1

      add this to line 133 in the fishing.py script:
      and fishing_text.strip().lower() != 'fishinq'
      Sometimes it recognises the g as q when reading the fishing plugin panel.

    • @GulFugl
      @GulFugl 2 роки тому +1

      @@slyautomation done so, still no dropping salmon / trouts sadly. it does work for Lobsters & prawn fish though

    • @GulFugl
      @GulFugl 2 роки тому +1

      ​@@slyautomation after a bit of troubleshooting I figured line 147- invent_crop() was commented out, uncommented it fixed the issue - overall I gotta say amazing bot my guy :D

  • @user-dm7bw9os7w
    @user-dm7bw9os7w 2 роки тому +1

    have you tried using adb to bot on mobile with python ? I think it might significantly lower ban rates since they cannot track mouse movements

    • @slyautomation
      @slyautomation  2 роки тому +1

      No I haven't but it's definitely something I do want to test out on something like an emulator BlueStacks or memu

    • @slyautomation
      @slyautomation  2 роки тому +1

      I have used it on other mobile games through memu eg 'last shelter survival' and it works great but I don't think many mobile games have anti Botting detection

  • @educationalchannel2406
    @educationalchannel2406 10 місяців тому

    are you cloning it twice in the beginning?

  • @Theluckyguy2024
    @Theluckyguy2024 6 місяців тому +1

    Can this be done without the display settings. My laptop doesn’t have that high 1920

    • @slyautomation
      @slyautomation  6 місяців тому

      Yes but there will be heaps of tweaking to get the bot to work right

    • @Theluckyguy2024
      @Theluckyguy2024 6 місяців тому

      @@slyautomation You are so awesome I appreciate your reply. I’ve really been trying to follow your GitHub and get the boat working but I keep getting these errors on file not found even when I copy the path that it’s in directly. But I’m gonna figure it out and I’m excited

  • @manpreetsian609
    @manpreetsian609 2 роки тому +1

    need some help! i have tried to get this going a few times. I keep running into a metadata error. i have run the requirments.txt in the (VENV) and get an ERROR: Could not find a version that satisfies the requirement numpy==1.20.2 (from versions: 1.3.0, ........
    ERROR: No matching distribution found for numpy==1.20.2

  • @proniss
    @proniss 2 роки тому +2

    isn't the color detection method super detectable?

    • @slyautomation
      @slyautomation  2 роки тому +2

      No the opposite, there's a couple of examples of other users who have reached decent levels using this project or a modified version of it. Examples shown on my discord: discord.gg/FDJ67YJs

  • @codyquist4908
    @codyquist4908 2 роки тому +1

    ive written a bot for runescape before in python. it was able to do blast furnace. i used a few runelite plugins to make it easier on myself. the account got banned within 10 hours, however, no breaks were used. i really dont think that python is the correct language for runescape.... at least interacting within the game itself, outside the game makes alot more sense

    • @codyquist4908
      @codyquist4908 2 роки тому +1

      also, a cow killer was created a few years ago, and they did a very good job with it, however, it is also detected.

    • @WhatsBellow
      @WhatsBellow 2 роки тому

      There is ways to render Python almost undetected but this dude is basically doing a color bot which will get you banned in about 1 day no matter how you code it.

    • @拓晟机械
      @拓晟机械 2 роки тому +1

      do you have any chat software, i want to be friends with you

  • @Pumpkinhead28
    @Pumpkinhead28 Рік тому

    How can i add rs content wihtout sytanx coding. Straight form the cranium? I have lots of thats for it?

  • @connectapp7889
    @connectapp7889 Рік тому +1

    I ran the woodcutting code and this poped up any fixes also is there a discord server?
    line 60, in
    for f in os.listdir(filename):
    FileNotFoundError: [WinError 3] The system cannot find the path specified:

    • @slyautomation
      @slyautomation  Рік тому

      You'll need to update the pybot_config.yaml file to your user profile path or whoever the runelite game is saved. For example my user name on my PC is MMH and it's saved on my C drive. so change line 4 pc_profile: C:\Users\MMH
      Make sure to not leave a back slash at the end

    • @slyautomation
      @slyautomation  Рік тому

      That error is caused by the file path not recognised in your project

    • @connectapp7889
      @connectapp7889 Рік тому +1

      @@slyautomation ok thank you so much!

  • @Casualinkling
    @Casualinkling 7 місяців тому +1

    im new to runelite how do i mark objects

  • @tomba2
    @tomba2 3 місяці тому

    can we still select the trees in red?

  • @tylersoule6636
    @tylersoule6636 Рік тому +1

    this is so incredible. is this possible to do on runescape private servers?

    • @slyautomation
      @slyautomation  Рік тому

      Yes instead of runelite changing the wording to match the RSPS client and use the plugins that are used in the project

  • @Ahl3rt
    @Ahl3rt Рік тому +1

    do you get easily caught doing this?

    • @slyautomation
      @slyautomation  Рік тому +1

      Very rarely do. And each iteration of this project it's gets better at going undetected.

  • @cIeetz
    @cIeetz 10 місяців тому

    its funny you pretty much script this exactly how I do my ahk scripts. I'm just tryna break off from the pc needing mouse control so I'm studying Java now since AHK's mouse and keyboard send just dont work, it requires control of the mouse n keyboard to work efficiently.

  • @toppo7532
    @toppo7532 2 роки тому

    Realistically could these work on an rsps? If they use a runelite client, would you just have to change the installation path? 🤔

    • @slyautomation
      @slyautomation  2 роки тому +3

      Yeah definitely change the client runelite to the name of the client eg Kronos etc. And change the path /.runelite/ to the server path. And then it's just making sure to enable the same plugins or plugins that do the same type of indicators.

  • @Conrad75
    @Conrad75 Рік тому +1

    For some reason with the fishing script, it is completely random whether or not it will drop fish. Sometimes when I run the script it just sits there for hours doing literally nothing after it has filled up. Other times (and this is rare) it will actually drop the fish and continue

    • @slyautomation
      @slyautomation  Рік тому

      Hey Conrad, here's my discord: discord.gg/9ejb6AWR
      Post a screenshot of your script settings and I'll see what need to be changed

  • @deki4204
    @deki4204 2 роки тому +1

    when I type pip install -r requirements.txt it gives me an error: metadata-generation-failed
    any advice?

    • @slyautomation
      @slyautomation  2 роки тому

      Try pip install -r requirements.txt --use-deprecated=backtrack-on-build-failures

    • @slyautomation
      @slyautomation  2 роки тому

      Are you on Mac or Linux?

    • @manpreetsian609
      @manpreetsian609 2 роки тому

      @@slyautomation amazing video! having a similar error. need some help to get it going. getting the error - preparing metadata (pyproject.toml) ... error

    • @slyautomation
      @slyautomation  2 роки тому

      @@manpreetsian609 I would look at the requirements txt file and use the terminal to install one at time using pip install module_name

  • @bend1624
    @bend1624 2 роки тому +1

    Having trouble getting the bank_and_woodcut to actually bank, any suggestions?

    • @slyautomation
      @slyautomation  2 роки тому +1

      make sure to highlight the bank booth in draynor to green and highlight the tree red. set the deposit to amount to 'all'.

    • @slyautomation
      @slyautomation  2 роки тому +1

      the banking feature only works in draynor for now. and you can either bank willow or oak.

    • @bend1624
      @bend1624 2 роки тому

      @@slyautomation Thanks, I was trying to bank normal wood, its worth more than oak (and maybe willow) at the moment, but i had the bank highlighted as red. I will do this for sure, thank again. Love your work

    • @slyautomation
      @slyautomation  2 роки тому

      @@bend1624 i think it can work for normal wood, i'll work on that. what area are you collecting wood from?

    • @JohnnyBoombox
      @JohnnyBoombox 9 місяців тому

      @@slyautomation Thank you so much for this comment. I am enjoying your python tutorials. When I bank, it tends to click everything that is green in my bank. How do I avoid this? Thanks Sly!

  • @arjuntv3671
    @arjuntv3671 Рік тому +1

    How can you change the resolution setting in code?

    • @slyautomation
      @slyautomation  Рік тому

      You can but things like selecting items in the inventory or clicking the mini map may not work (I haven't tried it with a bigger window). In core.py at line 57 change height and width values as referenced below:
      win32gui.MoveWindow(hwnd, 0, 0, height, width, True)

  • @themirestudios3326
    @themirestudios3326 9 місяців тому

    Great tutorial, any chance you got one for rs3?

  • @bobbybinissa6120
    @bobbybinissa6120 Рік тому

    attributeError: module "PIL.Image' has no attribute 'NORMAL' When I try to run the miner . IDK what i'm doing wrong.

    • @slyautomation
      @slyautomation  Рік тому

      interesting, try upgrading PIL using the terminal in pycharm (Alt + F12) and type: pip install --upgrade Pillow

    • @slyautomation
      @slyautomation  Рік тому

      hey
      @bobbybinissa6120 Pillow 10.0.0 made an update that removed Image.NORMAL. In the config_generator.py file change line 73 to image1.thumbnail(h). also change on line 101 to image1.thumbnail(h) and line 106 to image2.thumbnail(h) or update the project as i have updated github to remove instances of Image.NORMAL

  • @asemov2707
    @asemov2707 Рік тому +1

    I always love looking at people including anti-ban systems - They're always such generic trash that's likely to get yourself caught in a ban wave - Why would after 3 minutes of activity would your bot constantly take a "human-break"

    • @slyautomation
      @slyautomation  Рік тому +1

      Cheer up princess

    • @asemov2707
      @asemov2707 Рік тому +1

      @@slyautomation Not upset, just providing feedback. Most Anti-ban systems are so uniform between script to script that they're ultimately why accounts get banned.
      I used to work on the powerbot anti-ban system and would constantly butt heads with the other developers in telling them that taking a "human-break" every 5-10 minutes was not natural, eventually I just wound up splitting off the team and sold scripts instead that overrode Powerbots (RSBot at the time) built in anti-ban systems leading to less bans overall - Likely because my approach was different than everybody elses.
      Even now, why use Python for OSRS (RS3 I'd understand), just have ChatGPT build you a Runelite plugin, compile the client yourself - Mums your uncle.

  • @BosboPlays
    @BosboPlays Рік тому +1

    The latest code works but doesn't fire make, any solutions?

    • @slyautomation
      @slyautomation  Рік тому

      I'll have a look, what areas are you trying in?

  • @Bladeanator
    @Bladeanator Рік тому +1

    Is this possible to setup for a private server

    • @slyautomation
      @slyautomation  Рік тому +1

      Yes, you'll need to find similar plugins like highlight object and NPCs but should work with RSPS that allow plugins

  • @lippzg9122
    @lippzg9122 Рік тому

    you got a new discord link? previous one is expired

  • @a197120
    @a197120 Рік тому +1

    Can you please post an updated discord in invite the one in your post is no longer working

  • @LuhNeeks007
    @LuhNeeks007 2 роки тому

    will it work on mac m1?

    • @slyautomation
      @slyautomation  2 роки тому

      Yes except don't install pywin32 skip those and it should work any individual module that fails to install try installing one at a time in the terminal using pip install module_name

  • @codyquist4908
    @codyquist4908 2 роки тому +1

    why not just use robots in disguise?

    • @slyautomation
      @slyautomation  2 роки тому +1

      i mainly do this for fun and learn more about python in the process

  • @yessir-pi9fz
    @yessir-pi9fz 11 місяців тому

    we need this for rs3

  • @educationalchannel2406
    @educationalchannel2406 9 місяців тому

    where can we sell our accounts?

  • @kd8691
    @kd8691 2 роки тому

    Awful

  • @benjaminmarquardt458
    @benjaminmarquardt458 2 роки тому

    I am stuck trying to initiate the woodcutting bot, with the following error message:
    win32gui.MoveWindow(hwnd, 0, 0, 865, 830, True)
    pywintypes.error: (1400, 'MoveWindow', 'Invalid window handle.')
    have you got any ideas of what I may have done wrong?

    • @slyautomation
      @slyautomation  2 роки тому

      whats your runescape client? Runelite? if so you might need to go into the runelite settings, click the wrench settings icon top right corner, in the search box type runelite click on the cog icon and under the window settings section; uncheck 'show display name in title'. try after actioning that.

  • @justindozier4954
    @justindozier4954 Рік тому +1

    pywintypes.error: (1400, 'MoveWindow', 'Invalid window handle.')

    • @samfinch8140
      @samfinch8140 Рік тому +3

      Figured this bit out just now, go to your Runelite settings and uncheck the "Show display name in title" setting. Explanation: When the script is running that win32gui.FindWindow(None, data) at line 52 in core.py, data is "Runelite" but when I checked my Runelite's window name its actually appended with "- {your username}" so something like "RuneLite - username123" would be what your windows called with that setting on by default. Changing that setting removes that appendage, but if you REALLY like your name being in the window title then you could just manually put the correct window name string in the FindWindow function instead of data

  • @prpfd2233
    @prpfd2233 2 роки тому

    do you have discord for set up support im running into all sorts of issues lol

  • @Antonio32639
    @Antonio32639 Місяць тому

    Shit responds way too slow pretty obvious if you try this you'll get IP banned

  • @valentine4209
    @valentine4209 Рік тому +1

    What's ur discord I have a few questions